update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2009-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c (Qto_iso_ir): New variable for XEmacs CHISE.
4         (make_charset): Add new argument `iso_ir'.
5         (Fmake_charset): Add new property `=>iso-ir' in XEmacs CHISE.
6         (Fmake_reverse_direction_charset): Copy CHARSET_ISO_IR(cs) in
7         XEmacs CHISE.
8         (Fcharset_property): Support `iso-ir' in XEmacs CHISE.
9         (syms_of_mule_charset): Add new builtin symbol `=>iso-ir' in
10         XEmacs CHISE.
11         (complex_vars_of_mule_charset): Specify argument `iso_ir' of
12         function `make_charset'.
13
14         * char-ucs.h (LEADING_BYTE_*): Enclose negative value with ( ).
15         (struct Lisp_Charset): Add new member `iso_ir'.
16         (CHARSET_ISO_IR): New macro.
17
18 2009-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
19
20         * mule-charset.c (Fdecode_char): Fix problem when decoding GR
21         code-point by GL charset.
22
23 2008-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
24
25         * concord.c (concord_id_validate): New function.
26         (structure_type_create_concord): Use `concord_id_validate' instead
27         of `concord_name_validate' to accept integer and character as =id.
28
29 2008-09-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
30
31         * concord.c (func_for_each_object): Fix bug about GC-protection.
32
33 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
34
35         * concord.c (Fconcord_object_put): Check argument FEATURE is a
36         symbol.
37
38 2008-09-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
39
40         * text-coding.c (struct decoding_stream): Add new member
41         `bom_flag' in XEmacs CHISE.
42         (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
43         in XEmacs CHISE.
44
45 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
46
47         * mule-charset.c: Move definition of `=jis-x0208@1978' to
48         lisp/mule/mule-conf.el.
49
50 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
53         (make_charset): Add new argument `partial'.
54         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
55         (Fmake_reverse_direction_charset): Modify for `make_charset'.
56         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
57         CHISE.
58         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
59         `=jis-x0208' as a partial coded-charset.
60
61 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
62
63         * text-coding.c (decode_add_er_char): Fix problem when a character
64         represented by an entity-reference is not defined.
65
66 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
67
68         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
69         Qrep_*.
70
71 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
72
73         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
74         (Kasagi).
75
76 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
77
78         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
79         is a relation feature.
80
81 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
82
83         * chartab.c (syms_of_chartab): Define
84         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
85
86         * chartab.h (Q_denotational): New extern when UTF2000 or
87         HAVE_CONCORD is defined.
88         (Q_denotational_from): Likewise.
89         (Q_subsumptive): Likewise.
90         (Q_subsumptive_from): Likewise.
91
92 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
93
94         * concord.c (concord_object_put): New function.
95         (Fconcord_object_put): Use `concord_object_put'.
96
97 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
98
99         * concord.c (Fconcord_define_object): New function.
100         (syms_of_concord): Add new builtin function
101         `concord-define-object'.
102
103 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
104
105         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
106         (Kamo).
107
108 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
109
110         * concord.c: Add EXFUN for Fconcord_object_get.
111         (Vconcord_genre_object_hash_table): New variable.
112         (concord_genre_cache_get_object): New function.
113         (concord_genre_cache_put_object): New function.
114         (Fconcord_make_object): Use object cache; put object-ID into `=id'
115         feature.
116         (Fconcord_object_put): Call `concord_index_sync' after
117         `concord_index_strid_put_obj'.
118         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
119
120 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
121
122         * concord.c (Fconcord_decode_object): Do GCPRO for
123         Fconcord_make_object.
124         (func_for_each_object): Likewise; do GCPRO for
125         for_each_object_closure->function.
126         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
127         for_each_object_closure->function, for_each_object_closure->genre,
128         for_each_object_closure->ds and for_each_object_closure->ret.
129         (concord_object_validate): Do GCPRO for Fconcord_make_object.
130
131 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
132
133         * concord.c: Add EXFUNs for Fconcord_decode_object and
134         Fconcord_object_put.
135         (Fconcord_make_object): Change order of arguments.
136         (Fconcord_decode_object): Modify for Fconcord_make_object.
137         (func_for_each_object): Likewise.
138         (concord_object_validate): Likewise.
139         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
140
141 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
142
143         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
144
145 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
146
147         * concord.c (Fconcord_decode_object): Try to use readable print
148         form as a key of Concord-index.
149         (Fconcord_object_get): Try to use readable print form as an ID of
150         Concord-object.
151         (Fconcord_object_put): Try to use readable print form as an ID of
152         Concord-object and a feature value.
153         (Fconcord_object_spec): Try to use readable print form as an ID of
154         Concord-object.
155
156 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
157
158         * concord.c (print_concord_object): Support readable form.
159
160 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * emacs.c (main_1): Call `structure_type_create_concord' when
163         HAVE_CONCORD is defined.
164
165         * symsinit.h (structure_type_create_concord): New prototype.
166
167         * concord.c (Qconcord_object): New variable.
168         (Qgenre): Likewise.
169         (Q_id): Likewise.
170         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
171         for directory.
172         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
173         char*> for genre-name.
174         (Fconcord_feature_list): Likewise.
175         (Fconcord_make_object): Likewise.
176         (Fconcord_decode_object): Likewise; use <char*> instead of
177         <unsigned char*> for feature_name and strid.
178         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
179         c_obj and feature_name.
180         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
181         char*> for c_value.
182         (struct closure_for_object_spec): Use <char*> instead of <unsigned
183         char*> for member `object_id'.
184         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
185         char*> for feature-name.
186         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
187         for c_obj.
188         (func_for_each_object): Cast to avoid warnings.
189         (Fconcord_foreach_object_in_feature): Use <char*> instead of
190         <unsigned char*> for genre_name and feature_name.
191         (concord_name_validate): New function.
192         (concord_object_validate): Likewise.
193         (concord_object_instantiate): Likewise.
194         (syms_of_concord): Add new builtin symbols `concord-object',
195         `genre' and `=id'.
196         (structure_type_create_concord): New function.
197
198 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
199
200         * concord.c (Vconcord_ds_hash_table): New variable.
201         (Vconcord_genre_hash_table): New variable.
202         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
203         (Fconcord_ds_directory): New function.
204         (Fconcord_assign_genre): New function.
205         (Fconcord_genre_directory): New function.
206         (Fconcord_genre_ds): New function.
207         (Fconcord_feature_list): Allow to omit `ds'.
208         (Fconcord_make_object): Likewise.
209         (Fconcord_decode_object): Likewise.
210         (Fconcord_foreach_object_in_feature): Likewise.
211         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
212         Fconcord_assign_genre, Fconcord_genre_directory and
213         Fconcord_genre_ds.
214         (vars_of_concord): Setup Vconcord_ds_hash_table and
215         Vconcord_genre_hash_table.
216
217 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
218
219         * concord.c (struct closure_for_each_object): Add new member
220         `ret'.
221         (func_for_each_object): Setup the return value to
222         `for_each_object_closure->ret'.
223         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
224         returns the value instead of Qt.
225
226 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
227
228         * concord.c: New file.
229
230 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
231
232         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
233         `lrecord_type_concord_object'.
234
235 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
236
237         * symsinit.h (syms_of_concord): New prototype.
238         (vars_of_concord): New prototype.
239
240         * emacs.c (main_1): Setup symbols and variable about concord if
241         HAVE_CONCORD is defined.
242
243         * config.h.in (HAVE_CONCORD): New macro.
244
245 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
246
247         * chartab.c (Fput_char_attribute): For each character relation
248         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
249
250 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
251
252         * chartab.c (Fput_char_attribute): Use
253         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
254         calling `put_char_composition'.
255
256 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
257
258         * chartab.c (Q_halfwidth_of): New variable.
259         (put_char_composition): Return `<-halfwidth' instead of
260         `=decomposition' for compatibility mapping to single character
261         tagged `narrow'.
262         (Fput_char_attribute): Convert char-specs in value of
263         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
264         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
265         for `<-halfwidth'.
266         (syms_of_chartab): Add new symbol `<-halfwidth'.
267
268 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
269
270         * chartab.c (put_char_composition): Return
271         `<-formed@{isolated|initial|medial|final}' for compatibility
272         mapping to single character tagged
273         `{isolated|initial|medial|final}'.
274
275 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
276
277         * chartab.c (Q_compat_of): Deleted.
278         (put_char_composition): Return `<-FOO' for compatibility mapping
279         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
280         of `symbol_name (XSYMBOL(...))'.
281         (Fput_char_attribute): Convert char-specs in value of
282         `{<-|->}font[^*]*' to characters and put reverse links.
283         (Fsave_char_attribute_table): Don't refer Q_compat_of.
284         (syms_of_chartab): Delete builtin symbol `<-compat'.
285
286 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
287
288         * chartab.c (Q_circled_of): New variable.
289         (put_char_composition): Return `<-circled' instead of
290         `=decomposition' for compatibility mapping to single character
291         tagged `circle'.
292         (Fput_char_attribute): Convert char-specs in value of
293         `{<-|->}circled[^*]*' to characters and put reverse links.
294         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
295         for `<-circled'.
296         (syms_of_chartab): Add new symbol `<-circled'.
297
298 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
299
300         * chartab.c (Qto_decomposition_at_circled): New variable.
301         (put_char_composition): Return `=>decomposition@circled' instead
302         of `=decomposition' for compatibility decomposition mapping tagged
303         `circle'.
304         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
305
306 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
307
308         * chartab.c (Q_subscript_of): New variable.
309         (put_char_composition): Return `<-subscript' instead of
310         `=decomposition' for compatibility mapping to single character
311         tagged `sub'.
312         (Fput_char_attribute): Convert char-specs in value of
313         `{<-|->}subscript[^*]*' to characters and put reverse links.
314         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
315         for `<-subscript'.
316         (syms_of_chartab): Add new symbol `<-subscript'.
317
318 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
319
320         * chartab.c (Q_superscript_of): New variable.
321         (put_char_composition): Return `<-superscript' instead of
322         `=decomposition' for compatibility mapping to single character
323         tagged `super'.
324         (Fput_char_attribute): Convert char-specs in value of
325         `{<-|->}superscript[^*]*' to characters and put reverse links.
326         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
327         for `<-superscript'.
328         (syms_of_chartab): Add new symbol `<-superscript'.
329
330 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
331
332         * chartab.c (Qto_decomposition_at_compat): Deleted.
333         (Qto_decomposition_at_superscript): New variable.
334         (put_char_composition): Use `=>decomposition@superscript' instead
335         of `=decomposition' for compatibility decomposition mapping tagged
336         `super'.
337         (Fput_char_attribute): Fix condition about `put_char_composition'.
338         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
339         add news symbol `=>decomposition@superscript'.
340
341 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
344         for compatibility decomposition mapping tagged FOO.
345         (Fput_char_attribute): Modify for `put_char_composition'.
346
347 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
348
349         * chartab.c (Qto_decomposition_at_compat): New variable.
350         (Q_compat_of): Renamed from `Q_compatibility_of'.
351         (put_char_composition): Rename `Q_compatibility_of' to
352         `Q_compat_of'; return `=>decomposition@compat' for compatibility
353         decomposition mapping.
354         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
355         `Q_compat_of'.
356         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
357         `<-compatibility' to `<-compat'.
358
359 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
360
361         * chartab.c (Q_compatibility_of): New variable.
362         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
363         object is proved to be a cons cell; return `<-compatibility' if
364         the first element of argument `value' is `compat'.
365         (Fput_char_attribute): Eliminate the first value if
366         `put_char_composition' returns `<-compatibility'.
367         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
368         for `<-compatibility'.
369         (syms_of_chartab): Add new symbol `<-compatibility'.
370
371 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
372
373         * chartab.c (Q_canonical): New variable.
374         (put_char_composition): Return a feature name: return
375         `->canonical' if argument `value' specifies single character.
376         (Fput_char_attribute): Use `put_char_composition' to determine
377         feature name for `=decomposition' or `->denotational'.
378         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
379         for `->canonical'.
380         (syms_of_chartab): Add new symbol `->canonical'.
381
382 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
383
384         * chartab.c (Qmap_decomposition): New variable.
385         (Fput_char_attribute): Convert `->decomposition' to
386         `=decomposition'.
387         (syms_of_chartab): Add new symbol `=decomposition'.
388
389 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
390
391         * chartab.c (Fget_range_char_table): Fix serious problem when
392         `range' is nil.
393
394 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
395
396         * chartab.c (char_table_get_db): Use `read_from_c_string'.
397
398 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
399
400         * lread.c (read_from_c_string): New function.
401
402         * lisp.h (read_from_c_string): New prototype.
403
404 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
405
406         * chartab.c (Fput_char_attribute): Convert char-specs in value of
407         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
408         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
409         for `{<-|->}Oracle-Bones[^*]*'.
410
411 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
412
413         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
414         (Kizu).
415
416 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
417
418         * text-coding.c (Qccs_priority_list): New variable in XEmacs
419         CHISE.
420         (Fmake_coding_system): Support new property `ccs-priority-list' in
421         XEmacs CHISE.
422         (Fcoding_system_property): Likewise.
423         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
424         Vdefault_coded_charset_priority_list in XEmacs CHISE.
425         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
426         XEmacs CHISE.
427         (complex_vars_of_file_coding): Define new coding-system-property
428         `ccs-priority-list' in XEmacs CHISE.
429
430         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
431
432 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
433
434         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
435         changed to normal function.
436         (encode_char_2): Likewise.
437
438         * mule-charset.c (decoding_table_put_char): Copied from
439         char-ucs.h; changed to normal function.
440         (encode_char_2): Likewise.
441
442 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
443
444         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
445         New extern.
446         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
447         (encode_char_2_search_children): New inline function.
448         (encode_char_2): Refer
449         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
450         and use `encode_char_2_search_children'.
451
452 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
453
454         * mule-charset.c
455         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
456         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
457         (vars_of_mule_charset): Add new variable
458         `display-coded-charset-priority-use-inheritance' and
459         `display-coded-charset-priority-use-hierarchy-order'.
460
461 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
462
463         * char-ucs.h (Q_subsumptive): New extern.
464         (Q_denotational): Likewise.
465         (encode_char_2): Search children specified by `->subsumptive' and
466         `->denotational'.
467
468 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
469
470         * mule-charset.c (complex_vars_of_mule_charset): Modify the
471         X-registry of `ucs-bmp'.
472
473 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
474
475         * chartab.c (char-variants): Refer `->subsumptive',
476         `->denotational' and `->identical' as same as `->ucs-unified'.
477
478 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
479
480         * chartab.c (Fput_char_attribute): Convert char-specs in value of
481         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
482         links.
483
484 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
485
486         * text-coding.c: Add EXFUN for `Fregexp_quote'.
487         (decode_add_er_char): Fix problem about infinite loop when a CCS
488         specified in `coded-charset-entity-reference-alist' is not
489         existed.
490
491 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
492
493         * mule-charset.c (syms_of_mule_charset): Rename
494         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
495
496 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
497
498         * fns.c (simplify_char_spec): Don't allocate new character-object
499         if specified char_spec does not have any CCS-features.
500
501         * chartab.h: Add EXFUN for Fdefine_char.
502
503         * chartab.c: Delete EXFUN for Fdefine_char.
504
505 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
506
507         * fns.c (simplify_char_spec): Use Fdefine_char instead of
508         Ffind_char for char-spec.
509
510 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
511
512         * lisp-disunion.h (XCHARVAL): Fix condition about
513         SIZEOF_EMACS_INT.
514
515 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
516
517         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
518         <int> for `code'.
519         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
520         point; use <Emchar> instead of <int> for character-id.
521
522 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
523
524         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
525         (make_char): Likewise.
526         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
527         environment.
528         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
529         instead of <int> as the type of return value; use <Lisp_Object>
530         instead of <Emchar> as the type of argument.
531         (XCHARVAL[macro version]): Cast the result into <Emchar>.
532
533         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
534         syntaxcode> instead of <int>.
535
536 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
537
538         * chartab.c (put_char_composition): Use DECODE_CHAR to get
539         character corresponding with UCS code point.
540         (Fput_char_attribute): Likewise.
541
542         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
543         character in the UCS decoding-table if the char-id is not equal to
544         the UCS code point.
545
546 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
547
548         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
549         for aliases; write `description'; write
550         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
551         not 0.
552
553 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
554
555         * chartab.c (Fsave_char_attribute_table): Don't use
556         `save_charset_properties'.
557
558         * mule-charset.c (Fsave_charset_properties): Renamed from
559         `save_charset_properties' and changed to Lisp function again;
560         write property `type' as `CCS'; write properties `final-byte' and
561         `mother' if they exists.
562         (syms_of_mule_charset): Revive builtin function
563         `save-charset-properties' when HAVE_LIBCHISE is defined.
564
565 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
566
567         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
568         instead of Vexec_directory.
569         (char_attribute_system_db_file): Likewise.
570
571 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
572
573         * chartab.c (Fsave_char_attribute_table): Use
574         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
575         defined.
576
577         * mule-charset.c (save_charset_properties): Renamed from
578         `Fsave_charset_properties'; changed to non-Lisp function.
579         (syms_of_mule_charset): Abolish builtin function
580         `save-charset-properties'.
581
582 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
583
584         * mule-charset.c (Fsave_charset_properties): New function when
585         HAVE_LIBCHISE is defined.
586         (syms_of_mule_charset): Add new builtin function
587         `save-charset-properties' when HAVE_LIBCHISE is defined.
588
589 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
590
591         * chartab.c (Fput_char_attribute): Convert char-specs in value of
592         `{<-|->}ancient[^*]*' to characters and put reverse links.
593         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
594         for `{<-|->}ancient[^*]*'.
595
596 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
597
598         * chartab.c (Fput_char_attribute): Convert char-specs in value of
599         `{<-|->}original[^*]*' to characters and put reverse links.
600         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
601         for `{<-|->}original[^*]*'.
602
603 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
604
605         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
606
607 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
608
609         * mule-charset.c (Qsystem_char_id): New variable.
610
611         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
612         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
613
614 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
615
616         * chartab.c (Fput_char_attribute): When processing a reference of
617         a character, put into the end of the reversed reference of each
618         target character.
619
620 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
621
622         * chartab.c (Q_same): Deleted.
623         (Q_same_of): Deleted.
624         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
625         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
626         for `{<-|->}same'.
627         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
628
629 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
630
631         * chartab.c (Q_vulgar): Deleted.
632         (Q_vulgar_of): Deleted.
633         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
634         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
635         for `{<-|->}vulgar'.
636         (syms_of_chartab): Don't define `{<-|->}vulgar'.
637
638 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
639
640         * chartab.c (Fput_char_attribute): Convert char-specs in value of
641         `{<-|->}wrong[^*]*' to characters and put reverse links.
642         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
643         for `{<-|->}wrong[^*]*'.
644
645 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
646
647         * chartab.c (Q_vulgar): New variable.
648         (Q_vulgar_of): New variable.
649         (Fput_char_attribute): Convert char-specs in value of
650         `{->|<-}vulgar' to characters and put reverse links.
651         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
652         for `{->|<-}vulgar'.
653         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
654
655 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
656
657         * text-coding.c (decode_add_er_char): Must to quote prefix string
658         as regexp.
659
660 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
661
662         * mule-charset.c (put_char_ccs_code_point): Store characters of
663         =ucs whose code_points >= 0xF0000.
664
665 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
666
667         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
668         CHISE.
669         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
670         CHISE.
671         (complex_vars_of_mule_charset): Add new coded-charset
672         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
673         builtin characters over 0xEFFFF.
674
675         * chartab.c (syms_of_chartab): Don't define symbol
676         `system-char-id' in every case.
677
678         * char-ucs.h (Qsystem_char_id): New extern variable.
679         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
680
681 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
682
683         * text-coding.c (char_encode_utf8): Try to use entity-references
684         for U-000F0000 ...  U-0010FFFF.
685
686 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
687
688         * text-coding.c (ER_BUF_SIZE): New macro.
689         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
690         `er_buf'.
691         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
692         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
693
694 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
695
696         * chartab.c (find_char_feature_in_family): New function.
697         (Fchar_feature): Use `find_char_feature_in_family' with
698         `->identical', `<-subsumptive' and `<-denotational'.
699
700 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
701
702         * text-coding.c (char_encode_as_entity_reference): Allow prefix
703         within 8 characters; fix infinite loop.
704
705 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
706
707         * chartab.c (Q_same): New variable.
708         (Q_same_of): New variable.
709         (Fput_char_attribute): Convert char-specs in value of
710         `{->|<-}same' to characters and put reverse links.
711         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
712         for `{->|<-}same'.
713         (syms_of_chartab): Add new symbols `{->|<-}same'.
714
715 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
716
717         * chartab.c (Q_component): New variable.
718         (Q_component_of): Likewise.
719         (Fput_char_attribute): Convert char-specs in value of
720         `{->|<-}ideographic-component-forms' to characters and put reverse
721         links.
722         (syms_of_chartab): Add new symbols
723         `{->|<-}ideographic-component-forms'.
724
725 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
726
727         * chartab.c (Q_identical): New variable.
728         (Q_identical_from): New variable.
729         (Fchar_feature): Regard `->identical' as a feature to find
730         ancestors.
731         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
732         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
733         for `{->|<-}identical'.
734         (syms_of_chartab): Add new symbols `{->|<-}identical'.
735
736 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
737
738         * char-ucs.h (encode_char_2): New inline function.
739         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
740
741 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
742
743         * chartab.c (Fput_char_attribute): Convert char-specs to
744         characters in value of `ideographic-structure'.
745         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
746         for `{<-|->}simplified(@...)'.
747         (Fdefine_char): Try to use predefined character's id.
748
749 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
750
751         * fns.c (simplify_char_spec): Try to convert builtin chars to
752         defined chars.
753
754 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
755
756         * chartab.c (Fput_char_attribute): Convert char-specs in value of
757         `<-simplified[^*]*' to characters and put reverse links.
758
759 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
760
761         * chartab.c (Q_subsumptive): Renamed from Q_unified.
762         (Q_subsumptive_from): Renamed from Q_unified_from.
763         (Fchar_feature): Use `Q_subsumptive_from' instead of
764         `Q_unified_from'.
765         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
766         `Q_unified'.
767         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
768         `<-unified' to `<-subsumptive'.
769
770 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
771
772         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
773         inheritance itself; fix typo; stop recursive search if cyclic
774         inheritance is found.
775
776 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
777
778         * chartab.c (Q_denotational): New variable.
779         (Q_denotational_from): New variable.
780         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
781         (put_char_attribute): New function.
782         (Fput_char_attribute): Use `put_char_attribute'; regard
783         `->denotational' and `<-denotational' as same as `->unified' and
784         `<-unified'.
785         (syms_of_chartab): Add new symbols `->denotational' and
786         `<-denotational'.
787
788 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
789
790         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
791         `Fget_char_attribute'.
792         (Fchar_variants): Likewise.
793         (get_char_table): Likewise.
794         (Fchar_feature): New function.
795         (put_char_composition): Use `Fchar_feature' instead of
796         `Fget_char_attribute'.
797         (Fput_char_attribute): Likewise; don't put the target character
798         into its `->unified' value.
799         (syms_of_chartab): Add new builtin function `char-feature'.
800
801 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
802
803         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
804         `Fget_char_attribute'.
805         (char_encode_utf8): Likewise.
806
807         * chartab.h: Add an EXFUN for `Fchar_feature'.
808
809 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
810
811         * chartab.c (Vnext_defined_char_id): New variable.
812         (Fput_char_attribute): Accept characters in `->unified'.
813         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
814         new characters which are not related with builtin char-id ranges.
815         (vars_of_chartab): Add new variable `next-defined-char-id'.
816
817 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
818
819         * chartab.c (Q_unified): New variable.
820         (Q_unified_from): New variable.
821         (Fput_char_attribute): Add code for `->unified'.
822         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
823         XEmacs CHISE.
824
825 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
826
827         * mule-charset.c (decode_ccs_conversion): New function.
828         (decode_defined_char): Use `decode_ccs_conversion'.
829         (decode_builtin_char): Likewise.
830
831 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
832
833         * char-ucs.h: Change some charset-ids of private coded-charsets.
834
835 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
836
837         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
838         (char_encode_as_entity_reference): Likewise.
839         (decode_coding_big5): Modify for `decode_defined_char' and
840         `DECODE_CHAR'.
841         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
842         avoid compiler warning.
843         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
844
845         * mule-charset.c (decode_defined_char): Add new argument
846         `without_inheritance'.
847         (Fdecode_char): Add new optional argument `without_inheritance'.
848         (Fdecode_builtin_char): Modify for `Fdecode_char'.
849
850         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
851         (simplify_char_spec): Likewise.
852
853         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
854         setting.
855
856         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
857         (map_char_table): Likewise.
858         (Fdefine_char): Use `Fdecode_char' without inheritance.
859         (Ffind_char): Modify for `Fdecode_char'.
860
861         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
862
863         * char-ucs.h (decode_defined_char): Add new argument
864         `without_inheritance'.
865         (DECODE_CHAR): Likewise.
866         (MAKE_CHAR): Modify for `DECODE_CHAR'.
867
868 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
869
870         * chartab.c (Vchise_system_db_directory): New variable.
871         (vars_of_chartab): Add new variable `chise-system-db-directory'.
872
873 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
874
875         * chartab.c: EXFUN `Fmount_char_attribute_table'.
876         (print_chartab_range): Don't define when `UTF2000' is defined.
877         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
878         `CHISE_DS_open'.
879
880 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
881
882         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
883         and optional argument `rehash' is specified, call
884         `open_chise_data_source_maybe' before
885         `chise_ds_foreach_char_feature_name' is called.
886
887 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
888
889         * chartab.c (char_attribute_list_reset_map_func): New function
890         when HAVE_LIBCHISE is defined.
891         (Fchar_attribute_list): Add new optional argument `rehash' when
892         HAVE_LIBCHISE is defined.
893         (open_chise_data_source_maybe): Use "chise-db" instead of
894         "char-db".
895         (char_attribute_system_db_file): Likewise.
896         (Fload_char_attribute_table): Use
897         `chise_feature_foreach_char_with_value' instead of
898         `chise_char_feature_value_iterate'.
899
900 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
901
902         * chartab.c (Vchise_db_directory): New variable.
903         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
904
905 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
906
907         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
908         instead of HAVE_CHISE to specify using with libchise.
909
910         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
911
912         * chartab.h: Don't use HAVE_CHISE_CLIENT.
913
914         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
915         defined or HAVE_LIBCHISE_LIBCHISE is defined.
916         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
917         is defined.
918         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
919         HAVE_CHISE to specify using with libchise.
920         (syms_of_chartab): Don't define symbol `system-char-id' when
921         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
922
923 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
924
925         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
926         specify CHISE DB support.
927         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
928         of `char_attribute_system_db_file' to check feature DB file.
929
930         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
931         HAVE_CHISE_CLIENT to specify CHISE DB support.
932
933         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
934         specify CHISE DB support.
935         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
936         not defined.
937         (Freset_char_attribute_table): Use `chise_feature_setup_db'
938         instead of `char_attribute_system_db_file' to check feature DB
939         file.
940
941 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
942
943         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
944         `HAVE_CHISE_CLIENT'.
945
946 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
947
948         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
949         (Fsave_charset_mapping_table): Don't use
950         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
951
952         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
953         (HAVE_LIBCHISE): New macro.
954
955         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
956
957         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
958         (Fsave_char_attribute_table): Don't use
959         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
960
961 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
962
963         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
964         defined.
965         (save_uint16_byte_table): Likewise.
966         (save_byte_table): Likewise.
967         (char_table_get_db): Use `chise_ds_load_char_feature_value'
968         instead of `chise_char_load_feature_value'.
969         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
970
971 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
972
973         * chartab.h (struct Lisp_Char_Table): Delete member
974         `feature_table' if CHISE is defined.
975
976         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
977         (Fcopy_char_table): Likewise.
978         (char_table_open_db_maybe): Likewise.
979         (char_table_close_db_maybe): Likewise.
980         (char_table_get_db): Likewise.
981         (Fmount_char_attribute_table): Likewise.
982         (Fload_char_attribute_table): Likewise.
983
984 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
985
986         * mule-charset.c (load_char_decoding_entry_maybe): Use
987         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
988         `chise_ccs_decode'.
989
990 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
991
992         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
993         instead of `chise_open_data_source'.
994         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
995         `chise_ds_close'.
996
997 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
998
999         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
1000         instead of `chise_ds_open_feature_table'.
1001         (char_table_close_db_maybe): Don't use `chise_ft_close'.
1002
1003 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1004
1005         * mule-charset.c (Fsave_charset_mapping_table): Use
1006         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
1007         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
1008         `chise_ccs_sync' instead of `chise_ccst_close'.
1009         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
1010
1011         * chartab.c (open_chise_data_source_maybe): Modify for
1012         `chise_open_data_source'.
1013         (char_table_open_db_maybe): Modify for
1014         `chise_ds_open_feature_table'.
1015
1016 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1017
1018         * mule-charset.c (load_char_decoding_entry_maybe): Use
1019         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
1020         `chise_ccst_close'.
1021
1022 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1023
1024         * mule-charset.c (Fsave_charset_mapping_table): Use
1025         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
1026         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
1027         `chise_dt_put_char' and `chise_dt_close'.
1028         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1029         `chise_ccs_decode' and `chise_ccst_close' instead of
1030         `chise_ds_open_decoding_table', `chise_dt_get_char' and
1031         `chise_dt_close'.
1032
1033         * chartab.c (char_table_get_db): Use
1034         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1035         (load_char_attribute_table_map_func): Modify for
1036         `chise_char_feature_value_iterate'.
1037         (Fload_char_attribute_table): Use
1038         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1039
1040 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1041
1042         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1043
1044 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1045
1046         * chartab.c (put_char_table): Modify for inherited coded-charsets
1047         in XEmacs CHISE.
1048
1049 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1050
1051         * chartab.c (Fput_char_table_map_function): Fixed.
1052         (word_boundary_p): Don't check charset in XEmacs CHISE.
1053
1054 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1055
1056         * mule-charset.c (Fsave_charset_mapping_table): Use
1057         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1058         instead of `chise_open_decoding_table'; refer
1059         `default_chise_data_source'; use `chise_dt_close' instead of
1060         `chise_close_decoding_table'.
1061         (load_char_decoding_entry_maybe): Likewise.
1062
1063         * chartab.c (default_chise_data_source): New variable when `CHISE'
1064         is defined.
1065         (Fcopy_char_table): `ct->ds' is deleted.
1066         (open_chise_data_source_maybe): New function.
1067         (Fclose_char_data_source): New function.
1068         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1069         use `chise_ds_open_feature_table' instead of
1070         `chise_open_feature_table'.
1071         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1072         `chise_close_feature_table'; `cit->ds' is deleted.
1073         (syms_of_chartab): Add new builtin function
1074         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1075
1076         * chartab.h (default_chise_data_source): New extern variable.
1077         (open_chise_data_source_maybe): New prototype.
1078         (struct Lisp_Char_Table): Delete `ds'.
1079
1080 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1081
1082         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1083         `CHISE' is defined.
1084
1085 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1086
1087         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1088         not defined; add code for non-libchise setting.
1089         (char_table_close_db_maybe): Likewise.
1090         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1091         defined.
1092         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1093         even if `CHISE' is not defined.
1094         (Freset_char_attribute_table): Likewise.
1095         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1096         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1097         `char_table_get_db'.
1098         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1099         `char_table_close_db_maybe' even if `CHISE' is not defined.
1100
1101 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1102
1103         * chartab.c (char_table_open_db_maybe): New function.
1104         (char_table_close_db_maybe): New function.
1105         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1106         (Freset_char_attribute_table): Likewise.
1107         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1108         `char_table_close_db_maybe'.
1109         (Fload_char_attribute_table): Likewise.
1110
1111 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1112
1113         * chartab.c: Don't include <chise.h> because it is included in
1114         chartab.h.
1115         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1116         defined.
1117         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1118         `CHISE' is defined.
1119         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1120         `CHISE' is defined.
1121         (Fclose_char_attribute_table): Close `ct->feature_table' and
1122         `ct->ds' when `CHISE' is defined.
1123         (Freset_char_attribute_table): Likewise.
1124         (load_char_attribute_maybe): Use `cit->ds' and
1125         `cit->feature_table' when `CHISE' is defined.
1126         (Fload_char_attribute_table): Likewise.
1127
1128         * chartab.h: Include <chise.h> when `CHISE' is defined.
1129         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1130         when `CHISE' is defined.
1131
1132 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1133
1134         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1135         is defined.
1136         (char_table_description): Likewise.
1137         (Fmake_char_table): Likewise.
1138         (Fcopy_char_table): Likewise.
1139         (Fmount_char_attribute_table): Likewise.
1140         (Fclose_char_attribute_table): Likewise.
1141         (Freset_char_attribute_table): Likewise.
1142         (load_char_attribute_maybe): Likewise.
1143         (Fload_char_attribute_table): Likewise.
1144
1145         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1146         defined.
1147
1148 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1149
1150         * chartab.c (load_char_attribute_table_map_func): New function
1151         when CHISE is defined.
1152         (Qload_char_attribute_table_map_function): Don't define when CHISE
1153         is defined.
1154         (Fload_char_attribute_table_map_function): Likewise.
1155         (Fload_char_attribute_table): Use libchise when `CHISE' is
1156         defined.
1157         (syms_of_chartab): Don't define
1158         `load-char-attribute-table-map-function' when CHISE is defined.
1159
1160 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1161
1162         * chartab.c: Include <chise.h> when `CHISE' is defined.
1163         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1164
1165 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1166
1167         * mule-charset.c (charset_code_point): Fix problem when searching
1168         in mother CCS fails with `defined_only' mode.
1169
1170 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1171
1172         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1173         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1174         (put_char_composition): Likewise.
1175         (Fput_char_attribute): Likewise.
1176         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1177
1178 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1179
1180         * chartab.c (Q_ucs): Deleted.
1181         (Fput_char_attribute): Don't refer `->ucs'.
1182         (Fdefine_char): Likewise.
1183         (Ffind_char): Likewise.
1184         (syms_of_chartab): Delete `->ucs'.
1185
1186 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1187
1188         * mule-charset.c (Qmap_cns11643_2): Renamed from
1189         `Qchinese_cns11643_2'.
1190         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1191         `chinese-cns11643-2'.
1192         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1193         `=cns11643-2'.
1194
1195 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1196
1197         * mule-charset.c (Qmap_cns11643_1): Renamed from
1198         `Qchinese_cns11643_1'.
1199         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1200         `chinese-cns11643-1'.
1201         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1202         `=cns11643-1'.
1203
1204 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1205
1206         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1207         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1208         `chinese-gb12345'.
1209         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1210         `=gb12345'.
1211
1212 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1213
1214         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1215         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1216         `chinese-gb2312'.
1217         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1218         `=gb2312'.
1219
1220 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1221
1222         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1223         (syms_of_mule_charset): Add new symbol `=big5' instead of
1224         `chinese-big5'.
1225         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1226
1227 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1228
1229         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1230         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1231         `korean-ksc5601'.
1232         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1233         `=ks-x1001'.
1234
1235 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1236
1237         * mule-charset.c (Qmap_jis_x0212): Renamed from
1238         `Qjapanese_jisx0212'.
1239         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1240         `japanese-jisx0212'.
1241         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1242         `=jis-x0212'.
1243
1244 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1245
1246         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1247         `Qjapanese_jisx0208'.
1248         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1249         of `japanese-jisx0208'.
1250         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1251         `=jis-x0208-1983'.
1252
1253 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1254
1255         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1256         `Qjapanese_jisx0208_1978'.
1257         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1258         of `japanese-jisx0208-1978'.
1259         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1260         `=jis-x0208-1978'.
1261
1262 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1263
1264         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1265         only for XEmacs CHISE.
1266
1267 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1268
1269         * char-ucs.h: Compact non-ISO-IR charset-ids.
1270         (LEADING_BYTE_UCS): Changed to -177.
1271         (LEADING_BYTE_CONTROL_1): Changed to -77.
1272         (LEADING_BYTE_UCS_BMP): Changed to -176.
1273         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1274
1275 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1276
1277         * mule-charset.c (Qiso_ir): New variable.
1278         (Fmake_charset): Recognise new property `iso-ir'.
1279         (syms_of_mule_charset): Add new symbol `iso-ir'.
1280
1281 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1282
1283         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1284         n to -n; charset-id of non ISO-IR sets are changed to positive
1285         numbers.
1286
1287 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1288
1289         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1290         for &MCS-XXXXXXXX; values.
1291
1292 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1293
1294         * mule.c (Vxemacs_chise_version): Renamed from
1295         `Vutf_2000_version'.
1296         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1297         `utf-2000-version' as an alias for `xemacs-chise-version'.
1298
1299 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1300
1301         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1302         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1303         defined.
1304
1305         * config.h.in (CHISE): New macro.
1306
1307 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1308
1309         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1310         of `ucs'.
1311         (Qmap_ucs): New variable.
1312         (syms_of_mule_charset): Add new symbol `=ucs'.
1313         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1314
1315         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1316         (simplify_char_spec): Likewise.
1317
1318         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1319
1320         * char-ucs.h (Qmap_ucs): New extern variable.
1321
1322 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1323
1324         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1325         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1326         don't define it when UTF2000 is not defined.
1327         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1328         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1329         when UTF2000 is not defined.
1330         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1331         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1332
1333 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1334
1335         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1336
1337         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1338         (Qucs_gb): Deleted.
1339         (syms_of_mule_charset): Delete `ucs-gb'.
1340         (complex_vars_of_mule_charset): Likewise.
1341
1342 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1343
1344         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1345
1346         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1347         (Qucs_cns): Deleted.
1348         (syms_of_mule_charset): Delete `ucs-cns'.
1349         (complex_vars_of_mule_charset): Likewise.
1350
1351 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1352
1353         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1354
1355         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1356         (Qucs_jis): Deleted.
1357         (syms_of_mule_charset): Delete `ucs-jis'.
1358         (complex_vars_of_mule_charset): Likewise.
1359
1360 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1361
1362         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1363
1364         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1365         (Qucs_ks): Deleted.
1366         (syms_of_mule_charset): Delete `ucs-ks'.
1367         (complex_vars_of_mule_charset): Likewise.
1368
1369 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1370
1371         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1372         (Qideograph_daikanwa_2): Deleted.
1373         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1374         (complex_vars_of_mule_charset): Likewise.
1375
1376         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1377         (LEADING_BYTE_DAIKANWA_1): Deleted.
1378         (LEADING_BYTE_DAIKANWA_2): Deleted.
1379         (MIN_CHAR_DAIKANWA): Deleted.
1380         (MAX_CHAR_DAIKANWA): Deleted.
1381
1382 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1383
1384         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1385         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1386         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1387
1388         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1389         (Vcharset_ideograph_daikanwa): Deleted.
1390         (Qideograph_hanziku_{1..12}): Deleted.
1391         (Qideograph_daikanwa): Deleted.
1392         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1393         Vcharset_ideograph_daikanwa.
1394         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1395         `ideograph-hanziku-{1..12}'.
1396         (complex_vars_of_mule_charset): Likewise.
1397
1398 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1399
1400         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1401
1402         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1403         (Qideograph_gt_pj_{1..11}): Deleted.
1404         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1405         (complex_vars_of_mule_charset): Likewise.
1406
1407 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1408
1409         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1410         (Vcharset_ideograph_gt): Deleted.
1411         (Qucs_big5): Deleted.
1412         (Qideograph_gt): Deleted.
1413         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1414         `ideograph-gt'.
1415         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1416         and `ideograph-gt'.
1417
1418         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1419         (LEADING_BYTE_GT): Deleted.
1420         (MIN_CHAR_GT): Deleted.
1421         (MAX_CHAR_GT): Deleted.
1422
1423 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1424
1425         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1426
1427 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1428
1429         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1430         (save_uint16_byte_table): Likewise.
1431         (save_byte_table): Likewise; convert values by it.
1432         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1433         for `ideographic-structure'.
1434         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1435         as the filter for `ideographic-structure'.
1436
1437 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1438
1439         * chartab.c (put_char_composition): New function.
1440         (Fput_char_attribute): Use `put_char_composition'; use
1441         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1442
1443         * fns.c (simplify_char_spec): New function.
1444         (char_ref_simplify_spec): New function.
1445         (Fchar_refs_simplify_char_specs): New function.
1446         (syms_of_fns): Add new builtin function
1447         `char-refs-simplify-char-specs'.
1448
1449 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1450
1451         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1452         (Qideograph_cbeta): Deleted.
1453         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1454         (complex_vars_of_mule_charset): Likewise.
1455
1456         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1457         (MIN_CHAR_CBETA): Comment out.
1458         (MAX_CHAR_CBETA): Likewise.
1459
1460 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1461
1462         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1463         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1464         CHISE client feature.
1465
1466 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1467
1468         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1469
1470 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1471
1472         * mule-charset.c (charset_lookup_description_1): Use
1473         `NUM_LEADING_BYTES' in UTF-2000.
1474
1475 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1476
1477         * char-ucs.h (GC_CHARSETP): Deleted.
1478
1479 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1480
1481         * char-ucs.h (MAX_CHAR_GT): Updated.
1482
1483 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1484
1485         * text-coding.c: Sync with XEmacs 21.4.10.
1486
1487 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1488
1489         * mule-charset.c (Vcharset_china3_jef): Deleted.
1490         (Qchina3_jef): Deleted.
1491         (syms_of_mule_charset): Don't define `china3-jef'.
1492         (complex_vars_of_mule_charset): Likewise.
1493
1494         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1495         (MIN_CHAR_CHINA3_JEF): Comment out.
1496         (MAX_CHAR_CHINA3_JEF): Comment out.
1497
1498 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1499
1500         * mule-charset.c (Vcharset_ucs_gb): New variable.
1501         (Qucs_gb): New variable.
1502         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1503         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1504
1505         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1506
1507 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1508
1509         * mule-charset.c (charset_code_point): if a coded-charset has a
1510         final-byte, don't inherit the builtin range of the mother CCS.
1511
1512 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1513
1514         * mule-charset.c (charset_code_point): Fix problem about
1515         inheritance.
1516
1517 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1518
1519         * mule-charset.c (decode_builtin_char): Reorganized.
1520
1521 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1522
1523         * text-coding.c (char_encode_as_entity_reference): Modify for
1524         `charset_code_point'.
1525         (char_encode_shift_jis): Likewise.
1526         (char_encode_big5): Likewise.
1527         (char_encode_utf8): Likewise.
1528         (char_encode_iso2022): Likewise.
1529
1530         * mule-charset.c (charset_code_point): Add new argument
1531         `defined_only'.
1532         (Fencode_char): Add new optional argument `defined_only'.
1533
1534         * chartab.c (put_char_table): Modify for `charset_code_point'.
1535
1536         * char-ucs.h (charset_code_point): Add new argument
1537         `defined_only'.
1538         (encode_char_1): Modify for `charset_code_point'.
1539
1540 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1541
1542         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1543         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1544
1545 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1546
1547         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1548         (Qjis_x0208): Likewise.
1549         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1550         XCHARSET_FINAL(charset).
1551         (charset_code_point): Modify condition for final-byte based
1552         builtin-chars.
1553         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1554         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1555         in UTF-2000; specify `=jis-x0208' as the mother of
1556         `japanese-jisx0208-1978', `japanese-jisx0208' and
1557         `japanese-jisx0208-1990' in UTF-2000.
1558
1559 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1560
1561         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1562
1563 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1564
1565         * text-coding.c (decode_coding_utf16): Support UTF-16.
1566         (char_encode_utf16): Fixed.
1567
1568 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1569
1570         * text-coding.c (Qutf16): New variable in MULE.
1571         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1572         (Fcoding_system_type): Add `utf-16' in MULE.
1573         (struct detection_state): Add a structure for utf16 in MULE.
1574         (detect_coding_type): Setup st->utf16.mask in MULE.
1575         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1576         MULE.
1577         (reset_encoding_stream): Use `char_encode_utf16' and
1578         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1579         (detect_coding_utf16): New function [incomplete].
1580         (decode_coding_utf16): New function [support only UCS-2].
1581         (char_encode_utf16): New function.
1582         (char_finish_utf16): New function.
1583         (syms_of_file_coding): Add new symbol `utf-16'; setup
1584         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1585
1586         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1587         UTF-2000.
1588         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1589         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1590
1591 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1592
1593         * chartab.c (put_char_table): When a charset is specified as a
1594         range in UTF-2000, don't support builtin characters.
1595
1596 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1597
1598         * mule-charset.c (decode_defined_char): Don't refer external
1599         database if Qunbound or Qnil are found.
1600         (Fsave_charset_mapping_table): Don't define it if
1601         HAVE_CHISE_CLIENT is not defined.
1602         (Freset_charset_mapping_table): New function.
1603         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1604         found in external database.
1605         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1606         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1607         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1608
1609 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1610
1611         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1612         not.
1613
1614 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1615
1616         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1617         Q_lowercase, Q_uppercase in UTF-2000.
1618
1619         * chartab.c (get_char_table): Add special code for the standard
1620         case table to use character attribute `->downcase' and
1621         `->uppercase' for case operations in UTF-2000.
1622
1623         * casetab.c (Qflippedcase): New variable in UTF-2000.
1624         (Q_lowercase): Likewise.
1625         (Q_uppercase): Likewise.
1626         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1627         and `->uppercase' in UTF-2000.
1628         (complex_vars_of_casetab): Assign attribute name `downcase' to
1629         downcase and CANON table of Vstandard_case_table in UTF-2000;
1630         assign attribute name `flippedcase' to upcase and EQV table of
1631         Vstandard_case_table in UTF-2000.
1632
1633 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1634
1635         * text-coding.c (decode_add_er_char): Support isolated-chars.
1636         (char_encode_as_entity_reference): Likewise.
1637
1638 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1639
1640         * emacs.c (Vutf_2000_lisp_directory): New variable.
1641         (Vconfigure_utf_2000_lisp_directory): Likewise.
1642         (complex_vars_of_emacs): Add new variable
1643         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1644
1645 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1646
1647         * char-ucs.h (DECODE_CHAR): Delete special code for
1648         `chinese-big5-1' and `chinese-big5-2'.
1649
1650         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1651         (Qbig5_2): Likewise.
1652         (decode_defined_char): Support CONVERSION_BIG5_1 and
1653         CONVERSION_BIG5_2.
1654         (decode_builtin_char): Likewise.
1655         (charset_code_point): Likewise.
1656         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1657         'conversion in UTF-2000.
1658         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1659         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1660         `chinese-big5-2' as children of `chinese-big5'.
1661
1662         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1663         (CONVERSION_BIG5_2): New macro.
1664
1665 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1666
1667         * text-coding.c (char_encode_big5): Support entity-reference.
1668
1669 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1670
1671         * text-coding.c (char_encode_as_entity_reference): New function.
1672         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1673
1674 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1675
1676         * text-coding.c (decode_coding_big5): Support entity-reference
1677         decoding feature.
1678
1679 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1680
1681         * text-coding.c (allocate_coding_system): Initialize initial
1682         charsets for CODESYS_UTF8.
1683         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1684         charset-g2 for CODESYS_UTF8.
1685         (decode_coding_utf8): Use charset-g0.
1686         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1687         to force variants to map to UCS.
1688
1689 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1690
1691         * text-coding.c (Qutf_8_mcs): New variable.
1692         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1693         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1694         instead of `utf-8' in UTF-2000.
1695
1696 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1697
1698         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1699         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1700         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1701         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1702         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1703         CONVERSION_96x96x96x96 are introduced.
1704         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1705         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1706         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1707
1708         * char-ucs.h (CONVERSION_94): New macro.
1709         (CONVERSION_96): New macro.
1710         (CONVERSION_94x94): New macro.
1711         (CONVERSION_96x96): New macro.
1712         (CONVERSION_94x94x94): New macro.
1713         (CONVERSION_96x96x96): New macro.
1714         (CONVERSION_94x94x94x60): New macro.
1715         (CONVERSION_94x94x94x94): New macro.
1716         (CONVERSION_96x96x96x96): New macro.
1717
1718 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1719
1720         * chartab.c (Vcharacter_variant_table): Deleted.
1721         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1722         of `Vcharacter_variant_table'.
1723         (Fput_char_attribute): Likewise.
1724         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1725         (complex_vars_of_chartab): Likewise.
1726
1727 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1728
1729         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1730
1731         * fns.c (Qideographic_structure): New variable.
1732         (Qkeyword_char): New variable.
1733         (ids_format_unit): New function.
1734         (Fideographic_structure_to_ids): New function.
1735         (syms_of_fns): Add new symbols `ideographic-structure' and
1736         `:char'; add new builtin function `ideographic-structure-to-ids'.
1737
1738         * data.c (Fchar_ref_p): New function.
1739         (syms_of_data): Add new builtin function `char-ref-p'.
1740
1741         * chartab.h: Add an EXFUN for `Ffind_char'.
1742
1743 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1744
1745         * text-coding.c (Vcharacter_composition_table): Deleted.
1746         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1747         in every UTF-2000.
1748
1749         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1750         UTF-2000.
1751         (Vcharacter_composition_table): Deleted.
1752         (Fget_composite_char): Use the implementation for external-DB
1753         support in every UTF-2000.
1754         (Fput_char_attribute): Likewise.
1755         (char_attribute_system_db_file): Don't define if external-DB
1756         feature is not available.
1757         (Fsave_char_attribute_table): Likewise.
1758         (Fmount_char_attribute_table): Likewise.
1759         (Fclose_char_attribute_table): Likewise.
1760         (Freset_char_attribute_table): Likewise.
1761         (Fload_char_attribute_table): Likewise.
1762         (syms_of_chartab): Don't define `save-char-attribute-table',
1763         `mount-char-attribute-table', `reset-char-attribute-table',
1764         `close-char-attribute-table' and `load-char-attribute-table' if
1765         external-DB feature is not available.
1766         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1767
1768 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1769
1770         * text-coding.c (Qcomposition): Add extern if external-DB feature
1771         is supported.
1772         (Vcharacter_composition_table): Don't add extern if external-DB
1773         feature is supported.
1774         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1775         character composition rule if external-DB feature is supported.
1776
1777         * chartab.c (Vcharacter_composition_table): Don't define if
1778         external-DB feature is supported.
1779         (Qcomposition): New variable.
1780         (Fget_composite_char): New implementation for external-DB support.
1781         (Fput_char_attribute): Use `composition' property of each
1782         character instead of `Vcharacter_composition_table' to store
1783         character-composition rules if external-DB feature is supported.
1784         (syms_of_chartab): Add new symbol `composition'.
1785         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1786         external-DB feature is supported.
1787
1788 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1789
1790         * chartab.c (Vchar_db_stingy_mode): New variable.
1791         (load_char_attribute_maybe): Close database if
1792         Vchar_db_stingy_mode is not NIL.
1793         (Fload_char_attribute_table_map_function): Use
1794         `get_char_id_table_0' instead of `get_char_id_table'.
1795         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1796
1797         * chartab.h (get_char_id_table_0): New inline function.
1798         (get_char_id_table): Use `get_char_id_table_0'.
1799
1800 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1801
1802         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1803         and `COMPOSE_ADD_CHAR'.
1804         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1805
1806 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1807
1808         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1809         instead of `DECODE_ADD_UCS_CHAR'.
1810         (COMPOSE_ADD_CHAR): Likewise.
1811
1812 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1813
1814         * text-coding.c (decode_flush_er_chars): New inline function.
1815         (decode_add_er_char): New function.
1816         (decode_coding_utf8): Use `decode_flush_er_chars' and
1817         `decode_add_er_char'.
1818
1819 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1820
1821         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1822         done before `decode_output_utf8_partial_char'.
1823
1824         * mule-charset.c (complex_vars_of_mule_charset): Specify
1825         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1826         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1827
1828 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1829
1830         * mule-charset.c (decode_defined_char): New function; search
1831         mother.
1832         (decode_builtin_char): Don't search mother if
1833         XCHARSET_MAX_CODE(charset) == 0.
1834         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1835         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1836         (Fdecode_char): Use `decode_defined_char' instead of
1837         `DECODE_DEFINED_CHAR'.
1838         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1839         mother of `Vcharset_ucs_jis'.
1840
1841         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1842         instead of `DECODE_DEFINED_CHAR'.
1843
1844         * char-ucs.h (decode_defined_char): Renamed from
1845         `DECODE_DEFINED_CHAR'; changed to normal function.
1846         (DECODE_CHAR): Use `decode_defined_char' instead of
1847         `DECODE_DEFINED_CHAR'.
1848
1849         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1850
1851 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1852
1853         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1854
1855         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1856         variable.
1857         (Quse_entity_reference): New variable.
1858         (Qd): New variable.
1859         (Qx): New variable.
1860         (QX): New variable.
1861         (coding_system_description): Add description for
1862         `ccs_priority_list'.
1863         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1864         (allocate_coding_system): Initialize `ccs_priority_list' in
1865         UTF-2000.
1866         (Fmake_coding_system): Add description about
1867         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1868         (codesys).
1869         (Fcoding_system_property): Accept `disable-composition' and
1870         `use-entity-reference' in UTF-2000.
1871         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1872         in UTF-2000.
1873         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1874         (decode_coding_utf8): Decode entity-reference if
1875         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1876         (char_encode_utf8): Encode non-Unicode characters as
1877         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1878         (str->codesys).
1879         (syms_of_file_coding): Add new symbols `use-entity-reference',
1880         `d', `x', `X'.
1881         (vars_of_file_coding): Add new variable
1882         `coded-charset-entity-reference-alist'.
1883         (complex_vars_of_file_coding): Declare `disable-composition' and
1884         `use-entity-reference' to be coding-system-properties in UTF-2000.
1885
1886         * file-coding.h (struct Lisp_Coding_System): Add new member
1887         `use_entity_reference' and `ccs_priority_list'.
1888         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1889         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1890         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1891
1892 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1893
1894         * chartab.c (save_uint8_byte_table): Don't clear the table.
1895         (save_uint16_byte_table): Likewise.
1896         (save_byte_table): Likewise.
1897         (Fmount_char_attribute_table): New function.
1898         (syms_of_chartab): Add new builtin function
1899         `mount-char-attribute-table'.
1900
1901 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1902
1903         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1904         "w+" mode.
1905         (load_char_decoding_entry_maybe): Open database as read-only mode.
1906
1907         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1908         open database as "w+" mode.
1909         (load_char_attribute_maybe): Open database as read-only mode.
1910         (Fload_char_attribute_table): Likewise.
1911
1912 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1913
1914         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1915         (char_table_description): Delete member `db_file'.
1916         (Fmake_char_table): Don't refer `ct->db_file'.
1917         (Fcopy_char_table): Likewise.
1918         (Fsave_char_attribute_table): Likewise.
1919         (Fclose_char_attribute_table): Likewise.
1920         (Freset_char_attribute_table): Likewise.
1921         (load_char_attribute_maybe): Likewise.
1922         (Fload_char_attribute_table): Likewise.
1923
1924         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1925
1926 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1927
1928         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1929         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1930         `ct->db' is living.
1931         (load_char_attribute_maybe): Likewise.
1932         (Fload_char_attribute_table): Likewise.
1933
1934 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1935
1936         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1937         `ct->db_file' unconditionally.
1938
1939 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1940
1941         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1942         UTF-2000.
1943         (char_table_description): Add description for `db_file' and `db'
1944         in UTF-2000.
1945         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1946         UTF-2000.
1947         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1948         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1949         (Fclose_char_attribute_table): New function.
1950         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1951         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1952         and `cit->db'.
1953         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1954         (syms_of_chartab): Add new builtin function
1955         `Fclose_char_attribute_table'.
1956
1957 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1958
1959         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1960         `db' in UTF-2000.
1961         (load_char_attribute_maybe): Change interface.
1962         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1963
1964 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1965
1966         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1967
1968 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1969
1970         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1971         instead of `DECODE_CHAR' for mother; don't use special code for
1972         chinese-big5 to use code space of chinese-big5-1 and
1973         chinese-big5-2.
1974         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1975         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1976
1977         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1978         (MAX_CHAR_BIG5_CDP): Revival.
1979
1980 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1981
1982         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1983         the XLFD registry-encoding name of `chinese-big5'.
1984
1985 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1986
1987         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1988         (Qchinese_big5_cdp): Deleted.
1989         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1990         (complex_vars_of_mule_charset): Delete coded-charset
1991         `chinese-big5-cdp'.
1992
1993         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1994         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1995         `CHARSET_ID_OFFSET - n' for private CCS.
1996         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1997         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1998         of `MIN_LEADING_BYTE'.
1999         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
2000         `(CHARSET_ID_OFFSET - 97)'.
2001         (MIN_CHAR_BIG5_CDP): Deleted.
2002         (MAX_CHAR_BIG5_CDP): Deleted.
2003
2004 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2005
2006         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
2007
2008 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2009
2010         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
2011         (vars_of_mule): Add new variable `utf-2000-version' [moved from
2012         chartab.c].
2013
2014         * chartab.c (Vutf_2000_version): Moved to mule.c.
2015         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
2016
2017 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2018
2019         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
2020         when HAVE_CHISE_CLIENT is not defined.
2021
2022         * mule.c (vars_of_mule): Provide feature `chise' when
2023         HAVE_CHISE_CLIENT is defined.
2024
2025 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2026
2027         * config.h.in (UTF2000): Add comment.
2028         (HAVE_CHISE_CLIENT): New macro.
2029
2030 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2031
2032         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2033         CONSP.
2034         (Fput_char_attribute): Likewise.
2035         (char_attribute_system_db_file): Encode file-name of attribute.
2036         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2037         the initial value.
2038
2039 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2040
2041         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2042         (Fsave_charset_mapping_table): Use
2043         `char_attribute_system_db_file'.
2044         (load_char_decoding_entry_maybe): Likewise.
2045
2046         * chartab.h (Qsystem_char_id): New external variable.
2047         (char_attribute_system_db_file): New prototype.
2048
2049         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2050         (char_attribute_system_db_file): New function.
2051         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2052         (Freset_char_attribute_table): Likewise.
2053         (load_char_attribute_maybe): Likewise.
2054         (Fload_char_attribute_table): Likewise.
2055         (syms_of_chartab): Add new symbol `system-char-id'.
2056
2057 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2058
2059         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2060         `XCHARSET_GRAPHIC(ccs)'.
2061
2062 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2063
2064         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2065
2066 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2067
2068         * chartab.c (Q_ucs_variants): New variable.
2069         (syms_of_chartab): Add new symbol `->ucs-variants'.
2070         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2071         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2072         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2073
2074         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2075
2076         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2077         `HAVE_DATABASE' is defined.
2078         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2079         `HAVE_DATABASE' is defined.
2080
2081 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2082
2083         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2084         attribute-table.
2085         (Freset_char_attribute_table): New function.
2086         (syms_of_chartab): Add new builtin function
2087         `reset-char-attribute-table'.
2088
2089 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2090
2091         * chartab.c (load_char_attribute_maybe): Don't make directories.
2092
2093 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2094
2095         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2096
2097         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2098         for decoding-table.
2099
2100 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2101
2102         * mule-charset.c (Fsave_charset_mapping_table): Use
2103         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2104
2105         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2106         instead of `XCHARSET_CHARS'.
2107
2108 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2109
2110         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2111         (XCHARSET_BYTE_SIZE): Likewise.
2112
2113         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2114         mule-charset.c].
2115         (XCHARSET_BYTE_SIZE): Likewise.
2116
2117 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2118
2119         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2120         data-directory to store database.
2121         (Fsave_char_attribute_table): Likewise.
2122         (load_char_attribute_maybe): Likewise.
2123         (Fload_char_attribute_table): Likewise.
2124
2125 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2126
2127         * mule-charset.c (Fsave_charset_mapping_table): New function.
2128         (syms_of_mule_charset): Add new builtin function
2129         `save-charset-mapping-table'.
2130
2131 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2132
2133         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2134         (get_ccs_octet_table): New inline function.
2135         (put_ccs_octet_table): Likewise.
2136         (decoding_table_put_char): Use `get_ccs_octet_table' and
2137         `put_ccs_octet_table'.
2138         (decoding_table_remove_char): Use `decoding_table_put_char'.
2139         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2140
2141         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2142         into encoding_table.
2143         (make_charset): Use Qunbound instead Qnil as initial value of
2144         decoding_table.
2145
2146 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2147
2148         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2149         element is Qunloaded.
2150         (map_over_uint16_byte_table): Likewise.
2151         (map_over_byte_table): Likewise.
2152         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2153         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2154         database support, load encoding-table of the specified
2155         coded-charset if it is not loaded yet.
2156         (save_uint8_byte_table): New function of UTF-2000 with external
2157         database support.
2158         (save_uint16_byte_table): Likewise.
2159         (save_byte_table): Likewise.
2160         (Fput_char_attribute): Don't store value into external database
2161         even if the external database feature is supported in UTF-2000;
2162         set `attribute' as name of char-table if the external database
2163         feature is supported.
2164         (Fsave_char_attribute_table): New function in UTF-2000.
2165         (syms_of_chartab): Add new builtin function
2166         `save-char-attribute-table' in UTF-2000.
2167
2168 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2169
2170         * chartab.c (char_attribute_table_to_put): New variable in
2171         UTF-2000.
2172         (Qput_char_table_map_function): Likewise.
2173         (value_to_put): Likewise.
2174         (Fput_char_table_map_function): New function in UTF-2000.
2175         (put_char_table): Use `Fmap_char_attribute' for
2176         CHARTAB_RANGE_CHARSET in UTF-2000.
2177         (Fput_char_attribute): Store symbol instead of string in
2178         `XCHAR_TABLE_NAME (table)'.
2179         (load_char_attribute_maybe): Likewise.
2180         (syms_of_chartab): Add new symbol/function
2181         `put-char-table-map-function'.
2182
2183 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2184
2185         * database.h: Add new EXFUN for `Fmap_database'.
2186
2187         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2188         (syms_of_database): Likewise.
2189
2190         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2191         UTF-2000.
2192         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2193         (XCHAR_TABLE_UNLOADED): Likewise.
2194
2195         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2196         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2197         HAVE_DATABASE is defined.
2198         (char_attribute_table_to_load): New variable of UTF-2000 with
2199         external database support.
2200         (Qload_char_attribute_table_map_function): Likewise.
2201         (Fload_char_attribute_table_map_function): New function of
2202         UTF-2000 with external database support.
2203         (Fload_char_attribute_table): New function of UTF-2000.
2204         (Fmap_char_attribute): Call Fload_char_attribute_table if
2205         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2206         (syms_of_chartab): Add new symbol and function
2207         `load-char-attribute-table-map-function' in UTF-2000 with external
2208         database support; add new function `load-char-attribute-table' in
2209         UTF-2000.
2210
2211 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2212
2213         * chartab.h (load_char_attribute_maybe): New prototype for
2214         UTF-2000 with DATABASE support.
2215         (get_char_id_table): Use `load_char_attribute_maybe' if
2216         HAVE_DATABASE is defined.
2217
2218         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2219         with DATABASE support.
2220
2221 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2222
2223         * chartab.c (Fput_char_attribute): Use S-expression as key of
2224         external database.
2225
2226         * chartab.h (get_char_id_table): Use S-expression as key of
2227         external database.
2228
2229 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2230
2231         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2232         if an element is not loaded, load the corresponding attributes
2233         from an external database.
2234         (map_over_uint16_byte_table): Likewise.
2235         (map_over_byte_table): Likewise.
2236         (map_char_table): Modify for `map_over_uint8_byte_table',
2237         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2238         element is not loaded, load the corresponding attributes from an
2239         external database.
2240         (Fput_char_attribute): Change initial values to Qunloaded.
2241
2242         * chartab.h (get_char_id_table): If a character attribute is not
2243         loaded and the attribute value is not found in an external
2244         database, store Qunbound as the attribute value.
2245
2246 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2247
2248         * chartab.c (BT_UINT8_unloaded): New macro.
2249         (UINT8_VALUE_P): Accept Qunloaded.
2250         (UINT8_ENCODE): Likewise.
2251         (UINT8_DECODE): Likewise.
2252         (BT_UINT16_unloaded): New macro.
2253         (UINT16_VALUE_P): Accept Qunloaded.
2254         (UINT16_ENCODE): Likewise.
2255         (UINT16_DECODE): Likewise.
2256         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2257         BT_UINT16_unloaded.
2258         (mark_char_table): Mark `ct->name' in UTF-2000.
2259         (char_table_description): Add `name' in UTF-2000.
2260         (Fmake_char_table): Initialize `ct->name'.
2261         (Fcopy_char_table): Copy `ct->name'.
2262         (Fput_char_attribute): Store value into an external database if
2263         HAVE_DATABASE is defined.
2264
2265         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2266         UTF-2000.
2267         (CHAR_TABLE_NAME): New macro in UTF-2000.
2268         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2269         (get_char_id_table): Try to read an external database if Qunloaded
2270         is stored in a table.
2271
2272         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2273         Qunloaded.
2274
2275 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2276
2277         * database.h: Add EXFUN definitions for Fopen_database,
2278         Fput_database, Fget_database and Fclose_database.
2279
2280         * data.c (Qunloaded): New variable in UTF-2000.
2281
2282         * lisp.h (Qunloaded): New variable in UTF-2000.
2283
2284 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2285
2286         * mule-charset.c (put_char_ccs_code_point): Modify for
2287         `decoding_table_remove_char' and `decoding_table_put_char'.
2288         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2289
2290         * char-ucs.h (decoding_table_remove_char): Change arguments to
2291         hide decoding_table vector.
2292         (decoding_table_put_char): Likewise.
2293
2294 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2295
2296         * mule-charset.c (decoding_table_remove_char): Moved to
2297         char-ucs.h.
2298         (decoding_table_put_char): Likewise.
2299
2300         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2301         from mule-charset.c].
2302         (decoding_table_remove_char): New inline function [moved from
2303         mule-charset.c].
2304         (decoding_table_put_char): Likewise.
2305
2306 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2307
2308         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2309         extension.
2310
2311 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2312
2313         * mule-charset.c (decode_builtin_char): Support mother charsets.
2314
2315 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2316
2317         * mule-charset.c (Q94x94x60): New variable.
2318         (charset_code_point): Support conversion `94x94x60'.
2319         (Fmake_charset): Likewise.
2320         (syms_of_mule_charset): Add new symbol `94x94x60'.
2321
2322         * char-ucs.h (CONVERSION_94x94x60): New macro.
2323
2324 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2325
2326         * mule-charset.c (charset_code_point): Unify code about
2327         `code-offset'.
2328
2329 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2330
2331         * mule-charset.c (charset_code_point): Merge code about builtin
2332         characters into code about mother charsets; don't use
2333         `range_charset_code_point'.
2334         (range_charset_code_point): Deleted.
2335
2336 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2337
2338         * mule-charset.c (Qcode_offset): New variable.
2339         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2340         `max-code'; accept new property `code-offset'.
2341         (syms_of_mule_charset): Add new symbol `code-offset'.
2342
2343 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2344
2345         * mule-charset.c (range_charset_code_point): Fixed.
2346
2347 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2348
2349         * mule-charset.c (decode_builtin_char): Change semantics of
2350         code-offset of coded-charset.
2351         (charset_code_point): Likewise.
2352         (range_charset_code_point): Likewise.
2353         (complex_vars_of_mule_charset): Modify for the change.
2354
2355 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2356
2357         * mule-charset.c (Fencode_char): Reverse arguments.
2358
2359         * mule-charset.c (charset_code_point): Fixed.
2360
2361 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2362
2363         * mule-charset.c (Vcharset_mojikyo): Deleted.
2364         (Vcharset_mojikyo_2022_1): Deleted.
2365         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2366         (Qmin_code): New variable in UTF-2000.
2367         (Qmax_code): Likewise.
2368         (Qmother): Likewise.
2369         (Qconversion): Likewise.
2370         (Q94x60): Likewise.
2371         (Qmojikyo): Deleted.
2372         (Qmojikyo_2022_1): Deleted.
2373         (Qmojikyo_pj_{1..22}): Deleted.
2374         (mark_charset): Mark `cs->mother'.
2375         (charset_description): Add description for `mother'.
2376         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2377         new arguments `mother' and `conversion'; use
2378         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2379         (charset_code_point): Moved from char-ucs.h; support `mother'
2380         charset feature.
2381         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2382         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2383         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2384         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2385         allow 2 as the value of `graphic' in UTF-2000; add new properties
2386         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2387         require `final' in UTF-2000; modify for `make_charset'.
2388         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2389         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2390         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2391         (Fencode_char): New function.
2392         (syms_of_mule_charset): Add new builtin function `encode-char' in
2393         UTF-2000; add new symbols `min-code', `max-code', `mother',
2394         `conversion' and `94x60'; delete symbols `mojikyo',
2395         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2396         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2397         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2398         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2399
2400         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2401         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2402
2403         * char-ucs.h (Vcharset_mojikyo): Deleted.
2404         (Vcharset_mojikyo_2022_1): Deleted.
2405         (LEADING_BYTE_MOJIKYO): Deleted.
2406         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2407         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2408         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2409         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2410         add new member `mother'; add new member `conversion'.
2411         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2412         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2413         (CHARSET_MOTHER): New macro.
2414         (CHARSET_CONVERSION): New macro.
2415         (CONVERSION_IDENTICAL): New macro.
2416         (CONVERSION_94x60): New macro.
2417         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2418         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2419         (XCHARSET_MOTHER): New macro.
2420         (XCHARSET_CONVERSION): New macro.
2421         (MIN_CHAR_MOJIKYO): Deleted.
2422         (MAX_CHAR_MOJIKYO): Deleted.
2423         (DECODE_MOJIKYO_2022): Deleted.
2424         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2425         (charset_code_point): Changed to non-inline function.
2426         (encode_char_1): Use `charset_code_point'.
2427         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2428
2429 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2430
2431         * lread.c (read_compiled_function): Fix prototype.
2432         (read_vector): Likewise.
2433
2434 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2435
2436         * lrecord.h (struct lrecord_header): Delete `older'.
2437         (set_lheader_implementation): Delete code for `older'.
2438         (set_lheader_older_implementation): Deleted.
2439         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2440         (OLDER_RECORD_P): Deleted.
2441         (OLDER_RECORD_HEADER_P): Deleted.
2442         (alloc_older_lcrecord): Deleted.
2443         (alloc_older_lcrecord_type): Deleted.
2444
2445         * alloc.c (all_older_lcrecords): Deleted.
2446         (alloc_older_lcrecord): Deleted.
2447         (disksave_object_finalization_1): Delete code for older objects.
2448         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2449         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2450
2451 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2452
2453         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2454         instead of `make_older_vector'.
2455         (put_char_ccs_code_point): Likewise.
2456         (mark_charset): Mark `cs->decoding_table'.
2457         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2458
2459         * lisp.h (make_older_vector): Deleted.
2460         (make_vector_newer): Deleted.
2461
2462         * config.h.in (HAVE_GGC): Deleted.
2463
2464         * alloc.c (make_older_vector): Deleted.
2465         (make_vector_newer_1): Deleted.
2466         (make_vector_newer): Deleted.
2467
2468 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2469
2470         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2471         (Qideograph_daikanwa_2): New variable.
2472         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2473         (complex_vars_of_mule_charset): Add new coded-charset
2474         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2475         `LEADING_BYTE_DAIKANWA'.
2476
2477         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2478         (LEADING_BYTE_DAIKANWA_1): New macro.
2479         (LEADING_BYTE_DAIKANWA_2): New macro.
2480         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2481
2482 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2483
2484         * mule-charset.c (complex_vars_of_mule_charset): Change
2485         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2486         the second revised version.
2487
2488 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2489
2490         * mule-charset.c (Vcharset_ucs_smp): New variable.
2491         (Vcharset_ucs_sip): New variable.
2492         (Qucs_smp): New variable.
2493         (Qucs_sip): New variable.
2494         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2495         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2496         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2497         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2498         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2499         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2500
2501         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2502         (LEADING_BYTE_UCS_SIP): New macro.
2503         (MIN_CHAR_SMP): New macro.
2504         (MAX_CHAR_SMP): New macro.
2505         (MIN_CHAR_SIP): New macro.
2506         (MAX_CHAR_SIP): New macro.
2507
2508 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2509
2510         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2511         utf-2000.
2512
2513 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2514
2515         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2516         value; don't store value into `encoding_table' of `Lisp_Charset'.
2517         (mark_charset): `encoding_table' was deleted.
2518         (charset_description): Likewise.
2519         (make_charset): Likewise.
2520         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2521         `put_char_ccs_code_point'.
2522
2523         * chartab.h (Fput_char_attribute): New EXFUN.
2524
2525         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2526         is unified with normal symbol space.
2527         (Fget_char_attribute): Likewise.
2528         (Fput_char_attribute): Likewise; behavior of
2529         `put_char_ccs_code_point' is changed.
2530
2531         * char-ucs.h: Include "elhash.h".
2532         (Vchar_attribute_hash_table): New external variable.
2533         (struct Lisp_Charset): Delete `encoding_table'.
2534         (CHARSET_ENCODING_TABLE): New implementation; refer
2535         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2536         `Lisp_Charset'.
2537
2538 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2539
2540         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2541         (cs) == 0.
2542
2543 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2544
2545         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2546         `chinese-big5'.
2547
2548 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2549
2550         * chartab.c (uint8_byte_table_description): New constant.
2551         (uint8-byte-table): Use `uint8_byte_table_description'.
2552         (uint16_byte_table_description): New constant.
2553         (uint16-byte-table): Use `uint16_byte_table_description'.
2554
2555 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2556
2557         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2558         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2559
2560 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2561
2562         * mule-charset.c (Vcharset_ucs_ks): New variable.
2563         (Qucs_ks): New variable.
2564         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2565         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2566
2567         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2568
2569 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2570
2571         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2572         (Fdecode_char): Likewise.
2573
2574         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2575         chartab.h.
2576         (Fdefine_char): Modify for Fdecode_char.
2577         (Ffind_char): Likewise.
2578
2579         * mule-charset.c (Fdecode_char): Add new optional argument
2580         `defined-only'.
2581         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2582
2583 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2584
2585         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2586         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2587         (allocate_coding_system): Initialize initial-charsets of
2588         CODESYS_BIG5 in XEmacs UTF-2000.
2589         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2590         CODESYS_BIG5 in XEmacs UTF-2000.
2591         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2592         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2593
2594         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2595         variables.
2596         (Qideograph_hanziku_{1 .. 12}): Likewise.
2597         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2598         .. 12}'.
2599         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2600         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2601         `ideograph-hanziku-{1 .. 12}'.
2602
2603         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2604         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2605         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2606         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2607         (DECODE_DEFINED_CHAR): New inline function.
2608         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2609
2610 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2611
2612         * mule-charset.c (Vcharset_china3_jef): Renamed from
2613         `Vcharset_japanese_jef_china3'.
2614         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2615         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2616         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2617         (syms_of_mule_charset): Rename `china3-jef' from
2618         `japanese-jef-china3'.
2619         (complex_vars_of_mule_charset): Likewise; rename
2620         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2621
2622         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2623         `LEADING_BYTE_JEF_CHINA3'.
2624         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2625         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2626
2627 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2628
2629         * mule-charset.c (encode_builtin_char_1): Comment out special code
2630         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2631
2632         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2633         (MAX_CHAR_MOJIKYO_0): Comment out.
2634         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2635         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2636         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2637         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2638
2639 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2640
2641         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2642         (Qideograph_cbeta): New variable.
2643         (encode_builtin_char_1): Comment out special code for
2644         coded-charset `mojikyo' and `japanese-jef-china3'.
2645         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2646         (complex_vars_of_mule_charset): Add new coded-charset
2647         `ideograph-cbeta'.
2648
2649         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2650         (MIN_CHAR_CBETA): New macro.
2651         (MAX_CHAR_CBETA): New macro.
2652
2653 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2654
2655         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2656         (LEADING_BYTE_JEF_CHINA3): New macro.
2657         (MIN_CHAR_JEF_CHINA3): New macro.
2658         (MAX_CHAR_JEF_CHINA3): Likewise.
2659         (DECODE_CHAR): Fixed.
2660
2661 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2662
2663         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2664         (Qjapanese_jef_china3): New variable.
2665         (encode_builtin_char_1): Support `japanese-jef-china3'.
2666         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2667         (complex_vars_of_mule_charset): Add new coded-charset
2668         `japanese-jef-china3'.
2669
2670 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2671
2672         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2673         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2674         94^4, 96^3, 96^4, 128^n and 256^n set.
2675         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2676         (map_char_table): Likewise.
2677
2678 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2679
2680         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2681         UTF-2000.
2682
2683 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2684
2685         * chartab.h (get_char_id_table): New inline function.
2686
2687         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2688         function.
2689
2690 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2691
2692         * chartab.h (decode_char_table_range): New prototype in XEmacs
2693         UTF-2000.
2694         (put_char_id_table): New inline function in XEmacs UTF-2000.
2695
2696         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2697         function.
2698         (decode_char_table_range): Delete static declaration in XEmacs
2699         UTF-2000.
2700
2701 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2702
2703         * chartab.c (put_char_id_table): Use `put_char_table'.
2704
2705 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2706
2707         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2708         (map_over_uint16_byte_table): Likewise.
2709         (map_over_byte_table): Likewise.
2710         (map_char_table): Modify for `map_over_uint8_byte_table',
2711         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2712         UTF-2000.
2713
2714 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2715
2716         * chartab.c (struct map_char_table_for_charset_arg): New
2717         structure.
2718         (map_char_table_for_charset_fun): New function.
2719         (map_char_table): Use `map_char_table' for encoding_table of
2720         `range->charset'.
2721
2722 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2723
2724         * chartab.c (map_char_table): Check a character is found in
2725         range->charset instead of non default value is defined in
2726         char-table when range is CHARTAB_RANGE_ROW.
2727
2728 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2729
2730         * chartab.c (map_char_id_table): Deleted.
2731         (Fmap_char_attribute): Use `map_char_table' instead of
2732         `map_char_id_table'.
2733
2734 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2735
2736         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2737         UTF-2000.
2738         (update_syntax_table): Deleted in XEmacs UTF-2000.
2739
2740         * syntax.c (find_defun_start): Use `syntax_table' instead of
2741         `mirror_syntax_table' in XEmacs UTF-2000.
2742         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2743         UTF-2000.
2744         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2745         XEmacs UTF-2000.
2746         (Fmatching_paren): Likewise.
2747         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2748         in XEmacs UTF-2000.
2749         (find_start_of_comment): Likewise.
2750         (find_end_of_comment): Likewise.
2751         (Fforward_comment): Likewise.
2752         (scan_lists): Likewise.
2753         (char_quoted): Likewise.
2754         (Fbackward_prefix_chars): Likewise.
2755         (scan_sexps_forward): Likewise.
2756         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2757         (update_syntax_table): Likewise.
2758
2759         * search.c (skip_chars): Use `syntax_table' instead of
2760         `mirror_syntax_table' in XEmacs UTF-2000.
2761         (wordify): Likewise.
2762         (Freplace_match): Likewise.
2763
2764         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2765         `mirror_syntax_table' in XEmacs UTF-2000.
2766         (WORDCHAR_P_UNSAFE): Likewise.
2767         (re_match_2_internal): Likewise.
2768
2769         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2770         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2771
2772         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2773         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2774
2775         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2776         XEmacs UTF-2000.
2777
2778         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2779         UTF-2000.
2780         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2781         (char_table_description): Delete `mirror_table' in XEmacs
2782         UTF-2000.
2783         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2784         UTF-2000.
2785         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2786         (Fcopy_char_table): Likewise.
2787         (put_char_table): Don't call `update_syntax_table' in XEmacs
2788         UTF-2000.
2789
2790         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2791         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2792         (casify_region_internal): Likewise.
2793
2794         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2795
2796         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2797         `mirror_syntax_table' in XEmacs UTF-2000.
2798
2799         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2800         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2801         (Fexpand_abbrev): Likewise.
2802
2803 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2804
2805         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2806
2807 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2808
2809         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2810         (map_over_uint16_byte_table): Likewise.
2811         (map_over_byte_table): Likewise.
2812         (get_char_id_table): Refer `cit->default_value'.
2813         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2814         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2815         of character-id ranges.
2816         (mark_char_table): Mark `ct->default_value'.
2817         (char_table_description): Add `default_value'.
2818         (fill_char_table): Use `default_value'.
2819         (decode_char_table_range): Decode `nil' as
2820         `CHARTAB_RANGE_DEFAULT'.
2821         (get_char_id_table): Refer `cit->default_value'.
2822         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2823         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2824         temporary hack; check value of char-table is bound or not.
2825         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2826
2827         * chartab.h (struct Lisp_Char_Table): Add new member
2828         `default_value' in XEmacs UTF-2000.
2829         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2830         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2831         UTF-2000.
2832
2833 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2834
2835         * chartab.h (Lisp_Char_ID_Table): Deleted.
2836
2837         * chartab.c (char_table_description): Fix typo.
2838         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2839         `Lisp_Char_ID_Table'.
2840
2841 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2842
2843         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2844         `CHAR_ID_TABLE_P'.
2845
2846         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2847         `CHAR_ID_TABLE_P'.
2848
2849         * chartab.h (XCHAR_ID_TABLE): Deleted.
2850         (XSETCHAR_ID_TABLE): Deleted.
2851         (CHAR_ID_TABLE_P): Deleted.
2852
2853         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2854         `CHAR_ID_TABLE_P'.
2855         (Fget_composite_char): Likewise.
2856         (put_char_table): Likewise.
2857         (add_char_attribute_alist_mapper): Fixed.
2858         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2859         `CHAR_ID_TABLE_P'.
2860         (Fget_char_attribute): Likewise.
2861         (Fget_char_attribute): Likewise.
2862         (Fmap_char_attribute): Likewise.
2863
2864         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2865         `CHAR_ID_TABLE_P'.
2866         (encode_char_1): Likewise.
2867
2868 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2869
2870         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2871         `XCHAR_ID_TABLE'.
2872
2873         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2874         instead of `XCHAR_ID_TABLE'.
2875         (remove_char_ccs): Likewise.
2876
2877         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2878         `XCHAR_ID_TABLE'.
2879         (Fget_composite_char): Likewise.
2880         (Fchar_variants): Likewise.
2881         (put_char_table): Likewise.
2882         (add_char_attribute_alist_mapper): Likewise.
2883         (Fchar_attribute_alist): Likewise.
2884         (Fget_char_attribute): Likewise.
2885         (Fput_char_attribute): Likewise.
2886         (Fmap_char_attribute): Likewise.
2887         (Fmap_char_attribute): Likewise.
2888
2889         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2890         `XCHAR_ID_TABLE'.
2891         (encode_char_1): Likewise.
2892
2893 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2894
2895         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2896         `Lisp_Char_ID_Table'.
2897         (mark_char_id_table): Deleted.
2898         (print_char_id_table): Likewise.
2899         (char_id_table_equal): Likewise.
2900         (char_id_table_hash): Likewise.
2901         (char_id_table_description): Likewise.
2902         (char_id_table): Likewise.
2903         (make_char_id_table): Use `Fmake_char_table' and
2904         `fill_char_table'.
2905         (get_char_id_table): Use `Lisp_Char_Table' instead of
2906         `Lisp_Char_ID_Table'.
2907         (put_char_id_table): Likewise.
2908         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2909         `XCHAR_ID_TABLE'.
2910         (Fremove_char_attribute): Likewise.
2911         (syms_of_chartab): Don't define type `char-id-table'.
2912
2913         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2914         (char_id_table): Likewise.
2915         (GC_CHAR_ID_TABLE_P): Likewise.
2916         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2917         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2918         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2919         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2920         (get_char_id_table): Use `Lisp_Char_Table' instead of
2921         `Lisp_Char_ID_Table'.
2922         (put_char_id_table_0): Likewise.
2923         (put_char_id_table): Likewise.
2924
2925 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2926
2927         * chartab.h: Lisp_Byte_Table related codes are moved from
2928         chartab.h.
2929
2930         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2931
2932 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2933
2934         * chartab.h: Don't include "chartab.h".
2935         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2936         (Lisp_Char_ID_Table): Likewise.
2937         (char_id_table): Likewise.
2938         (XCHAR_ID_TABLE): Likewise.
2939         (XSETCHAR_ID_TABLE): Likewise.
2940         (CHAR_ID_TABLE_P): Likewise.
2941         (GC_CHAR_ID_TABLE_P): Likewise.
2942         (get_char_id_table): Likewise.
2943
2944         * char-ucs.h: Include "chartab.h".
2945         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2946         (Lisp_Char_ID_Table): Likewise.
2947         (char_id_table): Likewise.
2948         (XCHAR_ID_TABLE): Likewise.
2949         (XSETCHAR_ID_TABLE): Likewise.
2950         (CHAR_ID_TABLE_P): Likewise.
2951         (GC_CHAR_ID_TABLE_P): Likewise.
2952         (get_char_id_table): Likewise.
2953
2954 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2955
2956         * chartab.c (copy_uint8_byte_table): New function.
2957         (copy_uint16_byte_table): New function.
2958         (copy_byte_table): New function.
2959         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2960         characters to call.
2961         (map_over_uint16_byte_table): Likewise.
2962         (map_over_byte_table): Likewise.
2963         (get_byte_table): Move prototype to chartab.h.
2964         (put_byte_table): Likewise.
2965         (put_char_id_table_0): Moved to chartab.h.
2966         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2967         (char_table_entry_equal): Likewise.
2968         (char_table_entry_hash): Likewise.
2969         (char_table_entry_description): Likewise.
2970         (char_table_entry): Likewise.
2971         (make_char_table_entry): Likewise.
2972         (copy_char_table_entry): Likewise.
2973         (get_non_ascii_char_table_value): Likewise.
2974         (map_over_charset_ascii): Likewise.
2975         (map_over_charset_control_1): Likewise.
2976         (map_over_charset_row): Likewise.
2977         (map_over_other_charset): Likewise.
2978         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2979         (print_char_table): Likewise.
2980         (char_table_equal): Likewise.
2981         (char_table_hash): Likewise.
2982         (char_table_description): Likewise.
2983         (fill_char_table): Likewise.
2984         (Fcopy_char_table): Likewise.
2985         (get_char_table): Likewise.
2986         (Fget_range_char_table): Likewise.
2987         (put_char_table): Likewise.
2988         (map_char_table): Likewise.
2989         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2990         UTF-2000.
2991
2992 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2993
2994         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2995         `Vauto_fill_chars' in XEmacs UTF-2000.
2996
2997         * chartab.h (get_byte_table): New prototype [moved from
2998         chartab.c].
2999         (put_byte_table): Likewise [moved from chartab.c].
3000         (put_char_id_table_0): New inline function [moved from chartab.c].
3001         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
3002         (Lisp_Char_Table_Entry): Likewise.
3003         (char_table_entry): Likewise.
3004         (XCHAR_TABLE_ENTRY): Likewise.
3005         (XSETCHAR_TABLE_ENTRY): Likewise.
3006         (CHAR_TABLE_ENTRYP): Likewise.
3007         (CHECK_CHAR_TABLE_ENTRY): Likewise.
3008         (NUM_ASCII_CHARS): Likewise.
3009         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
3010         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
3011
3012 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3013
3014         * chartab.c (get_char_id_table): Change interface.
3015         (put_char_id_table_0): New function.
3016         (put_char_id_table): Change interface; new implementation.
3017         (Fget_composite_char): Modify for interface change of
3018         `get_char_id_table'.
3019         (Fchar_variants): Likewise.
3020         (add_char_attribute_alist_mapper): Likewise.
3021         (Fchar_attribute_alist): Likewise.
3022         (Fget_char_attribute): Likewise.
3023         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
3024         as same as character as the first argument like `put-char-table';
3025         modify for interface change of `put_char_id_table'.
3026         (Fremove_char_attribute): Modify for interface change of
3027         `put_char_id_table'.
3028
3029 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3030
3031         * text-coding.c: Sync up with XEmacs 21.2.41.
3032         (COMPOSE_ADD_CHAR): Modify for interface change of
3033         `get_char_id_table'.
3034
3035         * mule-charset.c (put_char_ccs_code_point): Modify for interface
3036         change of `put_char_id_table'.
3037         (remove_char_ccs): Likewise.
3038
3039         * chartab.h (put_char_id_table): Change interface.
3040
3041         * char-ucs.h (get_char_id_table): Change interface.
3042         (charset_code_point): Modify for interface change of
3043         `get_char_id_table'.
3044         (encode_char_1): Likewise.
3045
3046 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3047
3048         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3049         argument `ccs'.
3050         (map_over_uint16_byte_table): Likewise.
3051         (map_over_byte_table): Likewise.
3052         (map_char_id_table): Add new argument `range' like
3053         `map_char_table'.
3054         (Fmap_char_attribute): Add new argument `range' like
3055         `Fmap_char_table'.
3056
3057 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3058
3059         * chartab.c (map_over_uint8_byte_table): Change interface of
3060         mapping function to use struct chartab_range instead of Emchar.
3061         (map_over_uint16_byte_table): Likewise.
3062         (map_over_byte_table): Likewise.
3063         (map_char_id_table): Likewise.
3064         (struct slow_map_char_id_table_arg): Deleted.
3065         (slow_map_char_id_table_fun): Deleted.
3066         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3067         function `slow_map_char_table_fun' instead of struct
3068         `slow_map_char_id_table_arg' and function
3069         `slow_map_char_id_table_fun'.
3070
3071 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3072
3073         * mule-charset.c: Move char-it-table related codes to chartab.c.
3074         (Vutf_2000_version): Moved to chartab.c.
3075         (Fdefine_char): Likewise.
3076         (Ffind_char): Likewise.
3077         (syms_of_mule_charset): Move types `uint8-byte-table',
3078         `uint16-byte-table', `byte-table' and `char-id-table' to
3079         chartab.c; move functions `char_attribute_list,
3080         `find_char_attribute_table, `char_attribute_alist,
3081         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3082         `map_char_attribute, `define_char, `find_char, `char_variants and
3083         `get_composite_char to chartab.c; move symbols `=>ucs',
3084         `->decomposition', `compat', `isolated', `initial', `medial',
3085         `final', `vertical', `noBreak', `fraction', `super', `sub',
3086         `circle', `square', `wide', `narrow', `small' and `font' to
3087         chartab.c.
3088         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3089         setting codes for `Vcharacter_composition_table' and
3090         `Vcharacter_variant_table' to chartab.c.
3091         (complex_vars_of_mule_charset): Move setting code for
3092         `Vchar_attribute_hash_table' to chartab.c.
3093
3094         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3095         (make_char_id_table): New prototype.
3096         (put_char_id_table): Likewise.
3097         (Fget_char_attribute): Likewise.
3098
3099         * chartab.c: Move char-id-table related code from mule-charset.c.
3100         (Vutf_2000_version): Moved from mule-charset.c.
3101
3102         * char-ucs.h (Qucs): New external variable.
3103         (put_char_ccs_code_point): New prototype.
3104         (remove_char_ccs): Likewise.
3105
3106 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3107
3108         * mule-charset.c (Vcharset_ucs_jis): New variable.
3109         (Qucs_jis): Likewise.
3110         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3111         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3112
3113         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3114
3115 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3116
3117         * mule-charset.c (map_over_uint8_byte_table): New function.
3118         (map_over_uint16_byte_table): Likewise.
3119         (map_over_byte_table): Likewise.
3120         (map_char_id_table): Likewise.
3121         (slow_map_char_id_table_fun): Likewise.
3122         (Fmap_char_attribute): Likewise.
3123         (syms_of_mule_charset): Add new function `map-char-attribute'.
3124
3125 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3126
3127         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3128         (syms_of_mule_charset): Add new function `find-char'.
3129
3130 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3131
3132         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3133         XEmacs UTF-2000.
3134         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3135         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3136         XEmacs UTF-2000.
3137         (complex_vars_of_mule_charset): Add new coded-charset
3138         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3139         `ideograph-gt-pj-*'.
3140
3141         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3142
3143 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3144
3145         * mule-charset.c (encode_builtin_char_1): Purge codes about
3146         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3147         {MIN|MAX}_CHAR_HEBREW.
3148         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3149         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3150
3151         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3152         (MAX_CHAR_GREEK): Purged.
3153         (MIN_CHAR_CYRILLIC): Purged.
3154         (MAX_CHAR_CYRILLIC): Purged.
3155         (MIN_CHAR_HEBREW): Commented out.
3156         (MAX_CHAR_HEBREW): Likewise.
3157
3158 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3159
3160         * mule-charset.c (Qto_ucs): New variable.
3161         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3162         (Fdefine_char): Likewise.
3163         (syms_of_mule_charset): Add new symbol `=>ucs'.
3164
3165 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3166
3167         * mule-charset.c (Fdecode_char): Fixed.
3168
3169 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3170
3171         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3172         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3173         "tcvn5712-1".
3174
3175 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3176
3177         * mule-charset.c (Vcharset_ucs_big5): New variable.
3178         (Qucs_big5): Likewise.
3179         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3180         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3181
3182         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3183
3184 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3185
3186         * mule-charset.c (decode_builtin_char): Check Big5 code range
3187         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3188
3189 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3190
3191         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3192         (Qchinese_gb12345): Likewise.
3193         (Fdecode_builtin_char): Fixed.
3194         (syms_of_mule_charset): Add `chinese-gb12345'.
3195         (complex_vars_of_mule_charset): Add coded-charset
3196         `chinese-gb12345'.
3197
3198         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3199         (LEADING_BYTE_CHINESE_GB12345): New macro.
3200
3201 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3202
3203         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3204         and `latin-viscii-upper' for `latin-viscii'.
3205
3206 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3207
3208         * mule-charset.c (Fdecode_builtin_char): Comment out
3209         regularization code for ISO-IR GR representation.
3210
3211 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3212
3213         * mule-charset.c (decode_builtin_char): New function; renamed from
3214         `make_builtin_char'; return -1 instead of signal.
3215         (Fdecode_builtin_char): Use `decode_builtin_char'.
3216
3217         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3218         `make_builtin_char'.
3219         (DECODE_CHAR): Use `decode_builtin_char' instead of
3220         `make_builtin_char'; use mapping table of `chinese-big5' for
3221         `chinese-big5-{1,2}'.
3222
3223 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3224
3225         * text-coding.c (char_encode_big5): New function.
3226         (char_finish_big5): Likewise.
3227         (reset_encoding_stream): Use `char_encode_big5' and
3228         `char_finish_big5' for CODESYS_BIG5.
3229         (mule_encode): Don't use `encode_coding_big5'.
3230         (encode_coding_big5): Deleted.
3231
3232 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3233
3234         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3235         0x81- in XEmacs UTF-2000.
3236         (detect_coding_big5): Likewise.
3237
3238 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3239
3240         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3241         generate character-id if the CCS property does not have
3242         corresponding predefined character.
3243         (make_builtin_char): Return -1 if corresponding predefined
3244         character is not found.
3245         (Fdecode_char): Return nil if corresponding character is not
3246         found.
3247         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3248         don't map to builtin ucs space.
3249
3250 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3251
3252         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3253         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3254
3255 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3256
3257         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3258         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3259         (Qideograph_gt): Likewise.
3260         (Qideograph_gt_pj_{1..11}): Likewise.
3261         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3262         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3263         `ideograph-gt-pj-11'.
3264         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3265         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3266         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3267
3268         * char-ucs.h (LEADING_BYTE_GT): New macro.
3269         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3270         (MIN_CHAR_GT): Likewise.
3271         (MAX_CHAR_GT): Likewise.
3272
3273 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3274
3275         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3276         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3277
3278         * doprnt.c (unsigned_int_converters): Add `c'.
3279         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3280
3281         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3282         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3283         `MIN_CHAR_MOJIKYO'.
3284         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3285         (MAX_CHAR_MOJIKYO_0): New macro.
3286         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3287
3288 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3289
3290         * mule-charset.c (Fdefine_char): Delete cemented out code.
3291         (encode_builtin_char_1): Modify for new allocation of builtin
3292         Mojikyo characters.
3293
3294         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3295
3296 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3297
3298         * mule-charset.c (Vcharset_ucs_cns): New variable.
3299         (Qucs_cns): New variable.
3300         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3301         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3302
3303 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3304
3305         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3306
3307 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3308
3309         * search.c (search_buffer): Make `charset_base_code' as
3310         character-id >> 6 to eliminate the corresponding last byte in
3311         UTF-8 representation [I'm not sure it is right thing].
3312         (boyer_moore): Likewise.
3313
3314 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3315
3316         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3317         representation in MULE.
3318
3319 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3320
3321         * text-coding.c (Fmake_coding_system): Use
3322         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3323         `EXTERNAL_PROPERTY_LIST_LOOP'.
3324
3325 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3326
3327         * text-coding.c (decode_output_utf8_partial_char): New function.
3328         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3329
3330 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3331
3332         * text-coding.c (decode_coding_utf8): Output original byte
3333         sequence if it is broken; change order of conditions.
3334
3335         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3336         of conditions.
3337
3338         * mb-multibyte.h (BYTE_ASCII_P):
3339         Use bit ops for char-signedness safety.
3340         (BYTE_C0_P): Use bit ops for char-signedness safety.
3341         (BYTE_C1_P): Use bit ops for char-signedness safety.
3342
3343         * character.h: (XCHAR_OR_CHAR_INT):
3344         Always use inline function.
3345         Remove redundant type checking assert() - XINT will abort quite
3346         nicely.
3347
3348 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3349
3350         * text-coding.c: (Fencode_shift_jis_char):
3351         (Fencode_big5_char):
3352         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3353         Replace 0 with '\0' when working with bytes.
3354         Replace initial "(" with "\(" in docstrings.
3355
3356         (Fmake_coding_system):
3357         When type is ccl and value is vector, register it with a proper
3358         symbol.  And checks whether the given ccl program is valid.
3359         (mule_decode): When calling ccl_driver, if src indicates
3360         NULL pointer, set an empty string instead.
3361         (mule_encode): Likewise.
3362
3363         (detect_eol_type):
3364         (detect_coding_sjis):
3365         (decode_coding_sjis):
3366         (detect_coding_big5):
3367         (decode_coding_big5):
3368         (detect_coding_ucs4):
3369         (decode_coding_ucs4):
3370         (detect_coding_utf8):
3371         (decode_coding_utf8):
3372         (detect_coding_iso2022):
3373         (decode_coding_iso2022):
3374         (decode_coding_no_conversion):
3375         (mule_decode):
3376         Make all detecting and decoding functions take an Extbyte * arg.
3377         (text_encode_generic):
3378         (encode_coding_big5):
3379         (encode_coding_no_conversion):
3380         (mule_encode):
3381         Make all encoding functions take a Bufbyte * arg.
3382         Use size_t instead of unsigned int for memory sizes.
3383         Only cast to unsigned char whenever dereferencing Extbyte *.
3384
3385         (struct lrecord_description fcd_description_1): Use countof.
3386         (complex_vars_of_file_coding):
3387         Use countof instead of sizeof.
3388         Use CHECK_NATNUM instead of CHECK_INT.
3389
3390 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3391
3392         * mule-charset.c (Fget_char_attribute): Add new optional argument
3393         `default-value'.
3394         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3395         (remove_char_ccs): Likewise.
3396
3397 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3398
3399         * text-coding.c (char_encode_shift_jis): New implementation in
3400         UTF-2000.
3401         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3402         ...)'.
3403
3404         * mule-charset.c (Vcharset_chinese_big5): New variable in
3405         UTF-2000.
3406         (Qchinese_big5): New variable in UTF-2000.
3407         (BIG5_SAME_ROW): New macro in UTF-2000.
3408         (make_builtin_char): Use builtin characters of
3409         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3410         characters of `Vcharset_chinese_big5'.
3411         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3412         (complex_vars_of_mule_charset): Add new coded-charset
3413         `chinese-big5' in UTF-2000.
3414
3415         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3416         (Vcharset_chinese_big5): New external variable declaration.
3417         (Vcharset_japanese_jisx0208_1990): Likewise.
3418
3419 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3420
3421         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3422         function.
3423         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3424
3425 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3426
3427         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3428         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3429         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3430         `mojikyo-pj-*'.
3431
3432 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3433
3434         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3435
3436 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3437
3438         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3439         to 0.17.
3440
3441 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3442
3443         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3444         for `CHARSET_BY_ATTRIBUTES'.
3445         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3446         `CHARSET_BY_ATTRIBUTES'.
3447
3448         * text-coding.c (struct decoding_stream): Rename member `CH' to
3449         `CPOS'.
3450         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3451         (decode_coding_sjis): Likewise.
3452         (decode_coding_big5): Likewise.
3453         (decode_coding_ucs4): Likewise.
3454         (decode_coding_utf8): Likewise.
3455         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3456         `CHARSET_BY_ATTRIBUTES'.
3457         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3458         `str->counter'; decode 3, 4 bytes sets.
3459         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3460         sets.
3461         (decode_coding_no_conversion): Use `str->cpos' instead of
3462         `str->ch'.
3463
3464         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3465         (Qmojikyo_2022_1): New variable.
3466         (make_charset): Don't use `CHARSET_TYPE_*'.
3467         (range_charset_code_point): Support coded-charset
3468         `mojikyo-2022-1'.
3469         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3470         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3471         `CHARSET_BY_ATTRIBUTES'.
3472         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3473         `CHARSET_BY_ATTRIBUTES'.
3474         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3475         (complex_vars_of_mule_charset): Add new coded-charset
3476         `mojikyo-2022-1'.
3477
3478         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3479         interface; changed to inline function.
3480
3481         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3482         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3483         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3484         (CHARSET_TYPE_94): Deleted.
3485         (CHARSET_TYPE_94X94): Deleted.
3486         (CHARSET_TYPE_96): Deleted.
3487         (CHARSET_TYPE_96X96): Deleted.
3488         (CHARSET_TYPE_128): Deleted.
3489         (CHARSET_TYPE_128X128): Deleted.
3490         (CHARSET_TYPE_256): Deleted.
3491         (CHARSET_TYPE_256X256): Deleted.
3492         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3493         to inline function.
3494         (DECODE_MOJIKYO_2022): New inline function.
3495         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3496         `Vcharset_mojikyo_2022_1'.
3497
3498 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3499
3500         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3501         instead of `EQ'.
3502         (put_byte_table): Likewise.
3503         (char_id_table_equal): Use `get_byte_table' [new implementation].
3504
3505 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3506
3507         * mule-charset.c: Include <limits.h> in UTF-2000.
3508         (BT_UINT8_MIN): New macro in UTF-2000.
3509         (BT_UINT8_MAX): New macro in UTF-2000.
3510         (BT_UINT8_t): New macro in UTF-2000.
3511         (BT_UINT8_nil): New macro in UTF-2000.
3512         (BT_UINT8_unbound): New macro in UTF-2000.
3513         (INT_UINT8_P): New inline function in UTF-2000.
3514         (UINT8_VALUE_P): New inline function in UTF-2000.
3515         (UINT8_ENCODE): New inline function in UTF-2000.
3516         (UINT8_DECODE): New inline function in UTF-2000.
3517         (mark_uint8_byte_table): New function in UTF-2000.
3518         (print_uint8_byte_table): New function in UTF-2000.
3519         (uint8_byte_table_equal): New function in UTF-2000.
3520         (uint8_byte_table_hash): New function in UTF-2000.
3521         (make_uint8_byte_table): New function in UTF-2000.
3522         (uint8_byte_table_same_value_p): New function in UTF-2000.
3523         (BT_UINT16_MIN): New macro in UTF-2000.
3524         (BT_UINT16_MAX): New macro in UTF-2000.
3525         (BT_UINT16_t): New macro in UTF-2000.
3526         (BT_UINT16_nil): New macro in UTF-2000.
3527         (BT_UINT16_unbound): New macro in UTF-2000.
3528         (INT_UINT16_P): New inline function in UTF-2000.
3529         (UINT16_VALUE_P): New inline function in UTF-2000.
3530         (UINT16_ENCODE): New inline function in UTF-2000.
3531         (UINT16_DECODE): New inline function in UTF-2000.
3532         (UINT8_TO_UINT16): New inline function in UTF-2000.
3533         (mark_uint16_byte_table): New function in UTF-2000.
3534         (print_uint16_byte_table): New function in UTF-2000.
3535         (uint16_byte_table_equal): New function in UTF-2000.
3536         (uint16_byte_table_hash): New function in UTF-2000.
3537         (make_uint16_byte_table): New function in UTF-2000.
3538         (uint16_byte_table_same_value_p): New function in UTF-2000.
3539         (print_byte_table): New function in UTF-2000.
3540         (byte-table): Use `print_byte_table' as printer.
3541         (make_byte_table): Delete second argument `older'.
3542         (byte_table_same_value_p): New function in UTF-2000.
3543         (copy_byte_table): Deleted.
3544         (get_byte_table): New function in UTF-2000.
3545         (put_byte_table): New function in UTF-2000.
3546         (print_char_id_table): New function in UTF-2000.
3547         (char-id-table): Use `print_char_id_table' as printer.
3548         (make_char_id_table): Delete second argument `older'.
3549         (get_char_id_table): Use `get_byte_table [new implementation].
3550         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3551         implementation].
3552         (Ffind_char_attribute_table): New function in UTF-2000.
3553         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3554         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3555         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3556         (syms_of_mule_charset): Add new function
3557         `find-char-attribute-table' in UTF-2000.
3558
3559         * lrecord.h (enum lrecord_type): Add
3560         `lrecord_type_uint16_byte_table' and
3561         `lrecord_type_uint8_byte_table'.
3562
3563         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3564         (Lisp_Uint8_Byte_Table): New type.
3565         (XUINT8_BYTE_TABLE): New macro.
3566         (XSETUINT8_BYTE_TABLE): New macro.
3567         (UINT8_BYTE_TABLE_P): New macro.
3568         (GC_UINT8_BYTE_TABLE_P): New macro.
3569         (struct Lisp_Uint16_Byte_Table): New structure.
3570         (Lisp_Uint16_Byte_Table): New type.
3571         (XUINT16_BYTE_TABLE): New macro.
3572         (XSETUINT16_BYTE_TABLE): New macro.
3573         (UINT16_BYTE_TABLE_P): New macro.
3574         (GC_UINT16_BYTE_TABLE_P): New macro.
3575
3576 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3577
3578         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3579         (Vcharacter_ideographic_strokes_table): Deleted.
3580         (Vcharacter_total_strokes_table): Deleted.
3581         (Vcharacter_morohashi_daikanwa_table): Deleted.
3582         (Vcharacter_decomposition_table): Deleted.
3583         (Qname): Deleted because it is duplicated.
3584         (Qideographic_radical): Deleted.
3585         (Qideographic_strokes): Deleted.
3586         (Qtotal_strokes): Deleted.
3587         (Qmorohashi_daikanwa): Deleted.
3588         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3589         `ideographic-radical', `ideographic-strokes', `total-strokes',
3590         `morohashi-daikanwa' and `->decomposition'.
3591         (Fget_char_attribute): Likewise.
3592         (Fput_char_attribute): Likewise; use `make-vector' instead of
3593         `make_older_vector' for `->decomposition' value.
3594         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3595         `ideograph-daikanwa'.
3596         (syms_of_mule_charset): Delete builtin symbols `name',
3597         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3598         `morohashi-daikanwa'.
3599         (vars_of_mule_charset): Don't setup
3600         `Vcharacter_ideographic_radical_table',
3601         `Vcharacter_ideographic_strokes_table',
3602         `Vcharacter_total_strokes_table',
3603         `Vcharacter_morohashi_daikanwa_table' and
3604         `Vcharacter_decomposition_table'.
3605
3606 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3607
3608         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3609         `make_older_vector', `make_vector_newer_1' and
3610         `make_vector_newer'.
3611
3612         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3613         `make_older_vector' and `make_vector_newer'.
3614
3615         * config.h.in (HAVE_GGC): New macro.
3616
3617 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3618
3619         * mule-charset.c (struct char_attribute_list_closure): New
3620         structure in UTF-2000.
3621         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3622         (Fchar_attribute_list): Likewise.
3623         (Fset_charset_mapping_table): Use `make_vector_newer'.
3624         (Fdecode_builtin_char): New function in UTF-2000.
3625         (syms_of_mule_charset): Add new function `char-attribute-list' and
3626         `decode-builtin-char' in UTF-2000.
3627
3628         * lisp.h (make_vector_newer): New prototype.
3629
3630         * alloc.c (make_vector_newer_1): New function.
3631         (make_vector_newer): New function.
3632
3633 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3634
3635         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3636         50100)'.
3637
3638 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3639
3640         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3641         (Vcharacter_attribute_table): Deleted.
3642         (Vcharacter_name_table): Deleted.
3643         (put_char_attribute): Deleted.
3644         (remove_char_attribute): Deleted.
3645         (struct char_attribute_alist_closure): New structure.
3646         (add_char_attribute_alist_mapper): New function.
3647         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3648         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3649         (Fget_char_attribute): Likewise.
3650         (Fput_char_attribute): Likewise.
3651         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3652         of `remove_char_attribute'.
3653         (Fdefine_char): Return character.
3654         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3655         and `Vcharacter_name_table'.
3656         (complex_vars_of_mule_charset): Likewise
3657         `Vchar_attribute_hash_table'.
3658
3659 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3660
3661         * character.h (CHARC_CHARSET): New macro.
3662         (CHARC_CHARSET_ID): New macro.
3663         (CHARC_CODE_POINT): New macro.
3664         (CHARC_COLUMNS): New macro.
3665         (CHARC_TO_CHAR): New inline function.
3666         (CHARC_EQ): New inline function.
3667         (CHARC_ASCII_EQ): New inline function.
3668         (CHARC_IS_SPACE): New inline function.
3669         (ASCII_TO_CHARC): New inline function.
3670
3671         * char-ucs.h (encode_char_2): Deleted.
3672         (ENCODE_CHAR): Use `encode_char_1' again.
3673         (breakup_char_1): Likewise.
3674         (CHAR_TO_CHARC): New inline function.
3675
3676         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3677
3678 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3679
3680         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3681         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3682         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3683         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3684         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3685         `CHARC_IS_SPACE'.
3686         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3687
3688         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3689         `CHARC_CODE_POINT'.
3690         (x_output_display_block): Use `CHARC_CHARSET' and
3691         `CHARC_ASCII_EQ'.
3692
3693         * redisplay-tty.c (tty_output_display_block): Use
3694         `CHARC_ASCII_EQ'.
3695         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3696
3697         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3698
3699         * insdel.c (find_charsets_in_charc_string): Use
3700         `CHARC_CHARSET_ID'.
3701         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3702         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3703         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3704         (convert_charc_string_into_malloced_string): Likewise.
3705
3706 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3707
3708         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3709         instead of <Emchar_dynarr *> for buf; use
3710         `convert_bufbyte_string_into_charc_dynarr' instead of
3711         `convert_bufbyte_string_into_emchar_dynarr'; use
3712         `find_charsets_in_charc_string' instead of
3713         `find_charsets_in_emchar_string'.
3714
3715         * redisplay.h:
3716         - Include "character.h".
3717         (struct rune): New member `cglyph'; delete member `chr'.
3718
3719         * redisplay.c (redisplay_text_width_charc_string): New function;
3720         delete `redisplay_text_width_emchar_string'.
3721         (rtw_charc_dynarr): New variable; renamed from
3722         `rtw_emchar_dynarr'.
3723         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3724         `rtw_emchar_dynarr'; use
3725         `convert_bufbyte_string_into_charc_dynarr' instead of
3726         `convert_bufbyte_string_into_emchar_dynarr'; use
3727         `redisplay_text_width_charc_string' instead of
3728         `redisplay_text_width_emchar_string'.
3729         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3730         instead of `rtw_emchar_dynarr'; use
3731         `convert_bufbyte_string_into_charc_dynarr' instead of
3732         `convert_bufbyte_string_into_emchar_dynarr'.
3733         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3734         `redisplay_text_width_charc_string' instead of
3735         `redisplay_text_width_emchar_string'.
3736         (create_text_block): Modify for <struct rune> change.
3737         (generate_formatted_string_db): Likewise.
3738         (create_string_text_block): Likewise.
3739         (pixel_to_glyph_translation): Likewise.
3740
3741         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3742         instead of <const Emchar *>.
3743         (x_text_width): Likewise.
3744         (x_output_display_block): Use <Charc_dynarr *> instead
3745         <Emchar_dynarr *>; modify for <structure rune> change.
3746         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3747         *>.
3748
3749         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3750         <const Emchar *>; use `charc_string_displayed_columns' instead of
3751         `emchar_string_displayed_columns'.
3752         (tty_output_display_block): Use <Charc_dynarr *> instead of
3753         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3754         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3755         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3756         `tty_output_emchar_dynarr_dynarr'.
3757         (tty_output_charc_dynarr): New function; delete
3758         `tty_output_charc_dynarr'.
3759
3760         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3761         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3762         <Emchar_dynarr *> for buf; use
3763         `convert_bufbyte_string_into_charc_dynarr' instead of
3764         `convert_bufbyte_string_into_emchar_dynarr'.
3765
3766         * frame.c (title_string_charc_dynarr): New variable; renamed from
3767         `title_string_emchar_dynarr'.
3768         (generate_title_string): Use `title_string_charc_dynarr' instead
3769         of `title_string_emchar_dynarr'; use
3770         `convert_charc_string_into_malloced_string' instead of
3771         `convert_emchar_string_into_malloced_string'.
3772         (init_frame): Use `title_string_charc_dynarr' instead of
3773         `title_string_emchar_dynarr'.
3774
3775         * console.h:
3776         - Include "character.h".
3777         (struct console_methods): Use <const Charc *> instead of <const
3778         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3779         <Emchar_dynarr *> in output_string_method.
3780
3781         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3782         <Emchar_dynarr *>.
3783
3784         * console-stream.c (stream_text_width): Use <const Charc *>
3785         instead of <const Emchar *>.
3786
3787         * character.h (Charc_dynarr): New type.
3788
3789         * char-ucs.h (structure Charc): New structure; define new type
3790         `Charc'.
3791
3792         * char-lb.h (DECODE_CHAR): New inline function.
3793         (encode_char_1): New inline function.
3794         (ENCODE_CHAR): New macro.
3795         (structure Charc): New structure; define new type `Charc'.
3796
3797         * char-1byte.h (Vcharset_control_1): New macro.
3798         (Vcharset_latin_iso8859_1): New macro.
3799         (DECODE_CHAR): New inline function.
3800         (encode_char_1): New inline function.
3801         (ENCODE_CHAR): New macro.
3802         (structure Charc): New structure; define new type `Charc'.
3803
3804         * insdel.c (find_charsets_in_charc_string): New function; delete
3805         `find_charsets_in_emchar_string'.
3806         (charc_string_displayed_columns): New function; delete
3807         `emchar_string_displayed_columns'.
3808         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3809         `convert_bufbyte_string_into_emchar_dynarr'.
3810         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3811         `convert_charc_string_into_bufbyte_dynarr'.
3812         (convert_charc_string_into_malloced_string): New function; delete
3813         `convert_charc_string_into_malloced_string'.
3814
3815         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3816         `find_charsets_in_emchar_string'.
3817         (charc_string_displayed_columns): New prototype; delete
3818         `emchar_string_displayed_columns'.
3819         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3820         `convert_charc_string_into_bufbyte_dynarr'.
3821         (convert_charc_string_into_malloced_string): New prototype; delete
3822         `convert_charc_string_into_malloced_string'.
3823
3824 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3825
3826         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3827
3828 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3829
3830         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3831
3832         * char-ucs.h: Use <short> for <Charset_ID>.
3833
3834         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3835         <Charset_ID>.
3836
3837 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3838
3839         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3840         to 0.16.
3841
3842 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3843
3844         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3845         variable.
3846         (Qmorohashi_daikanwa): New variable.
3847         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3848         for `morohashi-daikanwa' attribute.
3849         (Fget_char_attribute): Likewise.
3850         (Fput_char_attribute): Likewise.
3851         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3852         has the same value of `ideograph-daikanwa'.
3853         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3854         (vars_of_mule_charset): Setup
3855         `Vcharacter_morohashi_daikanwa_table'.
3856
3857 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3858
3859         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3860         attributes.
3861         (add_charset_to_list_mapper): Add `key' instead of
3862         `XCHARSET_NAME (value)' to return aliases.
3863
3864 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3865
3866         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3867         variable.
3868         (Vcharacter_ideographic_strokes_table): New variable.
3869         (Qideographic_radical): New variable.
3870         (Qideographic_strokes): New variable.
3871         (Fchar_attribute_alist): Use
3872         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3873         attribute; use `Vcharacter_ideographic_strokes_table' for
3874         `ideographic-strokes' attribute.
3875         (Fget_char_attribute): Likewise.
3876         (Fput_char_attribute): Likewise.
3877         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3878         `ideographic-strokes'.
3879         (vars_of_mule_charset): Setup
3880         `Vcharacter_ideographic_radical_table' and
3881         `Vcharacter_ideographic_strokes_table'.
3882
3883 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3884
3885         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3886         (Qtotal_strokes): New variable.
3887         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3888         `total-strokes' attribute.
3889         (Fget_char_attribute): Likewise.
3890         (Fput_char_attribute): Likewise.
3891         (syms_of_mule_charset): Add new symbol `total-strokes'.
3892         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3893
3894 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3895
3896         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3897         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3898         are found.
3899         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3900         `->decomposition' attribute.
3901         (Fput_char_attribute): Likewise.
3902         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3903
3904 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3905
3906         * mule-charset.c (decoding_table_check_elements): New function.
3907         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3908
3909 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3910
3911         * mule-charset.c (Fset_charset_mapping_table): Use
3912         `put_char_ccs_code_point'.
3913
3914 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3915
3916         * mule-charset.c (decoding_table_put_char): New inline function.
3917         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3918
3919 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3920
3921         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3922         (XCHARSET_BYTE_SIZE): New macro.
3923         (decoding_table_remove_char): New inline function.
3924         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3925         `decoding_table_remove_char'.
3926         (remove_char_ccs): Use `decoding_table_remove_char'.
3927         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3928
3929 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3930
3931         * mule-charset.c (Vcharacter_name_table): New variable.
3932         (Qname): New variable.
3933         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3934         attribute.
3935         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3936         `Vcharacter_name_table' for `name' attribute.
3937         (Fremove_char_attribute): Use function `remove_char_ccs'.
3938         (put_char_ccs_code_point): New function.
3939         (remove_char_ccs): New function.
3940         (syms_of_mule_charset): Add new symbol `name'.
3941         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3942
3943 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3944
3945         * mule-charset.c (make_byte_table): Add new argument `older'.
3946         (make_char_id_table): Likewise.
3947         (copy_char_id_table): Comment out because it is not used.
3948         (put_char_id_table): Modify for `make_byte_table'.
3949         (Fput_char_attribute): Make encoding_table as older object;
3950         inherit older bit of `Vcharacter_composition_table'.
3951         (mark_charset): Don't mark `cs->encoding_table'.
3952         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3953         normal object; make `Vcharacter_composition_table' as an older
3954         object; delete staticpro for `Vcharacter_composition_table'; make
3955         `Vcharacter_variant_table' as a normal object.
3956
3957         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3958         (mark_object): Don't check older object in UTF-2000.
3959
3960         * lrecord.h (struct lrecord_header): Add new member `older' in
3961         UTF-2000.
3962         (set_lheader_implementation): Setup `SLI_header->older' in
3963         UTF-2000.
3964         (set_lheader_older_implementation): New macro in UTF-2000.
3965         (OLDER_RECORD_P): New macro in UTF-2000.
3966         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3967         (alloc_older_lcrecord): New prototype in UTF-2000.
3968         (alloc_older_lcrecord_type): New macro in UTF-2000.
3969
3970 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3971
3972         * mule-charset.c (byte_table_description): Use
3973         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3974         (char_id_table_description): Delete bogus `, 1'.
3975         (Fget_char_attribute): Refer encoding_table of each coded-charset
3976         to get value of coded-charset attribute of a character.
3977         (Fput_char_attribute): Use `make_older_vector' instead of
3978         `make_vector'; use encoding_table of each coded-charset to store
3979         value of coded-charset attribute of a character.
3980         (Fremove_char_attribute): Use encoding_table of each coded-charset
3981         to store value of coded-charset attribute of a character.
3982         (mark_charset): Mark `cs->encoding_table'; don't mark
3983         `cs->decoding_table'.
3984         (charset_description): Add description of new member
3985         `encoding_table'.
3986         (make_charset): Initialize `encoding_table'.
3987
3988         * char-ucs.h (struct Lisp_Charset): Add new member
3989         `encoding_table'.
3990         (CHARSET_ENCODING_TABLE): New macro.
3991         (XCHARSET_ENCODING_TABLE): New macro.
3992         (charset_code_point): New implementation.
3993         (encode_char_1): Likewise.
3994
3995         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3996         (disksave_object_finalization_1): Call finalizers of
3997         `all_older_lcrecords' in UTF-2000.
3998         (make_older_vector): New function in UTF-2000.
3999         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
4000         UTF-2000.
4001
4002         * lisp.h (make_older_vector): New prototype in UTF-2000.
4003
4004 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4005
4006         * lrecord.h (enum lrecord_type): Rename
4007         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
4008
4009         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
4010         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
4011         `get_char_code_table'.
4012
4013         * mule-charset.c (mark_char_id_table): Renamed from
4014         `mark_char_code_table'.
4015         (char_id_table_equal): Renamed from `char_code_table_equal'.
4016         (char_id_table_hash): Renamed from `char_code_table_hash'.
4017         (make_char_id_table): Renamed from `make_char_code_table'.
4018         (copy_char_id_table): Renamed from `copy_char_code_table'.
4019         (get_char_id_table): Renamed from `get_char_code_table'.
4020         (put_char_id_table): Renamed from `put_char_code_table'.
4021         (to_char_id): Renamed from `to_char_code'.
4022
4023         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
4024         `Lisp_Char_Code_Table'.
4025         (char_id_table): Renamed from `char_code_table'.
4026         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
4027         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4028         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4029         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4030         (get_char_id_table): Renamed from `get_char_code_table'.
4031
4032 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4033
4034         * lrecord.h (enum lrecord_type): Rename
4035         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4036
4037         * mule-charset.c (mark_byte_table): Renamed from
4038         `mark_char_byte_table'.
4039         (byte_table_equal): Renamed from `char_byte_table_equal'.
4040         (byte_table_hash): Renamed from `byte_table_hash'.
4041         (make_byte_table): Renamed from `make_byte_table'.
4042         (copy_byte_table): Renamed from `copy_char_byte_table'.
4043
4044         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4045         `Lisp_Char_Byte_Table'.
4046         (byte_table): Renamed from `char_byte_table'.
4047         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4048         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4049         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4050         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4051
4052 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4053
4054         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4055         (dfc_convert_to_internal_format): Likewise.
4056         
4057         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4058         * text-coding.c (Fcoding_system_alias_p): New function.
4059         * text-coding.c (Fcoding_system_aliasee): New function.
4060         * text-coding.c (append_suffix_to_symbol): New function.
4061         * text-coding.c (dangling_coding_system_alias_p): New function.
4062         * text-coding.c (Ffind_coding_system):
4063         * text-coding.c (Fcopy_coding_system):
4064         * text-coding.c (encode_coding_no_conversion):
4065         * text-coding.c (syms_of_file_coding):
4066         * text-coding.c (vars_of_file_coding):
4067         Rewrite coding system alias code.
4068         Allow nested aliases, like symbolic links.
4069         Allow redefinition of coding system aliases.
4070         Prevent existence of dangling coding system aliases.
4071         Eliminate convert_to_external_format.
4072         Eliminate convert_to_internal_format.
4073         
4074         * text-coding.c: Change enum eol_type to eol_type_t.
4075
4076 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4077
4078         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4079         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4080
4081         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4082         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4083
4084 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4085
4086         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4087         `ideograph-daikanwa'.
4088
4089         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4090         (Vcharset_ucs_bmp): Likewise.
4091         (Vcharset_mojikyo): Add new extern variable definition.
4092         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4093         (Vcharset_latin_iso8859_3): Likewise.
4094         (Vcharset_latin_iso8859_4): Likewise.
4095         (Vcharset_latin_iso8859_9): Likewise.
4096         (Vcharset_latin_viscii_lower): Likewise.
4097         (Vcharset_latin_viscii_upper): Likewise.
4098         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4099         `mojikyo' code-point is used to decode.
4100         (encode_char_2): New function [to convert `mojikyo' code-point to
4101         Mojikyo font encoding].
4102         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4103         (breakup_char_1): Likewise.
4104         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4105
4106 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4107
4108         * text-coding.c (Fmake_coding_system): Add document about
4109         `disable-composition' property.
4110
4111 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4112
4113         * text-coding.c (Qdisable_composition): New variable; delete
4114         `Qcomposite'.
4115         (Fmake_coding_system): Add new property `disable-composite';
4116         delete property `composite'.
4117         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4118         instead of `!CODING_SYSTEM_COMPOSITE'.
4119         (syms_of_file_coding): Add new symbol `disable-composition';
4120         delete symbol `composite'.
4121
4122         * file-coding.h (struct Lisp_Coding_System): Add
4123         `disable_composition'; delete `enable_composition'.
4124         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4125         `CODING_SYSTEM_COMPOSITE'.
4126         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4127         `XCODING_SYSTEM_COMPOSITE'.
4128
4129 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4130
4131         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4132         to 0.15.
4133
4134 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4135
4136         * text-coding.c (Qcomposite): New variable.
4137         (Fmake_coding_system): Add new property `composite'.
4138         (struct decoding_stream): Add `combined_char_count',
4139         `combined_chars' and `combining_table' in UTF-2000.
4140         (COMPOSE_FLUSH_CHARS): New macro.
4141         (COMPOSE_ADD_CHAR): New macro.
4142         (reset_decoding_stream): Reset `str->combined_char_count' and
4143         `str->combining_table' in UTF-2000.
4144         (decode_coding_iso2022): Modify for character-decomposition.
4145         (syms_of_file_coding): Add new symbol `composite'.
4146
4147 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4148
4149         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4150         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4151         of `Vcharacter_composition_table' if `->decomposition' property
4152         has only 1 element.
4153         (Qlatin_tcvn5712): New variable.
4154         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4155         (complex_vars_of_mule_charset): Add new coded-charset
4156         `latin-tcvn5712'.
4157
4158         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4159
4160 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4161
4162         * file-coding.h (struct Lisp_Coding_System): Add
4163         `enable_composition'.
4164         (CODING_SYSTEM_COMPOSITE): New macro.
4165         (XCODING_SYSTEM_COMPOSITE): New macro.
4166
4167 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4168
4169         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4170
4171 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4172
4173         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4174         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4175
4176 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4177
4178         * mule-charset.c (Vcharset_mojikyo): New variable.
4179         (Fdefine_char): Don't use coded-charset which does not have
4180         non-builtin character range to allocate character-id.
4181         (Qmojikyo): New variable.
4182         (syms_of_mule_charset): Add new symbol `mojikyo'.
4183         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4184
4185         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4186         (LEADING_BYTE_MOJIKYO): New macro.
4187         (MIN_CHAR_MOJIKYO): New macro.
4188         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4189         (MAX_CHAR_MOJIKYO): New macro.
4190
4191 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4192
4193         * mule-charset.c (remove_char_attribute): Fixed.
4194
4195 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4196
4197         * mule-charset.c (remove_char_attribute): New function.
4198         (Fremove_char_attribute): New function.
4199         (encode_builtin_char_1): Comment out builtin-support for
4200         greek-iso8859-7 and cyrillic-iso8859-5.
4201         (Fdecode_char): Check `code' is an integer.
4202         (syms_of_mule_charset): Add `remove-char-attribute'.
4203         (MIN_CHAR_GREEK): Deleted.
4204         (MAX_CHAR_GREEK): Likewise.
4205         (MIN_CHAR_CYRILLIC): Likewise.
4206         (MAX_CHAR_CYRILLIC): Likewise.
4207         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4208         MAX_CHAR_GREEK for `greek-iso8859-7'.
4209
4210         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4211         (MAX_CHAR_GREEK): Likewise.
4212         (MIN_CHAR_CYRILLIC): Likewise.
4213         (MAX_CHAR_CYRILLIC): Likewise.
4214
4215 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4216
4217         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4218         format is used without `ucs' property.
4219         (Fdecode_char): Fix problem with GR representation.
4220         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4221         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4222
4223 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4224
4225         * mule-charset.c (make_builtin_char): New function.
4226         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4227         (Fset_charset_mapping_table): Modify for new representation of
4228         code-point.
4229         (Fdecode_char): New function.
4230         (syms_of_mule_charset): Add new builtin function `decode-char' in
4231         UTF-2000.
4232
4233         * char-ucs.h (make_builtin_char): New prototype.
4234         (DECODE_CHAR): New inline function.
4235         (MAKE_CHAR): Use `DECODE_CHAR'.
4236
4237 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4238
4239         * text-coding.c (parse_charset_conversion_specs): Use
4240         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4241         `XCHARSET_TYPE'.
4242         (iso2022_designate): Likewise.
4243
4244         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4245         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4246
4247         * mule-charset.c (Vcharset_ucs): New variable.
4248         (print_charset): Change design; use `CHARSET_CHARS' and
4249         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4250         (make_charset): Change signature to specify `chars' and
4251         `dimension' instead of `type'.
4252         (range_charset_code_point): Modify for 256^n-set.
4253         (encode_builtin_char_1): Encode as `ucs' in default.
4254         (Fmake_charset): Modify for `make_charset'.
4255         (Fmake_reverse_direction_charset): Likewise.
4256         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4257         UTF-2000.
4258         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4259         for `make_charset'.
4260
4261         * char-ucs.h (Vcharset_ucs): New variable.
4262         (LEADING_BYTE_UCS): New macro.
4263         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4264         and `chars' to `unsigned short' from `unsigned int'.
4265         (CHARSET_TYPE): Deleted.
4266         (XCHARSET_TYPE): Deleted.
4267
4268 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4269
4270         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4271
4272         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4273         (ENCODE_CHAR): New macro.
4274
4275 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4276
4277         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4278         to 0.14 (Kawachi-Katakami).
4279
4280 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4281
4282         * text-coding.c (char_encode_shift_jis): Modify for
4283         `charset_code_point'.
4284         (char_encode_iso2022): Likewise.
4285
4286         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4287         (integer) instead of list of <Lisp_Object>s (integers) as the
4288         format of code-point of a coded-charset.
4289         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4290         (encode_builtin_char_1): New function; delete
4291         `split_builtin_char'.
4292         (charset_code_point): Return <int> instead of <Lisp_Object>.
4293         (Fsplit_char): Don't use `SPLIT_CHAR'.
4294
4295         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4296         prototype for `split_builtin_char'.
4297         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4298         (charset_code_point): Likewise.
4299         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4300         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4301
4302 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4303
4304         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4305         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4306
4307 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4308
4309         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4310
4311         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4312         (MAX_CHAR_OBS_94x94): Deleted.
4313
4314 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4315
4316         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4317
4318         * char-ucs.h (MAX_CHAR_BMP): New macro.
4319
4320 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4321
4322         * text-coding.c: Sync with r21-2-24.
4323
4324 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4325
4326         * file-coding.c: Modify for UTF-2000.
4327
4328 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4329
4330         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4331         to 0.13 (Takaida).
4332
4333 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4334
4335         * mule-charset.c (split_builtin_char): Delete builtin support for
4336         `katakana-jisx0201'.
4337         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4338         BMP area in builtin representation.
4339
4340         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4341         `Vcharset_katakana_jisx0201'.
4342
4343 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4344
4345         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4346         (Qisolated): New variable.
4347         (Qinitial): New variable.
4348         (Qmedial): New variable.
4349         (Qfinal): New variable.
4350         (Qvertical): New variable.
4351         (Qsmall): New variable.
4352         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4353         `Qvertical' and `Qsmall'.
4354         (Qmojikyo_pj_[1 .. 21]): New variable.
4355         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4356         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4357         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4358         .. 21]'.
4359
4360 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4361
4362         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4363         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4364         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4365
4366 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4367
4368         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4369         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4370         BMP.
4371         (Qjapanese_jisx0208_1990): New variable.
4372         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4373         (complex_vars_of_mule_charset): Add new coded-charset
4374         `japanese-jisx0208-1990'.
4375
4376         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4377         (MIN_CHAR_JIS_X0208_1990): New macro.
4378         (MAX_CHAR_JIS_X0208_1990): New macro.
4379
4380 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4381
4382         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4383         coded-charset is not found.
4384
4385 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4386
4387         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4388         (Fdefine_char): Use `Fmake_char'.
4389
4390 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4391
4392         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4393         (Vcharset_hiragana_jisx0208): Deleted.
4394         (Vcharset_katakana_jisx0208): Deleted.
4395         (Qideograph_daikanwa): New variable.
4396         (Qhiragana_jisx0208): Deleted.
4397         (Qkatakana_jisx0208): Deleted.
4398         (split_builtin_char): Split `ideograph-daikanwa'.
4399         (Fsplit_char): New implementation for UTF-2000.
4400         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4401         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4402         (complex_vars_of_mule_charset): Add new coded-charset
4403         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4404         `katakana-jisx0208'.
4405
4406         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4407         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4408         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4409         (MIN_CHAR_DAIKANWA): New macro.
4410         (MAX_CHAR_DAIKANWA): New macro.
4411
4412 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4413
4414         * data.c (Fstring_to_number): Don't recognize floating point if
4415         base is not 10.
4416
4417 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4418
4419         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4420
4421 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4422
4423         * mule-charset.c (Qsquare): New variable.
4424         (to_char_code): Add `Qsquare'.
4425         (syms_of_mule_charset): Add new symbol `square'.
4426
4427 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4428
4429         * mule-charset.c (Qcircle): New variable.
4430         (to_char_code): Add `Qcircle'.
4431         (syms_of_mule_charset): Add new symbol `circle'.
4432
4433 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4434
4435         * mule-charset.c (Qfont): New variable.
4436         (to_char_code): Add `Qfont'.
4437         (syms_of_mule_charset): Add new symbol `font'.
4438
4439 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4440
4441         * mule-charset.c (Qsub): New variable.
4442         (to_char_code): Add `Qsub'.
4443         (syms_of_mule_charset): Add new symbol `sub'.
4444
4445 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4446
4447         * mule-charset.c (Fput_char_attribute): Convert each element of
4448         VALUE to GL position if ATTRIBUTE is a GR-set,
4449
4450 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4451
4452         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4453         coded-charset is a GR-set.
4454
4455 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4456
4457         * mule-charset.c (Fput_char_attribute): Check each element of
4458         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4459
4460 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4461
4462         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4463         UTF-2000.
4464         (Qethiopic_ucs): New variable in UTF-2000.
4465         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4466         (complex_vars_of_mule_charset): Add new coded-charset
4467         `ethiopic-ucs' in UTF-2000.
4468
4469         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4470         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4471         9)'.
4472         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4473         10)'.
4474         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4475
4476 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4477
4478         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4479         `ascii'.
4480
4481 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4482
4483         * mule-charset.c (Vcharacter_variant_table): New variable.
4484         (Q_ucs): New variable.
4485         (Fchar_variants): New function.
4486         (Fput_char_attribute): Register `->ucs' value to
4487         `Vcharacter_variant_table'.
4488         (syms_of_mule_charset): Add new function `char-variants' and new
4489         symbol `->ucs'.
4490         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4491
4492 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4493
4494         * mule-charset.c (get_char_code_table): Allow negative character
4495         code.
4496         (put_char_code_table): Likewise.
4497         (Vcharacter_composition_table): New variable.
4498         (Q_decomposition): New variable.
4499         (Qwide): New variable.
4500         (Qnarrow): New variable.
4501         (Qcompat): New variable.
4502         (QnoBreak): New variable.
4503         (Qsuper): New variable.
4504         (Qfraction): New variable.
4505         (to_char_code): New function.
4506         (Fget_composite_char): New function.
4507         (Fput_char_attribute): Register `->decomposition' value to
4508         `Vcharacter_composition_table'.
4509         (syms_of_mule_charset): Add new function `get-composite-char', new
4510         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4511         `super' and `fraction'.
4512         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4513
4514 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4515
4516         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4517         character; copy the return value.
4518
4519 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4520
4521         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4522
4523         * mule-charset.c (range_charset_code_point): Must use make_int.
4524         (split_builtin_char): New function.
4525
4526 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4527
4528         * mule-charset.c (char_byte_table): Change name from
4529         "char-code-table" to "char-byte-table".
4530         (mark_char_code_table): New function.
4531         (char_code_table_equal): New function.
4532         (char_code_table_hash): New function.
4533         (char_code_table_description): New constant.
4534         (char_code_table): New type.
4535         (make_char_code_table): New function.
4536         (copy_char_code_table): New function.
4537         (get_char_code_table): Modify for `char_code_table' type.
4538         (put_char_code_table): Likewise.
4539         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4540         (Kashiwara).
4541
4542         * char-ucs.h (char_code_table): New type.
4543         (XCHAR_CODE_TABLE): New macro.
4544         (XSETCHAR_CODE_TABLE): New macro.
4545         (CHAR_CODE_TABLE_P): New macro.
4546         (GC_CHAR_CODE_TABLE_P): New macro.
4547         (struct Lisp_Char_Code_Table): New structure.
4548
4549 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4550
4551         * mule-charset.c (Fmake_charset): Setup byte_offset for
4552         {94|96}^n-set.
4553
4554 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4555
4556         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4557         character.
4558
4559 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4560
4561         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4562         is found.
4563
4564 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4565
4566         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4567         charset, it is regarded as a charset.
4568         (put_char_attribute): New function in UTF-2000.
4569         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4570         charset, mapping-table of the charset is modified.
4571         (Fdefine_char): New function in UTF-2000.
4572         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4573         `Fput_char_attribute'.
4574         (syms_of_mule_charset): Add new function `define-char' and new
4575         symbol `ucs' in UTF-2000.
4576         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4577
4578 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4579
4580         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4581         non-UTF-2000 configuration.
4582
4583 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4584
4585         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4586         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4587
4588         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4589         deleted.
4590         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4591         (Fset_charset_mapping_table): Likewise.
4592
4593         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4594         (CHARSET_ENCODING_TABLE): Delete.
4595         (XCHARSET_ENCODING_TABLE): Delete.
4596         (charset_code_point): New interface.
4597
4598 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4599
4600         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4601         instead of `charset_get_byte1' and `charset_get_byte2'.
4602
4603         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4604         (charset_get_byte2): Deleted.
4605
4606 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4607
4608         * char-ucs.h (SPLIT_CHAR): New inline function.
4609         (breakup_char_1): Use `SPLIT_CHAR'.
4610
4611         * mule-charset.c (range_charset_code_point): New function.
4612         (charset_code_point): New function.
4613
4614         * char-ucs.h (range_charset_code_point): New interface.
4615         (breakup_char_1): Use `range_charset_code_point'.
4616
4617 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4618
4619         * mule-charset.c (Fmake_charset): Delete unused local variable
4620         `code_offset'.
4621
4622         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4623         (breakup_char_1): Find a charset and code-point in
4624         `Vcharacter_attribute_table'.
4625
4626 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4627
4628         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4629         to 0.10 (Yao).
4630
4631 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4632
4633         * mule-charset.c (Vcharacter_attribute_table): New variable.
4634         (Fchar_attribute_alist): New function.
4635         (Fget_char_attribute): New function.
4636         (Fput_char_attribute): New function.
4637         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4638         too.
4639         (syms_of_mule_charset): Add new function `char-attribute-alist',
4640         `get-char-attribute' and `put-char-attribute'.
4641         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4642
4643 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4644
4645         * mule-charset.c (Fmake_charset): Just use
4646         `get_unallocated_leading_byte'.
4647
4648         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4649         sets; don't use final-byte based number for private sets.
4650
4651 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4652
4653         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4654         integer.
4655
4656 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4657
4658         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4659         to 0.9.
4660
4661 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4662
4663         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4664         of `CHAR_LEADING_BYTE' in UTF-2000.
4665
4666         * insdel.c (find_charsets_in_bufbyte_string): Use
4667         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4668         (find_charsets_in_emchar_string): Likewise.
4669
4670         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4671         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4672
4673         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4674         (CHAR_CHARSET_ID): New macro.
4675
4676 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4677
4678         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4679         charset-id - MIN_LEADING_BYTE.
4680         (put_char_table): Likewise.
4681
4682 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4683
4684         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4685         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4686         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4687         (CHARSET_ID_OFFSET): New macro.
4688         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4689         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4690         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4691         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4692         4).
4693         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4694         5).
4695         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4696         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4697         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4698         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4699         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4700
4701 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4702
4703         * mule-charset.c (next_allocated_leading_byte): New variable in
4704         UTF-2000.
4705         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4706         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4707         (get_unallocated_leading_byte): Simply use
4708         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4709         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4710         UTF-2000.
4711
4712         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4713         (MAX_LEADING_BYTE_PRIVATE): New macro.
4714         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4715         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4716
4717 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4718
4719         * mule-charset.c (Fmake_charset): Allocate final-byte based
4720         charset-id for 94-set, 96-set and 94x94-set.
4721
4722 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4723
4724         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4725         ambiguous `else'.
4726         (Fmake_charset): Likewise.
4727         (complex_vars_of_mule_charset): Modify the font registry of
4728         `ucs-bmp' not to match `Ethiopic-Unicode'.
4729
4730 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4731
4732         * mule-charset.c (complex_vars_of_mule_charset): Add font
4733         registory of `ucs-bmp'.
4734
4735 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4736
4737         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4738         coded-charsets in `default-coded-charset-priority-list' when
4739         breaking up a character.
4740
4741         * mule-charset.c (Vcharset_latin_viscii): New variable.
4742         (Qlatin_viscii): New variable.
4743         (make_charset): Don't use `decoding_table'.
4744         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4745         byte_offset.
4746         (Fset_charset_mapping_table): New implementation.
4747         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4748         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4749         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4750         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4751         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4752         charset `latin_viscii'.
4753
4754         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4755         (CHARSET_TYPE_94X94): Change to 1 from 2.
4756         (CHARSET_TYPE_96): Change to 2 from 1.
4757         (CHARSET_TYPE_128): New macro.
4758         (CHARSET_TYPE_128X128): Change to 5 from 4.
4759         (CHARSET_TYPE_256): New macro.
4760         (CHARSET_TYPE_256X256): Change to 7 from 5.
4761         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4762
4763 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4764
4765         * text-coding.c (char_encode_shift_jis): Refer
4766         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4767         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4768
4769         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4770         (char_byte_table_equal): New function in UTF-2000.
4771         (char_byte_table_hash): New function in UTF-2000.
4772         (char_byte_table_description): New constant in UTF-2000.
4773         (char_byte_table): New type in UTF-2000.
4774         (make_char_byte_table): New function in UTF-2000.
4775         (copy_char_byte_table): New function in UTF-2000.
4776         (make_char_code_table): New macro in UTF-2000.
4777         (get_char_code_table): New function in UTF-2000.
4778         (put_char_code_table): New function in UTF-2000.
4779         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4780         (charset_description): Add setting in UTF-2000.
4781         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4782         `CHARSET_TO_BYTE1_TABLE(cs)'.
4783         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4784         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4785         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4786         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4787         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4788         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4789         `CHARSET_TO_BYTE2_TABLE(cs)'.
4790
4791         * char-ucs.h (char_byte_table): New type.
4792         (XCHAR_BYTE_TABLE): New macro.
4793         (XSETCHAR_BYTE_TABLE): New macro.
4794         (CHAR_BYTE_TABLE_P): New macro.
4795         (GC_CHAR_BYTE_TABLE_P): New macro.
4796         (struct Lisp_Char_Byte_Table): New structure.
4797         (get_char_code_table): New interface.
4798         (Emchar_to_byte_table): Deleted.
4799         (get_byte_from_character_table): Deleted.
4800         (struct Lisp_Charset): Add `encoding_table'; delete
4801         `to_byte1_table' and `to_byte2_table'.
4802         (CHARSET_ENCODING_TABLE): New macro.
4803         (CHARSET_TO_BYTE1_TABLE): Deleted.
4804         (CHARSET_TO_BYTE2_TABLE): Deleted.
4805         (XCHARSET_ENCODING_TABLE): New macro.
4806         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4807         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4808
4809 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4810
4811         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4812         `vietnamese-viscii-*'.
4813
4814 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4815
4816         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4817         (Qvietnamese_viscii_upper): New variable.
4818         (Fdefine_charset_alias): New function.
4819         (syms_of_mule_charset): Add new function `define-charset-alias'.
4820         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4821         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4822         `latin-viscii-*'.
4823
4824 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4825
4826         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4827         (MAX_CHAR_OBS_94x94): New macro.
4828         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4829         for 94x94 sets.
4830
4831         * mule-charset.c (put_byte_from_character_table): Change unit size
4832         from 128 to 256.
4833         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4834         not defined.
4835         (Fmake_reverse_direction_charset): Modify dummy argument of
4836         `make_charset' for non-UTF-2000 environment.
4837
4838 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4839
4840         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4841
4842         * mule-charset.c (destroy_byte_from_character_table): New macro.
4843         (latin_jisx0201_to_ucs): Deleted.
4844         (latin_iso8859_2_to_ucs): Deleted.
4845         (latin_iso8859_3_to_ucs): Deleted.
4846         (latin_iso8859_4_to_ucs): Deleted.
4847         (latin_iso8859_9_to_ucs): Deleted.
4848         (latin_viscii_lower_to_ucs): Deleted.
4849         (latin_viscii_upper_to_ucs): Deleted.
4850         (mark_charset): Mark `cs->decoding_table'.
4851         (Fcharset_mapping_table): Fix DOC-string.
4852         (Fset_charset_mapping_table): New function.
4853         (syms_of_mule_charset): Add nwe function
4854         `set-charset-mapping-table'.
4855         (complex_vars_of_mule_charset): Don't setup and use
4856         `latin_*_to_ucs'.
4857
4858 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4859
4860         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4861         charset.
4862
4863 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4864
4865         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4866         (Vcharset_katakana_jisx0208): New variable.
4867         (Qhiragana_jisx0208): New variable.
4868         (Qkatakana_jisx0208): New variable.
4869         (make_charset): Add new argument `byte_offset'.
4870         (charset_get_byte1): Modify for new coded-charset definition; use
4871         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4872         `XCHARSET_BYTE_OFFSET'.
4873         (Fmake_charset): Modify for `make_charset'.
4874         (Fmake_reverse_direction_charset): Likewise.
4875         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4876         `katakana-jisx0208'.
4877         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4878         `.'  in font registry of charset `katakana-jisx0201',
4879         `latin-jisx0201', `vietnamese-viscii-lower' and
4880         `vietnamese-viscii-upper'; modify DOC-string of charset
4881         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4882         registry of charset `japanese-jisx0208' not to use font for JIS
4883         X0208:1990; add new charset `hiragana-jisx0208' and
4884         `katakana-jisx0208'.
4885
4886         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4887         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4888         (struct Lisp_Charset): Add `byte_offset'.
4889         (CHARSET_BYTE_OFFSET): New macro.
4890         (XCHARSET_UCS_MIN): New macro.
4891         (XCHARSET_UCS_MAX): New macro.
4892         (XCHARSET_CODE_OFFSET): New macro.
4893         (XCHARSET_BYTE_OFFSET): New macro.
4894         (MIN_CHAR_HIRAGANA): New macro.
4895         (MAX_CHAR_HIRAGANA): New macro.
4896         (MIN_CHAR_KATAKANA): New macro.
4897         (MAX_CHAR_KATAKANA): New macro.
4898         (MAKE_CHAR): Modify for new coded-charset definition; use
4899         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4900         `XCHARSET_BYTE_OFFSET'.
4901
4902 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4903
4904         * mule-charset.c (CHAR96): Deleted.
4905         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4906         <Lisp_Object>.
4907         (latin_iso8859_2_to_ucs): Likewise.
4908         (latin_iso8859_3_to_ucs): Likewise.
4909         (latin_iso8859_4_to_ucs): Likewise.
4910         (latin_iso8859_9_to_ucs): Likewise.
4911         (latin_viscii_lower_to_ucs): Likewise.
4912         (latin_viscii_upper_to_ucs): Likewise.
4913         (latin_tcvn5712_to_ucs): Commented out.
4914         (make_charset): Change type of argument `decoding_table' from
4915         <Emchar*> to <Lisp_Object> [vector of characters].
4916         (Fmake_charset): Modify for `make_charset'.
4917         (Fmake_reverse_direction_charset): Likewise.
4918         (Fcharset_mapping_table): New function in UTF-2000.
4919         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4920         UTF-2000.
4921         (complex_vars_of_mule_charset): Modify for type change of
4922         `*_to_ucs'; modify for `make_charset'.
4923
4924         * char-ucs.h (struct Lisp_Charset): Change type of
4925         `decoding_table' from <Emchar*> to <Lisp_Object>.
4926         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4927
4928 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4929
4930         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4931         error with non-UTF-2000-Mule.
4932
4933 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4934
4935         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4936         in lisp again].
4937         (Vcharset_chinese_cns11643_4): Likewise.
4938         (Vcharset_chinese_cns11643_5): Likewise.
4939         (Vcharset_chinese_cns11643_6): Likewise.
4940         (Vcharset_chinese_cns11643_7): Likewise.
4941         (Qchinese_cns11643_3): Likewise.
4942         (Qchinese_cns11643_4): Likewise.
4943         (Qchinese_cns11643_5): Likewise.
4944         (Qchinese_cns11643_6): Likewise.
4945         (Qchinese_cns11643_7): Likewise.
4946         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4947         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4948         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4949         (complex_vars_of_mule_charset): Likewise.
4950
4951 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4952
4953         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4954         96-set.
4955         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4956         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4957
4958 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4959
4960         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4961         0xFF60.
4962         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4963         (breakup_char_1): Likewise.
4964
4965         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4966         one of them includes the specified character.
4967
4968 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4969
4970         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4971
4972 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4973
4974         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4975
4976 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4977
4978         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4979         definition for non-UTF-2000 Mule.
4980         (latin_iso8859_3_to_ucs): Likewise.
4981         (latin_iso8859_4_to_ucs): Likewise.
4982         (latin_iso8859_9_to_ucs): Likewise.
4983         (latin_jisx0201_to_ucs): Likewise.
4984         (MIN_CHAR_THAI): Likewise.
4985         (MAX_CHAR_THAI): Likewise.
4986         (MIN_CHAR_GREEK): Likewise.
4987         (MAX_CHAR_GREEK): Likewise.
4988         (MIN_CHAR_HEBREW): Likewise.
4989         (MAX_CHAR_HEBREW): Likewise.
4990         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4991         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4992         (MIN_CHAR_CYRILLIC): Likewise.
4993         (MAX_CHAR_CYRILLIC): Likewise.
4994
4995 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4996
4997         * char-ucs.h (breakup_char_1): Use
4998         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4999         thai-tis620 and katakana-jisx0201 area.
5000
5001 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5002
5003         * char-ucs.h (breakup_char_1): Use
5004         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
5005         area.
5006
5007         * text-coding.c (reset_encoding_stream): Fixed.
5008         (char_encode_ucs4): Delete `& 255'.
5009
5010         * char-ucs.h (breakup_char_1): Use
5011         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
5012
5013 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5014
5015         * file-coding.c (Fmake_coding_system): Don't set up
5016         `codesys->fixed.size'.
5017         (encode_coding_no_conversion): Don't refer
5018         `str->codesys->fixed.size'.
5019
5020 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5021
5022         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
5023         (latin_a_char_to_byte1): Deleted.
5024         (latin_a_char_to_byte2): Deleted.
5025
5026 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5027
5028         * mule-charset.c (make_charset): Add new argument `ucs_min',
5029         `ucs_max' and `code_offset'.
5030         (charset_get_byte1): New implementation [delete specific charset
5031         depended implementations].
5032         (Fmake_charset): Modify for `make_charset'.
5033         (Fmake_reverse_direction_charset): Likewise.
5034         (complex_vars_of_mule_charset): Likewise.
5035
5036         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5037         `code_offset'.
5038         (CHARSET_UCS_MIN): New macro.
5039         (CHARSET_UCS_MAX): New macro.
5040         (CHARSET_CODE_OFFSET): New macro.
5041         (MAKE_CHAR): Delete charset depended definitions [except
5042         katakana-jisx0201].
5043
5044 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5045
5046         * char-ucs.h (breakup_char_1): Use
5047         `Vdefault_coded_charset_priority_list' for C0-Controls,
5048         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5049
5050 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5051
5052         * char-ucs.h (charset_get_byte1): New function.
5053         (XCHARSET_GET_BYTE1): Deleted.
5054         (charset_get_byte2): New function.
5055         (XCHARSET_GET_BYTE2): Deleted.
5056         (Vdefault_coded_charset_priority_list): New external variable.
5057         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5058         `Vdefault_preferred_coded_charset_list'.
5059
5060         * mule-charset.c (charset_get_byte1): New function.
5061         (charset_get_byte2): New function.
5062         (Vdefault_coded_charset_priority_list): New variable.
5063         (vars_of_mule_charset): Add new variable
5064         `default-coded-charset-priority-list'.
5065
5066 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5067
5068         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5069         (XCHARSET_GET_BYTE2): New inline function.
5070         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5071         `XCHARSET_GET_BYTE2'.
5072
5073 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5074
5075         * mule-charset.c (make_charset): Initialize
5076         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5077         NULL if table is not defined.
5078
5079 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5080
5081         * text-coding.c (char_encode_shift_jis): Use
5082         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5083         `ucs_to_latin_jisx0201'.
5084
5085         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5086         (ucs_to_latin_iso8859_2): Deleted.
5087         (ucs_to_latin_iso8859_3): Deleted.
5088         (ucs_to_latin_iso8859_4): Deleted.
5089         (ucs_to_latin_iso8859_9): Deleted.
5090         (ucs_to_latin_viscii_lower): Deleted.
5091         (ucs_to_latin_viscii_upper): Deleted.
5092         (ucs_to_latin_tcvn5712): Deleted.
5093         (make_charset): Add new argument `decoding_table'; set up
5094         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5095         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5096         `decoding_table' is defined in UTF-2000.
5097         (Fmake_charset): Modify for `make_charset'.
5098         (Fmake_reverse_direction_charset): Likewise.
5099         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5100         and `GENERATE_96_SET'.
5101
5102         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5103         (ucs_to_latin_jisx0201): Deleted.
5104         (latin_iso8859_2_to_ucs): Deleted.
5105         (ucs_to_latin_iso8859_2): Deleted.
5106         (latin_iso8859_3_to_ucs): Deleted.
5107         (ucs_to_latin_iso8859_3): Deleted.
5108         (latin_iso8859_4_to_ucs): Deleted.
5109         (ucs_to_latin_iso8859_4): Deleted.
5110         (latin_iso8859_9_to_ucs): Deleted.
5111         (ucs_to_latin_iso8859_9): Deleted.
5112         (latin_viscii_lower_to_ucs): Deleted.
5113         (ucs_to_latin_viscii_lower): Deleted.
5114         (latin_viscii_upper_to_ucs): Deleted.
5115         (ucs_to_latin_viscii_upper): Deleted.
5116         (struct Lisp_Charset): Renamed `encoding_table' to
5117         `to_byte1_table'; add `to_byte2_table'.
5118         (CHARSET_DECODING_TABLE): New macro.
5119         (CHARSET_TO_BYTE1_TABLE): New macro.
5120         (CHARSET_TO_BYTE2_TABLE): New macro.
5121         (XCHARSET_DECODING_TABLE): New macro.
5122         (XCHARSET_TO_BYTE1_TABLE): New macro.
5123         (XCHARSET_TO_BYTE2_TABLE): New macro.
5124         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5125         tables.
5126         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5127         don't use `ucs_to_*' tables.
5128
5129 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5130
5131         * text-coding.c (Fmake_coding_system): Don't set up
5132         `codesys->fixed.size'.
5133         (encode_coding_no_conversion): Use `if' instead of `switch'.
5134
5135         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5136
5137 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5138
5139         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5140         (Fmake_charset): Modify for `make_charset'.
5141         (Fmake_reverse_direction_charset): Likewise.
5142         (complex_vars_of_mule_charset): Likewise.
5143
5144 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5145
5146         * text-coding.c (char_encode_shift_jis): Use table
5147         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5148
5149 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5150
5151         * text-coding.c (text_encode_generic): Use `if' instead of
5152         `switch'.
5153         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5154         decode JIS-Latin.
5155
5156 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5157
5158         * text-coding.c (encode_coding_sjis): Deleted.
5159         (char_encode_shift_jis): New function.
5160         (char_finish_shift_jis): New function.
5161         (reset_encoding_stream): Set up `encode_char' and `finish' for
5162         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5163         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5164         (char_encode_utf8): Treat `eol_type'.
5165
5166 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5167
5168         * file-coding.c (decode_coding_iso2022): Use
5169         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5170
5171 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5172
5173         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5174         to 0.7 (Hirano).
5175
5176 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5177
5178         * char-lb.h (CHAR_COLUMNS): New macro.
5179
5180 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5181
5182         * text-coding.c (char_encode_ucs4): New function.
5183         (char_finish_ucs4): New function.
5184         (encode_coding_ucs4): Deleted.
5185         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5186         (text_encode_generic): Delete local variable `charset' and `half'.
5187         (ucs_to_mule_table): Deleted.
5188         (mule_to_ucs_table): Deleted.
5189         (Fset_ucs_char): Deleted.
5190         (ucs_to_char): Deleted.
5191         (Fucs_char): Deleted.
5192         (Fset_char_ucs): Deleted.
5193         (Fchar_ucs): Deleted.
5194         (decode_ucs4): Deleted.
5195         (mule_char_to_ucs4): Deleted.
5196         (encode_ucs4): Deleted.
5197         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5198         (decode_coding_utf8): Likewise.
5199         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5200         (char_encode_iso2022): Fixed.
5201         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5202         `Fset_char_ucs' and `Fchar_ucs'.
5203         (complex_vars_of_file_coding): Don't initialize
5204         `ucs_to_mule_table'.
5205
5206         * objects-tty.c (tty_initialize_font_instance): Don't use
5207         `XCHARSET_COLUMNS'.
5208
5209         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5210         UTF-2000.
5211
5212         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5213         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5214
5215         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5216         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5217         (emchar_string_displayed_columns): Likewise.
5218
5219         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5220         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5221         (string_column_at_point): Likewise.
5222         (Fmove_to_column): Likewise.
5223
5224         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5225         `encoding_table' and `decoding_table'.
5226         (CHARSET_REP_BYTES): Deleted.
5227         (XCHARSET_REP_BYTES): Deleted.
5228         (XCHARSET_COLUMNS): Deleted.
5229         (CHAR_COLUMNS): New macro.
5230         (lookup_composite_char): Deleted unconditionally.
5231         (composite_char_string): Likewise.
5232
5233 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5234
5235         * char-ucs.h (Emchar_to_byte_table): New type.
5236         (get_byte_from_character_table): New function interface.
5237         (Vcharset_latin_jisx0201): New variable.
5238         (latin_jisx0201_to_ucs): New variable.
5239         (ucs_to_latin_jisx0201): New variable.
5240         (Vcharset_latin_iso8859_2): New variable.
5241         (latin_iso8859_2_to_ucs): New variable.
5242         (ucs_to_latin_iso8859_2): New variable.
5243         (Vcharset_latin_iso8859_3): New variable.
5244         (latin_iso8859_3_to_ucs): New variable.
5245         (ucs_to_latin_iso8859_3): New variable.
5246         (Vcharset_latin_iso8859_4): New variable.
5247         (latin_iso8859_4_to_ucs): New variable.
5248         (ucs_to_latin_iso8859_4): New variable.
5249         (Vcharset_latin_iso8859_9): New variable.
5250         (latin_iso8859_9_to_ucs): New variable.
5251         (ucs_to_latin_iso8859_9): New variable.
5252         (Vcharset_latin_viscii_lower): New variable.
5253         (latin_viscii_lower_to_ucs): New variable.
5254         (ucs_to_latin_viscii_lower): New variable.
5255         (Vcharset_latin_viscii_upper): New variable.
5256         (latin_viscii_upper_to_ucs): New variable.
5257         (ucs_to_latin_viscii_upper): New variable.
5258         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5259         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5260         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5261         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5262         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5263         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5264         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5265         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5266         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5267         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5268
5269         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5270         (Vcharset_latin_viscii_upper): New variable.
5271         (make_byte_from_character_table): New function.
5272         (put_byte_from_character_table): New function.
5273         (get_byte_from_character_table): New function.
5274         (CHAR96): New macro.
5275         (ucs_to_latin_jisx0201): New variable.
5276         (latin_jisx0201_to_ucs): New variable.
5277         (ucs_to_latin_iso8859_2): New variable.
5278         (latin_iso8859_2_to_ucs): New variable.
5279         (ucs_to_latin_iso8859_3): New variable.
5280         (latin_iso8859_3_to_ucs): New variable.
5281         (ucs_to_latin_iso8859_4): New variable.
5282         (latin_iso8859_4_to_ucs): New variable.
5283         (ucs_to_latin_iso8859_9): New variable.
5284         (latin_iso8859_9_to_ucs): New variable.
5285         (ucs_to_latin_viscii_lower): New variable.
5286         (latin_viscii_lower_to_ucs): New variable.
5287         (ucs_to_latin_viscii_upper): New variable.
5288         (latin_viscii_upper_to_ucs): New variable.
5289         (ucs_to_latin_tcvn5712): New variable.
5290         (latin_tcvn5712_to_ucs): New variable.
5291         (Qlatin_viscii_lower): New variable.
5292         (Qlatin_viscii_upper): New variable.
5293         (syms_of_mule_charset): Set up new symbol
5294         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5295         (complex_vars_of_mule_charset): Set up new charset
5296         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5297         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5298         `ucs_to_<CHARSET>' tables.
5299
5300 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5301
5302         * text-coding.c: New file.
5303
5304 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5305
5306         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5307
5308         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5309         (MAKE_CHAR): Modify for `ucs-bmp'.
5310         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5311         non-MULE characters of BMP.
5312
5313 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5314
5315         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5316         to 0.6.
5317
5318 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5319
5320         * lstream.h:
5321         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5322         - Include character.h for `CHAR_ASCII_P'.
5323
5324         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5325
5326         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5327         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5328
5329         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5330         (BYTE_C0_P): Likewise.
5331         (BYTE_C1_P): Likewise.
5332         (Lstream_get_emchar_1): Likewise.
5333         (Lstream_fput_emchar): Likewise.
5334         (Lstream_funget_emchar): Likewise.
5335         (copy_internal_to_external): Likewise.
5336         (copy_external_to_internal): Likewise.
5337
5338         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5339         (BYTE_C0_P): Likewise.
5340         (BYTE_C1_P): Likewise.
5341         (Lstream_get_emchar_1): Likewise.
5342         (Lstream_fput_emchar): Likewise.
5343         (Lstream_funget_emchar): Likewise.
5344         (copy_internal_to_external): Likewise.
5345         (copy_external_to_internal): Likewise.
5346
5347         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5348         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5349
5350         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5351         (BYTE_ASCII_P): Moved to mb-1byte.h.
5352
5353 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5354
5355         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5356
5357         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5358         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5359         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5360         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5361         (VALIDATE_CHARPTR_FORWARD): Likewise.
5362         (simple_charptr_emchar): Moved to mb-multibyte.h.
5363         (simple_set_charptr_emchar): Likewise.
5364         (simple_charptr_copy_char): Likewise.
5365         (non_ascii_charptr_emchar): Likewise.
5366         (non_ascii_set_charptr_emchar): Likewise.
5367         (non_ascii_charptr_copy_char): Likewise.
5368         (charptr_emchar): Moved to mb-*byte.h.
5369         (set_charptr_emchar): Likewise.
5370         (charptr_copy_char): Likewise.
5371
5372         * mb-1byte.h, mb-multibyte.h: New files.
5373
5374 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5375
5376         * mb-utf-8.h (MULTIBYTE): New macro.
5377         (MAX_EMCHAR_LEN): Moved from buffer.h.
5378         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5379
5380         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5381
5382         * mb-lb.h, multibyte.h: New files.
5383
5384         * char-1byte.h (Charset_ID): Moved from buffer.h.
5385         (MIN_LEADING_BYTE): Likewise.
5386         (LEADING_BYTE_ASCII): Likewise.
5387         (NUM_LEADING_BYTES): Likewise.
5388         (CHARSETP): Likewise.
5389         (CHARSET_BY_LEADING_BYTE): Likewise.
5390         (XCHARSET_LEADING_BYTE): Likewise.
5391         (XCHARSET_GRAPHIC): Likewise.
5392         (XCHARSET_COLUMNS): Likewise.
5393         (XCHARSET_DIMENSION): Likewise.
5394         (CHAR_CHARSET): Likewise.
5395         (CHAR_LEADING_BYTE): Likewise.
5396         (BREAKUP_CHAR): Likewise.
5397         (Vcharset_ascii): Likewise.
5398
5399         * buffer.h: Include multibyte.h unconditionally.
5400         (VALID_CHARPTR_P): Moved to multibyte.h.
5401         (ASSERT_VALID_CHARPTR): Likewise.
5402         (REAL_INC_CHARPTR): Likewise.
5403         (REAL_INC_CHARBYTIND): Likewise.
5404         (REAL_DEC_CHARPTR): Likewise.
5405         (INC_CHARPTR): Likewise.
5406         (INC_CHARBYTIND): Likewise.
5407         (DEC_CHARPTR): Likewise.
5408         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5409         (VALIDATE_CHARPTR_FORWARD): Likewise.
5410         (charptr_n_addr): Likewise.
5411         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5412         (simple_charptr_emchar): Moved to multibyte.h.
5413         (simple_set_charptr_emchar): Likewise.
5414         (simple_charptr_copy_char): Likewise.
5415         (non_ascii_charptr_emchar): Likewise.
5416         (non_ascii_set_charptr_emchar): Likewise.
5417         (non_ascii_charptr_copy_char): Likewise.
5418         (charptr_emchar): Likewise.
5419         (set_charptr_emchar): Likewise.
5420         (charptr_copy_char): Likewise.
5421         (charptr_emchar_n): Likewise.
5422         (Charset_ID): Moved to char-1byte.h.
5423         (Vcharset_ascii): Likewise.
5424         (CHAR_CHARSET): Likewise.
5425         (CHAR_LEADING_BYTE): Likewise.
5426         (LEADING_BYTE_ASCII): Likewise.
5427         (NUM_LEADING_BYTES): Likewise.
5428         (MIN_LEADING_BYTE): Likewise.
5429         (CHARSETP): Likewise.
5430         (CHARSET_BY_LEADING_BYTE): Likewise.
5431         (XCHARSET_LEADING_BYTE): Likewise.
5432         (XCHARSET_GRAPHIC): Likewise.
5433         (XCHARSET_COLUMNS): Likewise.
5434         (XCHARSET_DIMENSION): Likewise.
5435         (BREAKUP_CHAR): Likewise.
5436
5437 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5438
5439         * character.h: Add document about interface for characters.
5440
5441         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5442         (MAKE_CHAR): Delete comment about
5443         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5444         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5445         (BREAKUP_CHAR): Modify name of arguments.
5446         (CHAR_CHARSET): Modify name of argument.
5447
5448         * buffer.h: Delete document about Emchar accessors.
5449
5450 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5451
5452         * character.h (CHAR_INTP): Moved from buffer.h
5453         (CHAR_OR_CHAR_INTP): Likewise.
5454         (XCHAR_OR_CHAR_INT): Likewise.
5455         (CHECK_CHAR_COERCE_INT): Likewise.
5456
5457         * buffer.h (CHAR_INTP): Moved to character.h
5458         (CHAR_OR_CHAR_INTP): Likewise.
5459         (XCHAR_OR_CHAR_INT): Likewise.
5460         (CHECK_CHAR_COERCE_INT): Likewise.
5461
5462 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5463
5464         * character.h:
5465         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5466         - Include char-1byte.h, char-lb.h or char-ucs.h.
5467
5468         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5469
5470         * buffer.h: Include character unconditionally.
5471         (valid_char_p): Moved to char-*.h.
5472         (non_ascii_valid_char_p): Moved to char-lb.h.
5473
5474         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5475
5476 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5477
5478         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5479         in UTF-2000 because it is not ported yet and not to use
5480         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5481         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5482         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5483
5484         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5485         (CHAR_ASCII_P): Moved from character.h.
5486
5487         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5488         (CHAR_ASCII_P): Likewise.
5489         (CHAR_FIELD1_MASK): Deleted.
5490         (CHAR_FIELD2_MASK): Deleted.
5491         (CHAR_FIELD3_MASK): Deleted.
5492         (MAX_CHAR_BASIC_LATIN): New macro.
5493         (CHAR_FIELD1): Deleted.
5494         (CHAR_FIELD2_INTERNAL): Deleted.
5495         (CHAR_FIELD3_INTERNAL): Deleted.
5496         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5497         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5498         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5499         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5500         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5501         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5502         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5503         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5504         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5505         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5506         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5507         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5508         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5509         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5510         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5511         (MIN_CHAR_COMPOSITION): Deleted.
5512         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5513         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5514
5515 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5516
5517         * buffer.h: Include mb-utf-8.h in UTF-2000.
5518
5519         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5520
5521         * mb-utf-8.h: New file.
5522
5523 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5524
5525         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5526         instead of `int'.
5527
5528         * mule-charset.h, buffer.h (Charset_ID): New type.
5529
5530 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5531
5532         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5533         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5534         instead of `MULE_CHAR_PRIVATE_OFFSET',
5535         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5536         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5537         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5538
5539         * character.h (Vcharset_japanese_jisx0212): New variable
5540         definition.
5541
5542 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5543
5544         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5545         (charset_by_attributes): Delete array about direction.
5546         (latin_a_char_to_charset): New variable in UTF-2000.
5547         (latin_a_char_to_byte1): New variable in UTF-2000.
5548         (latin_a_char_to_byte2): New variable in UTF-2000.
5549         (Qucs_bmp): New variable.
5550         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5551         `Bufbyte'.
5552         (next_allocated_2_byte_leading_byte): Likewise.
5553         (non_ascii_set_charptr_emchar): Likewise.
5554         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5555         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5556         `charset_by_attributes'.
5557         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5558         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5559         and `CHARSET_BY_LEADING_BYTE'.
5560         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5561         `utf-2000-version' to `vars_of_mule_charset'.
5562         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5563         define `leading-code-private-11' in UTF-2000; move setting of
5564         `utf-2000-version' from `syms_of_mule_charset'.
5565         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5566         UTF-2000.
5567
5568         * character.h (Charset_ID): New type.
5569         (LEADING_BYTE_UCS_BMP): New macro.
5570         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5571         (CHARSET_ID_OFFSET_94): New macro.
5572         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5573         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5574         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5575         final-byte.
5576         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5577         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5578         (CHARSET_ID_OFFSET_96): New macro.
5579         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5580         CHARSET_ID_OFFSET_96 and final-byte.
5581         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5582         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5583         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5584         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5585         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5586         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5587         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5588         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5589         (LEADING_BYTE_THAI_TIS620): Likewise.
5590         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5591         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5592         (CHARSET_ID_OFFSET_94x94): New macro.
5593         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5594         CHARSET_ID_OFFSET_94x94 and final-byte.
5595         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5596         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5597         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5598         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5599         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5600         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5601         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5602         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5603         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5604         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5605         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5606         (CHARSET_TYPE_128X128): New macro.
5607         (CHARSET_TYPE_256X256): New macro.
5608         (XCHARSET_PRIVATE_P): Delete unconditionally.
5609         (charset_by_attributes): Delete array about direction.
5610         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5611         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5612         (MIN_CHAR_94): New macro.
5613         (MAX_CHAR_94): New macro.
5614         (MIN_CHAR_96): New macro.
5615         (MAX_CHAR_96): New macro.
5616         (MIN_CHAR_94x94): New macro.
5617         (MAX_CHAR_94x94): New macro.
5618         (MIN_CHAR_96x96): New macro.
5619         (MAX_CHAR_96x96): New macro.
5620         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5621         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5622         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5623         - 32)'.
5624         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5625         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5626         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5627         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5628         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5629         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5630         `XCHARSET_LEADING_BYTE' to make code-point.
5631         (latin_a_char_to_charset): New variable.
5632         (latin_a_char_to_byte1): New variable.
5633         (latin_a_char_to_byte2): New variable.
5634         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5635         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5636         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5637
5638         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5639         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5640         (find_charsets_in_emchar_string): Likewise.
5641         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5642
5643         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5644         `int'.
5645         (decode_coding_iso2022): Likewise.
5646
5647         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5648         of `unsigned char'.
5649
5650         * redisplay.c (redisplay_text_width_emchar_string): Use
5651         `Charset_ID' instead of `unsigned char'.
5652         (redisplay_frame_text_width_string): Likewise.
5653
5654         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5655         `unsigned char'.
5656
5657         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5658         instead of `unsigned char'.
5659         (face_cachel_charset_font_metric_info): Likewise.
5660
5661         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5662         (get_non_ascii_char_table_value): Likewise.
5663         (get_char_table): Likewise.
5664         (put_char_table): Likewise.
5665         (map_over_other_charset): Likewise.
5666         (map_char_table): Likewise.
5667
5668         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5669         instead of `unsigned char'.
5670
5671 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5672
5673         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5674         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5675
5676         * mule-charset.c (leading_code_private_11): Don't define in
5677         UTF-2000.
5678
5679         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5680         in UTF-2000 because it is not ported yet and not to use
5681         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5682
5683 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5684
5685         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5686
5687 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5688
5689         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5690         in UTF-2000.
5691
5692         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5693         of unsigned char to store leading-byte.
5694
5695         * chartab.c (get_non_ascii_char_table_value): Don't use
5696         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5697
5698         * file-coding.c (encode_coding_big5): Delete bogus implementation
5699         in UTF2000.
5700
5701         * character.h (LEADING_BYTE_*): Delete definition for
5702         non-UTF-2000.
5703         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5704         (LEADING_BYTE_PREFIX_P): Deleted.
5705         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5706         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5707         (BUFBYTE_LEADING_BYTE_P): Deleted.
5708         (CHARSET_PRIVATE_P): Deleted unconditionally.
5709         (rep_bytes_by_first_byte): Deleted unconditionally.
5710         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5711         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5712         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5713         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5714         (CHAR_FIELD2): Deleted.
5715         (CHAR_FIELD3): Deleted.
5716         (MAKE_CHAR): Delete definition for non-UTF-2000.
5717         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5718         (breakup_char_1): New implementation.
5719         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5720         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5721
5722 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5723
5724         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5725         condition.
5726
5727 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5728
5729         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5730         (CHARSET_PRIVATE_P): Likewise.
5731         (XCHARSET_PRIVATE_P): Likewise.
5732         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5733
5734         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5735         UTF2000.
5736         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5737
5738 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5739
5740         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5741         (NUM_LEADING_BYTES): Changed from 128 to 256.
5742         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5743         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5744         UTF2000.
5745         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5746
5747         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5748         UTF2000.
5749         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5750         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5751         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5752         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5753         (Qchinese_cns11643_3): New variable in UTF2000.
5754         (Qchinese_cns11643_4): New variable in UTF2000.
5755         (Qchinese_cns11643_5): New variable in UTF2000.
5756         (Qchinese_cns11643_6): New variable in UTF2000.
5757         (Qchinese_cns11643_7): New variable in UTF2000.
5758         (syms_of_mule_charset): Define `chinese-cns11643-3',
5759         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5760         and `chinese-cns11643-7' in UTF2000.
5761         (vars_of_mule_charset): Initialize
5762         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5763         + 1 in UTF2000.
5764         (complex_vars_of_mule_charset): Setup charset
5765         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5766         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5767
5768 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5769
5770         * mule-charset.c: Move setting for `leading-code-private-11' from
5771         `syms_of_mule_charset' to `vars_of_mule_charset'.
5772
5773 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5774
5775         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5776         and `NUM_LEADING_BYTES' in assert.
5777
5778 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5779
5780         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5781         instead of 128.
5782         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5783         `NUM_LEADING_BYTES' instead of 128.
5784
5785 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5786
5787         * mule-charset.h (charset_by_leading_byte): Use
5788         `NUM_LEADING_BYTES' instead of 128.
5789         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5790
5791         * mule-charset.c (charset_by_leading_byte): Use
5792         `NUM_LEADING_BYTES' instead of 128.
5793         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5794
5795         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5796         128.
5797
5798 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5799
5800         * mule-charset.c (syms_of_mule_charset): Update to
5801         0.4 (Shin-Imamiya).
5802
5803 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5804
5805         * file-coding.c (encode_coding_sjis): New implementation for
5806         UTF2000.  (decode_coding_sjis): Ditto.
5807
5808 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5809
5810         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5811         Don't define in UTF2000.
5812
5813         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5814         defined.
5815
5816         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5817         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5818         MULE.
5819
5820 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5821
5822         * config.h.in (CHAR_IS_UCS4): New macro.
5823
5824         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5825         conventional MULE representation.
5826         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5827
5828         * mule-charset.h: Reverted to original.
5829
5830         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5831         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5832         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5833
5834         * character.h: New file.
5835
5836         * file-coding.c (Fmake_coding_system): Set 1 to
5837         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5838         defined.
5839         (encode_coding_no_conversion): New implementation for UTF2000.
5840
5841         * file-coding.h (struct Lisp_Coding_System): Add new member
5842         `fixed.size'.
5843
5844 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5845
5846         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5847         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5848         (encode_coding_iso2022): New implementation for UTF2000.
5849
5850 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5851
5852         * mule-canna.c (c2mu): New implementation for UTF2000.
5853         (m2c): Likewise.
5854
5855 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5856
5857         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5858
5859 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5860
5861         * file-coding.c (reset_encoding_stream): Set 0 to
5862         `str->iso2022.current_char_boundary' in UTF2000.
5863         (encode_utf8): Don't define in UTF2000.
5864         (encode_coding_utf8): New implementation for UTF-8 representation
5865         of UTF2000.
5866         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5867
5868 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5869
5870         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5871
5872         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5873         UTF2000.
5874         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5875
5876         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5877
5878         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5879         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5880         as UTF-8 in UTF2000.
5881         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5882         (non_ascii_valid_char_p): Don't define in UTF2000.
5883         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5884         (Lstream_get_emchar_1): Likewise.
5885         (utf-2000-version): New variable in UTF2000.
5886
5887         * lread.c (read_escape): Add new reader `u'.
5888
5889         * insdel.c (three_to_one_table): Don't define in UTF2000.
5890         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5891         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5892         UTF2000.
5893         (bytind_to_bufpos_func): Likewise.
5894         (buffer_mule_signal_inserted_region): Likewise.
5895         (vars_of_insdel): Don't initialize `three_to_one_table'.
5896         (init_buffer_text): Use `buf->text->mule_size' instead of
5897         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5898         UTF2000.
5899
5900         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5901         UTF-8 representation in UTF2000.
5902         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5903         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5904         (decode_coding_iso2022): Don't define local variable `lb' in
5905         UTF2000; don't use LEADING_BYTE in UTF2000; use
5906         `DECODE_ADD_UCS_CHAR' in UTF2000.
5907         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5908
5909         * config.h.in (UTF2000): New macro.
5910
5911         * buffer.h (struct buffer_text): Add new member `mule_size' and
5912         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5913         (valid_char_p): Return always 1 in UTF2000.
5914         (MAX_EMCHAR_LEN): 6 in UTF2000.
5915         (three_to_one_table): Don't define in UTF2000.
5916         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5917         UTF2000.
5918         (real_bytind_to_bufpos): Likewise.
5919
5920         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5921
5922 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5923
5924         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5925         representation change.
5926         (Vutf_2000_version): New variable.
5927         (leading_code_private_11): New variable.
5928         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5929         `leading-code-private-11'.
5930
5931         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5932         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5933         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5934         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5935         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5936         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5937         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5938         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5939         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5940         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5941         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5942         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5943         (MIN_CHAR_GREEK): New macro.
5944         (MAX_CHAR_GREEK): New macro.
5945         (MIN_CHAR_CYRILLIC): New macro.
5946         (MAX_CHAR_CYRILLIC): New macro.
5947         (MIN_CHAR_HEBREW): New macro.
5948         (MAX_CHAR_HEBREW): New macro.
5949         (MIN_CHAR_THAI): New macro.
5950         (MAX_CHAR_THAI): New macro.
5951         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5952         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5953         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5954         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5955         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5956         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5957         (CHAR_FIELD2): New inline function.
5958         (CHAR_FIELD3): New inline function.
5959         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5960         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5961         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5962         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5963         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5964         (MIN_CHAR_COMPOSITION): Likewise.
5965         (CHAR_LEADING_BYTE): Modified for character representation change.
5966         (MAKE_CHAR): Likewise.
5967
5968         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5969         (Vcharset_greek_iso8859_7): Likewise.
5970         (Vcharset_cyrillic_iso8859_5): Likewise.
5971         (Vcharset_hebrew_iso8859_8): Likewise.
5972         (Vcharset_thai_tis620): Likewise.
5973         (Vcharset_katakana_jisx0201): Likewise.
5974
5975 2007-10-07  Vin Shelton  <acs@xemacs.org>
5976
5977         * XEmacs 21.4.21 is released
5978
5979 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
5980
5981         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
5982
5983 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
5984
5985         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
5986         (png_instantiate): Initialize setjmp_buffer early, and avoid
5987         recursive entry to error handler.
5988
5989 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
5990
5991         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
5992         a typo fix.
5993
5994 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
5995
5996         * event-Xt.c (x_reset_modifier_mapping):
5997         * event-gtk.c (gtk_reset_modifier_mapping):
5998         Zero out the device's modifier map once we've freed it, to prevent
5999         a double free on a re-entrant call. 
6000
6001 2007-05-17  Vin Shelton  <acs@xemacs.org>
6002
6003         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
6004         64-bit linux.  Patch from Hans de Graaff.
6005
6006 2007-05-02  Vin Shelton  <acs@xemacs.org>
6007
6008         * dumper.c (pdump): Don't close pdump_fd (already closed by
6009         fclose() call.  Patch from Steve Higham.
6010         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
6011         already closed.  Patch inspired by Steve Higham.
6012
6013 2007-05-01  Vin Shelton  <acs@xemacs.org>
6014
6015         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
6016         (mswindows_fstat): Ditto.
6017         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
6018
6019 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
6020
6021         * postgresql.c: Update Steve Baur's email address by his request.
6022         * postgresql.h: Ditto.
6023
6024 2007-01-04  Vin Shelton  <acs@xemacs.org>
6025
6026         * fileio.c (check_writable): Check old-style readonly bit only for
6027         non-directories.
6028
6029 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
6030
6031         * src/fileio.c (check_writable): 
6032         Cope with the fact that the read-only attribute trumps Windows NTFS
6033         ACLS.
6034
6035
6036 2006-12-09  Vin Shelton  <acs@xemacs.org>
6037
6038         * XEmacs 21.4.20 is released
6039
6040 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
6041
6042         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6043         relocated the definitions to be used sooner in file.
6044         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6045         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6046         overflow.
6047
6048 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6049
6050         * sound.c (init_native_sound):
6051         Only X11 and GTK devices can possibly not be on the console of the
6052         associated machine. Fixes a crash when init_native_sound is called
6053         on a msprinter device. 
6054
6055 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6056
6057         * buffer.c (buffer-file-name): Document invariant.
6058         (buffer-file-truename): Sync wording to buffer-file-name.
6059         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6060         and discussion.
6061
6062 2006-11-19  Benson Margulies  <benson@dchbk.us>
6063
6064         * fileio.c: Add code to use full Win32 API to check for write
6065         access.  Win32 has the general design policy that you aren't
6066         supposed to ask this question, since security checks change
6067         depending on asynchronous processes.  Nonetheless, there is a way,
6068         by acting as if we are a server doing interpretive access
6069         control.
6070
6071 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6072
6073         * bytecode.c: Use xnew_array instead of alloca.
6074
6075 2006-07-04  Vin Shelton  <acs@xemacs.org>
6076
6077         * redisplay-msw.c: Fix tiny, but crucial typo.
6078
6079 2006-06-22  Jerry James  <james@xemacs.org>
6080
6081         * EmacsShell-sub.c (ChangeManaged):
6082         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6083         NULL.
6084         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6085         checking if it is NULL.  Also fix a memory leak.
6086         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6087         dereference it, not the other way around.
6088         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6089         overflow check.
6090         * dumper.c (pdump_register_struct): Ditto.
6091         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6092         to (short) warnpath overflow warnpath.
6093         * extents.c (detach_all_extents): Call extent_list_delete_all with
6094         a non-NULL parameter only.
6095         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6096         NULL width and height.
6097         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6098         xic before checking if they are NULL.
6099         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6100         allocated array.
6101         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6102         * nas.c (Err): Fix a memory leak.
6103         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6104         Don't create the buffer if there is nothing to do.
6105         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6106         * redisplay-output.c (redisplay_output_layout): Ditto.
6107         * redisplay-tty.c (tty_output_display_block): Ditto.
6108         * redisplay-x.c (x_output_display_block): Ditto.
6109         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6110         dereference instance->scrollbar_data if it is NULL.
6111         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6112         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6113         for sb->scrollbar_data.
6114         * sound.c (init_native_sound): Avoid a buffer overflow by
6115         allocating a buffer with the appropriate size.
6116
6117 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6118
6119         * EmacsShell-sub.c (RootGeometryManager):
6120         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6121         Based on a suggestion by Francois L'Archeveque.
6122
6123 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6124
6125         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6126         current values found in GNU Emacs.
6127
6128 2006-03-17  Vin Shelton  <acs@xemacs.org>
6129
6130         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6131         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6132
6133         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6134         'hex_initialized' because it conflicts with 'initialized' in
6135         lisp.h.
6136
6137 2006-01-28  Vin Shelton  <acs@xemacs.org>
6138
6139         * XEmacs 21.4.19 is released
6140
6141 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6142
6143         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6144
6145 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6146
6147         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6148         5000 to INT_MAX.
6149
6150 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6151
6152         * database.c: Suppress compiler warning under Cygwin.
6153         * database.c: Removed __FreeBSD__ check, should be handled by
6154         HAVE_U_xxx_T defines.
6155
6156 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6157
6158         * console.c (stuff_buffered_input): Compile body only if
6159         HAVE_TTY.
6160
6161 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6162
6163         * callproc.c: #include sysdir.h, so that any appropriate Mule
6164         magic happens with the chdir() call when calling a subprocess. 
6165
6166 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6167
6168         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6169         * mule-ccl.c: Check that a character set exists before using it
6170         to create a character. 
6171
6172 2005-12-06  Vin Shelton  <acs@xemacs.org>
6173
6174         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6175         to INT_MAX.
6176
6177 2005-12-03  Vin Shelton <acs@xemacs.org>
6178
6179         * XEmacs 21.4.18 is released
6180
6181 2005-11-27  Kean Johnston <kean@armory.com>
6182
6183         * redisplay-tty.c (set_tty_modes):
6184         (reset_tty_modes): disable auto-margins if the terminal supports
6185         them.
6186         (init_tty_for_redisplay): fix cursor shape.
6187
6188 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6189
6190         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6191         for control-1 characters properly, both when reading multibyte
6192         characters and writing them. 
6193
6194 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6195
6196         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6197         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6198         were seeing with incremental selection transfer failing. 
6199
6200 2005-11-26  Vin Shelton  <acs@xemacs.org>
6201
6202         * callproc.c (Fold_call_process_internal): Create the buffer if it
6203         does not already exist.  The original patch came from Ben Wing in
6204         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6205
6206 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6207
6208         * callproc.c: Process-related docstring improvements spurred by
6209         Norbert Koch.
6210
6211 2005-11-25  Vin Shelton  <acs@xemacs.org>
6212
6213         * depend: Regenerated.
6214
6215 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6216
6217         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6218         says it clashes with a global with the same name.
6219
6220 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6221
6222         * sysdll.c (dll_open): Under MacOS X return NULL under the
6223         filename is NULL.  Fixes problems finding local symbols under 10.4
6224         (Tiger)
6225
6226 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6227         
6228         * config.h.in: New HAVE_U_INT*_T defines.
6229         
6230         * database.c: Only use u_int*_t typedefs if not already
6231         defined.
6232
6233 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6234
6235         * src/process-unix.c (unix_open_network_stream): moved
6236           'portbuf' buffer out of an inner block as it is used in the
6237           entire function. With gcc4, the stack may get corrupted
6238           after leaving this block. This patches adjusts the size of
6239           the used buffer also; static '128' bytes are far too much
6240           currently and might not suffice for future architectures
6241           (e.g. for 512 bit ones ;)). Instead of, use only the really
6242           required space (max octets * ln(256)/ln(10) chars + space
6243           for '\0' and the sign)
6244
6245 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6246
6247         * callproc.c: Include sysdir.h, so any necessary Mule processing
6248         is done on the current directory name before starting a new
6249         process.
6250
6251 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6252
6253         * chartab.c (Fchar_table_p):
6254         (Fget_range_char_table):
6255         (Fput_char_table):
6256         (Fmap_char_table):
6257         Describe range representation and fix typo.
6258
6259 2005-02-12  Vin Shelton  <acs@xemacs.org>
6260
6261         * emacs.c (shut_down_emacs): Advise users to send email to the
6262         xemacs-beta list instead of crashes@xemacs.org.
6263
6264 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6265
6266         * process-unix.c (unix_send_process): Flush the last chunk, even
6267         when the pipe is blocked.
6268
6269 2005-02-06  Vin Shelton <acs@xemacs.org>
6270
6271         * XEmacs 21.4.17 is released
6272
6273 2005-01-31  Ben Wing  <ben@xemacs.org>
6274
6275         * emacs.c:
6276         Define assert_failed() always.
6277         * lisp.h:
6278         Always define ABORT().
6279
6280 2005-01-25  Ben Wing  <ben@xemacs.org>
6281
6282         * Makefile.in.in:
6283         * Makefile.in.in (%.o):
6284         Don't compile executable as Windows (-mwindows) under Cygwin.
6285         Semi-recent changes to Cygwin's executable-startup handling make
6286         it impossible to access the TTY this way.
6287
6288         Don't use special linker file under Cygwin (cygwin.sc) except
6289         when non-PDUMP (even in this case it is highly questionable); you
6290         get errors like
6291
6292       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6293    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6294
6295 2005-01-29  Ben Wing  <ben@xemacs.org>
6296
6297         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6298
6299         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6300
6301 2005-01-29  Ben Wing  <ben@xemacs.org>
6302
6303         * bytecode.c (optimize_compiled_function):
6304         * print.c (FROB):
6305         * print.c (long_to_string):
6306         Add casts to avoid warning.
6307         
6308         * glyphs-eimage.c:
6309         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6310         #### The better solution is to move the TIFF and JPEG code to
6311         different files.
6312         
6313         * glyphs-msw.c (mswindows_xbm_instantiate):
6314         Define __STDC__ to avoid problems with compface.h.
6315         
6316         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6317         * EmacsShell-sub.c:
6318         * EmacsShell-sub.c (ABORT):
6319         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6320         * EmacsShell-sub.c (RootGeometryManager):
6321         * EmacsShell.c:
6322         * EmacsShell.c (ABORT):
6323         * EmacsShell.c (EmacsShellUpdateSizeHints):
6324         * alloc.c (free_lcrecord):
6325         * alloca.c (i00afunc):
6326         * buffer.c (delete_from_buffer_alist):
6327         * buffer.c (MARKED_SLOT):
6328         * bytecode.c (execute_rare_opcode):
6329         * bytecode.c (optimize_byte_code):
6330         * bytecode.c (Ffetch_bytecode):
6331         * chartab.c (char_table_type_to_symbol):
6332         * chartab.c (Freset_char_table):
6333         * chartab.c (decode_char_table_range):
6334         * chartab.c (Fget_range_char_table):
6335         * chartab.c (check_valid_char_table_value):
6336         * chartab.c (map_char_table):
6337         * chartab.c (slow_map_char_table_fun):
6338         * chartab.c (chartab_instantiate):
6339         * cm.c (cmcheckmagic):
6340         * console-msw.c (DHEADER):
6341         * console.c (MARKED_SLOT):
6342         * data.c (finish_marking_weak_lists):
6343         * data.c (encode_weak_list_type):
6344         * debug.h (DASSERT):
6345         * device-gtk.c (gtk_init_device):
6346         * device-msw.c (mswindows_get_default_margin):
6347         * device-tty.c (tty_init_device):
6348         * device-x.c (get_device_from_display):
6349         * device-x.c (x_get_visual_depth):
6350         * doprnt.c (parse_doprnt_spec):
6351         * doprnt.c (get_doprnt_args):
6352         * dumper.c (pdump_get_indirect_count):
6353         * dumper.c (pdump_register_sub):
6354         * dumper.c (pdump_register_object):
6355         * dumper.c (pdump_register_struct):
6356         * dumper.c (pdump_dump_data):
6357         * dumper.c (pdump_reloc_one):
6358         * elhash.c (print_hash_table):
6359         * elhash.c (make_standard_lisp_hash_table):
6360         * elhash.c (hash_table_instantiate):
6361         * emacs.c:
6362         * emacs.c (Fforce_debugging_signal):
6363         * emacs.c (sort_args):
6364         * emacs.c (main):
6365         * emacs.c (assert_failed):
6366         * eval.c (throw_or_bomb_out):
6367         * eval.c (signal_1):
6368         * eval.c (Fsignal):
6369         * event-Xt.c:
6370         * event-Xt.c (emacs_Xt_mapping_action):
6371         * event-Xt.c (Xt_process_to_emacs_event):
6372         * event-msw.c:
6373         * event-stream.c (check_event_stream_ok):
6374         * event-stream.c (Fadd_timeout):
6375         * event-stream.c (Fadd_async_timeout):
6376         * event-stream.c (Fdiscard_input):
6377         * event-stream.c (execute_internal_event):
6378         * event-stream.c (Frecent_keys):
6379         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6380         * event-stream.c (lookup_command_event):
6381         * event-unixoid.c (poll_fds_for_input):
6382         * events.c:
6383         * events.c (mark_event):
6384         * events.c (event_equal):
6385         * events.c (event_hash):
6386         * events.c (Fmake_event):
6387         * events.c (Fdeallocate_event):
6388         * events.c (event_chain_find_previous):
6389         * events.c (event_to_character):
6390         * events.c (format_event_object):
6391         * events.c (Fevent_type):
6392         * events.c (event_pixel_translation):
6393         * events.c (Fevent_properties):
6394         * extents.c (extent_in_region_p):
6395         * extents.c (print_extent):
6396         * extents.c (process_extents_for_insertion_mapper):
6397         * extents.c (report_extent_modification_mapper):
6398         * extents.c (glyph_layout_to_symbol):
6399         * faces.c (face_validate):
6400         * file-coding.c (eol_type_to_symbol):
6401         * file-coding.c (subsidiary_coding_system):
6402         * file-coding.c (Fcoding_system_type):
6403         * file-coding.c (Fcoding_system_property):
6404         * file-coding.c (mule_decode):
6405         * file-coding.c (mule_encode):
6406         * file-coding.c (encode_coding_ucs4):
6407         * file-coding.c (encode_coding_utf8):
6408         * file-coding.c (parse_iso2022_esc):
6409         * file-coding.c (encode_coding_iso2022):
6410         * fileio.c:
6411         * fns.c (concat):
6412         * fns.c (Fsubseq):
6413         * fns.c (mapcar1):
6414         * fns.c (Fbase64_encode_region):
6415         * fns.c (Fbase64_encode_string):
6416         * fns.c (Fbase64_decode_region):
6417         * fns.c (Fbase64_decode_string):
6418         * font-lock.c (find_context):
6419         * font-lock.c (context_to_symbol):
6420         * frame-gtk.c (gtk_set_frame_pointer):
6421         * frame-gtk.c (gtk_update_frame_external_traits):
6422         * frame-x.c (x_wm_mark_shell_size_user_specified):
6423         * frame-x.c (x_wm_mark_shell_position_user_specified):
6424         * frame-x.c (x_wm_set_shell_iconic_p):
6425         * frame-x.c (x_wm_set_cell_size):
6426         * frame-x.c (x_wm_set_variable_size):
6427         * frame-x.c (x_wm_store_class_hints):
6428         * frame-x.c (x_wm_maybe_store_wm_command):
6429         * frame-x.c (x_initialize_frame_size):
6430         * frame-x.c (x_update_frame_external_traits):
6431         * frame.c:
6432         * frame.c (delete_frame_internal):
6433         * frame.c (mouse_pixel_position_1):
6434         * frame.c (change_frame_size_1):
6435         * free-hook.c (check_free):
6436         * free-hook.c (check_realloc):
6437         * free-hook.c (note_block_input):
6438         * free-hook.c (log_gcpro):
6439         * gccache-gtk.c (gc_cache_lookup):
6440         * glyphs-eimage.c (tiff_memory_write):
6441         * glyphs-gtk.c (gtk_finalize_image_instance):
6442         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6443         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6444         * glyphs-gtk.c (gtk_xpm_instantiate):
6445         * glyphs-gtk.c (gtk_unmap_subwindow):
6446         * glyphs-gtk.c (gtk_map_subwindow):
6447         * glyphs-gtk.c (gtk_button_redisplay):
6448         * glyphs-msw.c:
6449         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6450         * glyphs-x.c (init_image_instance_from_xbm_inline):
6451         * glyphs-x.c (extract_xpm_color_names):
6452         * glyphs-x.c (x_xpm_instantiate):
6453         * glyphs.c (get_image_instantiator_governing_domain):
6454         * glyphs.c (print_image_instance):
6455         * glyphs.c (image_instance_equal):
6456         * glyphs.c (image_instance_hash):
6457         * glyphs.c (encode_image_instance_type):
6458         * glyphs.c (make_image_instance_1):
6459         * glyphs.c (inherit_instantiate):
6460         * glyphs.c (image_instantiate):
6461         * glyphs.c (allocate_glyph):
6462         * glyphs.c (Fglyph_type):
6463         * glyphs.c (redisplay_subwindow):
6464         * glyphs.c (display_table_entry):
6465         * gtk-glue.c (xemacs_list_to_gtklist):
6466         * gtk-glue.c (xemacs_gtklist_to_list):
6467         * gtk-glue.c (xemacs_list_to_array):
6468         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6469         * gutter.c (gutter_was_visible):
6470         * gutter.c (get_gutter_coords):
6471         * input-method-xlib.c (get_XIM_input):
6472         * insdel.c (bufpos_to_bytind_func):
6473         * insdel.c (bytind_to_bufpos_func):
6474         * insdel.c (move_gap):
6475         * intl.c (x_get_composed_input):
6476         * keymap.c (keymap_lookup_directly):
6477         * keymap.c (keymap_delete_inverse_internal):
6478         * keymap.c (ensure_meta_prefix_char_keymapp):
6479         * keymap.c (accessible_keymaps_mapper_1):
6480         * keymap.c (where_is_recursive_mapper):
6481         * lisp.h:
6482         * lisp.h (ABORT):
6483         * lread.c (read_atom):
6484         * lstream.c (Lstream_delete):
6485         * lstream.c (make_lisp_buffer_stream_1):
6486         * macros.c (pop_kbd_macro_event):
6487         * malloc.c (malloc):
6488         * malloc.c (free):
6489         * marker.c (bi_marker_position):
6490         * marker.c (set_bi_marker_position):
6491         * menubar-gtk.c (menu_descriptor_to_widget_1):
6492         * menubar-msw.c (prune_menubar):
6493         * menubar-x.c (set_frame_menubar):
6494         * mule-charset.c (get_unallocated_leading_byte):
6495         * mule-charset.h (CHAR_LEADING_BYTE):
6496         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6497         * nt.c (init_environment):
6498         * nt.c (generate_inode_val):
6499         * ntproc.c (delete_child):
6500         * ntproc.c (_sys_read_ahead):
6501         * ntproc.c (create_child):
6502         * objects.c (color_instantiate):
6503         * objects.c (font_instantiate):
6504         * objects.c (face_boolean_instantiate):
6505         * print.c (printing_major_badness):
6506         * process-nt.c (nt_send_process):
6507         * process-unix.c (unix_send_process):
6508         * process.c (get_process):
6509         * ralloc.c (obtain):
6510         * ralloc.c (relinquish):
6511         * ralloc.c (relocate_blocs):
6512         * ralloc.c (resize_bloc):
6513         * ralloc.c (r_alloc_free):
6514         * ralloc.c (r_re_alloc):
6515         * ralloc.c (r_alloc_thaw):
6516         * ralloc.c (init_ralloc):
6517         * ralloc.c (Free_Addr_Block):
6518         * ralloc.c (r_alloc):
6519         * redisplay-gtk.c (gtk_output_display_block):
6520         * redisplay-msw.c (mswindows_output_display_block):
6521         * redisplay-output.c (get_next_display_block):
6522         * redisplay-output.c (get_cursor_size_and_location):
6523         * redisplay-output.c (redisplay_output_layout):
6524         * redisplay-output.c (redisplay_clear_region):
6525         * redisplay-tty.c (tty_output_display_block):
6526         * redisplay-x.c (x_output_display_block):
6527         * redisplay.c (add_propagation_runes):
6528         * redisplay.c (add_glyph_rune):
6529         * redisplay.c (create_text_block):
6530         * redisplay.c (add_margin_runes):
6531         * redisplay.c (create_left_glyph_block):
6532         * redisplay.c (create_right_glyph_block):
6533         * redisplay.c (create_string_text_block):
6534         * redisplay.c (regenerate_window):
6535         * redisplay.c (REGEN_INC_FIND_START_END):
6536         * redisplay.c (redisplay_frame):
6537         * redisplay.c (point_in_line_start_cache):
6538         * regex.c:
6539         * regex.c (ABORT):
6540         * regex.c (re_compile_fastmap):
6541         * regex.c (re_match_2_internal):
6542         * regex.c (regerror):
6543         * scrollbar-gtk.c (gtk_scrollbar_loop):
6544         * scrollbar-gtk.c (scrollbar_cb):
6545         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6546         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6547         * scrollbar-x.c (x_update_scrollbar_instance_status):
6548         * scrollbar-x.c (x_scrollbar_loop):
6549         * scrollbar-x.c (x_update_frame_scrollbars):
6550         * search.c (search_command):
6551         * search.c (Fmatch_data):
6552         * select-x.c (motif_clipboard_cb):
6553         * signal.c (interrupt_signal):
6554         * specifier.c (specifier_add_spec):
6555         * specifier.c (specifier_instance_from_inst_list):
6556         * specifier.c (specifier_instance):
6557         * specifier.h:
6558         * specifier.h (struct specifier_methods):
6559         * strftime.c (add_num_time_t):
6560         * sunplay.c (init_device):
6561         * symbols.c (Fsetplist):
6562         * symbols.c (do_symval_forwarding):
6563         * symbols.c (store_symval_forwarding):
6564         * symbols.c (Fset):
6565         * symbols.c (Fbuilt_in_variable_type):
6566         * symbols.c (decode_magic_handler_type):
6567         * symbols.c (handler_type_from_function_symbol):
6568         * syntax.c (update_syntax_cache):
6569         * sysdep.c (init_baud_rate):
6570         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6571         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6572         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6573         * toolbar.c (get_toolbar_coords):
6574         * ui-gtk.c (build_gtk_boxed):
6575         * ui-gtk.c (describe_gtk_arg):
6576         * ui-gtk.c (gtk_type_to_lisp):
6577         * ui-gtk.c (lisp_to_gtk_type):
6578         * ui-gtk.c (lisp_to_gtk_ret_type):
6579         * ui-gtk.c (lisp_to_flag):
6580         * unexnt.c (read_in_bss):
6581         * unexnt.c (map_in_heap):
6582         * window.c (real_window):
6583         * window.c (window_display_lines):
6584         * window.c (window_display_buffer):
6585         * window.c (set_window_display_buffer):
6586         * window.c (window_modeline_height):
6587         * window.c (unshow_buffer):
6588         * window.c (window_loop):
6589         * window.c (Fget_lru_window):
6590         * window.c (Fsplit_window):
6591         * window.c (Fset_window_configuration):
6592         * window.c (saved_window_index):
6593         * xgccache.c (gc_cache_lookup):
6594         abort() -> ABORT().  Eliminate preprocessor games with abort()
6595         since it creates huge problems in VC7, solvable only by including
6596         massive amounts of files in every compile (and not worth it).
6597
6598         * sysdep.c:
6599         * sysproc.h:
6600         Inclusion of process.h does not need to be before lisp.h any more.
6601         Move later and remove comment about abort().
6602
6603 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6604
6605         * regex.c (re_match_2_internal):
6606         Correctly initialize loop which clears uninitialized registers.
6607
6608 2005-01-28  Vin Shelton  <acs@xemacs.org>
6609
6610         * sheap.c (more_static_core): Applied Ben's version of the long
6611         string patch.
6612
6613 2005-01-24  Vin Shelton  <acs@xemacs.org>
6614
6615         * sheap.c (more_static_core): Reformatted printf string so
6616         gcc-3.3.3 will compile this on Cygwin.
6617
6618 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6619
6620         * console.c (function_key_map): Reference `key-binding'.
6621
6622         * keymap.c (Vkey_translation_map): Improve docstring.
6623
6624 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6625
6626         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6627         * window.c (window_loop): [fix] Take into account
6628         `allow-deletion-of-last-visible-frame' variable.
6629         * window.c (replace-buffer-in-windows): Ditto.
6630
6631 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6632
6633         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6634
6635 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6636
6637         * event-gtk.c: Recognise AltGr as a valid modifier.
6638
6639 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6640
6641         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6642
6643 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6644
6645         Fix backreference bug caught by test suite.
6646
6647         * regex.c (regex_compile):
6648         Make backref duplicate internal register.
6649
6650 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6651
6652         Documentation, code clarification, and warning suppression.
6653         
6654         * regex.c (regex_compile):
6655         Improve comments.
6656         (re_match_2_internal):
6657         Improve comments and avoid redundant braces.  [Most of the big hunk
6658         at l. 4710 is indentation; use diff -w to see the real changes.]
6659         (alt_match_null_string_p):
6660         (common_op_match_null_string_p):
6661         Avoid shadowing global on Mac OS X 10.4, at least.
6662
6663 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6664
6665         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6666         introduced with shy groups fix).  [Already applied, probably
6667         with the second "fix shy groups" patch of 2004-10-07.] 
6668
6669 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6670
6671         From Andrey Slusar <anrays@gmail.com>:
6672
6673         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6674
6675 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6676
6677         * Makefile (RECURSIVE_MAKE): Removed.
6678         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6679         handling parallel builds.
6680
6681 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6682
6683         * Makefile.in.in: Enable support for parallel builds.
6684
6685 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6686
6687         From Andrey Slusar <anrays@gmail.com>:
6688
6689         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6690         FreeBSD version is >= 199701 _and_ < 600006.
6691
6692 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6693
6694         * scrollbar.c (compute_scrollbar_instance_usage):
6695         Only call device method compute_scrollbar_instance_usage() if it
6696         is defined.
6697
6698 2004-12-05  Vin Shelton <acs@xemacs.org>
6699
6700         * XEmacs 21.4.16 is released
6701
6702 2004-12-04  Vin Shelton  <acs@xemacs.org>
6703
6704         * depend: Regenerated.
6705
6706 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6707
6708         * regex.c (re_match_2_internal): Map internal to external
6709         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6710         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6711
6712 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6713
6714         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6715         to fix a crash.  Also, check the buffer is live and it
6716         really exists in buffer_list.  If the buffer is not in the list,
6717         prepend it.
6718
6719 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6720
6721         Fix shy groups by implementing recording of all groups for
6722         repetition and backtracking.  Backport from 21.5.
6723         
6724         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6725         external_to_internal_register, external_to_internal_register_size,
6726         and update comments for re_nsub.
6727
6728         * regex.c (re_opcode_t): Update comments.
6729         (print_compiled_pattern): Ouput external_to_internal_register,
6730         external_to_internal_register_size, and re_ngroups for debugging.
6731         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6732         (regex_compile): Update header comment.
6733         Ensure that all groups are recorded so that repeat matches and
6734         backtracking work correctly.  Comment related warning for groups >
6735         255.
6736         (re_search_2): Construct map of API indexes (which count only
6737         nonshy groups) to internal register numbers, and keep it updated.
6738
6739 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6740
6741         * frame-gtk.c (gtk_make_frame_visible):
6742         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6743         show/hide.  This is what X uses and is prevents previously hidden
6744         widgets from suddenly reappearing.
6745         * gtk-xemacs.c (gtk_xemacs_paint):
6746         * gtk-xemacs.c (gtk_xemacs_draw):
6747         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6748         drawable.
6749         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6750         size and location changes so that they can be seen before the next
6751         idle event.  Without this rapid changes to scrollbar properties
6752         are not seen.
6753
6754 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6755
6756         * console-gtk.h:
6757         * console-gtk.h (struct gtk_frame):
6758         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6759           Add hash tables track tab_control callback data.
6760           Added #defines for GTK object data names.
6761           Declaration of gtk_widget_to_frame().
6762         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6763         * frame-gtk.c (gtk_widget_to_frame): New.
6764         * frame-gtk.c (gtk_create_widgets):
6765         * frame-gtk.c (allocate_gtk_frame_struct):
6766         * frame-gtk.c (gtk_mark_frame):
6767         Manage frame callbakc hash tables.
6768         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6769         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6770         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6771         of widget size.
6772         * glyphs-gtk.c (gtk_widget_query_geometry): New
6773         * glyphs-gtk.c (gtk_register_gui_item): New
6774         * glyphs-gtk.c (gtk_add_tab_item): New
6775         * glyphs-gtk.c (gtk_tab_control_callback): New
6776         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6777         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6778         Use correct list when loading item.
6779         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6780         Register new methods.
6781         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6782         default size, for widgets.
6783         * gui-x.c:  Improved comment.
6784         * menubar-gtk.c (__generic_button_callback): Use
6785         gtk_widget_to_frame instead of __get_channel.
6786         * scrollbar-gtk.c:
6787         * ui-gtk.c: Use symbolic names for GTK object data.
6788
6789 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6790
6791         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6792
6793 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6794
6795         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6796
6797 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6798
6799         * malloc.c (morecore): siz is a long because in some architectures
6800         (eg ia-64) an int cannot hold the address range.  Additional patch
6801         from the SuSe distribution.
6802
6803 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6804
6805         * emacs.c:
6806         * malloc.c: lim_data is a long because in some architectures
6807         (eg ia-64) an int cannot hold the address range.
6808         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6809         instead of ulimit() because ulimit() always returns -1.
6810
6811 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6812
6813         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6814
6815 2004-06-11  David Kastrup  <dak@gnu.org>
6816
6817         * search.c (match_limit): Don't flag an error if match-data
6818         exceeding the allocated search_regs.num_regs gets requested, just
6819         return Qnil.
6820
6821 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6822
6823         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6824         replace symbolic color entries with the real colors specified in
6825         xpm-color-symbols, before passing the XPM to gtk.
6826         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6827         instead of a GTK specific field, so that it is used in by generic
6828         code.
6829
6830 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6831
6832        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6833         coredump from deref of NULL ptr (ExtData)
6834
6835 2004-04-19  Jerry James  <james@xemacs.org>
6836
6837         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6838         VALBITS to compute the location of the sign bit.
6839         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6840         of VALBITS with EMACS_INT_MAX.
6841         * events.c (Fevent_timestamp): Ditto.
6842         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6843         compute the halfway point to timestamp wraparound.
6844         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6845         EMACS_INT_MIN instead of using VALBITS.
6846         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6847         incorrect number with VALBITS.
6848         * fns.c (Frandom): Correct number of integer bits in docstring.
6849         Use INT_VALBITS instead of VALBITS to compute the denominator.
6850         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6851         build random numbers.
6852
6853 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6854         * event-gtk.c:
6855         * event-gtk.c (gtk_event_to_emacs_event):
6856         * menubar-gtk.c:
6857         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6858         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6859         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6860         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6861         * menubar-gtk.c (__activate_menu):
6862         * menubar-gtk.c (convert_underscores):
6863         * menubar-gtk.c (remove_underscores):
6864         * menubar-gtk.c (menu_convert):
6865         * menubar-gtk.c (menu_descriptor_to_widget_1):
6866         * menubar-gtk.c (menu_descriptor_to_widget):
6867         * menubar-gtk.c (menu_can_reuse_widget):
6868         * menubar-gtk.c (menu_create_menubar):
6869         * menubar-gtk.c (gtk_popup_menu):
6870         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6871         Added support for Gtk menu bar and menu item mnemonics.
6872
6873 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6874
6875         * sysdll.c: (dll_function): Added support for finding symbols in
6876         Darwin shared libraries as well in Darwin bundles.
6877         * sysdll.c (image_for_address): New
6878         * sysdll.c (my_find_image): New
6879         * sysdll.c (search_linked_libs): New
6880
6881 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6882
6883         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6884         return to GTK requires a different API to marshalling data to use
6885         as GTK parameters.
6886         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6887
6888 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6889
6890         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6891
6892 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6893
6894         * glyphs.c (process_image_string_instantiator):
6895         (Fset_console_type_image_conversion_list):
6896         Stop GCC from warning about shadowing of `exp'.
6897
6898         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6899
6900 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6901
6902         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6903
6904 2004-02-03  Vin Shelton  <acs@xemacs.org>
6905
6906         * glyphs.c (image_instance_layout): Remove pointless assertion.
6907         * regex.c (regex_grow_registers): Return type is void.
6908
6909 2004-02-02  Vin Shelton <acs@xemacs.org>
6910
6911         * XEmacs 21.4.15 is released
6912
6913 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6914
6915         * device-x.c (x_error_handler): Don't call stderr_out
6916
6917 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6918
6919         * buffer.c (other-buffer): Clarify documentation of order of
6920         arguments for FSF Emacs.
6921
6922 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6923
6924         * window.c (Fdelete_window): Dirty the mirror structure _before_
6925         marking the window deleted.
6926
6927 2003-09-15  Jerry James  <james@xemacs.org>
6928
6929         * event-msw.c (debug_mswin_messages): Conditionally compile
6930         messages missing from the Cygwin headers.
6931
6932 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6933
6934         * data.c (eq_with_ebola_notice): Fix typo in comment.
6935         (Ftrue_list_p): Improve docstring.
6936
6937 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6938
6939         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6940
6941 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6942
6943         * search.c (trivial_regexp_p): Regexps containing "\{" are
6944         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6945         Stefan Monnier for suggesting a diagnosis.
6946
6947 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6948
6949         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6950
6951 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6952
6953         * search.c (Fsearch_forward):
6954         (Fsearch_backward):
6955         Document negative count.
6956
6957 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6958
6959         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6960
6961 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6962
6963         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6964
6965 2003-09-15  Vin Shelton  <acs@xemacs.org>
6966
6967         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6968         21.5.
6969
6970 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6971
6972         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6973         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6974         (re_match_2_internal): Use TRANSLATE instead of
6975         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6976         non-ASCII char case conversion.
6977
6978 2003-09-08  Mike Sperber  <mike@xemacs.org>
6979
6980         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6981         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6982
6983 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6984
6985        * .gdbinit (pobj): fix printing of symbol name.
6986
6987 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6988
6989         * frame-x.c (x_layout_widgets): When resizing is about to cause
6990         frame size slip, mark it for redisplay.
6991
6992 2003-08-18  Jerry James  <james@xemacs.org>
6993
6994         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6995
6996 2003-09-03  Vin Shelton <acs@xemacs.org>
6997
6998         * XEmacs 21.4.14 is released
6999
7000 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
7001
7002         * config.h.in (REGEX_MALLOC): Make it configure'able.
7003
7004 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
7005
7006         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
7007         linking.
7008         * sysdll.c (dll_init):
7009         * sysdll.c (dll_open):
7010         * sysdll.c (dll_close):
7011         * sysdll.c (dll_function):
7012         * sysdll.c (dll_variable):
7013         * sysdll.c (dll_error):
7014         Add support for loading bundles using Darwin/MacOSX
7015         native API.
7016
7017 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
7018
7019         * process.c (start-process-internal): Document coding systems.
7020
7021 2003-07-30  Jerry James  <james@xemacs.org>
7022
7023         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
7024
7025 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
7026
7027         * event-msw.c (mswindows_enqueue_mouse_button_event):
7028         * event-msw.c (mswindows_wnd_proc):
7029           enqueue button event when scrollwheel event isn't handled by 
7030           mswindows_handle_mousewheel_event, such as when the scrollbars
7031           are not showing.
7032
7033 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
7034
7035         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7036
7037 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
7038
7039         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7040
7041 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
7042
7043         * regex.c (re_match_2_internal): Fix matching degenerate word
7044         boundaries.
7045
7046 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7047
7048         * XEmacs 21.4.13 is released
7049
7050 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7051
7052         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7053         * lisp.h (<inttypes.h>):
7054         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7055         the definition.
7056
7057 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7058
7059         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7060         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7061         Result: "temacs can only be run in -batch mode."
7062         Fix: Check xemacs executable candidate for directory-ness.
7063
7064 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7065
7066         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7067           they conflict with <sys/types.h>.
7068
7069 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7070
7071         * database.c: Berkeley DB wants __STDC__ to be defined.
7072
7073 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7074
7075         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7076
7077 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7078
7079         * process-unix.c (unix_send_process): Fix C++ compile error.
7080
7081 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7082
7083         * Added .dylib as an acceptable shared library file extension
7084         * to support MacOSX.
7085
7086 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7087
7088         * EmacsFrameP.h (EmacsFramePart):
7089         Kludge to allow compiling with Motif1, but linking with Motif2.
7090
7091 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7092
7093         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7094
7095
7096 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7097
7098         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7099
7100 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7101
7102         * sysdll.c: Included lisp.h to define needed alloca_array.
7103
7104 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7105
7106         Make XEmacs redisplay 10 times faster.
7107         If, that is, you're using a slow X connection and MoveOpaque.
7108         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7109         Use compress_motion = TRUE.
7110         * EmacsFrame.c (emacsFrameClassRec): 
7111         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7112         * EmacsManager.c (emacsManagerClassRec):
7113         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7114
7115 2003-01-30  Vin Shelton  <acs@xemacs.org>
7116
7117         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7118
7119 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7120
7121         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7122         Patch by Martin Buchholz.
7123
7124 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7125
7126         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7127         Thanks to icc for warning and Martin Buchholz for reporting.
7128
7129 2003-01-29  Vin Shelton <acs@xemacs.org>
7130
7131         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7132
7133         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7134         remember to multiply by the element size.
7135
7136 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7137
7138         * XEmacs 21.4.12 "Portable Code" is released.
7139
7140 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7141
7142         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7143         * s/cygwin.sc: new linker file.
7144
7145 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7146
7147         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7148
7149         * redisplay-x.c (x_output_string): Use X11-specified types.
7150         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7151         * emacs.c (__free_hook): Use typeof with Intel compiler.
7152         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7153
7154 2003-01-08  Andy Piper  <andy@xemacs.org>
7155
7156         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7157         reserve size during unexec().
7158
7159 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7160
7161         * process-unix.c (unix_create_process): Don't let outchannel block.
7162
7163 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7164
7165         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7166         Needed for IsBadReadPtr().
7167
7168 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7169
7170         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7171
7172 2002-12-14  Ben Wing  <ben@xemacs.org>
7173
7174         * callint.c: Declaration error.
7175         * dumper.c (pdump):
7176         * dumper.c (pdump_load): Warning fix.
7177         * process.c: GCPRO error.
7178         * glyphs.c (unmap_subwindow):
7179         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7180         * event-stream.c (maybe_kbd_translate): Wrong argument to
7181         character_to_event().
7182
7183         * alloc.c (garbage_collect_1):
7184         * emacs.c:
7185         * emacs.c (debug_can_access_memory):
7186         * emacs.c (fatal_error_signal):
7187         * emacs.c (mswindows_handle_hardware_exceptions):
7188         * emacs.c (main_1):
7189         * emacs.c (main):
7190         * emacs.c (assert_failed):
7191         * emacs.c (syms_of_emacs):
7192         * lisp.h:
7193         * print.c:
7194         * print.c (std_handle_out_va):
7195         * print.c (write_string_to_stdio_stream):
7196         * print.c (write_fmt_string):
7197         * print.c (printing_badness):
7198         * print.c (printing_major_badness):
7199         * print.c (print_internal):
7200         * print.c (debug_print_no_newline):
7201         * print.c (debug_backtrace):
7202         Be more defensive in handling bad values when printing.  Add code
7203         from trunk involving inhibit_non_essential_printing_operations.
7204         When going down or in debug_print(), don't do external conversion
7205         and such and try really, really hard when printing to avoid core
7206         dumping.  Add force-debugging-signal, debug_break().
7207
7208 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7209
7210         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7211         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7212
7213 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7214
7215         * database.c: Fix open_database. Berkeley DB API has changed in
7216         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7217
7218 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7219
7220         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7221
7222 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7223
7224         * event-Xt.c (Xt_timeout):
7225         (Xt_timeout_callback):
7226         (emacs_Xt_add_timeout):
7227         (emacs_Xt_remove_timeout):
7228         (Xt_timeout_to_emacs_event):
7229         Turn completed_timeouts from a stack into a queue.  Fixes
7230         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7231
7232 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7233
7234         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7235         * emacs.c (main): Assert that mmap'd allocation is disabled.
7236
7237 2002-10-14  Andy Piper  <andy@xemacs.org>
7238
7239         * glyphs-widget.c (layout_query_geometry): add in fiddle
7240         factor. Include border text in width layout calculation.
7241         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7242
7243 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7244
7245         * XEmacs 21.4.10 "Military Intelligence" is released.
7246
7247 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7248
7249         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7250         using the NAS private array SoundFileInfo that no longer exists in
7251         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7252         and earlier.  This is broken for some versions between 1.5a and
7253         1.5f.
7254
7255 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7256
7257         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7258
7259         * emacs.c (shut_down_emacs): Improve crash message.
7260
7261 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7262
7263         * file-coding.c (determine_real_coding_system): Check for coding
7264         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7265         shebangs and Python PEP 263.
7266
7267 2002-10-08  Andy Piper  <andy@xemacs.org>
7268
7269         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7270         if static sizes haven't been set.
7271
7272 2002-08-30  Mike Alexander  <mta@arbortext.com>
7273
7274         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7275         to close a socket.
7276
7277 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7278
7279         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7280
7281 2002-09-20  Mike Sperber <mike@xemacs.org>
7282
7283         (This partially gets back my patch from 2002-07-20 without the
7284         bug.)
7285         * callproc.c (child_setup): Remove Ben's comment noting confusion
7286         over the file descriptors >= 3: close_process_descs() doesn't
7287         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7288         * process-unix.c (unix_create_process): Call
7289         begin_dont_check_for_quit to inhibit unwanted interaction (and
7290         thus breaking of X event synchronicity) in the child.
7291
7292 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7293
7294         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7295         widget.
7296
7297 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7298
7299         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7300         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7301         the xemacs process did not exit, but looped infinitely here.  This
7302         fixes that problem.
7303
7304 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7305
7306         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7307         (find_context): Improve comments.
7308
7309         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7310         (re_match_2): An XCHAR_TABLE operation was missing.
7311
7312         Many of the following changes were inspired by Andy Piper's (now
7313         obsolete) patch to make syntax-table text property lookup optional.
7314
7315         [Documentation]
7316
7317         * syntax.h (top level): Document semantics of syntax flags.
7318         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7319         * syntax.c, syntax.h (top level): Document syntax cache better in
7320         comments.
7321
7322         [Instrument syntax caching (temporary change)]
7323
7324         * syntax.h (enum syntax_cache_statistics_functions, struct
7325         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7326         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7327         * syntax.c (scan_words, Fforward_comment, scan_lists,
7328         Fbackward_prefix_characters):
7329         * font-lock.c (find_context):
7330         Use them to instrument syntax caching. 
7331         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7332         syntax_cache_statistics_function_names): New type and variables.
7333         * syntax.c (update_syntax_cache): Update and report statistics.
7334
7335         [Major syntax cache optimizations]
7336
7337         syntax.c (lookup_syntax_properties): Default off.
7338
7339         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7340         * syntax.c (update_syntax_cache):
7341         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7342
7343         [Minor syntax cache optimizations and code clarifications]
7344
7345         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7346         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7347         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7348         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7349         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7350         (Code clarification.)
7351
7352         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7353         scan_lists): Compute code from syncode, use Boolean macros instead
7354         of redundant masking operations.  (Code clarification; any decent
7355         compiler can do this optimization.)
7356
7357         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7358         for clarity.
7359
7360         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7361         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7362         use F*_single_property_change instead of F*_extent_change.
7363         Currently F*_single_property_change is _much_ less efficient.
7364
7365         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7366         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7367         syntax_cache.object properly, don't leave Qt or Qnil.
7368         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7369         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7370         tests for Qt or Qnil.
7371
7372 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7373
7374         * redisplay.c (point_in_line_start_cache): 
7375         * extents.c (print_extent_1):
7376         Fix warnings.
7377
7378         * extents.c (Fset_extent_property): Document `syntax-table' property.
7379
7380         * extents.h (Fnext_single_property_change): EXFUN it.
7381
7382 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7383
7384         * search.c (clear_unused_search_regs): New static function.
7385         (search_buffer): 
7386         (simple_search): 
7387         (boyer_moore):
7388         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7389         Minor clarifications in comments.
7390
7391         * regex.c (re_match_2_internal): Ensure no stale submatches.
7392
7393 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7394
7395         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7396
7397 2002-08-29  Jerry James  <james@xemacs.org>
7398
7399         * lisp.h: structrures -> structures.
7400
7401 2002-06-03  Andy Piper  <andy@xemacs.org>
7402
7403         * frame.c (frame_conversion_internal): add conversion appropriate
7404         for setting frame dimensions in pixels.
7405
7406         * console.h (struct console_methods): add device-specific widget
7407         layout functions.
7408
7409         * emacs.c (main_1): initialize glyph vars.
7410
7411         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7412         (handle_focus_event_2): new function. Allow focus to
7413         be set to a particular window and widget.
7414         (enqueue_focus_event): new function. Create a
7415         synthetic focus event.
7416         (emacs_Xt_handle_magic_event): call
7417         handle_focus_event_2.
7418
7419         * frame.c (Fset_frame_pixel_height): new function. Allow
7420         pixel-based sizing. Does the right thing on character-oriented
7421         displays.
7422         (Fset_frame_pixel_width): ditto.
7423         (Fset_frame_pixel_size): ditto.
7424         (syms_of_frame): declare.
7425
7426         * general-slots.h: add :vertically-justify and
7427         :horizontally-justify.
7428
7429         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7430         (mswindows_widget_border_width): new function.
7431         (mswindows_combo_box_instantiate): set border widths.
7432         (console_type_create_glyphs_mswindows): declare.
7433
7434         * glyphs-widget.c:
7435         (check_valid_justification): allow vertical and horizontal
7436         justification.
7437         (widget_border_width): new function. Call device methods.
7438         (widget_instance_border_width): ditto.
7439         (logical_unit_height): new function. Determine the height of a
7440         logical-unit. Logical units are intended to provide grid-like
7441         layout for subcontrols in a layout. If the layout is
7442         :vertically-justify top then subcontrols will be positioned on
7443         logical-unit boundaries, thus allowing adjacent subcontrols to
7444         line up.
7445         (widget_logical_unit_height): ditto for widgets.
7446         (redisplay_widget): misc cleanup.
7447         (widget_spacing): new function. Call device specific
7448         methods. Intended to be the default gap between adjacent widgets.
7449         (widget_query_geometry): use new spacing functions to determine
7450         appropriate geometry.
7451         (initialize_widget_image_instance): initialize horizontal and
7452         vertical justification.
7453         (widget_instantiate): use logica-units where appropriate for
7454         sizing large widgets.
7455         (button_query_geometry): use widget_instance_border_width.
7456         (tree_view_query_geometry): ditto.
7457         (tab_control_query_geometry): ditto.
7458         (edit_field_query_geometry): new function.
7459         (layout_update): pick up :justify, :horizontally-justify and
7460         :vertically-justify none of which worked previously. :justify is
7461         used as a fallback for both horizontal and vertical justification.
7462         (layout_query_geometry): use logical units to size appropriately.
7463         (layout_layout): ditto.
7464         (Fwidget_logical_to_character_width): new function. Allow users to
7465         convert from logical units to characters so that frame sizes can
7466         be set appropriately.
7467         (Fwidget_logical_to_character_height): ditto.
7468         (syms_of_glyphs_widget): declare.
7469         (image_instantiator_edit_fields): add edit_field_query_geometry.
7470         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7471         :horizontally-justify.
7472         (specifier_vars_of_glyphs_widget): new function. Declare
7473         Vwidget_border_width which is not yet used.
7474
7475         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7476         (x_widget_border_width): new function.
7477         (x_widget_instantiate): create a sensible name for widgets.
7478         (console_type_create_glyphs_x): declare x_widget_border_width.
7479
7480         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7481         (struct Lisp_Image_Instance): add :vertically-justify and
7482         :horizontally-justify.
7483         (LAYOUT_JUSTIFY_TOP): new.
7484         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7485         (ROUND_UP): new macro. Round argument up to next integral
7486         interval.
7487
7488         * redisplay-output.c (redisplay_output_layout): misc formatting.
7489
7490         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7491
7492 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7493
7494         * XEmacs 21.4.9 "Informed Management" is released.
7495
7496 2002-08-19  Andy Piper  <andy@xemacs.org>
7497
7498         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7499         win32 format.
7500
7501         * realpath.c (xrealpath): normalize drive spec also so that dir
7502         sep chars are not mixed on cygwin.
7503
7504 2002-08-06  Jerry James  <james@xemacs.org>
7505
7506         * window.c (Fsplit_window): Count only half of the divider width
7507         against the left window when splitting horizontally. 
7508
7509 2002-06-24  Andy Piper  <andy@xemacs.org>
7510
7511         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7512         toolbar was cleared.
7513
7514         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7515         function. Split out from mswindows_output_frame_toolbars.
7516         (mswindows_output_frame_toolbars): move clear pieces to
7517         mswindows_output_frame_toolbars.
7518
7519         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7520         out from gtk_output_frame_toolbars.
7521         (gtk_output_frame_toolbars): move clear pieces to
7522         gtk_clear_frame_toolbars.
7523
7524         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7525         the frame is cleared. How this ever worked before is a mystery.
7526         (x_output_frame_toolbars): Only output toolbars.
7527         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7528
7529         * gutter.c (update_gutter_geometry):
7530         Mark frame layout changed.
7531         (update_frame_gutter_geometry, update_frame_gutters):
7532         Respect frame_layout_changed.
7533
7534         * console.h (struct console_methods): add
7535         clear_frame_toolbars_method.
7536
7537         * redisplay.c (redisplay_frame): call
7538         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7539
7540         * toolbar.h: declare update_frame_toolbars_geometry.
7541
7542         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7543         out from update_frame_toolbars.  Call clear_frame_toolbars.
7544         (update_frame_toolbars): only output, do not change geometry.
7545
7546         * redisplay.c: add frame_layout_changed.
7547
7548         * redisplay.h: add frame_layout_changed.
7549         (CLASS_RESET_CHANGED_FLAGS): set it.
7550         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7551         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7552         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7553
7554         * device.h (struct device): add frame_layout_changed.
7555         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7556
7557         * frame.h (struct frame): add frame_layout_changed.
7558         (MARK_FRAME_LAYOUT_CHANGED): new.
7559
7560 2002-06-30  Mike Alexander  <mta@arbortext.com>
7561
7562         * event-msw.c (mswindows_need_event): Don't wait for a new message
7563         if the queue is not empty.  Suggested by Paul Moore.
7564
7565 2002-06-12  Andy Piper  <andy@xemacs.org>
7566
7567         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7568         for printing on accurately.
7569
7570 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7571
7572         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7573         WM_ACTIVATE message. Make sure that the frame is visible if the
7574         window is visible. This seemss to fix the problem where XEmacs
7575         appears to freeze after switching desktops with certain virtual
7576         window managers.
7577         (debug_output_mswin_message): Added code to output message
7578         parameters for WM_WINDOWPOSCHANGED, 
7579         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7580
7581 2002-05-25  Andy Piper  <andy@xemacs.org>
7582
7583         * select-x.c (vars_of_select_x): Fix docstring of
7584         x-selection-strict-motif-ownership
7585
7586 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7587
7588         * keymap.c (get_keymap):
7589         Add comment about do_autoload GCPROs own args.
7590
7591 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7592
7593         * bytecode.c (execute_optimized_program): check_opcode ifdef
7594         ERROR_CHECK_BYTE_CODE.
7595
7596 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7597
7598         Thanks to Ben Wing and Michael Sperber.
7599
7600         * eval.c (Fcommand_execute):
7601         (Feval):
7602         (Ffuncall):
7603         (Fmacroexpand_internal):
7604         (function_argcount):
7605         callint.c (Fcall_interactively):
7606         Add comment about do_autoload GCPROs own args.
7607
7608         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7609
7610         * eval.c (Ffuncall): Extra braces to placate GCC.
7611
7612 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7613
7614         * backtrace.h (grow_specpdl):
7615         (SPECPDL_RESERVE):
7616         * EmacsFrame.c (EmacsFrameSetValues):
7617         * eval.c (grow_specpdl):
7618         * ExternalShell.c (hack_event_masks_1):
7619         * glyphs-x.c (convert_EImage_to_XImage): 
7620         (x_finalize_image_instance):
7621         * ralloc.c (page_size):
7622         (r_alloc_sbrk):
7623         * xgccache.c (gc_cache_hash):
7624         Fix unsigned comparison warnings.
7625
7626 2002-07-29  Jerry James  <james@xemacs.org>
7627
7628         * lread.c (locate_file): Any nonnegative return value indicates
7629         success if MODE is nonnegative.
7630
7631 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7632
7633         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7634         argument. 
7635
7636 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7637
7638         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7639
7640         * dumper.c (pdump_get_indirect_count):
7641         (pdump_scan_by_alignment):
7642         (pdump_dump_root_struct_ptrs):
7643         (pdump_dump_rtables):
7644         (pdump_dump_root_objects):
7645         (pdump):
7646         * nas.c (WaveOpenDataForReading):
7647         * fns.c (print_bit_vector):
7648         * font-lock.c (SINGLE_SYNTAX_STYLE):
7649         * glyphs.c (check_for_ignored_expose):
7650         (find_matching_subwindow):
7651         * glyphs-eimage.c:
7652         * imgproc.c (get_histogram):
7653         * redisplay.c (point_in_line_start_cache):
7654         * redisplay-output.c (redisplay_unmap_subwindows):
7655         * symbols.c (defsymbol_massage_name_1):
7656         (defkeyword_massage_name):
7657         (deferror_massage_name_and_message):
7658         * redisplay-x.c (x_output_string): 
7659         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7660         * frame.h (struct frame):
7661         * filelock.c (current_lock_owner):
7662         * doprnt.c (emacs_doprnt_1):
7663         * lisp.h (struct Lisp_Bit_Vector):
7664         (DO_REALLOC):
7665         Fix warnings.
7666
7667 2002-02-13  Ben Wing  <ben@xemacs.org>
7668
7669         * event-stream.c (reset_key_echo):
7670         * event-stream.c (reset_this_command_keys):
7671         * event-stream.c (execute_command_event):
7672         If console is dead as a result of C-x 5 0, then post-command stuff
7673         needs to be careful and do only non-console-specific stuff.
7674
7675 2002-07-01  Mike Sperber <mike@xemacs.org>
7676
7677         * process-unix.c (unix_send_process): Mark coding_outstream as
7678         non-open upon SIGPIPE.
7679
7680         * event-stream.c (Fnext_event): Reorder switch cases to something
7681         that makes sense.
7682
7683 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7684
7685         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7686         Don't bogusly reinitialize ascii_character property.
7687
7688 2002-07-08  Mike Sperber <mike@xemacs.org>
7689
7690         * process.c (Fstart_process_internal): Do error checking before we
7691         fork off the child, so the child can't muck with the state of the
7692         parent.
7693
7694 2002-07-08  Mike Sperber <mike@xemacs.org>
7695
7696         * ralloc.c (init_ralloc): Allocate properly for pdump.
7697
7698 2002-06-12  Andy Piper  <andy@xemacs.org>
7699
7700         * glyphs.c (query_string_geometry): check the string.
7701
7702         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7703         widget names.
7704
7705 2002-06-17  Jerry James  <james@xemacs.org>
7706
7707         * sysdll.c: Remove RTLD_GLOBAL initialization.
7708         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7709
7710 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7711
7712         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7713
7714 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7715
7716         * sysdep.c (sys_rename): Make sys_rename work for the case where
7717         Windows rename sets errno to EACCES if target file exists.
7718
7719 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7720
7721         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7722         Fix detection of metric units to work on Win95
7723
7724 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7725
7726         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7727
7728 2002-04-25  Andy Piper  <andy@xemacs.org>
7729
7730         * redisplay.c (create_text_block): Remove extra comment trailer.
7731
7732 2002-04-24  Andy Piper  <andy@xemacs.org>
7733
7734         * redisplay.c (create_text_block): Don't actually add propagation
7735         data if the line ends after we have added a glyph.
7736
7737 2002-04-22  Andy Piper  <andy@xemacs.org>
7738
7739         * extents.c (extent_fragment_update): check for glyphs we have
7740         previously displayed.
7741         * extents.c (print_extent_1): warning removal.
7742         * extents.h: change prototype.
7743         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7744         widths correctly for wide glyphs.
7745         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7746         * redisplay.c (prop_type): add PROP_GLYPH.
7747         * redisplay.c (struct prop_block): add glyph type
7748         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7749         to the propagation data.
7750         * redisplay.c (create_text_block): if there is a glyph in the
7751         propagation data use it to salt extent_fragment_update.
7752         * redisplay.c (create_string_text_block): ditto.
7753
7754 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7755
7756         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7757         * redisplay-output.c (compare_runes): Compare them.
7758         * redisplay.c: Update copyright date.
7759         * redisplay.c (pos_data): Add need_baseline_computation field.
7760         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7761         need_baseline_computation; zero yoffset. Set max_pixmap_height
7762         for all pixmaps, not just automatically positioned ones.
7763         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7764         * redisplay.c (calculate_baseline): New, compute textual baseline.
7765         * redisplay.c (add_glyph_rune): Call them.
7766         * redisplay.c (create_text_block): Likewise.
7767         * redisplay.c (create_overlay_glyph_block): Likewise.
7768         * redisplay.c (add_margin_runes): Likewise.
7769         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7770
7771         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7772         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7773         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7774         * redisplay-msw.c (mswindows_output_string): Likewise.
7775         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7776         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7777         * redisplay-x.c (x_output_display_block): Likewise.
7778
7779 2002-03-28  Ben Wing  <ben@xemacs.org>
7780
7781         * redisplay.c: Fixed bug in redisplay
7782         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7783         and down of the lines, since they're bigger than the line
7784         size. (It was seen most obviously when there's a horizontal scroll
7785         bar, e.g. do C-h a glyph or something like that.) The problem was
7786         that the glyph-contrib-p setting on glyphs was ignored even if it
7787         was set properly, which it wasn't until now.
7788
7789 2002-04-24  Andy Piper  <andy@xemacs.org>
7790
7791         * lisp.h (Dynarr_end): Fix definition.
7792
7793 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7794
7795         * redisplay.c (mark_redisplay): Remove call to
7796         update_frame_window_mirror.
7797
7798 2001-11-15  Andy Piper  <andy@xemacs.org>
7799
7800         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7801         cygwin (again).
7802
7803 2002-02-13  Andy Piper  <andy@xemacs.org>
7804
7805         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7806         we did in fact enqueue the XM_MAPFRAME event.
7807
7808 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7809
7810         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7811         to fix problem switching between virtual desktops under virtuawin
7812         virtual window manager.
7813
7814 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7815
7816         * event-msw.c: Typo fix.
7817         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7818         magic XM_MAPFRAME event has been sent.
7819
7820 2001-11-23  Andy Piper  <andy@xemacs.org>
7821
7822         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7823
7824 2001-11-21  Andy Piper  <andy@xemacs.org>
7825
7826         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7827         mouse events outside the frame.
7828
7829 2002-03-20  Andy Piper  <andy@xemacs.org>
7830
7831         * menubar-msw.c (mswindows_popup_menu): warning removal.
7832         * dialog-msw.c (dialog_popped_down): ditto.
7833
7834 2001-12-11  Andy Piper  <andy@xemacs.org>
7835
7836         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7837         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7838         popup_up_p.
7839         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7840         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7841         * menubar-msw.c (mswindows_popup_menu): ditto.
7842
7843 2001-10-29  Andy Piper  <andy@xemacs.org>
7844
7845         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7846         cancels.
7847
7848 2002-01-03  Andy Piper  <andy@xemacs.org>
7849
7850         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7851         letters.
7852         (xrealpath): ditto.
7853
7854 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7855
7856         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7857         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7858         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7859         Detect and handle case where machine is set up for metric units
7860
7861 2002-04-02  Andy Piper  <andy@xemacs.org>
7862
7863         * dired-msw.c (mswindows_get_files): 
7864         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7865         completely handled by XEmacs. Suggested by Thomas Vogler
7866         <mail@thomas-vogler.de>.
7867
7868 2001-11-14  Andy Piper  <andy@xemacs.org>
7869
7870         * nt.c (REG_ROOT): change registry key to XEmacs.
7871
7872 2002-04-27  Andy Piper  <andy@xemacs.org>
7873
7874         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7875
7876 2002-04-26  Andy Piper  <andy@xemacs.org>
7877
7878         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7879         behavior.
7880
7881 2002-03-14  Mike Alexander  <mta@arbortext.com>
7882
7883         * event-msw.c (mswindows_unwait_process): New, remove process from
7884         wait list
7885         * process-nt.c (nt_finalize_process_data): Call
7886         mswindows_unwait_process
7887         * console-msw.h: Declare mswindows_unwait_process
7888
7889 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7890
7891         * editfns.c (Fdecode_time):
7892         (Fformat_time_string):
7893         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7894         (make_time): Warning elimination (change arg name).
7895
7896 2001-11-24  Andy Piper  <andy@xemacs.org>
7897
7898         * window.c (Fsplit_window): Doc return type.
7899
7900 2002-04-01  Andy Piper  <andy@xemacs.org>
7901
7902         * emacs.c (Fkill_emacs): Only output message box in interactive
7903         mode.
7904
7905 2002-04-26  Andy Piper  <andy@xemacs.org>
7906  
7907         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7908         cygwin.
7909
7910 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7911
7912         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7913         bit platform.
7914
7915 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7916
7917         * XEmacs 21.4.8 "Honest Recruiter" is released.
7918
7919 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7920
7921         Supersedes 2002-04-17 patch.
7922
7923         * process.h (PROCESS_LIVE_P): Use the process status as
7924         evidence of health, not the state of the input stream.
7925         (PROCESS_READABLE_P): Say if the process is readable
7926         from. (It may be dead nonetheless.)
7927         (CHECK_READABLE_PROCESS): Test for that condition.
7928
7929         * process.c (create_process): Use PROCESS_READABLE_P.
7930         (read_process_output, set_process_filter): Likewise.
7931
7932         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7933         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7934
7935         This code is #if 0'd, this is not the time to add new functions:
7936
7937         * process.c (Fprocess_readable_p): Report readability status.
7938         * process.c (Qprocess_readable_p): New, associated symbol...
7939         * process.c (syms_of_process): ... initialize it.
7940
7941 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7942
7943         * XEmacs 21.4.7 "Economic Science" is released.
7944
7945 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7946
7947         * process.h (PROCESS_LIVE_P): Use the process status as
7948         evidence of health, not the state of the input stream.
7949
7950 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7951
7952         * sysdep.c (sys_siglist): change "signum" to "signal"
7953
7954 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7955
7956         * s/darwin.h: New file.
7957         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7958         
7959 2002-04-23  Andreas Jaeger  <aj@suse.de>
7960
7961         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7962         which use lib64 for 64-bit libs.
7963         (START_FILES): Likewise.
7964
7965 2002-02-11  Mike Sperber  <mike@xemacs.org>
7966
7967         * device-x.c: 
7968         (x_IO_error_handler):
7969         (x_init_device): Temporarily keep device in static variable
7970         `device_being_initialized' so we can recover gracefully from
7971         internal XOpenDevice failure.  (XOpenDevice is documented to
7972         return NULL on failure, but sometimes calls the IO error handler
7973         instead.)
7974
7975 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7976
7977         * dired.c (Ffile_name_all_completions): Change documentation --
7978         remove reference to completion-ignored-extensions.
7979         * dired.c (vars_of_dired): Change documentation for
7980         completion-ignored-extensions -- remove reference to
7981         file-name-all-completions.
7982
7983 2002-03-06  Jerry James  <james@xemacs.org>
7984
7985         * emodules.c (emodules_load): Fix multiple loading of same module.
7986
7987 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7988         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7989         RTLD_LAZY to avoid incorrect symbol binding when using nested
7990         shared libraries on Solaris.
7991
7992 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7993
7994         * fileio.c (Ffind_file_name_handler): Improve docstring.
7995
7996 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7997
7998         * fns.c (Fmapconcat): Improve docstring.
7999
8000 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
8001
8002         * device-gtk.c: Add prototype for
8003         emacs_gtk_selection_clear_event_handle.
8004         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
8005         selection.  Setup signal handler for "selection_clear_event"
8006         (emacs_gtk_selection_clear_event_handle).
8007
8008         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
8009         other applications owning the clipboard (based on
8010         x_handle_selection_clear).
8011
8012 2001-12-23  William M. Perry  <wmperry@gnu.org>
8013
8014         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
8015         
8016 2002-01-04  Martin Buchholz  <martin@xemacs.org>
8017
8018         * keymap.c (define_key_alternate_name): Parenthesize EQ.
8019
8020 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
8021
8022         * XEmacs 21.4.6 "Common Lisp" is released.
8023
8024 2001-12-16  Torsten Duwe  <duwe@caldera.de>
8025
8026         * search.c (Freplace_match): Add missing sub-expression functionality.
8027
8028         * buffer.c (decode_buffer): Add a check for pointer type to
8029         decode_buffer, before gcc's CSE optimization reorders a
8030         dereference in front of the allow_string test.
8031
8032 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
8033
8034         * window.c (window_loop): Fix bug that sometimes prevented
8035         window_loop() from iterating across multiple devices.  Also, at
8036         Ben's request, changed infloop-detecting code to abort() instead
8037         of silently terminating window_loop().
8038
8039 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
8040
8041         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8042         * editfns.c (make_time): New function.
8043         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8044         * lisp.h (make_time): Prototype and comment it.
8045         * dired.c (wasteful_word_to_lisp): Deprecate.
8046         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8047
8048 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8049
8050         * fileio.c (auto_save_1): Use current coding system, not
8051         escape-quoted.
8052
8053 2001-11-13  Ben Wing  <ben@xemacs.org>
8054
8055         * window.c:
8056         * window.c (window_truncation_on):
8057         * window.c (syms_of_window):
8058         truncate-partial-width-windows should respect the buffer being
8059         displayed, like other redisplay vars.
8060
8061 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8062
8063         * event-stream.c (Fread_key_sequence): save current buffer.
8064
8065 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8066
8067         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8068
8069 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8070
8071         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8072
8073 2001-10-26  Mike Alexander  <mta@arbortext.com>
8074
8075         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8076
8077 2001-10-25  Andy Piper  <andy@xemacs.org>
8078
8079         * ChangeLog:
8080         * dialog-msw.c (handle_directory_proc): new function.
8081          (handle_directory_dialog_box): new fucntion.
8082          (handle_file_dialog_box): use new directory dialog support.
8083          (mswindows_make_dialog_box_internal): ditto.
8084         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8085         handling.
8086         (mswindows_find_frame): make global.
8087         * fileio.c (Fexpand_file_name): build fix.
8088         * general-slots.h: add Qdirectory.
8089         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8090         handling.
8091         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8092         cygwin not leaving win32 paths unchanged.
8093         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8094         cygwin runtime to do path conversion.
8095         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8096         (syms_of_win32): add new function.
8097         * window.c (window_loop): build fix.
8098
8099 2001-10-15  Andy Piper  <andy@xemacs.org>
8100
8101         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8102
8103 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8104
8105         * XEmacs 21.4.5 "Civil Service" is released.
8106
8107 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8108
8109         * glyphs-x.c: Force buffer-tab highlight update when moving the
8110         buffer, avoiding an ugly black border, used for keyboard focus
8111         indication, on a widget that can never have keyboard focus, the
8112         buffer tab.
8113
8114 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8115
8116         * process-unix.c (unix_open_multicast_group): Remove too much
8117         conversion between host and network byte order.
8118
8119 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8120
8121         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8122         before replacing them.
8123
8124         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8125         operation.
8126
8127         * src/window.c (undedicate_windows): Use it.
8128         * src/window.h: Add prototype.
8129
8130 2001-09-17  Ben Wing  <ben@xemacs.org>
8131
8132         * fileio.c (normalize_filename):
8133         * fileio.c (Fexpand_file_name):
8134         Fix various C++ compile errors in Andy's recent code.
8135         
8136         * callint.c (Fcall_interactively):
8137         * editfns.c (Ftemp_directory):
8138         * editfns.c (Fuser_full_name):
8139         * emacs.c (argmatch):
8140         * lread.c (locate_file_map_suffixes):
8141         * redisplay-x.c (x_ring_bell):
8142         Fix sign-compare warnings.
8143         
8144 2001-09-08  Andy Piper  <andy@xemacs.org>
8145
8146         * fileio.c (normalize_filename): copied from nt.c
8147         * (Ffile_name_directory): enable win32 paths under cygwin.
8148         * (Ffile_name_nondirectory): ditto.
8149         * (directory_file_name): ditto.
8150         * (Fexpand_file_name): ditto.
8151         * (Ffile_truename): ditto.
8152         * (Fsubstitute_in_file_name): ditto.
8153         * (Ffile_name_absolute_p): ditto.
8154         * (Ffile_readable_p): ditto.
8155
8156 2001-09-08  Andy Piper  <andy@xemacs.org>
8157
8158         * device-msw.c (mswindows_finish_init_device): remove dde
8159         initialization.
8160         * device-msw.c (mswindows_init_dde): factor out from
8161         mswindows_finish_init_device()
8162         * device-msw.c (init_mswindows_very_early): new function
8163         initialize but don't enable dde.
8164         * emacs.c (main_1): call init_mswindows_very_early.
8165         * event-msw.c:
8166         * event-msw.c (mswindows_dde_callback): only execute when we are
8167         ready.
8168         * symsinit.h: declare init_mswindows_very_early.
8169
8170 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8171
8172         [sjt: This has been in 21.5 for months with no complaints.]
8173
8174         * console.h (struct console_methods): Added flags member.
8175         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8176         (CONMETH_IMPL_FLAG):
8177         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8178         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8179
8180         * device.c (window_system_pixelated_geometry): Use the above macros.
8181
8182         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8183         implememntation flag.
8184         * device.h (DEVICE_DISPLAY_P): Use it.
8185
8186         * frame.c (delete_frame_internal): Use the above macro.
8187
8188         * redisplay.c (redisplay_device): Use it.
8189         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8190         (redisplay_frame): Ditto.
8191
8192         * device-msw.c (mswindows_device_implementation_flags): Removed.
8193         (msprinter_device_implementation_flags): Removed.
8194         (console_type_create_device_mswindows): Removed references to
8195         implementation_flags methods, set implementation flags here.
8196         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8197
8198         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8199         (console_type_create_device_gtk): Removed method declaration.
8200         Added commented out statement which semantically matches the
8201         commented out statement in the above removed method.
8202
8203 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8204
8205         The attached patch fixes a few warnings. 
8206
8207         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8208         * src/frame-gtk.c: guard against GNOME calls in GTK only
8209         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8210         * src/select-gtk.c: prototype lisp_to_time
8211
8212 2001-06-08  Ben Wing  <ben@xemacs.org>
8213
8214         ------ gc-in-window-procedure fixes ------
8215         
8216         * alloc.c:
8217         * alloc.c (struct post_gc_action):
8218         * alloc.c (register_post_gc_action):
8219         * alloc.c (run_post_gc_actions):
8220         * alloc.c (garbage_collect_1):
8221         Create "post-gc actions", to avoid those dreaded "GC during window
8222         procedure" problems.
8223
8224         * event-msw.c:
8225         Abort, clean and simple, when GC in window procedure.  We want
8226         to flush these puppies out.
8227
8228         * glyphs-msw.c:
8229         * glyphs-msw.c (finalize_destroy_window):
8230         * glyphs-msw.c (mswindows_finalize_image_instance):
8231         Use a post-gc action when destroying subwindows.
8232
8233         * lisp.h:
8234         Declare register_post_gc_action().
8235
8236         * scrollbar-msw.c:
8237         * scrollbar-msw.c (unshow_that_mofo):
8238         Use a post-gc action when unshowing scrollbar windows, if in gc.
8239
8240         * redisplay.c (mark_redisplay):
8241         Add comment about the utter evilness of what's going down here.
8242
8243         ------ cygwin setitimer fixes ------
8244         
8245         * Makefile.in.in (sheap_objs):
8246         * Makefile.in.in (profile_objs):
8247         * Makefile.in.in (objs):
8248         Compile profile.c only when HAVE_SETITIMER.
8249         
8250         * nt.c (mswindows_sigset):
8251         * nt.c (mswindows_sighold):
8252         * nt.c (mswindows_sigrelse):
8253         * nt.c (mswindows_sigpause):
8254         * nt.c (mswindows_raise):
8255         * nt.c (close_file_data):
8256         Style fixes.
8257         
8258         * nt.c:
8259         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8260         
8261         * profile.c:
8262         * profile.c (Fstart_profiling):
8263         * profile.c (Fstop_profiling):
8264         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8265         instead of just plain setitimer().
8266         
8267         * signal.c:
8268         * signal.c (set_one_shot_timer):
8269         * signal.c (alarm):
8270         Define qxe_setitimer() as an encapsulation around setitimer() --
8271         call setitimer() directly unless Cygwin or MS Win, in which case
8272         we use our simulated version in win32.c.
8273         
8274         * systime.h:
8275         * systime.h (struct itimerval):
8276         * systime.h (ITIMER_REAL):
8277         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8278         comment about "qxe" and the policy regarding encapsulation.
8279
8280         * win32.c:
8281         * win32.c (setitimer_helper_proc):
8282         * win32.c (setitimer_helper_period):
8283         * win32.c (setitimer_helper):
8284         * win32.c (mswindows_setitimer):
8285         Move setitimer() emulation here, so Cygwin can use it.
8286         Rename a couple of functions and variables to be longer and more
8287         descriptive.  In setitimer_helper_proc(), send the signal
8288         using either mswindows_raise() or (on Cygwin) kill().  If for
8289         some reason we are still getting lockups, we'll change the kill()
8290         to directly invoke the signal handlers.
8291
8292         ------ windows shell fixes ------
8293         
8294         * callproc.c:
8295         * ntproc.c:
8296         Comments about how these two files must die.
8297
8298         * callproc.c (init_callproc):
8299         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8300         not just COMSPEC. (more correct and closer to FSF.) Don't
8301         force a value for SHELL into the environment. (Comments added
8302         to explain why not.)
8303         
8304         * nt.c (init_user_info):
8305         Don't shove a fabricated SHELL into the environment.  See above.
8306
8307 2001-06-01  Ben Wing  <ben@xemacs.org>
8308
8309         * Makefile.in.in (ldflags):
8310         eliminate that pesky "defaulting to 00401000" warning.
8311         * nt.h:
8312         eliminate warnings.
8313
8314 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8315
8316         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8317         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8318
8319 2001-04-24  Jerry James <james@xemacs.org>
8320
8321         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8322         correct order.
8323
8324 2001-06-01  Ben Wing  <ben@xemacs.org>
8325
8326         * event-msw.c (debug_mswin_messages):
8327         conditionalize the messages that were causing compile errors.
8328         (if only macros could generate #ifdef statements ...)
8329
8330 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8331
8332         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8333
8334 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8335
8336         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8337
8338 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8339
8340         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8341         * process-unix.c (unix_canonicalize_host_name):
8342         sysdep.c (init_system_name):
8343         Use it to conditionally support IPv6 canonicalization.
8344
8345 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8346
8347         * event-msw.c:
8348         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8349
8350 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8351
8352         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8353         attempt is made to scroll when no scroll bar is available.
8354
8355 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8356
8357         * input-method-motif.c (XIM_delete_frame): New callback.
8358         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8359         got deleted from 21.4.3.)
8360
8361 2001-06-01  Ben Wing  <ben@xemacs.org>
8362
8363         * nt.c (mswindows_utime):
8364         * nt.c (close_file_data):
8365         fix off-by-one-indirection error.
8366
8367 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8368
8369         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8370         because set_file_times() now takes Lisp_Object path, instead of
8371         char*.
8372         * nt.c: Include buffer.h.
8373         * nt.c (convert_from_time_t): New.
8374         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8375         not set mtime correctly.
8376         * nt.h: Declare mswindows_utime().
8377         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8378         path, instead of char*.
8379         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8380
8381 2001-05-30  Ben Wing  <ben@xemacs.org>
8382
8383         For 21.4:
8384
8385         (Stephen, just take all event-msw.c patches.  This includes
8386         the "iconify" fix below.)
8387
8388         * event-msw.c:
8389         * event-msw.c (mswindows_dequeue_dispatch_event):
8390         * event-msw.c (assert):
8391         * event-msw.c (emacs_mswindows_quit_p):
8392         * event-msw.c (debug_mswin_messages):
8393         * event-msw.c (debug_output_mswin_message):
8394         * event-msw.c (vars_of_event_mswindows):
8395         Fix yet more problems with C-g handling.
8396         Implement debug-mswindows-events.
8397         
8398 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8399
8400         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8401         
8402 2001-05-23  Ben Wing  <ben@xemacs.org>
8403
8404         * event-msw.c (winsock_writer):
8405         * event-msw.c (winsock_closer):
8406         prior kludgy code was clobbering the buffer, thinking it was
8407         "unused" space to store an unneeded return value; instead, use
8408         the variable we've already got staring us in the face.
8409
8410 2001-05-17  Andy Piper  <andy@xemacs.org>
8411
8412         * sysfile.h: don't assume that file attributes are boolean
8413
8414 2001-05-23  Ben Wing  <ben@xemacs.org>
8415
8416         * device-msw.c (msprinter_init_device):
8417         signal an error rather than crash with an unavailable network
8418         printer (from Mike Alexander).
8419         
8420         * event-msw.c:
8421         * event-msw.c (struct winsock_stream):
8422         * event-msw.c (winsock_writer):
8423         * event-msw.c (winsock_closer):
8424         * event-msw.c (make_winsock_stream_1):
8425         cleanup headers.  fix (hopefully) an error with data corruption
8426         when sending to a network connection.
8427
8428         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8429         to handle the ~user prefix by (a) always assuming we're referencing
8430         ourselves and not even verifying the user -- hence any file with
8431         a tilde as its first char is invalid! (b) if there wasn't a slash
8432         following the filename, the pointer was set *past* the end of
8433         file and we started reading from uninitialized memory.  Now we
8434         simply treat these as files, always.
8435
8436         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8437         
8438 2001-05-19  Ben Wing  <ben@xemacs.org>
8439
8440         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8441
8442         * process-nt.c:
8443         * process-nt.c (vars_of_process_nt):
8444         remove unused mswindows-quote-process-args.  rec for 21.4.
8445         
8446 2001-05-12  Ben Wing  <ben@xemacs.org>
8447
8448         * event-msw.c (mswindows_dde_callback):
8449         * event-msw.c (mswindows_wnd_proc):
8450         eliminate cygwin warnings.
8451
8452 2001-05-06  Ben Wing  <ben@xemacs.org>
8453
8454         * console-msw.h:
8455         * device-msw.c:
8456         * device-msw.c (print_dialog_worker):
8457         * device-msw.c (mswindows_handle_print_dialog_box):
8458         * device-msw.c (syms_of_device_mswindows):
8459         * dialog-msw.c (mswindows_make_dialog_box_internal):
8460         * general-slots.h:
8461         implement printing the selection when it's selected.
8462
8463 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8464
8465         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8466
8467 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8468
8469         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8470         EMACS_INT is signed.
8471
8472 2001-04-15  Michael Lausch  <mla@1012surf.net>
8473
8474         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8475         gtk_widget_request_size() to give scrollbar >0 width for
8476         GTK >1.2.8.
8477
8478 2001-05-30  William M. Perry  <wmperry@gnu.org>
8479
8480         * event-gtk.c: Check for buttons as modifier keys.
8481
8482 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8483
8484         * s\mingw32.h:
8485         Properly find MinGW's <process.h> inside Cygwin's restructured
8486         include directories.  Don't try to include <cygwin/version.h>
8487         since we are dropping support for MinGW in versions of Cygwin
8488         earlier than b21.
8489         * nt.c:
8490         Drop support for MinGW in versions of Cygwin before b21.
8491         * sysdep.c:
8492         Properly find MinGW's <process.h> inside Cygwin's restructured
8493         include directories.
8494         * syswindows.h:
8495         Drop support for MinGW in versions of Cygwin before b21.
8496         * unexcw.c:
8497         Even though a.out.h is no longer detected by configure, allow
8498         MinGW to use it until we figure out how to do the job with Win32.
8499
8500 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8501
8502         * syntax.c (find_start_of_comment):
8503         Fix `unbalanced parentheses' bug when dealing with mixed comment
8504         styles in c++/java/etc. mode
8505
8506 2001-05-29  Mike Alexander  <mta@arbortext.com>
8507
8508         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8509         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8510
8511 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8512
8513         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8514
8515 2001-03-31  Mike Sperber <mike@xemacs.org>
8516
8517         * search.c (Freplace_match): Support FSF-style specification of
8518         match subexpression when applied to a buffer.
8519
8520 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8521
8522         * event-stream.c (is_scrollbar_event): add missing semicolon
8523
8524 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8525
8526         * Makefile.in.in: Use TAR macro instead of hardcoding
8527           tar.  Allows use of GNU tar instead of system tar
8528
8529 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8530
8531         * event-stream.c (is_scrollbar_event): add missing semicolon
8532
8533 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8534
8535         * XEmacs 21.4.3 "Academic Rigor" is released.
8536
8537 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8538
8539         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8540
8541 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8542
8543         * buffer.c (Vcase_fold_search): Remove obsolete
8544           comment about non ASCII case-fold-search.  This
8545           bug has been fixed by case-table changes.
8546
8547 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8548
8549         * event-msw.c: Restore include of events-mod.h.
8550
8551 2001-04-22   zhaoway  <zw@debian.org>
8552
8553         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8554         !HAVE_SCROLLBARS.
8555
8556 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8557
8558         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8559
8560 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8561
8562         * mule-charset.c (Fmake_charset): Add missing else.
8563
8564 2001-04-23  Ben Wing  <ben@xemacs.org>
8565
8566         * event-msw.c (FAKE_MOD_QUIT):
8567         * event-msw.c (mswindows_dequeue_dispatch_event):
8568         * event-msw.c (mswindows_wnd_proc):
8569         * event-msw.c (emacs_mswindows_quit_p):
8570         Get critical quit working.
8571
8572 2001-05-05  Ben Wing  <ben@xemacs.org>
8573
8574         * console-msw.h:
8575         * device-msw.c:
8576         * device-msw.c (mswindows_get_default_margin):
8577         * frame-msw.c (mswindows_size_frame_internal):
8578         * frame-msw.c (msprinter_init_frame_1):
8579         * frame-msw.c (vars_of_frame_mswindows):
8580         Change top/bottom margin defaults to 0.5 inches.
8581
8582 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8583
8584         Fix link error with gcc 3.0 on Linux.
8585         * terminfo.c (UP): Remove.
8586         * terminfo.c (BC): Remove.
8587         * terminfo.c (PC): Remove.
8588         They weren't used, and in any case, these symbols should be
8589         defined in the *library*.
8590
8591 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8592
8593         * s/aix4.h: Fix crash with xlc -O3.
8594         Improve comment explaining how -O3 works.
8595
8596 2001-04-15  Ben Wing  <ben@xemacs.org>
8597
8598         * event-stream.c:
8599         * event-stream.c (Fnext_event):
8600         * event-stream.c (is_scrollbar_event):
8601         * event-stream.c (execute_command_event):
8602         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8603         crash' problem.  His fix introduces other problems.  We filter
8604         out scrollbar events specifically, making them somewhat invisible
8605         to command-building, and not appearing in `this-command-keys'.
8606         More work is still needed (see comments in event-stream.c), but
8607         this fixes all the major problems.
8608
8609 2001-04-20  Ben Wing  <ben@xemacs.org>
8610
8611         * .cvsignore: Added stuff for Windows.
8612
8613 2001-04-28  Ben Wing  <ben@xemacs.org>
8614
8615         * buffer.c (Ferase_buffer):
8616         * editfns.c (buffer_insert1):
8617         * editfns.c (Finsert_before_markers):
8618         * editfns.c (Finsert_string):
8619         * editfns.c (Finsert_char):
8620         * editfns.c (Fdelete_region):
8621         * editfns.c (Fwiden):
8622         * editfns.c (Fnarrow_to_region):
8623         remove bogus lines setting zmacs_region_stays to 0.
8624         
8625 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8626
8627         * process-unix.c (unix_open_network_stream): If connect() fails
8628         invalidate file descriptor after closing it.
8629
8630 2001-03-08  Mike Alexander  <mta@arbortext.com>
8631
8632         * event-msw.c (mswindows_need_event_in_modal_loop):
8633         Don't dispatch a message if we didn't get one.
8634         (mswindows_need_event):
8635         Terminate the correct process when one exits instead of the first
8636         one on Vprocess_list and look for process termination when in
8637         mswindows_protect_modal_loop.
8638
8639 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8640
8641         * XEmacs 21.4.1 "Copyleft" is released.
8642
8643 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8644
8645         * input-method-motif.c (XIM_delete_frame): New callback.
8646         (XIM_init_frame): Register it.
8647
8648 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8649
8650         * XEmacs 21.4.0 "Solid Vapor" is released.
8651
8652 2001-04-15  Ben Wing  <ben@xemacs.org>
8653
8654         * cmdloop.c (call_command_loop):
8655         Fix braino in bit-rotting code.
8656         
8657 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8658
8659         * extents.c (Fset_extent_endpoints): Force creation of extent info
8660         in buffer_or_string.
8661
8662         * extents.c (process_extents_for_insertion_mapper): Correctly
8663         check for open-open zero-length extents.
8664
8665 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8666
8667         * lisp.h: New typedefs Memory_count, Element_count.
8668         * regex.c:
8669         * regex.h:
8670         Sign-compare warning elimination: several unsigned -> signed.
8671         Based on work by Ben Wing <ben@xemacs.org>.
8672
8673 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8674
8675         * XEmacs 21.2.47 "Zephir" is released.
8676
8677 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8678
8679         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8680
8681 2001-04-03  Mike Sperber <mike@xemacs.org>
8682
8683         * search.c: Revert previous patch due because of release.
8684
8685 2001-03-30  Ben Wing  <ben@xemacs.org>
8686
8687         * s\cygwin32.h:
8688         Add missing killpg prototype.
8689
8690         * elhash.c:
8691         Add a comment about fixing problems when a new entry is added
8692         while mapping.
8693
8694         * frame-msw.c (mswindows_init_frame_1):
8695         Fix compile warnings.
8696
8697         * menubar.c (vars_of_menubar):
8698         Provide `menu-accelerator-support' to indicate that we properly
8699         support %_ in menu specifications, so that package code can
8700         conditionalize on this (and remove %_ from menu specifications
8701         on older versions).
8702
8703         * event-msw.c:
8704         * scrollbar-msw.c:
8705         * scrollbar-msw.c (can_scroll):
8706         * scrollbar-msw.h:
8707         Fix handling of mouse wheel under Windows to follow standards --
8708         now scrolls window under pointer, not selected window.
8709
8710 2001-03-31  Mike Sperber <mike@xemacs.org>
8711
8712         * search.c (Freplace_match): Support FSF-style specification of
8713         match subexpression when applied to a buffer.
8714
8715 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8716
8717         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8718         function to modify KEYMAP, so map over a copy of the hash table.
8719
8720 2001-03-21  Martin Buchholz <martin@xemacs.org>
8721
8722         * XEmacs 21.2.46 "Urania" is released.
8723
8724 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8725
8726         * realpath.c (xrealpath): Make file-truename work with symlinks to
8727         /cygdrive paths on cygwin. Always lowercase drive-letters on
8728         native windows.
8729         (cygwin_readlink): Don't try to find canonical filename unless
8730         file exists.
8731
8732 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8733
8734         * ChangeLog: Log GTK merge.
8735
8736         * dumper.c:
8737         * select-x.c:
8738         * specifier.c:
8739         * symeval.h:
8740         Revert gratuitous whitespace changes from GTK merge.
8741
8742         * emacs.c: Document end of complex #ifdef @ l. 1495.
8743
8744
8745 2001-03-12  Andy Piper  <andy@xemacs.org>
8746
8747         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8748         have to do likewise.
8749
8750 2001-03-12  Andy Piper  <andy@xemacs.org>
8751
8752         * sysdep.c: we only support mingw now.
8753
8754 2001-03-09  Andy Piper  <andy@xemacs.org>
8755
8756         * unexcw.c (copy_executable_and_dump_data_section): making approx
8757         overrun a warning only.
8758
8759 2001-03-10  William M. Perry  <wmperry@aventail.com>
8760
8761         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8762         satisfy Stephen's identical-after-cpp plea.
8763
8764 2001-03-02  Ben Wing  <ben@xemacs.org>
8765
8766         * cmds.c:
8767         * cmds.c (Fforward_char):
8768         * syntax.c:
8769         * window.c:
8770
8771         Augment documentation of the most common motion commands to make
8772         note of the shifted-motion support.
8773         
8774 2001-03-02  Ben Wing  <ben@xemacs.org>
8775
8776         * nt.c (mswindows_fstat):
8777         * nt.c (mswindows_stat):
8778         * search.c (boyer_moore):
8779         Fix compile warnings under Windows.
8780         
8781         * sysdep.c (sys_readdir):
8782         Fix buggy filename-conversion code under Mule.
8783
8784 2001-03-09  William M. Perry  <wmperry@aventail.com>
8785
8786         * Makefile.in.in:
8787         * config.h.in:
8788         * console.c:
8789         * console.h:
8790         * device.c:
8791         * device.h:
8792         * dragdrop.c:
8793         * emacs.c:
8794         * event-stream.c:
8795         * events.c:
8796         * events.h:
8797         * faces.c:
8798         * frame.h:
8799         * general-slots.h:
8800         * glyphs.c:
8801         * gutter.c:
8802         * inline.c:
8803         * lisp.h:
8804         * lrecord.h:
8805         * make-src-depend:
8806         * redisplay-output.c:
8807         * redisplay.c:
8808         * symsinit.h:
8809         * sysfile.h:
8810         * toolbar.c:
8811         * window.c:
8812         The Great GTK Merge.
8813
8814         * ChangeLog.GTK:
8815         * console-gtk.c:
8816         * console-gtk.h:
8817         * device-gtk.c:
8818         * emacs-marshals.c:
8819         * emacs-widget-accessors.c:
8820         * event-gtk.c:
8821         * frame-gtk.c:
8822         * gccache-gtk.c:
8823         * gccache-gtk.h:
8824         * glade.c:
8825         * glyphs-gtk.c:
8826         * glyphs-gtk.h:
8827         * gtk-glue.c:
8828         * gtk-xemacs.c:
8829         * gtk-xemacs.h:
8830         * gui-gtk.c:
8831         * gui-gtk.h:
8832         * menubar-gtk.c:
8833         * native-gtk-toolbar.c:
8834         * objects-gtk.c:
8835         * objects-gtk.h:
8836         * redisplay-gtk.c:
8837         * scrollbar-gtk.c:
8838         * scrollbar-gtk.h:
8839         * select-gtk.c:
8840         * toolbar-gtk.c:
8841         * ui-byhand.c:
8842         * ui-gtk.c:
8843         * ui-gtk.h:
8844         The Great GTK Merge: new files.
8845
8846 2001-02-26  Ben Wing  <ben@xemacs.org>
8847
8848         Reapplied Lstream change.
8849
8850 2001-02-26  Ben Wing  <ben@xemacs.org>
8851
8852         Undid the last change, since it is more controversial than I
8853         thought.  It should be back in at some point soon.
8854         
8855 2001-02-25  Ben Wing  <ben@xemacs.org>
8856
8857         * buffer.c:
8858         * callproc.c (Fold_call_process_internal):
8859         * event-msw.c (ntpipe_slurp_reader):
8860         * event-msw.c (ntpipe_shove_writer):
8861         * event-msw.c (winsock_reader):
8862         * event-msw.c (winsock_writer):
8863         * file-coding.c:
8864         * file-coding.c (detect_eol_type):
8865         * file-coding.c (detect_coding_type):
8866         * file-coding.c (determine_real_coding_system):
8867         * file-coding.c (Fdetect_coding_region):
8868         * file-coding.c (decoding_reader):
8869         * file-coding.c (decoding_writer):
8870         * file-coding.c (mule_decode):
8871         * file-coding.c (Fdecode_coding_region):
8872         * file-coding.c (encoding_reader):
8873         * file-coding.c (encoding_writer):
8874         * file-coding.c (mule_encode):
8875         * file-coding.c (Fencode_coding_region):
8876         * file-coding.c (detect_coding_sjis):
8877         * file-coding.c (decode_coding_sjis):
8878         * file-coding.c (encode_coding_sjis):
8879         * file-coding.c (detect_coding_big5):
8880         * file-coding.c (decode_coding_big5):
8881         * file-coding.c (encode_coding_big5):
8882         * file-coding.c (detect_coding_ucs4):
8883         * file-coding.c (decode_coding_ucs4):
8884         * file-coding.c (encode_coding_ucs4):
8885         * file-coding.c (detect_coding_utf8):
8886         * file-coding.c (decode_coding_utf8):
8887         * file-coding.c (encode_coding_utf8):
8888         * file-coding.c (detect_coding_iso2022):
8889         * file-coding.c (decode_coding_iso2022):
8890         * file-coding.c (encode_coding_iso2022):
8891         * file-coding.c (decode_coding_no_conversion):
8892         * file-coding.c (encode_coding_no_conversion):
8893         * glyphs-x.c (write_lisp_string_to_temp_file):
8894         * gpmevent.c (tty_get_foreign_selection):
8895         * lisp.h:
8896         * lstream.c:
8897         * lstream.c (Lstream_flush_out):
8898         * lstream.c (Lstream_adding):
8899         * lstream.c (Lstream_write_1):
8900         * lstream.c (Lstream_write):
8901         * lstream.c (Lstream_raw_read):
8902         * lstream.c (Lstream_read_more):
8903         * lstream.c (Lstream_read):
8904         * lstream.c (Lstream_unread):
8905         * lstream.c (Lstream_fputc):
8906         * lstream.c (stdio_reader):
8907         * lstream.c (stdio_writer):
8908         * lstream.c (filedesc_reader):
8909         * lstream.c (filedesc_writer):
8910         * lstream.c (lisp_string_reader):
8911         * lstream.c (struct fixed_buffer_stream):
8912         * lstream.c (make_fixed_buffer_input_stream):
8913         * lstream.c (make_fixed_buffer_output_stream):
8914         * lstream.c (fixed_buffer_reader):
8915         * lstream.c (fixed_buffer_writer):
8916         * lstream.c (struct resizing_buffer_stream):
8917         * lstream.c (resizing_buffer_writer):
8918         * lstream.c (dynarr_writer):
8919         * lstream.c (lisp_buffer_reader):
8920         * lstream.c (lisp_buffer_writer):
8921         * lstream.h:
8922         * lstream.h (lstream_implementation):
8923         * lstream.h (struct lstream):
8924         * md5.c (Fmd5):
8925         * process-nt.c (nt_send_process):
8926         * process-unix.c (unix_send_process):
8927         
8928         Correct Lstream lossage due to mixing of signed and unsigned
8929         quantities.  All Lstream uses of size_t and ssize_t are now a
8930         single signed data type Lstream_data_count.  This fixes problems
8931         under Windows with sending large quantities of data to a process,
8932         and may well fix other subtle bugs.
8933
8934 2001-02-23  Martin Buchholz <martin@xemacs.org>
8935
8936         * XEmacs 21.2.45 "Thelxepeia" is released.
8937
8938 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8939
8940         * lisp-union.h (XSETINT): 
8941         (XSETCHAR):
8942         (XSETOBJ): 
8943         Reverse previous change of 2001-02-06.
8944
8945 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8946
8947         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8948         buffers.
8949         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8950         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8951         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8952         * regex.c (POS_AS_IN_BUFFER): removed
8953         * regex.c (re_search_2):
8954         * regex.c (re_match_2):
8955         Don't use an offset of 1 when calculating buffer positions, since
8956         `BI_BUF_BEGV' does it already.
8957
8958 2001-02-18  Wim Dumon  <wim@easics.be>
8959
8960         * insdel.c (prepare_to_modify_buffer): Also check for
8961         supersession when clash-detection is enabled. 
8962
8963 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8964
8965         * regex.c (re_match_2_internal):
8966         Convert temp characters from 'const unsigned char' to 're_char'.
8967         Fix crashing bug with extended characters under mule.
8968         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8969         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8970         font-lock, pdump, and new syntax-table code.
8971         * syntax.c (find_start_of_comment):
8972         (find_end_of_comment):
8973         (forward-comment):
8974         Fix crashing bugs involving moving beyond end of buffer.
8975         * syntax.c (find_start_of_comment):
8976         Fixed logic to allow proper detection of cases where the same
8977         character is used to end both a two-char comment start and a
8978         two-char comment end sequence. Fixes `(forward-comment -1)'.
8979         * syntax.c (find_start_of_comment):
8980         Return position just past last comment-end character for all cases
8981         (previously was only done for two-char comment-end sequences).
8982         * syntax.c (forward-comment):
8983         Take value returned from `find_end_of_comment', rather than
8984         incrementing it.
8985         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8986         Properly deal with BUFFERP (syntax_cache.object)
8987
8988 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8989
8990         * alloc.c (Fgarbage_collect): 
8991         * alloc.c (make_bit_vector_from_byte_vector):
8992         -Wsign-compare-correctness.
8993
8994 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8995
8996         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8997         (XSETCHAR): Likewise.
8998         (XSETOBJ): Likewise.
8999
9000 2001-02-15  Martin Buchholz  <martin@xemacs.org>
9001
9002         * mule-canna.c (canna-func-delete_previous): 
9003         Rename to canna-func-delete-previous.
9004
9005 2001-02-14  Martin Buchholz  <martin@xemacs.org>
9006
9007         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
9008
9009 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
9010
9011         * font-lock.c (find_context): Fix C++ compile errors introduced by
9012         recent patch
9013
9014 2001-02-13  Martin Buchholz  <martin@xemacs.org>
9015
9016         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
9017         pragma, but earlier ones barf on the same pragma.
9018
9019 2001-02-06  Mike Sperber <mike@xemacs.org>
9020
9021         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
9022         `configure-mule-lisp-directory'.
9023
9024 2001-02-12  Martin Buchholz  <martin@xemacs.org>
9025
9026         Make sure dump-id.c is compiled in the same way as other .c's.
9027         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9028         * dump-id.h: Remove.
9029         * emacs.c: Move dump-id.h into dumper.h.
9030         * dumper.h: Move dump-id.h into dumper.h.
9031         * Makefile.in.in:
9032         Use standard .c.o rule for building dump-id.o.
9033         Remove preprocessor flags from link command.
9034         Add dump-id.o to ${otherobjs} if PDUMP.
9035
9036 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
9037
9038         Port FSF 20.7 syntax table improvements.
9039         * syntax.c.
9040         * syntax.h.
9041
9042         Fixups for new syntax table stuff.
9043         * dired.c: Include syntax.c.
9044         (Fdirectory_files): Initialize regex_match_object and
9045         regex_emacs_buffer.
9046         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9047         and Fget_char_property.
9048
9049         Use ported FSF 20.7 syntax table improvements.
9050         * font-lock.c.
9051         * regex.c.
9052         * search.c.
9053         
9054 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9055
9056         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9057         Unixware's enum boolean from sys/types.h.
9058
9059 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9060
9061         Fix support for building with latest Purify.
9062         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9063         (PURIFY_FLAGS): Likewise.
9064
9065 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9066
9067         * fileio.c (lisp_string_set_file_times): New.
9068         * fileio.c (Fcopy_file): Use it.
9069         Fixes bug:
9070         (copy-file filename non-ascii-filename t t)
9071         ==> No such file or directory, non-ascii-filename
9072
9073 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9074
9075         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9076         USHRT_MAX seems clearer than ~0 anyways.
9077
9078 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9079
9080         dumper improvements.  Inspired by Olivier.
9081         * dumper.c (pdump_max_align): New.
9082         * dumper.c (pdump_add_entry): Use pdump_max_align.
9083         * dumper.c (pdump_get_entry_list): Likewise.
9084         * dumper.c (pdump_scan_by_alignment): Likewise.
9085         Don't iterate through unnecessary alignments.
9086         * dumper.c (pdump_file_get): No need to align result of malloc().
9087         * dumper.c (pdump_mallocadr): Remove.  
9088         The result of malloc() is guaranteed to be maximally aligned.
9089         * dumper.c: s/elmt/elt/g;
9090         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9091         * dumper.c (pdump_alert_undump_object): Likewise.
9092         * dumper.c (pdump_align_table): 
9093         Don't support alignments > 64.
9094         Store ALIGNOF's, not shift counts, in table.
9095
9096 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9097
9098         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9099         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9100         * systime.h: Use HAVE_UTIME.
9101         * sysdep.c (struct utimbuf): Remove.
9102         * sysdep.c (set_file_times): Prefer utime() to utimes().
9103         * config.h.in (HAVE_UTIME): New.
9104         * config.h.in (HAVE_UTIME_H): Remove.
9105         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9106
9107 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9108
9109         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9110
9111 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9112
9113         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9114
9115 2001-02-08  Martin Buchholz <martin@xemacs.org>
9116
9117         * XEmacs 21.2.44 "Thalia" is released.
9118
9119 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9120
9121         Fixes crashes in kill-emacs on some systems.
9122         * process-unix.c (unix_kill_child_process):
9123         It's OK for kill() to fail with ESRCH.
9124
9125 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9126
9127         Contortions to make .gdbinit tricks work on most systems.
9128         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9129         * alloc.c (dbg_valmask): Make non-const.
9130         * alloc.c (dbg_typemask): Make non-const.
9131         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9132         * alloc.c (dbg_valbits): Make non-const.
9133         * alloc.c (dbg_gctypebits): Make non-const.
9134         * .gdbinit (decode_object): Make it work with AIX cc.
9135
9136 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9137
9138         * elhash.c (make_general_lisp_hash_table):
9139         Use simpler and more efficient calloc to clear entries.
9140
9141 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9142
9143         * window.c (window_scroll): Work around an AIX C compiler bug.
9144         Fixes 'scroll-up' does nothing problem with xlC.
9145
9146 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9147
9148         * .gdbinit: Remove obsolete comment.
9149
9150 2001-01-31  Mike Alexander  <mta@arbortext.com>
9151
9152         * select.c (Fown_selection_internal): Set owned_p for device
9153         method correctly.
9154
9155 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9156
9157         Port to g++ 2.97.
9158         "not" cannot be used as a macro name as it is an operator in C++
9159         * config.h.in: Stop #defining `not'.
9160         * chartab.c (check_category_char): not ==> not_p
9161         * chartab.h: Likewise.
9162         * regex.c (re_match_2_internal): Likewise.
9163
9164 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9165
9166         * lisp-disunion.h: Fix up comments.
9167
9168 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9169
9170         * keymap.c (define_key_check_and_coerce_keysym):
9171         (syms_of_keymap):
9172         Support mouse-6 and mouse-7 bindings in the obvious way.
9173
9174 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9175
9176         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9177
9178 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9179
9180         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9181         Previous patch missed DEFVAR_INT_MAGIC.
9182         Make sure future DEFVAR_foo use correct types.
9183         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9184         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9185         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9186         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9187         * (DEFVAR_INT): Likewise.
9188         * redisplay.c (vertical_clip): Should be of type Fixnum.
9189         * redisplay.c (horizontal_clip): Likewise.
9190         * lisp.h (dump_add_opaque_int): New.
9191         (dump_add_opaque_fixnum): New.
9192
9193 2001-01-29  Andy Piper  <andy@xemacs.org>
9194
9195         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9196         since they can be eval'ed
9197
9198 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9199
9200         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9201         Oops, XEmacs redefines `class'.  Use `typename' instead.
9202
9203 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9204
9205         * dumper.c: Fix C++ compile errors.
9206
9207 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9208
9209         * tparam.c: Use correct prototypes.
9210
9211 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9212
9213         * sysproc.h: #include util.h for NetBSD's openpty.
9214
9215 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9216
9217         More 64-bit correctness.
9218         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9219         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9220         Fix up comments.
9221         This finally finishes the 64-bit SGI port.
9222         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9223         * symbols.c: Fix up comments and type casts.
9224         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9225         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9226         * symeval.h (Fixnum): New type.
9227         * symeval.h (symbol_value_type): Fix up comment.
9228
9229         * commands.h:
9230         * nt.c:
9231         * emacs.c:
9232         * data.c:
9233         * redisplay.c:
9234         * abbrev.c:
9235         * dired-msw.c:
9236         * event-Xt.c:
9237         * eldap.c:
9238         * window.c:
9239         * sound.c:
9240         * event-stream.c:
9241         * eval.c:
9242         * buffer.c:
9243         * mule-canna.c: A million DEFVAR_INTs here...
9244         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9245         * extents.c:
9246         * cmdloop.c:
9247         * lisp.h:
9248         * select-x.c:
9249         * console-x.h:
9250         * event-msw.c:
9251         * mule-wnnfns.c:
9252         * hpplay.c:
9253         * ralloc.c:
9254         * alloc.c:
9255         * keymap.c:
9256         * profile.c:
9257         s/int/Fixnum/g in DEFVAR_INT declarations.
9258
9259 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9260
9261         Port pdump to SGI alignment-sensitive environment.
9262         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9263         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9264         properly aligned.
9265         Define and use aligned reading and writing macros.
9266         Use buffered stdio instead of posix i/o for faster dumping.
9267         Eliminate kludgy 256 byte space for header.
9268         Read and write from dump file using structs for alignment safety.
9269         * dumper.c (pdump_align_stream): New.
9270         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9271         * dumper.c (PDUMP_READ_ALIGNED): New.
9272         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9273         * dumper.c (pdump_static_Lisp_Object): New struct.
9274         * dumper.c (pdump_static_pointer): New struct.
9275         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9276         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9277         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9278         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9279
9280         * dumper.c (pdump_backtrace):
9281         * dumper.c (pdump_get_indirect_count):
9282         * dumper.c (pdump_register_object):
9283         * dumper.c (pdump_register_struct):
9284         * dumper.c (pdump_reloc_one):
9285         * dumper.c (pdump_scan_by_alignment):
9286         * dumper.c (pdump_dump_from_root_struct_ptrs):
9287         * dumper.c (pdump_dump_opaques):
9288         * dumper.c (pdump_dump_rtables):
9289         * dumper.c (pdump_dump_from_root_objects):
9290         * dumper.c (pdump):
9291         * dumper.c (pdump_load_finish):
9292         Use aligned reading and writing.
9293
9294         * dumper.c (pdump_free): Make static.
9295         * dumper.c (pdump_hFile): Likewise.
9296         * dumper.c (pdump_hMap): Likewise.
9297
9298 2001-01-26  Martin Buchholz <martin@xemacs.org>
9299
9300         * XEmacs 21.2.43 "Terspichore" is released.
9301
9302 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9303
9304         Type fiddling for window_config.saved_windows_count
9305         * window.c (struct window_config): 
9306         Make saved_windows_count member unsigned.
9307         * window.c (sizeof_window_config_for_n_windows): 
9308         Make parameter unsigned.
9309         * window.c (mark_window_config):
9310         * window.c (window_config_equal):
9311         * window.c (free_window_configuration):
9312         * window.c (Fset_window_configuration):
9313         * window.c (count_windows):
9314         * window.c (Fcurrent_window_configuration):
9315         * window.c (reinit_vars_of_window):
9316         Update all callers and users.
9317
9318 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9319
9320         Alignment correctness for flexible arrays.
9321         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9322         Make alignment-correct. Add interesting comments.
9323         * alloc.c (size_vector):
9324         * alloc.c (make_vector_internal):
9325         * alloc.c (make_bit_vector_internal):
9326         * alloc.c (sweep_bit_vectors_1):
9327         * fns.c (size_bit_vector):
9328         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9329         * window.c (sizeof_window_config_for_n_windows): 
9330         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9331
9332 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9333
9334         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9335
9336 2001-01-23  Andy Piper  <andy@xemacs.org>
9337
9338         * select.c (Fown_selection_internal): pass owned_p
9339
9340         * select-msw.c (mswindows_own_selection): New Signature.
9341
9342         * console.h (struct console_methods): add owned_p to
9343         _own_selection.
9344
9345         * select-x.c (x_own_selection): pass owned_p
9346         (hack_motif_clipboard_selection): use owned_p
9347         (vars_of_select_x): new variable -
9348         x_selection_strict_motif_ownership.
9349
9350 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9351
9352         * specifier.h (specifier_data_offset): Remove pointless parens.
9353         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9354
9355 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9356
9357         Make Lisp_Object sizeof methods be alignment-correct.
9358         pdump must restore objects to the same alignment as the C compiler
9359         assumes.  It really matters on SGIs.
9360         * lstream.c (aligned_sizeof_lstream): New.
9361         (sizeof_lstream): Use aligned_sizeof_lstream.
9362         (Lstream_new): Likewise.
9363         * opaque.c (aligned_sizeof_opaque): New.
9364         (sizeof_opaque): Use aligned_sizeof_opaque.
9365         (make_opaque): Likewise.
9366         * specifier.c (aligned_sizeof_specifier): New.
9367         (sizeof_specifier): Use aligned_sizeof_specifier.
9368         (make_specifier_internal): Likewise.
9369
9370 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9371
9372         * lstream.h (struct lstream): Use max_align_t for trailing data.
9373         * specifier.h (struct Lisp_Specifier): Likewise.
9374
9375 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9376
9377         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9378         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9379         (CCL_SUSPEND): Likewise.
9380         (CCL_INVALID_CMD): Likewise.
9381         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9382         (ccl_driver): Likewise.
9383         (CCL_WRITE_CHAR): Macro hygiene.
9384         (CCL_WRITE_STRING): Macro hygiene.
9385
9386 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9387
9388         Port "portable" dumper to SunOS 4 and HP-UX.
9389         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9390         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9391         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9392
9393 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9394
9395         * lisp.h (ALIGNOF): A better definition for C++.
9396
9397 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9398
9399         Macro hygiene.
9400         Fix printf warnings: int format, long int arg.
9401         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9402         (PUSH_FAILURE_POINT): Use correct printf formats.
9403         (POP_FAILURE_POINT): Use correct printf formats.  
9404         Use do {...} while (0)
9405
9406 2001-01-20  Martin Buchholz <martin@xemacs.org>
9407
9408         * XEmacs 21.2.42 "Poseidon" is released.
9409
9410 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9411
9412         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9413
9414 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9415
9416         De-kludgify FIXED_TYPE free list frobbing.
9417         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9418         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9419         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9420         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9421         * alloc.c (LRECORD_FREE_P): New.
9422         * alloc.c (MARK_LRECORD_AS_FREE): New.
9423         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9424         * alloc.c (STRUCT_FREE_P): Deleted.
9425         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9426         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9427         * alloc.c (STRING_CHARS_FREE_P): New.
9428         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9429         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9430         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9431         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9432         * alloc.c (resize_string): Use new definitions.
9433         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9434         * alloc.c (verify_string_chars_integrity): Use new definitions.
9435         * alloc.c (compact_string_chars): Use new definitions.
9436         * alloc.c: Update monster comments.
9437         * lrecord.h (lrecord_type): Add some new lrecord types for
9438         alloc.c's use.
9439
9440 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9441
9442         Improve alignment hackery.
9443         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9444         (max_align_t): Moved from opaque.h - general purpose.
9445         (ALIGN_PTR): Use size_t, not long.
9446         * opaque.h (max_align_t): Move to lisp.h.
9447
9448 2001-01-18  Norbert Koch  <nk@LF.net>
9449
9450         * gui.h: Fix and add prototypes to fix build problems.
9451
9452 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9453
9454         temacs is going away, so `dump-temacs' is now a bad name.
9455         * .dbxrc (dump-temacs): Rename to `dmp'.
9456         * .gdbinit (dump-temacs): Rename to `dmp'.
9457
9458 2001-01-17  Andy Piper  <andy@xemacs.org>
9459
9460         * glyphs.c (print_image_instance): comment to make martin happy.
9461
9462         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9463         change.
9464
9465         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9466         activation.
9467         (mswindows_tab_control_redisplay): warning suppression.
9468
9469         * glyphs-widget.c (widget_update): re-write to cope with updated
9470         items.
9471         (widget_instantiate): use new gui_item functions.
9472         (tab_control_update): deleted.
9473         (progress_gauge_update): deleted.
9474         (image_instantiator_progress_guage): take out update reference.
9475         (image_instantiator_tree_view): ditto.
9476         (image_instantiator_tab_control): ditto.
9477
9478         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9479         Right the new way.
9480         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9481         return whether anything was changed.
9482         (update_gui_item_keywords): as it sounds.
9483
9484         * gui.h: declare widget_gui_parse_item_keywords.
9485
9486         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9487         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9488
9489 2001-01-17  Martin Buchholz <martin@xemacs.org>
9490
9491         * XEmacs 21.2.41 "Polyhymnia" is released.
9492
9493 2001-01-16  Didier Verna  <didier@xemacs.org>
9494
9495         * glyphs.c (image_instantiate): don't use fallbacks when
9496         instantiating a face's background pixmap by inheritance.
9497
9498 2001-01-14  Mike Sperber <mike@xemacs.org>
9499
9500         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9501         Conditionalize accordingly.
9502
9503 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9504
9505         * dumper.c (pdump_file_get): Fix a compiler warning.
9506
9507 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9508
9509         Make Purify happy when pdumping.
9510         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9511         iniitalizing all bits of new lisp object memory.
9512         * symbols.c (Fmake_local_variable): Likewise.
9513         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9514         * symbols.c (Fdefvaralias): Likewise.
9515         * mule-charset.c (vars_of_mule_charset): Likewise.
9516
9517 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9518         Add the `-nd' flag when running pre-dump operations under the debugger.
9519         * .dbxrc (run-temacs): Add `-nd'.
9520         * .dbxrc (update-elc): Likewise.
9521         * .dbxrc (dump-temacs): Likewise.
9522         * .gdbinit (run-temacs): Likewise.
9523         * .gdbinit (check-temacs): Likewise.
9524         * .gdbinit (update-elc): Likewise.
9525         * .gdbinit (dump-temacs): Likewise.
9526
9527 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9528
9529         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9530         export OBJECT_MODE=64
9531         configure --pdump --use-union-type=no
9532         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9533         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9534
9535         * miscplay.c (sndcnv8U_2mono):
9536         Avoid two uses of `++' in the same expression.
9537         Suppresses a GCC warning.
9538
9539 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9540
9541         Make sure future compilers don't miscompile alloc.c.
9542         * alloc.c:
9543         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9544         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9545
9546 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9547
9548         * dumper.c: A little post-pdump-rename comment fixup.
9549
9550 2001-01-09  Jerry James  <james@eecs.ku.edu>
9551
9552         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9553
9554 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9555
9556         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9557         script:
9558         #!/bin/sh
9559         replace_symbol () {
9560           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9561         }
9562
9563         replace_symbol pdump_wire_lists pdump_weak_object_chains
9564         replace_symbol pdump_wire_list dump_add_weak_object_chain
9565
9566         replace_symbol pdump_wires pdump_root_objects
9567         replace_symbol pdump_wire dump_add_root_object
9568
9569         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9570         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9571
9572         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9573         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9574         replace_symbol dumpstructinfo pdump_root_struct_ptr
9575         replace_symbol dumpstruct dump_add_root_struct_ptr
9576
9577         replace_symbol dumpopaque dump_add_opaque
9578         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9579         replace_symbol dumpopaqueinfos pdump_opaques
9580         replace_symbol dumpopaqueinfo pdump_opaque
9581
9582         replace_symbol nb_structdump nb_root_struct_ptrs
9583         replace_symbol nb_opaquedump nb_opaques
9584
9585         replace_symbol align_table pdump_align_table
9586         replace_symbol dump_header pdump_header
9587
9588         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9589         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9590
9591
9592 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9593
9594         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9595         optimizing bytecount_to_charcount().
9596
9597 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9598
9599         * config.h.in:
9600         (HAVE_DLFCN_H): Removed.
9601         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9602
9603 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9604
9605         Portable dumper maintainability improvements.
9606         * alloc.c (staticpro):
9607         * alloc.c (staticpro_nodump):
9608         * alloc.c (garbage_collect_1):
9609         * alloc.c (reinit_alloc_once_early):
9610         * alloc.c (init_alloc_once_early):
9611         * alloc.c: Move dumper functions to alloc.c.
9612         * dumper.c (pdump_backtrace):
9613         * dumper.c (pdump_dump_structs):
9614         * dumper.c (pdump_dump_opaques):
9615         * dumper.c (pdump_dump_rtables):
9616         * dumper.c (pdump_dump_wired):
9617         * dumper.c (pdump):
9618         * dumper.c (pdump_load_check):
9619         * dumper.c (pdump_load_finish):
9620         * dumper.c (pdump_file_unmap):
9621         * dumper.c (pdump_file_get):
9622         * dumper.c (pdump_resource_free):
9623         * dumper.c (pdump_resource_get):
9624         * dumper.c (pdump_file_free):
9625         * dumper.c (pdump_file_try):
9626         * dumper.c (pdump_load):
9627         Remove fixed size limits on staticpro(), staticpro_nodump(),
9628         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9629         Remove custom code for dumping lrecord_implementations_table - use
9630         dumpopaque instead.
9631         Remove (most of the) custom code for dumping staticpros - dump it
9632         like any other dynarr.
9633
9634         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9635         * dumper.c: Moved functions from alloc.c.
9636         * alloc.c (dumpstruct): Moved to dumper.c.
9637         * alloc.c (dumpopaque): Likewise.
9638         * alloc.c (pdump_wire): Likewise.
9639         * alloc.c (pdump_wire_list): Likewise.
9640
9641         * lisp.h (Dynarr_sizeof): New.
9642         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9643         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9644         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9645
9646         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9647         * lisp.h (dumpopaque): ditto.
9648         * lisp.h (pdump_wire): ditto.
9649         * lisp.h (pdump_wire_list): ditto.
9650
9651 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9652
9653         * make-src-depend (PrintPatternDeps):
9654         Use `sort' to make output independent of perl version.
9655
9656 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9657
9658         Port to Netbsd 1.5.
9659         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9660         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9661
9662 2001-01-03  Didier Verna  <didier@xemacs.org>
9663
9664         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9665         that `focus_frame' is alive before thinking of calling
9666         `redisplay_redraw_cursor' on it.
9667
9668 2001-01-08  Martin Buchholz <martin@xemacs.org>
9669
9670         * XEmacs 21.2.40 is released.
9671
9672 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9673
9674         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9675
9676 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9677
9678         * alloc.c (dbg_valmask): Make const.
9679         * alloc.c (dbg_typemask): Make const.
9680         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9681         * alloc.c (dbg_valbits): Make const.
9682         * alloc.c (dbg_gctypebits): Make const.
9683
9684 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9685
9686         * redisplay-x.c (x_bevel_area):
9687         redisplay.h (struct rune):
9688         Typo fixes in comments.
9689
9690 2001-01-05  Andy Piper  <andy@xemacs.org>
9691
9692         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9693         adjustment.
9694
9695         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9696
9697 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9698
9699         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9700
9701         * mule-ccl.c (stack_idx_of_map_multiple):
9702         Non const global data must not be initialized!
9703         Found by MIYASHITA Hisashi.
9704
9705 2001-01-02  Andy Piper  <andy@xemacs.org>
9706
9707         * frame.c (change_frame_size): make sure frame size is always
9708         marked as changed.
9709
9710         * glyphs.c (image_instance_layout): minor code reuse.
9711
9712         * window.c (Fcurrent_window_configuration): revert previous
9713         change.
9714
9715 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9716
9717         * glyphs.h:
9718         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9719
9720 2000-12-31  Andy Piper  <andy@xemacs.org>
9721
9722         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9723         when widget gets unmapped.
9724
9725         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9726         function. Make sure widgets losing focus don't just drop it.
9727         (handle_focus_event_1): record the widget with focus.
9728
9729 2000-12-31  Andy Piper  <andy@xemacs.org>
9730
9731         * window.c (allocate_window): use
9732         make_image_instance_cache_hash_table.
9733         (make_dummy_parent): ditto.
9734         (Fset_window_configuration): ditto.
9735
9736         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9737
9738         * glyphs.c (process_image_string_instantiator): use
9739         INSTANTIATOR_TYPE.
9740         (get_image_instantiator_governing_domain): ditto.
9741         (normalize_image_instantiator): ditto.
9742         (instantiate_image_instantiator): ditto.
9743         (make_image_instance_1): ditto.
9744         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9745         (instantiator_eq_equal): new function for use with instance hash
9746         tables.
9747         (instantiator_eq_hash): ditto.
9748         (make_image_instance_cache_hash_table): create a suitable hash
9749         table for storing image instances.
9750
9751         * elhash.h (hash_table_weakness): new internal weakness type
9752         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9753         declare new functions.
9754
9755         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9756         another weakness type for glyphs.
9757         (make_standard_lisp_hash_table): new function split out from
9758         make_general_lisp_hash_table.
9759         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9760         (hash_table_instantiate): ditto.
9761         (Fmake_hash_table): ditto.
9762
9763 2000-12-31  Martin Buchholz <martin@xemacs.org>
9764
9765         * XEmacs 21.2.39 is released.
9766
9767 2000-12-29  Andy Piper  <andy@xemacs.org>
9768
9769         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9770
9771         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9772         the frame has changed so that we pick up geometry changes such as
9773         menubar visibility.
9774
9775 2000-12-28  Andy Piper  <andy@xemacs.org>
9776
9777         * lastfile.c (my_ebss): make a char array so we can pad the
9778         bss. Fixes cygwin unexec.
9779
9780         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9781
9782 2000-12-26  Andy Piper  <andy@xemacs.org>
9783
9784         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9785         comments and try and be more precise about a non-/SIGIO world.
9786         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9787         SIGIO.
9788
9789         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9790         we don't normalize to zero width or height.
9791
9792 2000-12-24  Andy Piper  <andy@xemacs.org>
9793
9794         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9795
9796 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9797
9798         * s/sco5.h: SCO 5 has pty support.
9799
9800 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9801
9802         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9803         input-method-xlib.c contains whole contents of input-method-xfs.c,
9804         so we can use input-method-xlib.c's code for USE_XFONTSET
9805         using #ifdefs.
9806         * input-method-xfs.c: removed.
9807
9808 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9809
9810         * file-coding.h (enum coding_category_type): reorder enumerators to
9811         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9812         (now one greater than largest real coding_category_type enumerator).
9813         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9814         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9815         Fcoding_category_list, Fset_coding_priority_list,
9816         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9817         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9818
9819 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9820
9821         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9822         * redisplay-output.c (redisplay_output_window): Clear top of window
9823         when face is changed.
9824         * redisplay-x.c (x_redraw_exposed_window): Call
9825         redisplay_clear_top_of_window.
9826         * redisplay.h: Publish redisplay_clear_top_of_window.
9827
9828 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9829
9830         * buffer.c (Fkill_buffer): Map over all devices.
9831         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9832         (list_windows): New function.
9833         (list_all_windows): Ditto.
9834         (Freplace_buffer_in_windows): Use them.
9835
9836 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9837
9838         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9839         (Fopen_database): Use `db_create' instead of `db_open'.
9840         (syms_of_database): Initialize Qqueue.
9841
9842 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9843
9844         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9845         buffer_local_face_property.
9846         * buffer.h (struct buffer): New member buffer_local_face_property.
9847         * window.c (Fset_window_buffer):  Mark window's face as changed
9848         when buffer has buffer local face.
9849         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9850         * objects.c (color_after_change): Set buffer_local_face_property
9851         when locale of face specifier is buffer.
9852         * objects.c (font_after_change): Ditto.
9853         * objects.c (face_boolean_after_change): Ditto.
9854         * glyphs.c (image_after_change): Ditto.
9855
9856 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9857
9858         * nt.c (mswindows_fstat): Report file permissions, volume serial
9859         number, etc. Code adapted from FSF Emacs 20.7.
9860
9861 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9862
9863         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9864         of stat when we don't have symbolic links, to make sure
9865         mswindows_stat is called on mswindows.
9866
9867 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9868
9869         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9870
9871 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9872
9873         * doprnt.c (emacs_doprnt_1): More printing fixes.
9874         Make printing of numbers compatible with libc and FSF Emacs.
9875         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9876         Use the system printf to do most of the hard work of formatting,
9877         instead of doprnt_1().
9878         Calculate memory to allocate for format string.
9879         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9880         (doprnt_1): Cleaner code and documentation.
9881
9882 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9883
9884         * Makefile.in.in: Use the loop variable to install headers.
9885
9886 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9887
9888         * window.c (Fsplit_window): Don't invalidate face cache.
9889
9890 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9891
9892         * minibuf.c (Fall_completions): Undo the previous change
9893         which removed checking elements start with space.
9894
9895 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9896
9897         * mule-canna.c: Didier suppression.
9898
9899 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9900
9901         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9902         (warning suppression).  Add English comment translations.
9903
9904 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9905
9906         * unexelfsgi.c (unexec): Better test for mmap failure.
9907
9908 2000-12-05  Martin Buchholz <martin@xemacs.org>
9909
9910         * XEmacs 21.2.38 is released.
9911
9912 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9913
9914         * redisplay.c (bar-cursor): Make a user variable.
9915
9916         * symsinit.h: Add init_postgresql_from_environment.
9917
9918 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9919
9920         * regex.c: Convert to clean C.
9921
9922 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9923
9924         * realpath.c:
9925         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9926         initialization.
9927         (sys_readlink): renamed to system_readlink to avoid conflict with
9928         the other sys_readlink.
9929
9930 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9931
9932         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9933
9934 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9935
9936         * postgresql.c (init_postgresql_from_environment): new function.
9937         (vars_of_postgresql): Move code initializing Lisp variables out and
9938         into init_postgresql_from_environment.
9939         emacs.c (main_1): Call init_postgresql_from_environment if and only
9940         if running a dumped XEmacs.
9941
9942 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9943
9944         * buffer.c: Make find-file-compare-truenames default to true on
9945         windows.
9946
9947         * realpath.c (win32_abs_start):
9948         (cygwin_readlink):
9949         (win32_readlink): New functions.
9950         (xrealpath): Return really real filenames on windows.
9951
9952         * fileio.c (Ffile_truename): Make file-truename work on windows.
9953
9954 2000-11-29  Didier Verna  <didier@xemacs.org>
9955
9956         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9957         * faces.c (update_face_cachel_data): use it.
9958         * faces.c (add_face_cachel): use it. Complete background pixmap
9959         frobbing in face cache if `update_face_cachel_data' has not done so.
9960
9961 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9962
9963         * search.c (string_match_1): Don't set last_thing_searched
9964         when search failed.
9965
9966 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9967
9968         * buffer.c: Include casetab.h
9969         (common_init_complex_vars_of_buffer): Use new case-table object.
9970         * buffer.h: Include casetab.h
9971         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9972         (DOWNCASE_TABLE_OF): Ditto.
9973         * bufslots.h: Remove char-tables and add case-table.
9974         * casetab.c: Include casetab.h
9975         (CASE_TABLE_P): Removed.
9976         (mark_case_table): New function.
9977         (allocate_case_table): New function.
9978         (Fcase_table_p): Use new case-table.
9979         (case_table_char): New function.
9980         (Fget_case_table): Ditto.
9981         (Fput_case_table): Ditto.
9982         (Fput_case_table_pair): Ditto.
9983         (Fcopy_case_table): Ditto.
9984         (Fcurrent_case_table): Return case-table.
9985         (Fstandard_case_table): Return case-table.
9986         (Fset_case_table): Fix doc-string.
9987         (set_case_table): Use case-table
9988         (syms_of_casetab): DEFSUBR new functions.
9989         (complex_vars_of_casetab): Set up standard case-table.
9990         * casetab.h: New file.
9991         * editfns.c: Include casetab.h
9992         (Fcompare_buffer_substrings): Use case-table.
9993         * inline.c: Include casetab.h
9994         * lisp.h: Remove bogus extern.
9995         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9996         * search.c: Include casetab.h
9997         (TRANSLATE_ASCII): Removed.
9998         (TRANSLATE): Unconditionally translate character.
9999         (looking_at_1): Use case-table.
10000         (string_match_1): Ditto.
10001         (fast_string_match): Ditto.
10002         (search_command): Ditto.
10003         (search_buffer): Separate boyer_moore.  Check whether
10004         boyer_moore is possible.
10005         (simple_search): New function.
10006         (boyer_moore): Separated from search_buffer. Translate char.
10007
10008 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10009
10010         * regex.c (RE_TR_ASCII): Removed.
10011         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
10012         (PATFETCH): Call PATFETCH_RAW.
10013         (PATFETCH_RAW): Fetch Emchar.
10014         (PATUNFETCH): Decrement charptr.
10015         (GET_BUFFER_SPACE): Rename b to buf_end.
10016         (BUF_PUSH): Ditto.
10017         (BUF_PUSH_2): Ditto.
10018         (BUF_PUSH_3): Ditto.
10019         (EXTEND_BUFFER): Ditto.
10020         (SET_LIST_BIT): Ditto.
10021         (regex_compile): Ditto.  Translate non ASCII char.
10022         (compile_range): Ditto.
10023         (re_search_2): Ditto.
10024         (re_match_2_internal): Compare Emchar.
10025         (bcmp_translate): Ditto.
10026
10027 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
10028
10029         * lisp.h (basic char/int typedefs):  comment improvement.
10030
10031 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
10032
10033         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
10034         unstomp inhibit_site_lisp.  Improve comments.
10035
10036 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
10037
10038         * mule-charset.c (Fcharset_property):  improve type checking, comments.
10039
10040 2000-11-28  Andy Piper  <andy@xemacs.org>
10041
10042         * redisplay-output.c (redisplay_output_subwindow): make sure we do
10043         clipped display for windows in the gutter also.
10044         (redisplay_display_boxes_in_window_p): change semantics of return
10045         codes to be more intuitive.
10046
10047         * gutter.h: declare display_boxes_in_gutter_p.
10048
10049         * gutter.c (display_boxes_in_gutter_p): new function for
10050         redisplay.
10051
10052 2000-11-22  Andy Piper  <andy@xemacs.org>
10053
10054         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10055         autodetect domain.
10056
10057 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10058
10059         * callproc.c (Fold_call_process_internal):
10060         * gpm.c (Freceive_gpm_event):
10061         (tty_get_foreign_selection): Might be just warning supression.
10062         * fileio.c (Fwrite_region_internal):
10063         (Fset_visited_file_modtime):
10064         * keymap.c (event_matches_key_specifier_p):
10065         Initialize GCPROed variable.
10066
10067         * menubar-x.c (command_builder_find_menu_accelerator):
10068         Initialize before use.
10069
10070 2000-11-23  Andy Piper  <andy@xemacs.org>
10071
10072         * unexcw.c (unexec): make the resulting executable executable.
10073
10074 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10075
10076         * doc.c (get_doc_string):
10077         Use size_t, not int, for result of XSTRING_LENGTH.
10078
10079         * cmds.c (Fdelete_char):
10080         * cmds.c (Fpoint_at_eol):
10081         * cmds.c (Fself_insert_command):
10082         Use EMACS_INT, not int, for result of XINT.
10083         Someday, someone will want to insert more than 2**31 identical characters.
10084
10085         * cmds.c (Fdelete_char):
10086         * cmds.c (Fdelete_backward_char):
10087         * syntax.c (Fforward_word):
10088         * syntax.c (Fforward_comment):
10089         Make COUNT argument optional, for consistency with forward-char et al.
10090
10091 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10092
10093         * lisp.h:
10094         * print.c (long_to_string):
10095         Return a useful value: the pointer at end of data written.
10096
10097         * doprnt.c:
10098         Use `static const char * const' for constant strings.
10099         (union printf_arg): Delete `i', `ui' members.
10100         (get_doprnt_args):
10101         (emacs_doprnt_1):
10102         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10103         Do all printf-ing via the `l' specifier.
10104         Use EMACS_INT instead of int.
10105         Optimize.
10106
10107 2000-11-20  Didier Verna  <didier@xemacs.org>
10108
10109         * faces.c (update_face_cachel_data): don't frob the background
10110         pixmap when the window is being created. The face is needed but
10111         does not exist yet.
10112
10113 2000-11-20  Andy Piper  <andy@xemacs.org>
10114
10115         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10116         messing with a debug environment.
10117
10118 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10119
10120         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10121
10122 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10123
10124         * casetab.c (Fcase_table_p): Fix compile error and crash.
10125
10126 2000-11-18  Philip Aston  <philipa@mail.com>
10127
10128         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10129
10130 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10131
10132         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10133         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10134
10135 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10136
10137         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10138         * unexelf.c: Use HAVE_ELF_H.
10139         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10140         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10141         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10142         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10143         for testing.
10144         So this is an unexelfsgi.c from a different line of development.
10145
10146 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10147
10148         * regex.c (RE_TR_ASCII): New function.
10149         (RE_TRANSLATE): Call it.
10150
10151 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10152
10153         * buffer.h (TRT_TABLE_OF): Remove assert.
10154         (IN_TRT_TABLE_DOMAIN): Removed.
10155
10156 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10157
10158         * free-hook.c (log_gcpro):
10159         (show_gcprohist): Add support for GCPRO5.
10160
10161 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10162
10163         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10164
10165 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10166
10167         * symeval.h: Declare flush_all_buffer_local_cache.
10168
10169         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10170         (flush_buffer_local_cache): Added.
10171         (flush_all_buffer_local_cache): Added.
10172
10173         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10174
10175         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10176         (pdump_dump_data): Ditto.
10177         (pdump_reloc_one): Ditto.
10178         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10179         before dumping.
10180
10181
10182 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10183
10184         * buffer.c: Remove if 0'ed entry.
10185         * buffer.h: Rewrite TRT to use char-table.
10186         * bufslots.h: Remove mirror tables.
10187         * casetab.c: Remove mirror tables.
10188         (CASE_TABLE_P): New macro.
10189         (Fcase_table_p): Element of a case table is string or char-table.
10190         (make_mirror_trt_table): Removed.
10191         (set_case_table): Setup char-table from strings for backward
10192         compatibility.
10193         * dired.c (Fdirectory_files):
10194         * dired-msw.c: (mswindows_get_files):
10195         * lisp.h: Change prototype of re_pattern_buffer.
10196         * regex.c: (RE_TRANSLATE): New macro.
10197         (TRANSLATE_P): Ditto.
10198         Change translate to type RE_TRANSLATE_TYPE.
10199         * regex.h: Define RE_TRANSLATE_TYPE
10200         * search.c (TRANSLATE): New macro.
10201         (TRANSLATE_ASCII): New macro.
10202         Translate table is changed to Lisp_Object.
10203         (signal_failure): Inhibit return.
10204
10205 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10206
10207         * device-msw.c:
10208         * eldap.c:
10209         * event-Xt.c:
10210         * event-stream.c:
10211         * print.c:
10212         Do UNGCPRO before return.
10213
10214 2000-11-14  Martin Buchholz <martin@xemacs.org>
10215
10216         * XEmacs 21.2.37 is released.
10217
10218 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10219
10220         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10221         Add comments about discarded return value.
10222
10223 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10224
10225         * callint.c:
10226         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10227
10228 2000-10-27  Andy Piper  <andy@xemacs.org>
10229
10230         * gutter.c (Fset_default_gutter_position): default left and right
10231         gutters to visible.
10232         (calculate_gutter_size): calculate resonable heuristic for left
10233         and right gutter sizes.
10234         (specifier_vars_of_gutter): change left and right gutter sizes to
10235         autodetect.
10236         (calculate_gutter_size_from_display_lines): new function.
10237         (output_gutter): check for resizing on left and right gutters.
10238         (clear_gutter): don't special case top and left gutters.
10239         (specifier_vars_of_gutter): use new signature for
10240         set_specifier_caching.
10241
10242         * glyphs-x.c (x_redisplay_widget): spelling fix.
10243         * glyphs.c (specifier_vars_of_glyphs):
10244         * menubar.c (specifier_vars_of_menubar):
10245         * redisplay.c (specifier_vars_of_redisplay):
10246         * toolbar.c (specifier_vars_of_toolbar):
10247         * window.c (specifier_vars_of_window):
10248         * scrollbar.c (specifier_vars_of_scrollbar):
10249         (complex_vars_of_scrollbar): use new signature for
10250         set_specifier_caching.
10251
10252         * specifier.c (set_specifier_caching): include recompute flag.
10253         (recompute_one_cached_specifier_in_window): always recompute if
10254         flag set.
10255         (recompute_one_cached_specifier_in_frame): ditto.
10256
10257         * specifier.h (struct specifier_caching): add recompute flag.
10258
10259 2000-10-24  Andy Piper  <andy@xemacs.org>
10260
10261         * unexcw.c (copy_executable_and_dump_data_section): add new
10262         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10263         5.0 happy.
10264
10265 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10266
10267         * console-x.h (x_device): New member modifier_release_time.
10268         * event-Xt.c (x_handle_sticky_modifiers):
10269         Bound interval modifier keys are sticky.
10270         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10271         * events.h: extern it.
10272
10273 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10274
10275         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10276
10277 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10278
10279         * event-stream.c (execute_command_event): Preserve current_events
10280         and the like when event is misc-user-event.
10281         Inhibit quit during the call to maybe_echo_keys.
10282
10283 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10284
10285         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10286         symlink when buffer is killed.
10287         (inhibit_clash_detection): New variable.
10288
10289 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10290
10291         * console.c (Fset_input_method): Trigger redisplay on tty.
10292
10293 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10294
10295         * process.c (Fprocess_status): Revert to previous behavior:
10296         (process-status "nosuchprocess") ==> nil
10297
10298 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10299
10300         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10301         Work around another GCC 2.95.2 optimizer bug.
10302
10303 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10304
10305         * process.c (Fget_process): Use LIST_LOOP_2.
10306         (kill_buffer_processes): Use LIST_LOOP_2.
10307
10308         * minibuf.c (Fall_completions):
10309         Delete old non-functional code for FSF fourth argument.
10310
10311         * frame.c (frame_matches_frame_spec):
10312         Renamed from `frame_matches_frametype'.  Update all callers.
10313         (device_matches_device_spec):
10314         Renamed from 'device_matches_console_spec'.  Update all callers.
10315
10316         * doc.c (Fsubstitute_command_keys):
10317         Remove buffer overflow crash.  Small code cleanups.
10318
10319         * casetab.c (check_case_table): Simpler code.
10320
10321         * window.c (Freplace_buffer_in_windows):
10322         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10323         (and similar implementation) as Fdelete_windows_on.
10324         Update all callers.
10325
10326         * alloc.c (Fmake_list):
10327         * alloc.c (make_vector):
10328         * alloc.c (Fmake_vector):
10329         * alloc.c (make_bit_vector):
10330         * alloc.c (Fmake_bit_vector):
10331         * alloc.c (Fbit_vector):
10332         * alloc.c (Fmake_string):
10333         * alloc.c (Fpurecopy):
10334         * alloc.c (Fmemory_limit):
10335         * buffer.c:
10336         * buffer.c (Fget_buffer):
10337         * buffer.c (Fkill_buffer):
10338         * buffer.c (complex_vars_of_buffer):
10339         * bytecode.c (Fcompiled_function_stack_depth):
10340         * callint.c (Fprefix_numeric_value):
10341         * event-stream.c:
10342         * event-stream.c (Fread_key_sequence):
10343         * casetab.c:
10344         * casetab.c (Fcase_table_p):
10345         * casetab.c (check_case_table):
10346         * casetab.c (Fset_case_table):
10347         * casetab.c (Fset_standard_case_table):
10348         * chartab.c:
10349         * chartab.c (Fchar_table_type):
10350         * chartab.c (Freset_char_table):
10351         * chartab.c (Fget_char_table):
10352         * chartab.c (Fget_range_char_table):
10353         * chartab.c (Fput_char_table):
10354         * chartab.c (Fmap_char_table):
10355         * chartab.c (Fcategory_table_p):
10356         * chartab.c (Fcheck_category_at):
10357         * chartab.c (Fchar_in_category_p):
10358         * chartab.c (Fcategory_table):
10359         * chartab.c (Fcopy_category_table):
10360         * chartab.c (Fset_category_table):
10361         * chartab.c (Fcategory_designator_p):
10362         * chartab.c (Fcategory_table_value_p):
10363         * cmds.c (Fdelete_char):
10364         * cmds.c (Fdelete_backward_char):
10365         * cmds.c (Fself_insert_command):
10366         * cmds.c (Fself_insert_internal):
10367         * console.c (Fvalid_console_type_p):
10368         * console.c (Fcdfw_console):
10369         * console.c (Fconsole_type):
10370         * console.c (Fconsole_name):
10371         * console.c (Fconsole_device_list):
10372         * console.c (Fconsole_on_window_system_p):
10373         * data.c:
10374         * data.c (Feq):
10375         * data.c (Fold_eq):
10376         * data.c (Fsubr_interactive):
10377         * data.c (Fchar_to_int):
10378         * data.c (Fint_to_char):
10379         * data.c (Fsetcar):
10380         * data.c (Fsetcdr):
10381         * data.c (Fnumber_to_string):
10382         * data.c (Fstring_to_number):
10383         * data.c (Frem):
10384         * database.c (mark_database):
10385         * database.c (finalize_database):
10386         * database.c (Fdatabase_live_p):
10387         * database.c (Fdatabasep):
10388         * device-x.c (Fx_get_resource):
10389         * device.c (Fdfw_device):
10390         * dired.c:
10391         * dired.c (Ffile_name_completion):
10392         * dired.c (Ffile_name_all_completions):
10393         * dired.c (Fuser_name_completion):
10394         * dired.c (Fuser_name_completion_1):
10395         * dired.c (Fuser_name_all_completions):
10396         * doc.c (Fdocumentation):
10397         * doc.c (Fdocumentation_property):
10398         * doc.c (Fsubstitute_command_keys):
10399         * editfns.c:
10400         * editfns.c (Fchar_to_string):
10401         * editfns.c (Fstring_to_char):
10402         * editfns.c (Ftemp_directory):
10403         * editfns.c (Finsert_char):
10404         * editfns.c (Fbuffer_substring_no_properties):
10405         * editfns.c (Fnarrow_to_region):
10406         * editfns.c (Fchar_equal):
10407         * editfns.c (Fchar_Equal):
10408         * editfns.c (Ftranspose_regions):
10409         * emacs.c (Fdump_emacs):
10410         * eval.c (Fthrow):
10411         * eval.c (Fcommand_execute):
10412         * eval.c (Fautoload):
10413         * eval.c (Fbacktrace):
10414         * eval.c (Fbacktrace_frame):
10415         * events.c:
10416         * events.c (Fcopy_event):
10417         * events.c (Fcharacter_to_event):
10418         * events.c (Fevent_button):
10419         * events.c (Fevent_process):
10420         * extents.c:
10421         * extents.c (Fnext_extent_change):
10422         * extents.c (Fextent_property):
10423         * faces.c (Ffacep):
10424         * faces.c (Fmake_face):
10425         * file-coding.c:
10426         * file-coding.c (Fencode_shift_jis_char):
10427         * file-coding.c (Fencode_big5_char):
10428         * fileio.c (Ffile_name_directory):
10429         * fileio.c (Ffile_name_nondirectory):
10430         * fileio.c (Ffile_name_as_directory):
10431         * fileio.c (Fdirectory_file_name):
10432         * fileio.c (Ffile_truename):
10433         * fileio.c (Fsubstitute_in_file_name):
10434         * fileio.c (Ffile_modes):
10435         * fileio.c (Fset_file_modes):
10436         * fileio.c (Fset_default_file_modes):
10437         * fileio.c (Fverify_visited_file_modtime):
10438         * floatfns.c (Facos):
10439         * floatfns.c (Fasin):
10440         * floatfns.c (Fatan):
10441         * floatfns.c (Fcos):
10442         * floatfns.c (Fsin):
10443         * floatfns.c (Ftan):
10444         * floatfns.c (Fbessel_j0):
10445         * floatfns.c (Fbessel_j1):
10446         * floatfns.c (Fbessel_jn):
10447         * floatfns.c (Fbessel_y0):
10448         * floatfns.c (Fbessel_y1):
10449         * floatfns.c (Fbessel_yn):
10450         * floatfns.c (Ferf):
10451         * floatfns.c (Ferfc):
10452         * floatfns.c (Flog_gamma):
10453         * floatfns.c (Fexp):
10454         * floatfns.c (Fexpt):
10455         * floatfns.c (Flog):
10456         * floatfns.c (Flog10):
10457         * floatfns.c (Fsqrt):
10458         * floatfns.c (Fcube_root):
10459         * floatfns.c (Facosh):
10460         * floatfns.c (Fasinh):
10461         * floatfns.c (Fatanh):
10462         * floatfns.c (Fcosh):
10463         * floatfns.c (Fsinh):
10464         * floatfns.c (Ftanh):
10465         * floatfns.c (Fabs):
10466         * floatfns.c (Ffloat):
10467         * floatfns.c (Flogb):
10468         * floatfns.c (Fceiling):
10469         * floatfns.c (Ffloor):
10470         * floatfns.c (Fround):
10471         * floatfns.c (Ftruncate):
10472         * floatfns.c (Ffceiling):
10473         * floatfns.c (Fffloor):
10474         * floatfns.c (Ffround):
10475         * floatfns.c (Fftruncate):
10476         * fns.c (Fstring_equal):
10477         * fns.c (Fstring_lessp):
10478         * fns.c (concat2):
10479         * fns.c (concat3):
10480         * fns.c (vconcat2):
10481         * fns.c (vconcat3):
10482         * fns.c (Fsubstring):
10483         * fns.c (Fassoc):
10484         * fns.c (Fold_assoc):
10485         * fns.c (assoc_no_quit):
10486         * fns.c (Fassq):
10487         * fns.c (Fold_assq):
10488         * fns.c (assq_no_quit):
10489         * fns.c (Frassoc):
10490         * fns.c (Fold_rassoc):
10491         * fns.c (Frassq):
10492         * fns.c (Fold_rassq):
10493         * fns.c (rassq_no_quit):
10494         * fns.c (Fremassoc):
10495         * fns.c (remassoc_no_quit):
10496         * fns.c (Fremassq):
10497         * fns.c (remassq_no_quit):
10498         * fns.c (Fremrassoc):
10499         * fns.c (Fremrassq):
10500         * fns.c (remrassq_no_quit):
10501         * fns.c (Fsort):
10502         * fns.c (Fplist_get):
10503         * fns.c (Fplist_put):
10504         * fns.c (Fplist_remprop):
10505         * fns.c (Fplist_member):
10506         * fns.c (Flax_plist_get):
10507         * fns.c (Flax_plist_put):
10508         * fns.c (Flax_plist_remprop):
10509         * fns.c (Flax_plist_member):
10510         * fns.c (Fequal):
10511         * fns.c (Fold_equal):
10512         * fns.c (Frequire):
10513         * fns.c (Fbase64_encode_region):
10514         * fns.c (Fbase64_encode_string):
10515         * fns.c (Fbase64_decode_region):
10516         * frame.c:
10517         * frame.c (frame_matches_frame_spec):
10518         * frame.c (device_matches_device_spec):
10519         * frame.c (next_frame):
10520         * frame.c (previous_frame):
10521         * frame.c (Fnext_frame):
10522         * frame.c (Fprevious_frame):
10523         * frame.c (Fframe_property):
10524         * frame.c (Fset_frame_height):
10525         * frame.c (Fset_frame_size):
10526         * frame.h:
10527         * glyphs.c:
10528         * glyphs.c (if):
10529         * glyphs.c (decode_error_behavior_flag):
10530         * glyphs.c (Fmake_image_instance):
10531         * indent.c (Findent_to):
10532         * intl.c (Fignore_defer_gettext):
10533         * keymap.c (Fkeymapp):
10534         * keymap.c (Flookup_key):
10535         * lread.c:
10536         * lread.c (Fload_internal):
10537         * lread.c (Feval_buffer):
10538         * lread.c (Feval_region):
10539         * macros.c (Fexecute_kbd_macro):
10540         * marker.c (set_marker_internal):
10541         * marker.c (Fset_marker):
10542         * marker.c (set_marker_restricted):
10543         * marker.c (Fcopy_marker):
10544         * marker.c (noseeum_copy_marker):
10545         * menubar.c:
10546         * menubar.c (Fpopup_menu):
10547         * minibuf.c:
10548         * mule-charset.c (Fcharset_name):
10549         * mule-charset.c (Fchar_charset):
10550         * mule-charset.c (Fchar_octet):
10551         * mule-charset.c (Fsplit_char):
10552         * mule-wnnfns.c (Fwnn_open):
10553         * mule-wnnfns.c (Fwnn_dict_comment):
10554         * mule-wnnfns.c (Fwnn_quit_henkan):
10555         * mule-wnnfns.c (Fwnn_word_toroku):
10556         * mule-wnnfns.c (Fwnn_word_sakujo):
10557         * mule-wnnfns.c (Fwnn_word_use):
10558         * mule-wnnfns.c (Fwnn_hindo_set):
10559         * objects.c:
10560         * objects.c (Fmake_color_instance):
10561         * objects.c (Fmake_font_instance):
10562         * print.c (Fwrite_char):
10563         * process.c:
10564         * process.c (mark_process):
10565         * process.c (print_process):
10566         * process.c (get_process_from_usid):
10567         * process.c (Fprocessp):
10568         * process.c (Fprocess_live_p):
10569         * process.c (Fget_process):
10570         * process.c (Fget_buffer_process):
10571         * process.c (get_process):
10572         * process.c (Fprocess_id):
10573         * process.c (Fprocess_name):
10574         * process.c (Fprocess_command):
10575         * process.c (init_process_io_handles):
10576         * process.c (start_process_unwind):
10577         * process.c (Fstart_process_internal):
10578         * process.c (Fopen_multicast_group_internal):
10579         * process.c (Fset_process_window_size):
10580         * process.c (read_process_output):
10581         * process.c (send_process):
10582         * process.c (Fprocess_tty_name):
10583         * process.c (Fset_process_buffer):
10584         * process.c (Fprocess_buffer):
10585         * process.c (Fprocess_mark):
10586         * process.c (set_process_filter):
10587         * process.c (Fset_process_filter):
10588         * process.c (Fprocess_filter):
10589         * process.c (Fprocess_send_region):
10590         * process.c (Fprocess_send_string):
10591         * process.c (exec_sentinel):
10592         * process.c (Fset_process_sentinel):
10593         * process.c (Fprocess_sentinel):
10594         * process.c (status_notify):
10595         * process.c (Fprocess_status):
10596         * process.c (Fprocess_exit_status):
10597         * process.c (process_send_signal):
10598         * process.c (Fprocess_send_eof):
10599         * process.c (deactivate_process):
10600         * process.c (remove_process):
10601         * process.c (Fdelete_process):
10602         * process.c (kill_buffer_processes):
10603         * process.c (Fprocess_kill_without_query):
10604         * process.c (Fprocess_kill_without_query_p):
10605         * rangetab.c:
10606         * rangetab.c (Fget_range_table):
10607         * rangetab.c (Fput_range_table):
10608         * rangetab.c (Fremove_range_table):
10609         * rangetab.c (Fclear_range_table):
10610         * search.c:
10611         * search.c (Fskip_chars_forward):
10612         * search.c (Fskip_chars_backward):
10613         * search.c (Fskip_syntax_forward):
10614         * search.c (Fskip_syntax_backward):
10615         * search.c (search_command):
10616         * search.c (Freplace_match):
10617         * search.c (Fregexp_quote):
10618         * select.c (Fown_selection_internal):
10619         * select.c (Fselection_owner_p):
10620         * select.c (Fselection_exists_p):
10621         * select.c (Fget_selection_internal):
10622         * specifier.c:
10623         * symbols.c:
10624         * symbols.c (Fintern):
10625         * symbols.c (Fintern_soft):
10626         * symbols.c (Funintern):
10627         * symbols.c (Fapropos_internal):
10628         * symbols.c (Fset_default):
10629         * syntax.c:
10630         * syntax.c (Fsyntax_table_p):
10631         * syntax.c (Fcopy_syntax_table):
10632         * syntax.c (Fset_syntax_table):
10633         * syntax.c (Fchar_syntax):
10634         * syntax.c (syntax_match):
10635         * syntax.c (Fmatching_paren):
10636         * syntax.c (Fforward_word):
10637         * syntax.c (scan_lists):
10638         * syntax.c (Fscan_lists):
10639         * syntax.c (Fscan_sexps):
10640         * syntax.c (Fparse_partial_sexp):
10641         * toolbar.c (Fcheck_toolbar_button_syntax):
10642         * tooltalk.doc:
10643         * window.c:
10644         * window.c (Fwindowp):
10645         * window.c (Fwindow_live_p):
10646         * window.c (Fwindow_point):
10647         * window.c (Fdelete_window):
10648         * window.c (Fnext_window):
10649         * window.c (Fprevious_window):
10650         * window.c (Fother_window):
10651         * window.c (window_loop):
10652         * window.c (Fget_lru_window):
10653         * window.c (Fsplit_window):
10654         * window.c (Fenlarge_window):
10655         * window.c (Fenlarge_window_pixels):
10656         * window.c (Fshrink_window):
10657         * window.c (Fshrink_window_pixels):
10658         * window.c (change_window_height):
10659         * window.c (Fwindow_configuration_p):
10660         * window.c (Fcurrent_window_configuration):
10661         * window.h:
10662         * casefiddle.c (casify_object):
10663         * casefiddle.c (Fupcase):
10664         * casefiddle.c (Fdowncase):
10665         * casefiddle.c (Fcapitalize):
10666         * casefiddle.c (Fupcase_initials):
10667         * casefiddle.c (casify_region_internal):
10668         * casefiddle.c (casify_region):
10669         * casefiddle.c (Fupcase_region):
10670         * casefiddle.c (Fdowncase_region):
10671         * casefiddle.c (Fcapitalize_region):
10672         * casefiddle.c (Fupcase_initials_region):
10673         * casefiddle.c (Fupcase_word):
10674         * casefiddle.c (Fdowncase_word):
10675         * casefiddle.c (Fcapitalize_word):
10676         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10677         Replace 0 with '\0' when working with bytes.
10678         Replace initial "(" with "\(" in docstrings.
10679
10680 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10681
10682         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10683
10684         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10685
10686 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10687
10688         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10689
10690 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10691
10692         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10693         correctly.
10694
10695 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10696
10697         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10698         (inhibit_auto_save_session): New variable.
10699         (vars_of_fileio): Declare and initialize them.
10700         * fileio.c (Fdo_auto_save): Don't create session file if
10701         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10702
10703 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10704
10705         * sgiplay.c (play_internal): C++ compilability.
10706         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10707         * callproc.c (Fold_call_process_internal):
10708         Remove unused vars `env', `first'.
10709         * scrollbar.c (update_scrollbar_instance):
10710         #### unused var `current_window'.
10711         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10712         etc. within #ifdef NOT_YET.
10713         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10714         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10715         * specifier.c (specifier_instance):
10716         #### unused var `tag'.
10717         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10718
10719 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10720
10721         * fns.c (Fbutlast):
10722         * fns.c (list_sort):
10723         * fns.c (Ffillarray):
10724         * fns.c (bytecode_nconc2):
10725         * fns.c (Fnconc):
10726         * fns.c (mapcar1):
10727         * fns.c (Fmapconcat):
10728         Be pedantically 64-bit correct.  For the time when someone will
10729         want to have a list with length > 2**32.
10730
10731         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10732         Work around MIPSpro compiler bug.
10733
10734         * process-unix.c (unix_kill_child_process): Add snarky comment.
10735         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10736
10737         * config.h.in: Oops, _getpt ==> _getpty
10738
10739 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10740
10741         * config.h.in:
10742         * regex.c:
10743         Use void*, not char*, as return type of alloca().
10744
10745         * alloc.c (free_marker): Side effect inside assert expression!
10746
10747 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10748
10749         * mule-charset.c (Fset_charset_ccl_program): To check
10750         if the given ccl program is valid, use setup_ccl_program()
10751         instead of CHECK_VECTOR().
10752         (Fmake_charset): Likewise.
10753
10754 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10755
10756         * faces.c (get_extent_fragment_face_cache_index):
10757         Fix cachel.merged_faces memory leak.
10758
10759 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10760
10761         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10762         Reset MSB of octets obtained by DECODE_SJIS
10763         because of the incompatibility with Emacs.
10764         (ccl_driver)<CCL_ENCODE_SJIS>:
10765         Set MSB of octets before passing them to
10766         ENCODE_SJIS because of the incompatibility
10767         with Emacs.
10768
10769 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10770
10771         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10772         (DECLARE_LRECORD): Undo the last change.
10773         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10774
10775 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10776
10777         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10778         the implementation to lrecord_implementations_table.
10779
10780 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10781
10782         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10783         initial value of `lrecord_type_##c_name' and
10784         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10785         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10786         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10787         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10788         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10789
10790 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10791
10792         * miscplay.c (sndcnv8S_2mono):
10793         (sndcnv2monounsigned):
10794         (sndcnvULaw_2linear):
10795         (sndcnv16swap):
10796         Remove implementation-defined behavior.
10797
10798 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10799
10800         * input-method-xlib.c: Warning suppression.
10801
10802 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10803
10804         * mule-ccl.c: Sync up with Emacs 21.0.90.
10805         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10806         Do nothing.
10807         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10808         Likewise.
10809         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10810         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10811         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10812         leading char belongs to official 2-dimensional charset.
10813         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10814         write the given character as is.  Otherwise,
10815         if it is a multibyte char, convert it by
10816         non_ascii_set_charptr_emchar, then write it.
10817         (CCL_WRITE_STRING): Likewise.
10818         (ccl_get_compiled_code): New function.
10819         (setup_ccl_program): When ccl_prog is invalid,
10820         return -1.
10821         (Fregister_code_conversion_map): New function.
10822         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10823
10824         * mule-ccl.h: Sync up with Emacs 21.0.90.
10825         (Fregister_ccl_program): export it.
10826
10827         * redisplay-msw.c (separate_textual_runs):
10828         If ccl program is not valid, don't do ccl conversion.
10829
10830         * redisplay-x.c (separate_textual_runs): Ditto.
10831
10832         * file-coding.c (Fmake_coding_system):
10833         When type is ccl and value is vector, register it
10834         with a proper symbol.  And checks whether the
10835         given ccl program is valid.
10836         (mule_decode): When calling ccl_driver, if src indicates
10837         NULL pointer, set an empty string instead.
10838         (mule_encode): Likewise.
10839
10840 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10841
10842         The following large batch of changes gets us back to a state of
10843         C++ compilability.  Extbyte is now a char, which means that
10844         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10845
10846         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10847
10848         * sound.c (Fplay_sound): Type correctness.
10849
10850         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10851         (x_get_window_property): Type correctness.
10852         (receive_incremental_selection): unsigned char ==> Extbyte
10853         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10854         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10855         (Fx_store_cutbuffer_internal): Type correctness.
10856
10857         * process-unix.c (try_to_initialize_subtty): Type correctness.
10858
10859         * objects-x.c (x_print_color_instance): Type correctness.
10860         (x_print_font_instance): Type correctness.
10861         (x_list_fonts): SExtbyte ==> Extbyte.
10862         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10863         (x_find_charset_font): SExtbyte ==> Extbyte.
10864         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10865         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10866         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10867         Use bufbyte_strcmp.
10868
10869         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10870         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10871         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10872         (BYTE_C0_P): Use bit ops for char-signedness safety.
10873         (BYTE_C1_P): Use bit ops for char-signedness safety.
10874         (CHARSET_BY_LEADING_BYTE):
10875         (CHARSET_BY_ATTRIBUTES):
10876         Always use inline function.
10877         Use type_checking_assert.
10878         Hide chlook.
10879
10880         * mule-charset.c (non_ascii_charptr_copy_char):
10881         Modify to work with both ASCII and non-ASCII characters.
10882         Improve docs and variable names.
10883         Replace over-clever fall-through switch with a simple loop.
10884         (Lstream_get_emchar_1):
10885         Replace over-clever fall-through switch with a simple loop.
10886
10887         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10888         Warning suppression.
10889
10890         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10891         the return value of Lstream_getc, which could be EOF as well.
10892
10893         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10894
10895         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10896         APIs can be used on Extbytes without casts.  Risky!
10897         (SExtbyte): Remove.
10898         (UExtbyte): Remove.
10899
10900         * input-method-xlib.c (XIM_init_device):
10901         Use Xlib.h instead of IntrinsicP.h.
10902         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10903         which will break in X11R7.
10904         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10905         to call XRegisterIMInstantiateCallback with correct types.
10906
10907         * gui-x.c (button_item_to_widget_value): Type correctness.
10908
10909         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10910
10911         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10912         (xbm_instantiate_1): Type correctness.
10913         (BUILD_GLYPH_INST):  Type correctness.
10914
10915         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10916
10917         * file-coding.c:
10918         (decode_coding_sjis):
10919         (decode_coding_big5):
10920         (decode_coding_ucs4):
10921         (decode_coding_utf8):
10922         (decode_coding_iso2022):
10923         (decode_coding_no_conversion):
10924         Make all decoding functions take an Extbyte * arg.
10925         (encode_coding_sjis):
10926         (encode_coding_big5):
10927         (encode_coding_ucs4):
10928         (encode_coding_utf8):
10929         (encode_coding_iso2022):
10930         (encode_coding_no_conversion):
10931         Make all encoding functions take a Bufbyte * arg.
10932         Use size_t instead of unsigned int for memory sizes.
10933         Only cast to unsigned char whenever dereferencing Extbyte *.
10934
10935         * doc.c (unparesseuxify_doc_string): Type correctness.
10936
10937         * console-x.c (split_up_display_spec):
10938         Rewrite without using details of internal string representation.
10939         (x_semi_canonicalize_device_connection): Type correctness.
10940
10941         * config.h.in:
10942         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10943         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10944         (HAVE_XFREE386): Removed.
10945
10946         * buffer.h (DEC_CHARPTR): `const' correctness.
10947         (bufbyte_strcmp): New.
10948         (bufbyte_memcmp): New.
10949
10950         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10951
10952         * buffer.h (XCHAR_OR_CHAR_INT):
10953         Always use inline function.
10954         Remove redundant type checking assert() - XINT will abort quite nicely.
10955
10956 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10957
10958         * search.c (Freplace_match): Set newtext to an empty string.
10959
10960 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10961
10962         * s/decosf1-3.h: Remove #include of stropts.h
10963         * s/ptx.h: Remove #include of stropts.h
10964         * s/usg5-4.h: Remove #include of stropts.h
10965         * sysproc.h:
10966         * config.h.in:
10967         Use stropts.h, not sys/stropts.h.
10968         Use strtio.h, not sys/strtio.h.
10969
10970 2000-10-04  Martin Buchholz <martin@xemacs.org>
10971
10972         * XEmacs 21.2.36 is released.
10973
10974 2000-09-21  Andy Piper  <andy@xemacs.org>
10975
10976         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10977         changes still involve copying the widget tree.
10978         (update_widget_face): make sure a change is register in the widget
10979         tree. Call update_tab_widget_face appropriately.
10980         (update_tab_widget_face): ditto.
10981         (x_tab_control_redisplay): make sure non-structural changes still
10982         involve copying the widget tree.
10983
10984 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10985
10986         * lread.c (locate_file): Check the path element is non-nil.
10987
10988 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10989
10990         * lisp.h: Warning suppression for SCO compilers.
10991
10992         * redisplay-tty.c (reset_tty_modes): Fix crash.
10993         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10994
10995 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10996
10997         Big signal/process handling overhaul.  Bugs fixed:
10998         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10999         M-x comint-kill-subjob should work for both values nil and t of
11000         process-connection-type. It was broken on most platforms.
11001         Testing on Irix and Cygwin still needed.  Other plaforms tested.
11002         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
11003         * process-unix.c: Signal/Process handling overhaul.
11004         (pty_name): make 64 bytes, as `expect' does, for paranoia.
11005         (allocate_pty): Use all available modern methods of allocating
11006         ptys, falling back to old style BSD allocation as a last resort.
11007         Use allegedly more secure Unix98 pty allocation by default.
11008         (allocate_pty_the_old_fashioned_way): New. the last resort.
11009         (unix_create_process): Push ptem, ldterm, ttcompat where
11010         available.  Autoconfiscate.
11011         (try_to_initialize_subtty): New.
11012         (unix_kill_child_process): Proper signal handling for ptys on most
11013         platforms, using special knowledge of AIX, BSD, etc...
11014         (unix_create_process): Always disconnect_controlling_terminal() for
11015         subprocesses, whether using ptys or not.
11016         * process.h: Remove old getpt-dependent PTY code.
11017         * process.c (Fprocess_send_signal): New, obvious generic function.
11018         (decode_signal): New.
11019         (Finterrupt_process):
11020         (Fkill_process):
11021         (Fquit_process):
11022         (Fstop_process):
11023         (Fcontinue_process):
11024         (Fsignal_process): Use decode_signal.
11025         (process_send_signal):
11026         Many docstring corrections.
11027         Allow any signal to be sent to a process object.
11028         * config.h.in: Add symbols for big signal/process overhaul.
11029         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11030         * sysproc.h: Include process-related headers, where available:
11031         sys/stropts.h sys/strtio.h pty.h libutil.h
11032         * s/irix4-0.h:
11033         * s/irix5-0.h:
11034         * s/cygwin32.h:
11035         * s/gnu.h:
11036         * s/linux.h:
11037         * s/hpux.h:
11038         * s/aix3-1.h:
11039         Remove old S&M pty stuff.
11040         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11041         * systty.h: Simplify cpp hackery, improve comments.
11042         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11043
11044         * editfns.c (Fformat_time_string):
11045         Be a little more paranoid with the return value of ctime.
11046
11047         * fileio.c (check_executable):
11048         (check_writable):
11049         Use symbolic constants X_OK, W_OK.
11050
11051         * console-x.c (split_up_display_spec): Fix a warning.
11052
11053 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11054
11055         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11056         * ntproc.c (sys_spawnve): make_string ==> build_string
11057         Small clarity improvements.
11058
11059 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11060
11061         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11062
11063         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11064
11065         * config.h.in (HAVE_STRCASECMP): Remove.
11066
11067 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11068
11069         * redisplay-output.c (redisplay_output_pixmap):
11070         Cleaner and possibly more 64-bit correct code.
11071
11072 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11073
11074         * dumper.c (pdump_load_finish): move restoration of
11075         `noninteractive1' to emacs.c (main_1).
11076         * emacs.c (main_1): protect LISP-visible command-line flags
11077         from pdump_load().
11078
11079 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11080
11081         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11082         DUMP_TARGET instead of literal program names.
11083
11084 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11085
11086         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11087
11088 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11089
11090         * *: Spelling mega-patch
11091
11092 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11093
11094         * fns.c (bad_bad_turtle):
11095         Delete "Eek!" comment, since we fixed the bug to which it refers.
11096
11097 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11098
11099         * alloca.c: Replace REGISTER with register.
11100
11101 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11102
11103         * file-coding.c (ucs_to_char): Use countof.
11104
11105 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11106
11107         * file-coding.c: (ucs_to_char):
11108         (complex_vars_of_file_coding):
11109         Use countof instead of sizeof.
11110         Use CHECK_NATNUM instead of CHECK_INT.
11111
11112         * sysdep.c (strcasecmp): Remove.
11113         * device-x.c (ascii_strcasecmp): New.
11114         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11115         Avoid using non-standard non-portable strcasecmp.
11116
11117 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11118
11119         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11120         * font-lock.c: remove reference to emacsfns.h.
11121         * search.c: small doc improvement.
11122         * event-Xt.c: correct file names in comments.
11123         * console-x.h Correct file names in comments.
11124         * frame.c: Correct file names in comments.
11125         * event-stream.c: remove Energize from comments.
11126
11127 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11128
11129         * symeval.h (DEFERROR_STANDARD):
11130         (DEFERROR):
11131         (DEFSYMBOL):
11132         (DEFSYMBOL_NO_DUMP):
11133         (DEFSYMBOL_MULTIWORD_PREDICATE):
11134         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11135         (DEFKEYWORD):
11136         The construct &##name is not sensible C.
11137         Fixes compilation errors with Unixware native compiler.
11138
11139 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11140
11141         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11142         (next_frame_internal): Removed.  We now just have next_frame.
11143         (next_frame):
11144         Write a simpler and cleaner one-pass algorithm.
11145         Remove called_from_delete_device arg and #ifdefed-out code.
11146         (previous_frame):
11147         Renamed from prev_frame.  Update callers.
11148         Cleaned up to have an analogous implementation to next_frame.
11149         (other_visible_frames_internal): Remove the
11150         called_from_delete_device bogus arg, and hence, remove this
11151         function.  Just use other_visible_frames().
11152
11153         * window.c (Fnext_window):
11154         Prettify docstring.
11155         Since next_frame() is guaranteed to return a frame, remove check
11156         for nil inserted in previous patch.
11157         (Fprevious_window):
11158         Prettify docstring.
11159         Make code look more like Fnext_window.
11160         (window_loop):
11161         Respect the `console' arg when iterating through windows.
11162         Fixes bug: (get-buffer-window buffer t device) not respecting
11163         the `device' arg.
11164         This function needs more work, as others have pointed out.
11165
11166         * frame.h: Rename prev_frame to previous_frame.
11167         device_matches_console_spec no longer takes a `frame' arg.
11168
11169         * s/gnu.h:
11170         * s/linux.h:
11171         * s/hpux.h:
11172         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11173         From "Golubev I. N." <gin@mo.msk.ru>.
11174
11175         * make-src-depend: Fix typo.
11176
11177 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11178
11179         * window.c (Fnext_window):
11180         next_frame() might return nil, not a frame.
11181         Fixes this crash:
11182         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11183
11184         * frame.c (next_frame_internal):
11185         We've passed a frame if we've passed its device.
11186         Fixes this crash:
11187         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11188 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11189
11190 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11191
11192         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11193         Allow option to suppress accelerators in menu/dialog items.
11194         (populate_or_checksum_helper): Pass dialog title through above.
11195
11196 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11197
11198         * event-msw.c (mswindows_key_to_emacs_keysym):
11199         Add "pause" key, fix "menu" key.
11200
11201 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11202
11203         * eval.c (reinit_vars_of_eval):
11204         Increase max_lisp_eval_depth to 1000,
11205         required for thai-xtis.el to byte-compile under some circumstances.
11206
11207 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11208
11209         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11210         From Kenichi Handa.
11211
11212 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11213
11214         * make-src-depend: Make the generated Makefiles smaller.
11215
11216         * s/hpux.h (SETUP_SLAVE_PTY):
11217         Provide a %d in the format string for the errno argument.
11218
11219         * editfns.c (Ftemp_directory):
11220         Warning fix.
11221         Avoid buffer overrun on very long file name.
11222
11223         * input-method-xlib.c (XIM_init_device):
11224         6th parameter of XRegisterIMInstantiateCallback has different
11225         pointer types on different OSes, so simply cast to (void *).
11226
11227         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11228
11229         * sysdll.c (dll_open):
11230         shl_load will hang hard if passed a NULL filename.
11231         Simply return NULL for compatibility with dlopen.
11232         * sysdll.c: Conform to XEmacs coding standards.
11233
11234         * sysdep.c (get_pty_max_bytes):
11235         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11236
11237 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11238
11239         * tooltalk.c: Add #include <syssignal.h>
11240
11241 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11242
11243         * s/hpux.h: Don't use undefined function sigunblock().
11244
11245 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11246
11247         * config.h.in: Add HAVE_BALLOON_HELP.
11248         * emacs.c: Use HAVE_BALLOON_HELP.
11249         * Makefile.in.in (x_objs):
11250         Make Balloon Help conditional on finding shape.h.
11251
11252 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11253
11254         * syntax.c (regex_emacs_buffer_p): New variable.
11255         * syntax.h (regex_emacs_buffer_p): extern.
11256         * search.c (looking_at_1):
11257         (string_match_1):
11258         (fast_string_match):
11259         (search_buffer): Set regex_emacs_buffer_p.
11260         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11261         when before_dot, at_dot, after_dot.
11262
11263 2000-08-23  Andy Piper  <andy@xemacs.org>
11264
11265         * gui-x.c (popup_selection_callback): Only set action_occurred
11266         when we really have an image instance.
11267         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11268
11269 2000-08-23  Andy Piper  <andy@xemacs.org>
11270
11271         * gui-msw.c (mswindows_handle_gui_wm_command): set
11272         action_occurred.
11273         * gui-x.c (popup_selection_callback): ditto.
11274
11275         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11276         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11277         (struct Lisp_Image_Instance): add action_occurred flag.
11278
11279         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11280         (image_instance_changed): ditto.
11281         (reset_frame_subwindow_instance_cache): only unmap windows - do
11282         not remove them from the cache also.
11283
11284         * glyphs-widget.c (tab_control_update): better debug.
11285         (progress_gauge_update): ditto.
11286         (layout_update): ditto.
11287         (layout_instantiate): ditto.
11288         (tab_control_order_only_changed): cope with null pending items.
11289
11290         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11291         debug. Force selection of an item when an action occurred. Cope
11292         with null pending_items.
11293         (mswindows_progress_gauge_redisplay): better debug.
11294         * glyphs-x.c (x_tab_control_redisplay): ditto.
11295
11296         * redisplay.c (redisplay_frame): reset the frame cache if the
11297         frame is garbaged.
11298
11299         * window.c (Fset_window_configuration): potentially re-enable
11300         frame cache reset.
11301         (window_unmap_subwindows): need to finalize instances here since
11302         it is only used in mark_window_as_deleted.
11303
11304 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11305
11306         * nas.c (SndOpenDataForReading):
11307         nas.c (WaveOpenDataForReading):
11308         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11309         Somehow escaped from the 2000-08-14 patch.
11310
11311 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11312
11313         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11314         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11315
11316 2000-08-21  Andy Piper  <andy@xemacs.org>
11317
11318         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11319         window if it is not already displayed.
11320
11321         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11322         it is not already displayed.
11323
11324         * window.c (Fset_window_configuration): don't reset the frame
11325         cache.
11326
11327         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11328         instances from the frame cache if we are actually finalizing them.
11329         (reset_frame_subwindow_instance_cache): reset frame cache only
11330         after unmapping everything.
11331         (map_subwindow): set displayed flag after mapping.
11332
11333 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11334
11335         * data.c (indirect_function):
11336         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11337
11338         * eval.c (function_argcount):
11339         Use original function when signaling errors.
11340
11341 2000-08-18  Andy Piper  <andy@xemacs.org>
11342
11343         * frame.c (delete_frame_internal): use new
11344         free_frame_subwindow_instances name.
11345
11346         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11347         (add_tab_item): make return type correct.
11348         (mswindows_tab_control_instantiate): assert index of tab.
11349         (mswindows_tab_control_redisplay): Re-code to use
11350         gui_item_equal_sans_selected and gui_item_list_find_selected.
11351
11352         * glyphs-widget.c (tab_control_update): Correct comment.
11353
11354         * window.c (window_unmap_subwindows): use new
11355         unmap_subwindow_instance_cache_mapper.
11356         (window_unmap_subwindows_cache_mapper): deleted.
11357         (Fset_window_configuration): comparisons should now be with
11358         EQ. Preserve the subwindow instance cache across configuration
11359         changes.
11360         (allocate_window): ditto.
11361         (make_dummy_parent): ditto.
11362
11363         * glyphs.c (free_frame_subwindow_instances): rename from
11364         free_frame_subwindow_instance_cache. finalize all instances rather
11365         than just those in the display cache.
11366         (finalize_all_subwindow_instances): walk windows unmapping and
11367         finalizing subwindows.
11368         (unmap_subwindow_instance_cache_mapper): moved from
11369         window.c. Allow finalization as well as unmapping.
11370
11371         * gui.c (gui_item_list_find_selected): new function.
11372
11373         * gui.h (gui_item_list_find_selected): declare.
11374
11375         * glyphs-x.c (x_tab_control_redisplay): pick tab
11376         explicitly. Re-code to use gui_item_equal_sans_selected and
11377         gui_item_list_find_selected.
11378
11379         * glyphs-x.h: add lwlib-utils.h
11380
11381         * buffer.c (Frecord_buffer): undo previous change.
11382
11383 2000-08-09  Vin Shelton  <acs@xemacs.org>
11384
11385         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11386         possible.  Create temporary files more securely.  The patch was
11387         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11388         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11389         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11390         for details.
11391
11392 2000-08-07  Ben Wing  <ben@xemacs.org>
11393
11394         * getloadavg.c: remove duplicate (and windows-breaking)
11395         includes of fcntl.h and sys/file.h.
11396
11397         * nt.c: remove duplicate getloadavg() definition.
11398
11399         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11400         encodings.
11401
11402 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11403
11404         * eval.c (function_argcount): If function needs to be autoloaded
11405         actually use the loaded definition.
11406         GCPRO function.
11407
11408 2000-08-05  Ben Wing  <ben@xemacs.org>
11409
11410         * getloadavg.c: add prototype for getloadavg().  remove
11411         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11412         of the code).  remove duplicate header includes.
11413
11414         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11415
11416         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11417         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11418         useful load average.
11419
11420         * alloc.c (reinit_alloc_once_early): removed references to
11421         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11422         the lisp vars are the only things referencing the malloc_sbrk_*
11423         vars, and they were already if 0'd out.  these vars only exist
11424         in the older malloc.c, which is basically unused, and they're
11425         only for informational purposes.
11426
11427         * m\*.h: removed useless VIRT_ADDR_VARIES.
11428
11429         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11430
11431 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11432
11433         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11434         color if the image is a mono pixmap.
11435
11436 2000-07-30  Ben Wing  <ben@xemacs.org>
11437
11438         * Makefile.in.in (release):
11439         Remove stray @.
11440
11441         * buffer.c (directory_is_current_directory):
11442         * dired-msw.c (mswindows_get_files):
11443         * dired.c:
11444         * dired.c (Fdirectory_files):
11445         * dired.c (file_name_completion_stat):
11446         * dired.c (Ffile_attributes):
11447         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11448         preprocessor tricks, to avoid problems on some machines
11449         (e.g. SCO).
11450
11451         * callproc.c (egetenv): GC docs.
11452
11453         * console-msw.h:
11454         * console-msw.h (struct mswindows_dialog_id):
11455         * lrecord.h (lrecord_type):
11456         New object for use with MSW dialogs.
11457
11458         * console.h (struct console_methods):
11459         New enable/disable frame methods, for proper modal dialogs.
11460
11461         * device-msw.c (msprinter_default_printer): Fix to follow
11462         proper Mule conventions.
11463
11464         * device-msw.c:
11465         * device-msw.c (signal_open_printer_error):
11466         * device-msw.c (msprinter_init_device):
11467         * device-msw.c (ensure_not_printing):
11468         * device-msw.c (plist_get_margin):
11469         * device-msw.c (Fmsprinter_select_settings):
11470         * device-msw.c (finalize_devmode):
11471         * device-msw.c (Fmsprinter_settings_despecialize):
11472         * device-msw.c (signal_enum_priner_error):
11473         * extents.c (decode_extent):
11474         * extents.c (decode_map_extents_flags):
11475         * extents.c (decode_extent_at_flag):
11476         * extents.c (Fextent_at):
11477         * extents.c (Fextents_at):
11478         * extents.c (symbol_to_glyph_layout):
11479         [[[[2]]]] Use structured errors.
11480
11481         * dialog-msw.c:
11482         * dialog-msw.c (mswindows_is_dialog_msg):
11483         * dialog-msw.c (mark_mswindows_dialog_id):
11484         * dialog-msw.c (dialog_proc):
11485         * dialog-msw.c (handle_question_dialog_box):
11486         * dialog-msw.c (syms_of_dialog_mswindows):
11487         Define new object to clean up marking; use it as a dialog identifier.
11488         Call new delete-dialog-box-hook.
11489
11490         * dialog-x.c (dbox_selection_callback):
11491         * dialog-x.c (dbox_descriptor_to_widget_value):
11492         * dialog-x.c (x_make_dialog_box_internal):
11493         Call new delete-dialog-box-hook.
11494         Return an id.
11495
11496         * dialog.c:
11497         * dialog.c (syms_of_dialog):
11498         * dialog.c (vars_of_dialog):
11499         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11500
11501         * eval.c:
11502         * eval.c (signal_call_debugger):
11503         when noninteractive, output stack traces on the console instead
11504         of in a (never-seen) buffer.
11505
11506         * eval.c (signal_type_error):
11507         * eval.c (invalid_argument_2):
11508         * lisp.h:
11509         new funs for use w/structured errors.
11510
11511         * event-Xt.c:
11512         * event-Xt.c (x_to_emacs_keysym):
11513         * event-Xt.c (describe_event):
11514         * event-Xt.c (emacs_Xt_event_handler):
11515         * event-Xt.c (vars_of_event_Xt):
11516         * event-msw.c:
11517         * event-msw.c (mswindows_wnd_proc):
11518         * event-msw.c (vars_of_event_mswindows):
11519         rename {x,mswindows}-debug-events to debug-{}-events for
11520         consistency with other debug-foo variables.
11521
11522         * event-stream.c:
11523         document next-event more clearly.
11524
11525         * fileio.c (Ffile_name_directory):
11526         * fileio.c (Ffile_name_nondirectory):
11527         * fileio.c (Funhandled_file_name_directory):
11528         * fileio.c (file_name_as_directory):
11529         * fileio.c (Ffile_name_as_directory):
11530         * fileio.c (directory_file_name):
11531         * fileio.c (Fdirectory_file_name):
11532         * fileio.c (Fmake_temp_name):
11533         * fileio.c (Ffile_truename):
11534         * fileio.c (Fsubstitute_in_file_name):
11535         * fileio.c (expand_and_dir_to_file):
11536         * fileio.c (barf_or_query_if_file_exists):
11537         * fileio.c (check_executable):
11538         * fileio.c (Ffile_exists_p):
11539         * fileio.c (Ffile_writable_p):
11540         * fileio.c (Ffile_directory_p):
11541         * fileio.c (Ffile_regular_p):
11542         * fileio.c (Ffile_modes):
11543         * fileio.c (Ffile_newer_than_file_p):
11544         * fileio.c (Fverify_visited_file_modtime):
11545         * fileio.c (Fset_visited_file_modtime):
11546         * fileio.c (auto_save_1):
11547         (1). (2).
11548         fix up gcpro's.
11549
11550         * frame-msw.c:
11551         * frame-msw.c (mswindows_init_frame_1):
11552         * frame-msw.c (mswindows_enable_frame):
11553         * frame-msw.c (error_frame_unsizable):
11554         * frame-msw.c (msprinter_init_frame_1):
11555         * frame-msw.c (msprinter_init_frame_3):
11556         * frame-msw.c (console_type_create_frame_mswindows):
11557         (2).
11558         implement new enable/disable frame methods.
11559
11560         * frame-x.c:
11561         * frame-x.c (x_enable_frame):
11562         * frame-x.c (console_type_create_frame_x):
11563         implement new enable/disable frame methods.
11564
11565         * frame.c:
11566         * frame.c (Fdisable_frame):
11567         * frame.c (syms_of_frame):
11568         * frame.h (struct frame):
11569         implement new enable/disable frame methods/functions.
11570
11571         * general-slots.h:
11572         add initial-focus.
11573
11574         * glyphs-msw.c (mswindows_widget_instantiate):
11575         comment that initial-focus should be implemented.
11576
11577         * glyphs-widget.c:
11578         * glyphs-widget.c (check_valid_instantiator):
11579         * glyphs-widget.c (check_valid_orientation):
11580         * glyphs-widget.c (check_valid_tab_orientation):
11581         * glyphs-widget.c (check_valid_justification):
11582         * glyphs-widget.c (check_valid_border):
11583         * glyphs-widget.c (check_valid_callback):
11584         * glyphs-widget.c (check_valid_int_or_function):
11585         * glyphs-widget.c (check_valid_string_or_vector):
11586         * glyphs-widget.c (check_valid_item_list_1):
11587         * glyphs-widget.c (widget_validate):
11588         * glyphs-widget.c (combo_box_validate):
11589         * glyphs-widget.c (widget_instantiate):
11590         * glyphs-widget.c (syms_of_glyphs_widget):
11591         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11592         * glyphs-widget.c (image_instantiator_combo_box):
11593         * glyphs-widget.c (image_instantiator_scrollbar):
11594         * glyphs-widget.c (image_instantiator_tab_control):
11595         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11596         (2).
11597         support (unimplemented) keyword initial-focus.
11598         reindent long macros.
11599
11600         * glyphs-x.c (x_redisplay_widget):
11601         * glyphs-x.c (x_button_instantiate):
11602         * glyphs-x.c (x_button_redisplay):
11603         * glyphs-x.c (x_progress_gauge_instantiate):
11604         * glyphs-x.c (x_edit_field_instantiate):
11605         * glyphs-x.c (x_combo_box_instantiate):
11606         * glyphs-x.c (x_tab_control_instantiate):
11607         * glyphs-x.c (x_label_instantiate):
11608         * gui-x.c:
11609         * gui-x.c (button_item_to_widget_value):
11610         * gui-x.c (gui_items_to_widget_values_1):
11611         * gui-x.c (gui_item_children_to_widget_values):
11612         * gui-x.c (gui_items_to_widget_values):
11613         * gui-x.h:
11614         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11615         add new flag to gui-parsing routines to indicate whether
11616         accelerator specs should be supported.
11617
11618         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11619
11620         * glyphs.h (struct Lisp_Image_Instance):
11621         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11622         add initial-focus flag.
11623
11624         * gui.c:
11625         * gui.c (syms_of_gui):
11626         * gui.c (vars_of_gui):
11627         clean up menu-no-selection-hook.
11628
11629         * gui.h:
11630         support delete-dialog-box-hook.
11631
11632         * lread.c (Fload_internal):
11633         * lread.c (locate_file_in_directory_mapper):
11634         (1).
11635
11636         * lrecord.h:
11637         * lrecord.h (struct toolbar_button):
11638         * lrecord.h (syms_of_toolbar):
11639         document how to create a new object.
11640
11641         * menubar-msw.c (mswindows_char_is_accelerator):
11642         may be called on frames w/o menus.
11643
11644         * menubar.c (vars_of_menubar):
11645         clean up :filter docs.
11646
11647         * nt.c (readdir):
11648         * ntproc.c:
11649         (1).
11650
11651         * process-nt.c:
11652         * process-nt.c (validate_signal_number):
11653         * process-nt.c (signal_cannot_launch):
11654         * process-nt.c (nt_create_process):
11655         * process-nt.c (nt_send_process):
11656         * process-nt.c (nt_kill_child_process):
11657         * process-nt.c (nt_open_network_stream):
11658         * process-nt.c (syms_of_process_nt):
11659         (2).
11660         delete quote-handling.  call new lisp code that does it better.
11661
11662         * process-unix.c (connect_to_file_descriptor):
11663         * process-unix.c (allocate_pty):
11664         * process-unix.c (unix_send_process):
11665         * process-unix.c (unix_kill_child_process):
11666         * process-unix.c (unix_open_network_stream):
11667         * process-unix.c (unix_open_multicast_group):
11668         (1). (2).
11669
11670         * process.c:
11671         * process.c (Fstart_process_internal):
11672         (2).  need to canonicalize process path even if absolute.
11673
11674         * select-msw.c (symbol_to_ms_cf):
11675         * select-msw.c (ms_cf_to_symbol):
11676         * select-msw.c (cf_is_autofreed):
11677         * select-msw.c (mswindows_destroy_selection):
11678         * select.c:
11679         * select.c (syms_of_select):
11680         * select.h:
11681         support dibv5, fix bugs. (from Mike Alexander)
11682
11683         * select.c (Fget_selection_internal):
11684         * select.c (select_convert_out):
11685
11686         * sysdep.c:
11687         * sysdep.c (xemacs_stat):
11688         renamed.
11689
11690         * sysdep.c (mkdir):
11691         * sysdep.c (rmdir):
11692         but keep original stat() here because we provide encapsulation
11693         around these funs.
11694
11695         * sysfile.h:
11696         * sysfile.h (fstat):
11697         remove stat garbage.
11698
11699         * syswindows.h:
11700         fix X/MSW conflict.
11701         don't include tchar.h.  it's inappropriate because it makes
11702         compile-time distinctions when we want runtime distinctions.
11703         (we provide our own tchar replacements)
11704
11705         * toolbar.c:
11706         use default object printer for toolbar-button.
11707
11708         * unexcw.c:
11709         make sure we don't encapsulate.
11710
11711         * window.c (vars_of_window):
11712         emphasize that temp-buffer-show-hook is obsolete.
11713
11714 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11715
11716         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11717         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11718
11719         * events.c (Fevent_timestamp_lessp):
11720         Not 64-bit clean.  Use EMACS_INT, not int.
11721
11722 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11723
11724         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11725         unsigned int and changed the last enum to
11726         lrecord_type_last_built_in_type.
11727         (lrecord_implementations_table): changed prototype to know how
11728         long the array is supposed to be.
11729         (lrecord_type_count): new unsigned int to keep track of the
11730         current number of lisp lrecord types.
11731         (DEFINE_EXTERNAL_LRECORD):
11732         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11733         dynamic-modules to declare new lisp types. They are the same
11734         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11735         int for each new type, and increment lrecord_type_count by 1.
11736
11737         * alloc.c (lrecord_implementations_table): Changed to reference
11738         lrecord_type_last_built_in_type for the size of the array.
11739         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11740
11741 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11742
11743         * glyphs.h (check_valid_item_list): Renamed from
11744         check_valid_item_list_1.
11745
11746 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11747
11748         * select.c (Qselect_coerce): New.
11749         * select.c (Vselection_coercion_alist): New.
11750         * select.c (syms_of_select): Declare.
11751         * select.c (get-selection-internal): Use it.
11752         Use the new select-coerce functionality.
11753
11754         * select.c (select_coerce): New.
11755         * select.h (select_coerce): Declare.
11756         New function to coerce one type of data into another.
11757
11758 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11759
11760         * callproc.c (Fcall_process_internal):
11761         (Fcall_process_internal):
11762         * process-unix.c (unix_create_process):
11763         Save and restore the value of errno, so that error messages are accurate.
11764
11765 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11766
11767         * elhash.c (print_hash_table):
11768         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11769         Prettify docstrings and indentation.
11770
11771 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11772
11773         * window.c (Fwindow_pixel_edges): Subtract frame border and
11774         gutter size.
11775
11776 2000-07-31  Andy Piper  <andy@xemacs.org>
11777
11778         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11779         will acknowledge the change.
11780
11781         * glyphs.h: declare tab_control_order_only_changed.
11782
11783         * glyphs-x.c (x_tab_control_redisplay): use
11784         tab_control_order_only_changed.
11785
11786         * glyphs-widget.c (tab_control_order_only_changed): new function.
11787
11788         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11789         tab_control_order_only_changed.
11790
11791         * gui.c (gui_item_equal_sans_selected): new function.
11792         (gui_item_equal): use it.
11793
11794         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11795         :properties in favor of :items..
11796
11797         * glyphs-widget.c (check_valid_item_list): rename from
11798         check_valid_item_list_1.
11799         (check_valid_item_list_1): renamed.
11800         (combo_box_validate): deprecate :properties in favor of :items.
11801         (widget_instantiate): ditto.
11802         (tab_control_update): ditto.
11803         (image_instantiator_combo_box): ditto.
11804         (image_instantiator_tree_view): ditto.
11805         (image_instantiator_tab_control): ditto.
11806         (layout_post_instantiate): remove dead code.
11807
11808         * print.c (debug_print_no_newline): only write to debugger if in
11809         WIN32_NATIVE.
11810
11811         * elhash.c (Fmake_hash_table): update doc string.
11812
11813         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11814         messages whilst in GC. This at least stops XEmacs crashing but has
11815         the potential for wierd behaviour.
11816
11817 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11818
11819         * config.h.in:
11820         Make existence of s&m files optional.
11821
11822         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11823         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11824         * s/gnu.h: Remove HAVE_GETLOADAVG.
11825         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11826         * s/sol2.h: Remove HAVE_GETLOADAVG.
11827         * lisp.h: Remove getloadavg() declaration.
11828         * fns.c:
11829         Include <sys/loadavg.h> if available.
11830         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11831         * config.h.in:  Group together getloadavg()-related macros.
11832         Use only configure-time tests to detect getloadavg().
11833
11834 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11835
11836         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11837
11838 2000-07-25  Andy Piper  <andy@xemacs.org>
11839
11840         * syswindows.h: add tchar.h for native builds.
11841
11842         * frame.c (syms_of_frame): remove set-glyph-image.
11843
11844         * general-slots.h: add Qset_glyph_image.
11845
11846         * glyphs-widget.c (layout_update): add domain arg to
11847         set-glyph-image.
11848         (syms_of_glyphs_widget): remove set-glyph-image.
11849
11850 2000-07-23  Ben Wing  <ben@xemacs.org>
11851
11852         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11853         Vpopup_frame_list.
11854
11855 2000-07-22  Andy Piper  <andy@xemacs.org>
11856
11857         * symsinit.h: add syms_of_win32().
11858
11859         * gui-msw.c (syms_of_gui_mswindows): remove
11860         Fmswindows_shell_execute.
11861         (Fmswindows_shell_execute): moved to win32.c.
11862
11863         * emacs.c (main_1): add syms_of_win32 ().
11864
11865         * win32.c (init_potentially_nonexistent_functions): rewrite in
11866         compiler-friendly terms.
11867         (Fmswindows_shell_execute): move here from gui-msw.c.
11868         (syms_of_win32): new.
11869
11870         * device-msw.c (Fmswindows_printer_list): clean up args to
11871         EnumPrinters.
11872         Don't include tchar under cygwin or mingw.
11873         (msprinter_default_printer): make cygwin-friendly.
11874
11875 2000-07-21  Andy Piper  <andy@xemacs.org>
11876
11877         * glyphs-widget.c (image_instantiator_tree_view): use tab
11878         control's update function.
11879         (layout_property): new function. Retrieve items.
11880
11881         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11882         function. Re-populate the tree view from the pending items.
11883
11884         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11885         is designated the parent if the domain is an image instance. This
11886         is needed so that dirtiness can be cascade up the hierarchy and
11887         thus for layout children to be redisplayed correctly.
11888         (allocate_image_instance): rename glyph -> parent.
11889
11890         * redisplay.h: change redisplay_output_layout signature.
11891
11892         * redisplay-msw.c (mswindows_output_display_block): use domain
11893         arg.
11894
11895         * redisplay-x.c (x_output_display_block): use domain arg.
11896
11897 2000-07-10  Andy Piper  <andy@xemacs.org>
11898
11899         * window.c (Fset_window_configuration): add comment.
11900
11901         * redisplay-output.c (compare_runes):
11902         (redisplay_output_subwindow): redisplay rather than update subwindow.
11903         (redisplay_output_layout): ditto.
11904
11905         * redisplay-msw.c (mswindows_frame_output_end):
11906         (mswindows_frame_output_end): make defer window pos optional.
11907
11908         * lisp.h: add Flast.
11909
11910         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11911         normalize method. Change update method to be for changed
11912         instantiators. Add redisplay method. Change signature of layout
11913         method.
11914         (struct Lisp_Image_Instance): add instantiator.
11915         (IMAGE_INSTANCE_INSTANTIATOR): new.
11916         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11917         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11918         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11919
11920         * glyphs.c:
11921         (find_instantiator_differences): new function.
11922         (Fset_instantiator_property): new convenience function.
11923         (check_image_instance_structure): strictly check for vector
11924         instantiators.
11925         (normalize_image_instantiator): make non-static.
11926         (instantiate_image_instantiator): pass on dest_mask and use new
11927         signatures for image_instance_layout and friends.
11928         (mark_image_instance): mark the instantiator. Mark the subwindow
11929         face not the widget face.
11930         (image_instance_equal): add instantiator.
11931         (image_instance_hash): ditto.
11932         (allocate_image_instance): ditto.
11933         (Fset_image_instance_property): removed.
11934         (Fimage_instance_file_name): ditto.
11935         (Fcolorize_image_instance): ditto.
11936         (image_instance_layout): add offsets to be set.
11937         (update_image_instance): new function. update an image instance
11938         from its changed instantiator.
11939         (inherit_normalize): add dest_mask.
11940         (xbm_normalize): ditto.
11941         (xface_normalize): ditto.
11942         (xpm_normalize): ditto.
11943         (text_update): set_property -> update.
11944         (image_instantiate): use the glyph identity as a hash key, not the
11945         instantiator.
11946         (glyph_width): use new image_instance_layout signature.
11947         (glyph_ascent): ditto.
11948         (glyph_descent): ditto.
11949         (glyph_height): ditto.
11950         (glyph_query_geometry): ressurrect.
11951         (glyph_layout): ditto.
11952         (redisplay_subwindow): update -> redisplay.
11953         (syms_of_glyphs): add Fset_instantiator_property.
11954         (image_instantiator_format_create): set_property -> update.
11955
11956         * glyphs-x.c:
11957         (autodetect_normalize): add dest_maks to signature.
11958         (x_redisplay_subwindow): update -> redisplay.
11959         (x_redisplay_widget): ditto.
11960         (x_button_redisplay): ditto.
11961         (x_progress_gauge_redisplay): ditto.
11962         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11963         stacking order.
11964         (console_type_create_glyphs_x): update -> redisplay.
11965         (image_instantiator_format_create_glyphs_x): ditto.
11966
11967         * glyphs-widget.c:
11968         (check_valid_instantiator): disallow glyphs in the instantiator,
11969         they must now be vectors.
11970         (check_valid_instantiator_list): ditto.
11971         (glyph_instantiator_to_glyph): use internal symbol rather than
11972         intern.
11973         (widget_update): renamed from widget_set_property. Call cascaded
11974         update methods.
11975         (redisplay_widget): renamed from update_widget.
11976         (widget_layout): image_instance_layout now takes position as well
11977         as size.
11978         (widget_normalize): ditto.
11979         (widget_instantiate): ditto.
11980         (tab_control_query_geometry) ditto.:
11981         (tab_control_update): renamed from tab_control_set_property.
11982         (progress_gauge_update): set_property -> update.
11983         (layout_normalize): rewrite so that child instantiators are
11984         normalized also.
11985         (layout_update): new function. Create glyphs from the normalized
11986         children and cope with any other layout keywords. We do not
11987         instantiate children here that will be take care of by
11988         redisplay_output_layout.
11989         (layout_instantiate): call layout_update and not much else.
11990         (layout_post_instantiate): not sure whether this is needed
11991         anymore.
11992         (layout_query_geometry): query glyph geometry rather than
11993         image_instance geometry.
11994         (layout_layout): set offsets from pass in parameters. Use glyph
11995         geometry and layout functions rather than image instance ones.
11996         (native_layout_layout): ditto.
11997         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11998         (image_instantiator_widget): set_property -> update.
11999         (image_instantiator_buttons): ditto.
12000         (image_instantiator_progress_guage): ditto.
12001         (image_instantiator_tab_control): ditto.
12002         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
12003         (image_instantiator_layout): add update method.
12004
12005         * glyphs-msw.c (bmp_normalize):
12006         (mswindows_resource_normalize): add dest_mask so that it can be
12007         proprogated by layout_normalize.
12008         (begin_defer_window_pos): make optional because it may not be the
12009         right thing to do and it introduces differences with X.
12010         (mswindows_unmap_subwindow): ditto.
12011         (mswindows_map_subwindow): ditto.
12012         (mswindows_redisplay_subwindow): renamed from
12013         mswindows_update_subwindow.
12014         (mswindows_redisplay_widget): ditto.
12015         (mswindows_button_redisplay): renamed from
12016         mswindows_button_update. Update is now what the instantiation
12017         function does for a changed instantiator.
12018         (mswindows_progress_gauge_instantiate): set the progress value
12019         here if appropriate.
12020         (mswindows_tab_control_redisplay): cope with re-ordering of the
12021         members of the tab widget by simply selecting the new top
12022         widget. This makes things appear ok if you click on a tab.
12023         (mswindows_combo_box_instantiate): image_instance_layout now takes
12024         position as well as size.
12025         (mswindows_progress_gauge_redisplay): renamed from
12026         mswindows_progress_gauge_update.
12027         (console_type_create_glyphs_mswindows): fix update -> redisplay.
12028         (image_instantiator_format_create_glyphs_mswindows): ditto.
12029
12030         * glyphs-eimage.c (jpeg_normalize):
12031         (gif_normalize):
12032         (png_normalize):
12033         (tiff_normalize): add dest_mask so that it can be proprogated by
12034         layout_normalize.
12035
12036         * elhash.c:
12037         (print_hash_table):
12038         (hash_table_weakness_validate):
12039         (decode_hash_table_weakness):
12040         (Fhash_table_weakness):
12041         (Fhash_table_type):
12042         (syms_of_elhash): use Ben's naming scheme for hashtable types..
12043
12044         * console.h (struct console_methods): move update_* to
12045         redisplay_*.
12046
12047 2000-07-20  Ben Wing  <ben@xemacs.org>
12048
12049         * *.[ch] (XSETOBJ): remove unused middle argument.
12050         lisp-disunion.h: correct wrap_object() to one argument.
12051
12052 2000-07-15  Ben Wing  <ben@xemacs.org>
12053
12054         * s/cygwin32.h:
12055         * s/cygwin32.h (CYGWIN_CONV_PATH):
12056         Add missing logb prototype for v1.1.
12057         Use post-b20 names and alias to pre-b20 names when pre-b20.
12058
12059         * s/windowsnt.h: [5].
12060
12061 2000-07-15  Ben Wing  <ben@xemacs.org>
12062
12063         * Makefile.in.in (x_objs):
12064         * Makefile.in.in (sheap_objs):
12065         * Makefile.in.in (objs):
12066         added win32.o, cosmetic cleanups.
12067
12068         * alloc.c (Fmake_byte_code):
12069         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12070         etc. macros which declare their own args now.
12071
12072         * alloc.c (syms_of_alloc):
12073         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12074
12075         * buffer.c:
12076         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12077
12078         * buffer.c (Fget_file_buffer):
12079         Fixed GCPRO problem.
12080
12081         * buffer.c (get_truename_buffer):
12082         Fixed comment about GC checking.
12083
12084         * buffer.c (syms_of_buffer):
12085         Undeclared those dedicated frame funs.
12086         [2].
12087
12088         * buffer.h:
12089         Define convenience macros for internal/external conversions.
12090         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12091         and Qenvironment_variable_encoding for cleaner code.
12092
12093         * bufslots.h:
12094         Remove dedicated-frame; in lisp.
12095
12096         * bytecode.c (funcall_compiled_function):
12097         [1].
12098
12099         * bytecode.c (syms_of_bytecode):
12100         [2].
12101
12102         * console-msw.c:
12103         * console-msw.c (mswindows_show_console): Rewrote.
12104
12105         * console-msw.c (Fmswindows_debugging_output): New.
12106         Sends to OutputDebugString (special MSWin debugger interface).
12107
12108         * console-msw.c (Fmswindows_message_box):
12109         Fixed stupid bugs so it works when called from kill-emacs.
12110
12111         * console-msw.c (syms_of_console_mswindows):
12112         Declare Fmswindows_debugging_output.
12113
12114         * console-msw.h:
12115         New MSWin prototypes.
12116
12117         * console-msw.h (struct mswindows_frame):
12118         New entry last-click-mods for improved button-modifier support.
12119
12120         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12121         New struct entry `popup' with corresponding accessor.
12122
12123         * console-x.c:
12124         * console-x.c (split_up_display_spec):
12125         * console-x.c (get_display_arg_connection):
12126         * console-x.c (x_semi_canonicalize_console_connection):
12127         * console-x.c (x_canonicalize_device_connection):
12128         [[[6]]]: Change char to more specific type.
12129         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12130
12131         * console-x.c (x_semi_canonicalize_console_connection):
12132         * console-x.c (x_canonicalize_device_connection):
12133         [[[9]]]: Fix up error signalling to use new structured error system.
12134
12135         * console-x.h:
12136         [[[4]]]: Define codesys aliases:
12137         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12138         Qx_color_name_encoding, Qx_display_name_encoding.
12139
12140         * console.h (struct console_methods):
12141         New method make_dialog_box_internal supersedes older
12142         popup_dialog_box method.
12143
12144         * data.c:
12145         Define many new errors, part of new structured errors.
12146
12147         * data.c (init_errors_once_early):
12148         * data.c (syms_of_data):
12149         [2].
12150
12151         * device-msw.c (mswindows_init_device):
12152         [[[5]]]: Cleanup to support NT 3.51.
12153
12154         * device-msw.c (decode_devmode): Cleanup.
12155
12156         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12157         * device-msw.c (mswindows_handle_print_dialog_box):
12158         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12159         * device-msw.c (syms_of_device_mswindows):
12160         Delete the dialog box primitives recently introduced by Kirill and
12161         instead interface to general dialog box interface.
12162
12163         * device-x.c:
12164         * device-x.c (compute_x_app_name):
12165         * device-x.c (x_init_device):
12166         * device-x.c (Fx_valid_keysym_name_p):
12167         * device-x.c (Fx_set_font_path):
12168         [6].
12169         [7].
12170
12171         * device.h (wrap_device): New.
12172         First of its kind; meant to replace XSETDEVICE.
12173
12174         * dialog-msw.c: Many file-dialog symbols.
12175
12176         * dialog-msw.c (mswindows_register_popup_frame): New.
12177         * dialog-msw.c (mswindows_is_dialog_msg): New.
12178         For supporting kbd traversal in dialog boxes.
12179
12180         * dialog-msw.c (dialog_proc):
12181         Support hitting ESC in dialogs.
12182
12183         * dialog-msw.c (struct):
12184         Common dialog box errors.
12185
12186         * dialog-msw.c (handle_file_dialog_box): New.
12187         Add file dialog code.
12188
12189         * dialog-msw.c (handle_question_dialog_box):
12190         Redo existing code to support new question dialog syntax.
12191
12192         * dialog-msw.c (console_type_create_dialog_mswindows):
12193         We support new dialog console method.
12194
12195         * dialog-msw.c (syms_of_dialog_mswindows):
12196         * dialog-msw.c (vars_of_dialog_mswindows):
12197         New file dialog symbols, vars.
12198
12199         * dialog-x.c:
12200         * dialog-x.c (maybe_run_dbox_text_callback):
12201         * dialog-x.c (dbox_descriptor_to_widget_value):
12202         * dialog-x.c (x_make_dialog_box_internal):
12203         * dialog-x.c (console_type_create_dialog_x):
12204         Mule-ize entire file.
12205         Redo to support question dialog syntax.
12206         [6].
12207
12208         * dialog.c:
12209         * dialog.c (Fmake_dialog_box_internal):
12210         * dialog.c (syms_of_dialog):
12211         Kill old popup-dialog-box, replace with new primitive.
12212         Just call device method or signal error.
12213
12214         * eldap.c (Fldap_open):
12215         * eldap.c (Fldap_search_basic):
12216         * eldap.c (Fldap_add):
12217         * eldap.c (Fldap_modify):
12218         [1].
12219         [7].
12220
12221         * emacs.c:
12222         * emacs.c (make_arg_list_1):
12223         * emacs.c (make_arg_list):
12224         Mule-ize call to dll_init().
12225         [6].
12226         [8].
12227
12228         * emacs.c (make_argc_argv):
12229         * emacs.c (free_argc_argv):
12230         * emacs.c (init_cmdargs):
12231         * emacs.c (main_1):
12232         * emacs.c (Fkill_emacs):
12233         * emacs.c (Fdump_emacs):
12234         Update comments about what can be used in syms_* etc.
12235         Call init_win32() when necessary.
12236         Fix up MS Win dialog box in kill-buffer to actually work right.
12237         [7].
12238
12239         * eval.c:
12240         * eval.c (For):
12241         * eval.c (Fand):
12242         * eval.c (Fprogn):
12243         * eval.c (Fprog1):
12244         * eval.c (Fprog2):
12245         * eval.c (FletX):
12246         * eval.c (Flet):
12247         * eval.c (condition_case_3):
12248         * eval.c (Feval):
12249         * eval.c (function_argcount):
12250         * eval.c (funcall_lambda):
12251         [1].
12252
12253         * eval.c (type_error): New.
12254         * eval.c (maybe_type_error): New.
12255         * eval.c (continuable_type_error): New.
12256         * eval.c (maybe_continuable_type_error): New.
12257         * eval.c (type_error_with_frob): New.
12258         * eval.c (maybe_type_error_with_frob): New.
12259         * eval.c (continuable_type_error_with_frob): New.
12260         * eval.c (maybe_continuable_type_error_with_frob): New.
12261         New functions for use with structured errors.
12262
12263         * event-Xt.c:
12264         * event-Xt.c (x_event_to_emacs_event):
12265         Buttons are now modifiers too.
12266
12267         * event-Xt.c (emacs_Xt_current_event_timestamp):
12268         Implement new event method.
12269         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12270
12271         * event-msw.c:
12272         * event-msw.c (ntpipe_shove_writer): [5].
12273         * event-msw.c (mswindows_enqueue_mouse_button_event):
12274         * event-msw.c (mswindows_drain_windows_queue):
12275         * event-msw.c (mswindows_wnd_proc): [7].
12276         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12277         * event-msw.c (mswindows_modifier_state):
12278         Throughout: support new button modifiers.
12279
12280         * event-msw.c (emacs_mswindows_current_event_timestamp):
12281         Implement new event method.
12282         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12283
12284         * event-stream.c:
12285         * event-stream.c (event_stream_current_event_timestamp): New.
12286         * event-stream.c (maybe_kbd_translate): New functionality.
12287         * event-stream.c (vars_of_event_stream):
12288         Document new kbd-translate-table functionality.
12289
12290         * event-stream.c (Fcurrent_event_timestamp): New.
12291         New primitive for use in fabricated events.
12292         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12293
12294         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12295
12296         * events.c:
12297         * events.c (Fmake_event):
12298         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12299         [1].
12300         [9].
12301
12302         * events.c (format_event_object): fix gcc warnings.
12303
12304         * events.c (Fevent_timestamp): Document new primitives.
12305
12306         * events.c (TIMESTAMP_HALFSPACE): New.
12307
12308         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12309         comparing timestamps correctly (half-space algorithm).
12310
12311         * events.c (Fevent_modifier_bits): Doc fix.
12312
12313         * events.c (Fevent_modifiers): Major doc addition.
12314         * events.c (event_x_y_pixel_internal): Typo fix.
12315         * events.c (syms_of_events): Declare new primitives.
12316
12317         * events.h:
12318         Update long comment for button modifiers, timestamps.
12319
12320         * events.h (struct event_stream):
12321         New current_event_timestamp method.
12322
12323         * extents.c:
12324         * extents.c (extent_in_region_p):
12325         * extents.c (decode_extent):
12326         * extents.c (Fset_extent_parent):
12327         * extents.c (decode_map_extents_flags):
12328         Fix gcc warnings.
12329         [9].
12330
12331         * extents.c (struct extent_at_arg):
12332         * extents.c (decode_extent_at_flag):
12333         * extents.c (extent_at_mapper):
12334         * extents.c (extent_at_bytind):
12335         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12336         * extents.c (Fextents_at): New primitive. [9].
12337         * extents.c (symbol_to_glyph_layout): [9].
12338         Support new primitive `extents-at'.
12339
12340
12341         * extents.c (get_text_property_bytind):
12342         extent_at_bytind has another arg.
12343         [9].
12344
12345         * extents.c (syms_of_extents): New primitive.
12346
12347         * file-coding.c (Fmake_coding_system): [1].
12348         * file-coding.c (subsidiary_coding_system): fix gcc warning
12349         * file-coding.c (syms_of_file_coding): [2].
12350
12351         * fileio.c (Fexpand_file_name):
12352         * fileio.c (Fsysnetunam):
12353         * fileio.c (Ffile_exists_p):
12354         * fileio.c (Ffile_executable_p):
12355         * fileio.c (Fverify_visited_file_modtime):
12356         Clean up GCPROing.
12357
12358         * fileio.c (syms_of_fileio): [2].
12359
12360         * filelock.c (lock_file_1):
12361         * filelock.c (current_lock_owner):
12362         * filelock.c (lock_if_free):
12363         * filelock.c (lock_file):
12364         * filelock.c (unlock_file):
12365         Clean up GCPROing.
12366
12367         * fns.c (concat): Fix gcc warning.
12368
12369         * fns.c (Fmember):
12370         * fns.c (Fold_member):
12371         * fns.c (Fmemq):
12372         * fns.c (Fold_memq):
12373         * fns.c (memq_no_quit):
12374         * fns.c (Fassoc):
12375         * fns.c (Fold_assoc):
12376         * fns.c (Fassq):
12377         * fns.c (Fold_assq):
12378         * fns.c (assq_no_quit):
12379         * fns.c (Frassoc):
12380         * fns.c (Fold_rassoc):
12381         * fns.c (Frassq):
12382         * fns.c (Fold_rassq):
12383         * fns.c (rassq_no_quit):
12384         * fns.c (Fdelete):
12385         * fns.c (Fold_delete):
12386         * fns.c (Fdelq):
12387         * fns.c (Fold_delq):
12388         * fns.c (delq_no_quit):
12389         * fns.c (Fremassoc):
12390         * fns.c (Fremassq):
12391         * fns.c (remassq_no_quit):
12392         * fns.c (Fremrassoc):
12393         * fns.c (Fremrassq):
12394         * fns.c (remrassq_no_quit):
12395         * fns.c (Freverse):
12396         * fns.c (mapcar1):
12397         [1].
12398
12399         * frame-msw.c (mswindows_init_frame_1):
12400         * frame-msw.c (mswindows_delete_frame):
12401         Register popups with dialog code so keyboard traversing works.
12402
12403         * frame-tty.c (tty_raise_frame_no_select): [1].
12404
12405         * frame-x.c:
12406         * frame-x.c (x_set_frame_text_value):
12407         * frame-x.c (x_set_frame_properties):
12408         * frame-x.c (x_create_widgets):
12409         [7].
12410
12411         * frame.c:
12412         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12413
12414         * frame.h (wrap_frame): New.
12415         Macro like wrap_device.
12416
12417         * general.c:
12418         * general.c (SYMBOL):
12419         * general.c (syms_of_general):
12420         Major reorg.  This is now just a wrapper and symbols themselves
12421         are listed in general-slots.h.
12422
12423         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12424         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12425
12426         * glyphs-msw.c (mswindows_native_layout_instantiate):
12427         Add DS_CONTROL so keyboard traversal will work.
12428
12429         * glyphs-widget.c:
12430         * glyphs-widget.c (syms_of_glyphs_widget):
12431         Move some symbols to general-slots.h.
12432
12433         * glyphs-x.c:
12434         * glyphs-x.c (xbm_instantiate_1):
12435         * glyphs-x.c (x_xbm_instantiate):
12436         * glyphs-x.c (x_xface_instantiate):
12437         * glyphs-x.c (autodetect_instantiate):
12438         * glyphs-x.c (cursor_font_instantiate):
12439         * glyphs-x.c (x_update_widget):
12440         * glyphs-x.c (x_widget_instantiate):
12441         * glyphs.c (bitmap_to_lisp_data):
12442         * glyphs.c (pixmap_to_lisp_data):
12443         [7].
12444
12445         * glyphs.c (syms_of_glyphs):
12446         [2].
12447
12448         * gui-x.c:
12449         * gui-x.c (print_widget_value):
12450         * gui-x.c (menu_separator_style_and_to_external):
12451         * gui-x.c (add_accel_and_to_external):
12452         * gui-x.c (button_item_to_widget_value):
12453         * gui-x.c (gui_items_to_widget_values_1):
12454         * gui-x.c (gui_items_to_widget_values):
12455         * gui-x.c (syms_of_gui_x):
12456         * gui-x.c (vars_of_gui_x):
12457         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12458         [9].
12459
12460         * gui-x.h:
12461         Muleize, prototype changes matching gui-x.c.
12462
12463         * gui.c:
12464         * gui.c (separator_string_p):
12465         * gui.c (gui_item_add_keyval_pair):
12466         * gui.c (make_gui_item_from_keywords_internal):
12467         * gui.c (signal_too_long_error):
12468         * gui.c (parse_gui_item_tree_item):
12469         * gui.c (syms_of_gui):
12470         * gui.c (vars_of_gui):
12471         * gui.h:
12472         menu-no-selection-hook moved here (used by MSWin).
12473         Move some symbols to general-slots.h.
12474         [6].
12475         [9].
12476
12477         * insdel.c (get_buffer_pos_char):
12478         * insdel.c (get_buffer_range_char):
12479         Add GC comments.
12480
12481         * keymap.c (keymap_lookup_directly):
12482         * keymap.c (keymap_store):
12483         * keymap.c (ensure_meta_prefix_char_keymapp):
12484         * keymap.c (describe_map):
12485         * keymap.h:
12486         Support new button modifiers.
12487
12488         * lisp-disunion.h (wrap_object):
12489         * lisp-disunion.h (XSETOBJ):
12490         Rename make_obj to wrap_object.
12491
12492         * lisp-union.h:
12493         * lisp-union.h (make_int):
12494         * lisp-union.h (make_char):
12495         Support wrap_object.
12496
12497         * lisp.h:
12498         * lisp.h (LIST_LOOP):
12499         * lisp.h (EXTERNAL_LIST_LOOP):
12500         * lisp.h (LIST_LOOP_2):
12501         * lisp.h (EXTERNAL_LIST_LOOP_1):
12502         * lisp.h (EXTERNAL_LIST_LOOP_2):
12503         * lisp.h (EXTERNAL_LIST_LOOP_3):
12504         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12505         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12506         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12507         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12508         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12509         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12510         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12511         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12512         * lisp.h (struct Lisp_Symbol):
12513         * lisp.h (maybe_continuable_error_with_frob):
12514         Fix up section comments.
12515         Add new types for char to indicate usage.
12516         Delete symbols auto-generated from general-slots.h.
12517         Add prototypes for structured error functions.
12518         Add long comments describing looping macros and change interface
12519         so that lvalues are automatically declared.
12520         Add NO_DECLARE macro in case callers want to declare lvalues
12521         themselves.
12522
12523         * lread.c (read_syntax_error):
12524         * lread.c (continuable_read_syntax_error):
12525         * lread.c (read_structure):
12526         * lread.c (sequence_reader):
12527         * lread.c (read_list_conser):
12528         * lread.c (read_compiled_function):
12529         Rename syntax_error and continuable_syntax_error to avoid clash
12530         with same-named structured error functions.
12531
12532         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12533         * menubar-msw.c (populate_menu_add_item):
12534         * menubar-msw.c (populate_or_checksum_helper):
12535         [5].
12536         [9].
12537
12538         * menubar-x.c:
12539         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12540         Mule-ize whole file.
12541
12542         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12543
12544         * mule-charset.c (Fmake_charset):
12545         * mule-wnnfns.c (Fwnn_set_param):
12546         [1].
12547
12548         * ntproc.c (create_child):
12549         * ntproc.c (Fwin32_set_current_locale):
12550         Add comments portending doom.
12551
12552         * objects-msw.c:
12553         * objects-msw.c (old_font_enum_callback_2):
12554         * objects-msw.c (font_enum_callback_1):
12555         * objects-msw.c (mswindows_enumerate_fonts):
12556         [5].
12557
12558         * objects-x.c:
12559         * objects-x.c (allocate_nearest_color):
12560         * objects-x.c (x_parse_nearest_color):
12561         * objects-x.c (x_initialize_color_instance):
12562         * objects-x.c (x_print_color_instance):
12563         * objects-x.c (x_finalize_color_instance):
12564         * objects-x.c (x_valid_color_name_p):
12565         * objects-x.c (x_initialize_font_instance):
12566         * objects-x.c (x_print_font_instance):
12567         * objects-x.c (valid_x_font_name_p):
12568         * objects-x.c (truename_via_FONT_prop):
12569         * objects-x.c (truename_via_random_props):
12570         * objects-x.c (truename_via_XListFonts):
12571         * objects-x.c (x_font_truename):
12572         * objects-x.c (x_font_instance_truename):
12573         * objects-x.c (x_font_instance_properties):
12574         * objects-x.c (x_list_fonts):
12575         * objects-x.c (x_find_charset_font):
12576         Mule-ize entire file.
12577         [7].
12578
12579         * objects-x.h:
12580         Mule-verify.
12581
12582         * print.c:
12583         * print.c (std_handle_out_external):
12584         * print.c (debug_print_no_newline):
12585         * print.c (syms_of_print):
12586         Output to all debugger kinds in debug-print.
12587         Fix console-output code under MSWin to actually work.
12588
12589         * process-nt.c (send_signal):
12590         * process-nt.c (nt_create_process):
12591         Use newer Unicode macros.
12592
12593         * process-unix.c (unix_create_process):
12594         * process-unix.c (unix_canonicalize_host_name):
12595         * process-unix.c (unix_open_network_stream):
12596         [7].
12597
12598         * scrollbar-x.c:
12599         Mule-verify.
12600
12601         * search.c (syms_of_search):
12602         [2].
12603
12604         * select-msw.c (mswindows_destroy_selection):
12605         Use LIST_LOOP_2.
12606
12607         * select-x.c (symbol_to_x_atom):
12608         [7].
12609
12610         * select.c (syms_of_select):
12611         [2].
12612
12613         * sound.c (Fplay_sound_file):
12614         [7].
12615
12616         * specifier.c:
12617         * specifier.c (decode_specifier_type):
12618         * specifier.c (Fvalid_specifier_locale_type_p):
12619         * specifier.c (check_valid_locale_or_locale_type):
12620         * specifier.c (decode_locale):
12621         * specifier.c (decode_locale_type):
12622         * specifier.c (decode_locale_list):
12623         * specifier.c (check_valid_domain):
12624         * specifier.c (decode_specifier_tag_set):
12625         * specifier.c (Fcanonicalize_tag_set):
12626         * specifier.c (Fdefine_specifier_tag):
12627         * specifier.c (Fspecifier_tag_predicate):
12628         * specifier.c (check_valid_inst_list):
12629         * specifier.c (check_valid_spec_list):
12630         * specifier.c (decode_how_to_add_specification):
12631         * specifier.c (check_modifiable_specifier):
12632         * specifier.c (specifier_add_spec):
12633         * specifier.c (boolean_validate):
12634         * specifier.c (display_table_validate):
12635         [9].
12636
12637         * specifier.c (syms_of_specifier):
12638         Move some symbols to general-slots.h.
12639         [2].
12640
12641         * symbols.c:
12642         * symbols.c (Fmapatoms):
12643         * symbols.c (Fapropos_internal):
12644         Add GCPROs.
12645
12646         * symbols.c (set_default_buffer_slot_variable):
12647         * symbols.c (set_default_console_slot_variable):
12648         [1].
12649
12650         * symbols.c (defsymbol_massage_name_1):
12651         * symbols.c (defkeyword_massage_name):
12652         * symbols.c (deferror_1):
12653         * symbols.c (deferror):
12654         * symbols.c (deferror_massage_name_and_message):
12655         * symeval.h:
12656         * symeval.h (DEFSYMBOL):
12657         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12658
12659         * symbols.c (syms_of_symbols):
12660         [2].
12661
12662         * symsinit.h:
12663         * symsinit.h (init_win32): New.
12664         Also new is syms_of_dialog_mswindows.
12665
12666         * syswindows.h:
12667         Add new Unicode macros, missing Cygwin wide-char functions,
12668         convenience conversion macros for Qmswindows_tstr, macros for
12669         encapsulating required MSWin <-> Cygwin filename conversions,
12670         prototype for dynamically-extracted (not in NT 3.51) functions.
12671
12672         * toolbar-x.c:
12673         Mule-verify.
12674
12675         * tooltalk.c (Fadd_tooltalk_message_arg):
12676         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12677         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12678         [7].
12679
12680         * tooltalk.c (syms_of_tooltalk):
12681         [2].
12682
12683         * unexnt.c:
12684         * unexnt.c (unexec):
12685         Fix up headers, declaration of unexec() to be more standard.
12686
12687 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12688
12689         * offix.h: Revert change to guard macros - they're used in offix.c!
12690
12691 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12692
12693         * lisp.h: Defsubred Fdelete.
12694
12695         * console-msw.h:  (msprinter_default_printer): Added.
12696
12697         * console-msw.c (msprinter_canonicalize_console_connection):
12698         (msprinter_canonicalize_device_connection): Added.
12699
12700         * device-msw.c (msprinter_default_printer):
12701         (Fmswingows_get_default_printer):
12702         (signal_enum_priner_error):
12703         (Fmswingows_printer_list): Added.
12704
12705 2000-07-19  Martin Buchholz <martin@xemacs.org>
12706
12707         * XEmacs 21.2.35 is released.
12708
12709 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12710
12711         * select-x.c (x_handle_selection_request):
12712         Text selected in xemacs and pasted into xterm failed to appear.
12713         Spelling fixes and cosmetic changes.
12714
12715 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12716
12717         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12718         XEmacs frame (fix for doubling chars in dialog boxes).
12719
12720 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12721
12722         * select.c (select_convert_in, select_convert_out):
12723         Don't call intern() every time.
12724
12725         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12726         * select.c (vars_of_select): Initialise them.
12727
12728 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12729
12730         * select.c (selection-coercible-types): New.
12731
12732         * select.c (own-selection-internal):
12733         * select.c (get-selection-internal):
12734         MULE bug fix - these should default to COMPOUND_TEXT and not
12735         STRING for MULE. I think.
12736
12737         * select.c (select_convert_out): Use selection-coercible-types
12738         to find types that we can attempt to perform coercions on.
12739
12740 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12741
12742         * mule-wnnfns.c:
12743         * mule-canna.c:
12744         Add coding: cookie to identify encoding.
12745
12746         * mule-canna.c (CANNA_mode_keys): make static.
12747         Use proper prototypes, even for functions of no arguments.
12748         Remove external prototype for Fding().
12749
12750         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12751
12752         * select.c (syms_of_select): Add missing DEFSUBR.
12753
12754 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12755
12756         * select.c (get_selection_internal, own_selection_internal):
12757         Make the type default to STRING, rather than placing a nil type
12758         into Vselection_alist.
12759
12760 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12761
12762         * gpmevent.c (tty_selection_exists_p):
12763         * gpmevent.c (tty_own_selection):
12764         Updated parameter lists.
12765
12766 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12767
12768         * select.h (selection-alist): Removed declaration.
12769
12770         * select.h (get_local_selection):
12771         * select.c (get_local_selection):
12772         Made static.
12773
12774         * select.h (convert_selection): Removed declaration.
12775         * select.c (convert_selection): Removed.
12776         This function belongs in Lisp.
12777
12778         * select.h (select_convert_in): Declare.
12779         * select.h (select_convert_out): Declare.
12780         * select.c (select_convert_in): New.
12781         * select.c (select_convert_out): New.
12782         New conversion functions for other files to call.
12783
12784         * select.h (select_notify_buffer_kill): Declare.
12785         * select.c (select_notify_buffer_kill): New.
12786         New functions that get called from kill-buffer.
12787
12788         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12789         X-specific lisp code.
12790
12791         * select.h: Declare some of the lisp-visible functions for
12792         external use.
12793
12794         * select.c (clean_local_selection_data): Removed. This was
12795         a disgusting function, and previously should have been in
12796         select-x.c in any case. The functionality is now provided
12797         in select-convert-from-integer (select.el).
12798
12799         * select.c (available-selection-types): Fixed stupidity where
12800         INTEGER and ATOM got added twice. Also add STRING when we see an
12801         extent.
12802
12803         * select.c (get-selection-internal): Removed symbol stripping. No
12804         longer causes conversion when data comes from the internal cache.
12805
12806         * select.c (syms_of_select): Added new functions.
12807
12808         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12809         error checking - previously this called abort!
12810
12811         * select-x.c (x_own_selection): Changed comment.
12812
12813         * select-x.c (x_handle_selection_request): Use select_convert_out.
12814         Don't mess with selection-alist; it's an internal variable of select.c.
12815
12816         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12817
12818         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12819         rather than messing with selection-alist.
12820
12821         * select-msw.c (mswindows_get_foreign_selection):
12822         Use TO_INTERNAL_FORMAT rather than hacking.
12823
12824 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12825
12826         * process-unix.c (unix_open_multicast_group):
12827         (unix_open_multicast_group): Remove useless casts.
12828
12829 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12830
12831         * sound.c (Fplay_sound): Fix `unused variable' warning.
12832
12833         * emacs.c (main): Use correct type for _environ on SCO5.
12834
12835 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12836
12837         * console.h (own_selection_method):
12838         * console.h (selection_exists_p_method):
12839         * console.h (available_selection_types_method): New.
12840         * console.h (register_selection_data_type_method): New.
12841         * console.h (selection_data_type_name): New.
12842
12843         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12844         function & alist to track GlobalAlloc()'d handles that need
12845         releasing when the clipboard data gets replaced or emptied.
12846
12847         * event-msw.c (mswindows_wnd_proc): Call it.
12848
12849         * lisp.h, general.c (Qappend): New symbol representing a
12850         `how-to-add' mode.
12851
12852         * select.c (own-selection-internal):
12853         * select.c (selection-exists-p):
12854         * select.c (available-selection-types): New.
12855         * select.c (register-selection-data-type): New.
12856         * select.c (selection-data-type-name): New.  New functions to deal
12857         with device-specific selection data formats.
12858         * select.c (selection-converter-out-alist): Renamed.
12859         * select.c (selection-converter-in-alist): New.
12860         * select.c (selection-appender-alist): New.  Added new alists.
12861         * select.c (syms_of_select, vars_of_select): Added new symbols &
12862         variables.
12863         * select.c (get_local_selection): Split.
12864         * select.c: Removed spurious type checking - selections may now be
12865         of any type, not just strings.
12866         * select.c (own-selection-internal):
12867
12868         * select.h, select.c (convert_selection): New. Created
12869         convert_selection() function based on get_local_selection().
12870         * select.h, select.c (QCF_*): New symbols representing mswindows
12871         clipboard formats.
12872         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12873         symbols representing `how-to-add' modes.
12874
12875         * select-msw.c (x_sym_p): New.
12876         * select-msw.c (symbol_to_ms_cf): New.
12877         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12878         symbols & clipboard formats. Can also handle string names.
12879         * select-msw.c (mswindows_own_selection):
12880         * select-msw.c (mswindows_selection_exists_p):
12881         Added `data-type' parameter. Use it.
12882         * select-msw.c (mswindows_available_selection_types): New.
12883         * select-msw.c (mswindows_register_selection_data_type): New.
12884         * select-msw.c (mswindows_selection_data_type_name): New.
12885         * select-msw.c (mswindows_own_selection):
12886         * select-msw.c (mswindows_get_foreign_selection):
12887         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12888         * select-msw.c (console_create_select_mswindows): Added new methods.
12889         * select-msw.c (mswindows_destroy_selection): New.
12890         * select-msw.c (Vhandle_alist): New list.
12891         * select-msw.c (mswindows_own_selection):
12892
12893         * select-x.c (x_own_selection):
12894         * select-x.c (x_selection_exists_p):
12895         * select-x.c: Added some comments about maybe using new
12896         functionality.
12897         * select-x.c (x_own_selection):
12898
12899         * specifier.c: Remove definition of Qappend (now in general.c)
12900         * specifier.c (syms_of_specifier): Remove Qappend.
12901
12902 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12903
12904         * config.h.in: Add socklen_t.
12905
12906         * s/decosf4-0.h: No special compiler flags needed or desired.
12907         In particular, undefine _BSD for DEC OSF 4.0.
12908
12909 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12910
12911         * redisplay-msw.c (msprinter_frame_output_end): Added.
12912         (console_type_create_redisplay_mswindows): Referred the above.
12913
12914         * frame.c (setup_frame_without_minibuffer): Do not create a
12915         default minibuffer frame on a printer device.
12916
12917         * frame-msw.c (apply_dc_geometry): Added.
12918         (msprinter_start_page):
12919         (msprinter_init_frame_3):
12920         (msprinter_eject_page): Use it.
12921
12922         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12923         and removed residual duplex and orientation properties.
12924
12925 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12926
12927         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12928
12929         * unexalpha.c: Remove system prototypes from C sources!
12930
12931 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12932
12933         * eval.c: Remove references to M-x edit-options in DEFUNs for
12934         `defvar' and `defconst'.
12935
12936 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12937
12938         * config.h.in: Remove SMART_INCLUDE hackery.
12939
12940         PostgreSQL hacking:
12941         * config.h.in: Don't use SMART_INCLUDE.
12942
12943         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12944         * inline.c: Simply #include "postgresql.h"
12945         * postgresql.c:
12946         - Don't use SMART_INCLUDE
12947         - Use simply "const".
12948         - Use standard doc string conventions.
12949         - Use correct type for result of PQstatus.
12950
12951 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12952
12953         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12954
12955         C++ compilation changes.
12956         * config.h.in (EXTERN_C): Define.
12957         * config.h.in (not): This is also a C++ keyword.
12958         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12959         * cm.c: Use EXTERN_C.
12960         * redisplay-tty.c: Use EXTERN_C.
12961         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12962
12963 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12964
12965         * general.c: Remove duplicate definition for Qfunction.
12966
12967 2000-07-08  Ben Wing  <ben@xemacs.org>
12968
12969         * device-msw.c (msprinter_init_device):
12970         * device-msw.c (sync_printer_with_devmode):
12971         * device-msw.c (handle_devmode_changes):
12972         * device-msw.c (print_dialog_worker):
12973         * device-msw.c (Fmsprinter_apply_settings):
12974         * device-msw.c (hash_devmode):
12975         * device-msw.c (Fmsprinter_settings_despecialize):
12976         use Qmswindows_tstr, not Qctext.
12977
12978         * vm-limit.c (check_memory_limits):
12979         avoid infinite loop printing warning messages.
12980
12981 2000-07-05  Craig Lanning  <lanning@scra.org>
12982
12983         * Makefile.in.in: Add support for including the Windows resources
12984         when building with the cygwin and mingw targets.
12985
12986         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12987         not set or not correct.
12988         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12989         (init_initial_directory): Don't try to use $PWD on the
12990         WIN32_NATIVE target.
12991
12992         * s\cygwin32.h:
12993         [[Add -mwindows to eliminate console window.]] not required --ben
12994         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12995         (MAIL_USE_POP): removed; now handled by configure.
12996
12997         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12998         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12999         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13000         (MAIL_USE_POP): removed; now handled by configure.
13001         (ENCAPSULATE_STAT): from Dan Holmsand, added.
13002         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
13003         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
13004         constant string.
13005         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
13006         up from <winsock.h> via systime.h.
13007         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
13008         (getpagesize): from Dan Holmsand, added.
13009         Added #endif which was left dangling by Ben's mega patch; added
13010         comment to help prevent this in the future.
13011
13012         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
13013
13014 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13015
13016         * console-msw.h (struct mswindows_device): Removed unnecessary
13017         cached device geometry values.
13018         Added update_tick and an accessor macro.
13019         (Lisp_Devmode): Added lrecord declaration.
13020         (struct msprinter_device): Contain devmode as a Lisp object.
13021         Added mswindows_get_selected_frame_hwnd();
13022
13023         * console.h (struct console_methods): Indentation nitpicking.
13024
13025         * device-msw.c (mswindows_init_device): Do not initialize geometry
13026         cache. Initialize update tick.
13027         (mswindows_device_system_metrics): Ask the device for its geometry.
13028         (global_free_2_maybe):
13029         (devmode_to_hglobal):
13030         (handle_printer_changes):
13031         (ensure_not_printing):
13032         (print_dialog_worker):
13033         (Fmsprinter_print_setup_dialog):
13034         (Fmsprinter_print_dialog):
13035         (plist_get_margin):
13036         (plist_set_margin):
13037         (Fmsprinter_page_setup_dialog): Added functions.
13038         (sync_printer_with_devmode):
13039         (handle_devmode_changes):
13040         (Fmsprinter_get_settings):
13041         (Fmsprinter_select_settings):
13042         (Fmsprinter_apply_settings):
13043         (allocate_devmode):
13044         (Fmsprinter_settings_copy):
13045         (Fmsprinter_settings_despecialize):
13046         (print_devmode):
13047         (finalize_devmode):
13048         (equal_devmode):
13049         (hash_devmode): Added functions
13050         (syms_of_device_mswindows): Init devmode lrecord class.
13051
13052         * device.h: Added an exfun for find-device.
13053
13054         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13055         geometry; although, recreate the device compatible DC.
13056
13057         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13058         (msprinter_init_frame_3):
13059         (msprinter_frame_property):
13060         (msprinter_internal_frame_property_p):
13061         (msprinter_frame_properties):
13062         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13063         print job properties (will move to device settings).
13064
13065         * lisp.h: Added symbols.
13066
13067         * general.c (syms_of_general): Declared them.
13068
13069         * hash.c (string_hash): Added.
13070
13071         * lrecord.h (lrecord_type): Added devmode lrecord type.
13072
13073 2000-07-02  Mike Sperber <mike@xemacs.org>
13074
13075         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13076         FreeBSD 4.0.
13077
13078 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13079
13080         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13081         integer.
13082
13083 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13084
13085         * data.c (Fstring_to_number): Don't recognize floating point if
13086         base is not 10.
13087
13088 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13089
13090         * glyphs-widget.c (tab_control_query_geometry):
13091         (widget_query_geometry):
13092         (button_query_geometry):
13093         * glyphs.c (text_query_geometry):
13094         Enforce type correctness.
13095
13096 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13097
13098         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13099         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13100
13101 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13102
13103         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13104         conflicts with gcc's fixincluded version of FOO.h.
13105
13106         * glyphs.h (image_instance_geometry): Remove trailing `,'
13107
13108 2000-06-08  Mike Alexander  <mta@arbortext.com>
13109
13110         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13111         (shove_thread): Don't write the same output twice
13112         (make_ntpipe_output_stream): Increase priority of shove thread
13113         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13114         chance to run
13115         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13116         it.
13117
13118 2000-06-12  Ben Wing  <ben@xemacs.org>
13119
13120         * s\mingw32.h (sigset):
13121         * s\windowsnt.h (sigset):
13122         rename msw_ to mswindows_ for consistency with general convention.
13123
13124 2000-06-12  Ben Wing  <ben@xemacs.org>
13125
13126         * console-msw.c:
13127         * console-msw.c (mswindows_get_console_hwnd):
13128         * console-msw.c (mswindows_ensure_console_allocated):
13129         * console-msw.c (mswindows_hide_console):
13130         * console-msw.c (mswindows_show_console):
13131         * console-msw.c (mswindows_ensure_console_buffered):
13132         * console-msw.c (mswindows_output_console_string):
13133         * console-msw.c (mswindows_windows9x_p):
13134         * console-msw.h:
13135         * device-msw.c (mswindows_get_workspace_coords):
13136         * device-msw.c (mswindows_device_system_metrics):
13137         * dialog-msw.c (mswindows_popup_dialog_box):
13138         * event-msw.c (mswindows_wnd_proc):
13139         * frame-msw.c (mswindows_size_frame_internal):
13140         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13141         * menubar-msw.c (displayable_menu_item):
13142         * menubar-msw.c (mswindows_char_is_accelerator):
13143         * nt.c:
13144         * nt.c (mswindows_sigset):
13145         * nt.c (mswindows_sigrelse):
13146         * nt.c (mswindows_sigpause):
13147         * nt.c (mswindows_raise):
13148         * nt.c (timer_proc):
13149         * ntproc.c:
13150         * ntproc.c (find_child_console):
13151         * ntproc.c (sys_kill):
13152         * print.c:
13153         * print.c (std_handle_out_external):
13154         * process-nt.c (find_child_console):
13155         * process-nt.c (send_signal_the_95_way):
13156         * process-nt.c (ensure_console_window_exists):
13157         * process-nt.c (nt_create_process):
13158         * syssignal.h:
13159         rename msw_ to mswindows_ for consistency with general convention.
13160
13161         * emacs.c:
13162         * dumper.c:
13163         include nt.h, not syswindows.h.
13164
13165         * nt.c (mswindows_fstat):
13166         * nt.c (mswindows_stat):
13167         prefix mswindows_ instead of attempting to directly override the
13168         library functions.  fix declarations.
13169
13170         * nt.h:
13171         include syswindows.h.  move some sysdep.h stuff here.
13172
13173         * ntheap.h:
13174         include syswindows.h, not <windows.h>.
13175
13176         * ntplay.c:
13177         clean up headers.
13178
13179         * sysdep.c:
13180         clean up headers.
13181
13182         * sysdep.c (sys_fstat):
13183         * sysdep.c (sys_stat):
13184         call mswindows versions when appropriate.
13185
13186         * sysdep.h:
13187         move mswin decls to nt.h.
13188
13189         * syswindows.h:
13190         add long comment describing appropriate use of the various windows
13191         headers.
13192
13193 2000-06-11  Ben Wing  <ben@xemacs.org>
13194
13195         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13196
13197 2000-06-10  Ben Wing  <ben@xemacs.org>
13198
13199         * Makefile.in.in (release):
13200         Correction to make sure xemacs.exe always dumped when correct.
13201
13202         * alloca.c:
13203         * balloon_help.c:
13204         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13205
13206         * buffer.c (set_buffer_internal):
13207         [[[[2]]]]: Remove HAVE_FEP code.
13208
13209         * buffer.c (init_initial_directory):
13210         [3].
13211
13212         * bytecode.c:
13213         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13214         individual files.
13215
13216         * callproc.c:
13217         * callproc.c (call_process_cleanup):
13218         * callproc.c (Fold_call_process_internal):
13219         * callproc.c (child_setup):
13220         * callproc.c (getenv_internal):
13221         * callproc.c (init_callproc):
13222         * callproc.c (vars_of_callproc):
13223         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13224         __CYGWIN32__ -> CYGWIN.
13225         DOS_NT -> WIN32_NATIVE.
13226         Remove MSDOS support/references, converting to WIN32_NATIVE
13227           where correct.
13228         __MINGW32__ -> MINGW.
13229         Fix windows.h includes.
13230         Remove bogus HAVE_NTGUI.
13231
13232         * config.h.in:
13233         [2].
13234
13235         * console-msw.c:
13236         mswindows_message_outputted added for use in allowing startup
13237         errors on the console to be seen.
13238
13239         * console-msw.c (msw_ensure_console_allocated):
13240         * console-msw.c (msw_output_console_string):
13241         * console-msw.c (DHEADER):
13242         * console-msw.c (DOPAQUE_DATA):
13243         * console-msw.c (DEVENT):
13244         * console-msw.c (DCONS):
13245         * console-msw.c (DCONSCDR):
13246         * console-msw.c (DSTRING):
13247         * console-msw.c (DVECTOR):
13248         * console-msw.c (DSYMBOL):
13249         * console-msw.c (DSYMNAME):
13250         Fix warnings.
13251
13252         * console-stream.c (stream_init_console):
13253         Fix text/binary problems.
13254
13255         * device-msw.c:
13256         * device-msw.c (mswindows_finish_init_device):
13257         * device-msw.c (mswindows_delete_device):
13258         [1].
13259
13260         * device.c (handle_asynch_device_change):
13261         [3].
13262
13263         * dgif_lib.c:
13264         * dgif_lib.c (DGifOpenFileName):
13265         * dgif_lib.c (DGifOpenFileHandle):
13266         * dgif_lib.c (DGifGetLine):
13267         * dgif_lib.c (DGifGetPixel):
13268         Added config.h/lisp.h, fix up includes.
13269         [1].
13270
13271         * dired-msw.c:
13272         [4].
13273
13274         * dired.c:
13275         * dired.c (file_name_completion):
13276         * dired.c (Ffile_attributes):
13277         * dired.c (syms_of_dired):
13278         [1].
13279
13280         * dumper.c:
13281         * dumper.c (pdump_file_unmap):
13282         * dumper.c (pdump_load):
13283         [1].
13284
13285         * editfns.c:
13286         * editfns.c (Ftemp_directory):
13287         * editfns.c (user_login_name):
13288         * editfns.c (Fuser_real_login_name):
13289         * editfns.c (get_home_directory):
13290         [1].
13291
13292         * elhash.c (finish_marking_weak_hash_tables):
13293         [[[[5]]]]: Fix GCC warnings.
13294
13295         * emacs.c:
13296         * emacs.c (mswindows_handle_hardware_exceptions):
13297         * emacs.c (make_arg_list_1):
13298         * emacs.c (main_1):
13299         * emacs.c (Fkill_emacs):
13300         * emacs.c (Fdump_emacs):
13301         [1].
13302         Fix problems with nested crashes, add long comment.
13303
13304         * event-Xt.c (init_event_Xt_late):
13305         [1].
13306
13307         * event-msw.c:
13308         * event-msw.c (mswindows_dde_callback):
13309         * event-msw.c (mswindows_handle_sticky_modifiers):
13310         * event-msw.c (mswindows_wnd_proc):
13311         [1].
13312         [5].
13313
13314         * events.c (character_to_event):
13315         [1].
13316
13317         * fileio.c:
13318         * fileio.c (Ffile_name_directory):
13319         * fileio.c (Ffile_name_nondirectory):
13320         * fileio.c (directory_file_name):
13321         * fileio.c (Fexpand_file_name):
13322         * fileio.c (Fsubstitute_in_file_name):
13323         * fileio.c (Ffile_name_absolute_p):
13324         * fileio.c (check_executable):
13325         * fileio.c (Ffile_readable_p):
13326         * fileio.c (Ffile_accessible_directory_p):
13327         * fileio.c (Ffile_modes):
13328         * fileio.c (Funix_sync):
13329         * fileio.c (vars_of_fileio):
13330         [1]. [4].
13331
13332         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13333
13334         Expand getdefdir defn.
13335         Fix bogus rename() comment.
13336
13337         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13338         to use standard XEmacs include files, e.g. sysfile.h, rather
13339         than system-specific includes.
13340
13341         * fns.c:
13342         * fns.c (Fsubseq):
13343         [5]. [6].
13344
13345         * frame.c (vars_of_frame):
13346         [1].
13347
13348         * getloadavg.c:
13349         * getloadavg.c (getloadavg):
13350         [1]. [6].
13351         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13352         (We don't use it elsewhere in the code; just add a comment.)
13353
13354         * gif_io.c:
13355         [6].
13356         Add config.h.
13357
13358         * glyphs-msw.c:
13359         * glyphs-msw.c (mswindows_resource_instantiate):
13360         [1].
13361
13362         * glyphs-x.c (x_native_layout_instantiate):
13363         [5].
13364
13365         * gui-msw.c (Fmswindows_shell_execute):
13366         [1].
13367
13368         * insdel.c:
13369         [4].
13370
13371         * lisp.h:
13372         [4]. [5].
13373
13374         * lread.c (locate_file_in_directory_mapper):
13375         [1].
13376
13377         * lstream.c:
13378         [4].
13379
13380         * mem-limits.h:
13381         * mem-limits.h (get_lim_data):
13382         [1].
13383
13384         * menubar-msw.c:
13385         [4].
13386
13387         * ndir.h:
13388         [1].
13389
13390         * nt.c:
13391         * nt.c (getwd):
13392         * nt.c (closedir):
13393         * nt.c (rva_to_section):
13394         * nt.c (mswindows_executable_type):
13395         [1]. [6].
13396         Fix closedir() defn.
13397
13398         * nt.h:
13399         [[[[8]]]]: *_OK defs moved to sysfile.h.
13400
13401         * ntproc.c:
13402         [6]. [7].
13403
13404         * objects-x.c:
13405         [4].
13406
13407         * print.c:
13408         * print.c (std_handle_out_external):
13409         [1]. [4].
13410
13411         * process-nt.c:
13412         * process-nt.c (nt_create_process):
13413         [6].
13414         try to fix process quoting somewhat.
13415
13416         * process-unix.c (unix_create_process):
13417         [1].
13418
13419         * process.c:
13420         * process.c (vars_of_process):
13421         Add Vnull_device.
13422
13423         * process.h:
13424         [1].
13425
13426         * realpath.c:
13427         * realpath.c (xrealpath):
13428         [1].
13429
13430         * redisplay-tty.c (init_tty_for_redisplay):
13431         [3].
13432
13433         * redisplay.c:
13434         [4]. [6].
13435
13436         * scrollbar-msw.c:
13437         [4].
13438
13439         * sheap.c:
13440         * sheap.c (more_static_core):
13441         * sheap.c (report_sheap_usage):
13442         [5]. [6].
13443
13444         * signal.c:
13445         * signal.c (alarm_signal):
13446         [1]. [6].
13447
13448         * sound.c:
13449         [6].
13450
13451         * strftime.c:
13452         * strftime.c (zone_name):
13453         [1]. [5].
13454
13455         * symsinit.h (init_sunpro):
13456         [1].
13457
13458         * syscommctrl.h:
13459         commctrl.h not in Cygwin b20.1.
13460
13461         * sysdep.c:
13462         * sysdep.c (endif):
13463         * sysdep.c (sys_subshell):
13464         * sysdep.c (init_baud_rate):
13465         * sysdep.c (emacs_get_tty):
13466         * sysdep.c (emacs_set_tty):
13467         * sysdep.c (tty_init_sys_modes_on_device):
13468         * sysdep.c (init_system_name):
13469         * sysdep.c (sys_open):
13470         * sysdep.c (interruptible_open):
13471         * sysdep.c (sys_fopen):
13472         * sysdep.c (sys_mkdir):
13473         * sysdep.c (sys_rename):
13474         * sysdep.c (get_process_times_1):
13475         [1]. [6].
13476
13477         * sysdep.h:
13478         [1].
13479
13480         * sysdir.h:
13481         * sysdir.h (DIRENTRY_NONEMPTY):
13482         [1]. [6].
13483
13484         * sysdll.c (dll_init):
13485         * sysdll.h:
13486         [1].
13487
13488         * sysfile.h:
13489         [1]. [6]. [8].
13490         added text/binary defs.
13491
13492         * sysfloat.h:
13493         [1].
13494
13495         * sysproc.h:
13496         * sysproc.h (EDESTADDRREQ):
13497         * sysproc.h (poll_fds_for_input):
13498         [1]. [6].
13499
13500         * syspwd.h:
13501         [6].
13502
13503         * syssignal.h:
13504         [1].
13505
13506         * systime.h:
13507         [1]. [6].
13508
13509         * systty.h:
13510         [1].
13511
13512         * syswindows.h:
13513         [1].
13514         Always define WIN32_LEAN_AND_MEAN.
13515
13516         * unexcw.c (unexec):
13517         [5].
13518
13519         * unexec.c:
13520         * unexec.c (copy_text_and_data):
13521         * unexec.c (adjust_lnnoptrs):
13522         [1].
13523
13524         * unexnt.c:
13525         * unexnt.c (_start):
13526         [1].
13527
13528 2000-06-07  Ben Wing  <ben@xemacs.org>
13529
13530         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13531         was used only as a model.  We've long since extracted any useful
13532         logic or code out of this. (I just did an exhaustive search.)
13533
13534         * s\msdos.h: Removed.
13535
13536         * s\windows95.h: Removed.
13537
13538 2000-06-10  Ben Wing  <ben@xemacs.org>
13539
13540         * s\cygwin32.h:
13541         [1]. [5].
13542         Don't use extern with fun defs.
13543
13544         * s\mingw32.h:
13545         [1]. [7].
13546         Remove nt\inc include.
13547         Remove getdisk, getdefdir. (The former is unused, the latter
13548         expanded in fileio.h.)
13549
13550         * s\windowsnt.h:
13551         * s\windowsnt.h (WIN32_NATIVE):
13552         * s\windowsnt.h (HAVE_STRCASECMP):
13553         [1]. [7].
13554         Add long comment about preprocessor changes.
13555         Remove getdisk, getdefdir. (The former is unused, the latter
13556         expanded in fileio.h.)
13557
13558 2000-06-10  Ben Wing  <ben@xemacs.org>
13559
13560         * m\arm.h:
13561         * m\delta.h:
13562         * m\intel386.h:
13563         * m\sequent.h:
13564         * m\template.h:
13565         * m\windowsnt.h:
13566         [1].
13567         Remove bogus/unused NO_SOCK_SIGIO.
13568
13569 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13570
13571         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13572         not an Emchar.
13573
13574 2000-06-04  Mike Sperber <mike@xemacs.org>
13575
13576         * casetab.c (set_case_table): For `set-standard-case-table',
13577         actually deposit the new case tables where the rest of XEmacs can
13578         see them.
13579
13580 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13581
13582         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13583
13584 2000-06-05  Ben Wing  <ben@xemacs.org>
13585
13586         * callproc.c (child_setup): Don't do close_load_descs() under
13587         MS Windows.  Put in a comment explaining why.
13588
13589 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13590
13591         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13592         Toolkit shell" which breaks `kill-compilation' on Windows NT
13593         native, retaining STDERR handling improvements.
13594
13595 2000-06-01  Andreas Jaeger  <aj@suse.de>
13596
13597         * s/s390.h: Support for S390, based on a patch by Martin
13598         Schwidefsky <schwidefsky@de.ibm.com>.
13599
13600 2000-05-30  Andy Piper  <andy@xemacs.org>
13601
13602         * window.c (allocate_window):
13603         (make_dummy_parent):
13604         (Fset_window_configuration): use new hashtable type.
13605
13606         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13607         (struct image_instantiator_methods):
13608         (struct Lisp_Image_Instance): make instance geometry signed.
13609
13610         * glyphs.c (instantiate_image_instantiator):
13611         (image_instance_query_geometry):
13612         (image_instance_layout):
13613         (image_instance_layout):
13614         (query_string_geometry):
13615         (text_query_geometry):
13616         (image_instantiate):
13617         (image_instantiate):
13618         (cache_subwindow_instance_in_frame_maybe):
13619         (subwindow_query_geometry): make instance geometry signed.
13620
13621         * glyphs-widget.c (widget_query_geometry):
13622         (widget_layout):
13623         (button_query_geometry):
13624         (tree_view_query_geometry):
13625         (tab_control_query_geometry):
13626         (layout_query_geometry):
13627         (layout_layout):
13628         (native_layout_layout): make instance geometry signed.
13629
13630 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13631
13632         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13633         constant.
13634
13635         * general.c (syms_of_general): Add Qfull_assoc symbol.
13636
13637         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13638         correctly.
13639         (decode_weak_list_type): Decode full-assoc type.
13640         (encode_weak_list_type): Encode full-assoc type.
13641         (Fmake_weak_list): Update doc string.
13642
13643 2000-05-30  Andy Piper  <andy@xemacs.org>
13644
13645         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13646
13647         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13648         (decode_hash_table_weakness): ditto.
13649         (Fhash_table_weakness): ditto.
13650         (Fhash_table_type): ditto.
13651         (finish_marking_weak_hash_tables): ditto.
13652         (hash_table_weakness_validate): ditto.
13653         (syms_of_elhash): ditto.
13654
13655 2000-05-28  Martin Buchholz <martin@xemacs.org>
13656
13657         * XEmacs 21.2.34 is released.
13658
13659 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13660
13661         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13662         start cache.
13663         (updating_line_start_cache): Gone.
13664         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13665         generic code to force a minimum of 1 line laid out in the
13666         CMOTION_DISP case.
13667
13668 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13669
13670         * glyphs.c (instantiate_image_instantiator): Check for initialized
13671         height & width no longer special cases IMAGE_NOTHING.
13672         (nothing_instantiate): Set height and width of instance.
13673
13674 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13675
13676         * unexelf.c (unexec): Search for ".data" section.
13677         Initialize new_data2_offset from old_data_index.
13678         Remove redundant check for ElfW.
13679
13680 2000-05-23  Andy Piper  <andy@xemacs.org>
13681
13682         * glyphs.c (get_image_instantiator_governing_domain): allow more
13683         specific domains as the governing domain rather than expecting an
13684         exact match. This fixes problems with layouts.
13685
13686 2000-05-22  Andy Piper  <andy@xemacs.org>
13687
13688         * redisplay-output.c (compare_runes): check for non-images
13689
13690         * glyphs.c (set_glyph_dirty_p): ditto.
13691         (update_glyph_cachel_data): ditto.
13692
13693         * glyphs-widget.c (layout_post_instantiate): ditto.
13694         (layout_post_instantiate): ditto.
13695
13696         * event-msw.c (mswindows_wnd_proc): warning removal.
13697
13698 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13699
13700         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13701
13702         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13703
13704         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13705
13706         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13707         (mswindows_executable_type): mingw32 now has enough headers for
13708         this to work.
13709
13710 2000-05-20  Andy Piper  <andy@xemacs.org>
13711
13712         * console-msw.c (mswindows_output_last_error): ; -> ,
13713
13714 2000-05-12  Andy Piper  <andy@xemacs.org>
13715
13716         * console-msw.c (FROB): compare ints with ints.
13717
13718 2000-05-11  Andy Piper  <andy@xemacs.org>
13719
13720         * glyphs-x.c (x_finalize_image_instance): make minimal build
13721         happy.
13722
13723 2000-05-20  Ben Wing  <ben@xemacs.org>
13724
13725         * event-Xt.c:
13726         * event-Xt.c (vars_of_event_Xt):
13727         move modifier-keys-are-sticky to event-stream.c.
13728
13729         * event-msw.c:
13730         * event-msw.c (mswindows_enqueue_mouse_button_event):
13731         * event-msw.c (key_needs_default_processing_p):
13732         * event-msw.c (XEMSW_LCONTROL):
13733         * event-msw.c (mswindows_handle_sticky_modifiers):
13734         * event-msw.c (FROB):
13735         * event-msw.c (clear_sticky_modifiers):
13736         * event-msw.c (output_modifier_keyboard_state):
13737         * event-msw.c (output_alt_keyboard_state):
13738         * event-msw.c (mswindows_wnd_proc):
13739         * event-msw.c (mswindows_modifier_state):
13740         * event-msw.c (emacs_mswindows_handle_magic_event):
13741         implement sticky modifiers.
13742
13743         * event-stream.c:
13744         * event-stream.c (vars_of_event_stream):
13745         move modifier-keys-are-sticky here.
13746
13747         * lisp.h:
13748         add CHECK_FUNCTION.
13749
13750         * rangetab.c:
13751         implement map-range-table.
13752
13753
13754 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13755
13756         * redisplay-tty.c (reset_tty_modes):
13757         (tty_redisplay_shutdown): Adjust argument type to
13758         tty_frame_output_end.
13759
13760 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13761
13762         * eval.c (Fbacktrace): Don't output a line with only right
13763         parenthesis.
13764
13765 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13766
13767         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13768         (Fpq_reset_poll): Ditto.
13769
13770 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13771
13772         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13773
13774 2000-05-16  Ben Wing  <ben@xemacs.org>
13775
13776         * buffer.c:
13777         * buffer.c (dfc_convert_to/from_internal_format):
13778         * buffer.c (reinit_vars_of_buffer):
13779         Fix conversion functions to allow reentrancy.
13780
13781         * console-msw.c:
13782         * console-msw.c (mswindows_output_last_error):
13783         New fun, generally useful -- output a human-readable
13784         version of GetLastError() on the console.
13785
13786         * console-msw.h:
13787         * console-msw.h (struct mswindows_frame):
13788         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13789
13790         * console-stream.c (stream_output_begin):
13791         * console-stream.c (stream_output_end):
13792         * console-stream.c (stream_output_vertical_divider):
13793         * console-stream.c (stream_clear_region):
13794         * console-stream.c (stream_flash):
13795         * console-stream.c (console_type_create_stream):
13796         Delete blank stream methods, not needed.
13797
13798         * console.h (struct console_methods):
13799         Split begin/end methods into window and frame.
13800
13801         * event-msw.c:
13802         * event-msw.c (mswindows_handle_paint):
13803         * event-msw.c (output_alt_keyboard_state):
13804         * event-msw.c (mswindows_wnd_proc):
13805         * event-msw.c (vars_of_event_mswindows):
13806         Comment about problems with ignored-expose.
13807         Define mswindows-debug-events; not really implemented.
13808
13809         * frame-msw.c (mswindows_init_frame_1):
13810         random cleanups.
13811
13812         * glyphs-msw.c:
13813         * glyphs-msw.c (begin_defer_window_pos):
13814         * glyphs-msw.c (mswindows_unmap_subwindow):
13815         * glyphs-msw.c (mswindows_map_subwindow):
13816         * glyphs-msw.c (mswindows_resize_subwindow):
13817         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13818
13819         * glyphs.c (make_image_instance_1):
13820         Fix crash.
13821
13822         * gutter.c (Fredisplay_gutter_area):
13823         Use new begin/end methods.
13824
13825         * lisp.h (Dynarr_new2):
13826         New creation fun.
13827
13828         * redisplay-msw.c:
13829         * redisplay-msw.c (mswindows_frame_output_begin):
13830         * redisplay-msw.c (mswindows_frame_output_end):
13831         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13832         New begin/end methods -- handle DeferWindowPos.
13833
13834         * redisplay-output.c (redisplay_move_cursor):
13835         * redisplay-output.c (redraw_cursor_in_window):
13836         * redisplay-output.c (redisplay_update_line):
13837         * redisplay-output.c (redisplay_output_window):
13838         New begin/end methods.
13839
13840         * redisplay-tty.c:
13841         * redisplay-tty.c (tty_frame_output_begin):
13842         * redisplay-tty.c (tty_frame_output_end):
13843         * redisplay-tty.c (console_type_create_redisplay_tty):
13844         New begin/end methods.
13845
13846         * redisplay-x.c:
13847         * redisplay-x.c (x_window_output_begin):
13848         * redisplay-x.c (x_window_output_end):
13849         * redisplay-x.c (console_type_create_redisplay_x):
13850         New begin/end methods.
13851
13852         * redisplay.c (redisplay_frame):
13853         * redisplay.c (Fredisplay_echo_area):
13854         New begin/end methods.
13855         use MAYBE_DEVMETH for clear_frame; it may not exist.
13856
13857         * window.h (WINDOW_XFRAME):
13858         WINDOW_XFOO macros -- get locale and decode struct pointer.
13859
13860
13861 2000-05-12  Ben Wing  <ben@xemacs.org>
13862
13863         * emacs.c:
13864         * emacs.c (ensure_no_quitting_from_now_on):
13865         * emacs.c (fatal_error_signal):
13866         * emacs.c (mswindows_handle_hardware_exceptions):
13867         * emacs.c (main):
13868         * emacs.c (Fkill_emacs):
13869         * emacs.c (shut_down_emacs):
13870         * emacs.c (assert_failed):
13871         various improvements in fatal error handling.
13872
13873         * eval.c:
13874         move preparing_for_armageddon to emacs.c.
13875
13876         * lisp.h:
13877         declare fatal_error_in_progress.
13878
13879         * print.c:
13880         * print.c (std_handle_out_external):
13881         * print.c (std_handle_out_va):
13882         * print.c (stderr_out):
13883         * print.c (stdout_out):
13884         use console under mswin when no standard output.
13885         don't do code conversion during fatal error.
13886
13887         * scrollbar.c (Fscrollbar_page_up):
13888         * scrollbar.c (Fscrollbar_page_down):
13889         fix missing else.  reindent.
13890
13891 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13892
13893         Emergency fix.
13894
13895         * glyphs.h (GLYPH_CACHEL_DESCENT):
13896         (GLYPH_CACHEL_DESCENT):
13897         (GLYPH_CACHEL_DESCENT):
13898         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13899         used in case these are inline functions.
13900         Use more absurd values to error check.
13901
13902         include window.h for error check functions.
13903
13904 2000-05-11  Ben Wing  <ben@xemacs.org>
13905
13906         * cmdloop.c (Freally_early_error_handler):
13907         Display message box under windows; otherwise, message will disappear
13908         before it can be viewed.
13909
13910         * console-msw.c:
13911         * console-msw.c (Fmswindows_message_box):
13912         * console-msw.c (FROB):
13913         * console-msw.c (syms_of_console_mswindows):
13914         Define new fun `mswindows-message-box'.
13915         #### I will merge this into `popup-dialog-box'; just give me
13916         a bit of time.
13917
13918         * general.c:
13919         * general.c (syms_of_general):
13920         Some new symbols used in `mswindows-message-box'.
13921
13922         * glyphs.c:
13923         * glyphs.c (Fset_image_instance_property):
13924         put warning in this fun.
13925
13926         * glyphs.h:
13927         * glyphs.h (GLYPH_CACHEL_WIDTH):
13928         * glyphs.h (GLYPH_CACHEL_ASCENT):
13929         * glyphs.h (GLYPH_CACHEL):
13930         * glyphs.h (GLYPH_CACHEL_GLYPH):
13931         define error-checking versions to try to catch a bug i've seen --
13932         redisplay gets in an infinite loop because the glyph width of the
13933         continuation glyph is 65535.
13934
13935         * lisp.h:
13936         Extern message-box stuff.
13937
13938         * window.c (allocate_window):
13939         * window.c (make_dummy_parent):
13940         * window.c (Fset_window_configuration):
13941         Use EQUAL not EQ for subwindow caches to make them work a bit
13942         better. (Something is still very broken.)
13943
13944
13945 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13946
13947         * glyphs.c (image_instantiate): Suppress gcc warnings.
13948         (Fmake_image_instance): Fix doc string.
13949         * specifier.c (Fmake_specifier): Ditto.
13950
13951 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13952
13953         * paths.h.in (PATH_LOCK): Removed.
13954         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13955         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13956
13957 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13958
13959         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13960         Document (featurep '(and xemacs 21.02)).
13961
13962 2000-05-09  Ben Wing  <ben@xemacs.org>
13963
13964         * buffer.c (complex_vars_of_buffer):
13965         update modeline-format doc.
13966
13967         * device.h:
13968         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13969
13970         * emacs.c:
13971         timeline of all released versions of Emacs, for use in creating
13972         authorship comments and in synching up.
13973
13974         * glyphs-widget.c (image_instantiator_buttons):
13975         * glyphs-widget.c (image_instantiator_edit_fields):
13976         * glyphs-widget.c (image_instantiator_combo_box):
13977         * glyphs-widget.c (image_instantiator_scrollbar):
13978         * glyphs-widget.c (image_instantiator_progress_guage):
13979         * glyphs-widget.c (image_instantiator_tree_view):
13980         * glyphs-widget.c (image_instantiator_tab_control):
13981         * glyphs-widget.c (image_instantiator_labels):
13982         * glyphs-widget.c (image_instantiator_layout):
13983         * glyphs-widget.c (image_instantiator_native_layout):
13984         rename decode_domain method to governing_domain.
13985
13986         * glyphs.c:
13987         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13988         * glyphs.c (add_entry_to_device_ii_format_list):
13989         make sure we don't put an entry more than once into the list.
13990         * glyphs.c (check_instance_cache_mapper):
13991         *************************************************************
13992         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13993         HAVE BEEN GETTING.
13994         *************************************************************
13995         * glyphs.c (get_image_instantiator_governing_domain):
13996         clean up, expand on new concept of governing domain.
13997         * glyphs.c (instantiate_image_instantiator):
13998         * glyphs.c (allocate_image_instance):
13999         use governing_domain instead of cache_domain in naming.
14000         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
14001         * glyphs.c (make_image_instance_1):
14002         * glyphs.c (Fmake_image_instance):
14003         allow for any domain (not just device), and process the
14004         governing domain correctly.  very big doc fix.
14005         * glyphs.c (Fimage_instance_domain):
14006         new primitive, to retrieve the governing domain of an image instance.
14007         * glyphs.c (image_instantiate):
14008         use new governing_domain stuff.  this fixes a crash you could get
14009         by instantiating certain widget glyphs in frame locales. (should
14010         signal an error instead of crashing.)
14011         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
14012         * glyphs.c (Fglyphp): clean up doc.
14013         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
14014         * glyphs.c (syms_of_glyphs):
14015         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
14016         * glyphs.c (image_instantiator_format_create): add some comments about
14017         bogus code.
14018         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
14019         for current-display-table. (Apparently Hrjove implemented in 1998 a
14020         design I wrote up in 1996, but didn't update the doc string.)
14021
14022         * glyphs.h: clean up a doc string.
14023         * glyphs.h (governing_domain):
14024         * glyphs.h (struct image_instantiator_methods):
14025         changes for governing_domain stuff.
14026
14027         * gutter.c:
14028         * gutter.c (Fgutter_specifier_p):
14029         * gutter.c (Fgutter_size_specifier_p):
14030         * gutter.c (Fgutter_visible_specifier_p):
14031         * objects.c:
14032         * objects.c (Fcolor_specifier_p):
14033         * objects.c (Ffont_specifier_p):
14034         * objects.c (Fface_boolean_specifier_p):
14035         doc strings moved to make-*-specifier.
14036
14037         * redisplay.c (add_disp_table_entry_runes_1):
14038         * redisplay.c (generate_fstring_runes):
14039         * redisplay.c (screen):
14040         add random comments and doc strings.
14041
14042         * specifier.c:
14043         * specifier.c (Fmake_specifier):
14044         major overhaul of this doc string.
14045
14046         * specifier.c (Fvalid_specifier_domain_p):
14047         comment about the bogosity of image instances being domains.
14048         * specifier.c (decode_domain):
14049         now non-static, used in glyphs.c.
14050         * specifier.c (specifier_instance):
14051         comment about the bogosity of image instances being domains.
14052         * specifier.c (Fgeneric_specifier_p):
14053         move doc string to make-generic-specifier.
14054         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14055         rebackslashify.
14056
14057         * specifier.h:
14058         * specifier.h (DOMAIN_FRAME):
14059         * specifier.h (DOMAIN_LIVE_P):
14060         * specifier.h (DOMAIN_XDEVICE):
14061         rebackslashify.
14062         add comments about problems with these macros.
14063         prototype for decode_domain.
14064
14065         * toolbar.c:
14066         * toolbar.c (Ftoolbar_specifier_p):
14067         move doc string to `make-toolbar-specifier'.
14068
14069         * window.c (window_unmap_subwindows_cache_mapper):
14070         *************************************************************
14071         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14072         HAVE BEEN GETTING.
14073         *************************************************************
14074
14075 2000-05-09  Andy Piper  <andy@xemacs.org>
14076
14077         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14078
14079         * window.c (Fset_window_configuration): reset the frame subwindow
14080         cache and re-initialize the window subwindow caches.
14081
14082         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14083
14084 2000-05-09  Ben Wing  <ben@xemacs.org>
14085
14086         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14087         DWORD.
14088
14089 2000-04-26  Mike Woolley  <mike@bulsara.com>
14090
14091         * ntheap.c: Changed recreate_heap to limit the amount reserved
14092         for the heap to that which is actually available. Also now
14093         displays a message box (with some dignostics) in the event that
14094         it still can't start.
14095
14096 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14097
14098         * callproc.c (Fold_call_process_internal): GCPRO path
14099
14100 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14101
14102         Patch by Bill Perry.
14103
14104         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14105         back data instead of #ifdef.
14106         (Fscrollbar_page_down): ditto.
14107
14108 2000-05-07  Ben Wing  <ben@xemacs.org>
14109
14110         * buffer.h:
14111         Kludge for defining Qmswindows_tstr.
14112
14113         * nt.c:
14114         * nt.c (open_input_file):
14115         * nt.c (open_output_file):
14116         * nt.c (rva_to_section):
14117         * nt.c (mswindows_executable_type):
14118         Move all memory-mapped-file routines here (some were in unexnt.c,
14119         which is bad because they are used by process-nt.c, and unexnt
14120         won't be around when portable dumping).  Synched the above routines
14121         with FSF 20.6.
14122
14123         * nt.h:
14124         Removed ifdef'd out bogus code.
14125         Fixed some prototypes.
14126
14127         * nt.h (file_data):
14128         * nt.h (OFFSET_TO_RVA):
14129         * nt.h (RVA_TO_OFFSET):
14130         * nt.h (RVA_TO_PTR):
14131         Moved the memory-mapped-file structures, macros and prototypes
14132         here, to parallel nt.c.  ntheap.h should really be removed
14133         entirely, and it's a non-portable-dumper specific file.
14134
14135         * ntheap.h (round_to_next):
14136         Moved the memory-mapped-file structures, macros and prototypes
14137         to nt.h.
14138
14139         * ntproc.c (compare_env):
14140         Moved rva_to_section and mswindows_executable_type to nt.c.
14141         Moved compare_env to process-nt.c.
14142         ntproc.c will die, one day.
14143
14144         * ntproc.c (sys_spawnve):
14145         Account for win32_ -> mswindows_.
14146
14147         * process-nt.c:
14148         * process-nt.c (struct nt_process_data):
14149         * process-nt.c (ensure_console_window_exists):
14150         * process-nt.c (compare_env):
14151         * process-nt.c (nt_create_process):
14152         * process-nt.c (nt_kill_process_by_pid):
14153         * process-nt.c (syms_of_process_nt):
14154         * process-nt.c (vars_of_process_nt):
14155         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14156         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14157         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14158         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14159         Move compare_env here from ntproc.c.
14160
14161         * process.c (Fprocess_send_region):
14162         Takes an optional fourth argument, BUFFER, which should fix some
14163         problems with call-process.
14164
14165         * syscommctrl.h:
14166         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14167
14168         * syswindows.h:
14169         Move ICC_BAR_CLASSES to syscommctrl.h.
14170         Add preliminary macros for MSWindows/Mule.  More to come.
14171
14172         * unexnt.c:
14173         * unexnt.c (unexec):
14174         open_output_file moved to nt.c.
14175
14176
14177 2000-05-05  Andy Piper  <andy@xemacs.org>
14178
14179         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14180         instance from the frame cache also since GC may catch up too late
14181         to make frame deletion sane.
14182
14183 2000-05-04  Andy Piper  <andy@xemacs.org>
14184
14185         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14186         (x_finalize_image_instance): ungcpro on deletion.
14187
14188         * glyphs.c (image_instantiator_format_create): give pointers a
14189         query geometry method so that the geometry is at least set.
14190
14191         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14192         initialize layouts if using widgets.
14193
14194 2000-05-03  Andy Piper  <andy@xemacs.org>
14195
14196         * nt.c: remove bogus reference to sysmmsystem.h
14197
14198         * gui-x.c (popup_selection_callback): fix no selection abort.
14199
14200 2000-05-02  Andy Piper  <andy@xemacs.org>
14201
14202         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14203         (mswindows_widget_instantiate): ditto.
14204
14205         * glyphs-widget.c (initialize_widget_image_instance): initialize
14206         children correctly.
14207         (widget_instantiate): cope with children and items in the same
14208         instance.
14209
14210         * glyphs.c (mark_image_instance): cope with children as a first
14211         class member.
14212         (image_instance_equal): ditto.
14213         (image_instance_hash): ditto.
14214         (image_instance_changed): ditto.
14215
14216 2000-04-30  Andy Piper  <andy@xemacs.org>
14217
14218         * glyphs.c (subwindow_query_geometry): new function. Return some
14219         defaults.
14220         (subwindow_instantiate): don't assign dimensions if none have been
14221         given.
14222         (image_instantiator_format_create): add subwindow_query_geometry.
14223         (print_image_instance): cope with layouts as widgets.
14224
14225 2000-04-29  Andy Piper  <andy@xemacs.org>
14226
14227         * frame.c (delete_frame_internal): call
14228         free_frame_subwindow_instance_cache so that all subwindows are
14229         finalized before their parent.
14230         (mark_frame): remove subwindow_cachels.
14231         (Fmake_frame): remove subwindow_cachel manipulation.
14232         (allocate_frame_core): subwindow_instance_cache is a weak list.
14233         (delete_frame_internal): set subwindow_instance_cache to nil.
14234
14235         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14236         finalization safe.
14237         (mswindows_finalize_image_instance): use the device
14238         not the domain as the domain may have died already.
14239
14240         * glyphs-x.c (x_finalize_image_instance): ditto.
14241         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14242         HEIGHT.
14243
14244         * redisplay-output.c (redisplay_unmap_subwindows): update for
14245         subwindow instance cache as a weak list.
14246         (redisplay_unmap_subwindows_maybe): ditto.
14247         (redisplay_unmap_subwindows_except_us): ditto.
14248
14249         * glyphs.c (unmap_subwindow): error checking will check the domain
14250         so don't deal with it here. Don't use cachels anymore.
14251         (map_subwindow): ditto.
14252         (update_subwindow_cachel_data): remove old accessor names.
14253         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14254         (Fresize_subwindow): don't update cachel.
14255         (mark_subwindow_cachels):
14256         (update_subwindow_cachel_data):
14257         (add_subwindow_cachel):
14258         (get_subwindow_cachel_index):
14259         (update_subwindow_cachel):
14260         (reset_subwindow_cachels):
14261         (mark_subwindow_cachels_as_not_updated): deleted.
14262         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14263         subwindow instance to the frame cache.
14264         (find_matching_subwindow): update for subwindow instance cache as
14265         a weak list.
14266         (update_widget_instances): ditto.
14267         (image_instance_type_to_mask):inlined.
14268         (free_frame_subwindow_instance_cache): new function. finalize all
14269         subwindows that are instantiated.
14270
14271         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14272         of cachel information.
14273         (IMAGE_INSTANCE_DISPLAY_X):
14274         (IMAGE_INSTANCE_DISPLAY_Y):
14275         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14276         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14277         (XIMAGE_INSTANCE_DISPLAY_X):
14278         (XIMAGE_INSTANCE_DISPLAY_Y):
14279         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14280         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14281         remove subwindow_cachel structure and function references.
14282         (image_instance_type_to_mask): inline from glyphs.c
14283
14284         * redisplay.c (redisplay_frame): remove subwindow_cachel
14285         references.
14286
14287         * frame.h (struct frame): remove subwindow_cachels.
14288         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14289
14290         * frameslots.h: add subwindow_instance_cache.
14291
14292         * window.c (replace_window): check subwindow cache of replacement.
14293         (window_unmap_subwindows_cache_mapper):
14294         (window_unmap_subwindows): new functions. Unmap all subwindows
14295         cached on this window.
14296         (mark_window_as_deleted): unmap all subwindows.
14297
14298 2000-04-27  Andy Piper  <andy@xemacs.org>
14299
14300         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14301
14302         * glyphs-widget.c (widget_layout): return something.
14303         (layout_layout): return something. Fail if not initialized.
14304         (layout_query_geometry): ditto.
14305         (image_instantiator_native_layout): new function. Initialized the
14306         native layout type.
14307         (widget_instantiate): don't do layout stuff here.
14308
14309         * glyphs.c (instantiate_image_instantiator): reorded calling or
14310         instantiate and post_instantiate with layout in between.
14311         (image_instance_layout): be more selective about deciding whether
14312         the layout has been done or not.
14313
14314         * glyphs.h (struct image_instantiator_methods): return a value
14315         from layout_method.
14316
14317 2000-04-26  Andy Piper  <andy@xemacs.org>
14318
14319         * glyphs.c (allocate_image_instance): make initial width and
14320         height unspecified. Set initialized to 0.
14321
14322         * syscommctrl.h new file. Encapsulates commctrl.h.
14323
14324         * syswindows.h new file. Encapsulates windows.h.
14325
14326         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14327         * nt.c: ditto.
14328         * console-msw.h: ditto.
14329
14330         * redisplay-tty.c (tty_output_display_block): remove layout references.
14331
14332         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14333         window handle rather than just the frame.
14334
14335         * glyphs.c (mark_image_instance): remove layout references.
14336         (print_image_instance): ditto.
14337         (image_instance_equal): ditto.
14338         (image_instance_hash): ditto.
14339         (decode_image_instance_type): ditto.
14340         (encode_image_instance_type): ditto.
14341         (image_instantiate): ditto.
14342         (allocate_glyph): ditto.
14343         (Fimage_instance_height): ditto.
14344         (Fimage_instance_width): ditto.
14345         (update_subwindow): ditto.
14346
14347         * redisplay-x.c (x_output_display_block): recode for layouts as
14348         widgets.
14349
14350         * redisplay-output.c (redisplay_output_layout): recode for layouts
14351         as widgets.
14352         (compare_runes): remove layout references.
14353
14354         * redisplay-msw.c (mswindows_output_display_block): recode for
14355         layouts as widgets.
14356
14357         * glyphs-widget.c (image_instantiator_layout): remove
14358         layout_possible_dest_types.
14359         (layout_possible_dest_types): deleted.
14360
14361         * glyphs.h (image_instance_type): remove layout references.
14362         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14363         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14364         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14365
14366 2000-04-25  Andy Piper  <andy@xemacs.org>
14367
14368         * glyphs-widget.c (image_instantiator_buttons):
14369         (image_instantiator_edit_fields):
14370         (image_instantiator_combo_box):
14371         (image_instantiator_scrollbar):
14372         (image_instantiator_progress_guage):
14373         (image_instantiator_tree_view):
14374         (image_instantiator_tab_control):
14375         (image_instantiator_labels):
14376         (image_instantiator_layout): call default post_instantiate method.
14377         (widget_post_instantiate): new function. Simply lays out the
14378         widgets.
14379
14380         * glyphs.h (struct image_instantiator_methods): add
14381         post_instantiate method.
14382
14383         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14384         method calls.
14385
14386 2000-04-23  Andy Piper  <andy@xemacs.org>
14387
14388         * glyphs.h (struct image_instantiator_methods): add
14389         decode_domain_method.
14390         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14391         derived from the domain.
14392         (IMAGE_INSTANCE_FRAME): new accessor.
14393         (XIMAGE_INSTANCE_FRAME): ditto.
14394
14395         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14396         instead of _SUBWINDOW_FRAME.
14397         (finalize_image_instance): ditto.
14398         (Fimage_instance_foreground): ditto.
14399         (Fimage_instance_background): ditto.
14400         (image_instantiate): ditto.
14401         (update_subwindow_cachel): ditto.
14402         (update_subwindow): ditto.
14403         (unmap_subwindow): ditto.
14404         (map_subwindow): ditto
14405         (subwindow_instantiate): ditto.
14406         * glyphs-msw.c (mswindows_update_widget): ditto.
14407         (mswindows_progress_gauge_instantiate): ditto.
14408         (mswindows_tab_control_update): ditto.
14409         * glyphs-x.c (x_update_widget): ditto.
14410         (x_widget_instantiate): ditto.
14411         (x_tab_control_instantiate): ditto.
14412         (x_tab_control_update): ditto.
14413         * event-msw.c (mswindows_wnd_proc): ditto
14414
14415         * glyphs-widget.c (image_instantiator_layout): use
14416         subwindow_decode_domain.
14417         (image_instantiator_buttons): ditto.
14418         (image_instantiator_edit_fields): ditto.
14419         (image_instantiator_combo_box): ditto.
14420         (image_instantiator_scrollbar): ditto.
14421         (image_instantiator_progress_guage): ditto.
14422         (image_instantiator_tree_view): ditto.
14423         (image_instantiator_tab_control): ditto.
14424         (image_instantiator_labels): ditto.
14425         (image_instantiator_layout): ditto.
14426
14427         * glyphs.c: add instance error checking to many functions.
14428         (instantiate_image_instantiator): decode device from cache_domain.
14429         (image_instantiate): partially rewrite by using
14430         decode_image_instantiator_domain to determine what domain the
14431         instance needs to be cached in.
14432         (decode_image_instantiator_domain): new function. Determine what
14433         domain the image needs to be cached in.
14434         (check_window_subwindow_cache): new error checking function.
14435         (check_instance_cache_mapper): ditto.
14436         (check_image_instance_structure): ditto.
14437         (subwindow_decode_domain): new function. Encodes a window as a
14438         subwindow's cache domain.
14439         (image_instantiator_format_create): use it for text and
14440         subwindows.
14441
14442 2000-04-21  Andy Piper  <andy@xemacs.org>
14443
14444         * glyphs.c (image_instance_device): new function.
14445         (image_instance_frame): new function.
14446         (image_instance_window): new function.
14447         (image_instance_live_p): new function.
14448
14449         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14450         cache to nil.
14451
14452         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14453         (IMAGE_INSTANCE_DOMAIN): new accessor.
14454         (XIMAGE_INSTANCE_DOMAIN): ditto.
14455
14456         * glyphs-x.c (x_finalize_image_instance): device->domain.
14457
14458         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14459         (mswindows_finalize_image_instance): ditto.
14460
14461         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14462         (gif_instantiate): ditto.
14463         (png_instantiate): ditto.
14464         (tiff_instantiate): ditto.
14465
14466         * glyphs.c (instantiate_image_instantiator): use domain rather
14467         than device.
14468         (mark_image_instance): device -> domain.
14469         (print_image_instance): ditto.
14470         (finalize_image_instance): ditto.
14471         (image_instance_equal): ditto.
14472         (allocate_image_instance): ditto.
14473         (Fcolorize_image_instance): ditto.
14474         (query_string_geometry): ditto.
14475         (image_instantiate): ditto
14476         (query_string_font): ditto.
14477         (image_instantiate): ditto.
14478         (update_subwindow): ditto.
14479         (unmap_subwindow): ditto.
14480         (map_subwindow): ditto.
14481         (subwindow_instantiate): ditto.
14482
14483         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14484         (DOMAIN_FRAME): ditto.
14485         (DOMAIN_WINDOW): ditto.
14486         (DOMAIN_LIVE_P): ditto.
14487         (XDOMAIN_DEVICE): ditto.
14488         (XDOMAIN_FRAME): ditto.
14489         (XDOMAIN_WINDOW): ditto.
14490
14491         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14492         a valid specifier domain.
14493
14494 2000-04-19  Andy Piper  <andy@xemacs.org>
14495
14496         * glyphs-widget.c (syms_of_glyphs_widget): remove
14497         widget-callback-current-channel.
14498         (vars_of_glyphs_widget): ditto.
14499         * glyphs.h: ditto
14500
14501         * gui.c (get_gui_callback): revert to previous behaviour.
14502
14503 2000-04-18  Andy Piper  <andy@xemacs.org>
14504
14505         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14506         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14507         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14508
14509         * glyphs.c (image_instance_equal): add margin_width.
14510         (image_instance_hash): ditto.
14511
14512         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14513         (layout_query_geometry): ditto.
14514         (layout_layout): ditto.
14515         (syms_of_glyphs_widget): add margin-width.
14516         (image_instantiator_layout): allow margin-width.
14517
14518         * glyphs.c (update_widget_instances): make a normal function.
14519         (syms_of_glyphs): remove Qupdate_widget_instances.
14520         * glyphs.h: ditto.
14521
14522         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14523         so that we don't corrupt ideas about the last event or
14524         command. Remove widget-callback-current-channel fiddling.
14525         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14526
14527 2000-05-01  Martin Buchholz <martin@xemacs.org>
14528
14529         * XEmacs 21.2.33 is released.
14530
14531 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14532
14533         * make-src-depend: Allow dots in header file name.
14534
14535 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14536
14537         * mule-charset.h (struct charset_lookup): Add
14538         next_allocated_1_byte_leading_byte and
14539         next_allocated_2_byte_leading_byte.
14540         * mule-charset.c: Move above two variables so that those values
14541         will be dumped.
14542
14543 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14544
14545         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14546         when string length is zero.
14547         (find_charsets_in_emchar_string): Ditto.
14548
14549 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14550
14551         * lisp.h: extern Qdialog and Qmenubar.
14552
14553         * gui-x.c: added events.h.
14554                 also fixed typo which made the file uncompilable.
14555
14556         * general.c: Added Qmenubar and Qdialog
14557
14558 2000-04-28  Ben Wing  <ben@xemacs.org>
14559
14560         * frame-msw.c (mswindows_init_frame_1):
14561         * frame-msw.c (mswindows_mark_frame):
14562         * event-msw.c (mswindows_enqueue_dispatch_event):
14563         * console-msw.h:
14564         * console-msw.h (struct mswindows_frame):
14565         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14566         there are now three hash tables for callbacks.
14567         mswindows_enqueue_dispatch_event is no longer static.
14568
14569         * dialog-x.c (maybe_run_dbox_text_callback):
14570         * dialog-x.c (dbox_descriptor_to_widget_value):
14571         switch to new cons3 form for callbacks.
14572
14573         * glyphs-msw.c (mswindows_register_gui_item):
14574         * glyphs-msw.c (mswindows_widget_instantiate):
14575         * glyphs-msw.c (add_tree_item):
14576         * glyphs-msw.c (add_tab_item):
14577         new image instance parameter, so it can be passed to callback-ex.
14578         respect :callback-ex as well as :callback.
14579
14580         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14581         add :callback-ex.
14582
14583         * glyphs.c (print_image_instance):
14584         prettify, e.g. now prints widget type.
14585
14586         * gui-x.h:
14587         certain funs have new image instance parameter.
14588
14589         * gui.c:
14590         * gui.c (get_gui_callback):
14591         * gui.c (gui_item_add_keyval_pair):
14592         * gui.c (gui_item_init):
14593         * gui.c (gui_add_item_keywords_to_plist):
14594         * gui.c (mark_gui_item):
14595         * gui.c (gui_item_hash):
14596         * gui.c (gui_item_equal):
14597         * gui.c (copy_gui_item):
14598         * gui.c (syms_of_gui):
14599         recognize callback-ex in a number of places.
14600         also, fix the annoying "can't get out of yes-no dialog" bug.
14601
14602         * gui.h:
14603         * gui.h (struct Lisp_Gui_Item):
14604         recognize callback-ex in a number of places.
14605
14606         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14607         new parameter in button_item_to_widget_value.
14608
14609         * glyphs-x.c (x_update_widget):
14610         * glyphs-x.c (x_button_instantiate):
14611         * glyphs-x.c (x_button_update):
14612         * glyphs-x.c (x_progress_gauge_instantiate):
14613         * glyphs-x.c (x_edit_field_instantiate):
14614         * glyphs-x.c (x_combo_box_instantiate):
14615         * glyphs-x.c (x_tab_control_instantiate):
14616         * glyphs-x.c (x_label_instantiate):
14617         new image instance parameter in various places.
14618
14619         * event-Xt.c:
14620         * event-Xt.c (enqueue_Xt_dispatch_event):
14621         this fun gets exported.
14622
14623         * gui-msw.c:
14624         * gui-msw.c (mswindows_handle_gui_wm_command):
14625         handle both :callback and :callback-ex, and generate our own
14626         event because it's one of the callback-ex arguments.
14627
14628         * gui-x.c:
14629         * gui-x.c (popup_selection_callback):
14630         handle both :callback and :callback-ex, and generate our own
14631         event because it's one of the callback-ex arguments.
14632         * gui-x.c (button_item_to_widget_value):
14633         * gui-x.c (gui_items_to_widget_values_1):
14634         * gui-x.c (gui_item_children_to_widget_values):
14635         * gui-x.c (gui_items_to_widget_values):
14636         new image instance parameter in various places.
14637
14638         * fns.c (Freplace_list):
14639         fix small typo in doc string.
14640
14641         * lisp.h:
14642         declare enqueue_Xt_dispatch_event.
14643
14644 2000-04-28  Ben Wing  <ben@xemacs.org>
14645
14646         * buffer.c:
14647         * buffer.c (Frecord_buffer):
14648         * buffer.c (syms_of_buffer):
14649         delete record-buffer-hook.
14650
14651         * fns.c:
14652         * fns.c (Freplace_list):
14653         * fns.c (syms_of_fns):
14654         new primitive replace-list.
14655
14656         * frameslots.h:
14657         slot for old buffer-alist.
14658
14659         * lisp.h:
14660         exfun replace-list.
14661
14662         * redisplay.c:
14663         * redisplay.c (redisplay_frame):
14664         * redisplay.c (syms_of_redisplay):
14665         * redisplay.c (vars_of_redisplay):
14666         new hook buffer-list-changed-hook.
14667         call it.
14668
14669 2000-04-27  Ben Wing  <ben@xemacs.org>
14670
14671         * extents.h: extern in_modeline_generation.
14672
14673         * redisplay.c (generate_formatted_string_db): set
14674         in_modeline_generation.
14675
14676         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14677         flags if in modeline generation.  otherwise frame-modified-tick
14678         is ticked far too often.
14679         Declare in_modeline_generation.
14680
14681 2000-04-26  Ben Wing  <ben@xemacs.org>
14682
14683         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14684         option.
14685         (vars_of_emacs): add quick-build as an error-checking option.
14686         A bit kludgy, but there doesn't seem much point in creating
14687         a real var for this.
14688
14689         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14690
14691 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14692
14693         * redisplay.h (struct display_line): Add a new variable,
14694         line_continuation.
14695
14696         * redisplay.c (create_text_block): Set dl->line_continuation if
14697         the line continues.
14698         (create_string_text_block): Ditto.
14699         (regenerate_window_incrementally): Use line_continuation instead
14700         of searching continuation glyph.
14701         (add_margin_runes): Call add_glyph_rune.
14702         (add_glyph_rune): Handle margin glyph.
14703
14704 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14705
14706         * filelock.c (fill_in_lock_file_name):
14707         ANSIfy.
14708         Check for IS_ANY_SEP instead of '/'.
14709         (lock_file_1):
14710         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14711         Never check errno without first seeing that system call failed.
14712         (unlock_file): Add GCPRO.
14713         (Flock_buffer): Fix docstring.
14714         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14715
14716 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14717
14718         * sysdep.c (get_pty_max_bytes):
14719         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14720         strings longer than 252 bytes.
14721
14722         * md5.c: Unconditionally include ANSI header <limits.h>
14723
14724         * glyphs-x.c (convert_EImage_to_XImage):
14725         * lisp-union.h (union Lisp_Object):
14726         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14727
14728 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14729
14730         * filelock.c (current_lock_owner): Remove unused variable o, p.
14731
14732 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14733
14734         * callint.c: Remove multiply defined symbol Qlet
14735         (syms_of_callint): ditto.
14736
14737 2000-04-14  Andy Piper  <andy@xemacs.org>
14738
14739         * general.c (syms_of_general): add last-command, this-command, let
14740         and funcall.
14741
14742         * lisp.h: declare various symbols.
14743
14744         * glyphs.h: declare Qwidget_callback_current_channel;
14745
14746         * glyphs-widget.c (syms_of_glyphs_widget): add
14747         Qgui_callback_current_channel.
14748         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14749
14750         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14751         widget-callback-current-channel when invoking the interactive
14752         arg. Also bind last-command and next-command when invoking the
14753         widget updates.
14754         * gui-x.c (popup_selection_callback): ditto.
14755
14756         * gui.c (get_gui_callback): massage args so that we are always
14757         calling eval. This allows us to add our own variable bindings
14758         outside.
14759
14760         * glyphs-x.c (x_button_instantiate): use
14761         gui_items_to_widget_values since this is GC safe.
14762         (x_progress_gauge_instantiate): ditto.
14763         (x_edit_field_instantiate): ditto.
14764         (x_label_instantiate): ditto.
14765
14766         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14767         (emacs_Xt_event_widget_focus_out): new function
14768         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14769         focus.
14770         (emacs_Xt_event_add_widget_actions): new function. add focus
14771         functions as actions.
14772         (init_event_Xt_late): use it.
14773
14774 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14775
14776         * event-stream.c (Fdispatch_event): Doc fix.
14777
14778 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14779
14780         * postgresql.c: Remove all references to PQsetenv*.
14781
14782         * postgresql.h: Remove references to PGsetenvHandler object.
14783         * lrecord.h (lrecord_type): Ditto.
14784
14785 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14786
14787         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14788         real_heigh and real_width members, and accessor macros for these.
14789
14790         * glyphs-msw.c (init_image_instance_geometry): New function.
14791         (init_image_instance_from_dibitmap): Use it.
14792         (mswindows_resource_instantiate): Use it.
14793         (init_image_instance_from_xbm_inline): Use it.
14794         (mswindows_initialize_image_instance_mask): Use real bitmap
14795         geometry.
14796         (mswindows_create_resized_bitmap): Ditto.
14797         (mswindows_create_resized_mask): Ditto.
14798
14799         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14800         and bitmap to their surface size.
14801
14802 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14803
14804         * process-unix.c (unix_send_process): Guard against process MIA
14805         after Faccept_process_output.
14806
14807 2000-04-11  Ben Wing  <ben@xemacs.org>
14808
14809         * eval.c (unbind_to_hairy): fix brokenness introduced by
14810         nanosecond speed improvements.
14811
14812 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14813
14814         * sunplay.c (init_device): To play sounds correctly, the device
14815         apparently needs to be initialized at least once by XEmacs.  Make
14816         it so.
14817
14818 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14819
14820         * redisplay.c (add_margin_runes): Add text image glyph
14821           handling.
14822
14823 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14824
14825         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14826         gcc is newer than 2.5.
14827
14828 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14829
14830         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14831
14832         * fns.c (size_bit_vector):
14833         * alloc.c (size_vector):
14834         (make_vector_internal):
14835         (make_bit_vector_internal):
14836         (sweep_bit_vectors_1):
14837         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14838
14839 2000-04-06  Andy Piper  <andy@xemacs.org>
14840
14841         * gmalloc.c (malloc): undo previous change.
14842         (malloc): ditto.
14843         (free): ditto.
14844         (realloc): ditto.
14845
14846 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14847
14848         * line-number.c (buffer_line_number): Revert to former version.
14849
14850 2000-04-06  Andy Piper  <andy@xemacs.org>
14851
14852         * gmalloc.c (malloc): add error checking.
14853         (malloc): ditto.
14854         (free): ditto.
14855         (realloc): ditto.
14856
14857         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14858         button_item_to_widget_value arg.
14859
14860         * glyphs-x.c (x_button_instantiate): add extra
14861         button_item_to_widget_value arg.
14862         (x_progress_gauge_instantiate): ditto.
14863         (x_edit_field_instantiate): ditto.
14864         (x_label_instantiate): ditto.
14865
14866         * gui-x.c (gui_items_to_widget_values_1): add extra
14867         button_item_to_widget_value arg.
14868         (button_item_to_widget_value): add extra menu_item_p arg.
14869
14870         * gui-x.h: change signature of button_item_to_widget_value.
14871
14872         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14873         button_item_to_widget_value arg.
14874
14875 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14876
14877         * buffer.h (struct buffer): auto_save_modified should be long.
14878
14879 2000-04-05  Andy Piper  <andy@xemacs.org>
14880
14881         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14882         type.
14883         (button_query_geometry): give a little more room so that athena
14884         buttons fit.
14885
14886 2000-04-05  Andy Piper  <andy@xemacs.org>
14887
14888         * faces.c (complex_vars_of_faces): The widget face should inherit
14889         the font of the gui-element face.
14890
14891 2000-04-04  Andy Piper  <andy@xemacs.org>
14892
14893         * glyphs-x.c (x_button_update): new function. unconditionally
14894         update a button's state when the instance is dirty.
14895         (image_instantiator_format_create_glyphs_x): add x_button_update.
14896         (x_widget_instantiate): remove old resize cruft.
14897
14898 2000-04-02  Andy Piper  <andy@xemacs.org>
14899
14900         * frame.c (change_frame_size_1): The introduction of gutters means
14901         that we need to allow 0 as a potential frame dimension.
14902
14903 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14904
14905         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14906         image glyph if allow_cursor.
14907         (add_hscroll_rune): Don't allow cursor to border glyph.
14908         (create_text_block): Ditto.
14909
14910         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14911         text not in buffer.
14912         (redisplay_output_layout): Call ensure_face_cachel_complete for
14913         text image glyph.
14914
14915
14916 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14917
14918         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14919
14920         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14921         not in buffer
14922
14923         * redisplay-tty.c (tty_output_display_block): Delete the routine
14924         for text image glyph
14925         * redisplay-x.c (x_output_display_block): ditto
14926         * redisplay-msw.c (mswindows_output_display_block): ditto
14927
14928 2000-02-02  Mike Alexander  <mta@arbortext.com>
14929
14930         Note: Some of these were committed by accident as part of other
14931         patches.
14932
14933         * regex.c (regex_compile): Avoid compiler warnings.
14934
14935         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14936
14937         * nt.h: Declare term_ntproc correctly.
14938
14939         * nt.c: Remove incorrect declaration of get_home_directory which
14940         is declared correctly in lisp.h.
14941
14942         * keymap.c (get_keyelt): Avoid compiler warnings.
14943         (raw_lookup_key_mapper): Avoid compiler warnings.
14944
14945         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14946
14947         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14948
14949         * filemode.c (mode_string): Avoid compiler warnings.
14950
14951         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14952         avoid warning.
14953
14954         * events-mod.h: Undef some things that winuser.h defines differently.
14955
14956         * data.c (Faset): Avoid compiler warnings.
14957
14958         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14959
14960 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14961
14962         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14963         Fall through to simple beep on error.
14964         Replace "extern" by real header file.
14965
14966         * linuxplay.c: Use nativesound.h
14967         (play_sound_data): Return error code. Be less verbose on error.
14968
14969         * sunplay.c: Use nativesound.h
14970         (play_sound_data): Return error code. Be less verbose on error.
14971
14972         * ntplay.c: Use nativesound.h
14973         (play_sound_data): Return fake error code
14974
14975         * sgiplay.c: Use nativesound.h
14976         (play_sound_data): Return error code
14977
14978         * hpplay.c: Use nativesound.h, partially implement
14979         new error code. Break compilation until finished.
14980         (play_sound_data): error code.
14981
14982         * nativesound.h (play_sound_file):
14983           (play_sound_data): Prototype in new header.
14984
14985 2000-03-31  Andy Piper  <andy@xemacs.org>
14986
14987         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14988         for toggle and radio buttons.
14989         (image_instantiator_buttons): use it.
14990
14991 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14992
14993         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14994         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14995         found. Scrollbar event probably belonged to some old config.
14996
14997 2000-03-31  Andy Piper  <andy@xemacs.org>
14998
14999         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
15000         than 1.
15001         (initialize_widget_image_instance): default layout to
15002         LAYOUT_HORIZONTAL rather than 0.
15003         (widget_instantiate): reverse the item list at the end rather than
15004         every iteration.
15005         (layout_layout): re-code for the border text at the front of the
15006         item list rather than at the end.
15007         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
15008         provided by the user.
15009         (widget_query_geometry): comment.
15010
15011 2000-03-30  Andy Piper  <andy@xemacs.org>
15012
15013         * glyphs-widget.c (image_instantiator_layout): allow standard
15014         widget keywords in layouts.
15015
15016         * gutter.c (output_gutter): cope with nil gutter contents.
15017
15018         * frame.c (Fset_frame_properties): add gutter docs.
15019
15020 2000-03-29  Andy Piper  <andy@xemacs.org>
15021
15022         * toolbar-msw.c (TBSTYLE_FLAT): add.
15023         (mswindows_output_toolbar): minor fiddling.
15024
15025 2000-03-29  Andy Piper  <andy@xemacs.org>
15026
15027         * gutter.c (output_gutter): force gutter size recalculation if
15028         what we are trying to display won't fit.
15029         (update_gutter_geometry): new function. A per-gutter version of
15030         update_frame_gutter_geometry.
15031         (update_frame_gutter_geometry): use it.
15032         (redraw_exposed_gutter): add extra debugging output.
15033
15034 2000-03-28  Mike Alexander  <mta@arbortext.com>
15035
15036         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15037         (pdump_file_unmap): Implement it on Windows
15038         (pdump_file_get): Save alocated handles for pdump_file_unmap
15039
15040 2000-03-28  Andy Piper  <andy@xemacs.org>
15041
15042         * gui.c (get_gui_callback): treat Quit specially.
15043
15044 2000-03-27  Andy Piper  <andy@xemacs.org>
15045
15046         * glyphs.c (image_instantiate): be careful to check in the same
15047         way we assigned.
15048
15049 2000-03-27  Didier Verna  <didier@xemacs.org>
15050
15051         * config.h.in: define the proper SMART_INCLUDE macro.
15052         handle renaming of `foo_h_path' to `foo_h_file'.
15053
15054         * database.c: ditto.
15055
15056         * emacs.c: ditto.
15057
15058         * linuxplay.c: ditto.
15059
15060         * terminfo.c: ditto.
15061
15062         * tooltalk.h: ditto.
15063
15064 2000-03-27  Andy Piper  <andy@xemacs.org>
15065
15066         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15067         gets updated whenever the face might have changed.
15068
15069 2000-03-26  Mike Alexander  <mta@arbortext.com>
15070
15071         * dumper.c (pdump_resource_free): Fix the comment.
15072
15073 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15074
15075         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15076
15077 2000-03-22  Mike Alexander  <mta@arbortext.com>
15078
15079         * dumper.c: Include Windows headers on Windows
15080         (pdump_resource_free): Add a body to the function
15081         (pdump_load): exe_name -> exe_path and add some comments.
15082
15083 2000-03-25  Mike Alexander  <mta@arbortext.com>
15084
15085         * gui.c (copy_gui_item_tree): Return a value in all cases
15086
15087 2000-03-21  Didier Verna  <didier@xemacs.org>
15088
15089         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15090         lwlib/config.h.in.
15091         (SMART_INCLUDE): new macro.
15092         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15093         the proper location.
15094
15095         * postgresql.c: use it.
15096
15097         * inline.c: ditto.
15098
15099 2000-03-24  Andy Piper  <andy@xemacs.org>
15100
15101         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15102         do this.
15103
15104 2000-03-24  Andy Piper  <andy@xemacs.org>
15105
15106         * redisplay-output.c (compare_runes): use image_instance_changed
15107         to detect changes. Do not depend on glyphs_changed, only depend on
15108         dirtiness.
15109          (redisplay_output_layout): add debug messages.
15110         (compare_runes): ditto.
15111
15112         * glyphs.h: declare new functions.
15113         (struct Lisp_Image_Instance): remove percent and associated
15114         accessors.
15115
15116         * gui.h: declare new copying functions.
15117
15118         * gui.c (copy_gui_item_tree): new function.
15119         (copy_gui_item): new function.
15120         (gui_item_id_hash): revert to standard hash.
15121         (gui_item_hash): ditto.
15122         (gui_item_hash_internal): deleted.
15123         (mark_gui_item): mark value.
15124         (gui_item_add_keyval_pair): add value.
15125         (gui_item_init): ditto.
15126         (gui_add_item_keywords_to_plist): ditto.
15127         (gui_item_equal): ditto.
15128         (syms_of_gui): add Q_value.
15129
15130         * glyphs-x.c (x_progress_gauge_update): use pending items and
15131         value for setting the state.
15132         (x_update_widget): don't set items from pending here.
15133
15134         * glyphs-widget.c (update_widget): update items here.
15135         (progress_gauge_set_property): use items for storing value. Put
15136         new value in pending items.
15137
15138         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15139         items for new value. Convert percent -> value.
15140         (mswindows_tab_control_update): don't update items here.
15141
15142         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15143         (update_subwindow): ditto.
15144         (image_instance_changed): new function. Compare hash values and
15145         past and present widget items.
15146         (image_instantiate): We more careful about where we instantiate
15147         things.
15148         (image_instantiate): add error checking.
15149
15150         * gutter.c (syms_of_gutter): use -hook.
15151
15152 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15153
15154         * console-tty.c (Fset_console_tty_input_coding_system): Use
15155         Qkeyboard.
15156         (Fset_console_tty_output_coding_system): Use Qterminal.
15157         (tty_init_console): Use Qkeyboard and Qterminal.
15158
15159 2000-03-21  Ben Wing  <ben@xemacs.org>
15160
15161         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15162         From Mike Alexander <mta@arbortext.com>.
15163
15164 2000-03-21  Ben Wing  <ben@xemacs.org>
15165
15166         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15167         process brokenness.  Proper implementation to come.
15168         * callproc.c:
15169         Rename call-process-internal to old-call-process-internal.
15170         New impl. in process.el.
15171
15172 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15173
15174         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15175
15176 2000-03-20  Andy Piper  <andy@xemacs.org>
15177
15178         * glyphs.c (full_list_hash): make hashes of the same elements in
15179         different orders return different values.
15180
15181 2000-03-20  Martin Buchholz <martin@xemacs.org>
15182
15183         * XEmacs 21.2.32 is released.
15184
15185 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15186
15187         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15188         (DFC_MALLOC_USE_CONVERTED_DATA):
15189         Add aliasing-safe casts to allow use with char* or unsigned char*
15190         lvalues.
15191
15192         * eldap.c (Fldap_open):
15193         (Fldap_search_basic):
15194         (Fldap_add):
15195         (Fldap_modify):
15196         Make C++-compilable.
15197         Make sure GCPRO'ed variables are initialized.
15198         Use temp variables to avoid repeated calls to Flength.
15199
15200 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15201
15202         * sysfile.h:
15203         Make sure PATH_MAX is always defined.
15204         Include limits.h for PATH_MAX.
15205         Deprecate use of MAXPATHLEN.
15206
15207 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15208
15209         * emacs.c: Add reinit_vars_of_fileio.
15210         * symsinit.h: Add reinit_vars_of_fileio.
15211         * fileio.c (reinit_vars_of_fileio): New.
15212         * fileio.c (Fmake_temp_name):
15213         Initialize temp_name random number from microseconds to make
15214         collisions even less likely.  Initialize always at process startup
15215         time.  (make-temp-name) used to return the same file name twice in
15216         a row when PDUMP.
15217         Random stylistic fiddling.
15218         Comment fixes.
15219
15220 2000-03-20  Andy Piper  <andy@xemacs.org>
15221
15222         * glyphs.c (image_instantiate): allow text glyphs to be
15223         instantiated in the minibuffer window.
15224
15225 2000-03-19  Andy Piper  <andy@xemacs.org>
15226
15227         * glyphs.c (image_instance_hash): be careful about which items we
15228         hash on.
15229
15230         * glyphs-widget.c (tab_control_set_property): record into pending
15231         items rather than the actual items.
15232
15233         * glyphs-x.c (x_update_widget): use pending items to update with.
15234
15235         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15236         to update with.
15237
15238         * glyphs.c (mark_image_instance): mark pending items.
15239
15240         * window.c (Fset_window_configuration): record the buffer.
15241         (Fselect_window): totally revert previous change which breaks many
15242         things.
15243
15244 2000-03-18  Andy Piper  <andy@xemacs.org>
15245
15246         * glyphs-msw.c (mswindows_tab_control_update): force selected
15247         item.
15248
15249         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15250         window domain cache, otherwise we get inconsistencies at
15251         startup. There is something fishy at startup which can lead to the
15252         minibuffer being the selected window when the gutter content is
15253         instantiated.
15254
15255         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15256         gcpros.
15257         (parse_gui_item_tree_children): ditto.
15258         (parse_gui_item_tree_item): ditto.
15259
15260         * glyphs.c (Fupdate_widget_instances): return something.
15261
15262 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15263
15264         * window.c (Fselect_window): Undo 2000-03-17 change.
15265
15266 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15267
15268         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15269         against v7.0 libraries.  Insta-coredump city until the postgres
15270         folks fix it.
15271
15272 2000-03-17  Andy Piper  <andy@xemacs.org>
15273
15274         * faces.c (complex_vars_of_faces): don't give the widget face an
15275         inherited background pixmap.
15276
15277         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15278         selected item.
15279
15280         * event-stream.c (Fdispatch_non_command_events): return something.
15281
15282         * gutter.c (output_gutter): use widget face.
15283         (clear_gutter): ditto.
15284
15285         * NEWS: adjust again.
15286
15287         * window.c (Fselect_window): make sure this runs to completion to
15288         avoid oddities with Fset_window_configuration.
15289         (Fcurrent_window_configuration): in general do not save the
15290         minibuffer as the selected window.
15291
15292         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15293
15294 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15295
15296         * emacs.c (Frunning_temacs_p): Revert previous patch.
15297         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15298
15299 2000-03-16  Andy Piper  <andy@xemacs.org>
15300
15301         * glyphs-x.c (x_tab_control_update): if no widget values then
15302         return.
15303
15304         * NEWS: update for new features.
15305
15306         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15307         synthetic event to the native system.
15308         (reinit_vars_of_event_Xt): set force_event_pending to
15309         emacs_Xt_force_event_pending.
15310
15311         * events.h (struct event_stream): add force_event_pending.
15312
15313         * specifier.c (recompute_one_cached_specifier_in_window): add
15314         comment.
15315
15316         * redisplay.c (redisplay_frame): don't call
15317         update_frame_subwindows. Reset subwindow cachels when
15318         subwindows_changed, removing this was an optimization too far.
15319
15320         * redisplay-output.c (compare_runes): reorganize so that we catch
15321         glyph changes when we want them. Set optimize_output when this
15322         would help layouts.
15323         (redisplay_output_layout): remove frame_really_changed, use
15324         optimize_output instead.
15325
15326         * redisplay-msw.c (mswindows_output_display_block): reset
15327         optimize_output after outputting a glyph.
15328         * redisplay-x.c (x_output_display_block): ditto.
15329         * redisplay-tty.c (tty_output_display_block): ditto.
15330
15331         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15332         functions.
15333         (gutter_specs_changed): do specific gutter positions.
15334         (top_gutter_specs_changed): new function. Only update the
15335         specified gutter specs.
15336         (bottom_gutter_specs_changed): ditto.
15337         (left_gutter_specs_changed): ditto.
15338         (right_gutter_specs_changed): ditto.
15339
15340         * gui.c (gui_item_hash_internal): new function, does a real hash.
15341         (gui_item_id_hash): use it.
15342         (gui_item_hash): hash the eval'ed gui_item.
15343
15344         * gui-x.c (popup_selection_callback): send an eval event to call
15345         Fupdate_widget_instances.
15346
15347         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15348         to call Fupdate_widget_instances.
15349
15350         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15351         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15352
15353         * glyphs.c: (update_frame_subwindows): deleted.
15354         (Fupdate_widget_instances): new function for updating the dirty
15355         state of widgets that might have changed.
15356         (syms_of_glyphs): add Qupdate_widget_instances.
15357         (full_list_hash): hash a list completely.
15358         (image_instance_hash): use it for items and properties.
15359
15360         * frame-msw.c (mswindows_size_frame_internal): remove unused
15361         variable.
15362
15363         * faces.h (struct face_cachel): fix comment.
15364
15365         * event-stream.c (Fdispatch_non_command_events): new
15366         function. Process non-command events, forcing an event cycle
15367         beforehand.
15368         (syms_of_event_stream): declare.
15369         (event_stream_force_event_pending): new function. Force an event
15370         on the native event queue so that an event cycle will occur next
15371         time we check.
15372
15373         * event-msw.c:
15374         (struct ntpipe_shove_stream):
15375         (mswindows_enqueue_dispatch_event):
15376         (mswindows_dequeue_dispatch_event):
15377         (mswindows_cancel_dispatch_event):
15378         (mswindows_pump_outstanding_events):
15379         (mswindows_drain_windows_queue):
15380         (mswindows_handle_paint):
15381         (mswindows_wnd_proc):
15382         (mswindows_key_to_emacs_keysym):
15383         (get_process_input_waitable):
15384         (emacs_mswindows_delete_stream_pair): re-indent file.
15385         (mswindows_need_event): do not process further fds if the windows
15386         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15387         fixes the 100% cpu problem.
15388         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15389
15390 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15391
15392         * alloc.h: New.
15393         * dumper.h: New.
15394         * dumper.c: New.
15395
15396         * emacs.c: Moved dump file searching to dumper.c.
15397         (Frunning_temacs_p): Fixed.
15398
15399         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15400         last_lrecord_type_index_assigned.
15401
15402 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15403
15404         * symsinit.h: Added reinit parameter to init_console_stream
15405         declaration.
15406
15407         * lisp.h: Added file parameter to pdump_load declaration.
15408
15409         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15410         support.  Added dump file searching.
15411
15412         * config.h.in: Added EMACS_PROGNAME.
15413
15414         * console-stream.c (init_console_stream): Fix reinitialisation
15415         when running from temacs.
15416
15417         * alloc.c (pdump): Add id support.
15418         (pdump_load): Add file parameter and signature/id support.
15419
15420         * Makefile.in.in: Add full pdump support.
15421
15422 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15423
15424         * postgresql.c: Update documentation to reflect latest code
15425         status.
15426         (print_result): Show tuple counts in printed representation when
15427         appropriate.
15428         (Fpq_put_nbytes): MULE-ize.
15429         (Fpq_get_line_async): Ditto.
15430
15431 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15432
15433         * postgresql.c (Fpq_lo_import): Fix return value.
15434         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15435
15436 2000-03-13  Ben Wing  <ben@xemacs.org>
15437
15438         * alloc.c (pdump_load):
15439         Fix compile warning under mswin.
15440
15441 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15442
15443         * postgresql.c: Mule-ization, bug fixes.
15444         Use PG_CODING to encapsulate coding system name changes.
15445         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15446         (pg-coding-system): Create.
15447
15448         (Fpq_conn_defaults): Mule-ize.
15449         (Fpq_connectdb): Mule-ize & bug fix.
15450         (Fpq_connect_start): Mule-ize.
15451         (Fpq_set_client_encoding): Mule-ize.
15452         (Fpq_finish): Document `DEAD' connection status.
15453         (Fpq_clear): Ditto.
15454         (Fpq_pgconn): Mule-ize.
15455         (Fpq_exec): Mule-ize & bug fix.
15456         (Fpq_send_query): Ditto.
15457         (Fpq_get_result): Ditto.
15458         (Fpq_res_status): Mule-ize.
15459         (Fpq_result_error_message): Mule-ize.
15460         (Fpq_ntuples): fix comments.
15461         (Fpq_fname): Mule-ize.
15462         (Fpq_fnumber): Mule-ize.
15463         (Fpq_ftype): fix comments.
15464         (Fpq_get_value): Mule-ize.
15465         (Fpq_cmd_status): Ditto.
15466         (Fpq_cmd_tuples): Ditto.
15467         (Fpq_oid_value): Ditto.
15468         (Fpq_notifies): Ditto.
15469         (Fpq_lo_import): Ditto.
15470         (Fpq_lo_export): Ditto.
15471         (Fpq_get_line): Ditto.
15472         (Fpq_put_line): Mule-ize and bug fix.
15473         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15474
15475 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15476
15477         * postgresql.c (vars_of_postgresql): Mule-ize.
15478         (Fpq_conn_defaults): Ditto.
15479
15480 2000-03-12  Ben Wing  <ben@xemacs.org>
15481
15482         * alloc.c (Fmake_byte_code):
15483         * alloc.c (debug_string_purity_print):
15484         * alloc.c (pdump_backtrace):
15485         * alloc.c (pdump_get_indirect_count):
15486         * alloc.c (pdump_register_sub):
15487         * alloc.c (pdump_register_object):
15488         * alloc.c (pdump_register_struct):
15489         * alloc.c (pdump_dump_data):
15490         * alloc.c (pdump_reloc_one):
15491         Minor cleanups.
15492
15493         * console-msw.c:
15494         * console-msw.c (GetConsoleHwnd):
15495         * console-msw.c (msw_hide_console):
15496         * console-msw.c (msw_show_console):
15497         * console-msw.c (msw_ensure_console_buffered):
15498         * console-msw.c (msw_output_console_string):
15499         * console-msw.c (console_type_create_mswindows):
15500
15501         a) Added functions to manipulate the console window for use with
15502         shell support.
15503
15504         b) Added support for writing text to the console, which is now
15505         used under Windows when xemacs is not being run non-interactively,
15506         to write text that would otherwise be destined for stdout because
15507         under these circumstances, text written to stdout tends to
15508         disappear and not be seen.
15509
15510         * console-msw.h:
15511         * event-Xt.c:
15512         * event-Xt.c (x_event_to_emacs_event):
15513         * event-Xt.c (describe_event_window):
15514         * events-mod.h (XEMACS_MOD_CONTROL):
15515         * events.c:
15516         * events.c (Fmake_event):
15517         * events.c (character_to_event):
15518         * events.c (event_to_character):
15519         * events.c (format_event_object):
15520         * events.c (Fevent_modifiers):
15521         * events.h:
15522         * events.h (struct key_data):
15523         * events.h (struct button_data):
15524         * events.h (struct misc_user_data):
15525         * frame-x.c (Fcde_start_drag_internal):
15526         * frame-x.c (Foffix_start_drag_internal):
15527         * gpmevent.c (Freceive_gpm_event):
15528         * keymap.c:
15529         * keymap.c (bucky_sym_to_bucky_bit):
15530         * keymap.c (control_meta_superify):
15531         * keymap.c (make_key_description):
15532         * keymap.c (keymap_lookup_directly):
15533         * keymap.c (create_bucky_submap):
15534         * keymap.c (keymap_store):
15535         * keymap.c (define_key_check_and_coerce_keysym):
15536         * keymap.c (define_key_parser):
15537         * keymap.c (define_key_alternate_name):
15538         * keymap.c (Fdefine_key):
15539         * keymap.c (raw_lookup_key_mapper):
15540         * keymap.c (struct map_keymap_unsorted_closure):
15541         * keymap.c (map_keymap_unsorted_mapper):
15542         * keymap.c (map_keymap_sort_predicate):
15543         * keymap.c (map_keymap_sorted):
15544         * keymap.c (accessible_keymaps_mapper_1):
15545         * keymap.c (where_is_recursive_mapper):
15546         * keymap.c (describe_map_mapper):
15547         * keymap.c (describe_map_sort_predicate):
15548         * keymap.c (describe_map):
15549         * keymap.c (complex_vars_of_keymap):
15550         And a number of other files, the key modifier preprocessor
15551         constants that xemacs uses have names that conflict with constants
15552         defined under MS Windows for other purposes, so they were renamed
15553         to begin with the prefix XEMACS_. The variables that hold such
15554         modifiers were changed to consistently be of type int to fix
15555         various compile warnings.
15556
15557         * console.c (complex_vars_of_console):
15558         * device.c:
15559         * device-msw.c:
15560         * device-msw.c (mswindows_finish_init_device):
15561         * device-msw.c (msw_get_workspace_coords):
15562         * device-msw.c (mswindows_device_system_metrics):
15563         and various other files, added support for a new
15564         device property called offset-workspace which returns the position
15565         of the upper left corner of the workspace area and goes along with
15566         the existing size-workspace property.
15567
15568         * dialog-msw.c:
15569         * dialog-msw.c (push_bufbyte_string_as_unicode):
15570         * dialog-msw.c (mswindows_popup_dialog_box):
15571         Added support for XEmacs-style accelerator specifications in
15572         button text.  Note: I didn't add support for this under X Windows,
15573         and somebody needs to do this.
15574
15575         * dialog.c:
15576         * dialog.c (Fpopup_dialog_box):
15577         Documented the support for accelerators that was just mentioned.
15578
15579         editfns.c (get_home_directory): Changed behavior under Windows
15580         when HOME not defined; former behavior was irretrievably broken.
15581
15582         * emacs.c:
15583         * emacs.c (main_1):
15584         * emacs.c (main):
15585         * minibuf.c (clear_echo_area_internal):
15586         * minibuf.c (echo_area_append):
15587         * print.c:
15588         * print.c (std_handle_out_external):
15589         * print.c (std_handle_out_va):
15590         * print.c (fatal):
15591         * print.c (write_string_to_stdio_stream):
15592         * print.c (output_string):
15593         * print.c (debug_print):
15594         * print.c (debug_backtrace):
15595         * print.c (debug_short_backtrace):
15596         Cleaned up the code that prints text to stdout so that this can be
15597         changed to output into a console window instead under MS Windows,
15598         as described above.
15599
15600         * eval.c:
15601         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15602         * eval.c (internal_catch):
15603         * eval.c (unwind_to_catch):
15604         * eval.c (throw_or_bomb_out):
15605         * eval.c (condition_case_1):
15606         * eval.c (signal_1):
15607         * eval.c (check_error_state_sanity):
15608         * eval.c (call_with_suspended_errors_1):
15609         * eval.c (call_with_suspended_errors):
15610         * eval.c (reinit_vars_of_eval):
15611         Added code to catch throw loops and check for a pesky bug that may
15612         be gone now.
15613
15614         * event-msw.c:
15615         * event-msw.c (key_needs_default_processing_p):
15616         * event-msw.c (mswindows_wnd_proc):
15617         * event-msw.c (mswindows_modifier_state):
15618         * event-msw.c (emacs_mswindows_quit_p):
15619         * event-msw.c (vars_of_event_mswindows):
15620         a) Added support for using the alt key to select menu items as is
15621         standard under MS Windows.  This is controlled using the variable
15622         menu-accelerator-enabled, just like under X Windows.  There is an
15623         option on the options menu to turn this support on.  I really
15624         think that it should be on by default under Windows, but I'm not
15625         going to make this change yet.
15626
15627         b)  Added support for dynamic display size changes under Windows.
15628
15629         * event-stream.c:
15630         * event-stream.c (maybe_echo_keys):
15631         * event-stream.c (Fnext_event):
15632         * event-stream.c (command_builder_find_leaf):
15633         * event-stream.c (lookup_command_event):
15634         * event-stream.c (execute_command_event):
15635         * event-stream.c (pre_command_hook):
15636         * event-stream.c (post_command_hook):
15637         * event-stream.c (syms_of_event_stream):
15638         * event-stream.c (vars_of_event_stream):
15639         * event-stream.c (complex_vars_of_event_stream):
15640         * events.h (struct command_builder):
15641
15642         a) Tried to clean up a little bit the horribly written x-specific
15643         accelerator code that crept into this file.  I moved this code
15644         into menubar-x.c where it belongs. I also needed to move the
15645         command builder structure into the file events.h because it is
15646         accessed directly by this accelerator code.  What I didn't do, but
15647         which should be done at some point, is to properly abstract this
15648         code using device methods instead of the kludgy way that it
15649         currently hooks into the event code.
15650
15651         b) Added the lisp variables this-command-properties and
15652         last-command- properties, which should be used to synchronize two
15653         adjacent commands in preference to playing games with the variable
15654         this-command, which is typically what happens.
15655
15656         c) Added some slightly nasty code to hook into the lisp support
15657         for shifted- motion-key selection.  This is actually necessary for
15658         somewhat complicated reasons, which are described in
15659         simple.el. (NB: I think the proper thing would be to have the code
15660         that calls the pre and post command hooks also call out to generic
15661         lisp functions in simple.el, where all built-in stuff could be
15662         added.  I will think about this more.)
15663
15664         * event-unixoid.c (poll_fds_for_input):
15665         * lread.c (readchar):
15666         * redisplay-tty.c (tty_clear_frame):
15667         * redisplay-x.c (x_get_gc):
15668         * signal.c (interrupt_signal):
15669         And a whole bunch of other files: fixed up places that printed
15670         directly to stderr to instead call the function stderr_out so that
15671         the changes I made under Windows work correctly.
15672
15673         * filemode.c (mode_string):
15674         Warning fixes.
15675
15676         * frame-msw.c:
15677         * frame-msw.c (mswindows_size_frame_internal):
15678         Fixed the computation of frame size and position to keep the frame
15679         within the workspace area, rather than within the physical
15680         dimensions of the screen, so that the frame doesn't overlap window
15681         manager decorations, such as the start menu and toolbar, typically
15682         at the bottom of the screen.
15683
15684         * frame.c (vars_of_frame):
15685         Changed the default frame title format under MS Windows to consist
15686         of buffername-XEmacs, which is standard under MS Windows.  I think
15687         it might be a good idea to change this everywhere because I think
15688         it is superior to the current frame title format, but this is the
15689         kind of change that is likely to cause some people to get annoyed,
15690         so I'm not making it.
15691
15692         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15693
15694         * gui-msw.c (mswindows_handle_gui_wm_command):
15695         Fixed compile warnings.
15696
15697         * gui-x.c:
15698         * gui-x.c (strdup_and_add_accel):
15699         * gui-x.c (button_item_to_widget_value):
15700         * gui-x.h:
15701         Added code to automatically put an accelerator onto the beginning
15702         of menu items that don't have one as is now the standard, and is
15703         described more later.  Also fixed things so that the menu item
15704         name can be an evaluated expression, again a new standard.
15705
15706         * gui.c:
15707         * gui.c (gui_item_add_keyval_pair):
15708         * gui.c (make_gui_item_from_keywords_internal):
15709         * gui.c (gui_add_item_keywords_to_plist):
15710         * gui.c (gui_item_accelerator):
15711         * gui.c (gui_name_accelerator):
15712         * gui.c (gui_item_included_p):
15713         * gui.c (gui_item_display_flush_left):
15714         * gui.c (gui_item_display_flush_right):
15715         * gui.c (parse_gui_item_tree_item):
15716         * gui.c (parse_gui_item_tree_children):
15717         * gui.c (parse_gui_item_tree_list):
15718         Mule-ized.  Cleanup.  GCPRO addition.
15719
15720         * line-number.c (buffer_line_number):
15721         * lisp.h:
15722         * lisp.h (EMACS_INT_MAX):
15723         Added the manifest constant EMACS_INT_MIN corresponding to the
15724         existing constant EMACS_INT_MAX.  This is partially to fix compile
15725         warnings under Windows, and partly for cleanliness.
15726
15727         * menubar-msw.c:
15728         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15729         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15730         * menubar-msw.c (displayable_menu_item):
15731         * menubar-msw.c (populate_menu_add_item):
15732         * menubar-msw.c (populate_or_checksum_helper):
15733         * menubar-msw.c (populate_menu):
15734         * menubar-msw.c (update_frame_menubar_maybe):
15735         * menubar-msw.c (prune_menubar):
15736         * menubar-msw.c (msw_char_is_accelerator):
15737         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15738         * menubar-msw.c (mswindows_handle_wm_command):
15739         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15740         * menubar-msw.c (mswindows_handle_wm_initmenu):
15741         * menubar-msw.c (mswindows_update_frame_menubars):
15742         * menubar-msw.c (mswindows_free_frame_menubars):
15743         * menubar-msw.c (mswindows_popup_menu):
15744         Fixed a bug in handling accelerators where an extra character
15745         would be displayed in the menu item.  Also generalized the
15746         function displayable_menu_item because it is now used by the
15747         dialog box code as well.  And finally, added code in the functions
15748         that create the menubar to extract a list of accelerators for the
15749         top level menubar, which is used in the event code to determine
15750         whether a particular alt-key combination should be used to invoke
15751         a menu item, or should be passed through to access the standard
15752         XEmacs keymap binding for this key combination.
15753
15754         Much needed GCPROing.
15755
15756         * menubar-x.c:
15757         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15758         * menubar-x.c (menu_item_descriptor_to_widget_value):
15759         * menubar-x.c (restore_in_menu_callback):
15760         * menubar-x.c (x_popup_menu):
15761         * menubar-x.c (menu_move_up):
15762         * menubar-x.c (menu_move_down):
15763         * menubar-x.c (menu_move_left):
15764         * menubar-x.c (menu_move_right):
15765         * menubar-x.c (menu_select_item):
15766         * menubar-x.c (command_builder_operate_menu_accelerator):
15767         * menubar-x.c (menu_accelerator_junk_on_error):
15768         * menubar-x.c (command_builder_find_menu_accelerator):
15769         * menubar-x.c (Faccelerate_menu):
15770         * menubar.h:
15771         Moved a whole bunch of code here that was previously in
15772         event-stream.c as described above.  There is also code connected
15773         to the new standard of adding an accelerator to the beginning of
15774         menu items that don't have one as described above and below.
15775
15776         * menubar.c:
15777         * menubar.c (menu_parse_submenu_keywords):
15778         * menubar.c (Fmenu_find_real_submenu):
15779         * menubar.c (Fnormalize_menu_item_name):
15780         * menubar.c (syms_of_menubar):
15781         * menubar.c (vars_of_menubar):
15782         * menubar.c (complex_vars_of_menubar):
15783
15784         a) Cleaned up a bunch of documentation and improved it.
15785
15786         b) XEmacs now automatically adds an accelerator onto the beginning
15787         of any menu items that don't have one.  I did this because there
15788         will inevitably be some menu items on the main menubar that don't
15789         have accelerators on them because the package that adds that
15790         particular menu item hasn't yet been fixed up to have accelerators
15791         in them and it looked rather strange to have some items with and
15792         some items without accelerators, especially since even in items
15793         without accelerators, you can, at least under windows, still
15794         access the item through an accelerator corresponding to the first
15795         character in the item's name.  If people don't like this behavior,
15796         I can add a variable to turn it off optionally, but I'm not sure
15797         this is a good idea because we really do need to have accelerators
15798         on all of the menu items, and if a package doesn't like the
15799         accelerators being put on the first character, then it should put
15800         the accelerators where they belong.
15801
15802         c) I made a behavior change, which is that the descriptor that
15803         specifies the text of the menu item, which formerly was just a
15804         string, can now also be an evaluated expression.  This makes this
15805         descriptor parallel with all of the others, which could also be
15806         evaluated expressions.  This also obviates the need for the
15807         keyword :label, which was previously listed in the documentation
15808         as unimplemented, and which was for the same purpose.
15809
15810         d) GCPROing.
15811
15812         * ntproc.c:
15813         * ntproc.c (new_child):
15814         * ntproc.c (sys_spawnve):
15815         * ntproc.c (find_child_console):
15816         * ntproc.c (sys_kill):
15817         Fixed compile warnings.  By the way, this file should really go
15818         away entirely, and this will happen as soon as Kirill makes his
15819         final round of process cleanups, which affect the function
15820         call-process.
15821
15822         * process-nt.c:
15823         * process-nt.c (struct nt_process_data):
15824         * process-nt.c (find_process_from_pid):
15825         * process-nt.c (send_signal_the_nt_way):
15826         * process-nt.c (enable_child_signals):
15827         * process-nt.c (find_child_console):
15828         * process-nt.c (send_signal_the_95_way):
15829         * process-nt.c (nt_finalize_process_data):
15830         * process-nt.c (ensure_console_window_exists):
15831         * process-nt.c (nt_create_process):
15832         * process-nt.c (nt_kill_child_process):
15833         * process-nt.c (nt_kill_process_by_pid):
15834         * process-nt.c (nt_open_network_stream):
15835         * process-nt.c (vars_of_process_nt):
15836         Copied over code from Emacs 20.5 to correctly send signals to sub-
15837         processes under Windows 95.  Also added code to automatically
15838         create and hide console window when a sub-process is created under
15839         Windows 95, which obviates the need for the separate runemacs.exe
15840         executable, and finally implemented some variables that were
15841         implemented in Emacs 20.5, but previously not in XEmacs.  These
15842         include mswindows- start-process-share-console and
15843         mswindows-start-process-inherit-error-mode. (Both of these only
15844         apply to Windows 95.)
15845
15846         * regex.c (regex_compile): Fixed a compile warning.
15847
15848         * select-msw.c:
15849         * select-msw.c (mswindows_own_selection):
15850         * select-msw.c (mswindows_get_foreign_selection):
15851         * select-msw.c (mswindows_disown_selection):
15852         * select-msw.c (console_type_create_select_mswindows):
15853         * select-msw.c (syms_of_select_mswindows):
15854         Cleaned up the file and implemented the device method
15855         selection_exists_p, which had accidentally been left out.  Also
15856         removed four lisp functions that were remnants from before the
15857         time when the selection code was properly device abstracted.
15858         These functions are no longer needed because there are generic
15859         equivalents, and because they were added recently and don't exist
15860         in FSF Emacs, I don't think there's any problem with just deleting
15861         them.
15862
15863         * sysdep.c:
15864         * sysdep.c (sys_subshell):
15865         Fixed a compile warning, although in this case there's probably
15866         something wrong with this code, and it ought to be looked into
15867         more thoroughly by somebody who understands it.
15868
15869         * window.c:
15870         * window.c (Fwindow_text_area_height):
15871         * window.c (Fwindow_width):
15872         * window.c (Fwindow_full_width):
15873         * window.c (Fwindow_pixel_width):
15874         * window.c (debug_print_window):
15875         * window.c (syms_of_window):
15876         Added functions window-text-area-height and window-full-width,
15877         which are functions for returning various width and height
15878         characteristics of a window. (One of these functions is necessary
15879         for making the file dialog box work correctly, and the other one
15880         was added for completeness.)  Also added a table to the
15881         documentation for window-height which describes the entire scheme
15882         for accessing width and height characteristics of a window.
15883
15884 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15885
15886         * nt.c (fstat): Added a comment for another problem with
15887         non-encapsulated [f]stat(), reported by Adrian Aichner
15888         <aichner@ecf.teradyne.com>.
15889
15890 2000-03-11  Andy Piper  <andy@xemacs.org>
15891
15892         * window.c (make_dummy_parent): initialize subwindow instance
15893         cache.
15894         (Fset_window_configuration): zero extent_modiff.
15895
15896 2000-03-10  Andy Piper  <andy@xemacs.org>
15897
15898         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15899         more changes can be triggered.
15900         (Fredisplay_frame): ditto.
15901         (Fredraw_device): ditto.
15902         (Fredisplay_device): ditto.
15903         (redisplay_frame): make non-static.
15904         (redisplay_frame): call update_frame_gutter_geometry outside of
15905         display proper.
15906
15907         * gutter.h: declare update_frame_gutter_geometry.
15908
15909         * redisplay.h: declare redisplay_frame.
15910
15911         * gutter.c (update_frame_gutter_geometry): move geometry changes
15912         in update_frame_gutters here. Geometry changes can only occur
15913         outside of redisplay.
15914         (update_frame_gutters): remove geometry change code.
15915         (Fredisplay_gutter_area): make sure that we are in display when we
15916         update and that we have flushed any size changes.
15917
15918 2000-03-11  Andy Piper  <andy@xemacs.org>
15919
15920         * alloc.c (pdump_dump_data): remove i & count shadows.
15921
15922 2000-02-27  Mike Alexander  <mta@arbortext.com>
15923
15924         * sysdep.h: Declare pdump_read_file
15925
15926         * sysdep.c (pdump_read_file): New function
15927
15928         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15929         dump data
15930
15931 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15932
15933         * lrecord.h: add `lrecord_type_pgsetenv'.
15934
15935 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15936
15937         * symsinit.h: declare (vars|syms)_of* functions.
15938         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15939
15940 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15941
15942         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15943
15944         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15945         GCCs.
15946
15947         * emacs.c (main_1): Call postgres initialization code.
15948
15949         * postgresql.h: New file.  PostgreSQL RDBMS support.
15950         * postgresql.c: New file.
15951
15952 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15953
15954         * redisplay-output.c (redisplay_output_display_block): Disable
15955         redundant code.
15956
15957 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15958
15959         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15960         (Fcanna_henkan_next): Ditto.
15961         (Fcanna_bunsetu_henkou): Ditto.
15962         (Fcanna_henkan_kakutei): Ditto.
15963         (Fcanna_henkan_end): Ditto.
15964         (Fcanna_henkan_quit): Ditto.
15965         (Fcanna_henkan_next): Set retun value correctly.
15966         (c2mu): Use unsigned char instead of signed char.
15967
15968 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15969
15970         * emacs.c (main_1): Always call syms_of_gui.
15971         * inline.c: include gui.h
15972
15973 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15974
15975         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15976         converted to Lisp_Object.
15977         (Qtop_bottom): New variable.
15978         (syms_of_redisplay): Initialize it.
15979         * redisplay.h (Vvisible_bell): Ditto.
15980         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15981         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15982         only flash top and bottom.
15983
15984 2000-03-08  Andy Piper  <andy@xemacs.org>
15985
15986         * buffer.c (Frename_buffer): record new buffer name the right way.
15987
15988 2000-03-08  Andy Piper  <andy@xemacs.org>
15989
15990         * glyphs.c (update_subwindow): increase hash depth so that widget
15991         items get picked up properly.
15992
15993         * redisplay-output.c (compare_runes): increase hash depth so that
15994         widget items get picked up properly.
15995
15996 2000-03-08  Andy Piper  <andy@xemacs.org>
15997
15998         * gutter.c (output_gutter): add some debug.
15999
16000         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
16001         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
16002         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
16003
16004         * redisplay-output.c (compare_runes): use display_hash to
16005         determine if glyphs really are not the same.
16006
16007         * glyphs.c (update_subwindow): check display_hash to see if
16008         anything really needs to be updated. If not then do
16009         nothing. Record the display_hash after updating.
16010         (image_instance_equal): compare the image_instance face also.
16011
16012 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
16013
16014         * redisplay.h: Fix comment style.
16015
16016 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16017
16018         * consle-msw.h (struct mswindows_frame):
16019         Added new member paint_pending to indicate whether a WM_PAINT
16020         magic event has been queued for this frame.
16021
16022         * event-msw.c (mswindows_drain_windows_queue):
16023         Don't queue a WM_PAINT magic event if one is already queued.
16024         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
16025
16026         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
16027
16028 2000-03-07  Didier Verna  <didier@xemacs.org>
16029
16030         * dired.c: #include `regex.h' after `sysfile.h'.
16031
16032 2000-03-06  Martin Buchholz  <martin@xemacs.org>
16033
16034         * sound.c (init_nas_sound): Fix compiler warning.
16035
16036         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16037         (FREE_STRUCT_P):
16038         (MARK_STRUCT_AS_FREE):
16039         (MARK_STRUCT_AS_NOT_FREE):
16040         Make `gcc -fstrict-aliasing' work properly.
16041
16042 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16043
16044         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16045         (mswindows_delete_device): Call CoUnnitialize().
16046
16047         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16048
16049 2000-02-25    <CraigL@DyCon.com>
16050
16051         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16052         <errno.h>.
16053
16054         * sysdep.c: This extern declaration for environ prevents MinGW
16055         from finding the variable in CRTDLL.DLL.
16056
16057         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16058         windows headers.
16059         (SHGFI_EXETYPE): ..
16060         (WM_MOUSEWHEEL): ..
16061         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16062         definitions.
16063         (MMRESULT): Removed, now defined in cygwin's windows headers.
16064         (TIMECAPS): ..
16065         (uid_t,gid_t,pid_t,ssize_t): ..
16066         (_timeb): Removed, MinGW defines both _timeb and timeb.
16067         (HAVE_H_ERRNO): Added.
16068         (HAVE_TZNAME): Added, configure is not detecting this.
16069
16070 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16071
16072         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16073         * syntax.c (syntax_match): Use it.
16074
16075         * cmds.c: Import auto-fill-chars from FSF Emacs.
16076         (Vauto_fill_chars): New variables.
16077         (internal_self_insert): Check Vauto_fill_chars.
16078         (vars_of_cmds):
16079         Declare auto-fill-chars as a Lisp variable and initialize it.
16080
16081 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16082
16083         * fileio.c (Fmake_symbolic_link):
16084         (Ffile_symlink_p):
16085         Run handlers even if local machine doesn't have symlinks.
16086
16087 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16088
16089         * event-msw.c (mswindows_drain_windows_queue):
16090         Don't generate paint magic events for non-XEmacs frames.
16091
16092 2000-03-05  Andy Piper  <andy@xemacs.org>
16093
16094         * redisplay.c (redisplay_frame): generate_displayable_area and
16095         friends assumes that we are not in GC, we therefore have to make
16096         sure that this doesn't happen.
16097
16098         * gutter.c (calculate_gutter_size): generate_displayable_area
16099         assumes that we are not in GC, we therefore have to make sure that
16100         this doesn't happen.
16101
16102 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16103
16104         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16105
16106 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16107
16108         * redisplay.c (regenerate_window): Make sure we set a sane value
16109         for end_pos even if we jump out of the loop.
16110         (regenerate_window): Answer Ben's question :-).
16111         (start_end_of_last_line): Add may_error argument.
16112         (start_of_last_line):
16113         (end_of_last_line): Pass may_error = 0.
16114         (end_of_last_line_may_error): New function.
16115         (pixel_to_glyph_translation): Use it, so we don't crash in
16116         event_to_glyph.
16117
16118 2000-03-04  Andy Piper  <andy@xemacs.org>
16119
16120         * window.h (struct window): add gutter_extent_modiff.
16121
16122         * window.c (allocate_window): zero out gutter_extent_modiff.
16123
16124         * redisplay.h: declare sync_display_line_structs.
16125
16126         * redisplay.c (add_glyph_rune): add a better comment.
16127
16128         * redisplay-output.c (sync_display_line_structs): made non-static.
16129         (compare_runes): remove unneccesary glyph cachel access.
16130
16131         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16132
16133         * gutter.c (output_gutter): don't output the gutter if extent
16134         changes only involve extents in buffers. use 4 sets of display
16135         lines.
16136         (gutter_extent_signal_changed_region_maybe): new function. Mark
16137         extents in gutters as changed.
16138         (update_frame_gutters): use 4 sets of display lines.
16139         (reset_gutter_display_lines): ditto.
16140         (free_frame_gutters): ditto.
16141         (redraw_exposed_gutter): force output of gutters.
16142
16143         * frame.h (struct frame): add 4 sets of gutter display lines.
16144
16145         * extents.c: (extent_changed_for_redisplay): signal changes to
16146         extents in strings in the gutter as well as extents in buffers.
16147
16148 2000-03-02  Andy Piper  <andy@xemacs.org>
16149
16150         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16151
16152         * frame.c (Fmake_frame): make sure the gutters get initialized
16153         after the frame is visible.
16154         (set_frame_selected_window): re-arrange compilation macros a
16155         little.
16156         (change_frame_size_1): mark gutters changed.
16157
16158         * device.c (Fset_device_class): mark gutters changed.
16159
16160 2000-03-01  Andy Piper  <andy@xemacs.org>
16161
16162         * window.c (window_top_frame_gutter_height): deleted.
16163         (window_bottom_frame_gutter_height): ditto.
16164         (window_left_frame_gutter_height): ditto.
16165         (window_right_frame_gutter_height): ditto.
16166         (window_top_gutter_height): don't use them.
16167         (window_bottom_gutter_height): ditto.
16168         (window_left_gutter_width): ditto.
16169         (window_right_gutter_width): ditto.
16170         (Fsplit_window): ditto.
16171         (Fwindow_pixel_edges): don't use border dimensions here.
16172
16173         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16174         (update_scrollbar_instance): ditto.
16175
16176         * redisplay.c (generate_modeline): don't take gutters into account.
16177         (generate_modeline): ditto.
16178         (redisplay_frame): small gutter display optimization.
16179
16180         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16181
16182         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16183         gutters into account.
16184
16185         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16186         for window position and type.
16187
16188         * gutter.c (get_gutter_coords): fix for frame gutters.
16189         (update_frame_gutters): update frame geometry if the gutters have
16190         changed.
16191         (init_frame_gutters): record current gutter geometries.
16192
16193         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16194         var.
16195         (mswindows_widget_instantiate): ditto.
16196
16197         * frame.h (struct frame): add current_gutter_bounds.
16198
16199         * frame.c (change_frame_size_1): position window and minibuffer
16200         appropriately taking into account the frame gutters.
16201
16202         * frame-x.c: (x_initialize_frame_size): take into account the
16203         frame gutters.
16204
16205 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16206
16207         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16208
16209 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16210
16211         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16212
16213 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16214
16215         * file-coding.c (reset_decoding_stream): Clear previous
16216         detection state when autodetect.
16217
16218 2000-02-29  Didier Verna  <didier@xemacs.org>
16219
16220         * extents.c (set_extent_glyph_1): don't require extents to be
16221         attached.
16222
16223 2000-02-27  Andy Piper  <andy@xemacs.org>
16224
16225         * gutter.c (Fset_default_gutter_position): don't default left and
16226         right gutter visibility to t.
16227         (Fset_default_gutter_position): run
16228         default-gutter-position-changed-hook.
16229         (syms_of_gutter): add default-gutter-position-changed-hook.
16230
16231 2000-02-26  Andy Piper  <andy@xemacs.org>
16232
16233         * specifier.c (Fmake_specifier): add gutter references.
16234
16235         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16236
16237         * lisp.h: declare Fvalid_plist_p.
16238
16239         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16240         as changed.
16241         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16242         well as its visibility so that it gets reconstructed.
16243         (construct_window_gutter_spec): new function. Construct a string
16244         to be displayed in the gutter from a plist of strings. Take care
16245         to only use elements that are declared as visible.
16246         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16247         WINDOW_GUTTER.
16248         (gutter_validate): allow plists of strings in the specifier.
16249         (gutter_specs_changed): construct the real_gutter from the gutter
16250         specs using construct_window_gutter_spec.
16251         (gutter_visible_validate): gutter-visible is a new specifier type.
16252         (Fgutter_visible_specifier_p): new function for the new specifier.
16253         (syms_of_gutter): declare gutter-visible and
16254         Fgutter_visible_specifier_p.
16255         (specifier_type_create_gutter): intitalize new gutter-visible
16256         specifier.
16257         (reinit_specifier_type_create_gutter): ditto.
16258         (specifier_vars_of_gutter): use new specifier type for gutter
16259         visibility.
16260         (init_frame_gutters): construct real_gutter correctly.
16261         (Fgutter_specifier_p): beef up documentation.
16262         (Fgutter_size_specifier_p): ditto.
16263
16264         * winslots.h: add real_gutter slots.
16265
16266 2000-02-25  Andy Piper  <andy@xemacs.org>
16267
16268         * device-msw.c: Be kind to older cygwin versions. From Raymond
16269         Toy <toy@rtp.ericsson.se>.
16270
16271         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16272         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16273
16274 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16275
16276         * elhash.c (MARK_OBJ): Practice macro hygiene.
16277
16278 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16279
16280         * miscplay.c: s/__inline__/inline/g;
16281         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16282         (get_device_compdc): INLINE ==> static inline
16283         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16284         find -name '*.h' | \
16285         xargs global-replace \
16286         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16287
16288 2000-02-25  Andy Piper  <andy@xemacs.org>
16289
16290         * window.c (window_top_frame_gutter_height): new function.
16291         (window_top_window_gutter_height): ditto.
16292         (window_top_gutter_height): use them.
16293         (window_bottom_frame_gutter_height): new function.
16294         (window_bottom_window_gutter_height): ditto.
16295         (window_bottom_gutter_height): use them.
16296         (window_left_window_gutter_width): new function.
16297         (window_left_frame_gutter_width): ditto.
16298         (window_left_gutter_width): use them.
16299         (window_right_window_gutter_width): new function.
16300         (window_right_frame_gutter_width): ditto.
16301         (window_right_gutter_width): use them.
16302         (window_pixel_height): new function. calulate window pixel height
16303         with frame gutter involvement.
16304         (Fsplit_window): calculate new sizes taking frame gutters into
16305         account.
16306         (window_char_height_to_pixel_height): don't include frame gutters.
16307         (window_char_height): use window_pixel_height.
16308         (window_pixheight): rename from window_pixel_height.
16309         (change_window_height): use it.
16310         (window_pixel_height_to_char_height): don't include frame gutters.
16311         (window_char_width_to_pixel_width): ditto.
16312
16313 2000-02-25  Andy Piper  <andy@xemacs.org>
16314
16315         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16316         if it is.
16317
16318 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16319
16320         * alloc.c (staticpro):
16321         (staticpro_nodump):
16322         (dumpstruct):
16323         (dumpopaque):
16324         (pdump_wire):
16325         (pdump_wire_list):
16326         (compact_string_chars):
16327         (pdump_dump_wired):
16328         Convert:  if (foo) abort();  ==>  assert (! foo);
16329
16330         * eldap.c (Fldap_search_basic):
16331         (Fldap_add):
16332         (Fldap_modify):
16333         (Fldap_delete):
16334         Fix compiler warnings, and possible crashes if (random) return
16335         value were to be used.
16336
16337 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16338
16339         * device-msw.c: Workaround ResetDC failure.
16340
16341         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16342         applying a devmode.
16343
16344         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16345         (mswindows_text_width): Do not start printer page.
16346
16347         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16348
16349         * glyphs-msw.c: Added image methods to msprinter console and
16350         msprinter-specific image instantiation.
16351
16352 2000-02-20  Mike Alexander  <mta@arbortext.com>
16353
16354         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16355         to avoid crashes when selection-sets-clipboard is on
16356         (mswindows_own_selection): ditto
16357
16358 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16359
16360         * glyphs-msw.c:
16361         * redisplay-msw.c (get_frame_dc):
16362         (get_frame_compdc):
16363         * console-msw.h:
16364         * device-msw.c (mswindows_init_device):
16365         (mswindows_delete_device):
16366         (msprinter_init_device):
16367         (msprinter_delete_device):
16368         * frame-msw.c (mswindows_init_frame_1):
16369         (mswindows_delete_frame):
16370         (msprinter_init_frame_3):
16371         (msprinter_delete_frame): Move compatible DC to device object from
16372         frame object, for both mswindows and msprinter. Only one at a time
16373         is needed, it is a real waste to have one per frame!
16374
16375 2000-02-23  Andy Piper  <andy@xemacs.org>
16376
16377         * glyphs.c: add dynamic width and height elements.
16378         (image_instance_equal): ditto.
16379
16380         * glyphs-widget.c (widget_query_geometry): calculate width and
16381         height dynamically if required.
16382         (initialize_widget_image_instance): initialize dynamic dimensions.
16383         (widget_instantiate): pick-up dynamic dimensions.
16384
16385         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16386         dynamic determination. Add appropriate macros.
16387
16388         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16389         dimensions safe.
16390         (WINDOW_GUTTER_SIZE): ditto.
16391         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16392
16393         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16394         inline.
16395         (get_frame_dc): ditto.
16396
16397         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16398         here.
16399
16400 2000-02-23  Martin Buchholz <martin@xemacs.org>
16401
16402         * XEmacs 21.2.31 is released.
16403
16404 2000-02-22  Ben Wing <ben@xemacs.org>
16405
16406         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16407
16408 2000-02-22  Andy Piper  <andy@xemacs.org>
16409
16410         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16411
16412 2000-02-21  Mike Sperber <mike@xemacs.org>
16413
16414         * .dbxrc:
16415         * .gdbinit:
16416         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16417         variables.
16418
16419 2000-02-21  Mike Sperber <mike@xemacs.org>
16420
16421         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16422
16423 2000-02-21  Martin Buchholz <martin@xemacs.org>
16424
16425         * XEmacs 21.2.30 is released.
16426
16427 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16428
16429         Performance hacking.
16430         * *.c (syms_of_*):
16431         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16432         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16433         * emacs.c (main_1):
16434         * lisp.h (DEFUN):
16435         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16436         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16437         * symeval.h (DEFVAR_SYMVAL_FWD):
16438         * symbols.c (guts_of_unbound_marker):
16439         Make all c_readonly objects also lisp_readonly and marked for life.
16440         * lrecord.h (struct lrecord_implementation):
16441         Document flags better.
16442         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16443         * lrecord.h (DECLARE_LRECORD):
16444         * lrecord.h (XSETRECORD):
16445         * lrecord.h (RECORDP):
16446         * lrecord.h (RECORD_TYPEP):
16447         * lrecord.h (RECORD_MARKER): New.
16448         * lrecord.h (error_check_*):
16449         * lrecord.h (CONCHECK_NONRECORD):
16450         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16451         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16452         * lrecord.h (set_lheader_implementation):
16453         * lrecord.h (enum lrecord_type): New.
16454         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16455         * alloc.c (disksave_object_finalization_1):
16456         * alloc.c (mark_object):
16457         * alloc.c (lrecord_type_index):
16458         * alloc.c (tick_lcrecord_stats):
16459         * alloc.c (Fgarbage_collect):
16460         * alloc.c (init_alloc_once_early):
16461         * alloc.c (pdump_load):
16462         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16463         * alloc.c (lrecord_type_index): Delete.
16464         Make lisp object type indexes be constant.
16465           Makes (byte-compile) 5% faster.
16466         Put all marker functions into their own array.
16467           Makes (garbage-collect) 5% faster.
16468         Optimize SYMBOL_VALUE_MAGIC_P.
16469           Makes (byte-compile) 2-3% faster.
16470         * config.h.in (gc_checking_assert): New.
16471         * alloc.c: Use gc_checking_assert().
16472         * .dbxrc: Make compatible with new object type implementation.
16473         * .gdbinit: Make compatible with new object type implementation.
16474         * alloc.c: Delete all symbols defined only for debugging, such as
16475         Lisp_Type_Vector and lrecord_charset.
16476
16477 2000-02-21  Andy Piper  <andy@xemacs.org>
16478
16479         * gui-msw.c (Fmswindows_shell_execute): fix file location
16480         problems.
16481
16482         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16483         unshowing so that set_window_buffer doesn't undo
16484         kill_buffer_hook's hard work.
16485
16486         * glyphs-widget.c (tab_control_query_geometry): don't count the
16487         first item when calculating geometry.
16488
16489         * glyphs.c (map_subwindow): remove redundant code.
16490         (update_frame_subwindows): be more circumspect about when to
16491         update subwindows.
16492
16493         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16494         when items haven't changed. Update faces if faces have changed as
16495         well as just the widget face.
16496         (x_tab_control_update): Update faces if faces have changed as well
16497         as just the widget face.
16498
16499 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16500
16501         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16502         registration.
16503         (build_syscolor_string): Use mswindows_color_to_string to try to
16504         get a named color.
16505         (mswindows_device_system_metrics): Reverse the foreground and
16506         background colors so that they match the documentation.
16507
16508         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16509         they match the default Windows palette.
16510         (mswindows_color_to_string): New function.
16511
16512 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16513
16514         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16515
16516 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16517
16518         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16519         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16520
16521         * symbols.c (init_symbols_once_early): Removed obsolete
16522         DATA_SEG_BITS related kludge.
16523         (defvar_magic): Ditto.
16524
16525         * malloc.c: Removed obsolete DATA_SEG_BITS
16526         * ralloc.c: Ditto.
16527         * mem-limits.h: Ditto.
16528
16529         * Makefile.in.in: Removed obsolete HAVE_SHM
16530         * emacs.c: Ditto.
16531
16532 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16533
16534         *  device-msw.c (mswindows_delete_device): Free DDE string
16535         handles.
16536
16537 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16538
16539         * keymap.c (get_keyelt):
16540         * unexnt.c (unexec):
16541         * vm-limit.c (memory_warnings):
16542         * ntheap.c (recreate_heap):
16543         * ntheap.h (UNINIT_PTR):
16544         * select-msw.c (Fmswindows_get_clipboard):
16545         (Fmswindows_set_clipboard):
16546         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16547         * objects-msw.c:
16548         * menubar-msw.c (displayable_menu_item):
16549         * glyphs-msw.c:
16550         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16551         * sysdep.c (sys_subshell):
16552         * process-nt.c (nt_create_process):
16553         * nt.c (normalize_filename):
16554         (dostounix_filename):
16555         (unixtodos_filename):
16556         * ntproc.c (win32_executable_type):
16557         * ntplay.c (play_sound_data_1):
16558         (play_sound_file):
16559         * editfns.c (get_home_directory):
16560         * event-msw.c (struct winsock_stream):
16561         (mswindows_dde_callback):
16562         * device-msw.c (msprinter_init_device):
16563         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16564
16565         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16566         mswindows_clear_toolbar were swapped!
16567
16568         * objects-msw.c:(colormap_t):
16569         (fontmap_t):
16570         * emacs.c (struct standard_args): Fixed const jumble.
16571
16572         * glyphs-widget.c (update_widget): Fixed comparison notation.
16573
16574         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16575
16576         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16577         __declspec(noreturn) syntax.
16578
16579 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16580
16581         * eldap.c (Fldap_open):
16582         (Fldap_search_basic):
16583         (Fldap_add):
16584         (Fldap_modify):
16585         Use new coding system conversion macros.
16586
16587 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16588
16589         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16590
16591 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16592
16593         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16594         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16595
16596         * eldap.c (Qadd, Qreplace): New constant symbols
16597         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16598         interruptions by XEmacs signals
16599         Remove unnecessary calls to slow_down_interrupts and
16600         speed_up_interrupts
16601         (Fldap_search_basic): Renamed from Fldap_search_internal
16602         Added new optional parameter VERBOSE that triggers the
16603         display of progress messages
16604         Remove unnecessary calls to slow_down_interrupts and
16605         speed_up_interrupts
16606         LDAP result code analysis rewritten
16607         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16608         (syms_of_eldap): Define the new symbols and functions
16609
16610
16611 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16612
16613         * realpath.c: Determine PATH_MAX maximally portably.
16614
16615         * insdel.c (bytecount_to_charcount): Optimize.
16616         The function used to be optimized for entirely ASCII sequences.
16617         Now it is optimized for successive characters from the same
16618         charset.  This also wins big for _mostly_ ASCII sequences.
16619
16620         * fileio.c (Ffile_truename): convert return from realpath() using
16621         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16622         - Rewrite GCPROing slightly.
16623
16624         * sysdep.c (sys_open): Do filename conversion, like all other
16625         sys_* functions.  Fixes bug:
16626         (let ((file-name-coding-system 'iso-8859-2))
16627            (write-region x y latin2-name))
16628         ==> writes filename using internal encoding.
16629
16630 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16631
16632         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16633         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16634         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16635         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16636         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16637         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16638         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16639         (CONST_IF_NOT_DEBUG): Delete.
16640         * alloc.c (this_one_is_unmarkable): Delete.
16641         (mark_object): Don't check for this_one_is_unmarkable. Use the
16642         c_readonly flag instead.
16643         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16644
16645 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16646
16647         * event-msw.c (mswindows_drain_windows_queue):
16648         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16649         away redundant repaint events.
16650
16651 2000-02-17  Andy Piper  <andy@xemacs.org>
16652
16653         * redisplay.h: declare mark_redisplay_structs.
16654
16655         * redisplay.c (redisplay_window):
16656         (redisplay_frame): don't check subwindows_state_changed.
16657         (mark_redisplay): mark gutters here.
16658
16659         * glyphs.c: (instantiate_image_instantiator): always layout if we
16660         haven't done so already.
16661         (allocate_image_instance): don't mark as dirty.
16662         (update_subwindow): bind inhibit_quit.
16663
16664         * gutter.c (mark_gutters): new function.
16665
16666         * glyphs-x.c (x_update_widget): Always resize to get round a
16667         widget bug.
16668
16669         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16670         breaking absolutely everything.
16671
16672         * gutter.h: declare mark_gutters.
16673
16674 2000-02-16  Martin Buchholz <martin@xemacs.org>
16675
16676         * XEmacs 21.2.29 is released.
16677
16678 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16679
16680         * fns.c (size_bit_vector): Fix computation of the size.
16681
16682 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16683
16684         * *.[ch]: Change CONST to const globally.
16685         find -name '*.[ch]' | \
16686         xargs global-replace \
16687         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16688         - Remove vestigial references to CONST_IS_LOSING
16689
16690 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16691
16692         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16693         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16694         events instead of dispatching them directly.
16695         (mswindows_handle_paint): New function to do repainting.
16696         (mswindows_wnd_proc):
16697         (emacs_mswindows_handle_magic_event): Call above function.
16698
16699 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16700
16701         * objects-msw.c (mswindows_create_font_variant): Return the new
16702         font handle.
16703         (initialize_font_instance): Get font metrics from the underlined
16704         variant of the font to cope with the case where the underlined
16705         font has a bigger descent.
16706
16707 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16708
16709         * gui.c (gui_item_accelerator): Return the first underlined
16710         character in item name.
16711
16712 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16713
16714         * lisp.h: Added Qprinter.
16715
16716         * general.c (syms_of_general): Initialized it.
16717
16718         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16719         (get_frame_dc):
16720         (get_frame_compdc): Made inline.
16721
16722         * console.h (struct console_methods): Added eject_page method.
16723
16724         * frame.h: Added FRAME_DISPLAY_P and friends.
16725         Aligned backslahes in many macros in more readable fashion.
16726         Added page_number to struct frame, and an accessor macro
16727         for it.
16728
16729         * defice.h: Added DEVICE_DISPLAY_P and friends.
16730
16731         * device.c (Fdevice_printer_p): Used these.
16732
16733         * frame.c (allocate_frame_core): Initialize page number.
16734         (Fprint_job_page_number):
16735         (Fprint_job_eject_page): Implemented.
16736
16737         * frame-msw.c (msprinter_eject_page): Added method.
16738         (msprinter_start_page): Added.
16739
16740         * window.c (Fwindow_truncated_p): Fixed docstring.
16741         (Fwindow_last_line_visible_height): Implemented.
16742
16743 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16744
16745         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16746
16747 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16748
16749         * syntax.c (scan_words): Always advance at least one character.
16750
16751 2000-02-13  Andy Piper  <andy@xemacs.org>
16752
16753         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16754         to make sure the glyph is in the cachels.
16755
16756         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16757         global image instance flag.
16758         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16759         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16760
16761         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16762         (Fset_image_instance_property): mark layout as changed.
16763         (invalidate_glyph_geometry_maybe): mark layout as changed.
16764         (glyph_width): use new NEEDS_LAYOUT macro.
16765         (glyph_ascent): ditto.
16766         (glyph_descent): ditto.
16767         (glyph_height): ditto.
16768         (image_instance_layout): mark layout as clean after laying out.
16769         (update_subwindow): don't mark layout as clean here.
16770
16771         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16772         should no longer be needed.
16773
16774         * glyphs-x.c (x_update_widget): sanitize asserts.
16775         (x_finalize_image_instance): sanitize assignment to widgets.
16776
16777         * glyphs-widget.c (widget_instantiate): don't need to clear the
16778         layout flag here.
16779
16780 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16781
16782         * sysdep.c (getcwd): Use standard prototype.
16783         * sysdep.h (getcwd): Use standard prototype.
16784
16785         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16786         (sequence, start, end).
16787         Remove redundant type checking.
16788         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16789         view of `caller-protects') to avoid a crash where the real fix was
16790         found elsewhere.
16791
16792 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16793
16794         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16795
16796         * s/sol2.h: Remove feature macro initialization.
16797
16798         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16799         (vector_hash): New.  Code from internal_hash.
16800         * lrecord.h:
16801         Fix up allocation subsystem comments.
16802
16803         * config.h.in: Add __EXTENSIONS__ for Solaris.
16804
16805         * systime.h (EMACS_GETTIMEOFDAY): New.
16806         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16807         Remove Solaris-specific code.
16808         Use void* for the (ignored) second arg for gettimeofday().
16809
16810         * elhash.c (hash_table_hash): Implement it, finally.
16811         * elhash.c:  Use hashcode_t.
16812
16813         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16814         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16815
16816         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16817         * fns.c (size_bit_vector):
16818         * alloc.c (size_vector):
16819         (make_vector_internal):
16820         (make_bit_vector_internal):
16821         (sweep_bit_vectors_1):
16822         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16823
16824 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16825
16826         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16827         Include strings.h to avoid warnings for bzero and strcasecmp.
16828
16829 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16830
16831         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16832         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16833
16834         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16835         sequence.
16836
16837 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16838
16839         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16840         use a value field instead.
16841         (symbol_value_forward_forward): Use value field.
16842         (DEFVAR_SYMVAL_FWD): Use value field.
16843         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16844         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16845         (DEFVAR_CONST_INT): Ditto.
16846         (DEFVAR_BOOL): Ditto.
16847         (DEFVAR_CONST_BOOL): Ditto.
16848         (DEFVAR_INT_MAGIC): Ditto.
16849         (DEFVAR_BOOL_MAGIC): Ditto.
16850
16851         * symbols.c (guts_of_unbound_marker): Use value field.
16852         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16853         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16854
16855         * lisp.h: Declare dumpopaque and noninteractive1.
16856
16857         * alloc.c (dumpopaque): Added.
16858         (pdump_dump_opaquevec): Added.
16859         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16860         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16861         noninteractive.
16862
16863 2000-02-10  Andy Piper  <andy@xemacs.org>
16864
16865         * glyphs.c (image_instance_layout): if the size changes, mark it
16866         as such.
16867
16868         * redisplay-output.c (redisplay_output_layout): Update the
16869         subwindow here.
16870         (redisplay_output_subwindow): ditto.
16871
16872         * glyphs.c (update_subwindow): make sure we reset flags for
16873         layouts as well as everything else.
16874
16875         * glyphs-widget.c (layout_layout): don't need to set the instances
16876         dimensions here.
16877
16878 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16879
16880         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16881         not HAVE_DLOPEN, which is a lower-level thing.
16882
16883         * .cvsignore: Ignore gmon.out
16884
16885 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16886
16887         * .cvsignore: Ignore portable dumper xemacs.dmp file
16888
16889 2000-02-09  Andy Piper  <andy@xemacs.org>
16890
16891         * redisplay-output.c (redisplay_output_layout): be more clever
16892         about when we output based on the changed flags.
16893
16894         * glyphs.h (struct image_instantiator_methods): add update_method.
16895         (struct Lisp_Image_Instance): add changed flags. Declare new
16896         macros for manipulating them.
16897
16898         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16899         (image_instance_parent_glyph): find an image_instance's parent
16900         glyph or image_instance.
16901         (image_instance_layout): mark the size as changed.
16902         (set_image_instance_dirty_p): new function. mark an image
16903         instance, plus all of its parents, as dirty.
16904         (Fset_image_instance_property): use it.
16905         (Fglyph_animated_timeout_handler): use it.
16906         (update_subwindow): call update_widget and device methods for
16907         update_subwindow. Mark all changed flags as clean.
16908         (Fresize_subwindow): mark size as changed.
16909
16910         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16911         failures.
16912         (x_update_subwindow): only resize subwindows here.
16913         (x_update_widget): new function. Update all changed properties of
16914         a widget.
16915         (x_resize_subwindow): deleted.
16916         (x_widget_set_property): deleted.
16917         (x_progress_gauge_set_property): deleted.
16918         (x_progress_gauge_update): new function. Implement recorded
16919         changes.
16920         (x_tab_control_update): ditto.
16921         (x_tab_control_set_property): deleted.
16922         (console_type_create_glyphs_x): declare new functions.
16923         (image_instantiator_format_create_glyphs_x): ditto.
16924
16925         * glyphs-widget.c (widget_set_property): mark text changed.
16926         (update_widget): new function. Update properties of a widget.
16927         (widget_instantiate): for layouts make sure we set their
16928         children's parent correctly.
16929         (tab_control_set_property): new function. Record changes that will
16930         take place under redisplay's control.
16931         (progress_gauge_set_property): ditto.
16932         (image_instantiator_progress_guage): declare new functions.
16933         (image_instantiator_tab_control): ditto.
16934
16935         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16936         now.
16937         (mswindows_update_widget): new function. Update all properties on
16938         a widget that have changed.
16939         (mswindows_button_update): new function. Update a button's set
16940         state.
16941         (mswindows_tab_control_update): new function. Update the items in
16942         a tab.
16943         (mswindows_tab_control_set_property): deleted.
16944         (mswindows_progress_gauge_update): new function. Update the
16945         progress gauge's progress.
16946         (mswindows_widget_set_property): deleted. This is all done
16947         asynchronously now.
16948         (mswindows_progress_gauge_set_property): ditto.
16949         (console_type_create_glyphs_mswindows): declare new methods.
16950         (image_instantiator_format_create_glyphs_mswindows): ditto.
16951
16952         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16953         (msprinter_set_frame_properties): ditto.
16954
16955         * console.h (struct console_methods): Add update_widget_method.
16956
16957 2000-02-09  Andy Piper  <andy@xemacs.org>
16958
16959         * gui-msw.c (Fmswindows_shell_execute): Make
16960         mswindows-shell-execute industrial strength.
16961
16962 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16963
16964         * lrecord.h: Make macro argument `props' match member function `plist'.
16965         * fns.c (Fget):
16966         * fns.c (Fput):
16967         * fns.c (Fremprop):
16968         * fns.c (Fobject_plist):
16969         * alloc.c:
16970         * symbols.c:
16971         Object property list frobbing cleanup.
16972         - Allow any lisp object (compared with `eq'), not just symbols, as
16973           keys in object plists.
16974         - Move symbol plist frobbing into symbols.c, where it belongs.
16975         - Move string plist frobbing into alloc.c, where it belongs.
16976         - Everything's an lrecord now, so no need to test for symbolp, etc.
16977         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16978
16979         * extents.c: Reorder code to remove declarations.
16980
16981         * frame.h (store_in_alist): Remove useless declaration.
16982
16983 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16984
16985         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16986         * config.h.in: Add HAVE_XCONVERTCASE.
16987
16988 2000-02-07  Andy Piper  <andy@xemacs.org>
16989
16990         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16991         it breaks many things.
16992
16993 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16994
16995         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16996         actually can start a common comment type.
16997         * src/syntax.h (SYNTAX_END_P): ditto for end.
16998
16999 2000-02-07  Martin Buchholz <martin@xemacs.org>
17000
17001         * XEmacs 21.2.28 is released.
17002
17003 2000-02-06  Martin Buchholz  <martin@xemacs.org>
17004
17005         * event-Xt.c (x_keysym_to_character): New.
17006         (maybe_define_x_key_as_self_inserting_character): New.
17007         (x_has_keysym): New.
17008         Auto-define all keys on the keyboard as self-insert-key.
17009
17010 2000-02-02  Martin Buchholz  <martin@xemacs.org>
17011
17012         * menubar.c (vars_of_menubar): A small code simplification.
17013
17014         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17015
17016         * ExternalShell.c:
17017         * ExternalClient.c:
17018         * EmacsShell-sub.c:
17019         * EmacsManager.c:
17020         * EmacsFrame.c:
17021         Use consistent style for specifying X resources.
17022
17023         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
17024         This makes (dontusethis-set-symbol-value-handler) actually usable.
17025
17026         * lrecord.h (lrecord_decription_type):
17027         * alloc.c (pdump_register_sub):
17028         (pdump_dump_data):
17029         (pdump_reloc_one):
17030         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17031         Comply with XEmacs coding style.
17032         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17033         args, and XD_LISP_OBJECT_ARRAY with 3 args.
17034
17035         * keymap.c (Faccessible_keymaps):
17036         Make (accessible-keymaps map "\C-h") do the Right Thing.
17037         Make (accessible-keymaps map []) do the Right Thing.
17038         Make (accessible-keymaps map "") do the Right Thing.
17039         (check_keymap_definition_loop): New function.
17040         (keymap_store_internal): Keep luser from shooting self in foot,
17041           via (define-key ctl-x-4-map "p" global-map).
17042         Remove fullness slot from struct Lisp_Keymap, since hash tables
17043         are now reliable.
17044         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17045
17046 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17047
17048         * redisplay.c (init_redisplay): Fix small memory leak.
17049         * elhash.h:
17050         * elhash.c (pdump_reorganize_hash_table):
17051         Rename from reorganize_hash_table. Change prototype.
17052         Reuse the original memory for hentries.  Save 100k.
17053         * alloc.c (PDUMP_READ): new macro.
17054         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17055         * alloc.c: No need to #ifndef before #undef.
17056
17057         * print.c: Allow debug_print() to print readably by modifying
17058         debug_print_readably.  Use consistent variable names.
17059
17060         * .dbxrc: Try to get things to work even if stopped in a function
17061         without source available by explicitly specifying source files.
17062 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17063
17064         * unexnt.c (_start): Removed bogus code which caused loading heap
17065         from differrent executable file.
17066         Removed bogus assignment to _fmode, which caused inconsistencies.
17067
17068 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17069
17070         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17071         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17072         Do not preliminary `#define signal sigset'.
17073
17074         * systime.h: Do not prototype environ on windows nt and cygwin,
17075         this conflicts with system header.
17076
17077         * syssignal.h: Use correct define for WINDOWSNT
17078
17079         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17080         with system header.
17081
17082         * sysdep.c (near start of file): Fixed commentary and rearranged
17083         ifdefs in readable order.
17084         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17085         (start_of_text):
17086         (end_of_text):
17087         (end_of_data): Do not compile in if using PDUMP.
17088
17089         * symsinit.h: Prototyped vars_of_nt().
17090
17091         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17092         (find_child_console): Use it.
17093         (sys_kill): Use it.
17094
17095         * ntheap.h: Do not extern os_subtype.
17096
17097         * ntheap.c (cache_system_info): Do not cache unneeded:
17098         nt_major_version, nt_minor_version and os_subtype.
17099         (recreate_heap): Do not compile in when PDUMPing.
17100
17101         * nt.c (geteuid and friends): Use the new varibale
17102         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17103         (init_user_info): Removed the above mentioned hackery.
17104         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17105         stat has been fixed in the C runtime.
17106         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17107
17108         * file-coding.c (struct file_coding_dump): Do not define
17109         ucs_to_mule_table in the struct if not MULE.
17110         (struct struct lrecord_description fcd_description_1): Do not dump
17111         the above.
17112
17113         * emacs.c (main_1): Call vars_of_nt().
17114         (right before Fdump_emacs_data): Don't need lastfile if using both
17115         portabe dumper and system malloc.
17116
17117         * alloc.c (Fmemory_limit): Conditionalized out.
17118         (pdump): Use OPEN_BINARY for the portable dump file.
17119         (pdump_load): Ditto.
17120
17121 2000-02-02  Mike Alexander  <mta@arbortext.com>
17122
17123         * nt.c (convert_time): Set tm_isdst before calling mktime and
17124         avoid calling it at all if the compiler supports 64 bit integers.
17125         Also initialize utc_base_ft before using it.
17126
17127 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17128
17129         * frame.c (change_frame_size_1): Take f->internal_border_width
17130         into consideration when calculating the width of the frame.
17131
17132 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17133
17134         * window.c (frame_min_height):
17135         (frame_size_valid_p):
17136         (frame_pixsize_valid_p): Added.
17137         (check_frame_size): Generalized.
17138
17139         * window.h: Prototyped the above.
17140
17141         * lisp.h:
17142         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17143         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17144         Deleted Vwin32_* and Vbinary_process_* unused variables.
17145
17146         * device-msw.c (msprinter_init_device): Do not get printer font
17147         list; Added DEVMODE functions.
17148
17149         * frame-msw.c: Added lots of printer code.
17150
17151         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17152         general.c.
17153
17154         * console-msw.h: Added more msprinter device private slots.
17155
17156 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17157
17158         * event-msw.c (key_needs_default_processing_p): Added.
17159         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17160
17161 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17162
17163         * glyphs.c (image_instance_layout): Mark image instance as clean
17164         after layout.
17165         (glyph_dirty_p): Removed redundant function.
17166         (invalidate_glyph_geometry_maybe): Added.
17167         (update_glyph_cachel_data): Call it.
17168
17169         * glyphs.h: Prototyped it.
17170
17171         * redisplay.c (add_glyph_rune): Call it.
17172         (redisplay_window): Reset glyphs cachels when frame faces have
17173         changed, thus forcing recomputation of built-in border glyphs.
17174
17175 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17176
17177         * Makefile.in.in: Make portable dumper and purify play well together.
17178         Add imperfect, but better than nothing, support for pdump.
17179         Remove xemacs.dmp when temacs is re-generated.
17180         Don't ignore errors when dumping xemacs.
17181
17182         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17183
17184 2000-01-28  Andy Piper  <andy@xemacs.org>
17185
17186         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17187         (setup_normal_frame): ditto.
17188         (setup_frame_without_minibuffer): ditto.
17189         (setup_minibuffer_frame): ditto.
17190         (delete_frame_internal): ditto.
17191         (Fmake_frame_invisible): ditto.
17192         (Ficonify_frame): ditto.
17193
17194         * window.h: change Fset_window_buffer signature.
17195
17196         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17197         (Fset_window_buffer): allow recording of buffer if the window is
17198         the selected window.
17199         (window_loop): Use new Fset_window signature.
17200
17201 2000-01-23  Daniel Pittman  <daniel@danann.net>
17202
17203         * config.h.in: Added template for `HAVE_ATHENA_3D'
17204
17205 2000-01-29  Andy Piper  <andy@xemacs.org>
17206
17207         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17208
17209         * gutter.c (output_gutter): Don't output if the window isn't live.
17210
17211 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17212
17213         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17214         of 01/12/00: Moved SetFocus back here where it belongs.
17215
17216 2000-01-23  Andy Piper  <andy@xemacs.org>
17217
17218         * s/cygwin32.h: declare printer things.
17219
17220 2000-01-26  Andy Piper  <andy@xemacs.org>
17221
17222         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17223         Alexander.
17224
17225 2000-01-24  Andy Piper  <andy@xemacs.org>
17226
17227         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17228         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17229
17230         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17231
17232         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17233
17234         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17235
17236         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17237         (mswindows_output_display_block): Avoid local shadows.
17238
17239         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17240         (mswindows_enqueue_mouse_button_event): ditto.
17241         (mswindows_handle_gui_wm_command): remove declaration.
17242
17243         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17244         warnings.
17245
17246         * console-msw.h: Avoid shadows.
17247         (mswindows_get_toolbar_button_text):
17248         (emacs_mswindows_create_stream_pair):
17249         (emacs_mswindows_delete_stream_pair):
17250         (mswindows_handle_toolbar_wm_command): declare.
17251
17252         * device-msw.c (build_syscolor_string): Avoid shadows.
17253
17254 2000-01-23  Andy Piper  <andy@xemacs.org>
17255
17256         * glyphs-widget.c (widget_instantiate): reverse the items for
17257         layouts so that children are in the expected order.
17258
17259 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17260
17261         * ralloc.c: safe_bcopy ==> memmove
17262         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17263         * s/msdos.h: Remove BCOPY macros.
17264         * insdel.c (gap_right): Remove BCOPY conditional code.
17265         * insdel.c (gap_left): Remove BCOPY conditional code.
17266         XEmacs demands a working ANSI C compiler - hence memmove.
17267
17268         * regex.c (regex_compile): Remove accidental use of trigraphs.
17269
17270 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17271
17272         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17273         event timestamp.
17274
17275 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17276
17277         * event-msw.c (mswindows_drain_windows_queue): Added the
17278         parameter.
17279         (mswindows_need_event): Commented the call to
17280         mswindows_drain_windows_queue().
17281         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17282         only.
17283
17284         * console-msw.h: Moved a few function prototypes here from
17285         event-msw.c.
17286
17287         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17288         parameter from unsigned short to unsigned long.
17289         (Fmswindows_shell_execute): Added return value.
17290
17291 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17292
17293         * sysdep.c (init_system_name):
17294           process-unix.c (unix_canonicalized_host_name):
17295         Don't call freeaddrinfo() if getaddrinfo() fails.
17296
17297         * process-unix.c (unix_open_unix_network_stream):
17298         Moved the code to get a port # into address loop.
17299
17300 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17301
17302         * buffer.c (reinit_vars_of_buffer):
17303         The right place to initialize conversion_in_dynarr and
17304         conversion_out_dynarr.
17305
17306         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17307
17308         * process-unix.c (unix_canonicalize_host_name): Muleize.
17309         (unix_open_network_stream): Muleize.
17310
17311         * buffer.h: Fix up prototypes for ralloc.c functions.
17312
17313 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17314         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17315         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17316                 instead of gethostbyname()
17317         * process-unix.c: In unix_canonicalize_host_name() and
17318                 unix_open_network_stream(), add code to use getaddrinfo()
17319                 instead of gethostbyname().
17320
17321 2000-01-27  Daniel Pittman <daniel@danann.net>
17322
17323         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17324         libs when built with flat Athena.
17325
17326 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17327
17328         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17329         Use coding standards for function prototypes.
17330
17331 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17332
17333         * dialog-msw.c (push_lisp_string_as_unicode):
17334         * doc.c (unparesseuxify_doc_string):
17335         * dired.c (Fuser_name_completion_1):
17336         * dired.c (Fuser_name_all_completions):
17337         * dired.c (free_user_cache):
17338         * dired.c (user_name_completion):
17339         * console-x.c (get_display_arg_connection):
17340         * minibuf.c (clear_echo_area_internal):
17341         * minibuf.c (echo_area_append):
17342         * eldap.c (Fldap_open):
17343         * eldap.c (Fldap_search_internal):
17344         * frame-x.c (x_set_frame_text_value):
17345         * frame-x.c (x_set_frame_properties):
17346         * frame-x.c (x_create_widgets):
17347         * redisplay-tty.c (term_get_fkeys_1):
17348         * objects-x.c (x_parse_nearest_color):
17349         * objects-x.c (x_valid_color_name_p):
17350         * objects-x.c (x_initialize_font_instance):
17351         * objects-x.c (x_list_fonts):
17352         * objects-x.c (x_find_charset_font):
17353         * tooltalk.c (Fadd_tooltalk_message_arg):
17354         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17355         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17356         * process-unix.c (unix_create_process):
17357         * ntproc.c (sys_spawnve):
17358         * sound.c (Fplay_sound_file):
17359         * sound.c (Fplay_sound):
17360         * buffer.c (init_initial_directory):
17361         * buffer.c (init_buffer):
17362         * editfns.c (init_editfns):
17363         * editfns.c (Ftemp_directory):
17364         * editfns.c (Fuser_full_name):
17365         * editfns.c (uncache_home_directory):
17366         * editfns.c (get_home_directory):
17367         * editfns.c (Fuser_home_directory):
17368         * editfns.c (Fformat_time_string):
17369         * editfns.c (Fcurrent_time_string):
17370         * gui-x.c (button_item_to_widget_value):
17371         * database.c (Fopen_database):
17372         * event-Xt.c (x_to_emacs_keysym):
17373         * event-Xt.c (x_event_to_emacs_event):
17374         * event-Xt.c (describe_event_window):
17375         * event-msw.c (mswindows_wnd_proc):
17376         * glyphs-eimage.c (jpeg_instantiate):
17377         * glyphs-eimage.c (gif_instantiate):
17378         * glyphs-eimage.c (png_instantiate):
17379         * glyphs-eimage.c (tiff_instantiate):
17380         * glyphs-x.c (xbm_instantiate_1):
17381         * glyphs-x.c (x_xbm_instantiate):
17382         * glyphs-x.c (x_xface_instantiate):
17383         * glyphs-x.c (autodetect_instantiate):
17384         * glyphs-x.c (cursor_font_instantiate):
17385         * glyphs-x.c (x_widget_instantiate):
17386         * glyphs-x.c (x_widget_set_property):
17387         * glyphs-x.c (x_widget_property):
17388         * glyphs-x.c (BUILD_GLYPH_INST):
17389         * print.c (write_string_to_stdio_stream):
17390         * print.c (output_string):
17391         * print.c (Falternate_debugging_output):
17392         * print.c (Fexternal_debugging_output):
17393         * glyphs-msw.c (extract_xpm_color_names):
17394         * glyphs-msw.c (mswindows_xpm_instantiate):
17395         * glyphs-msw.c (bmp_instantiate):
17396         * glyphs-msw.c (resource_name_to_resource):
17397         * glyphs-msw.c (mswindows_resource_instantiate):
17398         * glyphs-msw.c (xbm_instantiate_1):
17399         * glyphs-msw.c (mswindows_xbm_instantiate):
17400         * glyphs-msw.c (mswindows_xface_instantiate):
17401         * glyphs-msw.c (mswindows_widget_instantiate):
17402         * glyphs-msw.c (add_tree_item):
17403         * glyphs-msw.c (add_tab_item):
17404         * glyphs-msw.c (mswindows_combo_box_instantiate):
17405         * glyphs-msw.c (mswindows_widget_property):
17406         * glyphs-msw.c (mswindows_combo_box_property):
17407         * glyphs-msw.c (mswindows_widget_set_property):
17408         * console.c (stuff_buffered_input):
17409         * objects-msw.c (mswindows_initialize_color_instance):
17410         * objects-msw.c (mswindows_valid_color_name_p):
17411         * objects-msw.c (mswindows_list_fonts):
17412         * objects-msw.c (mswindows_font_instance_truename):
17413         * bytecode.c (optimize_compiled_function):
17414         * select-x.c (symbol_to_x_atom):
17415         * select-x.c (x_atom_to_symbol):
17416         * select-x.c (hack_motif_clipboard_selection):
17417         * select-x.c (selection_data_to_lisp_data):
17418         * select-x.c (lisp_data_to_selection_data):
17419         * select-x.c (Fx_get_cutbuffer_internal):
17420         * select-x.c (Fx_store_cutbuffer_internal):
17421         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17422         * buffer.h (TO_INTERNAL_FORMAT): New function.
17423         * emacs.c (make_arg_list_1):
17424         * emacs.c (make_argc_argv):
17425         * emacs.c (main_1):
17426         * emacs.c (Fdump_emacs):
17427         * emacs.c (split_string_by_emchar_1):
17428         * file-coding.h:
17429         * lisp.h:
17430         * lstream.h:
17431         * symsinit.h:
17432         * device-x.c (x_init_device):
17433         * device-x.c (Fx_valid_keysym_name_p):
17434         * device-x.c (Fx_get_font_path):
17435         * device-x.c (Fx_set_font_path):
17436         * glyphs.c (bitmap_to_lisp_data):
17437         * glyphs.c (pixmap_to_lisp_data):
17438         * alloc.c (make_ext_string): Use coding system arguments.  Update
17439         all callers.
17440         * alloc.c (build_string):
17441         * callproc.c (child_setup):
17442         * callproc.c (init_callproc):
17443         * fileio.c (lisp_strerror):
17444         * fileio.c (directory_file_name):
17445         * fileio.c (Fexpand_file_name):
17446         * fileio.c (Ffile_truename):
17447         * fileio.c (Fsysnetunam):
17448         * fileio.c (Fdo_auto_save):
17449         * sysdep.c (sys_readdir):
17450         * tests.c: New file.  Allow adding C tests.
17451         Replace GET_* macros with a more comprehensible and flexible
17452         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17453         Modify all calls.
17454         Any coding system can be used to do format conversion.
17455         Eliminate enum external_data_format.
17456         Eliminate convert_to_external_format.
17457         Eliminate convert_to_internal_format.
17458         Make sure file-name, keyboard, terminal, and ctext are always
17459         defined as coding systems or aliases.  Make
17460         file-name-coding-system, terminal-coding-system, and
17461         keyboard-coding-system magical variables that are equivalent to
17462         defining the corresponding coding system aliases.
17463
17464         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17465         * file-coding.c (Fcoding_system_alias_p): New function.
17466         * file-coding.c (Fcoding_system_aliasee): New function.
17467         * file-coding.c (append_suffix_to_symbol): New function.
17468         * file-coding.c (dangling_coding_system_alias_p): New function.
17469         * file-coding.c (Ffind_coding_system):
17470         * file-coding.c (Fcopy_coding_system):
17471         * file-coding.c (encode_coding_no_conversion):
17472         * file-coding.c (syms_of_file_coding):
17473         * file-coding.c (vars_of_file_coding):
17474         Rewrite coding system alias code.
17475         Allow nested aliases, like symbolic links.
17476         Allow redefinition of coding system aliases.
17477         Prevent existence of dangling coding system aliases.
17478
17479         * dired.c (Fuser_name_completion_1):
17480         * dired.c (Fuser_name_all_completions):
17481         A crash would happen if user did QUIT in the middle of building
17482         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17483
17484         * lisp.h:
17485         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17486
17487         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17488         an unsigned char *.  Update all callers.
17489
17490 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17491
17492         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17493
17494 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17495
17496         * elhash.c (hentry_description): Use more portable definition.
17497         (resize_hash_table): Initialize new hentries using
17498         xnew_array_and_zero, thereby simplifying the code.
17499
17500         * mule-charset.c (make_charset): Make sure entire object is
17501         initialized, to avoid Purify warnings.
17502
17503         * alloc.c (resize_string): Fix unlikely crash with big strings.
17504
17505 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17506
17507         * realpath.c (xrealpath):
17508         Don't call getwd().
17509
17510 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17511
17512         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17513
17514 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17515
17516         * unexelfsgi.c (unexec): Change the way we decide which segment
17517         should be extended.
17518
17519         Assumption that .bss section should be outside the PT_LOADable
17520         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17521         it's present) is inside the 'data' segment. This would fail the
17522         test which was used to find a segment to grow and cover new
17523         heap. Instead of this assumption, I created another one - on IRIX
17524         the segment to grow should start below .bss and it's address
17525         should extent above the end of .bss. Once this segment is
17526         identified, it's grown to accommodate the new heap and new
17527         zero-length .bss section is added at the end of .data2.
17528
17529 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17530
17531         * eval.c (Feval): Wrong number of arguments should use original
17532         function, not the indirect_function version of it.
17533
17534 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17535
17536         * glyphs-x.c (x_button_instantiate): Don't add image if
17537         it is not a pixmap.
17538         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17539         is relative.
17540
17541 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17542
17543         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17544         declaration.
17545         (DEFVAR_INT_MAGIC): Ditto.
17546         (DEFVAR_BOOL_MAGIC): Ditto.
17547         * glyphs.h: Reindent backslash.
17548
17549 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17550
17551         * glyphs-widget.c (layout_query_geometry):
17552         (layout_layout): Use correct types for gheight, gwidth.
17553
17554 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17555
17556         * EmacsManager.c (QueryGeometry): Purified.
17557
17558 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17559
17560         * alloc.c (make_float): Make sure entire object is initialized, to
17561         avoid Purify warnings.
17562         (pdump_register_sub): Remove useless assignment.
17563         (pdump): Use xmalloc, not malloc.
17564         (pdump_load): Use xmalloc, not malloc.
17565
17566 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17567
17568         * callproc.c:
17569         * dired-msw.c:
17570         * fileio.c:
17571         * process-nt.c:
17572         * redisplay-msw.c:
17573         * sysdep.c: Removed redundant #include <windows.h>
17574
17575 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17576
17577         * frame.c (delete_frame_internal): Do not delete device when its
17578         implementation so declares.
17579         (delete_frame_internal): Set device selected frame to nil when
17580         last frame goes away.
17581
17582         * device-msw.c (msprinter_device_system_metrics): Implemented.
17583         (mswindows_device_system_metrics): Added 'device-dpi property.
17584
17585         * device.c: (Fdevice_printer_p): Added.
17586         Added 'offset-workspace device metric.
17587
17588         * console.h (device_metrics): Declared DM_offset_workspace.
17589
17590 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17591
17592         * fileio.c (Ffile_truename): Remove pointless and confusing
17593         initialization of elen.
17594
17595         * glyphs-widget.c: Compiler warning fixes.
17596
17597 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17598
17599         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17600         instead of a Lisp_Object as argument to make it consistent with
17601         the other LIVE_P macros.
17602         (CHECK_LIVE_PROCESS): New macro.
17603
17604         * process.c: Declare Qprocess_live_p.
17605         (Fprocess_live_p): New function.
17606         (create_process): Use PROCESS_LIVE_P.
17607         (read_process_output): Ditto.
17608         (set_process_filter): Ditto.
17609         (Fdelete_process): Ditto.
17610         (kill_buffer_processes): Ditto
17611         (process_send_signal): Use CHECK_LIVE_PROCESS.
17612         (Fprocess_input_coding_system): Check whether process is still
17613         alive (fix PR#1061).
17614         (Fprocess_output_coding_system): Ditto.
17615         (Fprocess_coding_system): Ditto.
17616         (Fset_process_input_coding_system): Ditto.
17617         (Fset_process_output_coding_system): Ditto.
17618
17619 2000-01-23  Andy Piper  <andy@xemacs.org>
17620
17621         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17622         layout and widget.
17623
17624         * glyphs.c (mark_image_instance): take into account changed
17625         image_instance format.
17626         (image_instance_equal): ditto.
17627         (image_instance_hash): ditto.
17628
17629         * glyphs-widget.c (widget_instantiate): Incorporate layout
17630         instantiation here. Delay layout of the layout until later.
17631         (layout_instantiate): deleted.
17632         (layout_query_geometry): new function. get the geometry of a
17633         layout.
17634         (layout_layout): layout a layout dynamically.
17635         (image_instantiator_widget): New function - splitting up
17636         image_instantiator_format_create_glyphs_widget for netwinder
17637         compilation.
17638         (image_instantiator_buttons):
17639         (image_instantiator_edit_fields):
17640         (image_instantiator_combo_box):
17641         (image_instantiator_scrollbar):
17642         (image_instantiator_progress_guage):
17643         (image_instantiator_tree_view):
17644         (image_instantiator_tab_control):
17645         (image_instantiator_labels):
17646         (image_instantiator_layout): ditto.
17647         (image_instantiator_format_create_glyphs_widget): Call preceding
17648         functions.
17649
17650 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17651
17652         * process.c (Fset_process_coding_system):
17653         * device-x.c (Fx_keysym_hash_table):
17654         Docstring fixes.
17655
17656         * lstream.c (Lstream_write): Return documented value, not 0.
17657
17658         * fileio.c (directory_file_name):
17659         (Fsubstitute_in_file_name):
17660         (Fsubstitute_insert_file_contents_internal):
17661         (Fwrite_region_internal):
17662         * emacs.c:
17663         * sysdep.c:
17664         * getloadavg.c:
17665         * systty.h:
17666         Remove vestigial APOLLO-conditional code.
17667
17668 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17669
17670         * getpagesize.h: Add guard macros.
17671         * libsst.h: Add guard macros.
17672         * libst.h: Add guard macros.
17673         * line-number.h: Add guard macros.
17674         * ndir.h: Add guard macros.
17675         * sysfloat.h: Add guard macros.
17676         * sysfile.h: Add guard macros.
17677         * sysproc.h: Add guard macros.
17678         * syswait.h: Add guard macros.
17679         * xintrinsic.h: Add guard macros.
17680         * xintrinsicp.h: Add guard macros.
17681         * xmmanager.h: Add guard macros.
17682         * xmmanagerp.h: Add guard macros.
17683         * xmprimitive.h: Add guard macros.
17684         * xmu.h: Add guard macros.
17685         * gpmevent.h: Add copyright statement. Add guard macros.
17686         * miscplay.h: Add guard macros.
17687         * *.h: Use consistent C-standards-approved guard macro names.
17688
17689         * opaque.c (make_opaque): Switch parameter order.
17690         * opaque.h (make_opaque): Switch parameter order.
17691         Update all callers.
17692         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17693
17694         * config.h.in (type_checking_assert): Added.
17695         (bufpos_checking_assert): Added.
17696
17697 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17698
17699         * alloc.c: Harmless pdump changes.
17700         - Use countof().
17701         - spell alignment correctly.
17702         * sysdep.c: Use countof()
17703
17704 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17705
17706         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17707         initially_selected_for_input() console method, default to 0.
17708         (semi_canonicalize_console_connection): Try to delegate to
17709         canonicalize_console_connection if no such console method.
17710         (canonicalize_console_connection): Vice versa.
17711         (print_console): Do not print nil connection.
17712
17713         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17714         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17715         (XDEVIMPF_FRAMELESS_OK): Added.
17716         (CONSOLE_INHERITS_METHOD): Added.
17717
17718         * console-msw.c (mswindows_canonicalize_console_connection):
17719         Added.
17720         (mswindows_canonicalize_device_connection): Added.
17721
17722         * console-msw.h (struct msprinter_device): Added this struct and
17723         accessor macros.
17724         (mswindows_device): Made fontlist a lisp object.
17725
17726         * device.c (semi_canonicalize_device_connection):  Try to delegate
17727         to canonicalize_device_connection if no such console method.
17728         (canonicalize_device_connection): Vice versa.
17729         (print_device): Do not print nil connection.
17730
17731         * device-msw.c (mswindows_init_device): Call InitCommonControls
17732         when have widgets.
17733         (mswindows_delete_device): Removed fontlist deallocation.
17734         (mswindows_mark_device): Added.
17735
17736         * events.c (event_equal): Added abort() at unreached code.
17737         (event_hash): Ditto.
17738
17739         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17740         fallback tags of Windows devices.
17741
17742         * general.c (syms_of_general): Initialized Qmsprinter.
17743
17744         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17745         of fallback tags of Windows devices.
17746
17747         * lisp.h: Declared Qmsprinter.
17748
17749         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17750         of strings.
17751         (mswindows_list_fonts): Ditto.
17752         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17753         that it can be used by both mswindows and msprinter devices.
17754         (initialize_font_instance): Added.
17755         (mswindows_initialize_font_instance): Use it.
17756         (msprinter_initialize_font_instance): Added.
17757
17758         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17759         and implementation flags check.
17760         (redisplay_without_hooks): Changed the call to the above.
17761         (Fredraw_device): Ditto.
17762         (Fredisplay_device): Ditto.
17763
17764         * redisplay-msw.c (get_frame_dc): Implemented.
17765         (get_frame_compdc): Implemented.
17766         (many functions): Use the two functions above to get device
17767         contexts, ether for a window or a printer.
17768
17769 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17770
17771         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17772         initialization here.
17773         (init_symbols_once_early): Call it.
17774         * emacs.c (main_1): Call it.
17775         * symsinit.h: Declare it.
17776
17777 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17778
17779         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17780         Lisp_Object.
17781         (pdump_backtrace): Ditto.
17782         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17783         (pdump_get_entry): Abort if trying to register a null pointer.
17784         (pdump_dump_data): Cleanup types when relocating.
17785         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17786         (pdump_dump_rtables): Remove bad casts.
17787         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17788         Lisp_Object instead of a EMACS_INT for the hashtable
17789         reorganization.
17790
17791 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17792
17793         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17794
17795         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17796
17797         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17798
17799         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17800
17801 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17802
17803         * faces.h (FACE_STRIKETHRU_P): Added.
17804
17805         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17806         of font variants.
17807
17808         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17809         (mswindows_set_dc_font): New function, aware of font variants,
17810         separated from mswindows_update_dc.
17811
17812         * objects-msw.h (struct mswindows_font_instance_data): Added
17813         definition.
17814
17815         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17816         cached fonts and the data structure.
17817         (mswindows_initialize_font_instance): Added creation of font data
17818         structure.
17819         (mswindows_print_font_instance): Print at least something.
17820         (mswindows_create_font_variant): Implemented.
17821         (mswindows_get_hfont): Implemented.
17822
17823 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17824
17825         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17826         prototyping problem with msvc.
17827
17828         * emacs.c (main_1): added syms_of_gui_mswindows() call
17829
17830         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17831         syms_of_gui_mswindows() function
17832
17833         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17834
17835 2000-01-18  Martin Buchholz <martin@xemacs.org>
17836
17837         * XEmacs 21.2.27 is released.
17838
17839 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17840
17841         * glyphs-eimage.c (struct tiff_error_struct):
17842         (tiff_error_func):
17843         (tiff_warning_func):
17844         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17845
17846         * unexmips.c:
17847         * unexhp9k3.c:
17848         * unexfreebsd.c:
17849         * unexec.c: Remove vestigial Lucid C code.
17850         * unexalpha.c:
17851         * unexaix.c:
17852         * termcap.c:
17853         * libsst.c: Ansify.
17854         Remove declarations of errno and strerror().
17855
17856         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17857
17858         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17859
17860 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17861
17862         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17863         Optimize.
17864
17865 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17866
17867         * md5.c:
17868         * file-coding.c:
17869         * file-coding.h:
17870         Change enum eol_type to eol_type_t.
17871
17872 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17873
17874         * gui.c (get_gui_callback): Check cons before accessing car.
17875
17876 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17877
17878         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17879         (XSETSPECIFIER_TYPE): Ditto.
17880
17881 2000-01-17  Didier Verna  <didier@xemacs.org>
17882
17883         * redisplay.c (generate_fstring_runes): compute string size in
17884         characters, not bytes.
17885
17886 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17887
17888         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17889
17890 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17891
17892         * print.c (print_error_message): Call print_prepare().
17893
17894 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17895
17896         * .dbxrc: Renamed from dbxrc.
17897
17898         * events.c (event_to_character):
17899         Use `assert (foo)' instead of `if (!foo) abort()'
17900
17901         * .gdbinit (xtype): Add documentation.
17902         * .gdbinit (check-temacs): New function.
17903         * .gdbinit (check-xemacs): New function.
17904         * dbxrc (check-xemacs): New function.
17905         * dbxrc (check-xemacs): New function.
17906
17907 2000-01-14  Andy Piper  <andy@xemacs.org>
17908
17909         * glyphs-widget.c (widget_query_geometry): Make sure that we
17910         calculate default dimensions correctly.
17911
17912 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17913
17914         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17915
17916         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17917         pdump_wire'd variable.
17918
17919         * emacs.c: (main_1): Conditionalized calls to
17920         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17921
17922 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17923
17924         * window.c (Fset_window_configuration):
17925         * sysdep.c (_start):
17926         * input-method-motif.c (res):
17927         * event-Xt.c (Xt_process_to_emacs_event):
17928         Simple compiler warning fixes.
17929
17930         * bytecode.c (funcall_compiled_function): Use the original
17931         function symbol on the backtrace list in preference to the
17932         compiled_function object in error messages.
17933
17934 2000-01-13  Andy Piper  <andy@xemacs.org>
17935
17936         * glyphs-x.c (update_widget_face): Make sure we update the widget
17937         background as well as foreground.
17938
17939 2000-01-13  Andy Piper  <andy@xemacs.org>
17940
17941         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17942         fields to subwindow.
17943         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17944         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17945         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17946         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17947
17948         * glyphs-widget.c (check_valid_tab_orientation): new function.
17949         (initialize_widget_image_instance): zero orientation and
17950         justification.
17951         (widget_instantiate): pick up orientation.
17952         (tab_control_query_geometry): return appropriate values for
17953         vertical tabs.
17954
17955         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17956         appropriate creation flags for left, right and bottom tabs.
17957
17958         * s/cygwin32.h: add tab definitions.
17959
17960 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17961
17962         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17963         frame upon hiding a subwindow.
17964         (mswindows_button_instantiate): Changed the push button style to
17965         BS_PUSHBUTTON.
17966         (mswindows_button_instantiate): Removed button BS_NOTIFY
17967         style.
17968         (mswindows_button_instantiate): Removed redundant check for
17969         a disabled gui item.
17970         (mswindows_button_instantiate): Made use of WS_TABSTOP
17971         consistent: "operable" controls (edit, button, tree, scroll) have
17972         this style, "display-only" ones (static, progress gauge) do
17973         not. This style is currently ignored by XEmacs though. Also,
17974         removed the WS_EX_CONTROLPARENT style - it is not for children,
17975         it is for their parents!
17976         (mswindows_edit_field_instantiate): Ditto.
17977         (mswindows_progress_gauge_instantiate): Ditto.
17978         (mswindows_tree_view_instantiate): Ditto.
17979         (mswindows_tab_control_instantiate): Ditto.
17980         (mswindows_scrollbar_instantiate): Ditto.
17981         (mswindows_combo_box_instantiate): Ditto.
17982         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17983         style to the "clip" window.
17984         (mswindows_button_instantiate): Removed compilation warning by
17985         equally typing terms of the ?: operator.
17986
17987 2000-01-12  Didier Verna  <didier@xemacs.org>
17988
17989         * redisplay.c (generate_fstring_runes): new parameter holding the
17990         last modeline-format extent.
17991         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17992         extent, fill the glyph block with it.
17993         (generate_fstring_runes): handle these parameters.
17994         (generate_formatted_string_db): ditto.
17995
17996         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17997         glyphs'extents in the modeline.
17998
17999 1999-01-11  Mike Woolley  <mike@bulsara.com>
18000
18001         * ntheap.c: Reduced the reserved heap space from 1Gb down to
18002         256Mb, as a workaround for the non-starting problem many people
18003         have experienced.
18004
18005 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18006
18007         * console-tty.c (Fset_console_tty_output_coding_system):
18008         Force redrawing tty frame.
18009
18010 2000-01-10  Didier Verna  <didier@xemacs.org>
18011
18012         * redisplay.c (generate_fstring_runes): fix size computation bug.
18013
18014 2000-01-09  William M. Perry <wmperry@aventail.com>
18015
18016         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
18017
18018 2000-01-09  Andy Piper  <andy@xemacs.org>
18019
18020         * glyphs-msw.c: index -> i to avoid shadows.
18021         (xbm_create_bitmap_from_data): make static.
18022         (check_valid_string_or_int): deleted.
18023         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
18024
18025         * glyphs-x.c (x_update_subwindow): remove unused args.
18026
18027         * glyphs.c (glyph_image_instance): return the thing. Don't set the
18028         back pointer - this is done in allocate_image_instance.
18029         (query_string_font): return Qnil to make the compiler happy.
18030         (unmap_subwindow): set to ~0 to make the compiler happy.
18031         (glyph_query_geometry): comment out until used.
18032         (glyph_layout): ditto.
18033
18034 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18035
18036         * insdel.c (signal_after_change): Remove extraneous unbind_to().