Sync up with r21-4-21.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
4         (Kasagi).
5
6 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
9         is a relation feature.
10
11 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
12
13         * chartab.c (syms_of_chartab): Define
14         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
15
16         * chartab.h (Q_denotational): New extern when UTF2000 or
17         HAVE_CONCORD is defined.
18         (Q_denotational_from): Likewise.
19         (Q_subsumptive): Likewise.
20         (Q_subsumptive_from): Likewise.
21
22 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
23
24         * concord.c (concord_object_put): New function.
25         (Fconcord_object_put): Use `concord_object_put'.
26
27 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
28
29         * concord.c (Fconcord_define_object): New function.
30         (syms_of_concord): Add new builtin function
31         `concord-define-object'.
32
33 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
34
35         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
36         (Kamo).
37
38 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
39
40         * concord.c: Add EXFUN for Fconcord_object_get.
41         (Vconcord_genre_object_hash_table): New variable.
42         (concord_genre_cache_get_object): New function.
43         (concord_genre_cache_put_object): New function.
44         (Fconcord_make_object): Use object cache; put object-ID into `=id'
45         feature.
46         (Fconcord_object_put): Call `concord_index_sync' after
47         `concord_index_strid_put_obj'.
48         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
49
50 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * concord.c (Fconcord_decode_object): Do GCPRO for
53         Fconcord_make_object.
54         (func_for_each_object): Likewise; do GCPRO for
55         for_each_object_closure->function.
56         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
57         for_each_object_closure->function, for_each_object_closure->genre,
58         for_each_object_closure->ds and for_each_object_closure->ret.
59         (concord_object_validate): Do GCPRO for Fconcord_make_object.
60
61 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
62
63         * concord.c: Add EXFUNs for Fconcord_decode_object and
64         Fconcord_object_put.
65         (Fconcord_make_object): Change order of arguments.
66         (Fconcord_decode_object): Modify for Fconcord_make_object.
67         (func_for_each_object): Likewise.
68         (concord_object_validate): Likewise.
69         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
70
71 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
72
73         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
74
75 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * concord.c (Fconcord_decode_object): Try to use readable print
78         form as a key of Concord-index.
79         (Fconcord_object_get): Try to use readable print form as an ID of
80         Concord-object.
81         (Fconcord_object_put): Try to use readable print form as an ID of
82         Concord-object and a feature value.
83         (Fconcord_object_spec): Try to use readable print form as an ID of
84         Concord-object.
85
86 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
87
88         * concord.c (print_concord_object): Support readable form.
89
90 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
91
92         * emacs.c (main_1): Call `structure_type_create_concord' when
93         HAVE_CONCORD is defined.
94
95         * symsinit.h (structure_type_create_concord): New prototype.
96
97         * concord.c (Qconcord_object): New variable.
98         (Qgenre): Likewise.
99         (Q_id): Likewise.
100         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
101         for directory.
102         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
103         char*> for genre-name.
104         (Fconcord_feature_list): Likewise.
105         (Fconcord_make_object): Likewise.
106         (Fconcord_decode_object): Likewise; use <char*> instead of
107         <unsigned char*> for feature_name and strid.
108         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
109         c_obj and feature_name.
110         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
111         char*> for c_value.
112         (struct closure_for_object_spec): Use <char*> instead of <unsigned
113         char*> for member `object_id'.
114         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
115         char*> for feature-name.
116         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
117         for c_obj.
118         (func_for_each_object): Cast to avoid warnings.
119         (Fconcord_foreach_object_in_feature): Use <char*> instead of
120         <unsigned char*> for genre_name and feature_name.
121         (concord_name_validate): New function.
122         (concord_object_validate): Likewise.
123         (concord_object_instantiate): Likewise.
124         (syms_of_concord): Add new builtin symbols `concord-object',
125         `genre' and `=id'.
126         (structure_type_create_concord): New function.
127
128 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
129
130         * concord.c (Vconcord_ds_hash_table): New variable.
131         (Vconcord_genre_hash_table): New variable.
132         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
133         (Fconcord_ds_directory): New function.
134         (Fconcord_assign_genre): New function.
135         (Fconcord_genre_directory): New function.
136         (Fconcord_genre_ds): New function.
137         (Fconcord_feature_list): Allow to omit `ds'.
138         (Fconcord_make_object): Likewise.
139         (Fconcord_decode_object): Likewise.
140         (Fconcord_foreach_object_in_feature): Likewise.
141         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
142         Fconcord_assign_genre, Fconcord_genre_directory and
143         Fconcord_genre_ds.
144         (vars_of_concord): Setup Vconcord_ds_hash_table and
145         Vconcord_genre_hash_table.
146
147 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
148
149         * concord.c (struct closure_for_each_object): Add new member
150         `ret'.
151         (func_for_each_object): Setup the return value to
152         `for_each_object_closure->ret'.
153         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
154         returns the value instead of Qt.
155
156 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
157
158         * concord.c: New file.
159
160 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
163         `lrecord_type_concord_object'.
164
165 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
166
167         * symsinit.h (syms_of_concord): New prototype.
168         (vars_of_concord): New prototype.
169
170         * emacs.c (main_1): Setup symbols and variable about concord if
171         HAVE_CONCORD is defined.
172
173         * config.h.in (HAVE_CONCORD): New macro.
174
175 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
176
177         * chartab.c (Fput_char_attribute): For each character relation
178         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
179
180 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
181
182         * chartab.c (Fput_char_attribute): Use
183         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
184         calling `put_char_composition'.
185
186 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
187
188         * chartab.c (Q_halfwidth_of): New variable.
189         (put_char_composition): Return `<-halfwidth' instead of
190         `=decomposition' for compatibility mapping to single character
191         tagged `narrow'.
192         (Fput_char_attribute): Convert char-specs in value of
193         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
194         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
195         for `<-halfwidth'.
196         (syms_of_chartab): Add new symbol `<-halfwidth'.
197
198 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
199
200         * chartab.c (put_char_composition): Return
201         `<-formed@{isolated|initial|medial|final}' for compatibility
202         mapping to single character tagged
203         `{isolated|initial|medial|final}'.
204
205 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
206
207         * chartab.c (Q_compat_of): Deleted.
208         (put_char_composition): Return `<-FOO' for compatibility mapping
209         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
210         of `symbol_name (XSYMBOL(...))'.
211         (Fput_char_attribute): Convert char-specs in value of
212         `{<-|->}font[^*]*' to characters and put reverse links.
213         (Fsave_char_attribute_table): Don't refer Q_compat_of.
214         (syms_of_chartab): Delete builtin symbol `<-compat'.
215
216 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
217
218         * chartab.c (Q_circled_of): New variable.
219         (put_char_composition): Return `<-circled' instead of
220         `=decomposition' for compatibility mapping to single character
221         tagged `circle'.
222         (Fput_char_attribute): Convert char-specs in value of
223         `{<-|->}circled[^*]*' to characters and put reverse links.
224         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
225         for `<-circled'.
226         (syms_of_chartab): Add new symbol `<-circled'.
227
228 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
229
230         * chartab.c (Qto_decomposition_at_circled): New variable.
231         (put_char_composition): Return `=>decomposition@circled' instead
232         of `=decomposition' for compatibility decomposition mapping tagged
233         `circle'.
234         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
235
236 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
237
238         * chartab.c (Q_subscript_of): New variable.
239         (put_char_composition): Return `<-subscript' instead of
240         `=decomposition' for compatibility mapping to single character
241         tagged `sub'.
242         (Fput_char_attribute): Convert char-specs in value of
243         `{<-|->}subscript[^*]*' to characters and put reverse links.
244         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
245         for `<-subscript'.
246         (syms_of_chartab): Add new symbol `<-subscript'.
247
248 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
249
250         * chartab.c (Q_superscript_of): New variable.
251         (put_char_composition): Return `<-superscript' instead of
252         `=decomposition' for compatibility mapping to single character
253         tagged `super'.
254         (Fput_char_attribute): Convert char-specs in value of
255         `{<-|->}superscript[^*]*' to characters and put reverse links.
256         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
257         for `<-superscript'.
258         (syms_of_chartab): Add new symbol `<-superscript'.
259
260 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
261
262         * chartab.c (Qto_decomposition_at_compat): Deleted.
263         (Qto_decomposition_at_superscript): New variable.
264         (put_char_composition): Use `=>decomposition@superscript' instead
265         of `=decomposition' for compatibility decomposition mapping tagged
266         `super'.
267         (Fput_char_attribute): Fix condition about `put_char_composition'.
268         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
269         add news symbol `=>decomposition@superscript'.
270
271 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
272
273         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
274         for compatibility decomposition mapping tagged FOO.
275         (Fput_char_attribute): Modify for `put_char_composition'.
276
277 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
278
279         * chartab.c (Qto_decomposition_at_compat): New variable.
280         (Q_compat_of): Renamed from `Q_compatibility_of'.
281         (put_char_composition): Rename `Q_compatibility_of' to
282         `Q_compat_of'; return `=>decomposition@compat' for compatibility
283         decomposition mapping.
284         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
285         `Q_compat_of'.
286         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
287         `<-compatibility' to `<-compat'.
288
289 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
290
291         * chartab.c (Q_compatibility_of): New variable.
292         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
293         object is proved to be a cons cell; return `<-compatibility' if
294         the first element of argument `value' is `compat'.
295         (Fput_char_attribute): Eliminate the first value if
296         `put_char_composition' returns `<-compatibility'.
297         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
298         for `<-compatibility'.
299         (syms_of_chartab): Add new symbol `<-compatibility'.
300
301 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
302
303         * chartab.c (Q_canonical): New variable.
304         (put_char_composition): Return a feature name: return
305         `->canonical' if argument `value' specifies single character.
306         (Fput_char_attribute): Use `put_char_composition' to determine
307         feature name for `=decomposition' or `->denotational'.
308         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
309         for `->canonical'.
310         (syms_of_chartab): Add new symbol `->canonical'.
311
312 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
313
314         * chartab.c (Qmap_decomposition): New variable.
315         (Fput_char_attribute): Convert `->decomposition' to
316         `=decomposition'.
317         (syms_of_chartab): Add new symbol `=decomposition'.
318
319 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
320
321         * chartab.c (Fget_range_char_table): Fix serious problem when
322         `range' is nil.
323
324 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
325
326         * chartab.c (char_table_get_db): Use `read_from_c_string'.
327
328 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
329
330         * lread.c (read_from_c_string): New function.
331
332         * lisp.h (read_from_c_string): New prototype.
333
334 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
335
336         * chartab.c (Fput_char_attribute): Convert char-specs in value of
337         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
338         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
339         for `{<-|->}Oracle-Bones[^*]*'.
340
341 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
344         (Kizu).
345
346 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
347
348         * text-coding.c (Qccs_priority_list): New variable in XEmacs
349         CHISE.
350         (Fmake_coding_system): Support new property `ccs-priority-list' in
351         XEmacs CHISE.
352         (Fcoding_system_property): Likewise.
353         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
354         Vdefault_coded_charset_priority_list in XEmacs CHISE.
355         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
356         XEmacs CHISE.
357         (complex_vars_of_file_coding): Define new coding-system-property
358         `ccs-priority-list' in XEmacs CHISE.
359
360         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
361
362 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
363
364         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
365         changed to normal function.
366         (encode_char_2): Likewise.
367
368         * mule-charset.c (decoding_table_put_char): Copied from
369         char-ucs.h; changed to normal function.
370         (encode_char_2): Likewise.
371
372 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
373
374         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
375         New extern.
376         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
377         (encode_char_2_search_children): New inline function.
378         (encode_char_2): Refer
379         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
380         and use `encode_char_2_search_children'.
381
382 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
383
384         * mule-charset.c
385         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
386         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
387         (vars_of_mule_charset): Add new variable
388         `display-coded-charset-priority-use-inheritance' and
389         `display-coded-charset-priority-use-hierarchy-order'.
390
391 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
392
393         * char-ucs.h (Q_subsumptive): New extern.
394         (Q_denotational): Likewise.
395         (encode_char_2): Search children specified by `->subsumptive' and
396         `->denotational'.
397
398 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
399
400         * mule-charset.c (complex_vars_of_mule_charset): Modify the
401         X-registry of `ucs-bmp'.
402
403 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * chartab.c (char-variants): Refer `->subsumptive',
406         `->denotational' and `->identical' as same as `->ucs-unified'.
407
408 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
409
410         * chartab.c (Fput_char_attribute): Convert char-specs in value of
411         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
412         links.
413
414 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
415
416         * text-coding.c: Add EXFUN for `Fregexp_quote'.
417         (decode_add_er_char): Fix problem about infinite loop when a CCS
418         specified in `coded-charset-entity-reference-alist' is not
419         existed.
420
421 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
422
423         * mule-charset.c (syms_of_mule_charset): Rename
424         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
425
426 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
427
428         * fns.c (simplify_char_spec): Don't allocate new character-object
429         if specified char_spec does not have any CCS-features.
430
431         * chartab.h: Add EXFUN for Fdefine_char.
432
433         * chartab.c: Delete EXFUN for Fdefine_char.
434
435 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
436
437         * fns.c (simplify_char_spec): Use Fdefine_char instead of
438         Ffind_char for char-spec.
439
440 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
441
442         * lisp-disunion.h (XCHARVAL): Fix condition about
443         SIZEOF_EMACS_INT.
444
445 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
448         <int> for `code'.
449         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
450         point; use <Emchar> instead of <int> for character-id.
451
452 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
453
454         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
455         (make_char): Likewise.
456         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
457         environment.
458         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
459         instead of <int> as the type of return value; use <Lisp_Object>
460         instead of <Emchar> as the type of argument.
461         (XCHARVAL[macro version]): Cast the result into <Emchar>.
462
463         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
464         syntaxcode> instead of <int>.
465
466 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
467
468         * chartab.c (put_char_composition): Use DECODE_CHAR to get
469         character corresponding with UCS code point.
470         (Fput_char_attribute): Likewise.
471
472         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
473         character in the UCS decoding-table if the char-id is not equal to
474         the UCS code point.
475
476 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
477
478         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
479         for aliases; write `description'; write
480         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
481         not 0.
482
483 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
484
485         * chartab.c (Fsave_char_attribute_table): Don't use
486         `save_charset_properties'.
487
488         * mule-charset.c (Fsave_charset_properties): Renamed from
489         `save_charset_properties' and changed to Lisp function again;
490         write property `type' as `CCS'; write properties `final-byte' and
491         `mother' if they exists.
492         (syms_of_mule_charset): Revive builtin function
493         `save-charset-properties' when HAVE_LIBCHISE is defined.
494
495 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
496
497         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
498         instead of Vexec_directory.
499         (char_attribute_system_db_file): Likewise.
500
501 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
502
503         * chartab.c (Fsave_char_attribute_table): Use
504         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
505         defined.
506
507         * mule-charset.c (save_charset_properties): Renamed from
508         `Fsave_charset_properties'; changed to non-Lisp function.
509         (syms_of_mule_charset): Abolish builtin function
510         `save-charset-properties'.
511
512 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
513
514         * mule-charset.c (Fsave_charset_properties): New function when
515         HAVE_LIBCHISE is defined.
516         (syms_of_mule_charset): Add new builtin function
517         `save-charset-properties' when HAVE_LIBCHISE is defined.
518
519 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
520
521         * chartab.c (Fput_char_attribute): Convert char-specs in value of
522         `{<-|->}ancient[^*]*' to characters and put reverse links.
523         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
524         for `{<-|->}ancient[^*]*'.
525
526 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
527
528         * chartab.c (Fput_char_attribute): Convert char-specs in value of
529         `{<-|->}original[^*]*' to characters and put reverse links.
530         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
531         for `{<-|->}original[^*]*'.
532
533 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
534
535         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
536
537 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
538
539         * mule-charset.c (Qsystem_char_id): New variable.
540
541         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
542         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
543
544 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
545
546         * chartab.c (Fput_char_attribute): When processing a reference of
547         a character, put into the end of the reversed reference of each
548         target character.
549
550 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
551
552         * chartab.c (Q_same): Deleted.
553         (Q_same_of): Deleted.
554         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
555         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
556         for `{<-|->}same'.
557         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
558
559 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
560
561         * chartab.c (Q_vulgar): Deleted.
562         (Q_vulgar_of): Deleted.
563         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
564         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
565         for `{<-|->}vulgar'.
566         (syms_of_chartab): Don't define `{<-|->}vulgar'.
567
568 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
569
570         * chartab.c (Fput_char_attribute): Convert char-specs in value of
571         `{<-|->}wrong[^*]*' to characters and put reverse links.
572         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
573         for `{<-|->}wrong[^*]*'.
574
575 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
576
577         * chartab.c (Q_vulgar): New variable.
578         (Q_vulgar_of): New variable.
579         (Fput_char_attribute): Convert char-specs in value of
580         `{->|<-}vulgar' to characters and put reverse links.
581         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
582         for `{->|<-}vulgar'.
583         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
584
585 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
586
587         * text-coding.c (decode_add_er_char): Must to quote prefix string
588         as regexp.
589
590 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
591
592         * mule-charset.c (put_char_ccs_code_point): Store characters of
593         =ucs whose code_points >= 0xF0000.
594
595 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
596
597         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
598         CHISE.
599         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
600         CHISE.
601         (complex_vars_of_mule_charset): Add new coded-charset
602         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
603         builtin characters over 0xEFFFF.
604
605         * chartab.c (syms_of_chartab): Don't define symbol
606         `system-char-id' in every case.
607
608         * char-ucs.h (Qsystem_char_id): New extern variable.
609         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
610
611 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
612
613         * text-coding.c (char_encode_utf8): Try to use entity-references
614         for U-000F0000 ...  U-0010FFFF.
615
616 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
617
618         * text-coding.c (ER_BUF_SIZE): New macro.
619         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
620         `er_buf'.
621         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
622         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
623
624 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
625
626         * chartab.c (find_char_feature_in_family): New function.
627         (Fchar_feature): Use `find_char_feature_in_family' with
628         `->identical', `<-subsumptive' and `<-denotational'.
629
630 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
631
632         * text-coding.c (char_encode_as_entity_reference): Allow prefix
633         within 8 characters; fix infinite loop.
634
635 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
636
637         * chartab.c (Q_same): New variable.
638         (Q_same_of): New variable.
639         (Fput_char_attribute): Convert char-specs in value of
640         `{->|<-}same' to characters and put reverse links.
641         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
642         for `{->|<-}same'.
643         (syms_of_chartab): Add new symbols `{->|<-}same'.
644
645 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
646
647         * chartab.c (Q_component): New variable.
648         (Q_component_of): Likewise.
649         (Fput_char_attribute): Convert char-specs in value of
650         `{->|<-}ideographic-component-forms' to characters and put reverse
651         links.
652         (syms_of_chartab): Add new symbols
653         `{->|<-}ideographic-component-forms'.
654
655 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
656
657         * chartab.c (Q_identical): New variable.
658         (Q_identical_from): New variable.
659         (Fchar_feature): Regard `->identical' as a feature to find
660         ancestors.
661         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
662         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
663         for `{->|<-}identical'.
664         (syms_of_chartab): Add new symbols `{->|<-}identical'.
665
666 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
667
668         * char-ucs.h (encode_char_2): New inline function.
669         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
670
671 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
672
673         * chartab.c (Fput_char_attribute): Convert char-specs to
674         characters in value of `ideographic-structure'.
675         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
676         for `{<-|->}simplified(@...)'.
677         (Fdefine_char): Try to use predefined character's id.
678
679 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
680
681         * fns.c (simplify_char_spec): Try to convert builtin chars to
682         defined chars.
683
684 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
685
686         * chartab.c (Fput_char_attribute): Convert char-specs in value of
687         `<-simplified[^*]*' to characters and put reverse links.
688
689 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
690
691         * chartab.c (Q_subsumptive): Renamed from Q_unified.
692         (Q_subsumptive_from): Renamed from Q_unified_from.
693         (Fchar_feature): Use `Q_subsumptive_from' instead of
694         `Q_unified_from'.
695         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
696         `Q_unified'.
697         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
698         `<-unified' to `<-subsumptive'.
699
700 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
701
702         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
703         inheritance itself; fix typo; stop recursive search if cyclic
704         inheritance is found.
705
706 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
707
708         * chartab.c (Q_denotational): New variable.
709         (Q_denotational_from): New variable.
710         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
711         (put_char_attribute): New function.
712         (Fput_char_attribute): Use `put_char_attribute'; regard
713         `->denotational' and `<-denotational' as same as `->unified' and
714         `<-unified'.
715         (syms_of_chartab): Add new symbols `->denotational' and
716         `<-denotational'.
717
718 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
719
720         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
721         `Fget_char_attribute'.
722         (Fchar_variants): Likewise.
723         (get_char_table): Likewise.
724         (Fchar_feature): New function.
725         (put_char_composition): Use `Fchar_feature' instead of
726         `Fget_char_attribute'.
727         (Fput_char_attribute): Likewise; don't put the target character
728         into its `->unified' value.
729         (syms_of_chartab): Add new builtin function `char-feature'.
730
731 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
732
733         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
734         `Fget_char_attribute'.
735         (char_encode_utf8): Likewise.
736
737         * chartab.h: Add an EXFUN for `Fchar_feature'.
738
739 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
740
741         * chartab.c (Vnext_defined_char_id): New variable.
742         (Fput_char_attribute): Accept characters in `->unified'.
743         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
744         new characters which are not related with builtin char-id ranges.
745         (vars_of_chartab): Add new variable `next-defined-char-id'.
746
747 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
748
749         * chartab.c (Q_unified): New variable.
750         (Q_unified_from): New variable.
751         (Fput_char_attribute): Add code for `->unified'.
752         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
753         XEmacs CHISE.
754
755 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
756
757         * mule-charset.c (decode_ccs_conversion): New function.
758         (decode_defined_char): Use `decode_ccs_conversion'.
759         (decode_builtin_char): Likewise.
760
761 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
762
763         * char-ucs.h: Change some charset-ids of private coded-charsets.
764
765 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
766
767         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
768         (char_encode_as_entity_reference): Likewise.
769         (decode_coding_big5): Modify for `decode_defined_char' and
770         `DECODE_CHAR'.
771         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
772         avoid compiler warning.
773         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
774
775         * mule-charset.c (decode_defined_char): Add new argument
776         `without_inheritance'.
777         (Fdecode_char): Add new optional argument `without_inheritance'.
778         (Fdecode_builtin_char): Modify for `Fdecode_char'.
779
780         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
781         (simplify_char_spec): Likewise.
782
783         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
784         setting.
785
786         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
787         (map_char_table): Likewise.
788         (Fdefine_char): Use `Fdecode_char' without inheritance.
789         (Ffind_char): Modify for `Fdecode_char'.
790
791         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
792
793         * char-ucs.h (decode_defined_char): Add new argument
794         `without_inheritance'.
795         (DECODE_CHAR): Likewise.
796         (MAKE_CHAR): Modify for `DECODE_CHAR'.
797
798 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
799
800         * chartab.c (Vchise_system_db_directory): New variable.
801         (vars_of_chartab): Add new variable `chise-system-db-directory'.
802
803 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
804
805         * chartab.c: EXFUN `Fmount_char_attribute_table'.
806         (print_chartab_range): Don't define when `UTF2000' is defined.
807         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
808         `CHISE_DS_open'.
809
810 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
811
812         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
813         and optional argument `rehash' is specified, call
814         `open_chise_data_source_maybe' before
815         `chise_ds_foreach_char_feature_name' is called.
816
817 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
818
819         * chartab.c (char_attribute_list_reset_map_func): New function
820         when HAVE_LIBCHISE is defined.
821         (Fchar_attribute_list): Add new optional argument `rehash' when
822         HAVE_LIBCHISE is defined.
823         (open_chise_data_source_maybe): Use "chise-db" instead of
824         "char-db".
825         (char_attribute_system_db_file): Likewise.
826         (Fload_char_attribute_table): Use
827         `chise_feature_foreach_char_with_value' instead of
828         `chise_char_feature_value_iterate'.
829
830 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
831
832         * chartab.c (Vchise_db_directory): New variable.
833         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
834
835 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
836
837         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
838         instead of HAVE_CHISE to specify using with libchise.
839
840         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
841
842         * chartab.h: Don't use HAVE_CHISE_CLIENT.
843
844         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
845         defined or HAVE_LIBCHISE_LIBCHISE is defined.
846         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
847         is defined.
848         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
849         HAVE_CHISE to specify using with libchise.
850         (syms_of_chartab): Don't define symbol `system-char-id' when
851         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
852
853 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
854
855         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
856         specify CHISE DB support.
857         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
858         of `char_attribute_system_db_file' to check feature DB file.
859
860         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
861         HAVE_CHISE_CLIENT to specify CHISE DB support.
862
863         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
864         specify CHISE DB support.
865         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
866         not defined.
867         (Freset_char_attribute_table): Use `chise_feature_setup_db'
868         instead of `char_attribute_system_db_file' to check feature DB
869         file.
870
871 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
872
873         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
874         `HAVE_CHISE_CLIENT'.
875
876 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
877
878         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
879         (Fsave_charset_mapping_table): Don't use
880         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
881
882         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
883         (HAVE_LIBCHISE): New macro.
884
885         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
886
887         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
888         (Fsave_char_attribute_table): Don't use
889         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
890
891 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
892
893         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
894         defined.
895         (save_uint16_byte_table): Likewise.
896         (save_byte_table): Likewise.
897         (char_table_get_db): Use `chise_ds_load_char_feature_value'
898         instead of `chise_char_load_feature_value'.
899         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
900
901 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
902
903         * chartab.h (struct Lisp_Char_Table): Delete member
904         `feature_table' if CHISE is defined.
905
906         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
907         (Fcopy_char_table): Likewise.
908         (char_table_open_db_maybe): Likewise.
909         (char_table_close_db_maybe): Likewise.
910         (char_table_get_db): Likewise.
911         (Fmount_char_attribute_table): Likewise.
912         (Fload_char_attribute_table): Likewise.
913
914 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
915
916         * mule-charset.c (load_char_decoding_entry_maybe): Use
917         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
918         `chise_ccs_decode'.
919
920 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
921
922         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
923         instead of `chise_open_data_source'.
924         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
925         `chise_ds_close'.
926
927 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
928
929         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
930         instead of `chise_ds_open_feature_table'.
931         (char_table_close_db_maybe): Don't use `chise_ft_close'.
932
933 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
934
935         * mule-charset.c (Fsave_charset_mapping_table): Use
936         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
937         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
938         `chise_ccs_sync' instead of `chise_ccst_close'.
939         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
940
941         * chartab.c (open_chise_data_source_maybe): Modify for
942         `chise_open_data_source'.
943         (char_table_open_db_maybe): Modify for
944         `chise_ds_open_feature_table'.
945
946 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
947
948         * mule-charset.c (load_char_decoding_entry_maybe): Use
949         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
950         `chise_ccst_close'.
951
952 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
953
954         * mule-charset.c (Fsave_charset_mapping_table): Use
955         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
956         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
957         `chise_dt_put_char' and `chise_dt_close'.
958         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
959         `chise_ccs_decode' and `chise_ccst_close' instead of
960         `chise_ds_open_decoding_table', `chise_dt_get_char' and
961         `chise_dt_close'.
962
963         * chartab.c (char_table_get_db): Use
964         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
965         (load_char_attribute_table_map_func): Modify for
966         `chise_char_feature_value_iterate'.
967         (Fload_char_attribute_table): Use
968         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
969
970 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
971
972         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
973
974 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
975
976         * chartab.c (put_char_table): Modify for inherited coded-charsets
977         in XEmacs CHISE.
978
979 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
980
981         * chartab.c (Fput_char_table_map_function): Fixed.
982         (word_boundary_p): Don't check charset in XEmacs CHISE.
983
984 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
985
986         * mule-charset.c (Fsave_charset_mapping_table): Use
987         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
988         instead of `chise_open_decoding_table'; refer
989         `default_chise_data_source'; use `chise_dt_close' instead of
990         `chise_close_decoding_table'.
991         (load_char_decoding_entry_maybe): Likewise.
992
993         * chartab.c (default_chise_data_source): New variable when `CHISE'
994         is defined.
995         (Fcopy_char_table): `ct->ds' is deleted.
996         (open_chise_data_source_maybe): New function.
997         (Fclose_char_data_source): New function.
998         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
999         use `chise_ds_open_feature_table' instead of
1000         `chise_open_feature_table'.
1001         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1002         `chise_close_feature_table'; `cit->ds' is deleted.
1003         (syms_of_chartab): Add new builtin function
1004         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1005
1006         * chartab.h (default_chise_data_source): New extern variable.
1007         (open_chise_data_source_maybe): New prototype.
1008         (struct Lisp_Char_Table): Delete `ds'.
1009
1010 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1011
1012         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1013         `CHISE' is defined.
1014
1015 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1016
1017         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1018         not defined; add code for non-libchise setting.
1019         (char_table_close_db_maybe): Likewise.
1020         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1021         defined.
1022         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1023         even if `CHISE' is not defined.
1024         (Freset_char_attribute_table): Likewise.
1025         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1026         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1027         `char_table_get_db'.
1028         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1029         `char_table_close_db_maybe' even if `CHISE' is not defined.
1030
1031 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1032
1033         * chartab.c (char_table_open_db_maybe): New function.
1034         (char_table_close_db_maybe): New function.
1035         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1036         (Freset_char_attribute_table): Likewise.
1037         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1038         `char_table_close_db_maybe'.
1039         (Fload_char_attribute_table): Likewise.
1040
1041 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1042
1043         * chartab.c: Don't include <chise.h> because it is included in
1044         chartab.h.
1045         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1046         defined.
1047         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1048         `CHISE' is defined.
1049         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1050         `CHISE' is defined.
1051         (Fclose_char_attribute_table): Close `ct->feature_table' and
1052         `ct->ds' when `CHISE' is defined.
1053         (Freset_char_attribute_table): Likewise.
1054         (load_char_attribute_maybe): Use `cit->ds' and
1055         `cit->feature_table' when `CHISE' is defined.
1056         (Fload_char_attribute_table): Likewise.
1057
1058         * chartab.h: Include <chise.h> when `CHISE' is defined.
1059         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1060         when `CHISE' is defined.
1061
1062 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1063
1064         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1065         is defined.
1066         (char_table_description): Likewise.
1067         (Fmake_char_table): Likewise.
1068         (Fcopy_char_table): Likewise.
1069         (Fmount_char_attribute_table): Likewise.
1070         (Fclose_char_attribute_table): Likewise.
1071         (Freset_char_attribute_table): Likewise.
1072         (load_char_attribute_maybe): Likewise.
1073         (Fload_char_attribute_table): Likewise.
1074
1075         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1076         defined.
1077
1078 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1079
1080         * chartab.c (load_char_attribute_table_map_func): New function
1081         when CHISE is defined.
1082         (Qload_char_attribute_table_map_function): Don't define when CHISE
1083         is defined.
1084         (Fload_char_attribute_table_map_function): Likewise.
1085         (Fload_char_attribute_table): Use libchise when `CHISE' is
1086         defined.
1087         (syms_of_chartab): Don't define
1088         `load-char-attribute-table-map-function' when CHISE is defined.
1089
1090 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1091
1092         * chartab.c: Include <chise.h> when `CHISE' is defined.
1093         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1094
1095 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1096
1097         * mule-charset.c (charset_code_point): Fix problem when searching
1098         in mother CCS fails with `defined_only' mode.
1099
1100 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1101
1102         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1103         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1104         (put_char_composition): Likewise.
1105         (Fput_char_attribute): Likewise.
1106         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1107
1108 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1109
1110         * chartab.c (Q_ucs): Deleted.
1111         (Fput_char_attribute): Don't refer `->ucs'.
1112         (Fdefine_char): Likewise.
1113         (Ffind_char): Likewise.
1114         (syms_of_chartab): Delete `->ucs'.
1115
1116 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1117
1118         * mule-charset.c (Qmap_cns11643_2): Renamed from
1119         `Qchinese_cns11643_2'.
1120         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1121         `chinese-cns11643-2'.
1122         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1123         `=cns11643-2'.
1124
1125 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1126
1127         * mule-charset.c (Qmap_cns11643_1): Renamed from
1128         `Qchinese_cns11643_1'.
1129         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1130         `chinese-cns11643-1'.
1131         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1132         `=cns11643-1'.
1133
1134 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1135
1136         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1137         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1138         `chinese-gb12345'.
1139         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1140         `=gb12345'.
1141
1142 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1143
1144         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1145         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1146         `chinese-gb2312'.
1147         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1148         `=gb2312'.
1149
1150 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1151
1152         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1153         (syms_of_mule_charset): Add new symbol `=big5' instead of
1154         `chinese-big5'.
1155         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1156
1157 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1158
1159         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1160         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1161         `korean-ksc5601'.
1162         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1163         `=ks-x1001'.
1164
1165 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1166
1167         * mule-charset.c (Qmap_jis_x0212): Renamed from
1168         `Qjapanese_jisx0212'.
1169         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1170         `japanese-jisx0212'.
1171         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1172         `=jis-x0212'.
1173
1174 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1175
1176         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1177         `Qjapanese_jisx0208'.
1178         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1179         of `japanese-jisx0208'.
1180         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1181         `=jis-x0208-1983'.
1182
1183 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1184
1185         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1186         `Qjapanese_jisx0208_1978'.
1187         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1188         of `japanese-jisx0208-1978'.
1189         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1190         `=jis-x0208-1978'.
1191
1192 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1193
1194         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1195         only for XEmacs CHISE.
1196
1197 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1198
1199         * char-ucs.h: Compact non-ISO-IR charset-ids.
1200         (LEADING_BYTE_UCS): Changed to -177.
1201         (LEADING_BYTE_CONTROL_1): Changed to -77.
1202         (LEADING_BYTE_UCS_BMP): Changed to -176.
1203         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1204
1205 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1206
1207         * mule-charset.c (Qiso_ir): New variable.
1208         (Fmake_charset): Recognise new property `iso-ir'.
1209         (syms_of_mule_charset): Add new symbol `iso-ir'.
1210
1211 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1212
1213         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1214         n to -n; charset-id of non ISO-IR sets are changed to positive
1215         numbers.
1216
1217 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1218
1219         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1220         for &MCS-XXXXXXXX; values.
1221
1222 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1223
1224         * mule.c (Vxemacs_chise_version): Renamed from
1225         `Vutf_2000_version'.
1226         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1227         `utf-2000-version' as an alias for `xemacs-chise-version'.
1228
1229 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1230
1231         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1232         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1233         defined.
1234
1235         * config.h.in (CHISE): New macro.
1236
1237 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1238
1239         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1240         of `ucs'.
1241         (Qmap_ucs): New variable.
1242         (syms_of_mule_charset): Add new symbol `=ucs'.
1243         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1244
1245         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1246         (simplify_char_spec): Likewise.
1247
1248         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1249
1250         * char-ucs.h (Qmap_ucs): New extern variable.
1251
1252 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1253
1254         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1255         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1256         don't define it when UTF2000 is not defined.
1257         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1258         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1259         when UTF2000 is not defined.
1260         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1261         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1262
1263 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1264
1265         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1266
1267         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1268         (Qucs_gb): Deleted.
1269         (syms_of_mule_charset): Delete `ucs-gb'.
1270         (complex_vars_of_mule_charset): Likewise.
1271
1272 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1273
1274         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1275
1276         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1277         (Qucs_cns): Deleted.
1278         (syms_of_mule_charset): Delete `ucs-cns'.
1279         (complex_vars_of_mule_charset): Likewise.
1280
1281 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1282
1283         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1284
1285         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1286         (Qucs_jis): Deleted.
1287         (syms_of_mule_charset): Delete `ucs-jis'.
1288         (complex_vars_of_mule_charset): Likewise.
1289
1290 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1291
1292         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1293
1294         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1295         (Qucs_ks): Deleted.
1296         (syms_of_mule_charset): Delete `ucs-ks'.
1297         (complex_vars_of_mule_charset): Likewise.
1298
1299 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1300
1301         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1302         (Qideograph_daikanwa_2): Deleted.
1303         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1304         (complex_vars_of_mule_charset): Likewise.
1305
1306         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1307         (LEADING_BYTE_DAIKANWA_1): Deleted.
1308         (LEADING_BYTE_DAIKANWA_2): Deleted.
1309         (MIN_CHAR_DAIKANWA): Deleted.
1310         (MAX_CHAR_DAIKANWA): Deleted.
1311
1312 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1313
1314         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1315         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1316         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1317
1318         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1319         (Vcharset_ideograph_daikanwa): Deleted.
1320         (Qideograph_hanziku_{1..12}): Deleted.
1321         (Qideograph_daikanwa): Deleted.
1322         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1323         Vcharset_ideograph_daikanwa.
1324         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1325         `ideograph-hanziku-{1..12}'.
1326         (complex_vars_of_mule_charset): Likewise.
1327
1328 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1329
1330         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1331
1332         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1333         (Qideograph_gt_pj_{1..11}): Deleted.
1334         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1335         (complex_vars_of_mule_charset): Likewise.
1336
1337 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1338
1339         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1340         (Vcharset_ideograph_gt): Deleted.
1341         (Qucs_big5): Deleted.
1342         (Qideograph_gt): Deleted.
1343         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1344         `ideograph-gt'.
1345         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1346         and `ideograph-gt'.
1347
1348         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1349         (LEADING_BYTE_GT): Deleted.
1350         (MIN_CHAR_GT): Deleted.
1351         (MAX_CHAR_GT): Deleted.
1352
1353 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1354
1355         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1356
1357 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1358
1359         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1360         (save_uint16_byte_table): Likewise.
1361         (save_byte_table): Likewise; convert values by it.
1362         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1363         for `ideographic-structure'.
1364         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1365         as the filter for `ideographic-structure'.
1366
1367 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1368
1369         * chartab.c (put_char_composition): New function.
1370         (Fput_char_attribute): Use `put_char_composition'; use
1371         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1372
1373         * fns.c (simplify_char_spec): New function.
1374         (char_ref_simplify_spec): New function.
1375         (Fchar_refs_simplify_char_specs): New function.
1376         (syms_of_fns): Add new builtin function
1377         `char-refs-simplify-char-specs'.
1378
1379 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1380
1381         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1382         (Qideograph_cbeta): Deleted.
1383         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1384         (complex_vars_of_mule_charset): Likewise.
1385
1386         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1387         (MIN_CHAR_CBETA): Comment out.
1388         (MAX_CHAR_CBETA): Likewise.
1389
1390 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1391
1392         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1393         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1394         CHISE client feature.
1395
1396 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1397
1398         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1399
1400 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1401
1402         * mule-charset.c (charset_lookup_description_1): Use
1403         `NUM_LEADING_BYTES' in UTF-2000.
1404
1405 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1406
1407         * char-ucs.h (GC_CHARSETP): Deleted.
1408
1409 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1410
1411         * char-ucs.h (MAX_CHAR_GT): Updated.
1412
1413 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1414
1415         * text-coding.c: Sync with XEmacs 21.4.10.
1416
1417 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1418
1419         * mule-charset.c (Vcharset_china3_jef): Deleted.
1420         (Qchina3_jef): Deleted.
1421         (syms_of_mule_charset): Don't define `china3-jef'.
1422         (complex_vars_of_mule_charset): Likewise.
1423
1424         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1425         (MIN_CHAR_CHINA3_JEF): Comment out.
1426         (MAX_CHAR_CHINA3_JEF): Comment out.
1427
1428 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1429
1430         * mule-charset.c (Vcharset_ucs_gb): New variable.
1431         (Qucs_gb): New variable.
1432         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1433         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1434
1435         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1436
1437 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1438
1439         * mule-charset.c (charset_code_point): if a coded-charset has a
1440         final-byte, don't inherit the builtin range of the mother CCS.
1441
1442 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1443
1444         * mule-charset.c (charset_code_point): Fix problem about
1445         inheritance.
1446
1447 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1448
1449         * mule-charset.c (decode_builtin_char): Reorganized.
1450
1451 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1452
1453         * text-coding.c (char_encode_as_entity_reference): Modify for
1454         `charset_code_point'.
1455         (char_encode_shift_jis): Likewise.
1456         (char_encode_big5): Likewise.
1457         (char_encode_utf8): Likewise.
1458         (char_encode_iso2022): Likewise.
1459
1460         * mule-charset.c (charset_code_point): Add new argument
1461         `defined_only'.
1462         (Fencode_char): Add new optional argument `defined_only'.
1463
1464         * chartab.c (put_char_table): Modify for `charset_code_point'.
1465
1466         * char-ucs.h (charset_code_point): Add new argument
1467         `defined_only'.
1468         (encode_char_1): Modify for `charset_code_point'.
1469
1470 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1471
1472         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1473         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1474
1475 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1476
1477         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1478         (Qjis_x0208): Likewise.
1479         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1480         XCHARSET_FINAL(charset).
1481         (charset_code_point): Modify condition for final-byte based
1482         builtin-chars.
1483         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1484         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1485         in UTF-2000; specify `=jis-x0208' as the mother of
1486         `japanese-jisx0208-1978', `japanese-jisx0208' and
1487         `japanese-jisx0208-1990' in UTF-2000.
1488
1489 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1490
1491         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1492
1493 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1494
1495         * text-coding.c (decode_coding_utf16): Support UTF-16.
1496         (char_encode_utf16): Fixed.
1497
1498 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1499
1500         * text-coding.c (Qutf16): New variable in MULE.
1501         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1502         (Fcoding_system_type): Add `utf-16' in MULE.
1503         (struct detection_state): Add a structure for utf16 in MULE.
1504         (detect_coding_type): Setup st->utf16.mask in MULE.
1505         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1506         MULE.
1507         (reset_encoding_stream): Use `char_encode_utf16' and
1508         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1509         (detect_coding_utf16): New function [incomplete].
1510         (decode_coding_utf16): New function [support only UCS-2].
1511         (char_encode_utf16): New function.
1512         (char_finish_utf16): New function.
1513         (syms_of_file_coding): Add new symbol `utf-16'; setup
1514         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1515
1516         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1517         UTF-2000.
1518         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1519         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1520
1521 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1522
1523         * chartab.c (put_char_table): When a charset is specified as a
1524         range in UTF-2000, don't support builtin characters.
1525
1526 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1527
1528         * mule-charset.c (decode_defined_char): Don't refer external
1529         database if Qunbound or Qnil are found.
1530         (Fsave_charset_mapping_table): Don't define it if
1531         HAVE_CHISE_CLIENT is not defined.
1532         (Freset_charset_mapping_table): New function.
1533         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1534         found in external database.
1535         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1536         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1537         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1538
1539 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1540
1541         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1542         not.
1543
1544 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1545
1546         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1547         Q_lowercase, Q_uppercase in UTF-2000.
1548
1549         * chartab.c (get_char_table): Add special code for the standard
1550         case table to use character attribute `->downcase' and
1551         `->uppercase' for case operations in UTF-2000.
1552
1553         * casetab.c (Qflippedcase): New variable in UTF-2000.
1554         (Q_lowercase): Likewise.
1555         (Q_uppercase): Likewise.
1556         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1557         and `->uppercase' in UTF-2000.
1558         (complex_vars_of_casetab): Assign attribute name `downcase' to
1559         downcase and CANON table of Vstandard_case_table in UTF-2000;
1560         assign attribute name `flippedcase' to upcase and EQV table of
1561         Vstandard_case_table in UTF-2000.
1562
1563 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1564
1565         * text-coding.c (decode_add_er_char): Support isolated-chars.
1566         (char_encode_as_entity_reference): Likewise.
1567
1568 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1569
1570         * emacs.c (Vutf_2000_lisp_directory): New variable.
1571         (Vconfigure_utf_2000_lisp_directory): Likewise.
1572         (complex_vars_of_emacs): Add new variable
1573         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1574
1575 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1576
1577         * char-ucs.h (DECODE_CHAR): Delete special code for
1578         `chinese-big5-1' and `chinese-big5-2'.
1579
1580         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1581         (Qbig5_2): Likewise.
1582         (decode_defined_char): Support CONVERSION_BIG5_1 and
1583         CONVERSION_BIG5_2.
1584         (decode_builtin_char): Likewise.
1585         (charset_code_point): Likewise.
1586         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1587         'conversion in UTF-2000.
1588         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1589         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1590         `chinese-big5-2' as children of `chinese-big5'.
1591
1592         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1593         (CONVERSION_BIG5_2): New macro.
1594
1595 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1596
1597         * text-coding.c (char_encode_big5): Support entity-reference.
1598
1599 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1600
1601         * text-coding.c (char_encode_as_entity_reference): New function.
1602         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1603
1604 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1605
1606         * text-coding.c (decode_coding_big5): Support entity-reference
1607         decoding feature.
1608
1609 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1610
1611         * text-coding.c (allocate_coding_system): Initialize initial
1612         charsets for CODESYS_UTF8.
1613         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1614         charset-g2 for CODESYS_UTF8.
1615         (decode_coding_utf8): Use charset-g0.
1616         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1617         to force variants to map to UCS.
1618
1619 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1620
1621         * text-coding.c (Qutf_8_mcs): New variable.
1622         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1623         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1624         instead of `utf-8' in UTF-2000.
1625
1626 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1627
1628         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1629         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1630         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1631         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1632         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1633         CONVERSION_96x96x96x96 are introduced.
1634         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1635         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1636         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1637
1638         * char-ucs.h (CONVERSION_94): New macro.
1639         (CONVERSION_96): New macro.
1640         (CONVERSION_94x94): New macro.
1641         (CONVERSION_96x96): New macro.
1642         (CONVERSION_94x94x94): New macro.
1643         (CONVERSION_96x96x96): New macro.
1644         (CONVERSION_94x94x94x60): New macro.
1645         (CONVERSION_94x94x94x94): New macro.
1646         (CONVERSION_96x96x96x96): New macro.
1647
1648 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1649
1650         * chartab.c (Vcharacter_variant_table): Deleted.
1651         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1652         of `Vcharacter_variant_table'.
1653         (Fput_char_attribute): Likewise.
1654         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1655         (complex_vars_of_chartab): Likewise.
1656
1657 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1658
1659         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1660
1661         * fns.c (Qideographic_structure): New variable.
1662         (Qkeyword_char): New variable.
1663         (ids_format_unit): New function.
1664         (Fideographic_structure_to_ids): New function.
1665         (syms_of_fns): Add new symbols `ideographic-structure' and
1666         `:char'; add new builtin function `ideographic-structure-to-ids'.
1667
1668         * data.c (Fchar_ref_p): New function.
1669         (syms_of_data): Add new builtin function `char-ref-p'.
1670
1671         * chartab.h: Add an EXFUN for `Ffind_char'.
1672
1673 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1674
1675         * text-coding.c (Vcharacter_composition_table): Deleted.
1676         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1677         in every UTF-2000.
1678
1679         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1680         UTF-2000.
1681         (Vcharacter_composition_table): Deleted.
1682         (Fget_composite_char): Use the implementation for external-DB
1683         support in every UTF-2000.
1684         (Fput_char_attribute): Likewise.
1685         (char_attribute_system_db_file): Don't define if external-DB
1686         feature is not available.
1687         (Fsave_char_attribute_table): Likewise.
1688         (Fmount_char_attribute_table): Likewise.
1689         (Fclose_char_attribute_table): Likewise.
1690         (Freset_char_attribute_table): Likewise.
1691         (Fload_char_attribute_table): Likewise.
1692         (syms_of_chartab): Don't define `save-char-attribute-table',
1693         `mount-char-attribute-table', `reset-char-attribute-table',
1694         `close-char-attribute-table' and `load-char-attribute-table' if
1695         external-DB feature is not available.
1696         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1697
1698 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1699
1700         * text-coding.c (Qcomposition): Add extern if external-DB feature
1701         is supported.
1702         (Vcharacter_composition_table): Don't add extern if external-DB
1703         feature is supported.
1704         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1705         character composition rule if external-DB feature is supported.
1706
1707         * chartab.c (Vcharacter_composition_table): Don't define if
1708         external-DB feature is supported.
1709         (Qcomposition): New variable.
1710         (Fget_composite_char): New implementation for external-DB support.
1711         (Fput_char_attribute): Use `composition' property of each
1712         character instead of `Vcharacter_composition_table' to store
1713         character-composition rules if external-DB feature is supported.
1714         (syms_of_chartab): Add new symbol `composition'.
1715         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1716         external-DB feature is supported.
1717
1718 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1719
1720         * chartab.c (Vchar_db_stingy_mode): New variable.
1721         (load_char_attribute_maybe): Close database if
1722         Vchar_db_stingy_mode is not NIL.
1723         (Fload_char_attribute_table_map_function): Use
1724         `get_char_id_table_0' instead of `get_char_id_table'.
1725         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1726
1727         * chartab.h (get_char_id_table_0): New inline function.
1728         (get_char_id_table): Use `get_char_id_table_0'.
1729
1730 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1731
1732         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1733         and `COMPOSE_ADD_CHAR'.
1734         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1735
1736 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1737
1738         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1739         instead of `DECODE_ADD_UCS_CHAR'.
1740         (COMPOSE_ADD_CHAR): Likewise.
1741
1742 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1743
1744         * text-coding.c (decode_flush_er_chars): New inline function.
1745         (decode_add_er_char): New function.
1746         (decode_coding_utf8): Use `decode_flush_er_chars' and
1747         `decode_add_er_char'.
1748
1749 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1750
1751         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1752         done before `decode_output_utf8_partial_char'.
1753
1754         * mule-charset.c (complex_vars_of_mule_charset): Specify
1755         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1756         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1757
1758 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1759
1760         * mule-charset.c (decode_defined_char): New function; search
1761         mother.
1762         (decode_builtin_char): Don't search mother if
1763         XCHARSET_MAX_CODE(charset) == 0.
1764         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1765         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1766         (Fdecode_char): Use `decode_defined_char' instead of
1767         `DECODE_DEFINED_CHAR'.
1768         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1769         mother of `Vcharset_ucs_jis'.
1770
1771         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1772         instead of `DECODE_DEFINED_CHAR'.
1773
1774         * char-ucs.h (decode_defined_char): Renamed from
1775         `DECODE_DEFINED_CHAR'; changed to normal function.
1776         (DECODE_CHAR): Use `decode_defined_char' instead of
1777         `DECODE_DEFINED_CHAR'.
1778
1779         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1780
1781 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1782
1783         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1784
1785         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1786         variable.
1787         (Quse_entity_reference): New variable.
1788         (Qd): New variable.
1789         (Qx): New variable.
1790         (QX): New variable.
1791         (coding_system_description): Add description for
1792         `ccs_priority_list'.
1793         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1794         (allocate_coding_system): Initialize `ccs_priority_list' in
1795         UTF-2000.
1796         (Fmake_coding_system): Add description about
1797         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1798         (codesys).
1799         (Fcoding_system_property): Accept `disable-composition' and
1800         `use-entity-reference' in UTF-2000.
1801         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1802         in UTF-2000.
1803         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1804         (decode_coding_utf8): Decode entity-reference if
1805         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1806         (char_encode_utf8): Encode non-Unicode characters as
1807         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1808         (str->codesys).
1809         (syms_of_file_coding): Add new symbols `use-entity-reference',
1810         `d', `x', `X'.
1811         (vars_of_file_coding): Add new variable
1812         `coded-charset-entity-reference-alist'.
1813         (complex_vars_of_file_coding): Declare `disable-composition' and
1814         `use-entity-reference' to be coding-system-properties in UTF-2000.
1815
1816         * file-coding.h (struct Lisp_Coding_System): Add new member
1817         `use_entity_reference' and `ccs_priority_list'.
1818         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1819         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1820         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1821
1822 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1823
1824         * chartab.c (save_uint8_byte_table): Don't clear the table.
1825         (save_uint16_byte_table): Likewise.
1826         (save_byte_table): Likewise.
1827         (Fmount_char_attribute_table): New function.
1828         (syms_of_chartab): Add new builtin function
1829         `mount-char-attribute-table'.
1830
1831 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1832
1833         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1834         "w+" mode.
1835         (load_char_decoding_entry_maybe): Open database as read-only mode.
1836
1837         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1838         open database as "w+" mode.
1839         (load_char_attribute_maybe): Open database as read-only mode.
1840         (Fload_char_attribute_table): Likewise.
1841
1842 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1843
1844         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1845         (char_table_description): Delete member `db_file'.
1846         (Fmake_char_table): Don't refer `ct->db_file'.
1847         (Fcopy_char_table): Likewise.
1848         (Fsave_char_attribute_table): Likewise.
1849         (Fclose_char_attribute_table): Likewise.
1850         (Freset_char_attribute_table): Likewise.
1851         (load_char_attribute_maybe): Likewise.
1852         (Fload_char_attribute_table): Likewise.
1853
1854         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1855
1856 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1857
1858         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1859         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1860         `ct->db' is living.
1861         (load_char_attribute_maybe): Likewise.
1862         (Fload_char_attribute_table): Likewise.
1863
1864 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1865
1866         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1867         `ct->db_file' unconditionally.
1868
1869 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1870
1871         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1872         UTF-2000.
1873         (char_table_description): Add description for `db_file' and `db'
1874         in UTF-2000.
1875         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1876         UTF-2000.
1877         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1878         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1879         (Fclose_char_attribute_table): New function.
1880         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1881         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1882         and `cit->db'.
1883         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1884         (syms_of_chartab): Add new builtin function
1885         `Fclose_char_attribute_table'.
1886
1887 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1888
1889         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1890         `db' in UTF-2000.
1891         (load_char_attribute_maybe): Change interface.
1892         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1893
1894 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1895
1896         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1897
1898 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1899
1900         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1901         instead of `DECODE_CHAR' for mother; don't use special code for
1902         chinese-big5 to use code space of chinese-big5-1 and
1903         chinese-big5-2.
1904         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1905         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1906
1907         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1908         (MAX_CHAR_BIG5_CDP): Revival.
1909
1910 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1911
1912         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1913         the XLFD registry-encoding name of `chinese-big5'.
1914
1915 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1916
1917         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1918         (Qchinese_big5_cdp): Deleted.
1919         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1920         (complex_vars_of_mule_charset): Delete coded-charset
1921         `chinese-big5-cdp'.
1922
1923         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1924         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1925         `CHARSET_ID_OFFSET - n' for private CCS.
1926         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1927         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1928         of `MIN_LEADING_BYTE'.
1929         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1930         `(CHARSET_ID_OFFSET - 97)'.
1931         (MIN_CHAR_BIG5_CDP): Deleted.
1932         (MAX_CHAR_BIG5_CDP): Deleted.
1933
1934 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1935
1936         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1937
1938 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1939
1940         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1941         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1942         chartab.c].
1943
1944         * chartab.c (Vutf_2000_version): Moved to mule.c.
1945         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1946
1947 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1948
1949         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1950         when HAVE_CHISE_CLIENT is not defined.
1951
1952         * mule.c (vars_of_mule): Provide feature `chise' when
1953         HAVE_CHISE_CLIENT is defined.
1954
1955 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1956
1957         * config.h.in (UTF2000): Add comment.
1958         (HAVE_CHISE_CLIENT): New macro.
1959
1960 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1961
1962         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1963         CONSP.
1964         (Fput_char_attribute): Likewise.
1965         (char_attribute_system_db_file): Encode file-name of attribute.
1966         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1967         the initial value.
1968
1969 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1970
1971         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1972         (Fsave_charset_mapping_table): Use
1973         `char_attribute_system_db_file'.
1974         (load_char_decoding_entry_maybe): Likewise.
1975
1976         * chartab.h (Qsystem_char_id): New external variable.
1977         (char_attribute_system_db_file): New prototype.
1978
1979         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1980         (char_attribute_system_db_file): New function.
1981         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1982         (Freset_char_attribute_table): Likewise.
1983         (load_char_attribute_maybe): Likewise.
1984         (Fload_char_attribute_table): Likewise.
1985         (syms_of_chartab): Add new symbol `system-char-id'.
1986
1987 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1988
1989         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1990         `XCHARSET_GRAPHIC(ccs)'.
1991
1992 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1993
1994         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1995
1996 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1997
1998         * chartab.c (Q_ucs_variants): New variable.
1999         (syms_of_chartab): Add new symbol `->ucs-variants'.
2000         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2001         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2002         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2003
2004         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2005
2006         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2007         `HAVE_DATABASE' is defined.
2008         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2009         `HAVE_DATABASE' is defined.
2010
2011 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2012
2013         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2014         attribute-table.
2015         (Freset_char_attribute_table): New function.
2016         (syms_of_chartab): Add new builtin function
2017         `reset-char-attribute-table'.
2018
2019 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2020
2021         * chartab.c (load_char_attribute_maybe): Don't make directories.
2022
2023 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2024
2025         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2026
2027         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2028         for decoding-table.
2029
2030 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2031
2032         * mule-charset.c (Fsave_charset_mapping_table): Use
2033         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2034
2035         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2036         instead of `XCHARSET_CHARS'.
2037
2038 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2039
2040         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2041         (XCHARSET_BYTE_SIZE): Likewise.
2042
2043         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2044         mule-charset.c].
2045         (XCHARSET_BYTE_SIZE): Likewise.
2046
2047 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2048
2049         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2050         data-directory to store database.
2051         (Fsave_char_attribute_table): Likewise.
2052         (load_char_attribute_maybe): Likewise.
2053         (Fload_char_attribute_table): Likewise.
2054
2055 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2056
2057         * mule-charset.c (Fsave_charset_mapping_table): New function.
2058         (syms_of_mule_charset): Add new builtin function
2059         `save-charset-mapping-table'.
2060
2061 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2062
2063         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2064         (get_ccs_octet_table): New inline function.
2065         (put_ccs_octet_table): Likewise.
2066         (decoding_table_put_char): Use `get_ccs_octet_table' and
2067         `put_ccs_octet_table'.
2068         (decoding_table_remove_char): Use `decoding_table_put_char'.
2069         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2070
2071         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2072         into encoding_table.
2073         (make_charset): Use Qunbound instead Qnil as initial value of
2074         decoding_table.
2075
2076 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2077
2078         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2079         element is Qunloaded.
2080         (map_over_uint16_byte_table): Likewise.
2081         (map_over_byte_table): Likewise.
2082         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2083         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2084         database support, load encoding-table of the specified
2085         coded-charset if it is not loaded yet.
2086         (save_uint8_byte_table): New function of UTF-2000 with external
2087         database support.
2088         (save_uint16_byte_table): Likewise.
2089         (save_byte_table): Likewise.
2090         (Fput_char_attribute): Don't store value into external database
2091         even if the external database feature is supported in UTF-2000;
2092         set `attribute' as name of char-table if the external database
2093         feature is supported.
2094         (Fsave_char_attribute_table): New function in UTF-2000.
2095         (syms_of_chartab): Add new builtin function
2096         `save-char-attribute-table' in UTF-2000.
2097
2098 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2099
2100         * chartab.c (char_attribute_table_to_put): New variable in
2101         UTF-2000.
2102         (Qput_char_table_map_function): Likewise.
2103         (value_to_put): Likewise.
2104         (Fput_char_table_map_function): New function in UTF-2000.
2105         (put_char_table): Use `Fmap_char_attribute' for
2106         CHARTAB_RANGE_CHARSET in UTF-2000.
2107         (Fput_char_attribute): Store symbol instead of string in
2108         `XCHAR_TABLE_NAME (table)'.
2109         (load_char_attribute_maybe): Likewise.
2110         (syms_of_chartab): Add new symbol/function
2111         `put-char-table-map-function'.
2112
2113 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2114
2115         * database.h: Add new EXFUN for `Fmap_database'.
2116
2117         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2118         (syms_of_database): Likewise.
2119
2120         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2121         UTF-2000.
2122         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2123         (XCHAR_TABLE_UNLOADED): Likewise.
2124
2125         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2126         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2127         HAVE_DATABASE is defined.
2128         (char_attribute_table_to_load): New variable of UTF-2000 with
2129         external database support.
2130         (Qload_char_attribute_table_map_function): Likewise.
2131         (Fload_char_attribute_table_map_function): New function of
2132         UTF-2000 with external database support.
2133         (Fload_char_attribute_table): New function of UTF-2000.
2134         (Fmap_char_attribute): Call Fload_char_attribute_table if
2135         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2136         (syms_of_chartab): Add new symbol and function
2137         `load-char-attribute-table-map-function' in UTF-2000 with external
2138         database support; add new function `load-char-attribute-table' in
2139         UTF-2000.
2140
2141 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2142
2143         * chartab.h (load_char_attribute_maybe): New prototype for
2144         UTF-2000 with DATABASE support.
2145         (get_char_id_table): Use `load_char_attribute_maybe' if
2146         HAVE_DATABASE is defined.
2147
2148         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2149         with DATABASE support.
2150
2151 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2152
2153         * chartab.c (Fput_char_attribute): Use S-expression as key of
2154         external database.
2155
2156         * chartab.h (get_char_id_table): Use S-expression as key of
2157         external database.
2158
2159 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2160
2161         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2162         if an element is not loaded, load the corresponding attributes
2163         from an external database.
2164         (map_over_uint16_byte_table): Likewise.
2165         (map_over_byte_table): Likewise.
2166         (map_char_table): Modify for `map_over_uint8_byte_table',
2167         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2168         element is not loaded, load the corresponding attributes from an
2169         external database.
2170         (Fput_char_attribute): Change initial values to Qunloaded.
2171
2172         * chartab.h (get_char_id_table): If a character attribute is not
2173         loaded and the attribute value is not found in an external
2174         database, store Qunbound as the attribute value.
2175
2176 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2177
2178         * chartab.c (BT_UINT8_unloaded): New macro.
2179         (UINT8_VALUE_P): Accept Qunloaded.
2180         (UINT8_ENCODE): Likewise.
2181         (UINT8_DECODE): Likewise.
2182         (BT_UINT16_unloaded): New macro.
2183         (UINT16_VALUE_P): Accept Qunloaded.
2184         (UINT16_ENCODE): Likewise.
2185         (UINT16_DECODE): Likewise.
2186         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2187         BT_UINT16_unloaded.
2188         (mark_char_table): Mark `ct->name' in UTF-2000.
2189         (char_table_description): Add `name' in UTF-2000.
2190         (Fmake_char_table): Initialize `ct->name'.
2191         (Fcopy_char_table): Copy `ct->name'.
2192         (Fput_char_attribute): Store value into an external database if
2193         HAVE_DATABASE is defined.
2194
2195         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2196         UTF-2000.
2197         (CHAR_TABLE_NAME): New macro in UTF-2000.
2198         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2199         (get_char_id_table): Try to read an external database if Qunloaded
2200         is stored in a table.
2201
2202         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2203         Qunloaded.
2204
2205 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2206
2207         * database.h: Add EXFUN definitions for Fopen_database,
2208         Fput_database, Fget_database and Fclose_database.
2209
2210         * data.c (Qunloaded): New variable in UTF-2000.
2211
2212         * lisp.h (Qunloaded): New variable in UTF-2000.
2213
2214 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2215
2216         * mule-charset.c (put_char_ccs_code_point): Modify for
2217         `decoding_table_remove_char' and `decoding_table_put_char'.
2218         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2219
2220         * char-ucs.h (decoding_table_remove_char): Change arguments to
2221         hide decoding_table vector.
2222         (decoding_table_put_char): Likewise.
2223
2224 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2225
2226         * mule-charset.c (decoding_table_remove_char): Moved to
2227         char-ucs.h.
2228         (decoding_table_put_char): Likewise.
2229
2230         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2231         from mule-charset.c].
2232         (decoding_table_remove_char): New inline function [moved from
2233         mule-charset.c].
2234         (decoding_table_put_char): Likewise.
2235
2236 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2237
2238         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2239         extension.
2240
2241 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2242
2243         * mule-charset.c (decode_builtin_char): Support mother charsets.
2244
2245 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2246
2247         * mule-charset.c (Q94x94x60): New variable.
2248         (charset_code_point): Support conversion `94x94x60'.
2249         (Fmake_charset): Likewise.
2250         (syms_of_mule_charset): Add new symbol `94x94x60'.
2251
2252         * char-ucs.h (CONVERSION_94x94x60): New macro.
2253
2254 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2255
2256         * mule-charset.c (charset_code_point): Unify code about
2257         `code-offset'.
2258
2259 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2260
2261         * mule-charset.c (charset_code_point): Merge code about builtin
2262         characters into code about mother charsets; don't use
2263         `range_charset_code_point'.
2264         (range_charset_code_point): Deleted.
2265
2266 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2267
2268         * mule-charset.c (Qcode_offset): New variable.
2269         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2270         `max-code'; accept new property `code-offset'.
2271         (syms_of_mule_charset): Add new symbol `code-offset'.
2272
2273 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2274
2275         * mule-charset.c (range_charset_code_point): Fixed.
2276
2277 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2278
2279         * mule-charset.c (decode_builtin_char): Change semantics of
2280         code-offset of coded-charset.
2281         (charset_code_point): Likewise.
2282         (range_charset_code_point): Likewise.
2283         (complex_vars_of_mule_charset): Modify for the change.
2284
2285 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2286
2287         * mule-charset.c (Fencode_char): Reverse arguments.
2288
2289         * mule-charset.c (charset_code_point): Fixed.
2290
2291 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2292
2293         * mule-charset.c (Vcharset_mojikyo): Deleted.
2294         (Vcharset_mojikyo_2022_1): Deleted.
2295         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2296         (Qmin_code): New variable in UTF-2000.
2297         (Qmax_code): Likewise.
2298         (Qmother): Likewise.
2299         (Qconversion): Likewise.
2300         (Q94x60): Likewise.
2301         (Qmojikyo): Deleted.
2302         (Qmojikyo_2022_1): Deleted.
2303         (Qmojikyo_pj_{1..22}): Deleted.
2304         (mark_charset): Mark `cs->mother'.
2305         (charset_description): Add description for `mother'.
2306         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2307         new arguments `mother' and `conversion'; use
2308         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2309         (charset_code_point): Moved from char-ucs.h; support `mother'
2310         charset feature.
2311         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2312         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2313         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2314         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2315         allow 2 as the value of `graphic' in UTF-2000; add new properties
2316         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2317         require `final' in UTF-2000; modify for `make_charset'.
2318         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2319         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2320         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2321         (Fencode_char): New function.
2322         (syms_of_mule_charset): Add new builtin function `encode-char' in
2323         UTF-2000; add new symbols `min-code', `max-code', `mother',
2324         `conversion' and `94x60'; delete symbols `mojikyo',
2325         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2326         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2327         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2328         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2329
2330         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2331         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2332
2333         * char-ucs.h (Vcharset_mojikyo): Deleted.
2334         (Vcharset_mojikyo_2022_1): Deleted.
2335         (LEADING_BYTE_MOJIKYO): Deleted.
2336         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2337         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2338         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2339         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2340         add new member `mother'; add new member `conversion'.
2341         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2342         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2343         (CHARSET_MOTHER): New macro.
2344         (CHARSET_CONVERSION): New macro.
2345         (CONVERSION_IDENTICAL): New macro.
2346         (CONVERSION_94x60): New macro.
2347         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2348         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2349         (XCHARSET_MOTHER): New macro.
2350         (XCHARSET_CONVERSION): New macro.
2351         (MIN_CHAR_MOJIKYO): Deleted.
2352         (MAX_CHAR_MOJIKYO): Deleted.
2353         (DECODE_MOJIKYO_2022): Deleted.
2354         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2355         (charset_code_point): Changed to non-inline function.
2356         (encode_char_1): Use `charset_code_point'.
2357         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2358
2359 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2360
2361         * lread.c (read_compiled_function): Fix prototype.
2362         (read_vector): Likewise.
2363
2364 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2365
2366         * lrecord.h (struct lrecord_header): Delete `older'.
2367         (set_lheader_implementation): Delete code for `older'.
2368         (set_lheader_older_implementation): Deleted.
2369         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2370         (OLDER_RECORD_P): Deleted.
2371         (OLDER_RECORD_HEADER_P): Deleted.
2372         (alloc_older_lcrecord): Deleted.
2373         (alloc_older_lcrecord_type): Deleted.
2374
2375         * alloc.c (all_older_lcrecords): Deleted.
2376         (alloc_older_lcrecord): Deleted.
2377         (disksave_object_finalization_1): Delete code for older objects.
2378         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2379         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2380
2381 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2382
2383         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2384         instead of `make_older_vector'.
2385         (put_char_ccs_code_point): Likewise.
2386         (mark_charset): Mark `cs->decoding_table'.
2387         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2388
2389         * lisp.h (make_older_vector): Deleted.
2390         (make_vector_newer): Deleted.
2391
2392         * config.h.in (HAVE_GGC): Deleted.
2393
2394         * alloc.c (make_older_vector): Deleted.
2395         (make_vector_newer_1): Deleted.
2396         (make_vector_newer): Deleted.
2397
2398 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2399
2400         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2401         (Qideograph_daikanwa_2): New variable.
2402         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2403         (complex_vars_of_mule_charset): Add new coded-charset
2404         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2405         `LEADING_BYTE_DAIKANWA'.
2406
2407         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2408         (LEADING_BYTE_DAIKANWA_1): New macro.
2409         (LEADING_BYTE_DAIKANWA_2): New macro.
2410         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2411
2412 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2413
2414         * mule-charset.c (complex_vars_of_mule_charset): Change
2415         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2416         the second revised version.
2417
2418 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2419
2420         * mule-charset.c (Vcharset_ucs_smp): New variable.
2421         (Vcharset_ucs_sip): New variable.
2422         (Qucs_smp): New variable.
2423         (Qucs_sip): New variable.
2424         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2425         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2426         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2427         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2428         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2429         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2430
2431         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2432         (LEADING_BYTE_UCS_SIP): New macro.
2433         (MIN_CHAR_SMP): New macro.
2434         (MAX_CHAR_SMP): New macro.
2435         (MIN_CHAR_SIP): New macro.
2436         (MAX_CHAR_SIP): New macro.
2437
2438 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2439
2440         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2441         utf-2000.
2442
2443 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2444
2445         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2446         value; don't store value into `encoding_table' of `Lisp_Charset'.
2447         (mark_charset): `encoding_table' was deleted.
2448         (charset_description): Likewise.
2449         (make_charset): Likewise.
2450         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2451         `put_char_ccs_code_point'.
2452
2453         * chartab.h (Fput_char_attribute): New EXFUN.
2454
2455         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2456         is unified with normal symbol space.
2457         (Fget_char_attribute): Likewise.
2458         (Fput_char_attribute): Likewise; behavior of
2459         `put_char_ccs_code_point' is changed.
2460
2461         * char-ucs.h: Include "elhash.h".
2462         (Vchar_attribute_hash_table): New external variable.
2463         (struct Lisp_Charset): Delete `encoding_table'.
2464         (CHARSET_ENCODING_TABLE): New implementation; refer
2465         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2466         `Lisp_Charset'.
2467
2468 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2469
2470         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2471         (cs) == 0.
2472
2473 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2474
2475         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2476         `chinese-big5'.
2477
2478 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2479
2480         * chartab.c (uint8_byte_table_description): New constant.
2481         (uint8-byte-table): Use `uint8_byte_table_description'.
2482         (uint16_byte_table_description): New constant.
2483         (uint16-byte-table): Use `uint16_byte_table_description'.
2484
2485 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2486
2487         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2488         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2489
2490 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2491
2492         * mule-charset.c (Vcharset_ucs_ks): New variable.
2493         (Qucs_ks): New variable.
2494         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2495         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2496
2497         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2498
2499 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2500
2501         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2502         (Fdecode_char): Likewise.
2503
2504         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2505         chartab.h.
2506         (Fdefine_char): Modify for Fdecode_char.
2507         (Ffind_char): Likewise.
2508
2509         * mule-charset.c (Fdecode_char): Add new optional argument
2510         `defined-only'.
2511         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2512
2513 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2514
2515         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2516         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2517         (allocate_coding_system): Initialize initial-charsets of
2518         CODESYS_BIG5 in XEmacs UTF-2000.
2519         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2520         CODESYS_BIG5 in XEmacs UTF-2000.
2521         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2522         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2523
2524         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2525         variables.
2526         (Qideograph_hanziku_{1 .. 12}): Likewise.
2527         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2528         .. 12}'.
2529         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2530         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2531         `ideograph-hanziku-{1 .. 12}'.
2532
2533         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2534         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2535         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2536         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2537         (DECODE_DEFINED_CHAR): New inline function.
2538         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2539
2540 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2541
2542         * mule-charset.c (Vcharset_china3_jef): Renamed from
2543         `Vcharset_japanese_jef_china3'.
2544         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2545         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2546         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2547         (syms_of_mule_charset): Rename `china3-jef' from
2548         `japanese-jef-china3'.
2549         (complex_vars_of_mule_charset): Likewise; rename
2550         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2551
2552         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2553         `LEADING_BYTE_JEF_CHINA3'.
2554         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2555         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2556
2557 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2558
2559         * mule-charset.c (encode_builtin_char_1): Comment out special code
2560         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2561
2562         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2563         (MAX_CHAR_MOJIKYO_0): Comment out.
2564         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2565         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2566         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2567         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2568
2569 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2570
2571         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2572         (Qideograph_cbeta): New variable.
2573         (encode_builtin_char_1): Comment out special code for
2574         coded-charset `mojikyo' and `japanese-jef-china3'.
2575         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2576         (complex_vars_of_mule_charset): Add new coded-charset
2577         `ideograph-cbeta'.
2578
2579         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2580         (MIN_CHAR_CBETA): New macro.
2581         (MAX_CHAR_CBETA): New macro.
2582
2583 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2584
2585         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2586         (LEADING_BYTE_JEF_CHINA3): New macro.
2587         (MIN_CHAR_JEF_CHINA3): New macro.
2588         (MAX_CHAR_JEF_CHINA3): Likewise.
2589         (DECODE_CHAR): Fixed.
2590
2591 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2592
2593         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2594         (Qjapanese_jef_china3): New variable.
2595         (encode_builtin_char_1): Support `japanese-jef-china3'.
2596         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2597         (complex_vars_of_mule_charset): Add new coded-charset
2598         `japanese-jef-china3'.
2599
2600 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2601
2602         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2603         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2604         94^4, 96^3, 96^4, 128^n and 256^n set.
2605         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2606         (map_char_table): Likewise.
2607
2608 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2609
2610         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2611         UTF-2000.
2612
2613 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2614
2615         * chartab.h (get_char_id_table): New inline function.
2616
2617         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2618         function.
2619
2620 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2621
2622         * chartab.h (decode_char_table_range): New prototype in XEmacs
2623         UTF-2000.
2624         (put_char_id_table): New inline function in XEmacs UTF-2000.
2625
2626         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2627         function.
2628         (decode_char_table_range): Delete static declaration in XEmacs
2629         UTF-2000.
2630
2631 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2632
2633         * chartab.c (put_char_id_table): Use `put_char_table'.
2634
2635 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2636
2637         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2638         (map_over_uint16_byte_table): Likewise.
2639         (map_over_byte_table): Likewise.
2640         (map_char_table): Modify for `map_over_uint8_byte_table',
2641         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2642         UTF-2000.
2643
2644 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2645
2646         * chartab.c (struct map_char_table_for_charset_arg): New
2647         structure.
2648         (map_char_table_for_charset_fun): New function.
2649         (map_char_table): Use `map_char_table' for encoding_table of
2650         `range->charset'.
2651
2652 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2653
2654         * chartab.c (map_char_table): Check a character is found in
2655         range->charset instead of non default value is defined in
2656         char-table when range is CHARTAB_RANGE_ROW.
2657
2658 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2659
2660         * chartab.c (map_char_id_table): Deleted.
2661         (Fmap_char_attribute): Use `map_char_table' instead of
2662         `map_char_id_table'.
2663
2664 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2665
2666         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2667         UTF-2000.
2668         (update_syntax_table): Deleted in XEmacs UTF-2000.
2669
2670         * syntax.c (find_defun_start): Use `syntax_table' instead of
2671         `mirror_syntax_table' in XEmacs UTF-2000.
2672         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2673         UTF-2000.
2674         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2675         XEmacs UTF-2000.
2676         (Fmatching_paren): Likewise.
2677         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2678         in XEmacs UTF-2000.
2679         (find_start_of_comment): Likewise.
2680         (find_end_of_comment): Likewise.
2681         (Fforward_comment): Likewise.
2682         (scan_lists): Likewise.
2683         (char_quoted): Likewise.
2684         (Fbackward_prefix_chars): Likewise.
2685         (scan_sexps_forward): Likewise.
2686         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2687         (update_syntax_table): Likewise.
2688
2689         * search.c (skip_chars): Use `syntax_table' instead of
2690         `mirror_syntax_table' in XEmacs UTF-2000.
2691         (wordify): Likewise.
2692         (Freplace_match): Likewise.
2693
2694         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2695         `mirror_syntax_table' in XEmacs UTF-2000.
2696         (WORDCHAR_P_UNSAFE): Likewise.
2697         (re_match_2_internal): Likewise.
2698
2699         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2700         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2701
2702         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2703         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2704
2705         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2706         XEmacs UTF-2000.
2707
2708         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2709         UTF-2000.
2710         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2711         (char_table_description): Delete `mirror_table' in XEmacs
2712         UTF-2000.
2713         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2714         UTF-2000.
2715         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2716         (Fcopy_char_table): Likewise.
2717         (put_char_table): Don't call `update_syntax_table' in XEmacs
2718         UTF-2000.
2719
2720         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2721         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2722         (casify_region_internal): Likewise.
2723
2724         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2725
2726         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2727         `mirror_syntax_table' in XEmacs UTF-2000.
2728
2729         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2730         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2731         (Fexpand_abbrev): Likewise.
2732
2733 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2734
2735         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2736
2737 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2738
2739         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2740         (map_over_uint16_byte_table): Likewise.
2741         (map_over_byte_table): Likewise.
2742         (get_char_id_table): Refer `cit->default_value'.
2743         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2744         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2745         of character-id ranges.
2746         (mark_char_table): Mark `ct->default_value'.
2747         (char_table_description): Add `default_value'.
2748         (fill_char_table): Use `default_value'.
2749         (decode_char_table_range): Decode `nil' as
2750         `CHARTAB_RANGE_DEFAULT'.
2751         (get_char_id_table): Refer `cit->default_value'.
2752         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2753         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2754         temporary hack; check value of char-table is bound or not.
2755         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2756
2757         * chartab.h (struct Lisp_Char_Table): Add new member
2758         `default_value' in XEmacs UTF-2000.
2759         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2760         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2761         UTF-2000.
2762
2763 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2764
2765         * chartab.h (Lisp_Char_ID_Table): Deleted.
2766
2767         * chartab.c (char_table_description): Fix typo.
2768         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2769         `Lisp_Char_ID_Table'.
2770
2771 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2772
2773         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2774         `CHAR_ID_TABLE_P'.
2775
2776         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2777         `CHAR_ID_TABLE_P'.
2778
2779         * chartab.h (XCHAR_ID_TABLE): Deleted.
2780         (XSETCHAR_ID_TABLE): Deleted.
2781         (CHAR_ID_TABLE_P): Deleted.
2782
2783         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2784         `CHAR_ID_TABLE_P'.
2785         (Fget_composite_char): Likewise.
2786         (put_char_table): Likewise.
2787         (add_char_attribute_alist_mapper): Fixed.
2788         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2789         `CHAR_ID_TABLE_P'.
2790         (Fget_char_attribute): Likewise.
2791         (Fget_char_attribute): Likewise.
2792         (Fmap_char_attribute): Likewise.
2793
2794         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2795         `CHAR_ID_TABLE_P'.
2796         (encode_char_1): Likewise.
2797
2798 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2799
2800         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2801         `XCHAR_ID_TABLE'.
2802
2803         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2804         instead of `XCHAR_ID_TABLE'.
2805         (remove_char_ccs): Likewise.
2806
2807         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2808         `XCHAR_ID_TABLE'.
2809         (Fget_composite_char): Likewise.
2810         (Fchar_variants): Likewise.
2811         (put_char_table): Likewise.
2812         (add_char_attribute_alist_mapper): Likewise.
2813         (Fchar_attribute_alist): Likewise.
2814         (Fget_char_attribute): Likewise.
2815         (Fput_char_attribute): Likewise.
2816         (Fmap_char_attribute): Likewise.
2817         (Fmap_char_attribute): Likewise.
2818
2819         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2820         `XCHAR_ID_TABLE'.
2821         (encode_char_1): Likewise.
2822
2823 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2824
2825         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2826         `Lisp_Char_ID_Table'.
2827         (mark_char_id_table): Deleted.
2828         (print_char_id_table): Likewise.
2829         (char_id_table_equal): Likewise.
2830         (char_id_table_hash): Likewise.
2831         (char_id_table_description): Likewise.
2832         (char_id_table): Likewise.
2833         (make_char_id_table): Use `Fmake_char_table' and
2834         `fill_char_table'.
2835         (get_char_id_table): Use `Lisp_Char_Table' instead of
2836         `Lisp_Char_ID_Table'.
2837         (put_char_id_table): Likewise.
2838         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2839         `XCHAR_ID_TABLE'.
2840         (Fremove_char_attribute): Likewise.
2841         (syms_of_chartab): Don't define type `char-id-table'.
2842
2843         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2844         (char_id_table): Likewise.
2845         (GC_CHAR_ID_TABLE_P): Likewise.
2846         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2847         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2848         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2849         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2850         (get_char_id_table): Use `Lisp_Char_Table' instead of
2851         `Lisp_Char_ID_Table'.
2852         (put_char_id_table_0): Likewise.
2853         (put_char_id_table): Likewise.
2854
2855 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2856
2857         * chartab.h: Lisp_Byte_Table related codes are moved from
2858         chartab.h.
2859
2860         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2861
2862 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2863
2864         * chartab.h: Don't include "chartab.h".
2865         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2866         (Lisp_Char_ID_Table): Likewise.
2867         (char_id_table): Likewise.
2868         (XCHAR_ID_TABLE): Likewise.
2869         (XSETCHAR_ID_TABLE): Likewise.
2870         (CHAR_ID_TABLE_P): Likewise.
2871         (GC_CHAR_ID_TABLE_P): Likewise.
2872         (get_char_id_table): Likewise.
2873
2874         * char-ucs.h: Include "chartab.h".
2875         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2876         (Lisp_Char_ID_Table): Likewise.
2877         (char_id_table): Likewise.
2878         (XCHAR_ID_TABLE): Likewise.
2879         (XSETCHAR_ID_TABLE): Likewise.
2880         (CHAR_ID_TABLE_P): Likewise.
2881         (GC_CHAR_ID_TABLE_P): Likewise.
2882         (get_char_id_table): Likewise.
2883
2884 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2885
2886         * chartab.c (copy_uint8_byte_table): New function.
2887         (copy_uint16_byte_table): New function.
2888         (copy_byte_table): New function.
2889         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2890         characters to call.
2891         (map_over_uint16_byte_table): Likewise.
2892         (map_over_byte_table): Likewise.
2893         (get_byte_table): Move prototype to chartab.h.
2894         (put_byte_table): Likewise.
2895         (put_char_id_table_0): Moved to chartab.h.
2896         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2897         (char_table_entry_equal): Likewise.
2898         (char_table_entry_hash): Likewise.
2899         (char_table_entry_description): Likewise.
2900         (char_table_entry): Likewise.
2901         (make_char_table_entry): Likewise.
2902         (copy_char_table_entry): Likewise.
2903         (get_non_ascii_char_table_value): Likewise.
2904         (map_over_charset_ascii): Likewise.
2905         (map_over_charset_control_1): Likewise.
2906         (map_over_charset_row): Likewise.
2907         (map_over_other_charset): Likewise.
2908         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2909         (print_char_table): Likewise.
2910         (char_table_equal): Likewise.
2911         (char_table_hash): Likewise.
2912         (char_table_description): Likewise.
2913         (fill_char_table): Likewise.
2914         (Fcopy_char_table): Likewise.
2915         (get_char_table): Likewise.
2916         (Fget_range_char_table): Likewise.
2917         (put_char_table): Likewise.
2918         (map_char_table): Likewise.
2919         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2920         UTF-2000.
2921
2922 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2923
2924         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2925         `Vauto_fill_chars' in XEmacs UTF-2000.
2926
2927         * chartab.h (get_byte_table): New prototype [moved from
2928         chartab.c].
2929         (put_byte_table): Likewise [moved from chartab.c].
2930         (put_char_id_table_0): New inline function [moved from chartab.c].
2931         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2932         (Lisp_Char_Table_Entry): Likewise.
2933         (char_table_entry): Likewise.
2934         (XCHAR_TABLE_ENTRY): Likewise.
2935         (XSETCHAR_TABLE_ENTRY): Likewise.
2936         (CHAR_TABLE_ENTRYP): Likewise.
2937         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2938         (NUM_ASCII_CHARS): Likewise.
2939         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2940         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2941
2942 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2943
2944         * chartab.c (get_char_id_table): Change interface.
2945         (put_char_id_table_0): New function.
2946         (put_char_id_table): Change interface; new implementation.
2947         (Fget_composite_char): Modify for interface change of
2948         `get_char_id_table'.
2949         (Fchar_variants): Likewise.
2950         (add_char_attribute_alist_mapper): Likewise.
2951         (Fchar_attribute_alist): Likewise.
2952         (Fget_char_attribute): Likewise.
2953         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2954         as same as character as the first argument like `put-char-table';
2955         modify for interface change of `put_char_id_table'.
2956         (Fremove_char_attribute): Modify for interface change of
2957         `put_char_id_table'.
2958
2959 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2960
2961         * text-coding.c: Sync up with XEmacs 21.2.41.
2962         (COMPOSE_ADD_CHAR): Modify for interface change of
2963         `get_char_id_table'.
2964
2965         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2966         change of `put_char_id_table'.
2967         (remove_char_ccs): Likewise.
2968
2969         * chartab.h (put_char_id_table): Change interface.
2970
2971         * char-ucs.h (get_char_id_table): Change interface.
2972         (charset_code_point): Modify for interface change of
2973         `get_char_id_table'.
2974         (encode_char_1): Likewise.
2975
2976 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2977
2978         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2979         argument `ccs'.
2980         (map_over_uint16_byte_table): Likewise.
2981         (map_over_byte_table): Likewise.
2982         (map_char_id_table): Add new argument `range' like
2983         `map_char_table'.
2984         (Fmap_char_attribute): Add new argument `range' like
2985         `Fmap_char_table'.
2986
2987 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2988
2989         * chartab.c (map_over_uint8_byte_table): Change interface of
2990         mapping function to use struct chartab_range instead of Emchar.
2991         (map_over_uint16_byte_table): Likewise.
2992         (map_over_byte_table): Likewise.
2993         (map_char_id_table): Likewise.
2994         (struct slow_map_char_id_table_arg): Deleted.
2995         (slow_map_char_id_table_fun): Deleted.
2996         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2997         function `slow_map_char_table_fun' instead of struct
2998         `slow_map_char_id_table_arg' and function
2999         `slow_map_char_id_table_fun'.
3000
3001 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3002
3003         * mule-charset.c: Move char-it-table related codes to chartab.c.
3004         (Vutf_2000_version): Moved to chartab.c.
3005         (Fdefine_char): Likewise.
3006         (Ffind_char): Likewise.
3007         (syms_of_mule_charset): Move types `uint8-byte-table',
3008         `uint16-byte-table', `byte-table' and `char-id-table' to
3009         chartab.c; move functions `char_attribute_list,
3010         `find_char_attribute_table, `char_attribute_alist,
3011         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3012         `map_char_attribute, `define_char, `find_char, `char_variants and
3013         `get_composite_char to chartab.c; move symbols `=>ucs',
3014         `->decomposition', `compat', `isolated', `initial', `medial',
3015         `final', `vertical', `noBreak', `fraction', `super', `sub',
3016         `circle', `square', `wide', `narrow', `small' and `font' to
3017         chartab.c.
3018         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3019         setting codes for `Vcharacter_composition_table' and
3020         `Vcharacter_variant_table' to chartab.c.
3021         (complex_vars_of_mule_charset): Move setting code for
3022         `Vchar_attribute_hash_table' to chartab.c.
3023
3024         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3025         (make_char_id_table): New prototype.
3026         (put_char_id_table): Likewise.
3027         (Fget_char_attribute): Likewise.
3028
3029         * chartab.c: Move char-id-table related code from mule-charset.c.
3030         (Vutf_2000_version): Moved from mule-charset.c.
3031
3032         * char-ucs.h (Qucs): New external variable.
3033         (put_char_ccs_code_point): New prototype.
3034         (remove_char_ccs): Likewise.
3035
3036 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3037
3038         * mule-charset.c (Vcharset_ucs_jis): New variable.
3039         (Qucs_jis): Likewise.
3040         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3041         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3042
3043         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3044
3045 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3046
3047         * mule-charset.c (map_over_uint8_byte_table): New function.
3048         (map_over_uint16_byte_table): Likewise.
3049         (map_over_byte_table): Likewise.
3050         (map_char_id_table): Likewise.
3051         (slow_map_char_id_table_fun): Likewise.
3052         (Fmap_char_attribute): Likewise.
3053         (syms_of_mule_charset): Add new function `map-char-attribute'.
3054
3055 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3056
3057         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3058         (syms_of_mule_charset): Add new function `find-char'.
3059
3060 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3061
3062         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3063         XEmacs UTF-2000.
3064         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3065         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3066         XEmacs UTF-2000.
3067         (complex_vars_of_mule_charset): Add new coded-charset
3068         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3069         `ideograph-gt-pj-*'.
3070
3071         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3072
3073 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3074
3075         * mule-charset.c (encode_builtin_char_1): Purge codes about
3076         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3077         {MIN|MAX}_CHAR_HEBREW.
3078         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3079         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3080
3081         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3082         (MAX_CHAR_GREEK): Purged.
3083         (MIN_CHAR_CYRILLIC): Purged.
3084         (MAX_CHAR_CYRILLIC): Purged.
3085         (MIN_CHAR_HEBREW): Commented out.
3086         (MAX_CHAR_HEBREW): Likewise.
3087
3088 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3089
3090         * mule-charset.c (Qto_ucs): New variable.
3091         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3092         (Fdefine_char): Likewise.
3093         (syms_of_mule_charset): Add new symbol `=>ucs'.
3094
3095 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3096
3097         * mule-charset.c (Fdecode_char): Fixed.
3098
3099 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3100
3101         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3102         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3103         "tcvn5712-1".
3104
3105 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3106
3107         * mule-charset.c (Vcharset_ucs_big5): New variable.
3108         (Qucs_big5): Likewise.
3109         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3110         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3111
3112         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3113
3114 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3115
3116         * mule-charset.c (decode_builtin_char): Check Big5 code range
3117         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3118
3119 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3120
3121         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3122         (Qchinese_gb12345): Likewise.
3123         (Fdecode_builtin_char): Fixed.
3124         (syms_of_mule_charset): Add `chinese-gb12345'.
3125         (complex_vars_of_mule_charset): Add coded-charset
3126         `chinese-gb12345'.
3127
3128         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3129         (LEADING_BYTE_CHINESE_GB12345): New macro.
3130
3131 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3132
3133         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3134         and `latin-viscii-upper' for `latin-viscii'.
3135
3136 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3137
3138         * mule-charset.c (Fdecode_builtin_char): Comment out
3139         regularization code for ISO-IR GR representation.
3140
3141 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3142
3143         * mule-charset.c (decode_builtin_char): New function; renamed from
3144         `make_builtin_char'; return -1 instead of signal.
3145         (Fdecode_builtin_char): Use `decode_builtin_char'.
3146
3147         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3148         `make_builtin_char'.
3149         (DECODE_CHAR): Use `decode_builtin_char' instead of
3150         `make_builtin_char'; use mapping table of `chinese-big5' for
3151         `chinese-big5-{1,2}'.
3152
3153 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3154
3155         * text-coding.c (char_encode_big5): New function.
3156         (char_finish_big5): Likewise.
3157         (reset_encoding_stream): Use `char_encode_big5' and
3158         `char_finish_big5' for CODESYS_BIG5.
3159         (mule_encode): Don't use `encode_coding_big5'.
3160         (encode_coding_big5): Deleted.
3161
3162 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3163
3164         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3165         0x81- in XEmacs UTF-2000.
3166         (detect_coding_big5): Likewise.
3167
3168 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3169
3170         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3171         generate character-id if the CCS property does not have
3172         corresponding predefined character.
3173         (make_builtin_char): Return -1 if corresponding predefined
3174         character is not found.
3175         (Fdecode_char): Return nil if corresponding character is not
3176         found.
3177         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3178         don't map to builtin ucs space.
3179
3180 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3181
3182         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3183         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3184
3185 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3186
3187         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3188         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3189         (Qideograph_gt): Likewise.
3190         (Qideograph_gt_pj_{1..11}): Likewise.
3191         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3192         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3193         `ideograph-gt-pj-11'.
3194         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3195         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3196         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3197
3198         * char-ucs.h (LEADING_BYTE_GT): New macro.
3199         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3200         (MIN_CHAR_GT): Likewise.
3201         (MAX_CHAR_GT): Likewise.
3202
3203 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3204
3205         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3206         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3207
3208         * doprnt.c (unsigned_int_converters): Add `c'.
3209         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3210
3211         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3212         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3213         `MIN_CHAR_MOJIKYO'.
3214         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3215         (MAX_CHAR_MOJIKYO_0): New macro.
3216         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3217
3218 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3219
3220         * mule-charset.c (Fdefine_char): Delete cemented out code.
3221         (encode_builtin_char_1): Modify for new allocation of builtin
3222         Mojikyo characters.
3223
3224         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3225
3226 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3227
3228         * mule-charset.c (Vcharset_ucs_cns): New variable.
3229         (Qucs_cns): New variable.
3230         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3231         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3232
3233 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3234
3235         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3236
3237 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3238
3239         * search.c (search_buffer): Make `charset_base_code' as
3240         character-id >> 6 to eliminate the corresponding last byte in
3241         UTF-8 representation [I'm not sure it is right thing].
3242         (boyer_moore): Likewise.
3243
3244 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3245
3246         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3247         representation in MULE.
3248
3249 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3250
3251         * text-coding.c (Fmake_coding_system): Use
3252         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3253         `EXTERNAL_PROPERTY_LIST_LOOP'.
3254
3255 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3256
3257         * text-coding.c (decode_output_utf8_partial_char): New function.
3258         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3259
3260 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3261
3262         * text-coding.c (decode_coding_utf8): Output original byte
3263         sequence if it is broken; change order of conditions.
3264
3265         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3266         of conditions.
3267
3268         * mb-multibyte.h (BYTE_ASCII_P):
3269         Use bit ops for char-signedness safety.
3270         (BYTE_C0_P): Use bit ops for char-signedness safety.
3271         (BYTE_C1_P): Use bit ops for char-signedness safety.
3272
3273         * character.h: (XCHAR_OR_CHAR_INT):
3274         Always use inline function.
3275         Remove redundant type checking assert() - XINT will abort quite
3276         nicely.
3277
3278 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3279
3280         * text-coding.c: (Fencode_shift_jis_char):
3281         (Fencode_big5_char):
3282         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3283         Replace 0 with '\0' when working with bytes.
3284         Replace initial "(" with "\(" in docstrings.
3285
3286         (Fmake_coding_system):
3287         When type is ccl and value is vector, register it with a proper
3288         symbol.  And checks whether the given ccl program is valid.
3289         (mule_decode): When calling ccl_driver, if src indicates
3290         NULL pointer, set an empty string instead.
3291         (mule_encode): Likewise.
3292
3293         (detect_eol_type):
3294         (detect_coding_sjis):
3295         (decode_coding_sjis):
3296         (detect_coding_big5):
3297         (decode_coding_big5):
3298         (detect_coding_ucs4):
3299         (decode_coding_ucs4):
3300         (detect_coding_utf8):
3301         (decode_coding_utf8):
3302         (detect_coding_iso2022):
3303         (decode_coding_iso2022):
3304         (decode_coding_no_conversion):
3305         (mule_decode):
3306         Make all detecting and decoding functions take an Extbyte * arg.
3307         (text_encode_generic):
3308         (encode_coding_big5):
3309         (encode_coding_no_conversion):
3310         (mule_encode):
3311         Make all encoding functions take a Bufbyte * arg.
3312         Use size_t instead of unsigned int for memory sizes.
3313         Only cast to unsigned char whenever dereferencing Extbyte *.
3314
3315         (struct lrecord_description fcd_description_1): Use countof.
3316         (complex_vars_of_file_coding):
3317         Use countof instead of sizeof.
3318         Use CHECK_NATNUM instead of CHECK_INT.
3319
3320 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3321
3322         * mule-charset.c (Fget_char_attribute): Add new optional argument
3323         `default-value'.
3324         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3325         (remove_char_ccs): Likewise.
3326
3327 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3328
3329         * text-coding.c (char_encode_shift_jis): New implementation in
3330         UTF-2000.
3331         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3332         ...)'.
3333
3334         * mule-charset.c (Vcharset_chinese_big5): New variable in
3335         UTF-2000.
3336         (Qchinese_big5): New variable in UTF-2000.
3337         (BIG5_SAME_ROW): New macro in UTF-2000.
3338         (make_builtin_char): Use builtin characters of
3339         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3340         characters of `Vcharset_chinese_big5'.
3341         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3342         (complex_vars_of_mule_charset): Add new coded-charset
3343         `chinese-big5' in UTF-2000.
3344
3345         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3346         (Vcharset_chinese_big5): New external variable declaration.
3347         (Vcharset_japanese_jisx0208_1990): Likewise.
3348
3349 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3350
3351         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3352         function.
3353         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3354
3355 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3356
3357         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3358         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3359         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3360         `mojikyo-pj-*'.
3361
3362 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3363
3364         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3365
3366 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3367
3368         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3369         to 0.17.
3370
3371 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3372
3373         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3374         for `CHARSET_BY_ATTRIBUTES'.
3375         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3376         `CHARSET_BY_ATTRIBUTES'.
3377
3378         * text-coding.c (struct decoding_stream): Rename member `CH' to
3379         `CPOS'.
3380         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3381         (decode_coding_sjis): Likewise.
3382         (decode_coding_big5): Likewise.
3383         (decode_coding_ucs4): Likewise.
3384         (decode_coding_utf8): Likewise.
3385         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3386         `CHARSET_BY_ATTRIBUTES'.
3387         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3388         `str->counter'; decode 3, 4 bytes sets.
3389         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3390         sets.
3391         (decode_coding_no_conversion): Use `str->cpos' instead of
3392         `str->ch'.
3393
3394         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3395         (Qmojikyo_2022_1): New variable.
3396         (make_charset): Don't use `CHARSET_TYPE_*'.
3397         (range_charset_code_point): Support coded-charset
3398         `mojikyo-2022-1'.
3399         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3400         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3401         `CHARSET_BY_ATTRIBUTES'.
3402         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3403         `CHARSET_BY_ATTRIBUTES'.
3404         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3405         (complex_vars_of_mule_charset): Add new coded-charset
3406         `mojikyo-2022-1'.
3407
3408         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3409         interface; changed to inline function.
3410
3411         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3412         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3413         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3414         (CHARSET_TYPE_94): Deleted.
3415         (CHARSET_TYPE_94X94): Deleted.
3416         (CHARSET_TYPE_96): Deleted.
3417         (CHARSET_TYPE_96X96): Deleted.
3418         (CHARSET_TYPE_128): Deleted.
3419         (CHARSET_TYPE_128X128): Deleted.
3420         (CHARSET_TYPE_256): Deleted.
3421         (CHARSET_TYPE_256X256): Deleted.
3422         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3423         to inline function.
3424         (DECODE_MOJIKYO_2022): New inline function.
3425         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3426         `Vcharset_mojikyo_2022_1'.
3427
3428 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3429
3430         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3431         instead of `EQ'.
3432         (put_byte_table): Likewise.
3433         (char_id_table_equal): Use `get_byte_table' [new implementation].
3434
3435 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3436
3437         * mule-charset.c: Include <limits.h> in UTF-2000.
3438         (BT_UINT8_MIN): New macro in UTF-2000.
3439         (BT_UINT8_MAX): New macro in UTF-2000.
3440         (BT_UINT8_t): New macro in UTF-2000.
3441         (BT_UINT8_nil): New macro in UTF-2000.
3442         (BT_UINT8_unbound): New macro in UTF-2000.
3443         (INT_UINT8_P): New inline function in UTF-2000.
3444         (UINT8_VALUE_P): New inline function in UTF-2000.
3445         (UINT8_ENCODE): New inline function in UTF-2000.
3446         (UINT8_DECODE): New inline function in UTF-2000.
3447         (mark_uint8_byte_table): New function in UTF-2000.
3448         (print_uint8_byte_table): New function in UTF-2000.
3449         (uint8_byte_table_equal): New function in UTF-2000.
3450         (uint8_byte_table_hash): New function in UTF-2000.
3451         (make_uint8_byte_table): New function in UTF-2000.
3452         (uint8_byte_table_same_value_p): New function in UTF-2000.
3453         (BT_UINT16_MIN): New macro in UTF-2000.
3454         (BT_UINT16_MAX): New macro in UTF-2000.
3455         (BT_UINT16_t): New macro in UTF-2000.
3456         (BT_UINT16_nil): New macro in UTF-2000.
3457         (BT_UINT16_unbound): New macro in UTF-2000.
3458         (INT_UINT16_P): New inline function in UTF-2000.
3459         (UINT16_VALUE_P): New inline function in UTF-2000.
3460         (UINT16_ENCODE): New inline function in UTF-2000.
3461         (UINT16_DECODE): New inline function in UTF-2000.
3462         (UINT8_TO_UINT16): New inline function in UTF-2000.
3463         (mark_uint16_byte_table): New function in UTF-2000.
3464         (print_uint16_byte_table): New function in UTF-2000.
3465         (uint16_byte_table_equal): New function in UTF-2000.
3466         (uint16_byte_table_hash): New function in UTF-2000.
3467         (make_uint16_byte_table): New function in UTF-2000.
3468         (uint16_byte_table_same_value_p): New function in UTF-2000.
3469         (print_byte_table): New function in UTF-2000.
3470         (byte-table): Use `print_byte_table' as printer.
3471         (make_byte_table): Delete second argument `older'.
3472         (byte_table_same_value_p): New function in UTF-2000.
3473         (copy_byte_table): Deleted.
3474         (get_byte_table): New function in UTF-2000.
3475         (put_byte_table): New function in UTF-2000.
3476         (print_char_id_table): New function in UTF-2000.
3477         (char-id-table): Use `print_char_id_table' as printer.
3478         (make_char_id_table): Delete second argument `older'.
3479         (get_char_id_table): Use `get_byte_table [new implementation].
3480         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3481         implementation].
3482         (Ffind_char_attribute_table): New function in UTF-2000.
3483         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3484         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3485         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3486         (syms_of_mule_charset): Add new function
3487         `find-char-attribute-table' in UTF-2000.
3488
3489         * lrecord.h (enum lrecord_type): Add
3490         `lrecord_type_uint16_byte_table' and
3491         `lrecord_type_uint8_byte_table'.
3492
3493         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3494         (Lisp_Uint8_Byte_Table): New type.
3495         (XUINT8_BYTE_TABLE): New macro.
3496         (XSETUINT8_BYTE_TABLE): New macro.
3497         (UINT8_BYTE_TABLE_P): New macro.
3498         (GC_UINT8_BYTE_TABLE_P): New macro.
3499         (struct Lisp_Uint16_Byte_Table): New structure.
3500         (Lisp_Uint16_Byte_Table): New type.
3501         (XUINT16_BYTE_TABLE): New macro.
3502         (XSETUINT16_BYTE_TABLE): New macro.
3503         (UINT16_BYTE_TABLE_P): New macro.
3504         (GC_UINT16_BYTE_TABLE_P): New macro.
3505
3506 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3507
3508         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3509         (Vcharacter_ideographic_strokes_table): Deleted.
3510         (Vcharacter_total_strokes_table): Deleted.
3511         (Vcharacter_morohashi_daikanwa_table): Deleted.
3512         (Vcharacter_decomposition_table): Deleted.
3513         (Qname): Deleted because it is duplicated.
3514         (Qideographic_radical): Deleted.
3515         (Qideographic_strokes): Deleted.
3516         (Qtotal_strokes): Deleted.
3517         (Qmorohashi_daikanwa): Deleted.
3518         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3519         `ideographic-radical', `ideographic-strokes', `total-strokes',
3520         `morohashi-daikanwa' and `->decomposition'.
3521         (Fget_char_attribute): Likewise.
3522         (Fput_char_attribute): Likewise; use `make-vector' instead of
3523         `make_older_vector' for `->decomposition' value.
3524         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3525         `ideograph-daikanwa'.
3526         (syms_of_mule_charset): Delete builtin symbols `name',
3527         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3528         `morohashi-daikanwa'.
3529         (vars_of_mule_charset): Don't setup
3530         `Vcharacter_ideographic_radical_table',
3531         `Vcharacter_ideographic_strokes_table',
3532         `Vcharacter_total_strokes_table',
3533         `Vcharacter_morohashi_daikanwa_table' and
3534         `Vcharacter_decomposition_table'.
3535
3536 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3537
3538         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3539         `make_older_vector', `make_vector_newer_1' and
3540         `make_vector_newer'.
3541
3542         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3543         `make_older_vector' and `make_vector_newer'.
3544
3545         * config.h.in (HAVE_GGC): New macro.
3546
3547 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3548
3549         * mule-charset.c (struct char_attribute_list_closure): New
3550         structure in UTF-2000.
3551         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3552         (Fchar_attribute_list): Likewise.
3553         (Fset_charset_mapping_table): Use `make_vector_newer'.
3554         (Fdecode_builtin_char): New function in UTF-2000.
3555         (syms_of_mule_charset): Add new function `char-attribute-list' and
3556         `decode-builtin-char' in UTF-2000.
3557
3558         * lisp.h (make_vector_newer): New prototype.
3559
3560         * alloc.c (make_vector_newer_1): New function.
3561         (make_vector_newer): New function.
3562
3563 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3564
3565         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3566         50100)'.
3567
3568 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3569
3570         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3571         (Vcharacter_attribute_table): Deleted.
3572         (Vcharacter_name_table): Deleted.
3573         (put_char_attribute): Deleted.
3574         (remove_char_attribute): Deleted.
3575         (struct char_attribute_alist_closure): New structure.
3576         (add_char_attribute_alist_mapper): New function.
3577         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3578         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3579         (Fget_char_attribute): Likewise.
3580         (Fput_char_attribute): Likewise.
3581         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3582         of `remove_char_attribute'.
3583         (Fdefine_char): Return character.
3584         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3585         and `Vcharacter_name_table'.
3586         (complex_vars_of_mule_charset): Likewise
3587         `Vchar_attribute_hash_table'.
3588
3589 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3590
3591         * character.h (CHARC_CHARSET): New macro.
3592         (CHARC_CHARSET_ID): New macro.
3593         (CHARC_CODE_POINT): New macro.
3594         (CHARC_COLUMNS): New macro.
3595         (CHARC_TO_CHAR): New inline function.
3596         (CHARC_EQ): New inline function.
3597         (CHARC_ASCII_EQ): New inline function.
3598         (CHARC_IS_SPACE): New inline function.
3599         (ASCII_TO_CHARC): New inline function.
3600
3601         * char-ucs.h (encode_char_2): Deleted.
3602         (ENCODE_CHAR): Use `encode_char_1' again.
3603         (breakup_char_1): Likewise.
3604         (CHAR_TO_CHARC): New inline function.
3605
3606         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3607
3608 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3609
3610         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3611         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3612         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3613         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3614         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3615         `CHARC_IS_SPACE'.
3616         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3617
3618         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3619         `CHARC_CODE_POINT'.
3620         (x_output_display_block): Use `CHARC_CHARSET' and
3621         `CHARC_ASCII_EQ'.
3622
3623         * redisplay-tty.c (tty_output_display_block): Use
3624         `CHARC_ASCII_EQ'.
3625         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3626
3627         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3628
3629         * insdel.c (find_charsets_in_charc_string): Use
3630         `CHARC_CHARSET_ID'.
3631         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3632         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3633         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3634         (convert_charc_string_into_malloced_string): Likewise.
3635
3636 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3637
3638         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3639         instead of <Emchar_dynarr *> for buf; use
3640         `convert_bufbyte_string_into_charc_dynarr' instead of
3641         `convert_bufbyte_string_into_emchar_dynarr'; use
3642         `find_charsets_in_charc_string' instead of
3643         `find_charsets_in_emchar_string'.
3644
3645         * redisplay.h:
3646         - Include "character.h".
3647         (struct rune): New member `cglyph'; delete member `chr'.
3648
3649         * redisplay.c (redisplay_text_width_charc_string): New function;
3650         delete `redisplay_text_width_emchar_string'.
3651         (rtw_charc_dynarr): New variable; renamed from
3652         `rtw_emchar_dynarr'.
3653         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3654         `rtw_emchar_dynarr'; use
3655         `convert_bufbyte_string_into_charc_dynarr' instead of
3656         `convert_bufbyte_string_into_emchar_dynarr'; use
3657         `redisplay_text_width_charc_string' instead of
3658         `redisplay_text_width_emchar_string'.
3659         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3660         instead of `rtw_emchar_dynarr'; use
3661         `convert_bufbyte_string_into_charc_dynarr' instead of
3662         `convert_bufbyte_string_into_emchar_dynarr'.
3663         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3664         `redisplay_text_width_charc_string' instead of
3665         `redisplay_text_width_emchar_string'.
3666         (create_text_block): Modify for <struct rune> change.
3667         (generate_formatted_string_db): Likewise.
3668         (create_string_text_block): Likewise.
3669         (pixel_to_glyph_translation): Likewise.
3670
3671         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3672         instead of <const Emchar *>.
3673         (x_text_width): Likewise.
3674         (x_output_display_block): Use <Charc_dynarr *> instead
3675         <Emchar_dynarr *>; modify for <structure rune> change.
3676         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3677         *>.
3678
3679         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3680         <const Emchar *>; use `charc_string_displayed_columns' instead of
3681         `emchar_string_displayed_columns'.
3682         (tty_output_display_block): Use <Charc_dynarr *> instead of
3683         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3684         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3685         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3686         `tty_output_emchar_dynarr_dynarr'.
3687         (tty_output_charc_dynarr): New function; delete
3688         `tty_output_charc_dynarr'.
3689
3690         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3691         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3692         <Emchar_dynarr *> for buf; use
3693         `convert_bufbyte_string_into_charc_dynarr' instead of
3694         `convert_bufbyte_string_into_emchar_dynarr'.
3695
3696         * frame.c (title_string_charc_dynarr): New variable; renamed from
3697         `title_string_emchar_dynarr'.
3698         (generate_title_string): Use `title_string_charc_dynarr' instead
3699         of `title_string_emchar_dynarr'; use
3700         `convert_charc_string_into_malloced_string' instead of
3701         `convert_emchar_string_into_malloced_string'.
3702         (init_frame): Use `title_string_charc_dynarr' instead of
3703         `title_string_emchar_dynarr'.
3704
3705         * console.h:
3706         - Include "character.h".
3707         (struct console_methods): Use <const Charc *> instead of <const
3708         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3709         <Emchar_dynarr *> in output_string_method.
3710
3711         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3712         <Emchar_dynarr *>.
3713
3714         * console-stream.c (stream_text_width): Use <const Charc *>
3715         instead of <const Emchar *>.
3716
3717         * character.h (Charc_dynarr): New type.
3718
3719         * char-ucs.h (structure Charc): New structure; define new type
3720         `Charc'.
3721
3722         * char-lb.h (DECODE_CHAR): New inline function.
3723         (encode_char_1): New inline function.
3724         (ENCODE_CHAR): New macro.
3725         (structure Charc): New structure; define new type `Charc'.
3726
3727         * char-1byte.h (Vcharset_control_1): New macro.
3728         (Vcharset_latin_iso8859_1): New macro.
3729         (DECODE_CHAR): New inline function.
3730         (encode_char_1): New inline function.
3731         (ENCODE_CHAR): New macro.
3732         (structure Charc): New structure; define new type `Charc'.
3733
3734         * insdel.c (find_charsets_in_charc_string): New function; delete
3735         `find_charsets_in_emchar_string'.
3736         (charc_string_displayed_columns): New function; delete
3737         `emchar_string_displayed_columns'.
3738         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3739         `convert_bufbyte_string_into_emchar_dynarr'.
3740         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3741         `convert_charc_string_into_bufbyte_dynarr'.
3742         (convert_charc_string_into_malloced_string): New function; delete
3743         `convert_charc_string_into_malloced_string'.
3744
3745         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3746         `find_charsets_in_emchar_string'.
3747         (charc_string_displayed_columns): New prototype; delete
3748         `emchar_string_displayed_columns'.
3749         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3750         `convert_charc_string_into_bufbyte_dynarr'.
3751         (convert_charc_string_into_malloced_string): New prototype; delete
3752         `convert_charc_string_into_malloced_string'.
3753
3754 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3755
3756         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3757
3758 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3759
3760         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3761
3762         * char-ucs.h: Use <short> for <Charset_ID>.
3763
3764         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3765         <Charset_ID>.
3766
3767 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3768
3769         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3770         to 0.16.
3771
3772 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3773
3774         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3775         variable.
3776         (Qmorohashi_daikanwa): New variable.
3777         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3778         for `morohashi-daikanwa' attribute.
3779         (Fget_char_attribute): Likewise.
3780         (Fput_char_attribute): Likewise.
3781         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3782         has the same value of `ideograph-daikanwa'.
3783         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3784         (vars_of_mule_charset): Setup
3785         `Vcharacter_morohashi_daikanwa_table'.
3786
3787 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3788
3789         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3790         attributes.
3791         (add_charset_to_list_mapper): Add `key' instead of
3792         `XCHARSET_NAME (value)' to return aliases.
3793
3794 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3795
3796         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3797         variable.
3798         (Vcharacter_ideographic_strokes_table): New variable.
3799         (Qideographic_radical): New variable.
3800         (Qideographic_strokes): New variable.
3801         (Fchar_attribute_alist): Use
3802         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3803         attribute; use `Vcharacter_ideographic_strokes_table' for
3804         `ideographic-strokes' attribute.
3805         (Fget_char_attribute): Likewise.
3806         (Fput_char_attribute): Likewise.
3807         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3808         `ideographic-strokes'.
3809         (vars_of_mule_charset): Setup
3810         `Vcharacter_ideographic_radical_table' and
3811         `Vcharacter_ideographic_strokes_table'.
3812
3813 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3814
3815         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3816         (Qtotal_strokes): New variable.
3817         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3818         `total-strokes' attribute.
3819         (Fget_char_attribute): Likewise.
3820         (Fput_char_attribute): Likewise.
3821         (syms_of_mule_charset): Add new symbol `total-strokes'.
3822         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3823
3824 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3825
3826         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3827         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3828         are found.
3829         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3830         `->decomposition' attribute.
3831         (Fput_char_attribute): Likewise.
3832         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3833
3834 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3835
3836         * mule-charset.c (decoding_table_check_elements): New function.
3837         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3838
3839 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3840
3841         * mule-charset.c (Fset_charset_mapping_table): Use
3842         `put_char_ccs_code_point'.
3843
3844 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3845
3846         * mule-charset.c (decoding_table_put_char): New inline function.
3847         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3848
3849 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3850
3851         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3852         (XCHARSET_BYTE_SIZE): New macro.
3853         (decoding_table_remove_char): New inline function.
3854         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3855         `decoding_table_remove_char'.
3856         (remove_char_ccs): Use `decoding_table_remove_char'.
3857         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3858
3859 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3860
3861         * mule-charset.c (Vcharacter_name_table): New variable.
3862         (Qname): New variable.
3863         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3864         attribute.
3865         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3866         `Vcharacter_name_table' for `name' attribute.
3867         (Fremove_char_attribute): Use function `remove_char_ccs'.
3868         (put_char_ccs_code_point): New function.
3869         (remove_char_ccs): New function.
3870         (syms_of_mule_charset): Add new symbol `name'.
3871         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3872
3873 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3874
3875         * mule-charset.c (make_byte_table): Add new argument `older'.
3876         (make_char_id_table): Likewise.
3877         (copy_char_id_table): Comment out because it is not used.
3878         (put_char_id_table): Modify for `make_byte_table'.
3879         (Fput_char_attribute): Make encoding_table as older object;
3880         inherit older bit of `Vcharacter_composition_table'.
3881         (mark_charset): Don't mark `cs->encoding_table'.
3882         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3883         normal object; make `Vcharacter_composition_table' as an older
3884         object; delete staticpro for `Vcharacter_composition_table'; make
3885         `Vcharacter_variant_table' as a normal object.
3886
3887         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3888         (mark_object): Don't check older object in UTF-2000.
3889
3890         * lrecord.h (struct lrecord_header): Add new member `older' in
3891         UTF-2000.
3892         (set_lheader_implementation): Setup `SLI_header->older' in
3893         UTF-2000.
3894         (set_lheader_older_implementation): New macro in UTF-2000.
3895         (OLDER_RECORD_P): New macro in UTF-2000.
3896         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3897         (alloc_older_lcrecord): New prototype in UTF-2000.
3898         (alloc_older_lcrecord_type): New macro in UTF-2000.
3899
3900 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3901
3902         * mule-charset.c (byte_table_description): Use
3903         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3904         (char_id_table_description): Delete bogus `, 1'.
3905         (Fget_char_attribute): Refer encoding_table of each coded-charset
3906         to get value of coded-charset attribute of a character.
3907         (Fput_char_attribute): Use `make_older_vector' instead of
3908         `make_vector'; use encoding_table of each coded-charset to store
3909         value of coded-charset attribute of a character.
3910         (Fremove_char_attribute): Use encoding_table of each coded-charset
3911         to store value of coded-charset attribute of a character.
3912         (mark_charset): Mark `cs->encoding_table'; don't mark
3913         `cs->decoding_table'.
3914         (charset_description): Add description of new member
3915         `encoding_table'.
3916         (make_charset): Initialize `encoding_table'.
3917
3918         * char-ucs.h (struct Lisp_Charset): Add new member
3919         `encoding_table'.
3920         (CHARSET_ENCODING_TABLE): New macro.
3921         (XCHARSET_ENCODING_TABLE): New macro.
3922         (charset_code_point): New implementation.
3923         (encode_char_1): Likewise.
3924
3925         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3926         (disksave_object_finalization_1): Call finalizers of
3927         `all_older_lcrecords' in UTF-2000.
3928         (make_older_vector): New function in UTF-2000.
3929         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3930         UTF-2000.
3931
3932         * lisp.h (make_older_vector): New prototype in UTF-2000.
3933
3934 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3935
3936         * lrecord.h (enum lrecord_type): Rename
3937         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3938
3939         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3940         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3941         `get_char_code_table'.
3942
3943         * mule-charset.c (mark_char_id_table): Renamed from
3944         `mark_char_code_table'.
3945         (char_id_table_equal): Renamed from `char_code_table_equal'.
3946         (char_id_table_hash): Renamed from `char_code_table_hash'.
3947         (make_char_id_table): Renamed from `make_char_code_table'.
3948         (copy_char_id_table): Renamed from `copy_char_code_table'.
3949         (get_char_id_table): Renamed from `get_char_code_table'.
3950         (put_char_id_table): Renamed from `put_char_code_table'.
3951         (to_char_id): Renamed from `to_char_code'.
3952
3953         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3954         `Lisp_Char_Code_Table'.
3955         (char_id_table): Renamed from `char_code_table'.
3956         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3957         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3958         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3959         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3960         (get_char_id_table): Renamed from `get_char_code_table'.
3961
3962 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3963
3964         * lrecord.h (enum lrecord_type): Rename
3965         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3966
3967         * mule-charset.c (mark_byte_table): Renamed from
3968         `mark_char_byte_table'.
3969         (byte_table_equal): Renamed from `char_byte_table_equal'.
3970         (byte_table_hash): Renamed from `byte_table_hash'.
3971         (make_byte_table): Renamed from `make_byte_table'.
3972         (copy_byte_table): Renamed from `copy_char_byte_table'.
3973
3974         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3975         `Lisp_Char_Byte_Table'.
3976         (byte_table): Renamed from `char_byte_table'.
3977         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3978         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3979         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3980         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3981
3982 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3983
3984         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3985         (dfc_convert_to_internal_format): Likewise.
3986         
3987         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3988         * text-coding.c (Fcoding_system_alias_p): New function.
3989         * text-coding.c (Fcoding_system_aliasee): New function.
3990         * text-coding.c (append_suffix_to_symbol): New function.
3991         * text-coding.c (dangling_coding_system_alias_p): New function.
3992         * text-coding.c (Ffind_coding_system):
3993         * text-coding.c (Fcopy_coding_system):
3994         * text-coding.c (encode_coding_no_conversion):
3995         * text-coding.c (syms_of_file_coding):
3996         * text-coding.c (vars_of_file_coding):
3997         Rewrite coding system alias code.
3998         Allow nested aliases, like symbolic links.
3999         Allow redefinition of coding system aliases.
4000         Prevent existence of dangling coding system aliases.
4001         Eliminate convert_to_external_format.
4002         Eliminate convert_to_internal_format.
4003         
4004         * text-coding.c: Change enum eol_type to eol_type_t.
4005
4006 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4007
4008         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4009         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4010
4011         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4012         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4013
4014 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4015
4016         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4017         `ideograph-daikanwa'.
4018
4019         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4020         (Vcharset_ucs_bmp): Likewise.
4021         (Vcharset_mojikyo): Add new extern variable definition.
4022         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4023         (Vcharset_latin_iso8859_3): Likewise.
4024         (Vcharset_latin_iso8859_4): Likewise.
4025         (Vcharset_latin_iso8859_9): Likewise.
4026         (Vcharset_latin_viscii_lower): Likewise.
4027         (Vcharset_latin_viscii_upper): Likewise.
4028         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4029         `mojikyo' code-point is used to decode.
4030         (encode_char_2): New function [to convert `mojikyo' code-point to
4031         Mojikyo font encoding].
4032         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4033         (breakup_char_1): Likewise.
4034         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4035
4036 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4037
4038         * text-coding.c (Fmake_coding_system): Add document about
4039         `disable-composition' property.
4040
4041 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4042
4043         * text-coding.c (Qdisable_composition): New variable; delete
4044         `Qcomposite'.
4045         (Fmake_coding_system): Add new property `disable-composite';
4046         delete property `composite'.
4047         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4048         instead of `!CODING_SYSTEM_COMPOSITE'.
4049         (syms_of_file_coding): Add new symbol `disable-composition';
4050         delete symbol `composite'.
4051
4052         * file-coding.h (struct Lisp_Coding_System): Add
4053         `disable_composition'; delete `enable_composition'.
4054         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4055         `CODING_SYSTEM_COMPOSITE'.
4056         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4057         `XCODING_SYSTEM_COMPOSITE'.
4058
4059 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4060
4061         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4062         to 0.15.
4063
4064 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4065
4066         * text-coding.c (Qcomposite): New variable.
4067         (Fmake_coding_system): Add new property `composite'.
4068         (struct decoding_stream): Add `combined_char_count',
4069         `combined_chars' and `combining_table' in UTF-2000.
4070         (COMPOSE_FLUSH_CHARS): New macro.
4071         (COMPOSE_ADD_CHAR): New macro.
4072         (reset_decoding_stream): Reset `str->combined_char_count' and
4073         `str->combining_table' in UTF-2000.
4074         (decode_coding_iso2022): Modify for character-decomposition.
4075         (syms_of_file_coding): Add new symbol `composite'.
4076
4077 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4078
4079         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4080         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4081         of `Vcharacter_composition_table' if `->decomposition' property
4082         has only 1 element.
4083         (Qlatin_tcvn5712): New variable.
4084         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4085         (complex_vars_of_mule_charset): Add new coded-charset
4086         `latin-tcvn5712'.
4087
4088         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4089
4090 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4091
4092         * file-coding.h (struct Lisp_Coding_System): Add
4093         `enable_composition'.
4094         (CODING_SYSTEM_COMPOSITE): New macro.
4095         (XCODING_SYSTEM_COMPOSITE): New macro.
4096
4097 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4098
4099         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4100
4101 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4102
4103         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4104         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4105
4106 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4107
4108         * mule-charset.c (Vcharset_mojikyo): New variable.
4109         (Fdefine_char): Don't use coded-charset which does not have
4110         non-builtin character range to allocate character-id.
4111         (Qmojikyo): New variable.
4112         (syms_of_mule_charset): Add new symbol `mojikyo'.
4113         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4114
4115         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4116         (LEADING_BYTE_MOJIKYO): New macro.
4117         (MIN_CHAR_MOJIKYO): New macro.
4118         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4119         (MAX_CHAR_MOJIKYO): New macro.
4120
4121 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4122
4123         * mule-charset.c (remove_char_attribute): Fixed.
4124
4125 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4126
4127         * mule-charset.c (remove_char_attribute): New function.
4128         (Fremove_char_attribute): New function.
4129         (encode_builtin_char_1): Comment out builtin-support for
4130         greek-iso8859-7 and cyrillic-iso8859-5.
4131         (Fdecode_char): Check `code' is an integer.
4132         (syms_of_mule_charset): Add `remove-char-attribute'.
4133         (MIN_CHAR_GREEK): Deleted.
4134         (MAX_CHAR_GREEK): Likewise.
4135         (MIN_CHAR_CYRILLIC): Likewise.
4136         (MAX_CHAR_CYRILLIC): Likewise.
4137         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4138         MAX_CHAR_GREEK for `greek-iso8859-7'.
4139
4140         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4141         (MAX_CHAR_GREEK): Likewise.
4142         (MIN_CHAR_CYRILLIC): Likewise.
4143         (MAX_CHAR_CYRILLIC): Likewise.
4144
4145 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4146
4147         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4148         format is used without `ucs' property.
4149         (Fdecode_char): Fix problem with GR representation.
4150         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4151         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4152
4153 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4154
4155         * mule-charset.c (make_builtin_char): New function.
4156         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4157         (Fset_charset_mapping_table): Modify for new representation of
4158         code-point.
4159         (Fdecode_char): New function.
4160         (syms_of_mule_charset): Add new builtin function `decode-char' in
4161         UTF-2000.
4162
4163         * char-ucs.h (make_builtin_char): New prototype.
4164         (DECODE_CHAR): New inline function.
4165         (MAKE_CHAR): Use `DECODE_CHAR'.
4166
4167 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4168
4169         * text-coding.c (parse_charset_conversion_specs): Use
4170         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4171         `XCHARSET_TYPE'.
4172         (iso2022_designate): Likewise.
4173
4174         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4175         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4176
4177         * mule-charset.c (Vcharset_ucs): New variable.
4178         (print_charset): Change design; use `CHARSET_CHARS' and
4179         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4180         (make_charset): Change signature to specify `chars' and
4181         `dimension' instead of `type'.
4182         (range_charset_code_point): Modify for 256^n-set.
4183         (encode_builtin_char_1): Encode as `ucs' in default.
4184         (Fmake_charset): Modify for `make_charset'.
4185         (Fmake_reverse_direction_charset): Likewise.
4186         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4187         UTF-2000.
4188         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4189         for `make_charset'.
4190
4191         * char-ucs.h (Vcharset_ucs): New variable.
4192         (LEADING_BYTE_UCS): New macro.
4193         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4194         and `chars' to `unsigned short' from `unsigned int'.
4195         (CHARSET_TYPE): Deleted.
4196         (XCHARSET_TYPE): Deleted.
4197
4198 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4199
4200         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4201
4202         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4203         (ENCODE_CHAR): New macro.
4204
4205 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4206
4207         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4208         to 0.14 (Kawachi-Katakami).
4209
4210 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4211
4212         * text-coding.c (char_encode_shift_jis): Modify for
4213         `charset_code_point'.
4214         (char_encode_iso2022): Likewise.
4215
4216         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4217         (integer) instead of list of <Lisp_Object>s (integers) as the
4218         format of code-point of a coded-charset.
4219         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4220         (encode_builtin_char_1): New function; delete
4221         `split_builtin_char'.
4222         (charset_code_point): Return <int> instead of <Lisp_Object>.
4223         (Fsplit_char): Don't use `SPLIT_CHAR'.
4224
4225         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4226         prototype for `split_builtin_char'.
4227         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4228         (charset_code_point): Likewise.
4229         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4230         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4231
4232 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4233
4234         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4235         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4236
4237 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4238
4239         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4240
4241         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4242         (MAX_CHAR_OBS_94x94): Deleted.
4243
4244 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4245
4246         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4247
4248         * char-ucs.h (MAX_CHAR_BMP): New macro.
4249
4250 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4251
4252         * text-coding.c: Sync with r21-2-24.
4253
4254 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4255
4256         * file-coding.c: Modify for UTF-2000.
4257
4258 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4259
4260         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4261         to 0.13 (Takaida).
4262
4263 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4264
4265         * mule-charset.c (split_builtin_char): Delete builtin support for
4266         `katakana-jisx0201'.
4267         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4268         BMP area in builtin representation.
4269
4270         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4271         `Vcharset_katakana_jisx0201'.
4272
4273 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4274
4275         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4276         (Qisolated): New variable.
4277         (Qinitial): New variable.
4278         (Qmedial): New variable.
4279         (Qfinal): New variable.
4280         (Qvertical): New variable.
4281         (Qsmall): New variable.
4282         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4283         `Qvertical' and `Qsmall'.
4284         (Qmojikyo_pj_[1 .. 21]): New variable.
4285         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4286         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4287         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4288         .. 21]'.
4289
4290 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4291
4292         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4293         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4294         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4295
4296 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4297
4298         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4299         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4300         BMP.
4301         (Qjapanese_jisx0208_1990): New variable.
4302         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4303         (complex_vars_of_mule_charset): Add new coded-charset
4304         `japanese-jisx0208-1990'.
4305
4306         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4307         (MIN_CHAR_JIS_X0208_1990): New macro.
4308         (MAX_CHAR_JIS_X0208_1990): New macro.
4309
4310 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4311
4312         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4313         coded-charset is not found.
4314
4315 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4316
4317         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4318         (Fdefine_char): Use `Fmake_char'.
4319
4320 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4321
4322         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4323         (Vcharset_hiragana_jisx0208): Deleted.
4324         (Vcharset_katakana_jisx0208): Deleted.
4325         (Qideograph_daikanwa): New variable.
4326         (Qhiragana_jisx0208): Deleted.
4327         (Qkatakana_jisx0208): Deleted.
4328         (split_builtin_char): Split `ideograph-daikanwa'.
4329         (Fsplit_char): New implementation for UTF-2000.
4330         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4331         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4332         (complex_vars_of_mule_charset): Add new coded-charset
4333         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4334         `katakana-jisx0208'.
4335
4336         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4337         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4338         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4339         (MIN_CHAR_DAIKANWA): New macro.
4340         (MAX_CHAR_DAIKANWA): New macro.
4341
4342 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4343
4344         * data.c (Fstring_to_number): Don't recognize floating point if
4345         base is not 10.
4346
4347 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4348
4349         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4350
4351 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4352
4353         * mule-charset.c (Qsquare): New variable.
4354         (to_char_code): Add `Qsquare'.
4355         (syms_of_mule_charset): Add new symbol `square'.
4356
4357 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4358
4359         * mule-charset.c (Qcircle): New variable.
4360         (to_char_code): Add `Qcircle'.
4361         (syms_of_mule_charset): Add new symbol `circle'.
4362
4363 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4364
4365         * mule-charset.c (Qfont): New variable.
4366         (to_char_code): Add `Qfont'.
4367         (syms_of_mule_charset): Add new symbol `font'.
4368
4369 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4370
4371         * mule-charset.c (Qsub): New variable.
4372         (to_char_code): Add `Qsub'.
4373         (syms_of_mule_charset): Add new symbol `sub'.
4374
4375 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4376
4377         * mule-charset.c (Fput_char_attribute): Convert each element of
4378         VALUE to GL position if ATTRIBUTE is a GR-set,
4379
4380 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4381
4382         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4383         coded-charset is a GR-set.
4384
4385 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4386
4387         * mule-charset.c (Fput_char_attribute): Check each element of
4388         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4389
4390 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4391
4392         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4393         UTF-2000.
4394         (Qethiopic_ucs): New variable in UTF-2000.
4395         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4396         (complex_vars_of_mule_charset): Add new coded-charset
4397         `ethiopic-ucs' in UTF-2000.
4398
4399         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4400         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4401         9)'.
4402         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4403         10)'.
4404         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4405
4406 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4407
4408         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4409         `ascii'.
4410
4411 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4412
4413         * mule-charset.c (Vcharacter_variant_table): New variable.
4414         (Q_ucs): New variable.
4415         (Fchar_variants): New function.
4416         (Fput_char_attribute): Register `->ucs' value to
4417         `Vcharacter_variant_table'.
4418         (syms_of_mule_charset): Add new function `char-variants' and new
4419         symbol `->ucs'.
4420         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4421
4422 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4423
4424         * mule-charset.c (get_char_code_table): Allow negative character
4425         code.
4426         (put_char_code_table): Likewise.
4427         (Vcharacter_composition_table): New variable.
4428         (Q_decomposition): New variable.
4429         (Qwide): New variable.
4430         (Qnarrow): New variable.
4431         (Qcompat): New variable.
4432         (QnoBreak): New variable.
4433         (Qsuper): New variable.
4434         (Qfraction): New variable.
4435         (to_char_code): New function.
4436         (Fget_composite_char): New function.
4437         (Fput_char_attribute): Register `->decomposition' value to
4438         `Vcharacter_composition_table'.
4439         (syms_of_mule_charset): Add new function `get-composite-char', new
4440         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4441         `super' and `fraction'.
4442         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4443
4444 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4445
4446         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4447         character; copy the return value.
4448
4449 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4450
4451         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4452
4453         * mule-charset.c (range_charset_code_point): Must use make_int.
4454         (split_builtin_char): New function.
4455
4456 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4457
4458         * mule-charset.c (char_byte_table): Change name from
4459         "char-code-table" to "char-byte-table".
4460         (mark_char_code_table): New function.
4461         (char_code_table_equal): New function.
4462         (char_code_table_hash): New function.
4463         (char_code_table_description): New constant.
4464         (char_code_table): New type.
4465         (make_char_code_table): New function.
4466         (copy_char_code_table): New function.
4467         (get_char_code_table): Modify for `char_code_table' type.
4468         (put_char_code_table): Likewise.
4469         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4470         (Kashiwara).
4471
4472         * char-ucs.h (char_code_table): New type.
4473         (XCHAR_CODE_TABLE): New macro.
4474         (XSETCHAR_CODE_TABLE): New macro.
4475         (CHAR_CODE_TABLE_P): New macro.
4476         (GC_CHAR_CODE_TABLE_P): New macro.
4477         (struct Lisp_Char_Code_Table): New structure.
4478
4479 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4480
4481         * mule-charset.c (Fmake_charset): Setup byte_offset for
4482         {94|96}^n-set.
4483
4484 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4485
4486         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4487         character.
4488
4489 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4490
4491         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4492         is found.
4493
4494 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4495
4496         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4497         charset, it is regarded as a charset.
4498         (put_char_attribute): New function in UTF-2000.
4499         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4500         charset, mapping-table of the charset is modified.
4501         (Fdefine_char): New function in UTF-2000.
4502         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4503         `Fput_char_attribute'.
4504         (syms_of_mule_charset): Add new function `define-char' and new
4505         symbol `ucs' in UTF-2000.
4506         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4507
4508 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4509
4510         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4511         non-UTF-2000 configuration.
4512
4513 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4514
4515         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4516         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4517
4518         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4519         deleted.
4520         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4521         (Fset_charset_mapping_table): Likewise.
4522
4523         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4524         (CHARSET_ENCODING_TABLE): Delete.
4525         (XCHARSET_ENCODING_TABLE): Delete.
4526         (charset_code_point): New interface.
4527
4528 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4529
4530         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4531         instead of `charset_get_byte1' and `charset_get_byte2'.
4532
4533         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4534         (charset_get_byte2): Deleted.
4535
4536 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4537
4538         * char-ucs.h (SPLIT_CHAR): New inline function.
4539         (breakup_char_1): Use `SPLIT_CHAR'.
4540
4541         * mule-charset.c (range_charset_code_point): New function.
4542         (charset_code_point): New function.
4543
4544         * char-ucs.h (range_charset_code_point): New interface.
4545         (breakup_char_1): Use `range_charset_code_point'.
4546
4547 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4548
4549         * mule-charset.c (Fmake_charset): Delete unused local variable
4550         `code_offset'.
4551
4552         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4553         (breakup_char_1): Find a charset and code-point in
4554         `Vcharacter_attribute_table'.
4555
4556 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4557
4558         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4559         to 0.10 (Yao).
4560
4561 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4562
4563         * mule-charset.c (Vcharacter_attribute_table): New variable.
4564         (Fchar_attribute_alist): New function.
4565         (Fget_char_attribute): New function.
4566         (Fput_char_attribute): New function.
4567         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4568         too.
4569         (syms_of_mule_charset): Add new function `char-attribute-alist',
4570         `get-char-attribute' and `put-char-attribute'.
4571         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4572
4573 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4574
4575         * mule-charset.c (Fmake_charset): Just use
4576         `get_unallocated_leading_byte'.
4577
4578         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4579         sets; don't use final-byte based number for private sets.
4580
4581 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4582
4583         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4584         integer.
4585
4586 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4587
4588         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4589         to 0.9.
4590
4591 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4592
4593         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4594         of `CHAR_LEADING_BYTE' in UTF-2000.
4595
4596         * insdel.c (find_charsets_in_bufbyte_string): Use
4597         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4598         (find_charsets_in_emchar_string): Likewise.
4599
4600         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4601         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4602
4603         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4604         (CHAR_CHARSET_ID): New macro.
4605
4606 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4607
4608         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4609         charset-id - MIN_LEADING_BYTE.
4610         (put_char_table): Likewise.
4611
4612 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4613
4614         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4615         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4616         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4617         (CHARSET_ID_OFFSET): New macro.
4618         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4619         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4620         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4621         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4622         4).
4623         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4624         5).
4625         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4626         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4627         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4628         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4629         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4630
4631 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4632
4633         * mule-charset.c (next_allocated_leading_byte): New variable in
4634         UTF-2000.
4635         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4636         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4637         (get_unallocated_leading_byte): Simply use
4638         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4639         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4640         UTF-2000.
4641
4642         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4643         (MAX_LEADING_BYTE_PRIVATE): New macro.
4644         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4645         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4646
4647 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4648
4649         * mule-charset.c (Fmake_charset): Allocate final-byte based
4650         charset-id for 94-set, 96-set and 94x94-set.
4651
4652 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4653
4654         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4655         ambiguous `else'.
4656         (Fmake_charset): Likewise.
4657         (complex_vars_of_mule_charset): Modify the font registry of
4658         `ucs-bmp' not to match `Ethiopic-Unicode'.
4659
4660 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4661
4662         * mule-charset.c (complex_vars_of_mule_charset): Add font
4663         registory of `ucs-bmp'.
4664
4665 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4666
4667         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4668         coded-charsets in `default-coded-charset-priority-list' when
4669         breaking up a character.
4670
4671         * mule-charset.c (Vcharset_latin_viscii): New variable.
4672         (Qlatin_viscii): New variable.
4673         (make_charset): Don't use `decoding_table'.
4674         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4675         byte_offset.
4676         (Fset_charset_mapping_table): New implementation.
4677         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4678         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4679         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4680         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4681         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4682         charset `latin_viscii'.
4683
4684         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4685         (CHARSET_TYPE_94X94): Change to 1 from 2.
4686         (CHARSET_TYPE_96): Change to 2 from 1.
4687         (CHARSET_TYPE_128): New macro.
4688         (CHARSET_TYPE_128X128): Change to 5 from 4.
4689         (CHARSET_TYPE_256): New macro.
4690         (CHARSET_TYPE_256X256): Change to 7 from 5.
4691         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4692
4693 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4694
4695         * text-coding.c (char_encode_shift_jis): Refer
4696         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4697         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4698
4699         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4700         (char_byte_table_equal): New function in UTF-2000.
4701         (char_byte_table_hash): New function in UTF-2000.
4702         (char_byte_table_description): New constant in UTF-2000.
4703         (char_byte_table): New type in UTF-2000.
4704         (make_char_byte_table): New function in UTF-2000.
4705         (copy_char_byte_table): New function in UTF-2000.
4706         (make_char_code_table): New macro in UTF-2000.
4707         (get_char_code_table): New function in UTF-2000.
4708         (put_char_code_table): New function in UTF-2000.
4709         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4710         (charset_description): Add setting in UTF-2000.
4711         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4712         `CHARSET_TO_BYTE1_TABLE(cs)'.
4713         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4714         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4715         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4716         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4717         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4718         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4719         `CHARSET_TO_BYTE2_TABLE(cs)'.
4720
4721         * char-ucs.h (char_byte_table): New type.
4722         (XCHAR_BYTE_TABLE): New macro.
4723         (XSETCHAR_BYTE_TABLE): New macro.
4724         (CHAR_BYTE_TABLE_P): New macro.
4725         (GC_CHAR_BYTE_TABLE_P): New macro.
4726         (struct Lisp_Char_Byte_Table): New structure.
4727         (get_char_code_table): New interface.
4728         (Emchar_to_byte_table): Deleted.
4729         (get_byte_from_character_table): Deleted.
4730         (struct Lisp_Charset): Add `encoding_table'; delete
4731         `to_byte1_table' and `to_byte2_table'.
4732         (CHARSET_ENCODING_TABLE): New macro.
4733         (CHARSET_TO_BYTE1_TABLE): Deleted.
4734         (CHARSET_TO_BYTE2_TABLE): Deleted.
4735         (XCHARSET_ENCODING_TABLE): New macro.
4736         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4737         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4738
4739 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4740
4741         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4742         `vietnamese-viscii-*'.
4743
4744 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4745
4746         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4747         (Qvietnamese_viscii_upper): New variable.
4748         (Fdefine_charset_alias): New function.
4749         (syms_of_mule_charset): Add new function `define-charset-alias'.
4750         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4751         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4752         `latin-viscii-*'.
4753
4754 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4755
4756         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4757         (MAX_CHAR_OBS_94x94): New macro.
4758         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4759         for 94x94 sets.
4760
4761         * mule-charset.c (put_byte_from_character_table): Change unit size
4762         from 128 to 256.
4763         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4764         not defined.
4765         (Fmake_reverse_direction_charset): Modify dummy argument of
4766         `make_charset' for non-UTF-2000 environment.
4767
4768 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4769
4770         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4771
4772         * mule-charset.c (destroy_byte_from_character_table): New macro.
4773         (latin_jisx0201_to_ucs): Deleted.
4774         (latin_iso8859_2_to_ucs): Deleted.
4775         (latin_iso8859_3_to_ucs): Deleted.
4776         (latin_iso8859_4_to_ucs): Deleted.
4777         (latin_iso8859_9_to_ucs): Deleted.
4778         (latin_viscii_lower_to_ucs): Deleted.
4779         (latin_viscii_upper_to_ucs): Deleted.
4780         (mark_charset): Mark `cs->decoding_table'.
4781         (Fcharset_mapping_table): Fix DOC-string.
4782         (Fset_charset_mapping_table): New function.
4783         (syms_of_mule_charset): Add nwe function
4784         `set-charset-mapping-table'.
4785         (complex_vars_of_mule_charset): Don't setup and use
4786         `latin_*_to_ucs'.
4787
4788 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4789
4790         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4791         charset.
4792
4793 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4794
4795         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4796         (Vcharset_katakana_jisx0208): New variable.
4797         (Qhiragana_jisx0208): New variable.
4798         (Qkatakana_jisx0208): New variable.
4799         (make_charset): Add new argument `byte_offset'.
4800         (charset_get_byte1): Modify for new coded-charset definition; use
4801         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4802         `XCHARSET_BYTE_OFFSET'.
4803         (Fmake_charset): Modify for `make_charset'.
4804         (Fmake_reverse_direction_charset): Likewise.
4805         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4806         `katakana-jisx0208'.
4807         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4808         `.'  in font registry of charset `katakana-jisx0201',
4809         `latin-jisx0201', `vietnamese-viscii-lower' and
4810         `vietnamese-viscii-upper'; modify DOC-string of charset
4811         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4812         registry of charset `japanese-jisx0208' not to use font for JIS
4813         X0208:1990; add new charset `hiragana-jisx0208' and
4814         `katakana-jisx0208'.
4815
4816         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4817         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4818         (struct Lisp_Charset): Add `byte_offset'.
4819         (CHARSET_BYTE_OFFSET): New macro.
4820         (XCHARSET_UCS_MIN): New macro.
4821         (XCHARSET_UCS_MAX): New macro.
4822         (XCHARSET_CODE_OFFSET): New macro.
4823         (XCHARSET_BYTE_OFFSET): New macro.
4824         (MIN_CHAR_HIRAGANA): New macro.
4825         (MAX_CHAR_HIRAGANA): New macro.
4826         (MIN_CHAR_KATAKANA): New macro.
4827         (MAX_CHAR_KATAKANA): New macro.
4828         (MAKE_CHAR): Modify for new coded-charset definition; use
4829         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4830         `XCHARSET_BYTE_OFFSET'.
4831
4832 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4833
4834         * mule-charset.c (CHAR96): Deleted.
4835         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4836         <Lisp_Object>.
4837         (latin_iso8859_2_to_ucs): Likewise.
4838         (latin_iso8859_3_to_ucs): Likewise.
4839         (latin_iso8859_4_to_ucs): Likewise.
4840         (latin_iso8859_9_to_ucs): Likewise.
4841         (latin_viscii_lower_to_ucs): Likewise.
4842         (latin_viscii_upper_to_ucs): Likewise.
4843         (latin_tcvn5712_to_ucs): Commented out.
4844         (make_charset): Change type of argument `decoding_table' from
4845         <Emchar*> to <Lisp_Object> [vector of characters].
4846         (Fmake_charset): Modify for `make_charset'.
4847         (Fmake_reverse_direction_charset): Likewise.
4848         (Fcharset_mapping_table): New function in UTF-2000.
4849         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4850         UTF-2000.
4851         (complex_vars_of_mule_charset): Modify for type change of
4852         `*_to_ucs'; modify for `make_charset'.
4853
4854         * char-ucs.h (struct Lisp_Charset): Change type of
4855         `decoding_table' from <Emchar*> to <Lisp_Object>.
4856         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4857
4858 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4859
4860         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4861         error with non-UTF-2000-Mule.
4862
4863 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4864
4865         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4866         in lisp again].
4867         (Vcharset_chinese_cns11643_4): Likewise.
4868         (Vcharset_chinese_cns11643_5): Likewise.
4869         (Vcharset_chinese_cns11643_6): Likewise.
4870         (Vcharset_chinese_cns11643_7): Likewise.
4871         (Qchinese_cns11643_3): Likewise.
4872         (Qchinese_cns11643_4): Likewise.
4873         (Qchinese_cns11643_5): Likewise.
4874         (Qchinese_cns11643_6): Likewise.
4875         (Qchinese_cns11643_7): Likewise.
4876         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4877         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4878         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4879         (complex_vars_of_mule_charset): Likewise.
4880
4881 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4882
4883         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4884         96-set.
4885         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4886         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4887
4888 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4889
4890         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4891         0xFF60.
4892         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4893         (breakup_char_1): Likewise.
4894
4895         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4896         one of them includes the specified character.
4897
4898 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4899
4900         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4901
4902 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4903
4904         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4905
4906 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4907
4908         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4909         definition for non-UTF-2000 Mule.
4910         (latin_iso8859_3_to_ucs): Likewise.
4911         (latin_iso8859_4_to_ucs): Likewise.
4912         (latin_iso8859_9_to_ucs): Likewise.
4913         (latin_jisx0201_to_ucs): Likewise.
4914         (MIN_CHAR_THAI): Likewise.
4915         (MAX_CHAR_THAI): Likewise.
4916         (MIN_CHAR_GREEK): Likewise.
4917         (MAX_CHAR_GREEK): Likewise.
4918         (MIN_CHAR_HEBREW): Likewise.
4919         (MAX_CHAR_HEBREW): Likewise.
4920         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4921         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4922         (MIN_CHAR_CYRILLIC): Likewise.
4923         (MAX_CHAR_CYRILLIC): Likewise.
4924
4925 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4926
4927         * char-ucs.h (breakup_char_1): Use
4928         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4929         thai-tis620 and katakana-jisx0201 area.
4930
4931 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4932
4933         * char-ucs.h (breakup_char_1): Use
4934         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4935         area.
4936
4937         * text-coding.c (reset_encoding_stream): Fixed.
4938         (char_encode_ucs4): Delete `& 255'.
4939
4940         * char-ucs.h (breakup_char_1): Use
4941         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4942
4943 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4944
4945         * file-coding.c (Fmake_coding_system): Don't set up
4946         `codesys->fixed.size'.
4947         (encode_coding_no_conversion): Don't refer
4948         `str->codesys->fixed.size'.
4949
4950 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4951
4952         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4953         (latin_a_char_to_byte1): Deleted.
4954         (latin_a_char_to_byte2): Deleted.
4955
4956 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4957
4958         * mule-charset.c (make_charset): Add new argument `ucs_min',
4959         `ucs_max' and `code_offset'.
4960         (charset_get_byte1): New implementation [delete specific charset
4961         depended implementations].
4962         (Fmake_charset): Modify for `make_charset'.
4963         (Fmake_reverse_direction_charset): Likewise.
4964         (complex_vars_of_mule_charset): Likewise.
4965
4966         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4967         `code_offset'.
4968         (CHARSET_UCS_MIN): New macro.
4969         (CHARSET_UCS_MAX): New macro.
4970         (CHARSET_CODE_OFFSET): New macro.
4971         (MAKE_CHAR): Delete charset depended definitions [except
4972         katakana-jisx0201].
4973
4974 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4975
4976         * char-ucs.h (breakup_char_1): Use
4977         `Vdefault_coded_charset_priority_list' for C0-Controls,
4978         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4979
4980 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4981
4982         * char-ucs.h (charset_get_byte1): New function.
4983         (XCHARSET_GET_BYTE1): Deleted.
4984         (charset_get_byte2): New function.
4985         (XCHARSET_GET_BYTE2): Deleted.
4986         (Vdefault_coded_charset_priority_list): New external variable.
4987         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4988         `Vdefault_preferred_coded_charset_list'.
4989
4990         * mule-charset.c (charset_get_byte1): New function.
4991         (charset_get_byte2): New function.
4992         (Vdefault_coded_charset_priority_list): New variable.
4993         (vars_of_mule_charset): Add new variable
4994         `default-coded-charset-priority-list'.
4995
4996 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4997
4998         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4999         (XCHARSET_GET_BYTE2): New inline function.
5000         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5001         `XCHARSET_GET_BYTE2'.
5002
5003 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5004
5005         * mule-charset.c (make_charset): Initialize
5006         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5007         NULL if table is not defined.
5008
5009 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5010
5011         * text-coding.c (char_encode_shift_jis): Use
5012         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5013         `ucs_to_latin_jisx0201'.
5014
5015         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5016         (ucs_to_latin_iso8859_2): Deleted.
5017         (ucs_to_latin_iso8859_3): Deleted.
5018         (ucs_to_latin_iso8859_4): Deleted.
5019         (ucs_to_latin_iso8859_9): Deleted.
5020         (ucs_to_latin_viscii_lower): Deleted.
5021         (ucs_to_latin_viscii_upper): Deleted.
5022         (ucs_to_latin_tcvn5712): Deleted.
5023         (make_charset): Add new argument `decoding_table'; set up
5024         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5025         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5026         `decoding_table' is defined in UTF-2000.
5027         (Fmake_charset): Modify for `make_charset'.
5028         (Fmake_reverse_direction_charset): Likewise.
5029         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5030         and `GENERATE_96_SET'.
5031
5032         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5033         (ucs_to_latin_jisx0201): Deleted.
5034         (latin_iso8859_2_to_ucs): Deleted.
5035         (ucs_to_latin_iso8859_2): Deleted.
5036         (latin_iso8859_3_to_ucs): Deleted.
5037         (ucs_to_latin_iso8859_3): Deleted.
5038         (latin_iso8859_4_to_ucs): Deleted.
5039         (ucs_to_latin_iso8859_4): Deleted.
5040         (latin_iso8859_9_to_ucs): Deleted.
5041         (ucs_to_latin_iso8859_9): Deleted.
5042         (latin_viscii_lower_to_ucs): Deleted.
5043         (ucs_to_latin_viscii_lower): Deleted.
5044         (latin_viscii_upper_to_ucs): Deleted.
5045         (ucs_to_latin_viscii_upper): Deleted.
5046         (struct Lisp_Charset): Renamed `encoding_table' to
5047         `to_byte1_table'; add `to_byte2_table'.
5048         (CHARSET_DECODING_TABLE): New macro.
5049         (CHARSET_TO_BYTE1_TABLE): New macro.
5050         (CHARSET_TO_BYTE2_TABLE): New macro.
5051         (XCHARSET_DECODING_TABLE): New macro.
5052         (XCHARSET_TO_BYTE1_TABLE): New macro.
5053         (XCHARSET_TO_BYTE2_TABLE): New macro.
5054         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5055         tables.
5056         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5057         don't use `ucs_to_*' tables.
5058
5059 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5060
5061         * text-coding.c (Fmake_coding_system): Don't set up
5062         `codesys->fixed.size'.
5063         (encode_coding_no_conversion): Use `if' instead of `switch'.
5064
5065         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5066
5067 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5068
5069         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5070         (Fmake_charset): Modify for `make_charset'.
5071         (Fmake_reverse_direction_charset): Likewise.
5072         (complex_vars_of_mule_charset): Likewise.
5073
5074 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5075
5076         * text-coding.c (char_encode_shift_jis): Use table
5077         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5078
5079 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5080
5081         * text-coding.c (text_encode_generic): Use `if' instead of
5082         `switch'.
5083         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5084         decode JIS-Latin.
5085
5086 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5087
5088         * text-coding.c (encode_coding_sjis): Deleted.
5089         (char_encode_shift_jis): New function.
5090         (char_finish_shift_jis): New function.
5091         (reset_encoding_stream): Set up `encode_char' and `finish' for
5092         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5093         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5094         (char_encode_utf8): Treat `eol_type'.
5095
5096 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5097
5098         * file-coding.c (decode_coding_iso2022): Use
5099         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5100
5101 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5102
5103         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5104         to 0.7 (Hirano).
5105
5106 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5107
5108         * char-lb.h (CHAR_COLUMNS): New macro.
5109
5110 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5111
5112         * text-coding.c (char_encode_ucs4): New function.
5113         (char_finish_ucs4): New function.
5114         (encode_coding_ucs4): Deleted.
5115         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5116         (text_encode_generic): Delete local variable `charset' and `half'.
5117         (ucs_to_mule_table): Deleted.
5118         (mule_to_ucs_table): Deleted.
5119         (Fset_ucs_char): Deleted.
5120         (ucs_to_char): Deleted.
5121         (Fucs_char): Deleted.
5122         (Fset_char_ucs): Deleted.
5123         (Fchar_ucs): Deleted.
5124         (decode_ucs4): Deleted.
5125         (mule_char_to_ucs4): Deleted.
5126         (encode_ucs4): Deleted.
5127         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5128         (decode_coding_utf8): Likewise.
5129         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5130         (char_encode_iso2022): Fixed.
5131         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5132         `Fset_char_ucs' and `Fchar_ucs'.
5133         (complex_vars_of_file_coding): Don't initialize
5134         `ucs_to_mule_table'.
5135
5136         * objects-tty.c (tty_initialize_font_instance): Don't use
5137         `XCHARSET_COLUMNS'.
5138
5139         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5140         UTF-2000.
5141
5142         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5143         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5144
5145         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5146         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5147         (emchar_string_displayed_columns): Likewise.
5148
5149         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5150         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5151         (string_column_at_point): Likewise.
5152         (Fmove_to_column): Likewise.
5153
5154         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5155         `encoding_table' and `decoding_table'.
5156         (CHARSET_REP_BYTES): Deleted.
5157         (XCHARSET_REP_BYTES): Deleted.
5158         (XCHARSET_COLUMNS): Deleted.
5159         (CHAR_COLUMNS): New macro.
5160         (lookup_composite_char): Deleted unconditionally.
5161         (composite_char_string): Likewise.
5162
5163 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5164
5165         * char-ucs.h (Emchar_to_byte_table): New type.
5166         (get_byte_from_character_table): New function interface.
5167         (Vcharset_latin_jisx0201): New variable.
5168         (latin_jisx0201_to_ucs): New variable.
5169         (ucs_to_latin_jisx0201): New variable.
5170         (Vcharset_latin_iso8859_2): New variable.
5171         (latin_iso8859_2_to_ucs): New variable.
5172         (ucs_to_latin_iso8859_2): New variable.
5173         (Vcharset_latin_iso8859_3): New variable.
5174         (latin_iso8859_3_to_ucs): New variable.
5175         (ucs_to_latin_iso8859_3): New variable.
5176         (Vcharset_latin_iso8859_4): New variable.
5177         (latin_iso8859_4_to_ucs): New variable.
5178         (ucs_to_latin_iso8859_4): New variable.
5179         (Vcharset_latin_iso8859_9): New variable.
5180         (latin_iso8859_9_to_ucs): New variable.
5181         (ucs_to_latin_iso8859_9): New variable.
5182         (Vcharset_latin_viscii_lower): New variable.
5183         (latin_viscii_lower_to_ucs): New variable.
5184         (ucs_to_latin_viscii_lower): New variable.
5185         (Vcharset_latin_viscii_upper): New variable.
5186         (latin_viscii_upper_to_ucs): New variable.
5187         (ucs_to_latin_viscii_upper): New variable.
5188         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5189         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5190         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5191         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5192         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5193         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5194         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5195         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5196         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5197         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5198
5199         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5200         (Vcharset_latin_viscii_upper): New variable.
5201         (make_byte_from_character_table): New function.
5202         (put_byte_from_character_table): New function.
5203         (get_byte_from_character_table): New function.
5204         (CHAR96): New macro.
5205         (ucs_to_latin_jisx0201): New variable.
5206         (latin_jisx0201_to_ucs): New variable.
5207         (ucs_to_latin_iso8859_2): New variable.
5208         (latin_iso8859_2_to_ucs): New variable.
5209         (ucs_to_latin_iso8859_3): New variable.
5210         (latin_iso8859_3_to_ucs): New variable.
5211         (ucs_to_latin_iso8859_4): New variable.
5212         (latin_iso8859_4_to_ucs): New variable.
5213         (ucs_to_latin_iso8859_9): New variable.
5214         (latin_iso8859_9_to_ucs): New variable.
5215         (ucs_to_latin_viscii_lower): New variable.
5216         (latin_viscii_lower_to_ucs): New variable.
5217         (ucs_to_latin_viscii_upper): New variable.
5218         (latin_viscii_upper_to_ucs): New variable.
5219         (ucs_to_latin_tcvn5712): New variable.
5220         (latin_tcvn5712_to_ucs): New variable.
5221         (Qlatin_viscii_lower): New variable.
5222         (Qlatin_viscii_upper): New variable.
5223         (syms_of_mule_charset): Set up new symbol
5224         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5225         (complex_vars_of_mule_charset): Set up new charset
5226         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5227         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5228         `ucs_to_<CHARSET>' tables.
5229
5230 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5231
5232         * text-coding.c: New file.
5233
5234 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5235
5236         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5237
5238         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5239         (MAKE_CHAR): Modify for `ucs-bmp'.
5240         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5241         non-MULE characters of BMP.
5242
5243 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5244
5245         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5246         to 0.6.
5247
5248 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5249
5250         * lstream.h:
5251         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5252         - Include character.h for `CHAR_ASCII_P'.
5253
5254         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5255
5256         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5257         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5258
5259         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5260         (BYTE_C0_P): Likewise.
5261         (BYTE_C1_P): Likewise.
5262         (Lstream_get_emchar_1): Likewise.
5263         (Lstream_fput_emchar): Likewise.
5264         (Lstream_funget_emchar): Likewise.
5265         (copy_internal_to_external): Likewise.
5266         (copy_external_to_internal): Likewise.
5267
5268         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5269         (BYTE_C0_P): Likewise.
5270         (BYTE_C1_P): Likewise.
5271         (Lstream_get_emchar_1): Likewise.
5272         (Lstream_fput_emchar): Likewise.
5273         (Lstream_funget_emchar): Likewise.
5274         (copy_internal_to_external): Likewise.
5275         (copy_external_to_internal): Likewise.
5276
5277         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5278         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5279
5280         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5281         (BYTE_ASCII_P): Moved to mb-1byte.h.
5282
5283 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5284
5285         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5286
5287         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5288         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5289         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5290         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5291         (VALIDATE_CHARPTR_FORWARD): Likewise.
5292         (simple_charptr_emchar): Moved to mb-multibyte.h.
5293         (simple_set_charptr_emchar): Likewise.
5294         (simple_charptr_copy_char): Likewise.
5295         (non_ascii_charptr_emchar): Likewise.
5296         (non_ascii_set_charptr_emchar): Likewise.
5297         (non_ascii_charptr_copy_char): Likewise.
5298         (charptr_emchar): Moved to mb-*byte.h.
5299         (set_charptr_emchar): Likewise.
5300         (charptr_copy_char): Likewise.
5301
5302         * mb-1byte.h, mb-multibyte.h: New files.
5303
5304 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5305
5306         * mb-utf-8.h (MULTIBYTE): New macro.
5307         (MAX_EMCHAR_LEN): Moved from buffer.h.
5308         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5309
5310         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5311
5312         * mb-lb.h, multibyte.h: New files.
5313
5314         * char-1byte.h (Charset_ID): Moved from buffer.h.
5315         (MIN_LEADING_BYTE): Likewise.
5316         (LEADING_BYTE_ASCII): Likewise.
5317         (NUM_LEADING_BYTES): Likewise.
5318         (CHARSETP): Likewise.
5319         (CHARSET_BY_LEADING_BYTE): Likewise.
5320         (XCHARSET_LEADING_BYTE): Likewise.
5321         (XCHARSET_GRAPHIC): Likewise.
5322         (XCHARSET_COLUMNS): Likewise.
5323         (XCHARSET_DIMENSION): Likewise.
5324         (CHAR_CHARSET): Likewise.
5325         (CHAR_LEADING_BYTE): Likewise.
5326         (BREAKUP_CHAR): Likewise.
5327         (Vcharset_ascii): Likewise.
5328
5329         * buffer.h: Include multibyte.h unconditionally.
5330         (VALID_CHARPTR_P): Moved to multibyte.h.
5331         (ASSERT_VALID_CHARPTR): Likewise.
5332         (REAL_INC_CHARPTR): Likewise.
5333         (REAL_INC_CHARBYTIND): Likewise.
5334         (REAL_DEC_CHARPTR): Likewise.
5335         (INC_CHARPTR): Likewise.
5336         (INC_CHARBYTIND): Likewise.
5337         (DEC_CHARPTR): Likewise.
5338         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5339         (VALIDATE_CHARPTR_FORWARD): Likewise.
5340         (charptr_n_addr): Likewise.
5341         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5342         (simple_charptr_emchar): Moved to multibyte.h.
5343         (simple_set_charptr_emchar): Likewise.
5344         (simple_charptr_copy_char): Likewise.
5345         (non_ascii_charptr_emchar): Likewise.
5346         (non_ascii_set_charptr_emchar): Likewise.
5347         (non_ascii_charptr_copy_char): Likewise.
5348         (charptr_emchar): Likewise.
5349         (set_charptr_emchar): Likewise.
5350         (charptr_copy_char): Likewise.
5351         (charptr_emchar_n): Likewise.
5352         (Charset_ID): Moved to char-1byte.h.
5353         (Vcharset_ascii): Likewise.
5354         (CHAR_CHARSET): Likewise.
5355         (CHAR_LEADING_BYTE): Likewise.
5356         (LEADING_BYTE_ASCII): Likewise.
5357         (NUM_LEADING_BYTES): Likewise.
5358         (MIN_LEADING_BYTE): Likewise.
5359         (CHARSETP): Likewise.
5360         (CHARSET_BY_LEADING_BYTE): Likewise.
5361         (XCHARSET_LEADING_BYTE): Likewise.
5362         (XCHARSET_GRAPHIC): Likewise.
5363         (XCHARSET_COLUMNS): Likewise.
5364         (XCHARSET_DIMENSION): Likewise.
5365         (BREAKUP_CHAR): Likewise.
5366
5367 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5368
5369         * character.h: Add document about interface for characters.
5370
5371         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5372         (MAKE_CHAR): Delete comment about
5373         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5374         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5375         (BREAKUP_CHAR): Modify name of arguments.
5376         (CHAR_CHARSET): Modify name of argument.
5377
5378         * buffer.h: Delete document about Emchar accessors.
5379
5380 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5381
5382         * character.h (CHAR_INTP): Moved from buffer.h
5383         (CHAR_OR_CHAR_INTP): Likewise.
5384         (XCHAR_OR_CHAR_INT): Likewise.
5385         (CHECK_CHAR_COERCE_INT): Likewise.
5386
5387         * buffer.h (CHAR_INTP): Moved to character.h
5388         (CHAR_OR_CHAR_INTP): Likewise.
5389         (XCHAR_OR_CHAR_INT): Likewise.
5390         (CHECK_CHAR_COERCE_INT): Likewise.
5391
5392 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5393
5394         * character.h:
5395         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5396         - Include char-1byte.h, char-lb.h or char-ucs.h.
5397
5398         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5399
5400         * buffer.h: Include character unconditionally.
5401         (valid_char_p): Moved to char-*.h.
5402         (non_ascii_valid_char_p): Moved to char-lb.h.
5403
5404         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5405
5406 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5407
5408         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5409         in UTF-2000 because it is not ported yet and not to use
5410         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5411         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5412         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5413
5414         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5415         (CHAR_ASCII_P): Moved from character.h.
5416
5417         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5418         (CHAR_ASCII_P): Likewise.
5419         (CHAR_FIELD1_MASK): Deleted.
5420         (CHAR_FIELD2_MASK): Deleted.
5421         (CHAR_FIELD3_MASK): Deleted.
5422         (MAX_CHAR_BASIC_LATIN): New macro.
5423         (CHAR_FIELD1): Deleted.
5424         (CHAR_FIELD2_INTERNAL): Deleted.
5425         (CHAR_FIELD3_INTERNAL): Deleted.
5426         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5427         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5428         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5429         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5430         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5431         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5432         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5433         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5434         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5435         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5436         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5437         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5438         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5439         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5440         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5441         (MIN_CHAR_COMPOSITION): Deleted.
5442         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5443         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5444
5445 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5446
5447         * buffer.h: Include mb-utf-8.h in UTF-2000.
5448
5449         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5450
5451         * mb-utf-8.h: New file.
5452
5453 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5454
5455         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5456         instead of `int'.
5457
5458         * mule-charset.h, buffer.h (Charset_ID): New type.
5459
5460 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5461
5462         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5463         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5464         instead of `MULE_CHAR_PRIVATE_OFFSET',
5465         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5466         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5467         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5468
5469         * character.h (Vcharset_japanese_jisx0212): New variable
5470         definition.
5471
5472 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5473
5474         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5475         (charset_by_attributes): Delete array about direction.
5476         (latin_a_char_to_charset): New variable in UTF-2000.
5477         (latin_a_char_to_byte1): New variable in UTF-2000.
5478         (latin_a_char_to_byte2): New variable in UTF-2000.
5479         (Qucs_bmp): New variable.
5480         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5481         `Bufbyte'.
5482         (next_allocated_2_byte_leading_byte): Likewise.
5483         (non_ascii_set_charptr_emchar): Likewise.
5484         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5485         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5486         `charset_by_attributes'.
5487         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5488         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5489         and `CHARSET_BY_LEADING_BYTE'.
5490         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5491         `utf-2000-version' to `vars_of_mule_charset'.
5492         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5493         define `leading-code-private-11' in UTF-2000; move setting of
5494         `utf-2000-version' from `syms_of_mule_charset'.
5495         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5496         UTF-2000.
5497
5498         * character.h (Charset_ID): New type.
5499         (LEADING_BYTE_UCS_BMP): New macro.
5500         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5501         (CHARSET_ID_OFFSET_94): New macro.
5502         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5503         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5504         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5505         final-byte.
5506         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5507         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5508         (CHARSET_ID_OFFSET_96): New macro.
5509         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5510         CHARSET_ID_OFFSET_96 and final-byte.
5511         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5512         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5513         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5514         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5515         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5516         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5517         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5518         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5519         (LEADING_BYTE_THAI_TIS620): Likewise.
5520         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5521         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5522         (CHARSET_ID_OFFSET_94x94): New macro.
5523         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5524         CHARSET_ID_OFFSET_94x94 and final-byte.
5525         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5526         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5527         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5528         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5529         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5530         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5531         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5532         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5533         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5534         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5535         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5536         (CHARSET_TYPE_128X128): New macro.
5537         (CHARSET_TYPE_256X256): New macro.
5538         (XCHARSET_PRIVATE_P): Delete unconditionally.
5539         (charset_by_attributes): Delete array about direction.
5540         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5541         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5542         (MIN_CHAR_94): New macro.
5543         (MAX_CHAR_94): New macro.
5544         (MIN_CHAR_96): New macro.
5545         (MAX_CHAR_96): New macro.
5546         (MIN_CHAR_94x94): New macro.
5547         (MAX_CHAR_94x94): New macro.
5548         (MIN_CHAR_96x96): New macro.
5549         (MAX_CHAR_96x96): New macro.
5550         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5551         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5552         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5553         - 32)'.
5554         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5555         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5556         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5557         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5558         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5559         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5560         `XCHARSET_LEADING_BYTE' to make code-point.
5561         (latin_a_char_to_charset): New variable.
5562         (latin_a_char_to_byte1): New variable.
5563         (latin_a_char_to_byte2): New variable.
5564         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5565         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5566         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5567
5568         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5569         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5570         (find_charsets_in_emchar_string): Likewise.
5571         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5572
5573         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5574         `int'.
5575         (decode_coding_iso2022): Likewise.
5576
5577         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5578         of `unsigned char'.
5579
5580         * redisplay.c (redisplay_text_width_emchar_string): Use
5581         `Charset_ID' instead of `unsigned char'.
5582         (redisplay_frame_text_width_string): Likewise.
5583
5584         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5585         `unsigned char'.
5586
5587         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5588         instead of `unsigned char'.
5589         (face_cachel_charset_font_metric_info): Likewise.
5590
5591         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5592         (get_non_ascii_char_table_value): Likewise.
5593         (get_char_table): Likewise.
5594         (put_char_table): Likewise.
5595         (map_over_other_charset): Likewise.
5596         (map_char_table): Likewise.
5597
5598         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5599         instead of `unsigned char'.
5600
5601 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5602
5603         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5604         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5605
5606         * mule-charset.c (leading_code_private_11): Don't define in
5607         UTF-2000.
5608
5609         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5610         in UTF-2000 because it is not ported yet and not to use
5611         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5612
5613 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5614
5615         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5616
5617 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5618
5619         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5620         in UTF-2000.
5621
5622         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5623         of unsigned char to store leading-byte.
5624
5625         * chartab.c (get_non_ascii_char_table_value): Don't use
5626         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5627
5628         * file-coding.c (encode_coding_big5): Delete bogus implementation
5629         in UTF2000.
5630
5631         * character.h (LEADING_BYTE_*): Delete definition for
5632         non-UTF-2000.
5633         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5634         (LEADING_BYTE_PREFIX_P): Deleted.
5635         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5636         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5637         (BUFBYTE_LEADING_BYTE_P): Deleted.
5638         (CHARSET_PRIVATE_P): Deleted unconditionally.
5639         (rep_bytes_by_first_byte): Deleted unconditionally.
5640         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5641         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5642         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5643         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5644         (CHAR_FIELD2): Deleted.
5645         (CHAR_FIELD3): Deleted.
5646         (MAKE_CHAR): Delete definition for non-UTF-2000.
5647         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5648         (breakup_char_1): New implementation.
5649         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5650         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5651
5652 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5653
5654         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5655         condition.
5656
5657 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5658
5659         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5660         (CHARSET_PRIVATE_P): Likewise.
5661         (XCHARSET_PRIVATE_P): Likewise.
5662         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5663
5664         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5665         UTF2000.
5666         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5667
5668 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5669
5670         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5671         (NUM_LEADING_BYTES): Changed from 128 to 256.
5672         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5673         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5674         UTF2000.
5675         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5676
5677         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5678         UTF2000.
5679         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5680         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5681         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5682         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5683         (Qchinese_cns11643_3): New variable in UTF2000.
5684         (Qchinese_cns11643_4): New variable in UTF2000.
5685         (Qchinese_cns11643_5): New variable in UTF2000.
5686         (Qchinese_cns11643_6): New variable in UTF2000.
5687         (Qchinese_cns11643_7): New variable in UTF2000.
5688         (syms_of_mule_charset): Define `chinese-cns11643-3',
5689         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5690         and `chinese-cns11643-7' in UTF2000.
5691         (vars_of_mule_charset): Initialize
5692         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5693         + 1 in UTF2000.
5694         (complex_vars_of_mule_charset): Setup charset
5695         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5696         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5697
5698 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5699
5700         * mule-charset.c: Move setting for `leading-code-private-11' from
5701         `syms_of_mule_charset' to `vars_of_mule_charset'.
5702
5703 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5704
5705         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5706         and `NUM_LEADING_BYTES' in assert.
5707
5708 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5709
5710         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5711         instead of 128.
5712         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5713         `NUM_LEADING_BYTES' instead of 128.
5714
5715 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5716
5717         * mule-charset.h (charset_by_leading_byte): Use
5718         `NUM_LEADING_BYTES' instead of 128.
5719         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5720
5721         * mule-charset.c (charset_by_leading_byte): Use
5722         `NUM_LEADING_BYTES' instead of 128.
5723         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5724
5725         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5726         128.
5727
5728 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5729
5730         * mule-charset.c (syms_of_mule_charset): Update to
5731         0.4 (Shin-Imamiya).
5732
5733 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5734
5735         * file-coding.c (encode_coding_sjis): New implementation for
5736         UTF2000.  (decode_coding_sjis): Ditto.
5737
5738 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5739
5740         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5741         Don't define in UTF2000.
5742
5743         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5744         defined.
5745
5746         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5747         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5748         MULE.
5749
5750 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5751
5752         * config.h.in (CHAR_IS_UCS4): New macro.
5753
5754         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5755         conventional MULE representation.
5756         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5757
5758         * mule-charset.h: Reverted to original.
5759
5760         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5761         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5762         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5763
5764         * character.h: New file.
5765
5766         * file-coding.c (Fmake_coding_system): Set 1 to
5767         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5768         defined.
5769         (encode_coding_no_conversion): New implementation for UTF2000.
5770
5771         * file-coding.h (struct Lisp_Coding_System): Add new member
5772         `fixed.size'.
5773
5774 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5775
5776         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5777         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5778         (encode_coding_iso2022): New implementation for UTF2000.
5779
5780 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5781
5782         * mule-canna.c (c2mu): New implementation for UTF2000.
5783         (m2c): Likewise.
5784
5785 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5786
5787         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5788
5789 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5790
5791         * file-coding.c (reset_encoding_stream): Set 0 to
5792         `str->iso2022.current_char_boundary' in UTF2000.
5793         (encode_utf8): Don't define in UTF2000.
5794         (encode_coding_utf8): New implementation for UTF-8 representation
5795         of UTF2000.
5796         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5797
5798 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5799
5800         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5801
5802         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5803         UTF2000.
5804         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5805
5806         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5807
5808         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5809         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5810         as UTF-8 in UTF2000.
5811         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5812         (non_ascii_valid_char_p): Don't define in UTF2000.
5813         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5814         (Lstream_get_emchar_1): Likewise.
5815         (utf-2000-version): New variable in UTF2000.
5816
5817         * lread.c (read_escape): Add new reader `u'.
5818
5819         * insdel.c (three_to_one_table): Don't define in UTF2000.
5820         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5821         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5822         UTF2000.
5823         (bytind_to_bufpos_func): Likewise.
5824         (buffer_mule_signal_inserted_region): Likewise.
5825         (vars_of_insdel): Don't initialize `three_to_one_table'.
5826         (init_buffer_text): Use `buf->text->mule_size' instead of
5827         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5828         UTF2000.
5829
5830         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5831         UTF-8 representation in UTF2000.
5832         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5833         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5834         (decode_coding_iso2022): Don't define local variable `lb' in
5835         UTF2000; don't use LEADING_BYTE in UTF2000; use
5836         `DECODE_ADD_UCS_CHAR' in UTF2000.
5837         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5838
5839         * config.h.in (UTF2000): New macro.
5840
5841         * buffer.h (struct buffer_text): Add new member `mule_size' and
5842         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5843         (valid_char_p): Return always 1 in UTF2000.
5844         (MAX_EMCHAR_LEN): 6 in UTF2000.
5845         (three_to_one_table): Don't define in UTF2000.
5846         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5847         UTF2000.
5848         (real_bytind_to_bufpos): Likewise.
5849
5850         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5851
5852 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5853
5854         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5855         representation change.
5856         (Vutf_2000_version): New variable.
5857         (leading_code_private_11): New variable.
5858         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5859         `leading-code-private-11'.
5860
5861         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5862         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5863         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5864         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5865         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5866         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5867         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5868         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5869         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5870         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5871         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5872         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5873         (MIN_CHAR_GREEK): New macro.
5874         (MAX_CHAR_GREEK): New macro.
5875         (MIN_CHAR_CYRILLIC): New macro.
5876         (MAX_CHAR_CYRILLIC): New macro.
5877         (MIN_CHAR_HEBREW): New macro.
5878         (MAX_CHAR_HEBREW): New macro.
5879         (MIN_CHAR_THAI): New macro.
5880         (MAX_CHAR_THAI): New macro.
5881         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5882         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5883         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5884         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5885         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5886         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5887         (CHAR_FIELD2): New inline function.
5888         (CHAR_FIELD3): New inline function.
5889         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5890         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5891         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5892         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5893         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5894         (MIN_CHAR_COMPOSITION): Likewise.
5895         (CHAR_LEADING_BYTE): Modified for character representation change.
5896         (MAKE_CHAR): Likewise.
5897
5898         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5899         (Vcharset_greek_iso8859_7): Likewise.
5900         (Vcharset_cyrillic_iso8859_5): Likewise.
5901         (Vcharset_hebrew_iso8859_8): Likewise.
5902         (Vcharset_thai_tis620): Likewise.
5903         (Vcharset_katakana_jisx0201): Likewise.
5904
5905 2007-10-07  Vin Shelton  <acs@xemacs.org>
5906
5907         * XEmacs 21.4.21 is released
5908
5909 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
5910
5911         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
5912
5913 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
5914
5915         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
5916         (png_instantiate): Initialize setjmp_buffer early, and avoid
5917         recursive entry to error handler.
5918
5919 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
5920
5921         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
5922         a typo fix.
5923
5924 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
5925
5926         * event-Xt.c (x_reset_modifier_mapping):
5927         * event-gtk.c (gtk_reset_modifier_mapping):
5928         Zero out the device's modifier map once we've freed it, to prevent
5929         a double free on a re-entrant call. 
5930
5931 2007-05-17  Vin Shelton  <acs@xemacs.org>
5932
5933         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
5934         64-bit linux.  Patch from Hans de Graaff.
5935
5936 2007-05-02  Vin Shelton  <acs@xemacs.org>
5937
5938         * dumper.c (pdump): Don't close pdump_fd (already closed by
5939         fclose() call.  Patch from Steve Higham.
5940         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
5941         already closed.  Patch inspired by Steve Higham.
5942
5943 2007-05-01  Vin Shelton  <acs@xemacs.org>
5944
5945         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
5946         (mswindows_fstat): Ditto.
5947         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
5948
5949 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
5950
5951         * postgresql.c: Update Steve Baur's email address by his request.
5952         * postgresql.h: Ditto.
5953
5954 2007-01-04  Vin Shelton  <acs@xemacs.org>
5955
5956         * fileio.c (check_writable): Check old-style readonly bit only for
5957         non-directories.
5958
5959 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
5960
5961         * src/fileio.c (check_writable): 
5962         Cope with the fact that the read-only attribute trumps Windows NTFS
5963         ACLS.
5964
5965
5966 2006-12-09  Vin Shelton  <acs@xemacs.org>
5967
5968         * XEmacs 21.4.20 is released
5969
5970 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
5971
5972         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
5973         relocated the definitions to be used sooner in file.
5974         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
5975         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
5976         overflow.
5977
5978 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
5979
5980         * sound.c (init_native_sound):
5981         Only X11 and GTK devices can possibly not be on the console of the
5982         associated machine. Fixes a crash when init_native_sound is called
5983         on a msprinter device. 
5984
5985 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
5986
5987         * buffer.c (buffer-file-name): Document invariant.
5988         (buffer-file-truename): Sync wording to buffer-file-name.
5989         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
5990         and discussion.
5991
5992 2006-11-19  Benson Margulies  <benson@dchbk.us>
5993
5994         * fileio.c: Add code to use full Win32 API to check for write
5995         access.  Win32 has the general design policy that you aren't
5996         supposed to ask this question, since security checks change
5997         depending on asynchronous processes.  Nonetheless, there is a way,
5998         by acting as if we are a server doing interpretive access
5999         control.
6000
6001 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6002
6003         * bytecode.c: Use xnew_array instead of alloca.
6004
6005 2006-07-04  Vin Shelton  <acs@xemacs.org>
6006
6007         * redisplay-msw.c: Fix tiny, but crucial typo.
6008
6009 2006-06-22  Jerry James  <james@xemacs.org>
6010
6011         * EmacsShell-sub.c (ChangeManaged):
6012         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6013         NULL.
6014         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6015         checking if it is NULL.  Also fix a memory leak.
6016         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6017         dereference it, not the other way around.
6018         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6019         overflow check.
6020         * dumper.c (pdump_register_struct): Ditto.
6021         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6022         to (short) warnpath overflow warnpath.
6023         * extents.c (detach_all_extents): Call extent_list_delete_all with
6024         a non-NULL parameter only.
6025         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6026         NULL width and height.
6027         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6028         xic before checking if they are NULL.
6029         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6030         allocated array.
6031         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6032         * nas.c (Err): Fix a memory leak.
6033         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6034         Don't create the buffer if there is nothing to do.
6035         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6036         * redisplay-output.c (redisplay_output_layout): Ditto.
6037         * redisplay-tty.c (tty_output_display_block): Ditto.
6038         * redisplay-x.c (x_output_display_block): Ditto.
6039         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6040         dereference instance->scrollbar_data if it is NULL.
6041         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6042         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6043         for sb->scrollbar_data.
6044         * sound.c (init_native_sound): Avoid a buffer overflow by
6045         allocating a buffer with the appropriate size.
6046
6047 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6048
6049         * EmacsShell-sub.c (RootGeometryManager):
6050         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6051         Based on a suggestion by Francois L'Archeveque.
6052
6053 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6054
6055         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6056         current values found in GNU Emacs.
6057
6058 2006-03-17  Vin Shelton  <acs@xemacs.org>
6059
6060         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6061         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6062
6063         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6064         'hex_initialized' because it conflicts with 'initialized' in
6065         lisp.h.
6066
6067 2006-01-28  Vin Shelton  <acs@xemacs.org>
6068
6069         * XEmacs 21.4.19 is released
6070
6071 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6072
6073         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6074
6075 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6076
6077         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6078         5000 to INT_MAX.
6079
6080 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6081
6082         * database.c: Suppress compiler warning under Cygwin.
6083         * database.c: Removed __FreeBSD__ check, should be handled by
6084         HAVE_U_xxx_T defines.
6085
6086 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6087
6088         * console.c (stuff_buffered_input): Compile body only if
6089         HAVE_TTY.
6090
6091 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6092
6093         * callproc.c: #include sysdir.h, so that any appropriate Mule
6094         magic happens with the chdir() call when calling a subprocess. 
6095
6096 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6097
6098         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6099         * mule-ccl.c: Check that a character set exists before using it
6100         to create a character. 
6101
6102 2005-12-06  Vin Shelton  <acs@xemacs.org>
6103
6104         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6105         to INT_MAX.
6106
6107 2005-12-03  Vin Shelton <acs@xemacs.org>
6108
6109         * XEmacs 21.4.18 is released
6110
6111 2005-11-27  Kean Johnston <kean@armory.com>
6112
6113         * redisplay-tty.c (set_tty_modes):
6114         (reset_tty_modes): disable auto-margins if the terminal supports
6115         them.
6116         (init_tty_for_redisplay): fix cursor shape.
6117
6118 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6119
6120         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6121         for control-1 characters properly, both when reading multibyte
6122         characters and writing them. 
6123
6124 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6125
6126         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6127         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6128         were seeing with incremental selection transfer failing. 
6129
6130 2005-11-26  Vin Shelton  <acs@xemacs.org>
6131
6132         * callproc.c (Fold_call_process_internal): Create the buffer if it
6133         does not already exist.  The original patch came from Ben Wing in
6134         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6135
6136 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6137
6138         * callproc.c: Process-related docstring improvements spurred by
6139         Norbert Koch.
6140
6141 2005-11-25  Vin Shelton  <acs@xemacs.org>
6142
6143         * depend: Regenerated.
6144
6145 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6146
6147         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6148         says it clashes with a global with the same name.
6149
6150 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6151
6152         * sysdll.c (dll_open): Under MacOS X return NULL under the
6153         filename is NULL.  Fixes problems finding local symbols under 10.4
6154         (Tiger)
6155
6156 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6157         
6158         * config.h.in: New HAVE_U_INT*_T defines.
6159         
6160         * database.c: Only use u_int*_t typedefs if not already
6161         defined.
6162
6163 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6164
6165         * src/process-unix.c (unix_open_network_stream): moved
6166           'portbuf' buffer out of an inner block as it is used in the
6167           entire function. With gcc4, the stack may get corrupted
6168           after leaving this block. This patches adjusts the size of
6169           the used buffer also; static '128' bytes are far too much
6170           currently and might not suffice for future architectures
6171           (e.g. for 512 bit ones ;)). Instead of, use only the really
6172           required space (max octets * ln(256)/ln(10) chars + space
6173           for '\0' and the sign)
6174
6175 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6176
6177         * callproc.c: Include sysdir.h, so any necessary Mule processing
6178         is done on the current directory name before starting a new
6179         process.
6180
6181 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6182
6183         * chartab.c (Fchar_table_p):
6184         (Fget_range_char_table):
6185         (Fput_char_table):
6186         (Fmap_char_table):
6187         Describe range representation and fix typo.
6188
6189 2005-02-12  Vin Shelton  <acs@xemacs.org>
6190
6191         * emacs.c (shut_down_emacs): Advise users to send email to the
6192         xemacs-beta list instead of crashes@xemacs.org.
6193
6194 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6195
6196         * process-unix.c (unix_send_process): Flush the last chunk, even
6197         when the pipe is blocked.
6198
6199 2005-02-06  Vin Shelton <acs@xemacs.org>
6200
6201         * XEmacs 21.4.17 is released
6202
6203 2005-01-31  Ben Wing  <ben@xemacs.org>
6204
6205         * emacs.c:
6206         Define assert_failed() always.
6207         * lisp.h:
6208         Always define ABORT().
6209
6210 2005-01-25  Ben Wing  <ben@xemacs.org>
6211
6212         * Makefile.in.in:
6213         * Makefile.in.in (%.o):
6214         Don't compile executable as Windows (-mwindows) under Cygwin.
6215         Semi-recent changes to Cygwin's executable-startup handling make
6216         it impossible to access the TTY this way.
6217
6218         Don't use special linker file under Cygwin (cygwin.sc) except
6219         when non-PDUMP (even in this case it is highly questionable); you
6220         get errors like
6221
6222       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6223    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6224
6225 2005-01-29  Ben Wing  <ben@xemacs.org>
6226
6227         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6228
6229         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6230
6231 2005-01-29  Ben Wing  <ben@xemacs.org>
6232
6233         * bytecode.c (optimize_compiled_function):
6234         * print.c (FROB):
6235         * print.c (long_to_string):
6236         Add casts to avoid warning.
6237         
6238         * glyphs-eimage.c:
6239         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6240         #### The better solution is to move the TIFF and JPEG code to
6241         different files.
6242         
6243         * glyphs-msw.c (mswindows_xbm_instantiate):
6244         Define __STDC__ to avoid problems with compface.h.
6245         
6246         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6247         * EmacsShell-sub.c:
6248         * EmacsShell-sub.c (ABORT):
6249         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6250         * EmacsShell-sub.c (RootGeometryManager):
6251         * EmacsShell.c:
6252         * EmacsShell.c (ABORT):
6253         * EmacsShell.c (EmacsShellUpdateSizeHints):
6254         * alloc.c (free_lcrecord):
6255         * alloca.c (i00afunc):
6256         * buffer.c (delete_from_buffer_alist):
6257         * buffer.c (MARKED_SLOT):
6258         * bytecode.c (execute_rare_opcode):
6259         * bytecode.c (optimize_byte_code):
6260         * bytecode.c (Ffetch_bytecode):
6261         * chartab.c (char_table_type_to_symbol):
6262         * chartab.c (Freset_char_table):
6263         * chartab.c (decode_char_table_range):
6264         * chartab.c (Fget_range_char_table):
6265         * chartab.c (check_valid_char_table_value):
6266         * chartab.c (map_char_table):
6267         * chartab.c (slow_map_char_table_fun):
6268         * chartab.c (chartab_instantiate):
6269         * cm.c (cmcheckmagic):
6270         * console-msw.c (DHEADER):
6271         * console.c (MARKED_SLOT):
6272         * data.c (finish_marking_weak_lists):
6273         * data.c (encode_weak_list_type):
6274         * debug.h (DASSERT):
6275         * device-gtk.c (gtk_init_device):
6276         * device-msw.c (mswindows_get_default_margin):
6277         * device-tty.c (tty_init_device):
6278         * device-x.c (get_device_from_display):
6279         * device-x.c (x_get_visual_depth):
6280         * doprnt.c (parse_doprnt_spec):
6281         * doprnt.c (get_doprnt_args):
6282         * dumper.c (pdump_get_indirect_count):
6283         * dumper.c (pdump_register_sub):
6284         * dumper.c (pdump_register_object):
6285         * dumper.c (pdump_register_struct):
6286         * dumper.c (pdump_dump_data):
6287         * dumper.c (pdump_reloc_one):
6288         * elhash.c (print_hash_table):
6289         * elhash.c (make_standard_lisp_hash_table):
6290         * elhash.c (hash_table_instantiate):
6291         * emacs.c:
6292         * emacs.c (Fforce_debugging_signal):
6293         * emacs.c (sort_args):
6294         * emacs.c (main):
6295         * emacs.c (assert_failed):
6296         * eval.c (throw_or_bomb_out):
6297         * eval.c (signal_1):
6298         * eval.c (Fsignal):
6299         * event-Xt.c:
6300         * event-Xt.c (emacs_Xt_mapping_action):
6301         * event-Xt.c (Xt_process_to_emacs_event):
6302         * event-msw.c:
6303         * event-stream.c (check_event_stream_ok):
6304         * event-stream.c (Fadd_timeout):
6305         * event-stream.c (Fadd_async_timeout):
6306         * event-stream.c (Fdiscard_input):
6307         * event-stream.c (execute_internal_event):
6308         * event-stream.c (Frecent_keys):
6309         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6310         * event-stream.c (lookup_command_event):
6311         * event-unixoid.c (poll_fds_for_input):
6312         * events.c:
6313         * events.c (mark_event):
6314         * events.c (event_equal):
6315         * events.c (event_hash):
6316         * events.c (Fmake_event):
6317         * events.c (Fdeallocate_event):
6318         * events.c (event_chain_find_previous):
6319         * events.c (event_to_character):
6320         * events.c (format_event_object):
6321         * events.c (Fevent_type):
6322         * events.c (event_pixel_translation):
6323         * events.c (Fevent_properties):
6324         * extents.c (extent_in_region_p):
6325         * extents.c (print_extent):
6326         * extents.c (process_extents_for_insertion_mapper):
6327         * extents.c (report_extent_modification_mapper):
6328         * extents.c (glyph_layout_to_symbol):
6329         * faces.c (face_validate):
6330         * file-coding.c (eol_type_to_symbol):
6331         * file-coding.c (subsidiary_coding_system):
6332         * file-coding.c (Fcoding_system_type):
6333         * file-coding.c (Fcoding_system_property):
6334         * file-coding.c (mule_decode):
6335         * file-coding.c (mule_encode):
6336         * file-coding.c (encode_coding_ucs4):
6337         * file-coding.c (encode_coding_utf8):
6338         * file-coding.c (parse_iso2022_esc):
6339         * file-coding.c (encode_coding_iso2022):
6340         * fileio.c:
6341         * fns.c (concat):
6342         * fns.c (Fsubseq):
6343         * fns.c (mapcar1):
6344         * fns.c (Fbase64_encode_region):
6345         * fns.c (Fbase64_encode_string):
6346         * fns.c (Fbase64_decode_region):
6347         * fns.c (Fbase64_decode_string):
6348         * font-lock.c (find_context):
6349         * font-lock.c (context_to_symbol):
6350         * frame-gtk.c (gtk_set_frame_pointer):
6351         * frame-gtk.c (gtk_update_frame_external_traits):
6352         * frame-x.c (x_wm_mark_shell_size_user_specified):
6353         * frame-x.c (x_wm_mark_shell_position_user_specified):
6354         * frame-x.c (x_wm_set_shell_iconic_p):
6355         * frame-x.c (x_wm_set_cell_size):
6356         * frame-x.c (x_wm_set_variable_size):
6357         * frame-x.c (x_wm_store_class_hints):
6358         * frame-x.c (x_wm_maybe_store_wm_command):
6359         * frame-x.c (x_initialize_frame_size):
6360         * frame-x.c (x_update_frame_external_traits):
6361         * frame.c:
6362         * frame.c (delete_frame_internal):
6363         * frame.c (mouse_pixel_position_1):
6364         * frame.c (change_frame_size_1):
6365         * free-hook.c (check_free):
6366         * free-hook.c (check_realloc):
6367         * free-hook.c (note_block_input):
6368         * free-hook.c (log_gcpro):
6369         * gccache-gtk.c (gc_cache_lookup):
6370         * glyphs-eimage.c (tiff_memory_write):
6371         * glyphs-gtk.c (gtk_finalize_image_instance):
6372         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6373         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6374         * glyphs-gtk.c (gtk_xpm_instantiate):
6375         * glyphs-gtk.c (gtk_unmap_subwindow):
6376         * glyphs-gtk.c (gtk_map_subwindow):
6377         * glyphs-gtk.c (gtk_button_redisplay):
6378         * glyphs-msw.c:
6379         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6380         * glyphs-x.c (init_image_instance_from_xbm_inline):
6381         * glyphs-x.c (extract_xpm_color_names):
6382         * glyphs-x.c (x_xpm_instantiate):
6383         * glyphs.c (get_image_instantiator_governing_domain):
6384         * glyphs.c (print_image_instance):
6385         * glyphs.c (image_instance_equal):
6386         * glyphs.c (image_instance_hash):
6387         * glyphs.c (encode_image_instance_type):
6388         * glyphs.c (make_image_instance_1):
6389         * glyphs.c (inherit_instantiate):
6390         * glyphs.c (image_instantiate):
6391         * glyphs.c (allocate_glyph):
6392         * glyphs.c (Fglyph_type):
6393         * glyphs.c (redisplay_subwindow):
6394         * glyphs.c (display_table_entry):
6395         * gtk-glue.c (xemacs_list_to_gtklist):
6396         * gtk-glue.c (xemacs_gtklist_to_list):
6397         * gtk-glue.c (xemacs_list_to_array):
6398         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6399         * gutter.c (gutter_was_visible):
6400         * gutter.c (get_gutter_coords):
6401         * input-method-xlib.c (get_XIM_input):
6402         * insdel.c (bufpos_to_bytind_func):
6403         * insdel.c (bytind_to_bufpos_func):
6404         * insdel.c (move_gap):
6405         * intl.c (x_get_composed_input):
6406         * keymap.c (keymap_lookup_directly):
6407         * keymap.c (keymap_delete_inverse_internal):
6408         * keymap.c (ensure_meta_prefix_char_keymapp):
6409         * keymap.c (accessible_keymaps_mapper_1):
6410         * keymap.c (where_is_recursive_mapper):
6411         * lisp.h:
6412         * lisp.h (ABORT):
6413         * lread.c (read_atom):
6414         * lstream.c (Lstream_delete):
6415         * lstream.c (make_lisp_buffer_stream_1):
6416         * macros.c (pop_kbd_macro_event):
6417         * malloc.c (malloc):
6418         * malloc.c (free):
6419         * marker.c (bi_marker_position):
6420         * marker.c (set_bi_marker_position):
6421         * menubar-gtk.c (menu_descriptor_to_widget_1):
6422         * menubar-msw.c (prune_menubar):
6423         * menubar-x.c (set_frame_menubar):
6424         * mule-charset.c (get_unallocated_leading_byte):
6425         * mule-charset.h (CHAR_LEADING_BYTE):
6426         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6427         * nt.c (init_environment):
6428         * nt.c (generate_inode_val):
6429         * ntproc.c (delete_child):
6430         * ntproc.c (_sys_read_ahead):
6431         * ntproc.c (create_child):
6432         * objects.c (color_instantiate):
6433         * objects.c (font_instantiate):
6434         * objects.c (face_boolean_instantiate):
6435         * print.c (printing_major_badness):
6436         * process-nt.c (nt_send_process):
6437         * process-unix.c (unix_send_process):
6438         * process.c (get_process):
6439         * ralloc.c (obtain):
6440         * ralloc.c (relinquish):
6441         * ralloc.c (relocate_blocs):
6442         * ralloc.c (resize_bloc):
6443         * ralloc.c (r_alloc_free):
6444         * ralloc.c (r_re_alloc):
6445         * ralloc.c (r_alloc_thaw):
6446         * ralloc.c (init_ralloc):
6447         * ralloc.c (Free_Addr_Block):
6448         * ralloc.c (r_alloc):
6449         * redisplay-gtk.c (gtk_output_display_block):
6450         * redisplay-msw.c (mswindows_output_display_block):
6451         * redisplay-output.c (get_next_display_block):
6452         * redisplay-output.c (get_cursor_size_and_location):
6453         * redisplay-output.c (redisplay_output_layout):
6454         * redisplay-output.c (redisplay_clear_region):
6455         * redisplay-tty.c (tty_output_display_block):
6456         * redisplay-x.c (x_output_display_block):
6457         * redisplay.c (add_propagation_runes):
6458         * redisplay.c (add_glyph_rune):
6459         * redisplay.c (create_text_block):
6460         * redisplay.c (add_margin_runes):
6461         * redisplay.c (create_left_glyph_block):
6462         * redisplay.c (create_right_glyph_block):
6463         * redisplay.c (create_string_text_block):
6464         * redisplay.c (regenerate_window):
6465         * redisplay.c (REGEN_INC_FIND_START_END):
6466         * redisplay.c (redisplay_frame):
6467         * redisplay.c (point_in_line_start_cache):
6468         * regex.c:
6469         * regex.c (ABORT):
6470         * regex.c (re_compile_fastmap):
6471         * regex.c (re_match_2_internal):
6472         * regex.c (regerror):
6473         * scrollbar-gtk.c (gtk_scrollbar_loop):
6474         * scrollbar-gtk.c (scrollbar_cb):
6475         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6476         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6477         * scrollbar-x.c (x_update_scrollbar_instance_status):
6478         * scrollbar-x.c (x_scrollbar_loop):
6479         * scrollbar-x.c (x_update_frame_scrollbars):
6480         * search.c (search_command):
6481         * search.c (Fmatch_data):
6482         * select-x.c (motif_clipboard_cb):
6483         * signal.c (interrupt_signal):
6484         * specifier.c (specifier_add_spec):
6485         * specifier.c (specifier_instance_from_inst_list):
6486         * specifier.c (specifier_instance):
6487         * specifier.h:
6488         * specifier.h (struct specifier_methods):
6489         * strftime.c (add_num_time_t):
6490         * sunplay.c (init_device):
6491         * symbols.c (Fsetplist):
6492         * symbols.c (do_symval_forwarding):
6493         * symbols.c (store_symval_forwarding):
6494         * symbols.c (Fset):
6495         * symbols.c (Fbuilt_in_variable_type):
6496         * symbols.c (decode_magic_handler_type):
6497         * symbols.c (handler_type_from_function_symbol):
6498         * syntax.c (update_syntax_cache):
6499         * sysdep.c (init_baud_rate):
6500         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6501         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6502         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6503         * toolbar.c (get_toolbar_coords):
6504         * ui-gtk.c (build_gtk_boxed):
6505         * ui-gtk.c (describe_gtk_arg):
6506         * ui-gtk.c (gtk_type_to_lisp):
6507         * ui-gtk.c (lisp_to_gtk_type):
6508         * ui-gtk.c (lisp_to_gtk_ret_type):
6509         * ui-gtk.c (lisp_to_flag):
6510         * unexnt.c (read_in_bss):
6511         * unexnt.c (map_in_heap):
6512         * window.c (real_window):
6513         * window.c (window_display_lines):
6514         * window.c (window_display_buffer):
6515         * window.c (set_window_display_buffer):
6516         * window.c (window_modeline_height):
6517         * window.c (unshow_buffer):
6518         * window.c (window_loop):
6519         * window.c (Fget_lru_window):
6520         * window.c (Fsplit_window):
6521         * window.c (Fset_window_configuration):
6522         * window.c (saved_window_index):
6523         * xgccache.c (gc_cache_lookup):
6524         abort() -> ABORT().  Eliminate preprocessor games with abort()
6525         since it creates huge problems in VC7, solvable only by including
6526         massive amounts of files in every compile (and not worth it).
6527
6528         * sysdep.c:
6529         * sysproc.h:
6530         Inclusion of process.h does not need to be before lisp.h any more.
6531         Move later and remove comment about abort().
6532
6533 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6534
6535         * regex.c (re_match_2_internal):
6536         Correctly initialize loop which clears uninitialized registers.
6537
6538 2005-01-28  Vin Shelton  <acs@xemacs.org>
6539
6540         * sheap.c (more_static_core): Applied Ben's version of the long
6541         string patch.
6542
6543 2005-01-24  Vin Shelton  <acs@xemacs.org>
6544
6545         * sheap.c (more_static_core): Reformatted printf string so
6546         gcc-3.3.3 will compile this on Cygwin.
6547
6548 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6549
6550         * console.c (function_key_map): Reference `key-binding'.
6551
6552         * keymap.c (Vkey_translation_map): Improve docstring.
6553
6554 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6555
6556         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6557         * window.c (window_loop): [fix] Take into account
6558         `allow-deletion-of-last-visible-frame' variable.
6559         * window.c (replace-buffer-in-windows): Ditto.
6560
6561 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6562
6563         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6564
6565 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6566
6567         * event-gtk.c: Recognise AltGr as a valid modifier.
6568
6569 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6570
6571         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6572
6573 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6574
6575         Fix backreference bug caught by test suite.
6576
6577         * regex.c (regex_compile):
6578         Make backref duplicate internal register.
6579
6580 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6581
6582         Documentation, code clarification, and warning suppression.
6583         
6584         * regex.c (regex_compile):
6585         Improve comments.
6586         (re_match_2_internal):
6587         Improve comments and avoid redundant braces.  [Most of the big hunk
6588         at l. 4710 is indentation; use diff -w to see the real changes.]
6589         (alt_match_null_string_p):
6590         (common_op_match_null_string_p):
6591         Avoid shadowing global on Mac OS X 10.4, at least.
6592
6593 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6594
6595         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6596         introduced with shy groups fix).  [Already applied, probably
6597         with the second "fix shy groups" patch of 2004-10-07.] 
6598
6599 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6600
6601         From Andrey Slusar <anrays@gmail.com>:
6602
6603         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6604
6605 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6606
6607         * Makefile (RECURSIVE_MAKE): Removed.
6608         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6609         handling parallel builds.
6610
6611 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6612
6613         * Makefile.in.in: Enable support for parallel builds.
6614
6615 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6616
6617         From Andrey Slusar <anrays@gmail.com>:
6618
6619         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6620         FreeBSD version is >= 199701 _and_ < 600006.
6621
6622 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6623
6624         * scrollbar.c (compute_scrollbar_instance_usage):
6625         Only call device method compute_scrollbar_instance_usage() if it
6626         is defined.
6627
6628 2004-12-05  Vin Shelton <acs@xemacs.org>
6629
6630         * XEmacs 21.4.16 is released
6631
6632 2004-12-04  Vin Shelton  <acs@xemacs.org>
6633
6634         * depend: Regenerated.
6635
6636 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6637
6638         * regex.c (re_match_2_internal): Map internal to external
6639         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6640         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6641
6642 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6643
6644         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6645         to fix a crash.  Also, check the buffer is live and it
6646         really exists in buffer_list.  If the buffer is not in the list,
6647         prepend it.
6648
6649 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6650
6651         Fix shy groups by implementing recording of all groups for
6652         repetition and backtracking.  Backport from 21.5.
6653         
6654         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6655         external_to_internal_register, external_to_internal_register_size,
6656         and update comments for re_nsub.
6657
6658         * regex.c (re_opcode_t): Update comments.
6659         (print_compiled_pattern): Ouput external_to_internal_register,
6660         external_to_internal_register_size, and re_ngroups for debugging.
6661         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6662         (regex_compile): Update header comment.
6663         Ensure that all groups are recorded so that repeat matches and
6664         backtracking work correctly.  Comment related warning for groups >
6665         255.
6666         (re_search_2): Construct map of API indexes (which count only
6667         nonshy groups) to internal register numbers, and keep it updated.
6668
6669 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6670
6671         * frame-gtk.c (gtk_make_frame_visible):
6672         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6673         show/hide.  This is what X uses and is prevents previously hidden
6674         widgets from suddenly reappearing.
6675         * gtk-xemacs.c (gtk_xemacs_paint):
6676         * gtk-xemacs.c (gtk_xemacs_draw):
6677         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6678         drawable.
6679         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6680         size and location changes so that they can be seen before the next
6681         idle event.  Without this rapid changes to scrollbar properties
6682         are not seen.
6683
6684 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6685
6686         * console-gtk.h:
6687         * console-gtk.h (struct gtk_frame):
6688         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6689           Add hash tables track tab_control callback data.
6690           Added #defines for GTK object data names.
6691           Declaration of gtk_widget_to_frame().
6692         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6693         * frame-gtk.c (gtk_widget_to_frame): New.
6694         * frame-gtk.c (gtk_create_widgets):
6695         * frame-gtk.c (allocate_gtk_frame_struct):
6696         * frame-gtk.c (gtk_mark_frame):
6697         Manage frame callbakc hash tables.
6698         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6699         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6700         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6701         of widget size.
6702         * glyphs-gtk.c (gtk_widget_query_geometry): New
6703         * glyphs-gtk.c (gtk_register_gui_item): New
6704         * glyphs-gtk.c (gtk_add_tab_item): New
6705         * glyphs-gtk.c (gtk_tab_control_callback): New
6706         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6707         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6708         Use correct list when loading item.
6709         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6710         Register new methods.
6711         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6712         default size, for widgets.
6713         * gui-x.c:  Improved comment.
6714         * menubar-gtk.c (__generic_button_callback): Use
6715         gtk_widget_to_frame instead of __get_channel.
6716         * scrollbar-gtk.c:
6717         * ui-gtk.c: Use symbolic names for GTK object data.
6718
6719 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6720
6721         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6722
6723 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6724
6725         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6726
6727 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6728
6729         * malloc.c (morecore): siz is a long because in some architectures
6730         (eg ia-64) an int cannot hold the address range.  Additional patch
6731         from the SuSe distribution.
6732
6733 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6734
6735         * emacs.c:
6736         * malloc.c: lim_data is a long because in some architectures
6737         (eg ia-64) an int cannot hold the address range.
6738         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6739         instead of ulimit() because ulimit() always returns -1.
6740
6741 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6742
6743         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6744
6745 2004-06-11  David Kastrup  <dak@gnu.org>
6746
6747         * search.c (match_limit): Don't flag an error if match-data
6748         exceeding the allocated search_regs.num_regs gets requested, just
6749         return Qnil.
6750
6751 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6752
6753         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6754         replace symbolic color entries with the real colors specified in
6755         xpm-color-symbols, before passing the XPM to gtk.
6756         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6757         instead of a GTK specific field, so that it is used in by generic
6758         code.
6759
6760 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6761
6762        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6763         coredump from deref of NULL ptr (ExtData)
6764
6765 2004-04-19  Jerry James  <james@xemacs.org>
6766
6767         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6768         VALBITS to compute the location of the sign bit.
6769         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6770         of VALBITS with EMACS_INT_MAX.
6771         * events.c (Fevent_timestamp): Ditto.
6772         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6773         compute the halfway point to timestamp wraparound.
6774         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6775         EMACS_INT_MIN instead of using VALBITS.
6776         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6777         incorrect number with VALBITS.
6778         * fns.c (Frandom): Correct number of integer bits in docstring.
6779         Use INT_VALBITS instead of VALBITS to compute the denominator.
6780         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6781         build random numbers.
6782
6783 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6784         * event-gtk.c:
6785         * event-gtk.c (gtk_event_to_emacs_event):
6786         * menubar-gtk.c:
6787         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6788         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6789         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6790         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6791         * menubar-gtk.c (__activate_menu):
6792         * menubar-gtk.c (convert_underscores):
6793         * menubar-gtk.c (remove_underscores):
6794         * menubar-gtk.c (menu_convert):
6795         * menubar-gtk.c (menu_descriptor_to_widget_1):
6796         * menubar-gtk.c (menu_descriptor_to_widget):
6797         * menubar-gtk.c (menu_can_reuse_widget):
6798         * menubar-gtk.c (menu_create_menubar):
6799         * menubar-gtk.c (gtk_popup_menu):
6800         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6801         Added support for Gtk menu bar and menu item mnemonics.
6802
6803 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6804
6805         * sysdll.c: (dll_function): Added support for finding symbols in
6806         Darwin shared libraries as well in Darwin bundles.
6807         * sysdll.c (image_for_address): New
6808         * sysdll.c (my_find_image): New
6809         * sysdll.c (search_linked_libs): New
6810
6811 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6812
6813         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6814         return to GTK requires a different API to marshalling data to use
6815         as GTK parameters.
6816         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6817
6818 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6819
6820         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6821
6822 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6823
6824         * glyphs.c (process_image_string_instantiator):
6825         (Fset_console_type_image_conversion_list):
6826         Stop GCC from warning about shadowing of `exp'.
6827
6828         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6829
6830 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6831
6832         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6833
6834 2004-02-03  Vin Shelton  <acs@xemacs.org>
6835
6836         * glyphs.c (image_instance_layout): Remove pointless assertion.
6837         * regex.c (regex_grow_registers): Return type is void.
6838
6839 2004-02-02  Vin Shelton <acs@xemacs.org>
6840
6841         * XEmacs 21.4.15 is released
6842
6843 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6844
6845         * device-x.c (x_error_handler): Don't call stderr_out
6846
6847 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6848
6849         * buffer.c (other-buffer): Clarify documentation of order of
6850         arguments for FSF Emacs.
6851
6852 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6853
6854         * window.c (Fdelete_window): Dirty the mirror structure _before_
6855         marking the window deleted.
6856
6857 2003-09-15  Jerry James  <james@xemacs.org>
6858
6859         * event-msw.c (debug_mswin_messages): Conditionally compile
6860         messages missing from the Cygwin headers.
6861
6862 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6863
6864         * data.c (eq_with_ebola_notice): Fix typo in comment.
6865         (Ftrue_list_p): Improve docstring.
6866
6867 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6868
6869         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6870
6871 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6872
6873         * search.c (trivial_regexp_p): Regexps containing "\{" are
6874         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6875         Stefan Monnier for suggesting a diagnosis.
6876
6877 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6878
6879         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6880
6881 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6882
6883         * search.c (Fsearch_forward):
6884         (Fsearch_backward):
6885         Document negative count.
6886
6887 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6888
6889         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6890
6891 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6892
6893         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6894
6895 2003-09-15  Vin Shelton  <acs@xemacs.org>
6896
6897         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6898         21.5.
6899
6900 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6901
6902         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6903         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6904         (re_match_2_internal): Use TRANSLATE instead of
6905         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6906         non-ASCII char case conversion.
6907
6908 2003-09-08  Mike Sperber  <mike@xemacs.org>
6909
6910         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6911         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6912
6913 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6914
6915        * .gdbinit (pobj): fix printing of symbol name.
6916
6917 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6918
6919         * frame-x.c (x_layout_widgets): When resizing is about to cause
6920         frame size slip, mark it for redisplay.
6921
6922 2003-08-18  Jerry James  <james@xemacs.org>
6923
6924         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6925
6926 2003-09-03  Vin Shelton <acs@xemacs.org>
6927
6928         * XEmacs 21.4.14 is released
6929
6930 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6931
6932         * config.h.in (REGEX_MALLOC): Make it configure'able.
6933
6934 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6935
6936         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6937         linking.
6938         * sysdll.c (dll_init):
6939         * sysdll.c (dll_open):
6940         * sysdll.c (dll_close):
6941         * sysdll.c (dll_function):
6942         * sysdll.c (dll_variable):
6943         * sysdll.c (dll_error):
6944         Add support for loading bundles using Darwin/MacOSX
6945         native API.
6946
6947 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6948
6949         * process.c (start-process-internal): Document coding systems.
6950
6951 2003-07-30  Jerry James  <james@xemacs.org>
6952
6953         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6954
6955 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6956
6957         * event-msw.c (mswindows_enqueue_mouse_button_event):
6958         * event-msw.c (mswindows_wnd_proc):
6959           enqueue button event when scrollwheel event isn't handled by 
6960           mswindows_handle_mousewheel_event, such as when the scrollbars
6961           are not showing.
6962
6963 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6964
6965         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6966
6967 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6968
6969         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6970
6971 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6972
6973         * regex.c (re_match_2_internal): Fix matching degenerate word
6974         boundaries.
6975
6976 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6977
6978         * XEmacs 21.4.13 is released
6979
6980 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6981
6982         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6983         * lisp.h (<inttypes.h>):
6984         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6985         the definition.
6986
6987 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6988
6989         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6990         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6991         Result: "temacs can only be run in -batch mode."
6992         Fix: Check xemacs executable candidate for directory-ness.
6993
6994 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6995
6996         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6997           they conflict with <sys/types.h>.
6998
6999 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7000
7001         * database.c: Berkeley DB wants __STDC__ to be defined.
7002
7003 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7004
7005         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7006
7007 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7008
7009         * process-unix.c (unix_send_process): Fix C++ compile error.
7010
7011 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7012
7013         * Added .dylib as an acceptable shared library file extension
7014         * to support MacOSX.
7015
7016 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7017
7018         * EmacsFrameP.h (EmacsFramePart):
7019         Kludge to allow compiling with Motif1, but linking with Motif2.
7020
7021 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7022
7023         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7024
7025
7026 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7027
7028         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7029
7030 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7031
7032         * sysdll.c: Included lisp.h to define needed alloca_array.
7033
7034 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7035
7036         Make XEmacs redisplay 10 times faster.
7037         If, that is, you're using a slow X connection and MoveOpaque.
7038         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7039         Use compress_motion = TRUE.
7040         * EmacsFrame.c (emacsFrameClassRec): 
7041         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7042         * EmacsManager.c (emacsManagerClassRec):
7043         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7044
7045 2003-01-30  Vin Shelton  <acs@xemacs.org>
7046
7047         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7048
7049 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7050
7051         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7052         Patch by Martin Buchholz.
7053
7054 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7055
7056         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7057         Thanks to icc for warning and Martin Buchholz for reporting.
7058
7059 2003-01-29  Vin Shelton <acs@xemacs.org>
7060
7061         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7062
7063         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7064         remember to multiply by the element size.
7065
7066 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7067
7068         * XEmacs 21.4.12 "Portable Code" is released.
7069
7070 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7071
7072         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7073         * s/cygwin.sc: new linker file.
7074
7075 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7076
7077         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7078
7079         * redisplay-x.c (x_output_string): Use X11-specified types.
7080         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7081         * emacs.c (__free_hook): Use typeof with Intel compiler.
7082         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7083
7084 2003-01-08  Andy Piper  <andy@xemacs.org>
7085
7086         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7087         reserve size during unexec().
7088
7089 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7090
7091         * process-unix.c (unix_create_process): Don't let outchannel block.
7092
7093 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7094
7095         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7096         Needed for IsBadReadPtr().
7097
7098 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7099
7100         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7101
7102 2002-12-14  Ben Wing  <ben@xemacs.org>
7103
7104         * callint.c: Declaration error.
7105         * dumper.c (pdump):
7106         * dumper.c (pdump_load): Warning fix.
7107         * process.c: GCPRO error.
7108         * glyphs.c (unmap_subwindow):
7109         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7110         * event-stream.c (maybe_kbd_translate): Wrong argument to
7111         character_to_event().
7112
7113         * alloc.c (garbage_collect_1):
7114         * emacs.c:
7115         * emacs.c (debug_can_access_memory):
7116         * emacs.c (fatal_error_signal):
7117         * emacs.c (mswindows_handle_hardware_exceptions):
7118         * emacs.c (main_1):
7119         * emacs.c (main):
7120         * emacs.c (assert_failed):
7121         * emacs.c (syms_of_emacs):
7122         * lisp.h:
7123         * print.c:
7124         * print.c (std_handle_out_va):
7125         * print.c (write_string_to_stdio_stream):
7126         * print.c (write_fmt_string):
7127         * print.c (printing_badness):
7128         * print.c (printing_major_badness):
7129         * print.c (print_internal):
7130         * print.c (debug_print_no_newline):
7131         * print.c (debug_backtrace):
7132         Be more defensive in handling bad values when printing.  Add code
7133         from trunk involving inhibit_non_essential_printing_operations.
7134         When going down or in debug_print(), don't do external conversion
7135         and such and try really, really hard when printing to avoid core
7136         dumping.  Add force-debugging-signal, debug_break().
7137
7138 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7139
7140         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7141         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7142
7143 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7144
7145         * database.c: Fix open_database. Berkeley DB API has changed in
7146         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7147
7148 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7149
7150         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7151
7152 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7153
7154         * event-Xt.c (Xt_timeout):
7155         (Xt_timeout_callback):
7156         (emacs_Xt_add_timeout):
7157         (emacs_Xt_remove_timeout):
7158         (Xt_timeout_to_emacs_event):
7159         Turn completed_timeouts from a stack into a queue.  Fixes
7160         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7161
7162 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7163
7164         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7165         * emacs.c (main): Assert that mmap'd allocation is disabled.
7166
7167 2002-10-14  Andy Piper  <andy@xemacs.org>
7168
7169         * glyphs-widget.c (layout_query_geometry): add in fiddle
7170         factor. Include border text in width layout calculation.
7171         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7172
7173 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7174
7175         * XEmacs 21.4.10 "Military Intelligence" is released.
7176
7177 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7178
7179         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7180         using the NAS private array SoundFileInfo that no longer exists in
7181         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7182         and earlier.  This is broken for some versions between 1.5a and
7183         1.5f.
7184
7185 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7186
7187         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7188
7189         * emacs.c (shut_down_emacs): Improve crash message.
7190
7191 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7192
7193         * file-coding.c (determine_real_coding_system): Check for coding
7194         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7195         shebangs and Python PEP 263.
7196
7197 2002-10-08  Andy Piper  <andy@xemacs.org>
7198
7199         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7200         if static sizes haven't been set.
7201
7202 2002-08-30  Mike Alexander  <mta@arbortext.com>
7203
7204         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7205         to close a socket.
7206
7207 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7208
7209         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7210
7211 2002-09-20  Mike Sperber <mike@xemacs.org>
7212
7213         (This partially gets back my patch from 2002-07-20 without the
7214         bug.)
7215         * callproc.c (child_setup): Remove Ben's comment noting confusion
7216         over the file descriptors >= 3: close_process_descs() doesn't
7217         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7218         * process-unix.c (unix_create_process): Call
7219         begin_dont_check_for_quit to inhibit unwanted interaction (and
7220         thus breaking of X event synchronicity) in the child.
7221
7222 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7223
7224         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7225         widget.
7226
7227 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7228
7229         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7230         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7231         the xemacs process did not exit, but looped infinitely here.  This
7232         fixes that problem.
7233
7234 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7235
7236         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7237         (find_context): Improve comments.
7238
7239         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7240         (re_match_2): An XCHAR_TABLE operation was missing.
7241
7242         Many of the following changes were inspired by Andy Piper's (now
7243         obsolete) patch to make syntax-table text property lookup optional.
7244
7245         [Documentation]
7246
7247         * syntax.h (top level): Document semantics of syntax flags.
7248         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7249         * syntax.c, syntax.h (top level): Document syntax cache better in
7250         comments.
7251
7252         [Instrument syntax caching (temporary change)]
7253
7254         * syntax.h (enum syntax_cache_statistics_functions, struct
7255         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7256         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7257         * syntax.c (scan_words, Fforward_comment, scan_lists,
7258         Fbackward_prefix_characters):
7259         * font-lock.c (find_context):
7260         Use them to instrument syntax caching. 
7261         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7262         syntax_cache_statistics_function_names): New type and variables.
7263         * syntax.c (update_syntax_cache): Update and report statistics.
7264
7265         [Major syntax cache optimizations]
7266
7267         syntax.c (lookup_syntax_properties): Default off.
7268
7269         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7270         * syntax.c (update_syntax_cache):
7271         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7272
7273         [Minor syntax cache optimizations and code clarifications]
7274
7275         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7276         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7277         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7278         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7279         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7280         (Code clarification.)
7281
7282         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7283         scan_lists): Compute code from syncode, use Boolean macros instead
7284         of redundant masking operations.  (Code clarification; any decent
7285         compiler can do this optimization.)
7286
7287         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7288         for clarity.
7289
7290         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7291         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7292         use F*_single_property_change instead of F*_extent_change.
7293         Currently F*_single_property_change is _much_ less efficient.
7294
7295         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7296         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7297         syntax_cache.object properly, don't leave Qt or Qnil.
7298         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7299         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7300         tests for Qt or Qnil.
7301
7302 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7303
7304         * redisplay.c (point_in_line_start_cache): 
7305         * extents.c (print_extent_1):
7306         Fix warnings.
7307
7308         * extents.c (Fset_extent_property): Document `syntax-table' property.
7309
7310         * extents.h (Fnext_single_property_change): EXFUN it.
7311
7312 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7313
7314         * search.c (clear_unused_search_regs): New static function.
7315         (search_buffer): 
7316         (simple_search): 
7317         (boyer_moore):
7318         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7319         Minor clarifications in comments.
7320
7321         * regex.c (re_match_2_internal): Ensure no stale submatches.
7322
7323 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7324
7325         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7326
7327 2002-08-29  Jerry James  <james@xemacs.org>
7328
7329         * lisp.h: structrures -> structures.
7330
7331 2002-06-03  Andy Piper  <andy@xemacs.org>
7332
7333         * frame.c (frame_conversion_internal): add conversion appropriate
7334         for setting frame dimensions in pixels.
7335
7336         * console.h (struct console_methods): add device-specific widget
7337         layout functions.
7338
7339         * emacs.c (main_1): initialize glyph vars.
7340
7341         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7342         (handle_focus_event_2): new function. Allow focus to
7343         be set to a particular window and widget.
7344         (enqueue_focus_event): new function. Create a
7345         synthetic focus event.
7346         (emacs_Xt_handle_magic_event): call
7347         handle_focus_event_2.
7348
7349         * frame.c (Fset_frame_pixel_height): new function. Allow
7350         pixel-based sizing. Does the right thing on character-oriented
7351         displays.
7352         (Fset_frame_pixel_width): ditto.
7353         (Fset_frame_pixel_size): ditto.
7354         (syms_of_frame): declare.
7355
7356         * general-slots.h: add :vertically-justify and
7357         :horizontally-justify.
7358
7359         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7360         (mswindows_widget_border_width): new function.
7361         (mswindows_combo_box_instantiate): set border widths.
7362         (console_type_create_glyphs_mswindows): declare.
7363
7364         * glyphs-widget.c:
7365         (check_valid_justification): allow vertical and horizontal
7366         justification.
7367         (widget_border_width): new function. Call device methods.
7368         (widget_instance_border_width): ditto.
7369         (logical_unit_height): new function. Determine the height of a
7370         logical-unit. Logical units are intended to provide grid-like
7371         layout for subcontrols in a layout. If the layout is
7372         :vertically-justify top then subcontrols will be positioned on
7373         logical-unit boundaries, thus allowing adjacent subcontrols to
7374         line up.
7375         (widget_logical_unit_height): ditto for widgets.
7376         (redisplay_widget): misc cleanup.
7377         (widget_spacing): new function. Call device specific
7378         methods. Intended to be the default gap between adjacent widgets.
7379         (widget_query_geometry): use new spacing functions to determine
7380         appropriate geometry.
7381         (initialize_widget_image_instance): initialize horizontal and
7382         vertical justification.
7383         (widget_instantiate): use logica-units where appropriate for
7384         sizing large widgets.
7385         (button_query_geometry): use widget_instance_border_width.
7386         (tree_view_query_geometry): ditto.
7387         (tab_control_query_geometry): ditto.
7388         (edit_field_query_geometry): new function.
7389         (layout_update): pick up :justify, :horizontally-justify and
7390         :vertically-justify none of which worked previously. :justify is
7391         used as a fallback for both horizontal and vertical justification.
7392         (layout_query_geometry): use logical units to size appropriately.
7393         (layout_layout): ditto.
7394         (Fwidget_logical_to_character_width): new function. Allow users to
7395         convert from logical units to characters so that frame sizes can
7396         be set appropriately.
7397         (Fwidget_logical_to_character_height): ditto.
7398         (syms_of_glyphs_widget): declare.
7399         (image_instantiator_edit_fields): add edit_field_query_geometry.
7400         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7401         :horizontally-justify.
7402         (specifier_vars_of_glyphs_widget): new function. Declare
7403         Vwidget_border_width which is not yet used.
7404
7405         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7406         (x_widget_border_width): new function.
7407         (x_widget_instantiate): create a sensible name for widgets.
7408         (console_type_create_glyphs_x): declare x_widget_border_width.
7409
7410         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7411         (struct Lisp_Image_Instance): add :vertically-justify and
7412         :horizontally-justify.
7413         (LAYOUT_JUSTIFY_TOP): new.
7414         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7415         (ROUND_UP): new macro. Round argument up to next integral
7416         interval.
7417
7418         * redisplay-output.c (redisplay_output_layout): misc formatting.
7419
7420         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7421
7422 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7423
7424         * XEmacs 21.4.9 "Informed Management" is released.
7425
7426 2002-08-19  Andy Piper  <andy@xemacs.org>
7427
7428         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7429         win32 format.
7430
7431         * realpath.c (xrealpath): normalize drive spec also so that dir
7432         sep chars are not mixed on cygwin.
7433
7434 2002-08-06  Jerry James  <james@xemacs.org>
7435
7436         * window.c (Fsplit_window): Count only half of the divider width
7437         against the left window when splitting horizontally. 
7438
7439 2002-06-24  Andy Piper  <andy@xemacs.org>
7440
7441         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7442         toolbar was cleared.
7443
7444         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7445         function. Split out from mswindows_output_frame_toolbars.
7446         (mswindows_output_frame_toolbars): move clear pieces to
7447         mswindows_output_frame_toolbars.
7448
7449         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7450         out from gtk_output_frame_toolbars.
7451         (gtk_output_frame_toolbars): move clear pieces to
7452         gtk_clear_frame_toolbars.
7453
7454         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7455         the frame is cleared. How this ever worked before is a mystery.
7456         (x_output_frame_toolbars): Only output toolbars.
7457         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7458
7459         * gutter.c (update_gutter_geometry):
7460         Mark frame layout changed.
7461         (update_frame_gutter_geometry, update_frame_gutters):
7462         Respect frame_layout_changed.
7463
7464         * console.h (struct console_methods): add
7465         clear_frame_toolbars_method.
7466
7467         * redisplay.c (redisplay_frame): call
7468         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7469
7470         * toolbar.h: declare update_frame_toolbars_geometry.
7471
7472         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7473         out from update_frame_toolbars.  Call clear_frame_toolbars.
7474         (update_frame_toolbars): only output, do not change geometry.
7475
7476         * redisplay.c: add frame_layout_changed.
7477
7478         * redisplay.h: add frame_layout_changed.
7479         (CLASS_RESET_CHANGED_FLAGS): set it.
7480         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7481         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7482         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7483
7484         * device.h (struct device): add frame_layout_changed.
7485         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7486
7487         * frame.h (struct frame): add frame_layout_changed.
7488         (MARK_FRAME_LAYOUT_CHANGED): new.
7489
7490 2002-06-30  Mike Alexander  <mta@arbortext.com>
7491
7492         * event-msw.c (mswindows_need_event): Don't wait for a new message
7493         if the queue is not empty.  Suggested by Paul Moore.
7494
7495 2002-06-12  Andy Piper  <andy@xemacs.org>
7496
7497         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7498         for printing on accurately.
7499
7500 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7501
7502         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7503         WM_ACTIVATE message. Make sure that the frame is visible if the
7504         window is visible. This seemss to fix the problem where XEmacs
7505         appears to freeze after switching desktops with certain virtual
7506         window managers.
7507         (debug_output_mswin_message): Added code to output message
7508         parameters for WM_WINDOWPOSCHANGED, 
7509         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7510
7511 2002-05-25  Andy Piper  <andy@xemacs.org>
7512
7513         * select-x.c (vars_of_select_x): Fix docstring of
7514         x-selection-strict-motif-ownership
7515
7516 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7517
7518         * keymap.c (get_keymap):
7519         Add comment about do_autoload GCPROs own args.
7520
7521 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7522
7523         * bytecode.c (execute_optimized_program): check_opcode ifdef
7524         ERROR_CHECK_BYTE_CODE.
7525
7526 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7527
7528         Thanks to Ben Wing and Michael Sperber.
7529
7530         * eval.c (Fcommand_execute):
7531         (Feval):
7532         (Ffuncall):
7533         (Fmacroexpand_internal):
7534         (function_argcount):
7535         callint.c (Fcall_interactively):
7536         Add comment about do_autoload GCPROs own args.
7537
7538         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7539
7540         * eval.c (Ffuncall): Extra braces to placate GCC.
7541
7542 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7543
7544         * backtrace.h (grow_specpdl):
7545         (SPECPDL_RESERVE):
7546         * EmacsFrame.c (EmacsFrameSetValues):
7547         * eval.c (grow_specpdl):
7548         * ExternalShell.c (hack_event_masks_1):
7549         * glyphs-x.c (convert_EImage_to_XImage): 
7550         (x_finalize_image_instance):
7551         * ralloc.c (page_size):
7552         (r_alloc_sbrk):
7553         * xgccache.c (gc_cache_hash):
7554         Fix unsigned comparison warnings.
7555
7556 2002-07-29  Jerry James  <james@xemacs.org>
7557
7558         * lread.c (locate_file): Any nonnegative return value indicates
7559         success if MODE is nonnegative.
7560
7561 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7562
7563         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7564         argument. 
7565
7566 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7567
7568         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7569
7570         * dumper.c (pdump_get_indirect_count):
7571         (pdump_scan_by_alignment):
7572         (pdump_dump_root_struct_ptrs):
7573         (pdump_dump_rtables):
7574         (pdump_dump_root_objects):
7575         (pdump):
7576         * nas.c (WaveOpenDataForReading):
7577         * fns.c (print_bit_vector):
7578         * font-lock.c (SINGLE_SYNTAX_STYLE):
7579         * glyphs.c (check_for_ignored_expose):
7580         (find_matching_subwindow):
7581         * glyphs-eimage.c:
7582         * imgproc.c (get_histogram):
7583         * redisplay.c (point_in_line_start_cache):
7584         * redisplay-output.c (redisplay_unmap_subwindows):
7585         * symbols.c (defsymbol_massage_name_1):
7586         (defkeyword_massage_name):
7587         (deferror_massage_name_and_message):
7588         * redisplay-x.c (x_output_string): 
7589         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7590         * frame.h (struct frame):
7591         * filelock.c (current_lock_owner):
7592         * doprnt.c (emacs_doprnt_1):
7593         * lisp.h (struct Lisp_Bit_Vector):
7594         (DO_REALLOC):
7595         Fix warnings.
7596
7597 2002-02-13  Ben Wing  <ben@xemacs.org>
7598
7599         * event-stream.c (reset_key_echo):
7600         * event-stream.c (reset_this_command_keys):
7601         * event-stream.c (execute_command_event):
7602         If console is dead as a result of C-x 5 0, then post-command stuff
7603         needs to be careful and do only non-console-specific stuff.
7604
7605 2002-07-01  Mike Sperber <mike@xemacs.org>
7606
7607         * process-unix.c (unix_send_process): Mark coding_outstream as
7608         non-open upon SIGPIPE.
7609
7610         * event-stream.c (Fnext_event): Reorder switch cases to something
7611         that makes sense.
7612
7613 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7614
7615         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7616         Don't bogusly reinitialize ascii_character property.
7617
7618 2002-07-08  Mike Sperber <mike@xemacs.org>
7619
7620         * process.c (Fstart_process_internal): Do error checking before we
7621         fork off the child, so the child can't muck with the state of the
7622         parent.
7623
7624 2002-07-08  Mike Sperber <mike@xemacs.org>
7625
7626         * ralloc.c (init_ralloc): Allocate properly for pdump.
7627
7628 2002-06-12  Andy Piper  <andy@xemacs.org>
7629
7630         * glyphs.c (query_string_geometry): check the string.
7631
7632         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7633         widget names.
7634
7635 2002-06-17  Jerry James  <james@xemacs.org>
7636
7637         * sysdll.c: Remove RTLD_GLOBAL initialization.
7638         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7639
7640 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7641
7642         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7643
7644 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7645
7646         * sysdep.c (sys_rename): Make sys_rename work for the case where
7647         Windows rename sets errno to EACCES if target file exists.
7648
7649 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7650
7651         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7652         Fix detection of metric units to work on Win95
7653
7654 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7655
7656         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7657
7658 2002-04-25  Andy Piper  <andy@xemacs.org>
7659
7660         * redisplay.c (create_text_block): Remove extra comment trailer.
7661
7662 2002-04-24  Andy Piper  <andy@xemacs.org>
7663
7664         * redisplay.c (create_text_block): Don't actually add propagation
7665         data if the line ends after we have added a glyph.
7666
7667 2002-04-22  Andy Piper  <andy@xemacs.org>
7668
7669         * extents.c (extent_fragment_update): check for glyphs we have
7670         previously displayed.
7671         * extents.c (print_extent_1): warning removal.
7672         * extents.h: change prototype.
7673         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7674         widths correctly for wide glyphs.
7675         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7676         * redisplay.c (prop_type): add PROP_GLYPH.
7677         * redisplay.c (struct prop_block): add glyph type
7678         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7679         to the propagation data.
7680         * redisplay.c (create_text_block): if there is a glyph in the
7681         propagation data use it to salt extent_fragment_update.
7682         * redisplay.c (create_string_text_block): ditto.
7683
7684 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7685
7686         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7687         * redisplay-output.c (compare_runes): Compare them.
7688         * redisplay.c: Update copyright date.
7689         * redisplay.c (pos_data): Add need_baseline_computation field.
7690         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7691         need_baseline_computation; zero yoffset. Set max_pixmap_height
7692         for all pixmaps, not just automatically positioned ones.
7693         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7694         * redisplay.c (calculate_baseline): New, compute textual baseline.
7695         * redisplay.c (add_glyph_rune): Call them.
7696         * redisplay.c (create_text_block): Likewise.
7697         * redisplay.c (create_overlay_glyph_block): Likewise.
7698         * redisplay.c (add_margin_runes): Likewise.
7699         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7700
7701         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7702         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7703         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7704         * redisplay-msw.c (mswindows_output_string): Likewise.
7705         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7706         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7707         * redisplay-x.c (x_output_display_block): Likewise.
7708
7709 2002-03-28  Ben Wing  <ben@xemacs.org>
7710
7711         * redisplay.c: Fixed bug in redisplay
7712         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7713         and down of the lines, since they're bigger than the line
7714         size. (It was seen most obviously when there's a horizontal scroll
7715         bar, e.g. do C-h a glyph or something like that.) The problem was
7716         that the glyph-contrib-p setting on glyphs was ignored even if it
7717         was set properly, which it wasn't until now.
7718
7719 2002-04-24  Andy Piper  <andy@xemacs.org>
7720
7721         * lisp.h (Dynarr_end): Fix definition.
7722
7723 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7724
7725         * redisplay.c (mark_redisplay): Remove call to
7726         update_frame_window_mirror.
7727
7728 2001-11-15  Andy Piper  <andy@xemacs.org>
7729
7730         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7731         cygwin (again).
7732
7733 2002-02-13  Andy Piper  <andy@xemacs.org>
7734
7735         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7736         we did in fact enqueue the XM_MAPFRAME event.
7737
7738 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7739
7740         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7741         to fix problem switching between virtual desktops under virtuawin
7742         virtual window manager.
7743
7744 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7745
7746         * event-msw.c: Typo fix.
7747         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7748         magic XM_MAPFRAME event has been sent.
7749
7750 2001-11-23  Andy Piper  <andy@xemacs.org>
7751
7752         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7753
7754 2001-11-21  Andy Piper  <andy@xemacs.org>
7755
7756         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7757         mouse events outside the frame.
7758
7759 2002-03-20  Andy Piper  <andy@xemacs.org>
7760
7761         * menubar-msw.c (mswindows_popup_menu): warning removal.
7762         * dialog-msw.c (dialog_popped_down): ditto.
7763
7764 2001-12-11  Andy Piper  <andy@xemacs.org>
7765
7766         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7767         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7768         popup_up_p.
7769         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7770         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7771         * menubar-msw.c (mswindows_popup_menu): ditto.
7772
7773 2001-10-29  Andy Piper  <andy@xemacs.org>
7774
7775         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7776         cancels.
7777
7778 2002-01-03  Andy Piper  <andy@xemacs.org>
7779
7780         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7781         letters.
7782         (xrealpath): ditto.
7783
7784 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7785
7786         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7787         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7788         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7789         Detect and handle case where machine is set up for metric units
7790
7791 2002-04-02  Andy Piper  <andy@xemacs.org>
7792
7793         * dired-msw.c (mswindows_get_files): 
7794         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7795         completely handled by XEmacs. Suggested by Thomas Vogler
7796         <mail@thomas-vogler.de>.
7797
7798 2001-11-14  Andy Piper  <andy@xemacs.org>
7799
7800         * nt.c (REG_ROOT): change registry key to XEmacs.
7801
7802 2002-04-27  Andy Piper  <andy@xemacs.org>
7803
7804         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7805
7806 2002-04-26  Andy Piper  <andy@xemacs.org>
7807
7808         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7809         behavior.
7810
7811 2002-03-14  Mike Alexander  <mta@arbortext.com>
7812
7813         * event-msw.c (mswindows_unwait_process): New, remove process from
7814         wait list
7815         * process-nt.c (nt_finalize_process_data): Call
7816         mswindows_unwait_process
7817         * console-msw.h: Declare mswindows_unwait_process
7818
7819 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7820
7821         * editfns.c (Fdecode_time):
7822         (Fformat_time_string):
7823         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7824         (make_time): Warning elimination (change arg name).
7825
7826 2001-11-24  Andy Piper  <andy@xemacs.org>
7827
7828         * window.c (Fsplit_window): Doc return type.
7829
7830 2002-04-01  Andy Piper  <andy@xemacs.org>
7831
7832         * emacs.c (Fkill_emacs): Only output message box in interactive
7833         mode.
7834
7835 2002-04-26  Andy Piper  <andy@xemacs.org>
7836  
7837         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7838         cygwin.
7839
7840 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7841
7842         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7843         bit platform.
7844
7845 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7846
7847         * XEmacs 21.4.8 "Honest Recruiter" is released.
7848
7849 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7850
7851         Supersedes 2002-04-17 patch.
7852
7853         * process.h (PROCESS_LIVE_P): Use the process status as
7854         evidence of health, not the state of the input stream.
7855         (PROCESS_READABLE_P): Say if the process is readable
7856         from. (It may be dead nonetheless.)
7857         (CHECK_READABLE_PROCESS): Test for that condition.
7858
7859         * process.c (create_process): Use PROCESS_READABLE_P.
7860         (read_process_output, set_process_filter): Likewise.
7861
7862         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7863         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7864
7865         This code is #if 0'd, this is not the time to add new functions:
7866
7867         * process.c (Fprocess_readable_p): Report readability status.
7868         * process.c (Qprocess_readable_p): New, associated symbol...
7869         * process.c (syms_of_process): ... initialize it.
7870
7871 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7872
7873         * XEmacs 21.4.7 "Economic Science" is released.
7874
7875 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7876
7877         * process.h (PROCESS_LIVE_P): Use the process status as
7878         evidence of health, not the state of the input stream.
7879
7880 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7881
7882         * sysdep.c (sys_siglist): change "signum" to "signal"
7883
7884 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7885
7886         * s/darwin.h: New file.
7887         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7888         
7889 2002-04-23  Andreas Jaeger  <aj@suse.de>
7890
7891         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7892         which use lib64 for 64-bit libs.
7893         (START_FILES): Likewise.
7894
7895 2002-02-11  Mike Sperber  <mike@xemacs.org>
7896
7897         * device-x.c: 
7898         (x_IO_error_handler):
7899         (x_init_device): Temporarily keep device in static variable
7900         `device_being_initialized' so we can recover gracefully from
7901         internal XOpenDevice failure.  (XOpenDevice is documented to
7902         return NULL on failure, but sometimes calls the IO error handler
7903         instead.)
7904
7905 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7906
7907         * dired.c (Ffile_name_all_completions): Change documentation --
7908         remove reference to completion-ignored-extensions.
7909         * dired.c (vars_of_dired): Change documentation for
7910         completion-ignored-extensions -- remove reference to
7911         file-name-all-completions.
7912
7913 2002-03-06  Jerry James  <james@xemacs.org>
7914
7915         * emodules.c (emodules_load): Fix multiple loading of same module.
7916
7917 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7918         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7919         RTLD_LAZY to avoid incorrect symbol binding when using nested
7920         shared libraries on Solaris.
7921
7922 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7923
7924         * fileio.c (Ffind_file_name_handler): Improve docstring.
7925
7926 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7927
7928         * fns.c (Fmapconcat): Improve docstring.
7929
7930 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7931
7932         * device-gtk.c: Add prototype for
7933         emacs_gtk_selection_clear_event_handle.
7934         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7935         selection.  Setup signal handler for "selection_clear_event"
7936         (emacs_gtk_selection_clear_event_handle).
7937
7938         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7939         other applications owning the clipboard (based on
7940         x_handle_selection_clear).
7941
7942 2001-12-23  William M. Perry  <wmperry@gnu.org>
7943
7944         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7945         
7946 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7947
7948         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7949
7950 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7951
7952         * XEmacs 21.4.6 "Common Lisp" is released.
7953
7954 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7955
7956         * search.c (Freplace_match): Add missing sub-expression functionality.
7957
7958         * buffer.c (decode_buffer): Add a check for pointer type to
7959         decode_buffer, before gcc's CSE optimization reorders a
7960         dereference in front of the allow_string test.
7961
7962 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7963
7964         * window.c (window_loop): Fix bug that sometimes prevented
7965         window_loop() from iterating across multiple devices.  Also, at
7966         Ben's request, changed infloop-detecting code to abort() instead
7967         of silently terminating window_loop().
7968
7969 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7970
7971         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7972         * editfns.c (make_time): New function.
7973         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7974         * lisp.h (make_time): Prototype and comment it.
7975         * dired.c (wasteful_word_to_lisp): Deprecate.
7976         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7977
7978 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7979
7980         * fileio.c (auto_save_1): Use current coding system, not
7981         escape-quoted.
7982
7983 2001-11-13  Ben Wing  <ben@xemacs.org>
7984
7985         * window.c:
7986         * window.c (window_truncation_on):
7987         * window.c (syms_of_window):
7988         truncate-partial-width-windows should respect the buffer being
7989         displayed, like other redisplay vars.
7990
7991 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7992
7993         * event-stream.c (Fread_key_sequence): save current buffer.
7994
7995 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7996
7997         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7998
7999 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8000
8001         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8002
8003 2001-10-26  Mike Alexander  <mta@arbortext.com>
8004
8005         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8006
8007 2001-10-25  Andy Piper  <andy@xemacs.org>
8008
8009         * ChangeLog:
8010         * dialog-msw.c (handle_directory_proc): new function.
8011          (handle_directory_dialog_box): new fucntion.
8012          (handle_file_dialog_box): use new directory dialog support.
8013          (mswindows_make_dialog_box_internal): ditto.
8014         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8015         handling.
8016         (mswindows_find_frame): make global.
8017         * fileio.c (Fexpand_file_name): build fix.
8018         * general-slots.h: add Qdirectory.
8019         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8020         handling.
8021         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8022         cygwin not leaving win32 paths unchanged.
8023         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8024         cygwin runtime to do path conversion.
8025         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8026         (syms_of_win32): add new function.
8027         * window.c (window_loop): build fix.
8028
8029 2001-10-15  Andy Piper  <andy@xemacs.org>
8030
8031         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8032
8033 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8034
8035         * XEmacs 21.4.5 "Civil Service" is released.
8036
8037 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8038
8039         * glyphs-x.c: Force buffer-tab highlight update when moving the
8040         buffer, avoiding an ugly black border, used for keyboard focus
8041         indication, on a widget that can never have keyboard focus, the
8042         buffer tab.
8043
8044 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8045
8046         * process-unix.c (unix_open_multicast_group): Remove too much
8047         conversion between host and network byte order.
8048
8049 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8050
8051         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8052         before replacing them.
8053
8054         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8055         operation.
8056
8057         * src/window.c (undedicate_windows): Use it.
8058         * src/window.h: Add prototype.
8059
8060 2001-09-17  Ben Wing  <ben@xemacs.org>
8061
8062         * fileio.c (normalize_filename):
8063         * fileio.c (Fexpand_file_name):
8064         Fix various C++ compile errors in Andy's recent code.
8065         
8066         * callint.c (Fcall_interactively):
8067         * editfns.c (Ftemp_directory):
8068         * editfns.c (Fuser_full_name):
8069         * emacs.c (argmatch):
8070         * lread.c (locate_file_map_suffixes):
8071         * redisplay-x.c (x_ring_bell):
8072         Fix sign-compare warnings.
8073         
8074 2001-09-08  Andy Piper  <andy@xemacs.org>
8075
8076         * fileio.c (normalize_filename): copied from nt.c
8077         * (Ffile_name_directory): enable win32 paths under cygwin.
8078         * (Ffile_name_nondirectory): ditto.
8079         * (directory_file_name): ditto.
8080         * (Fexpand_file_name): ditto.
8081         * (Ffile_truename): ditto.
8082         * (Fsubstitute_in_file_name): ditto.
8083         * (Ffile_name_absolute_p): ditto.
8084         * (Ffile_readable_p): ditto.
8085
8086 2001-09-08  Andy Piper  <andy@xemacs.org>
8087
8088         * device-msw.c (mswindows_finish_init_device): remove dde
8089         initialization.
8090         * device-msw.c (mswindows_init_dde): factor out from
8091         mswindows_finish_init_device()
8092         * device-msw.c (init_mswindows_very_early): new function
8093         initialize but don't enable dde.
8094         * emacs.c (main_1): call init_mswindows_very_early.
8095         * event-msw.c:
8096         * event-msw.c (mswindows_dde_callback): only execute when we are
8097         ready.
8098         * symsinit.h: declare init_mswindows_very_early.
8099
8100 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8101
8102         [sjt: This has been in 21.5 for months with no complaints.]
8103
8104         * console.h (struct console_methods): Added flags member.
8105         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8106         (CONMETH_IMPL_FLAG):
8107         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8108         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8109
8110         * device.c (window_system_pixelated_geometry): Use the above macros.
8111
8112         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8113         implememntation flag.
8114         * device.h (DEVICE_DISPLAY_P): Use it.
8115
8116         * frame.c (delete_frame_internal): Use the above macro.
8117
8118         * redisplay.c (redisplay_device): Use it.
8119         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8120         (redisplay_frame): Ditto.
8121
8122         * device-msw.c (mswindows_device_implementation_flags): Removed.
8123         (msprinter_device_implementation_flags): Removed.
8124         (console_type_create_device_mswindows): Removed references to
8125         implementation_flags methods, set implementation flags here.
8126         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8127
8128         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8129         (console_type_create_device_gtk): Removed method declaration.
8130         Added commented out statement which semantically matches the
8131         commented out statement in the above removed method.
8132
8133 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8134
8135         The attached patch fixes a few warnings. 
8136
8137         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8138         * src/frame-gtk.c: guard against GNOME calls in GTK only
8139         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8140         * src/select-gtk.c: prototype lisp_to_time
8141
8142 2001-06-08  Ben Wing  <ben@xemacs.org>
8143
8144         ------ gc-in-window-procedure fixes ------
8145         
8146         * alloc.c:
8147         * alloc.c (struct post_gc_action):
8148         * alloc.c (register_post_gc_action):
8149         * alloc.c (run_post_gc_actions):
8150         * alloc.c (garbage_collect_1):
8151         Create "post-gc actions", to avoid those dreaded "GC during window
8152         procedure" problems.
8153
8154         * event-msw.c:
8155         Abort, clean and simple, when GC in window procedure.  We want
8156         to flush these puppies out.
8157
8158         * glyphs-msw.c:
8159         * glyphs-msw.c (finalize_destroy_window):
8160         * glyphs-msw.c (mswindows_finalize_image_instance):
8161         Use a post-gc action when destroying subwindows.
8162
8163         * lisp.h:
8164         Declare register_post_gc_action().
8165
8166         * scrollbar-msw.c:
8167         * scrollbar-msw.c (unshow_that_mofo):
8168         Use a post-gc action when unshowing scrollbar windows, if in gc.
8169
8170         * redisplay.c (mark_redisplay):
8171         Add comment about the utter evilness of what's going down here.
8172
8173         ------ cygwin setitimer fixes ------
8174         
8175         * Makefile.in.in (sheap_objs):
8176         * Makefile.in.in (profile_objs):
8177         * Makefile.in.in (objs):
8178         Compile profile.c only when HAVE_SETITIMER.
8179         
8180         * nt.c (mswindows_sigset):
8181         * nt.c (mswindows_sighold):
8182         * nt.c (mswindows_sigrelse):
8183         * nt.c (mswindows_sigpause):
8184         * nt.c (mswindows_raise):
8185         * nt.c (close_file_data):
8186         Style fixes.
8187         
8188         * nt.c:
8189         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8190         
8191         * profile.c:
8192         * profile.c (Fstart_profiling):
8193         * profile.c (Fstop_profiling):
8194         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8195         instead of just plain setitimer().
8196         
8197         * signal.c:
8198         * signal.c (set_one_shot_timer):
8199         * signal.c (alarm):
8200         Define qxe_setitimer() as an encapsulation around setitimer() --
8201         call setitimer() directly unless Cygwin or MS Win, in which case
8202         we use our simulated version in win32.c.
8203         
8204         * systime.h:
8205         * systime.h (struct itimerval):
8206         * systime.h (ITIMER_REAL):
8207         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8208         comment about "qxe" and the policy regarding encapsulation.
8209
8210         * win32.c:
8211         * win32.c (setitimer_helper_proc):
8212         * win32.c (setitimer_helper_period):
8213         * win32.c (setitimer_helper):
8214         * win32.c (mswindows_setitimer):
8215         Move setitimer() emulation here, so Cygwin can use it.
8216         Rename a couple of functions and variables to be longer and more
8217         descriptive.  In setitimer_helper_proc(), send the signal
8218         using either mswindows_raise() or (on Cygwin) kill().  If for
8219         some reason we are still getting lockups, we'll change the kill()
8220         to directly invoke the signal handlers.
8221
8222         ------ windows shell fixes ------
8223         
8224         * callproc.c:
8225         * ntproc.c:
8226         Comments about how these two files must die.
8227
8228         * callproc.c (init_callproc):
8229         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8230         not just COMSPEC. (more correct and closer to FSF.) Don't
8231         force a value for SHELL into the environment. (Comments added
8232         to explain why not.)
8233         
8234         * nt.c (init_user_info):
8235         Don't shove a fabricated SHELL into the environment.  See above.
8236
8237 2001-06-01  Ben Wing  <ben@xemacs.org>
8238
8239         * Makefile.in.in (ldflags):
8240         eliminate that pesky "defaulting to 00401000" warning.
8241         * nt.h:
8242         eliminate warnings.
8243
8244 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8245
8246         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8247         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8248
8249 2001-04-24  Jerry James <james@xemacs.org>
8250
8251         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8252         correct order.
8253
8254 2001-06-01  Ben Wing  <ben@xemacs.org>
8255
8256         * event-msw.c (debug_mswin_messages):
8257         conditionalize the messages that were causing compile errors.
8258         (if only macros could generate #ifdef statements ...)
8259
8260 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8261
8262         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8263
8264 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8265
8266         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8267
8268 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8269
8270         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8271         * process-unix.c (unix_canonicalize_host_name):
8272         sysdep.c (init_system_name):
8273         Use it to conditionally support IPv6 canonicalization.
8274
8275 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8276
8277         * event-msw.c:
8278         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8279
8280 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8281
8282         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8283         attempt is made to scroll when no scroll bar is available.
8284
8285 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8286
8287         * input-method-motif.c (XIM_delete_frame): New callback.
8288         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8289         got deleted from 21.4.3.)
8290
8291 2001-06-01  Ben Wing  <ben@xemacs.org>
8292
8293         * nt.c (mswindows_utime):
8294         * nt.c (close_file_data):
8295         fix off-by-one-indirection error.
8296
8297 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8298
8299         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8300         because set_file_times() now takes Lisp_Object path, instead of
8301         char*.
8302         * nt.c: Include buffer.h.
8303         * nt.c (convert_from_time_t): New.
8304         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8305         not set mtime correctly.
8306         * nt.h: Declare mswindows_utime().
8307         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8308         path, instead of char*.
8309         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8310
8311 2001-05-30  Ben Wing  <ben@xemacs.org>
8312
8313         For 21.4:
8314
8315         (Stephen, just take all event-msw.c patches.  This includes
8316         the "iconify" fix below.)
8317
8318         * event-msw.c:
8319         * event-msw.c (mswindows_dequeue_dispatch_event):
8320         * event-msw.c (assert):
8321         * event-msw.c (emacs_mswindows_quit_p):
8322         * event-msw.c (debug_mswin_messages):
8323         * event-msw.c (debug_output_mswin_message):
8324         * event-msw.c (vars_of_event_mswindows):
8325         Fix yet more problems with C-g handling.
8326         Implement debug-mswindows-events.
8327         
8328 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8329
8330         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8331         
8332 2001-05-23  Ben Wing  <ben@xemacs.org>
8333
8334         * event-msw.c (winsock_writer):
8335         * event-msw.c (winsock_closer):
8336         prior kludgy code was clobbering the buffer, thinking it was
8337         "unused" space to store an unneeded return value; instead, use
8338         the variable we've already got staring us in the face.
8339
8340 2001-05-17  Andy Piper  <andy@xemacs.org>
8341
8342         * sysfile.h: don't assume that file attributes are boolean
8343
8344 2001-05-23  Ben Wing  <ben@xemacs.org>
8345
8346         * device-msw.c (msprinter_init_device):
8347         signal an error rather than crash with an unavailable network
8348         printer (from Mike Alexander).
8349         
8350         * event-msw.c:
8351         * event-msw.c (struct winsock_stream):
8352         * event-msw.c (winsock_writer):
8353         * event-msw.c (winsock_closer):
8354         * event-msw.c (make_winsock_stream_1):
8355         cleanup headers.  fix (hopefully) an error with data corruption
8356         when sending to a network connection.
8357
8358         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8359         to handle the ~user prefix by (a) always assuming we're referencing
8360         ourselves and not even verifying the user -- hence any file with
8361         a tilde as its first char is invalid! (b) if there wasn't a slash
8362         following the filename, the pointer was set *past* the end of
8363         file and we started reading from uninitialized memory.  Now we
8364         simply treat these as files, always.
8365
8366         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8367         
8368 2001-05-19  Ben Wing  <ben@xemacs.org>
8369
8370         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8371
8372         * process-nt.c:
8373         * process-nt.c (vars_of_process_nt):
8374         remove unused mswindows-quote-process-args.  rec for 21.4.
8375         
8376 2001-05-12  Ben Wing  <ben@xemacs.org>
8377
8378         * event-msw.c (mswindows_dde_callback):
8379         * event-msw.c (mswindows_wnd_proc):
8380         eliminate cygwin warnings.
8381
8382 2001-05-06  Ben Wing  <ben@xemacs.org>
8383
8384         * console-msw.h:
8385         * device-msw.c:
8386         * device-msw.c (print_dialog_worker):
8387         * device-msw.c (mswindows_handle_print_dialog_box):
8388         * device-msw.c (syms_of_device_mswindows):
8389         * dialog-msw.c (mswindows_make_dialog_box_internal):
8390         * general-slots.h:
8391         implement printing the selection when it's selected.
8392
8393 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8394
8395         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8396
8397 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8398
8399         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8400         EMACS_INT is signed.
8401
8402 2001-04-15  Michael Lausch  <mla@1012surf.net>
8403
8404         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8405         gtk_widget_request_size() to give scrollbar >0 width for
8406         GTK >1.2.8.
8407
8408 2001-05-30  William M. Perry  <wmperry@gnu.org>
8409
8410         * event-gtk.c: Check for buttons as modifier keys.
8411
8412 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8413
8414         * s\mingw32.h:
8415         Properly find MinGW's <process.h> inside Cygwin's restructured
8416         include directories.  Don't try to include <cygwin/version.h>
8417         since we are dropping support for MinGW in versions of Cygwin
8418         earlier than b21.
8419         * nt.c:
8420         Drop support for MinGW in versions of Cygwin before b21.
8421         * sysdep.c:
8422         Properly find MinGW's <process.h> inside Cygwin's restructured
8423         include directories.
8424         * syswindows.h:
8425         Drop support for MinGW in versions of Cygwin before b21.
8426         * unexcw.c:
8427         Even though a.out.h is no longer detected by configure, allow
8428         MinGW to use it until we figure out how to do the job with Win32.
8429
8430 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8431
8432         * syntax.c (find_start_of_comment):
8433         Fix `unbalanced parentheses' bug when dealing with mixed comment
8434         styles in c++/java/etc. mode
8435
8436 2001-05-29  Mike Alexander  <mta@arbortext.com>
8437
8438         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8439         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8440
8441 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8442
8443         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8444
8445 2001-03-31  Mike Sperber <mike@xemacs.org>
8446
8447         * search.c (Freplace_match): Support FSF-style specification of
8448         match subexpression when applied to a buffer.
8449
8450 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8451
8452         * event-stream.c (is_scrollbar_event): add missing semicolon
8453
8454 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8455
8456         * Makefile.in.in: Use TAR macro instead of hardcoding
8457           tar.  Allows use of GNU tar instead of system tar
8458
8459 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8460
8461         * event-stream.c (is_scrollbar_event): add missing semicolon
8462
8463 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8464
8465         * XEmacs 21.4.3 "Academic Rigor" is released.
8466
8467 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8468
8469         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8470
8471 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8472
8473         * buffer.c (Vcase_fold_search): Remove obsolete
8474           comment about non ASCII case-fold-search.  This
8475           bug has been fixed by case-table changes.
8476
8477 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8478
8479         * event-msw.c: Restore include of events-mod.h.
8480
8481 2001-04-22   zhaoway  <zw@debian.org>
8482
8483         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8484         !HAVE_SCROLLBARS.
8485
8486 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8487
8488         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8489
8490 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8491
8492         * mule-charset.c (Fmake_charset): Add missing else.
8493
8494 2001-04-23  Ben Wing  <ben@xemacs.org>
8495
8496         * event-msw.c (FAKE_MOD_QUIT):
8497         * event-msw.c (mswindows_dequeue_dispatch_event):
8498         * event-msw.c (mswindows_wnd_proc):
8499         * event-msw.c (emacs_mswindows_quit_p):
8500         Get critical quit working.
8501
8502 2001-05-05  Ben Wing  <ben@xemacs.org>
8503
8504         * console-msw.h:
8505         * device-msw.c:
8506         * device-msw.c (mswindows_get_default_margin):
8507         * frame-msw.c (mswindows_size_frame_internal):
8508         * frame-msw.c (msprinter_init_frame_1):
8509         * frame-msw.c (vars_of_frame_mswindows):
8510         Change top/bottom margin defaults to 0.5 inches.
8511
8512 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8513
8514         Fix link error with gcc 3.0 on Linux.
8515         * terminfo.c (UP): Remove.
8516         * terminfo.c (BC): Remove.
8517         * terminfo.c (PC): Remove.
8518         They weren't used, and in any case, these symbols should be
8519         defined in the *library*.
8520
8521 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8522
8523         * s/aix4.h: Fix crash with xlc -O3.
8524         Improve comment explaining how -O3 works.
8525
8526 2001-04-15  Ben Wing  <ben@xemacs.org>
8527
8528         * event-stream.c:
8529         * event-stream.c (Fnext_event):
8530         * event-stream.c (is_scrollbar_event):
8531         * event-stream.c (execute_command_event):
8532         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8533         crash' problem.  His fix introduces other problems.  We filter
8534         out scrollbar events specifically, making them somewhat invisible
8535         to command-building, and not appearing in `this-command-keys'.
8536         More work is still needed (see comments in event-stream.c), but
8537         this fixes all the major problems.
8538
8539 2001-04-20  Ben Wing  <ben@xemacs.org>
8540
8541         * .cvsignore: Added stuff for Windows.
8542
8543 2001-04-28  Ben Wing  <ben@xemacs.org>
8544
8545         * buffer.c (Ferase_buffer):
8546         * editfns.c (buffer_insert1):
8547         * editfns.c (Finsert_before_markers):
8548         * editfns.c (Finsert_string):
8549         * editfns.c (Finsert_char):
8550         * editfns.c (Fdelete_region):
8551         * editfns.c (Fwiden):
8552         * editfns.c (Fnarrow_to_region):
8553         remove bogus lines setting zmacs_region_stays to 0.
8554         
8555 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8556
8557         * process-unix.c (unix_open_network_stream): If connect() fails
8558         invalidate file descriptor after closing it.
8559
8560 2001-03-08  Mike Alexander  <mta@arbortext.com>
8561
8562         * event-msw.c (mswindows_need_event_in_modal_loop):
8563         Don't dispatch a message if we didn't get one.
8564         (mswindows_need_event):
8565         Terminate the correct process when one exits instead of the first
8566         one on Vprocess_list and look for process termination when in
8567         mswindows_protect_modal_loop.
8568
8569 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8570
8571         * XEmacs 21.4.1 "Copyleft" is released.
8572
8573 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8574
8575         * input-method-motif.c (XIM_delete_frame): New callback.
8576         (XIM_init_frame): Register it.
8577
8578 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8579
8580         * XEmacs 21.4.0 "Solid Vapor" is released.
8581
8582 2001-04-15  Ben Wing  <ben@xemacs.org>
8583
8584         * cmdloop.c (call_command_loop):
8585         Fix braino in bit-rotting code.
8586         
8587 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8588
8589         * extents.c (Fset_extent_endpoints): Force creation of extent info
8590         in buffer_or_string.
8591
8592         * extents.c (process_extents_for_insertion_mapper): Correctly
8593         check for open-open zero-length extents.
8594
8595 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8596
8597         * lisp.h: New typedefs Memory_count, Element_count.
8598         * regex.c:
8599         * regex.h:
8600         Sign-compare warning elimination: several unsigned -> signed.
8601         Based on work by Ben Wing <ben@xemacs.org>.
8602
8603 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8604
8605         * XEmacs 21.2.47 "Zephir" is released.
8606
8607 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8608
8609         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8610
8611 2001-04-03  Mike Sperber <mike@xemacs.org>
8612
8613         * search.c: Revert previous patch due because of release.
8614
8615 2001-03-30  Ben Wing  <ben@xemacs.org>
8616
8617         * s\cygwin32.h:
8618         Add missing killpg prototype.
8619
8620         * elhash.c:
8621         Add a comment about fixing problems when a new entry is added
8622         while mapping.
8623
8624         * frame-msw.c (mswindows_init_frame_1):
8625         Fix compile warnings.
8626
8627         * menubar.c (vars_of_menubar):
8628         Provide `menu-accelerator-support' to indicate that we properly
8629         support %_ in menu specifications, so that package code can
8630         conditionalize on this (and remove %_ from menu specifications
8631         on older versions).
8632
8633         * event-msw.c:
8634         * scrollbar-msw.c:
8635         * scrollbar-msw.c (can_scroll):
8636         * scrollbar-msw.h:
8637         Fix handling of mouse wheel under Windows to follow standards --
8638         now scrolls window under pointer, not selected window.
8639
8640 2001-03-31  Mike Sperber <mike@xemacs.org>
8641
8642         * search.c (Freplace_match): Support FSF-style specification of
8643         match subexpression when applied to a buffer.
8644
8645 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8646
8647         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8648         function to modify KEYMAP, so map over a copy of the hash table.
8649
8650 2001-03-21  Martin Buchholz <martin@xemacs.org>
8651
8652         * XEmacs 21.2.46 "Urania" is released.
8653
8654 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8655
8656         * realpath.c (xrealpath): Make file-truename work with symlinks to
8657         /cygdrive paths on cygwin. Always lowercase drive-letters on
8658         native windows.
8659         (cygwin_readlink): Don't try to find canonical filename unless
8660         file exists.
8661
8662 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8663
8664         * ChangeLog: Log GTK merge.
8665
8666         * dumper.c:
8667         * select-x.c:
8668         * specifier.c:
8669         * symeval.h:
8670         Revert gratuitous whitespace changes from GTK merge.
8671
8672         * emacs.c: Document end of complex #ifdef @ l. 1495.
8673
8674
8675 2001-03-12  Andy Piper  <andy@xemacs.org>
8676
8677         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8678         have to do likewise.
8679
8680 2001-03-12  Andy Piper  <andy@xemacs.org>
8681
8682         * sysdep.c: we only support mingw now.
8683
8684 2001-03-09  Andy Piper  <andy@xemacs.org>
8685
8686         * unexcw.c (copy_executable_and_dump_data_section): making approx
8687         overrun a warning only.
8688
8689 2001-03-10  William M. Perry  <wmperry@aventail.com>
8690
8691         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8692         satisfy Stephen's identical-after-cpp plea.
8693
8694 2001-03-02  Ben Wing  <ben@xemacs.org>
8695
8696         * cmds.c:
8697         * cmds.c (Fforward_char):
8698         * syntax.c:
8699         * window.c:
8700
8701         Augment documentation of the most common motion commands to make
8702         note of the shifted-motion support.
8703         
8704 2001-03-02  Ben Wing  <ben@xemacs.org>
8705
8706         * nt.c (mswindows_fstat):
8707         * nt.c (mswindows_stat):
8708         * search.c (boyer_moore):
8709         Fix compile warnings under Windows.
8710         
8711         * sysdep.c (sys_readdir):
8712         Fix buggy filename-conversion code under Mule.
8713
8714 2001-03-09  William M. Perry  <wmperry@aventail.com>
8715
8716         * Makefile.in.in:
8717         * config.h.in:
8718         * console.c:
8719         * console.h:
8720         * device.c:
8721         * device.h:
8722         * dragdrop.c:
8723         * emacs.c:
8724         * event-stream.c:
8725         * events.c:
8726         * events.h:
8727         * faces.c:
8728         * frame.h:
8729         * general-slots.h:
8730         * glyphs.c:
8731         * gutter.c:
8732         * inline.c:
8733         * lisp.h:
8734         * lrecord.h:
8735         * make-src-depend:
8736         * redisplay-output.c:
8737         * redisplay.c:
8738         * symsinit.h:
8739         * sysfile.h:
8740         * toolbar.c:
8741         * window.c:
8742         The Great GTK Merge.
8743
8744         * ChangeLog.GTK:
8745         * console-gtk.c:
8746         * console-gtk.h:
8747         * device-gtk.c:
8748         * emacs-marshals.c:
8749         * emacs-widget-accessors.c:
8750         * event-gtk.c:
8751         * frame-gtk.c:
8752         * gccache-gtk.c:
8753         * gccache-gtk.h:
8754         * glade.c:
8755         * glyphs-gtk.c:
8756         * glyphs-gtk.h:
8757         * gtk-glue.c:
8758         * gtk-xemacs.c:
8759         * gtk-xemacs.h:
8760         * gui-gtk.c:
8761         * gui-gtk.h:
8762         * menubar-gtk.c:
8763         * native-gtk-toolbar.c:
8764         * objects-gtk.c:
8765         * objects-gtk.h:
8766         * redisplay-gtk.c:
8767         * scrollbar-gtk.c:
8768         * scrollbar-gtk.h:
8769         * select-gtk.c:
8770         * toolbar-gtk.c:
8771         * ui-byhand.c:
8772         * ui-gtk.c:
8773         * ui-gtk.h:
8774         The Great GTK Merge: new files.
8775
8776 2001-02-26  Ben Wing  <ben@xemacs.org>
8777
8778         Reapplied Lstream change.
8779
8780 2001-02-26  Ben Wing  <ben@xemacs.org>
8781
8782         Undid the last change, since it is more controversial than I
8783         thought.  It should be back in at some point soon.
8784         
8785 2001-02-25  Ben Wing  <ben@xemacs.org>
8786
8787         * buffer.c:
8788         * callproc.c (Fold_call_process_internal):
8789         * event-msw.c (ntpipe_slurp_reader):
8790         * event-msw.c (ntpipe_shove_writer):
8791         * event-msw.c (winsock_reader):
8792         * event-msw.c (winsock_writer):
8793         * file-coding.c:
8794         * file-coding.c (detect_eol_type):
8795         * file-coding.c (detect_coding_type):
8796         * file-coding.c (determine_real_coding_system):
8797         * file-coding.c (Fdetect_coding_region):
8798         * file-coding.c (decoding_reader):
8799         * file-coding.c (decoding_writer):
8800         * file-coding.c (mule_decode):
8801         * file-coding.c (Fdecode_coding_region):
8802         * file-coding.c (encoding_reader):
8803         * file-coding.c (encoding_writer):
8804         * file-coding.c (mule_encode):
8805         * file-coding.c (Fencode_coding_region):
8806         * file-coding.c (detect_coding_sjis):
8807         * file-coding.c (decode_coding_sjis):
8808         * file-coding.c (encode_coding_sjis):
8809         * file-coding.c (detect_coding_big5):
8810         * file-coding.c (decode_coding_big5):
8811         * file-coding.c (encode_coding_big5):
8812         * file-coding.c (detect_coding_ucs4):
8813         * file-coding.c (decode_coding_ucs4):
8814         * file-coding.c (encode_coding_ucs4):
8815         * file-coding.c (detect_coding_utf8):
8816         * file-coding.c (decode_coding_utf8):
8817         * file-coding.c (encode_coding_utf8):
8818         * file-coding.c (detect_coding_iso2022):
8819         * file-coding.c (decode_coding_iso2022):
8820         * file-coding.c (encode_coding_iso2022):
8821         * file-coding.c (decode_coding_no_conversion):
8822         * file-coding.c (encode_coding_no_conversion):
8823         * glyphs-x.c (write_lisp_string_to_temp_file):
8824         * gpmevent.c (tty_get_foreign_selection):
8825         * lisp.h:
8826         * lstream.c:
8827         * lstream.c (Lstream_flush_out):
8828         * lstream.c (Lstream_adding):
8829         * lstream.c (Lstream_write_1):
8830         * lstream.c (Lstream_write):
8831         * lstream.c (Lstream_raw_read):
8832         * lstream.c (Lstream_read_more):
8833         * lstream.c (Lstream_read):
8834         * lstream.c (Lstream_unread):
8835         * lstream.c (Lstream_fputc):
8836         * lstream.c (stdio_reader):
8837         * lstream.c (stdio_writer):
8838         * lstream.c (filedesc_reader):
8839         * lstream.c (filedesc_writer):
8840         * lstream.c (lisp_string_reader):
8841         * lstream.c (struct fixed_buffer_stream):
8842         * lstream.c (make_fixed_buffer_input_stream):
8843         * lstream.c (make_fixed_buffer_output_stream):
8844         * lstream.c (fixed_buffer_reader):
8845         * lstream.c (fixed_buffer_writer):
8846         * lstream.c (struct resizing_buffer_stream):
8847         * lstream.c (resizing_buffer_writer):
8848         * lstream.c (dynarr_writer):
8849         * lstream.c (lisp_buffer_reader):
8850         * lstream.c (lisp_buffer_writer):
8851         * lstream.h:
8852         * lstream.h (lstream_implementation):
8853         * lstream.h (struct lstream):
8854         * md5.c (Fmd5):
8855         * process-nt.c (nt_send_process):
8856         * process-unix.c (unix_send_process):
8857         
8858         Correct Lstream lossage due to mixing of signed and unsigned
8859         quantities.  All Lstream uses of size_t and ssize_t are now a
8860         single signed data type Lstream_data_count.  This fixes problems
8861         under Windows with sending large quantities of data to a process,
8862         and may well fix other subtle bugs.
8863
8864 2001-02-23  Martin Buchholz <martin@xemacs.org>
8865
8866         * XEmacs 21.2.45 "Thelxepeia" is released.
8867
8868 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8869
8870         * lisp-union.h (XSETINT): 
8871         (XSETCHAR):
8872         (XSETOBJ): 
8873         Reverse previous change of 2001-02-06.
8874
8875 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8876
8877         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8878         buffers.
8879         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8880         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8881         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8882         * regex.c (POS_AS_IN_BUFFER): removed
8883         * regex.c (re_search_2):
8884         * regex.c (re_match_2):
8885         Don't use an offset of 1 when calculating buffer positions, since
8886         `BI_BUF_BEGV' does it already.
8887
8888 2001-02-18  Wim Dumon  <wim@easics.be>
8889
8890         * insdel.c (prepare_to_modify_buffer): Also check for
8891         supersession when clash-detection is enabled. 
8892
8893 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8894
8895         * regex.c (re_match_2_internal):
8896         Convert temp characters from 'const unsigned char' to 're_char'.
8897         Fix crashing bug with extended characters under mule.
8898         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8899         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8900         font-lock, pdump, and new syntax-table code.
8901         * syntax.c (find_start_of_comment):
8902         (find_end_of_comment):
8903         (forward-comment):
8904         Fix crashing bugs involving moving beyond end of buffer.
8905         * syntax.c (find_start_of_comment):
8906         Fixed logic to allow proper detection of cases where the same
8907         character is used to end both a two-char comment start and a
8908         two-char comment end sequence. Fixes `(forward-comment -1)'.
8909         * syntax.c (find_start_of_comment):
8910         Return position just past last comment-end character for all cases
8911         (previously was only done for two-char comment-end sequences).
8912         * syntax.c (forward-comment):
8913         Take value returned from `find_end_of_comment', rather than
8914         incrementing it.
8915         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8916         Properly deal with BUFFERP (syntax_cache.object)
8917
8918 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8919
8920         * alloc.c (Fgarbage_collect): 
8921         * alloc.c (make_bit_vector_from_byte_vector):
8922         -Wsign-compare-correctness.
8923
8924 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8925
8926         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8927         (XSETCHAR): Likewise.
8928         (XSETOBJ): Likewise.
8929
8930 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8931
8932         * mule-canna.c (canna-func-delete_previous): 
8933         Rename to canna-func-delete-previous.
8934
8935 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8936
8937         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8938
8939 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8940
8941         * font-lock.c (find_context): Fix C++ compile errors introduced by
8942         recent patch
8943
8944 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8945
8946         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8947         pragma, but earlier ones barf on the same pragma.
8948
8949 2001-02-06  Mike Sperber <mike@xemacs.org>
8950
8951         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8952         `configure-mule-lisp-directory'.
8953
8954 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8955
8956         Make sure dump-id.c is compiled in the same way as other .c's.
8957         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8958         * dump-id.h: Remove.
8959         * emacs.c: Move dump-id.h into dumper.h.
8960         * dumper.h: Move dump-id.h into dumper.h.
8961         * Makefile.in.in:
8962         Use standard .c.o rule for building dump-id.o.
8963         Remove preprocessor flags from link command.
8964         Add dump-id.o to ${otherobjs} if PDUMP.
8965
8966 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8967
8968         Port FSF 20.7 syntax table improvements.
8969         * syntax.c.
8970         * syntax.h.
8971
8972         Fixups for new syntax table stuff.
8973         * dired.c: Include syntax.c.
8974         (Fdirectory_files): Initialize regex_match_object and
8975         regex_emacs_buffer.
8976         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8977         and Fget_char_property.
8978
8979         Use ported FSF 20.7 syntax table improvements.
8980         * font-lock.c.
8981         * regex.c.
8982         * search.c.
8983         
8984 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8985
8986         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8987         Unixware's enum boolean from sys/types.h.
8988
8989 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8990
8991         Fix support for building with latest Purify.
8992         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8993         (PURIFY_FLAGS): Likewise.
8994
8995 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8996
8997         * fileio.c (lisp_string_set_file_times): New.
8998         * fileio.c (Fcopy_file): Use it.
8999         Fixes bug:
9000         (copy-file filename non-ascii-filename t t)
9001         ==> No such file or directory, non-ascii-filename
9002
9003 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9004
9005         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9006         USHRT_MAX seems clearer than ~0 anyways.
9007
9008 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9009
9010         dumper improvements.  Inspired by Olivier.
9011         * dumper.c (pdump_max_align): New.
9012         * dumper.c (pdump_add_entry): Use pdump_max_align.
9013         * dumper.c (pdump_get_entry_list): Likewise.
9014         * dumper.c (pdump_scan_by_alignment): Likewise.
9015         Don't iterate through unnecessary alignments.
9016         * dumper.c (pdump_file_get): No need to align result of malloc().
9017         * dumper.c (pdump_mallocadr): Remove.  
9018         The result of malloc() is guaranteed to be maximally aligned.
9019         * dumper.c: s/elmt/elt/g;
9020         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9021         * dumper.c (pdump_alert_undump_object): Likewise.
9022         * dumper.c (pdump_align_table): 
9023         Don't support alignments > 64.
9024         Store ALIGNOF's, not shift counts, in table.
9025
9026 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9027
9028         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9029         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9030         * systime.h: Use HAVE_UTIME.
9031         * sysdep.c (struct utimbuf): Remove.
9032         * sysdep.c (set_file_times): Prefer utime() to utimes().
9033         * config.h.in (HAVE_UTIME): New.
9034         * config.h.in (HAVE_UTIME_H): Remove.
9035         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9036
9037 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9038
9039         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9040
9041 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9042
9043         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9044
9045 2001-02-08  Martin Buchholz <martin@xemacs.org>
9046
9047         * XEmacs 21.2.44 "Thalia" is released.
9048
9049 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9050
9051         Fixes crashes in kill-emacs on some systems.
9052         * process-unix.c (unix_kill_child_process):
9053         It's OK for kill() to fail with ESRCH.
9054
9055 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9056
9057         Contortions to make .gdbinit tricks work on most systems.
9058         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9059         * alloc.c (dbg_valmask): Make non-const.
9060         * alloc.c (dbg_typemask): Make non-const.
9061         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9062         * alloc.c (dbg_valbits): Make non-const.
9063         * alloc.c (dbg_gctypebits): Make non-const.
9064         * .gdbinit (decode_object): Make it work with AIX cc.
9065
9066 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9067
9068         * elhash.c (make_general_lisp_hash_table):
9069         Use simpler and more efficient calloc to clear entries.
9070
9071 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9072
9073         * window.c (window_scroll): Work around an AIX C compiler bug.
9074         Fixes 'scroll-up' does nothing problem with xlC.
9075
9076 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9077
9078         * .gdbinit: Remove obsolete comment.
9079
9080 2001-01-31  Mike Alexander  <mta@arbortext.com>
9081
9082         * select.c (Fown_selection_internal): Set owned_p for device
9083         method correctly.
9084
9085 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9086
9087         Port to g++ 2.97.
9088         "not" cannot be used as a macro name as it is an operator in C++
9089         * config.h.in: Stop #defining `not'.
9090         * chartab.c (check_category_char): not ==> not_p
9091         * chartab.h: Likewise.
9092         * regex.c (re_match_2_internal): Likewise.
9093
9094 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9095
9096         * lisp-disunion.h: Fix up comments.
9097
9098 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9099
9100         * keymap.c (define_key_check_and_coerce_keysym):
9101         (syms_of_keymap):
9102         Support mouse-6 and mouse-7 bindings in the obvious way.
9103
9104 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9105
9106         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9107
9108 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9109
9110         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9111         Previous patch missed DEFVAR_INT_MAGIC.
9112         Make sure future DEFVAR_foo use correct types.
9113         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9114         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9115         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9116         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9117         * (DEFVAR_INT): Likewise.
9118         * redisplay.c (vertical_clip): Should be of type Fixnum.
9119         * redisplay.c (horizontal_clip): Likewise.
9120         * lisp.h (dump_add_opaque_int): New.
9121         (dump_add_opaque_fixnum): New.
9122
9123 2001-01-29  Andy Piper  <andy@xemacs.org>
9124
9125         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9126         since they can be eval'ed
9127
9128 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9129
9130         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9131         Oops, XEmacs redefines `class'.  Use `typename' instead.
9132
9133 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9134
9135         * dumper.c: Fix C++ compile errors.
9136
9137 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9138
9139         * tparam.c: Use correct prototypes.
9140
9141 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9142
9143         * sysproc.h: #include util.h for NetBSD's openpty.
9144
9145 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9146
9147         More 64-bit correctness.
9148         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9149         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9150         Fix up comments.
9151         This finally finishes the 64-bit SGI port.
9152         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9153         * symbols.c: Fix up comments and type casts.
9154         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9155         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9156         * symeval.h (Fixnum): New type.
9157         * symeval.h (symbol_value_type): Fix up comment.
9158
9159         * commands.h:
9160         * nt.c:
9161         * emacs.c:
9162         * data.c:
9163         * redisplay.c:
9164         * abbrev.c:
9165         * dired-msw.c:
9166         * event-Xt.c:
9167         * eldap.c:
9168         * window.c:
9169         * sound.c:
9170         * event-stream.c:
9171         * eval.c:
9172         * buffer.c:
9173         * mule-canna.c: A million DEFVAR_INTs here...
9174         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9175         * extents.c:
9176         * cmdloop.c:
9177         * lisp.h:
9178         * select-x.c:
9179         * console-x.h:
9180         * event-msw.c:
9181         * mule-wnnfns.c:
9182         * hpplay.c:
9183         * ralloc.c:
9184         * alloc.c:
9185         * keymap.c:
9186         * profile.c:
9187         s/int/Fixnum/g in DEFVAR_INT declarations.
9188
9189 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9190
9191         Port pdump to SGI alignment-sensitive environment.
9192         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9193         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9194         properly aligned.
9195         Define and use aligned reading and writing macros.
9196         Use buffered stdio instead of posix i/o for faster dumping.
9197         Eliminate kludgy 256 byte space for header.
9198         Read and write from dump file using structs for alignment safety.
9199         * dumper.c (pdump_align_stream): New.
9200         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9201         * dumper.c (PDUMP_READ_ALIGNED): New.
9202         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9203         * dumper.c (pdump_static_Lisp_Object): New struct.
9204         * dumper.c (pdump_static_pointer): New struct.
9205         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9206         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9207         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9208         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9209
9210         * dumper.c (pdump_backtrace):
9211         * dumper.c (pdump_get_indirect_count):
9212         * dumper.c (pdump_register_object):
9213         * dumper.c (pdump_register_struct):
9214         * dumper.c (pdump_reloc_one):
9215         * dumper.c (pdump_scan_by_alignment):
9216         * dumper.c (pdump_dump_from_root_struct_ptrs):
9217         * dumper.c (pdump_dump_opaques):
9218         * dumper.c (pdump_dump_rtables):
9219         * dumper.c (pdump_dump_from_root_objects):
9220         * dumper.c (pdump):
9221         * dumper.c (pdump_load_finish):
9222         Use aligned reading and writing.
9223
9224         * dumper.c (pdump_free): Make static.
9225         * dumper.c (pdump_hFile): Likewise.
9226         * dumper.c (pdump_hMap): Likewise.
9227
9228 2001-01-26  Martin Buchholz <martin@xemacs.org>
9229
9230         * XEmacs 21.2.43 "Terspichore" is released.
9231
9232 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9233
9234         Type fiddling for window_config.saved_windows_count
9235         * window.c (struct window_config): 
9236         Make saved_windows_count member unsigned.
9237         * window.c (sizeof_window_config_for_n_windows): 
9238         Make parameter unsigned.
9239         * window.c (mark_window_config):
9240         * window.c (window_config_equal):
9241         * window.c (free_window_configuration):
9242         * window.c (Fset_window_configuration):
9243         * window.c (count_windows):
9244         * window.c (Fcurrent_window_configuration):
9245         * window.c (reinit_vars_of_window):
9246         Update all callers and users.
9247
9248 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9249
9250         Alignment correctness for flexible arrays.
9251         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9252         Make alignment-correct. Add interesting comments.
9253         * alloc.c (size_vector):
9254         * alloc.c (make_vector_internal):
9255         * alloc.c (make_bit_vector_internal):
9256         * alloc.c (sweep_bit_vectors_1):
9257         * fns.c (size_bit_vector):
9258         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9259         * window.c (sizeof_window_config_for_n_windows): 
9260         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9261
9262 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9263
9264         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9265
9266 2001-01-23  Andy Piper  <andy@xemacs.org>
9267
9268         * select.c (Fown_selection_internal): pass owned_p
9269
9270         * select-msw.c (mswindows_own_selection): New Signature.
9271
9272         * console.h (struct console_methods): add owned_p to
9273         _own_selection.
9274
9275         * select-x.c (x_own_selection): pass owned_p
9276         (hack_motif_clipboard_selection): use owned_p
9277         (vars_of_select_x): new variable -
9278         x_selection_strict_motif_ownership.
9279
9280 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9281
9282         * specifier.h (specifier_data_offset): Remove pointless parens.
9283         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9284
9285 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9286
9287         Make Lisp_Object sizeof methods be alignment-correct.
9288         pdump must restore objects to the same alignment as the C compiler
9289         assumes.  It really matters on SGIs.
9290         * lstream.c (aligned_sizeof_lstream): New.
9291         (sizeof_lstream): Use aligned_sizeof_lstream.
9292         (Lstream_new): Likewise.
9293         * opaque.c (aligned_sizeof_opaque): New.
9294         (sizeof_opaque): Use aligned_sizeof_opaque.
9295         (make_opaque): Likewise.
9296         * specifier.c (aligned_sizeof_specifier): New.
9297         (sizeof_specifier): Use aligned_sizeof_specifier.
9298         (make_specifier_internal): Likewise.
9299
9300 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9301
9302         * lstream.h (struct lstream): Use max_align_t for trailing data.
9303         * specifier.h (struct Lisp_Specifier): Likewise.
9304
9305 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9306
9307         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9308         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9309         (CCL_SUSPEND): Likewise.
9310         (CCL_INVALID_CMD): Likewise.
9311         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9312         (ccl_driver): Likewise.
9313         (CCL_WRITE_CHAR): Macro hygiene.
9314         (CCL_WRITE_STRING): Macro hygiene.
9315
9316 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9317
9318         Port "portable" dumper to SunOS 4 and HP-UX.
9319         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9320         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9321         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9322
9323 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9324
9325         * lisp.h (ALIGNOF): A better definition for C++.
9326
9327 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9328
9329         Macro hygiene.
9330         Fix printf warnings: int format, long int arg.
9331         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9332         (PUSH_FAILURE_POINT): Use correct printf formats.
9333         (POP_FAILURE_POINT): Use correct printf formats.  
9334         Use do {...} while (0)
9335
9336 2001-01-20  Martin Buchholz <martin@xemacs.org>
9337
9338         * XEmacs 21.2.42 "Poseidon" is released.
9339
9340 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9341
9342         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9343
9344 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9345
9346         De-kludgify FIXED_TYPE free list frobbing.
9347         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9348         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9349         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9350         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9351         * alloc.c (LRECORD_FREE_P): New.
9352         * alloc.c (MARK_LRECORD_AS_FREE): New.
9353         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9354         * alloc.c (STRUCT_FREE_P): Deleted.
9355         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9356         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9357         * alloc.c (STRING_CHARS_FREE_P): New.
9358         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9359         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9360         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9361         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9362         * alloc.c (resize_string): Use new definitions.
9363         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9364         * alloc.c (verify_string_chars_integrity): Use new definitions.
9365         * alloc.c (compact_string_chars): Use new definitions.
9366         * alloc.c: Update monster comments.
9367         * lrecord.h (lrecord_type): Add some new lrecord types for
9368         alloc.c's use.
9369
9370 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9371
9372         Improve alignment hackery.
9373         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9374         (max_align_t): Moved from opaque.h - general purpose.
9375         (ALIGN_PTR): Use size_t, not long.
9376         * opaque.h (max_align_t): Move to lisp.h.
9377
9378 2001-01-18  Norbert Koch  <nk@LF.net>
9379
9380         * gui.h: Fix and add prototypes to fix build problems.
9381
9382 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9383
9384         temacs is going away, so `dump-temacs' is now a bad name.
9385         * .dbxrc (dump-temacs): Rename to `dmp'.
9386         * .gdbinit (dump-temacs): Rename to `dmp'.
9387
9388 2001-01-17  Andy Piper  <andy@xemacs.org>
9389
9390         * glyphs.c (print_image_instance): comment to make martin happy.
9391
9392         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9393         change.
9394
9395         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9396         activation.
9397         (mswindows_tab_control_redisplay): warning suppression.
9398
9399         * glyphs-widget.c (widget_update): re-write to cope with updated
9400         items.
9401         (widget_instantiate): use new gui_item functions.
9402         (tab_control_update): deleted.
9403         (progress_gauge_update): deleted.
9404         (image_instantiator_progress_guage): take out update reference.
9405         (image_instantiator_tree_view): ditto.
9406         (image_instantiator_tab_control): ditto.
9407
9408         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9409         Right the new way.
9410         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9411         return whether anything was changed.
9412         (update_gui_item_keywords): as it sounds.
9413
9414         * gui.h: declare widget_gui_parse_item_keywords.
9415
9416         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9417         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9418
9419 2001-01-17  Martin Buchholz <martin@xemacs.org>
9420
9421         * XEmacs 21.2.41 "Polyhymnia" is released.
9422
9423 2001-01-16  Didier Verna  <didier@xemacs.org>
9424
9425         * glyphs.c (image_instantiate): don't use fallbacks when
9426         instantiating a face's background pixmap by inheritance.
9427
9428 2001-01-14  Mike Sperber <mike@xemacs.org>
9429
9430         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9431         Conditionalize accordingly.
9432
9433 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9434
9435         * dumper.c (pdump_file_get): Fix a compiler warning.
9436
9437 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9438
9439         Make Purify happy when pdumping.
9440         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9441         iniitalizing all bits of new lisp object memory.
9442         * symbols.c (Fmake_local_variable): Likewise.
9443         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9444         * symbols.c (Fdefvaralias): Likewise.
9445         * mule-charset.c (vars_of_mule_charset): Likewise.
9446
9447 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9448         Add the `-nd' flag when running pre-dump operations under the debugger.
9449         * .dbxrc (run-temacs): Add `-nd'.
9450         * .dbxrc (update-elc): Likewise.
9451         * .dbxrc (dump-temacs): Likewise.
9452         * .gdbinit (run-temacs): Likewise.
9453         * .gdbinit (check-temacs): Likewise.
9454         * .gdbinit (update-elc): Likewise.
9455         * .gdbinit (dump-temacs): Likewise.
9456
9457 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9458
9459         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9460         export OBJECT_MODE=64
9461         configure --pdump --use-union-type=no
9462         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9463         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9464
9465         * miscplay.c (sndcnv8U_2mono):
9466         Avoid two uses of `++' in the same expression.
9467         Suppresses a GCC warning.
9468
9469 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9470
9471         Make sure future compilers don't miscompile alloc.c.
9472         * alloc.c:
9473         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9474         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9475
9476 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9477
9478         * dumper.c: A little post-pdump-rename comment fixup.
9479
9480 2001-01-09  Jerry James  <james@eecs.ku.edu>
9481
9482         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9483
9484 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9485
9486         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9487         script:
9488         #!/bin/sh
9489         replace_symbol () {
9490           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9491         }
9492
9493         replace_symbol pdump_wire_lists pdump_weak_object_chains
9494         replace_symbol pdump_wire_list dump_add_weak_object_chain
9495
9496         replace_symbol pdump_wires pdump_root_objects
9497         replace_symbol pdump_wire dump_add_root_object
9498
9499         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9500         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9501
9502         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9503         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9504         replace_symbol dumpstructinfo pdump_root_struct_ptr
9505         replace_symbol dumpstruct dump_add_root_struct_ptr
9506
9507         replace_symbol dumpopaque dump_add_opaque
9508         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9509         replace_symbol dumpopaqueinfos pdump_opaques
9510         replace_symbol dumpopaqueinfo pdump_opaque
9511
9512         replace_symbol nb_structdump nb_root_struct_ptrs
9513         replace_symbol nb_opaquedump nb_opaques
9514
9515         replace_symbol align_table pdump_align_table
9516         replace_symbol dump_header pdump_header
9517
9518         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9519         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9520
9521
9522 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9523
9524         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9525         optimizing bytecount_to_charcount().
9526
9527 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9528
9529         * config.h.in:
9530         (HAVE_DLFCN_H): Removed.
9531         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9532
9533 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9534
9535         Portable dumper maintainability improvements.
9536         * alloc.c (staticpro):
9537         * alloc.c (staticpro_nodump):
9538         * alloc.c (garbage_collect_1):
9539         * alloc.c (reinit_alloc_once_early):
9540         * alloc.c (init_alloc_once_early):
9541         * alloc.c: Move dumper functions to alloc.c.
9542         * dumper.c (pdump_backtrace):
9543         * dumper.c (pdump_dump_structs):
9544         * dumper.c (pdump_dump_opaques):
9545         * dumper.c (pdump_dump_rtables):
9546         * dumper.c (pdump_dump_wired):
9547         * dumper.c (pdump):
9548         * dumper.c (pdump_load_check):
9549         * dumper.c (pdump_load_finish):
9550         * dumper.c (pdump_file_unmap):
9551         * dumper.c (pdump_file_get):
9552         * dumper.c (pdump_resource_free):
9553         * dumper.c (pdump_resource_get):
9554         * dumper.c (pdump_file_free):
9555         * dumper.c (pdump_file_try):
9556         * dumper.c (pdump_load):
9557         Remove fixed size limits on staticpro(), staticpro_nodump(),
9558         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9559         Remove custom code for dumping lrecord_implementations_table - use
9560         dumpopaque instead.
9561         Remove (most of the) custom code for dumping staticpros - dump it
9562         like any other dynarr.
9563
9564         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9565         * dumper.c: Moved functions from alloc.c.
9566         * alloc.c (dumpstruct): Moved to dumper.c.
9567         * alloc.c (dumpopaque): Likewise.
9568         * alloc.c (pdump_wire): Likewise.
9569         * alloc.c (pdump_wire_list): Likewise.
9570
9571         * lisp.h (Dynarr_sizeof): New.
9572         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9573         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9574         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9575
9576         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9577         * lisp.h (dumpopaque): ditto.
9578         * lisp.h (pdump_wire): ditto.
9579         * lisp.h (pdump_wire_list): ditto.
9580
9581 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9582
9583         * make-src-depend (PrintPatternDeps):
9584         Use `sort' to make output independent of perl version.
9585
9586 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9587
9588         Port to Netbsd 1.5.
9589         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9590         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9591
9592 2001-01-03  Didier Verna  <didier@xemacs.org>
9593
9594         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9595         that `focus_frame' is alive before thinking of calling
9596         `redisplay_redraw_cursor' on it.
9597
9598 2001-01-08  Martin Buchholz <martin@xemacs.org>
9599
9600         * XEmacs 21.2.40 is released.
9601
9602 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9603
9604         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9605
9606 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9607
9608         * alloc.c (dbg_valmask): Make const.
9609         * alloc.c (dbg_typemask): Make const.
9610         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9611         * alloc.c (dbg_valbits): Make const.
9612         * alloc.c (dbg_gctypebits): Make const.
9613
9614 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9615
9616         * redisplay-x.c (x_bevel_area):
9617         redisplay.h (struct rune):
9618         Typo fixes in comments.
9619
9620 2001-01-05  Andy Piper  <andy@xemacs.org>
9621
9622         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9623         adjustment.
9624
9625         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9626
9627 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9628
9629         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9630
9631         * mule-ccl.c (stack_idx_of_map_multiple):
9632         Non const global data must not be initialized!
9633         Found by MIYASHITA Hisashi.
9634
9635 2001-01-02  Andy Piper  <andy@xemacs.org>
9636
9637         * frame.c (change_frame_size): make sure frame size is always
9638         marked as changed.
9639
9640         * glyphs.c (image_instance_layout): minor code reuse.
9641
9642         * window.c (Fcurrent_window_configuration): revert previous
9643         change.
9644
9645 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9646
9647         * glyphs.h:
9648         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9649
9650 2000-12-31  Andy Piper  <andy@xemacs.org>
9651
9652         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9653         when widget gets unmapped.
9654
9655         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9656         function. Make sure widgets losing focus don't just drop it.
9657         (handle_focus_event_1): record the widget with focus.
9658
9659 2000-12-31  Andy Piper  <andy@xemacs.org>
9660
9661         * window.c (allocate_window): use
9662         make_image_instance_cache_hash_table.
9663         (make_dummy_parent): ditto.
9664         (Fset_window_configuration): ditto.
9665
9666         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9667
9668         * glyphs.c (process_image_string_instantiator): use
9669         INSTANTIATOR_TYPE.
9670         (get_image_instantiator_governing_domain): ditto.
9671         (normalize_image_instantiator): ditto.
9672         (instantiate_image_instantiator): ditto.
9673         (make_image_instance_1): ditto.
9674         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9675         (instantiator_eq_equal): new function for use with instance hash
9676         tables.
9677         (instantiator_eq_hash): ditto.
9678         (make_image_instance_cache_hash_table): create a suitable hash
9679         table for storing image instances.
9680
9681         * elhash.h (hash_table_weakness): new internal weakness type
9682         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9683         declare new functions.
9684
9685         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9686         another weakness type for glyphs.
9687         (make_standard_lisp_hash_table): new function split out from
9688         make_general_lisp_hash_table.
9689         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9690         (hash_table_instantiate): ditto.
9691         (Fmake_hash_table): ditto.
9692
9693 2000-12-31  Martin Buchholz <martin@xemacs.org>
9694
9695         * XEmacs 21.2.39 is released.
9696
9697 2000-12-29  Andy Piper  <andy@xemacs.org>
9698
9699         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9700
9701         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9702         the frame has changed so that we pick up geometry changes such as
9703         menubar visibility.
9704
9705 2000-12-28  Andy Piper  <andy@xemacs.org>
9706
9707         * lastfile.c (my_ebss): make a char array so we can pad the
9708         bss. Fixes cygwin unexec.
9709
9710         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9711
9712 2000-12-26  Andy Piper  <andy@xemacs.org>
9713
9714         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9715         comments and try and be more precise about a non-/SIGIO world.
9716         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9717         SIGIO.
9718
9719         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9720         we don't normalize to zero width or height.
9721
9722 2000-12-24  Andy Piper  <andy@xemacs.org>
9723
9724         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9725
9726 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9727
9728         * s/sco5.h: SCO 5 has pty support.
9729
9730 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9731
9732         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9733         input-method-xlib.c contains whole contents of input-method-xfs.c,
9734         so we can use input-method-xlib.c's code for USE_XFONTSET
9735         using #ifdefs.
9736         * input-method-xfs.c: removed.
9737
9738 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9739
9740         * file-coding.h (enum coding_category_type): reorder enumerators to
9741         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9742         (now one greater than largest real coding_category_type enumerator).
9743         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9744         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9745         Fcoding_category_list, Fset_coding_priority_list,
9746         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9747         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9748
9749 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9750
9751         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9752         * redisplay-output.c (redisplay_output_window): Clear top of window
9753         when face is changed.
9754         * redisplay-x.c (x_redraw_exposed_window): Call
9755         redisplay_clear_top_of_window.
9756         * redisplay.h: Publish redisplay_clear_top_of_window.
9757
9758 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9759
9760         * buffer.c (Fkill_buffer): Map over all devices.
9761         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9762         (list_windows): New function.
9763         (list_all_windows): Ditto.
9764         (Freplace_buffer_in_windows): Use them.
9765
9766 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9767
9768         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9769         (Fopen_database): Use `db_create' instead of `db_open'.
9770         (syms_of_database): Initialize Qqueue.
9771
9772 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9773
9774         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9775         buffer_local_face_property.
9776         * buffer.h (struct buffer): New member buffer_local_face_property.
9777         * window.c (Fset_window_buffer):  Mark window's face as changed
9778         when buffer has buffer local face.
9779         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9780         * objects.c (color_after_change): Set buffer_local_face_property
9781         when locale of face specifier is buffer.
9782         * objects.c (font_after_change): Ditto.
9783         * objects.c (face_boolean_after_change): Ditto.
9784         * glyphs.c (image_after_change): Ditto.
9785
9786 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9787
9788         * nt.c (mswindows_fstat): Report file permissions, volume serial
9789         number, etc. Code adapted from FSF Emacs 20.7.
9790
9791 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9792
9793         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9794         of stat when we don't have symbolic links, to make sure
9795         mswindows_stat is called on mswindows.
9796
9797 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9798
9799         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9800
9801 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9802
9803         * doprnt.c (emacs_doprnt_1): More printing fixes.
9804         Make printing of numbers compatible with libc and FSF Emacs.
9805         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9806         Use the system printf to do most of the hard work of formatting,
9807         instead of doprnt_1().
9808         Calculate memory to allocate for format string.
9809         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9810         (doprnt_1): Cleaner code and documentation.
9811
9812 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9813
9814         * Makefile.in.in: Use the loop variable to install headers.
9815
9816 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9817
9818         * window.c (Fsplit_window): Don't invalidate face cache.
9819
9820 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9821
9822         * minibuf.c (Fall_completions): Undo the previous change
9823         which removed checking elements start with space.
9824
9825 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9826
9827         * mule-canna.c: Didier suppression.
9828
9829 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9830
9831         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9832         (warning suppression).  Add English comment translations.
9833
9834 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9835
9836         * unexelfsgi.c (unexec): Better test for mmap failure.
9837
9838 2000-12-05  Martin Buchholz <martin@xemacs.org>
9839
9840         * XEmacs 21.2.38 is released.
9841
9842 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9843
9844         * redisplay.c (bar-cursor): Make a user variable.
9845
9846         * symsinit.h: Add init_postgresql_from_environment.
9847
9848 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9849
9850         * regex.c: Convert to clean C.
9851
9852 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9853
9854         * realpath.c:
9855         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9856         initialization.
9857         (sys_readlink): renamed to system_readlink to avoid conflict with
9858         the other sys_readlink.
9859
9860 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9861
9862         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9863
9864 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9865
9866         * postgresql.c (init_postgresql_from_environment): new function.
9867         (vars_of_postgresql): Move code initializing Lisp variables out and
9868         into init_postgresql_from_environment.
9869         emacs.c (main_1): Call init_postgresql_from_environment if and only
9870         if running a dumped XEmacs.
9871
9872 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9873
9874         * buffer.c: Make find-file-compare-truenames default to true on
9875         windows.
9876
9877         * realpath.c (win32_abs_start):
9878         (cygwin_readlink):
9879         (win32_readlink): New functions.
9880         (xrealpath): Return really real filenames on windows.
9881
9882         * fileio.c (Ffile_truename): Make file-truename work on windows.
9883
9884 2000-11-29  Didier Verna  <didier@xemacs.org>
9885
9886         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9887         * faces.c (update_face_cachel_data): use it.
9888         * faces.c (add_face_cachel): use it. Complete background pixmap
9889         frobbing in face cache if `update_face_cachel_data' has not done so.
9890
9891 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9892
9893         * search.c (string_match_1): Don't set last_thing_searched
9894         when search failed.
9895
9896 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9897
9898         * buffer.c: Include casetab.h
9899         (common_init_complex_vars_of_buffer): Use new case-table object.
9900         * buffer.h: Include casetab.h
9901         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9902         (DOWNCASE_TABLE_OF): Ditto.
9903         * bufslots.h: Remove char-tables and add case-table.
9904         * casetab.c: Include casetab.h
9905         (CASE_TABLE_P): Removed.
9906         (mark_case_table): New function.
9907         (allocate_case_table): New function.
9908         (Fcase_table_p): Use new case-table.
9909         (case_table_char): New function.
9910         (Fget_case_table): Ditto.
9911         (Fput_case_table): Ditto.
9912         (Fput_case_table_pair): Ditto.
9913         (Fcopy_case_table): Ditto.
9914         (Fcurrent_case_table): Return case-table.
9915         (Fstandard_case_table): Return case-table.
9916         (Fset_case_table): Fix doc-string.
9917         (set_case_table): Use case-table
9918         (syms_of_casetab): DEFSUBR new functions.
9919         (complex_vars_of_casetab): Set up standard case-table.
9920         * casetab.h: New file.
9921         * editfns.c: Include casetab.h
9922         (Fcompare_buffer_substrings): Use case-table.
9923         * inline.c: Include casetab.h
9924         * lisp.h: Remove bogus extern.
9925         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9926         * search.c: Include casetab.h
9927         (TRANSLATE_ASCII): Removed.
9928         (TRANSLATE): Unconditionally translate character.
9929         (looking_at_1): Use case-table.
9930         (string_match_1): Ditto.
9931         (fast_string_match): Ditto.
9932         (search_command): Ditto.
9933         (search_buffer): Separate boyer_moore.  Check whether
9934         boyer_moore is possible.
9935         (simple_search): New function.
9936         (boyer_moore): Separated from search_buffer. Translate char.
9937
9938 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9939
9940         * regex.c (RE_TR_ASCII): Removed.
9941         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9942         (PATFETCH): Call PATFETCH_RAW.
9943         (PATFETCH_RAW): Fetch Emchar.
9944         (PATUNFETCH): Decrement charptr.
9945         (GET_BUFFER_SPACE): Rename b to buf_end.
9946         (BUF_PUSH): Ditto.
9947         (BUF_PUSH_2): Ditto.
9948         (BUF_PUSH_3): Ditto.
9949         (EXTEND_BUFFER): Ditto.
9950         (SET_LIST_BIT): Ditto.
9951         (regex_compile): Ditto.  Translate non ASCII char.
9952         (compile_range): Ditto.
9953         (re_search_2): Ditto.
9954         (re_match_2_internal): Compare Emchar.
9955         (bcmp_translate): Ditto.
9956
9957 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9958
9959         * lisp.h (basic char/int typedefs):  comment improvement.
9960
9961 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9962
9963         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9964         unstomp inhibit_site_lisp.  Improve comments.
9965
9966 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9967
9968         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9969
9970 2000-11-28  Andy Piper  <andy@xemacs.org>
9971
9972         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9973         clipped display for windows in the gutter also.
9974         (redisplay_display_boxes_in_window_p): change semantics of return
9975         codes to be more intuitive.
9976
9977         * gutter.h: declare display_boxes_in_gutter_p.
9978
9979         * gutter.c (display_boxes_in_gutter_p): new function for
9980         redisplay.
9981
9982 2000-11-22  Andy Piper  <andy@xemacs.org>
9983
9984         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9985         autodetect domain.
9986
9987 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9988
9989         * callproc.c (Fold_call_process_internal):
9990         * gpm.c (Freceive_gpm_event):
9991         (tty_get_foreign_selection): Might be just warning supression.
9992         * fileio.c (Fwrite_region_internal):
9993         (Fset_visited_file_modtime):
9994         * keymap.c (event_matches_key_specifier_p):
9995         Initialize GCPROed variable.
9996
9997         * menubar-x.c (command_builder_find_menu_accelerator):
9998         Initialize before use.
9999
10000 2000-11-23  Andy Piper  <andy@xemacs.org>
10001
10002         * unexcw.c (unexec): make the resulting executable executable.
10003
10004 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10005
10006         * doc.c (get_doc_string):
10007         Use size_t, not int, for result of XSTRING_LENGTH.
10008
10009         * cmds.c (Fdelete_char):
10010         * cmds.c (Fpoint_at_eol):
10011         * cmds.c (Fself_insert_command):
10012         Use EMACS_INT, not int, for result of XINT.
10013         Someday, someone will want to insert more than 2**31 identical characters.
10014
10015         * cmds.c (Fdelete_char):
10016         * cmds.c (Fdelete_backward_char):
10017         * syntax.c (Fforward_word):
10018         * syntax.c (Fforward_comment):
10019         Make COUNT argument optional, for consistency with forward-char et al.
10020
10021 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10022
10023         * lisp.h:
10024         * print.c (long_to_string):
10025         Return a useful value: the pointer at end of data written.
10026
10027         * doprnt.c:
10028         Use `static const char * const' for constant strings.
10029         (union printf_arg): Delete `i', `ui' members.
10030         (get_doprnt_args):
10031         (emacs_doprnt_1):
10032         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10033         Do all printf-ing via the `l' specifier.
10034         Use EMACS_INT instead of int.
10035         Optimize.
10036
10037 2000-11-20  Didier Verna  <didier@xemacs.org>
10038
10039         * faces.c (update_face_cachel_data): don't frob the background
10040         pixmap when the window is being created. The face is needed but
10041         does not exist yet.
10042
10043 2000-11-20  Andy Piper  <andy@xemacs.org>
10044
10045         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10046         messing with a debug environment.
10047
10048 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10049
10050         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10051
10052 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10053
10054         * casetab.c (Fcase_table_p): Fix compile error and crash.
10055
10056 2000-11-18  Philip Aston  <philipa@mail.com>
10057
10058         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10059
10060 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10061
10062         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10063         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10064
10065 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10066
10067         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10068         * unexelf.c: Use HAVE_ELF_H.
10069         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10070         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10071         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10072         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10073         for testing.
10074         So this is an unexelfsgi.c from a different line of development.
10075
10076 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10077
10078         * regex.c (RE_TR_ASCII): New function.
10079         (RE_TRANSLATE): Call it.
10080
10081 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10082
10083         * buffer.h (TRT_TABLE_OF): Remove assert.
10084         (IN_TRT_TABLE_DOMAIN): Removed.
10085
10086 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10087
10088         * free-hook.c (log_gcpro):
10089         (show_gcprohist): Add support for GCPRO5.
10090
10091 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10092
10093         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10094
10095 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10096
10097         * symeval.h: Declare flush_all_buffer_local_cache.
10098
10099         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10100         (flush_buffer_local_cache): Added.
10101         (flush_all_buffer_local_cache): Added.
10102
10103         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10104
10105         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10106         (pdump_dump_data): Ditto.
10107         (pdump_reloc_one): Ditto.
10108         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10109         before dumping.
10110
10111
10112 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10113
10114         * buffer.c: Remove if 0'ed entry.
10115         * buffer.h: Rewrite TRT to use char-table.
10116         * bufslots.h: Remove mirror tables.
10117         * casetab.c: Remove mirror tables.
10118         (CASE_TABLE_P): New macro.
10119         (Fcase_table_p): Element of a case table is string or char-table.
10120         (make_mirror_trt_table): Removed.
10121         (set_case_table): Setup char-table from strings for backward
10122         compatibility.
10123         * dired.c (Fdirectory_files):
10124         * dired-msw.c: (mswindows_get_files):
10125         * lisp.h: Change prototype of re_pattern_buffer.
10126         * regex.c: (RE_TRANSLATE): New macro.
10127         (TRANSLATE_P): Ditto.
10128         Change translate to type RE_TRANSLATE_TYPE.
10129         * regex.h: Define RE_TRANSLATE_TYPE
10130         * search.c (TRANSLATE): New macro.
10131         (TRANSLATE_ASCII): New macro.
10132         Translate table is changed to Lisp_Object.
10133         (signal_failure): Inhibit return.
10134
10135 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10136
10137         * device-msw.c:
10138         * eldap.c:
10139         * event-Xt.c:
10140         * event-stream.c:
10141         * print.c:
10142         Do UNGCPRO before return.
10143
10144 2000-11-14  Martin Buchholz <martin@xemacs.org>
10145
10146         * XEmacs 21.2.37 is released.
10147
10148 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10149
10150         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10151         Add comments about discarded return value.
10152
10153 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10154
10155         * callint.c:
10156         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10157
10158 2000-10-27  Andy Piper  <andy@xemacs.org>
10159
10160         * gutter.c (Fset_default_gutter_position): default left and right
10161         gutters to visible.
10162         (calculate_gutter_size): calculate resonable heuristic for left
10163         and right gutter sizes.
10164         (specifier_vars_of_gutter): change left and right gutter sizes to
10165         autodetect.
10166         (calculate_gutter_size_from_display_lines): new function.
10167         (output_gutter): check for resizing on left and right gutters.
10168         (clear_gutter): don't special case top and left gutters.
10169         (specifier_vars_of_gutter): use new signature for
10170         set_specifier_caching.
10171
10172         * glyphs-x.c (x_redisplay_widget): spelling fix.
10173         * glyphs.c (specifier_vars_of_glyphs):
10174         * menubar.c (specifier_vars_of_menubar):
10175         * redisplay.c (specifier_vars_of_redisplay):
10176         * toolbar.c (specifier_vars_of_toolbar):
10177         * window.c (specifier_vars_of_window):
10178         * scrollbar.c (specifier_vars_of_scrollbar):
10179         (complex_vars_of_scrollbar): use new signature for
10180         set_specifier_caching.
10181
10182         * specifier.c (set_specifier_caching): include recompute flag.
10183         (recompute_one_cached_specifier_in_window): always recompute if
10184         flag set.
10185         (recompute_one_cached_specifier_in_frame): ditto.
10186
10187         * specifier.h (struct specifier_caching): add recompute flag.
10188
10189 2000-10-24  Andy Piper  <andy@xemacs.org>
10190
10191         * unexcw.c (copy_executable_and_dump_data_section): add new
10192         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10193         5.0 happy.
10194
10195 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10196
10197         * console-x.h (x_device): New member modifier_release_time.
10198         * event-Xt.c (x_handle_sticky_modifiers):
10199         Bound interval modifier keys are sticky.
10200         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10201         * events.h: extern it.
10202
10203 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10204
10205         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10206
10207 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10208
10209         * event-stream.c (execute_command_event): Preserve current_events
10210         and the like when event is misc-user-event.
10211         Inhibit quit during the call to maybe_echo_keys.
10212
10213 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10214
10215         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10216         symlink when buffer is killed.
10217         (inhibit_clash_detection): New variable.
10218
10219 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10220
10221         * console.c (Fset_input_method): Trigger redisplay on tty.
10222
10223 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10224
10225         * process.c (Fprocess_status): Revert to previous behavior:
10226         (process-status "nosuchprocess") ==> nil
10227
10228 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10229
10230         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10231         Work around another GCC 2.95.2 optimizer bug.
10232
10233 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10234
10235         * process.c (Fget_process): Use LIST_LOOP_2.
10236         (kill_buffer_processes): Use LIST_LOOP_2.
10237
10238         * minibuf.c (Fall_completions):
10239         Delete old non-functional code for FSF fourth argument.
10240
10241         * frame.c (frame_matches_frame_spec):
10242         Renamed from `frame_matches_frametype'.  Update all callers.
10243         (device_matches_device_spec):
10244         Renamed from 'device_matches_console_spec'.  Update all callers.
10245
10246         * doc.c (Fsubstitute_command_keys):
10247         Remove buffer overflow crash.  Small code cleanups.
10248
10249         * casetab.c (check_case_table): Simpler code.
10250
10251         * window.c (Freplace_buffer_in_windows):
10252         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10253         (and similar implementation) as Fdelete_windows_on.
10254         Update all callers.
10255
10256         * alloc.c (Fmake_list):
10257         * alloc.c (make_vector):
10258         * alloc.c (Fmake_vector):
10259         * alloc.c (make_bit_vector):
10260         * alloc.c (Fmake_bit_vector):
10261         * alloc.c (Fbit_vector):
10262         * alloc.c (Fmake_string):
10263         * alloc.c (Fpurecopy):
10264         * alloc.c (Fmemory_limit):
10265         * buffer.c:
10266         * buffer.c (Fget_buffer):
10267         * buffer.c (Fkill_buffer):
10268         * buffer.c (complex_vars_of_buffer):
10269         * bytecode.c (Fcompiled_function_stack_depth):
10270         * callint.c (Fprefix_numeric_value):
10271         * event-stream.c:
10272         * event-stream.c (Fread_key_sequence):
10273         * casetab.c:
10274         * casetab.c (Fcase_table_p):
10275         * casetab.c (check_case_table):
10276         * casetab.c (Fset_case_table):
10277         * casetab.c (Fset_standard_case_table):
10278         * chartab.c:
10279         * chartab.c (Fchar_table_type):
10280         * chartab.c (Freset_char_table):
10281         * chartab.c (Fget_char_table):
10282         * chartab.c (Fget_range_char_table):
10283         * chartab.c (Fput_char_table):
10284         * chartab.c (Fmap_char_table):
10285         * chartab.c (Fcategory_table_p):
10286         * chartab.c (Fcheck_category_at):
10287         * chartab.c (Fchar_in_category_p):
10288         * chartab.c (Fcategory_table):
10289         * chartab.c (Fcopy_category_table):
10290         * chartab.c (Fset_category_table):
10291         * chartab.c (Fcategory_designator_p):
10292         * chartab.c (Fcategory_table_value_p):
10293         * cmds.c (Fdelete_char):
10294         * cmds.c (Fdelete_backward_char):
10295         * cmds.c (Fself_insert_command):
10296         * cmds.c (Fself_insert_internal):
10297         * console.c (Fvalid_console_type_p):
10298         * console.c (Fcdfw_console):
10299         * console.c (Fconsole_type):
10300         * console.c (Fconsole_name):
10301         * console.c (Fconsole_device_list):
10302         * console.c (Fconsole_on_window_system_p):
10303         * data.c:
10304         * data.c (Feq):
10305         * data.c (Fold_eq):
10306         * data.c (Fsubr_interactive):
10307         * data.c (Fchar_to_int):
10308         * data.c (Fint_to_char):
10309         * data.c (Fsetcar):
10310         * data.c (Fsetcdr):
10311         * data.c (Fnumber_to_string):
10312         * data.c (Fstring_to_number):
10313         * data.c (Frem):
10314         * database.c (mark_database):
10315         * database.c (finalize_database):
10316         * database.c (Fdatabase_live_p):
10317         * database.c (Fdatabasep):
10318         * device-x.c (Fx_get_resource):
10319         * device.c (Fdfw_device):
10320         * dired.c:
10321         * dired.c (Ffile_name_completion):
10322         * dired.c (Ffile_name_all_completions):
10323         * dired.c (Fuser_name_completion):
10324         * dired.c (Fuser_name_completion_1):
10325         * dired.c (Fuser_name_all_completions):
10326         * doc.c (Fdocumentation):
10327         * doc.c (Fdocumentation_property):
10328         * doc.c (Fsubstitute_command_keys):
10329         * editfns.c:
10330         * editfns.c (Fchar_to_string):
10331         * editfns.c (Fstring_to_char):
10332         * editfns.c (Ftemp_directory):
10333         * editfns.c (Finsert_char):
10334         * editfns.c (Fbuffer_substring_no_properties):
10335         * editfns.c (Fnarrow_to_region):
10336         * editfns.c (Fchar_equal):
10337         * editfns.c (Fchar_Equal):
10338         * editfns.c (Ftranspose_regions):
10339         * emacs.c (Fdump_emacs):
10340         * eval.c (Fthrow):
10341         * eval.c (Fcommand_execute):
10342         * eval.c (Fautoload):
10343         * eval.c (Fbacktrace):
10344         * eval.c (Fbacktrace_frame):
10345         * events.c:
10346         * events.c (Fcopy_event):
10347         * events.c (Fcharacter_to_event):
10348         * events.c (Fevent_button):
10349         * events.c (Fevent_process):
10350         * extents.c:
10351         * extents.c (Fnext_extent_change):
10352         * extents.c (Fextent_property):
10353         * faces.c (Ffacep):
10354         * faces.c (Fmake_face):
10355         * file-coding.c:
10356         * file-coding.c (Fencode_shift_jis_char):
10357         * file-coding.c (Fencode_big5_char):
10358         * fileio.c (Ffile_name_directory):
10359         * fileio.c (Ffile_name_nondirectory):
10360         * fileio.c (Ffile_name_as_directory):
10361         * fileio.c (Fdirectory_file_name):
10362         * fileio.c (Ffile_truename):
10363         * fileio.c (Fsubstitute_in_file_name):
10364         * fileio.c (Ffile_modes):
10365         * fileio.c (Fset_file_modes):
10366         * fileio.c (Fset_default_file_modes):
10367         * fileio.c (Fverify_visited_file_modtime):
10368         * floatfns.c (Facos):
10369         * floatfns.c (Fasin):
10370         * floatfns.c (Fatan):
10371         * floatfns.c (Fcos):
10372         * floatfns.c (Fsin):
10373         * floatfns.c (Ftan):
10374         * floatfns.c (Fbessel_j0):
10375         * floatfns.c (Fbessel_j1):
10376         * floatfns.c (Fbessel_jn):
10377         * floatfns.c (Fbessel_y0):
10378         * floatfns.c (Fbessel_y1):
10379         * floatfns.c (Fbessel_yn):
10380         * floatfns.c (Ferf):
10381         * floatfns.c (Ferfc):
10382         * floatfns.c (Flog_gamma):
10383         * floatfns.c (Fexp):
10384         * floatfns.c (Fexpt):
10385         * floatfns.c (Flog):
10386         * floatfns.c (Flog10):
10387         * floatfns.c (Fsqrt):
10388         * floatfns.c (Fcube_root):
10389         * floatfns.c (Facosh):
10390         * floatfns.c (Fasinh):
10391         * floatfns.c (Fatanh):
10392         * floatfns.c (Fcosh):
10393         * floatfns.c (Fsinh):
10394         * floatfns.c (Ftanh):
10395         * floatfns.c (Fabs):
10396         * floatfns.c (Ffloat):
10397         * floatfns.c (Flogb):
10398         * floatfns.c (Fceiling):
10399         * floatfns.c (Ffloor):
10400         * floatfns.c (Fround):
10401         * floatfns.c (Ftruncate):
10402         * floatfns.c (Ffceiling):
10403         * floatfns.c (Fffloor):
10404         * floatfns.c (Ffround):
10405         * floatfns.c (Fftruncate):
10406         * fns.c (Fstring_equal):
10407         * fns.c (Fstring_lessp):
10408         * fns.c (concat2):
10409         * fns.c (concat3):
10410         * fns.c (vconcat2):
10411         * fns.c (vconcat3):
10412         * fns.c (Fsubstring):
10413         * fns.c (Fassoc):
10414         * fns.c (Fold_assoc):
10415         * fns.c (assoc_no_quit):
10416         * fns.c (Fassq):
10417         * fns.c (Fold_assq):
10418         * fns.c (assq_no_quit):
10419         * fns.c (Frassoc):
10420         * fns.c (Fold_rassoc):
10421         * fns.c (Frassq):
10422         * fns.c (Fold_rassq):
10423         * fns.c (rassq_no_quit):
10424         * fns.c (Fremassoc):
10425         * fns.c (remassoc_no_quit):
10426         * fns.c (Fremassq):
10427         * fns.c (remassq_no_quit):
10428         * fns.c (Fremrassoc):
10429         * fns.c (Fremrassq):
10430         * fns.c (remrassq_no_quit):
10431         * fns.c (Fsort):
10432         * fns.c (Fplist_get):
10433         * fns.c (Fplist_put):
10434         * fns.c (Fplist_remprop):
10435         * fns.c (Fplist_member):
10436         * fns.c (Flax_plist_get):
10437         * fns.c (Flax_plist_put):
10438         * fns.c (Flax_plist_remprop):
10439         * fns.c (Flax_plist_member):
10440         * fns.c (Fequal):
10441         * fns.c (Fold_equal):
10442         * fns.c (Frequire):
10443         * fns.c (Fbase64_encode_region):
10444         * fns.c (Fbase64_encode_string):
10445         * fns.c (Fbase64_decode_region):
10446         * frame.c:
10447         * frame.c (frame_matches_frame_spec):
10448         * frame.c (device_matches_device_spec):
10449         * frame.c (next_frame):
10450         * frame.c (previous_frame):
10451         * frame.c (Fnext_frame):
10452         * frame.c (Fprevious_frame):
10453         * frame.c (Fframe_property):
10454         * frame.c (Fset_frame_height):
10455         * frame.c (Fset_frame_size):
10456         * frame.h:
10457         * glyphs.c:
10458         * glyphs.c (if):
10459         * glyphs.c (decode_error_behavior_flag):
10460         * glyphs.c (Fmake_image_instance):
10461         * indent.c (Findent_to):
10462         * intl.c (Fignore_defer_gettext):
10463         * keymap.c (Fkeymapp):
10464         * keymap.c (Flookup_key):
10465         * lread.c:
10466         * lread.c (Fload_internal):
10467         * lread.c (Feval_buffer):
10468         * lread.c (Feval_region):
10469         * macros.c (Fexecute_kbd_macro):
10470         * marker.c (set_marker_internal):
10471         * marker.c (Fset_marker):
10472         * marker.c (set_marker_restricted):
10473         * marker.c (Fcopy_marker):
10474         * marker.c (noseeum_copy_marker):
10475         * menubar.c:
10476         * menubar.c (Fpopup_menu):
10477         * minibuf.c:
10478         * mule-charset.c (Fcharset_name):
10479         * mule-charset.c (Fchar_charset):
10480         * mule-charset.c (Fchar_octet):
10481         * mule-charset.c (Fsplit_char):
10482         * mule-wnnfns.c (Fwnn_open):
10483         * mule-wnnfns.c (Fwnn_dict_comment):
10484         * mule-wnnfns.c (Fwnn_quit_henkan):
10485         * mule-wnnfns.c (Fwnn_word_toroku):
10486         * mule-wnnfns.c (Fwnn_word_sakujo):
10487         * mule-wnnfns.c (Fwnn_word_use):
10488         * mule-wnnfns.c (Fwnn_hindo_set):
10489         * objects.c:
10490         * objects.c (Fmake_color_instance):
10491         * objects.c (Fmake_font_instance):
10492         * print.c (Fwrite_char):
10493         * process.c:
10494         * process.c (mark_process):
10495         * process.c (print_process):
10496         * process.c (get_process_from_usid):
10497         * process.c (Fprocessp):
10498         * process.c (Fprocess_live_p):
10499         * process.c (Fget_process):
10500         * process.c (Fget_buffer_process):
10501         * process.c (get_process):
10502         * process.c (Fprocess_id):
10503         * process.c (Fprocess_name):
10504         * process.c (Fprocess_command):
10505         * process.c (init_process_io_handles):
10506         * process.c (start_process_unwind):
10507         * process.c (Fstart_process_internal):
10508         * process.c (Fopen_multicast_group_internal):
10509         * process.c (Fset_process_window_size):
10510         * process.c (read_process_output):
10511         * process.c (send_process):
10512         * process.c (Fprocess_tty_name):
10513         * process.c (Fset_process_buffer):
10514         * process.c (Fprocess_buffer):
10515         * process.c (Fprocess_mark):
10516         * process.c (set_process_filter):
10517         * process.c (Fset_process_filter):
10518         * process.c (Fprocess_filter):
10519         * process.c (Fprocess_send_region):
10520         * process.c (Fprocess_send_string):
10521         * process.c (exec_sentinel):
10522         * process.c (Fset_process_sentinel):
10523         * process.c (Fprocess_sentinel):
10524         * process.c (status_notify):
10525         * process.c (Fprocess_status):
10526         * process.c (Fprocess_exit_status):
10527         * process.c (process_send_signal):
10528         * process.c (Fprocess_send_eof):
10529         * process.c (deactivate_process):
10530         * process.c (remove_process):
10531         * process.c (Fdelete_process):
10532         * process.c (kill_buffer_processes):
10533         * process.c (Fprocess_kill_without_query):
10534         * process.c (Fprocess_kill_without_query_p):
10535         * rangetab.c:
10536         * rangetab.c (Fget_range_table):
10537         * rangetab.c (Fput_range_table):
10538         * rangetab.c (Fremove_range_table):
10539         * rangetab.c (Fclear_range_table):
10540         * search.c:
10541         * search.c (Fskip_chars_forward):
10542         * search.c (Fskip_chars_backward):
10543         * search.c (Fskip_syntax_forward):
10544         * search.c (Fskip_syntax_backward):
10545         * search.c (search_command):
10546         * search.c (Freplace_match):
10547         * search.c (Fregexp_quote):
10548         * select.c (Fown_selection_internal):
10549         * select.c (Fselection_owner_p):
10550         * select.c (Fselection_exists_p):
10551         * select.c (Fget_selection_internal):
10552         * specifier.c:
10553         * symbols.c:
10554         * symbols.c (Fintern):
10555         * symbols.c (Fintern_soft):
10556         * symbols.c (Funintern):
10557         * symbols.c (Fapropos_internal):
10558         * symbols.c (Fset_default):
10559         * syntax.c:
10560         * syntax.c (Fsyntax_table_p):
10561         * syntax.c (Fcopy_syntax_table):
10562         * syntax.c (Fset_syntax_table):
10563         * syntax.c (Fchar_syntax):
10564         * syntax.c (syntax_match):
10565         * syntax.c (Fmatching_paren):
10566         * syntax.c (Fforward_word):
10567         * syntax.c (scan_lists):
10568         * syntax.c (Fscan_lists):
10569         * syntax.c (Fscan_sexps):
10570         * syntax.c (Fparse_partial_sexp):
10571         * toolbar.c (Fcheck_toolbar_button_syntax):
10572         * tooltalk.doc:
10573         * window.c:
10574         * window.c (Fwindowp):
10575         * window.c (Fwindow_live_p):
10576         * window.c (Fwindow_point):
10577         * window.c (Fdelete_window):
10578         * window.c (Fnext_window):
10579         * window.c (Fprevious_window):
10580         * window.c (Fother_window):
10581         * window.c (window_loop):
10582         * window.c (Fget_lru_window):
10583         * window.c (Fsplit_window):
10584         * window.c (Fenlarge_window):
10585         * window.c (Fenlarge_window_pixels):
10586         * window.c (Fshrink_window):
10587         * window.c (Fshrink_window_pixels):
10588         * window.c (change_window_height):
10589         * window.c (Fwindow_configuration_p):
10590         * window.c (Fcurrent_window_configuration):
10591         * window.h:
10592         * casefiddle.c (casify_object):
10593         * casefiddle.c (Fupcase):
10594         * casefiddle.c (Fdowncase):
10595         * casefiddle.c (Fcapitalize):
10596         * casefiddle.c (Fupcase_initials):
10597         * casefiddle.c (casify_region_internal):
10598         * casefiddle.c (casify_region):
10599         * casefiddle.c (Fupcase_region):
10600         * casefiddle.c (Fdowncase_region):
10601         * casefiddle.c (Fcapitalize_region):
10602         * casefiddle.c (Fupcase_initials_region):
10603         * casefiddle.c (Fupcase_word):
10604         * casefiddle.c (Fdowncase_word):
10605         * casefiddle.c (Fcapitalize_word):
10606         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10607         Replace 0 with '\0' when working with bytes.
10608         Replace initial "(" with "\(" in docstrings.
10609
10610 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10611
10612         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10613
10614         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10615
10616 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10617
10618         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10619
10620 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10621
10622         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10623         correctly.
10624
10625 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10626
10627         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10628         (inhibit_auto_save_session): New variable.
10629         (vars_of_fileio): Declare and initialize them.
10630         * fileio.c (Fdo_auto_save): Don't create session file if
10631         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10632
10633 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10634
10635         * sgiplay.c (play_internal): C++ compilability.
10636         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10637         * callproc.c (Fold_call_process_internal):
10638         Remove unused vars `env', `first'.
10639         * scrollbar.c (update_scrollbar_instance):
10640         #### unused var `current_window'.
10641         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10642         etc. within #ifdef NOT_YET.
10643         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10644         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10645         * specifier.c (specifier_instance):
10646         #### unused var `tag'.
10647         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10648
10649 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10650
10651         * fns.c (Fbutlast):
10652         * fns.c (list_sort):
10653         * fns.c (Ffillarray):
10654         * fns.c (bytecode_nconc2):
10655         * fns.c (Fnconc):
10656         * fns.c (mapcar1):
10657         * fns.c (Fmapconcat):
10658         Be pedantically 64-bit correct.  For the time when someone will
10659         want to have a list with length > 2**32.
10660
10661         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10662         Work around MIPSpro compiler bug.
10663
10664         * process-unix.c (unix_kill_child_process): Add snarky comment.
10665         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10666
10667         * config.h.in: Oops, _getpt ==> _getpty
10668
10669 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10670
10671         * config.h.in:
10672         * regex.c:
10673         Use void*, not char*, as return type of alloca().
10674
10675         * alloc.c (free_marker): Side effect inside assert expression!
10676
10677 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10678
10679         * mule-charset.c (Fset_charset_ccl_program): To check
10680         if the given ccl program is valid, use setup_ccl_program()
10681         instead of CHECK_VECTOR().
10682         (Fmake_charset): Likewise.
10683
10684 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10685
10686         * faces.c (get_extent_fragment_face_cache_index):
10687         Fix cachel.merged_faces memory leak.
10688
10689 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10690
10691         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10692         Reset MSB of octets obtained by DECODE_SJIS
10693         because of the incompatibility with Emacs.
10694         (ccl_driver)<CCL_ENCODE_SJIS>:
10695         Set MSB of octets before passing them to
10696         ENCODE_SJIS because of the incompatibility
10697         with Emacs.
10698
10699 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10700
10701         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10702         (DECLARE_LRECORD): Undo the last change.
10703         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10704
10705 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10706
10707         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10708         the implementation to lrecord_implementations_table.
10709
10710 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10711
10712         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10713         initial value of `lrecord_type_##c_name' and
10714         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10715         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10716         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10717         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10718         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10719
10720 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10721
10722         * miscplay.c (sndcnv8S_2mono):
10723         (sndcnv2monounsigned):
10724         (sndcnvULaw_2linear):
10725         (sndcnv16swap):
10726         Remove implementation-defined behavior.
10727
10728 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10729
10730         * input-method-xlib.c: Warning suppression.
10731
10732 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10733
10734         * mule-ccl.c: Sync up with Emacs 21.0.90.
10735         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10736         Do nothing.
10737         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10738         Likewise.
10739         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10740         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10741         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10742         leading char belongs to official 2-dimensional charset.
10743         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10744         write the given character as is.  Otherwise,
10745         if it is a multibyte char, convert it by
10746         non_ascii_set_charptr_emchar, then write it.
10747         (CCL_WRITE_STRING): Likewise.
10748         (ccl_get_compiled_code): New function.
10749         (setup_ccl_program): When ccl_prog is invalid,
10750         return -1.
10751         (Fregister_code_conversion_map): New function.
10752         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10753
10754         * mule-ccl.h: Sync up with Emacs 21.0.90.
10755         (Fregister_ccl_program): export it.
10756
10757         * redisplay-msw.c (separate_textual_runs):
10758         If ccl program is not valid, don't do ccl conversion.
10759
10760         * redisplay-x.c (separate_textual_runs): Ditto.
10761
10762         * file-coding.c (Fmake_coding_system):
10763         When type is ccl and value is vector, register it
10764         with a proper symbol.  And checks whether the
10765         given ccl program is valid.
10766         (mule_decode): When calling ccl_driver, if src indicates
10767         NULL pointer, set an empty string instead.
10768         (mule_encode): Likewise.
10769
10770 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10771
10772         The following large batch of changes gets us back to a state of
10773         C++ compilability.  Extbyte is now a char, which means that
10774         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10775
10776         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10777
10778         * sound.c (Fplay_sound): Type correctness.
10779
10780         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10781         (x_get_window_property): Type correctness.
10782         (receive_incremental_selection): unsigned char ==> Extbyte
10783         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10784         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10785         (Fx_store_cutbuffer_internal): Type correctness.
10786
10787         * process-unix.c (try_to_initialize_subtty): Type correctness.
10788
10789         * objects-x.c (x_print_color_instance): Type correctness.
10790         (x_print_font_instance): Type correctness.
10791         (x_list_fonts): SExtbyte ==> Extbyte.
10792         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10793         (x_find_charset_font): SExtbyte ==> Extbyte.
10794         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10795         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10796         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10797         Use bufbyte_strcmp.
10798
10799         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10800         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10801         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10802         (BYTE_C0_P): Use bit ops for char-signedness safety.
10803         (BYTE_C1_P): Use bit ops for char-signedness safety.
10804         (CHARSET_BY_LEADING_BYTE):
10805         (CHARSET_BY_ATTRIBUTES):
10806         Always use inline function.
10807         Use type_checking_assert.
10808         Hide chlook.
10809
10810         * mule-charset.c (non_ascii_charptr_copy_char):
10811         Modify to work with both ASCII and non-ASCII characters.
10812         Improve docs and variable names.
10813         Replace over-clever fall-through switch with a simple loop.
10814         (Lstream_get_emchar_1):
10815         Replace over-clever fall-through switch with a simple loop.
10816
10817         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10818         Warning suppression.
10819
10820         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10821         the return value of Lstream_getc, which could be EOF as well.
10822
10823         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10824
10825         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10826         APIs can be used on Extbytes without casts.  Risky!
10827         (SExtbyte): Remove.
10828         (UExtbyte): Remove.
10829
10830         * input-method-xlib.c (XIM_init_device):
10831         Use Xlib.h instead of IntrinsicP.h.
10832         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10833         which will break in X11R7.
10834         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10835         to call XRegisterIMInstantiateCallback with correct types.
10836
10837         * gui-x.c (button_item_to_widget_value): Type correctness.
10838
10839         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10840
10841         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10842         (xbm_instantiate_1): Type correctness.
10843         (BUILD_GLYPH_INST):  Type correctness.
10844
10845         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10846
10847         * file-coding.c:
10848         (decode_coding_sjis):
10849         (decode_coding_big5):
10850         (decode_coding_ucs4):
10851         (decode_coding_utf8):
10852         (decode_coding_iso2022):
10853         (decode_coding_no_conversion):
10854         Make all decoding functions take an Extbyte * arg.
10855         (encode_coding_sjis):
10856         (encode_coding_big5):
10857         (encode_coding_ucs4):
10858         (encode_coding_utf8):
10859         (encode_coding_iso2022):
10860         (encode_coding_no_conversion):
10861         Make all encoding functions take a Bufbyte * arg.
10862         Use size_t instead of unsigned int for memory sizes.
10863         Only cast to unsigned char whenever dereferencing Extbyte *.
10864
10865         * doc.c (unparesseuxify_doc_string): Type correctness.
10866
10867         * console-x.c (split_up_display_spec):
10868         Rewrite without using details of internal string representation.
10869         (x_semi_canonicalize_device_connection): Type correctness.
10870
10871         * config.h.in:
10872         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10873         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10874         (HAVE_XFREE386): Removed.
10875
10876         * buffer.h (DEC_CHARPTR): `const' correctness.
10877         (bufbyte_strcmp): New.
10878         (bufbyte_memcmp): New.
10879
10880         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10881
10882         * buffer.h (XCHAR_OR_CHAR_INT):
10883         Always use inline function.
10884         Remove redundant type checking assert() - XINT will abort quite nicely.
10885
10886 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10887
10888         * search.c (Freplace_match): Set newtext to an empty string.
10889
10890 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10891
10892         * s/decosf1-3.h: Remove #include of stropts.h
10893         * s/ptx.h: Remove #include of stropts.h
10894         * s/usg5-4.h: Remove #include of stropts.h
10895         * sysproc.h:
10896         * config.h.in:
10897         Use stropts.h, not sys/stropts.h.
10898         Use strtio.h, not sys/strtio.h.
10899
10900 2000-10-04  Martin Buchholz <martin@xemacs.org>
10901
10902         * XEmacs 21.2.36 is released.
10903
10904 2000-09-21  Andy Piper  <andy@xemacs.org>
10905
10906         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10907         changes still involve copying the widget tree.
10908         (update_widget_face): make sure a change is register in the widget
10909         tree. Call update_tab_widget_face appropriately.
10910         (update_tab_widget_face): ditto.
10911         (x_tab_control_redisplay): make sure non-structural changes still
10912         involve copying the widget tree.
10913
10914 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10915
10916         * lread.c (locate_file): Check the path element is non-nil.
10917
10918 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10919
10920         * lisp.h: Warning suppression for SCO compilers.
10921
10922         * redisplay-tty.c (reset_tty_modes): Fix crash.
10923         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10924
10925 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10926
10927         Big signal/process handling overhaul.  Bugs fixed:
10928         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10929         M-x comint-kill-subjob should work for both values nil and t of
10930         process-connection-type. It was broken on most platforms.
10931         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10932         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10933         * process-unix.c: Signal/Process handling overhaul.
10934         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10935         (allocate_pty): Use all available modern methods of allocating
10936         ptys, falling back to old style BSD allocation as a last resort.
10937         Use allegedly more secure Unix98 pty allocation by default.
10938         (allocate_pty_the_old_fashioned_way): New. the last resort.
10939         (unix_create_process): Push ptem, ldterm, ttcompat where
10940         available.  Autoconfiscate.
10941         (try_to_initialize_subtty): New.
10942         (unix_kill_child_process): Proper signal handling for ptys on most
10943         platforms, using special knowledge of AIX, BSD, etc...
10944         (unix_create_process): Always disconnect_controlling_terminal() for
10945         subprocesses, whether using ptys or not.
10946         * process.h: Remove old getpt-dependent PTY code.
10947         * process.c (Fprocess_send_signal): New, obvious generic function.
10948         (decode_signal): New.
10949         (Finterrupt_process):
10950         (Fkill_process):
10951         (Fquit_process):
10952         (Fstop_process):
10953         (Fcontinue_process):
10954         (Fsignal_process): Use decode_signal.
10955         (process_send_signal):
10956         Many docstring corrections.
10957         Allow any signal to be sent to a process object.
10958         * config.h.in: Add symbols for big signal/process overhaul.
10959         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10960         * sysproc.h: Include process-related headers, where available:
10961         sys/stropts.h sys/strtio.h pty.h libutil.h
10962         * s/irix4-0.h:
10963         * s/irix5-0.h:
10964         * s/cygwin32.h:
10965         * s/gnu.h:
10966         * s/linux.h:
10967         * s/hpux.h:
10968         * s/aix3-1.h:
10969         Remove old S&M pty stuff.
10970         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10971         * systty.h: Simplify cpp hackery, improve comments.
10972         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10973
10974         * editfns.c (Fformat_time_string):
10975         Be a little more paranoid with the return value of ctime.
10976
10977         * fileio.c (check_executable):
10978         (check_writable):
10979         Use symbolic constants X_OK, W_OK.
10980
10981         * console-x.c (split_up_display_spec): Fix a warning.
10982
10983 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10984
10985         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10986         * ntproc.c (sys_spawnve): make_string ==> build_string
10987         Small clarity improvements.
10988
10989 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10990
10991         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10992
10993         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10994
10995         * config.h.in (HAVE_STRCASECMP): Remove.
10996
10997 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10998
10999         * redisplay-output.c (redisplay_output_pixmap):
11000         Cleaner and possibly more 64-bit correct code.
11001
11002 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11003
11004         * dumper.c (pdump_load_finish): move restoration of
11005         `noninteractive1' to emacs.c (main_1).
11006         * emacs.c (main_1): protect LISP-visible command-line flags
11007         from pdump_load().
11008
11009 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11010
11011         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11012         DUMP_TARGET instead of literal program names.
11013
11014 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11015
11016         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11017
11018 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11019
11020         * *: Spelling mega-patch
11021
11022 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11023
11024         * fns.c (bad_bad_turtle):
11025         Delete "Eek!" comment, since we fixed the bug to which it refers.
11026
11027 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11028
11029         * alloca.c: Replace REGISTER with register.
11030
11031 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11032
11033         * file-coding.c (ucs_to_char): Use countof.
11034
11035 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11036
11037         * file-coding.c: (ucs_to_char):
11038         (complex_vars_of_file_coding):
11039         Use countof instead of sizeof.
11040         Use CHECK_NATNUM instead of CHECK_INT.
11041
11042         * sysdep.c (strcasecmp): Remove.
11043         * device-x.c (ascii_strcasecmp): New.
11044         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11045         Avoid using non-standard non-portable strcasecmp.
11046
11047 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11048
11049         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11050         * font-lock.c: remove reference to emacsfns.h.
11051         * search.c: small doc improvement.
11052         * event-Xt.c: correct file names in comments.
11053         * console-x.h Correct file names in comments.
11054         * frame.c: Correct file names in comments.
11055         * event-stream.c: remove Energize from comments.
11056
11057 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11058
11059         * symeval.h (DEFERROR_STANDARD):
11060         (DEFERROR):
11061         (DEFSYMBOL):
11062         (DEFSYMBOL_NO_DUMP):
11063         (DEFSYMBOL_MULTIWORD_PREDICATE):
11064         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11065         (DEFKEYWORD):
11066         The construct &##name is not sensible C.
11067         Fixes compilation errors with Unixware native compiler.
11068
11069 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11070
11071         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11072         (next_frame_internal): Removed.  We now just have next_frame.
11073         (next_frame):
11074         Write a simpler and cleaner one-pass algorithm.
11075         Remove called_from_delete_device arg and #ifdefed-out code.
11076         (previous_frame):
11077         Renamed from prev_frame.  Update callers.
11078         Cleaned up to have an analogous implementation to next_frame.
11079         (other_visible_frames_internal): Remove the
11080         called_from_delete_device bogus arg, and hence, remove this
11081         function.  Just use other_visible_frames().
11082
11083         * window.c (Fnext_window):
11084         Prettify docstring.
11085         Since next_frame() is guaranteed to return a frame, remove check
11086         for nil inserted in previous patch.
11087         (Fprevious_window):
11088         Prettify docstring.
11089         Make code look more like Fnext_window.
11090         (window_loop):
11091         Respect the `console' arg when iterating through windows.
11092         Fixes bug: (get-buffer-window buffer t device) not respecting
11093         the `device' arg.
11094         This function needs more work, as others have pointed out.
11095
11096         * frame.h: Rename prev_frame to previous_frame.
11097         device_matches_console_spec no longer takes a `frame' arg.
11098
11099         * s/gnu.h:
11100         * s/linux.h:
11101         * s/hpux.h:
11102         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11103         From "Golubev I. N." <gin@mo.msk.ru>.
11104
11105         * make-src-depend: Fix typo.
11106
11107 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11108
11109         * window.c (Fnext_window):
11110         next_frame() might return nil, not a frame.
11111         Fixes this crash:
11112         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11113
11114         * frame.c (next_frame_internal):
11115         We've passed a frame if we've passed its device.
11116         Fixes this crash:
11117         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11118 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11119
11120 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11121
11122         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11123         Allow option to suppress accelerators in menu/dialog items.
11124         (populate_or_checksum_helper): Pass dialog title through above.
11125
11126 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11127
11128         * event-msw.c (mswindows_key_to_emacs_keysym):
11129         Add "pause" key, fix "menu" key.
11130
11131 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11132
11133         * eval.c (reinit_vars_of_eval):
11134         Increase max_lisp_eval_depth to 1000,
11135         required for thai-xtis.el to byte-compile under some circumstances.
11136
11137 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11138
11139         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11140         From Kenichi Handa.
11141
11142 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11143
11144         * make-src-depend: Make the generated Makefiles smaller.
11145
11146         * s/hpux.h (SETUP_SLAVE_PTY):
11147         Provide a %d in the format string for the errno argument.
11148
11149         * editfns.c (Ftemp_directory):
11150         Warning fix.
11151         Avoid buffer overrun on very long file name.
11152
11153         * input-method-xlib.c (XIM_init_device):
11154         6th parameter of XRegisterIMInstantiateCallback has different
11155         pointer types on different OSes, so simply cast to (void *).
11156
11157         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11158
11159         * sysdll.c (dll_open):
11160         shl_load will hang hard if passed a NULL filename.
11161         Simply return NULL for compatibility with dlopen.
11162         * sysdll.c: Conform to XEmacs coding standards.
11163
11164         * sysdep.c (get_pty_max_bytes):
11165         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11166
11167 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11168
11169         * tooltalk.c: Add #include <syssignal.h>
11170
11171 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11172
11173         * s/hpux.h: Don't use undefined function sigunblock().
11174
11175 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11176
11177         * config.h.in: Add HAVE_BALLOON_HELP.
11178         * emacs.c: Use HAVE_BALLOON_HELP.
11179         * Makefile.in.in (x_objs):
11180         Make Balloon Help conditional on finding shape.h.
11181
11182 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11183
11184         * syntax.c (regex_emacs_buffer_p): New variable.
11185         * syntax.h (regex_emacs_buffer_p): extern.
11186         * search.c (looking_at_1):
11187         (string_match_1):
11188         (fast_string_match):
11189         (search_buffer): Set regex_emacs_buffer_p.
11190         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11191         when before_dot, at_dot, after_dot.
11192
11193 2000-08-23  Andy Piper  <andy@xemacs.org>
11194
11195         * gui-x.c (popup_selection_callback): Only set action_occurred
11196         when we really have an image instance.
11197         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11198
11199 2000-08-23  Andy Piper  <andy@xemacs.org>
11200
11201         * gui-msw.c (mswindows_handle_gui_wm_command): set
11202         action_occurred.
11203         * gui-x.c (popup_selection_callback): ditto.
11204
11205         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11206         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11207         (struct Lisp_Image_Instance): add action_occurred flag.
11208
11209         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11210         (image_instance_changed): ditto.
11211         (reset_frame_subwindow_instance_cache): only unmap windows - do
11212         not remove them from the cache also.
11213
11214         * glyphs-widget.c (tab_control_update): better debug.
11215         (progress_gauge_update): ditto.
11216         (layout_update): ditto.
11217         (layout_instantiate): ditto.
11218         (tab_control_order_only_changed): cope with null pending items.
11219
11220         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11221         debug. Force selection of an item when an action occurred. Cope
11222         with null pending_items.
11223         (mswindows_progress_gauge_redisplay): better debug.
11224         * glyphs-x.c (x_tab_control_redisplay): ditto.
11225
11226         * redisplay.c (redisplay_frame): reset the frame cache if the
11227         frame is garbaged.
11228
11229         * window.c (Fset_window_configuration): potentially re-enable
11230         frame cache reset.
11231         (window_unmap_subwindows): need to finalize instances here since
11232         it is only used in mark_window_as_deleted.
11233
11234 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11235
11236         * nas.c (SndOpenDataForReading):
11237         nas.c (WaveOpenDataForReading):
11238         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11239         Somehow escaped from the 2000-08-14 patch.
11240
11241 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11242
11243         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11244         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11245
11246 2000-08-21  Andy Piper  <andy@xemacs.org>
11247
11248         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11249         window if it is not already displayed.
11250
11251         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11252         it is not already displayed.
11253
11254         * window.c (Fset_window_configuration): don't reset the frame
11255         cache.
11256
11257         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11258         instances from the frame cache if we are actually finalizing them.
11259         (reset_frame_subwindow_instance_cache): reset frame cache only
11260         after unmapping everything.
11261         (map_subwindow): set displayed flag after mapping.
11262
11263 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11264
11265         * data.c (indirect_function):
11266         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11267
11268         * eval.c (function_argcount):
11269         Use original function when signaling errors.
11270
11271 2000-08-18  Andy Piper  <andy@xemacs.org>
11272
11273         * frame.c (delete_frame_internal): use new
11274         free_frame_subwindow_instances name.
11275
11276         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11277         (add_tab_item): make return type correct.
11278         (mswindows_tab_control_instantiate): assert index of tab.
11279         (mswindows_tab_control_redisplay): Re-code to use
11280         gui_item_equal_sans_selected and gui_item_list_find_selected.
11281
11282         * glyphs-widget.c (tab_control_update): Correct comment.
11283
11284         * window.c (window_unmap_subwindows): use new
11285         unmap_subwindow_instance_cache_mapper.
11286         (window_unmap_subwindows_cache_mapper): deleted.
11287         (Fset_window_configuration): comparisons should now be with
11288         EQ. Preserve the subwindow instance cache across configuration
11289         changes.
11290         (allocate_window): ditto.
11291         (make_dummy_parent): ditto.
11292
11293         * glyphs.c (free_frame_subwindow_instances): rename from
11294         free_frame_subwindow_instance_cache. finalize all instances rather
11295         than just those in the display cache.
11296         (finalize_all_subwindow_instances): walk windows unmapping and
11297         finalizing subwindows.
11298         (unmap_subwindow_instance_cache_mapper): moved from
11299         window.c. Allow finalization as well as unmapping.
11300
11301         * gui.c (gui_item_list_find_selected): new function.
11302
11303         * gui.h (gui_item_list_find_selected): declare.
11304
11305         * glyphs-x.c (x_tab_control_redisplay): pick tab
11306         explicitly. Re-code to use gui_item_equal_sans_selected and
11307         gui_item_list_find_selected.
11308
11309         * glyphs-x.h: add lwlib-utils.h
11310
11311         * buffer.c (Frecord_buffer): undo previous change.
11312
11313 2000-08-09  Vin Shelton  <acs@xemacs.org>
11314
11315         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11316         possible.  Create temporary files more securely.  The patch was
11317         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11318         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11319         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11320         for details.
11321
11322 2000-08-07  Ben Wing  <ben@xemacs.org>
11323
11324         * getloadavg.c: remove duplicate (and windows-breaking)
11325         includes of fcntl.h and sys/file.h.
11326
11327         * nt.c: remove duplicate getloadavg() definition.
11328
11329         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11330         encodings.
11331
11332 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11333
11334         * eval.c (function_argcount): If function needs to be autoloaded
11335         actually use the loaded definition.
11336         GCPRO function.
11337
11338 2000-08-05  Ben Wing  <ben@xemacs.org>
11339
11340         * getloadavg.c: add prototype for getloadavg().  remove
11341         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11342         of the code).  remove duplicate header includes.
11343
11344         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11345
11346         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11347         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11348         useful load average.
11349
11350         * alloc.c (reinit_alloc_once_early): removed references to
11351         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11352         the lisp vars are the only things referencing the malloc_sbrk_*
11353         vars, and they were already if 0'd out.  these vars only exist
11354         in the older malloc.c, which is basically unused, and they're
11355         only for informational purposes.
11356
11357         * m\*.h: removed useless VIRT_ADDR_VARIES.
11358
11359         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11360
11361 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11362
11363         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11364         color if the image is a mono pixmap.
11365
11366 2000-07-30  Ben Wing  <ben@xemacs.org>
11367
11368         * Makefile.in.in (release):
11369         Remove stray @.
11370
11371         * buffer.c (directory_is_current_directory):
11372         * dired-msw.c (mswindows_get_files):
11373         * dired.c:
11374         * dired.c (Fdirectory_files):
11375         * dired.c (file_name_completion_stat):
11376         * dired.c (Ffile_attributes):
11377         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11378         preprocessor tricks, to avoid problems on some machines
11379         (e.g. SCO).
11380
11381         * callproc.c (egetenv): GC docs.
11382
11383         * console-msw.h:
11384         * console-msw.h (struct mswindows_dialog_id):
11385         * lrecord.h (lrecord_type):
11386         New object for use with MSW dialogs.
11387
11388         * console.h (struct console_methods):
11389         New enable/disable frame methods, for proper modal dialogs.
11390
11391         * device-msw.c (msprinter_default_printer): Fix to follow
11392         proper Mule conventions.
11393
11394         * device-msw.c:
11395         * device-msw.c (signal_open_printer_error):
11396         * device-msw.c (msprinter_init_device):
11397         * device-msw.c (ensure_not_printing):
11398         * device-msw.c (plist_get_margin):
11399         * device-msw.c (Fmsprinter_select_settings):
11400         * device-msw.c (finalize_devmode):
11401         * device-msw.c (Fmsprinter_settings_despecialize):
11402         * device-msw.c (signal_enum_priner_error):
11403         * extents.c (decode_extent):
11404         * extents.c (decode_map_extents_flags):
11405         * extents.c (decode_extent_at_flag):
11406         * extents.c (Fextent_at):
11407         * extents.c (Fextents_at):
11408         * extents.c (symbol_to_glyph_layout):
11409         [[[[2]]]] Use structured errors.
11410
11411         * dialog-msw.c:
11412         * dialog-msw.c (mswindows_is_dialog_msg):
11413         * dialog-msw.c (mark_mswindows_dialog_id):
11414         * dialog-msw.c (dialog_proc):
11415         * dialog-msw.c (handle_question_dialog_box):
11416         * dialog-msw.c (syms_of_dialog_mswindows):
11417         Define new object to clean up marking; use it as a dialog identifier.
11418         Call new delete-dialog-box-hook.
11419
11420         * dialog-x.c (dbox_selection_callback):
11421         * dialog-x.c (dbox_descriptor_to_widget_value):
11422         * dialog-x.c (x_make_dialog_box_internal):
11423         Call new delete-dialog-box-hook.
11424         Return an id.
11425
11426         * dialog.c:
11427         * dialog.c (syms_of_dialog):
11428         * dialog.c (vars_of_dialog):
11429         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11430
11431         * eval.c:
11432         * eval.c (signal_call_debugger):
11433         when noninteractive, output stack traces on the console instead
11434         of in a (never-seen) buffer.
11435
11436         * eval.c (signal_type_error):
11437         * eval.c (invalid_argument_2):
11438         * lisp.h:
11439         new funs for use w/structured errors.
11440
11441         * event-Xt.c:
11442         * event-Xt.c (x_to_emacs_keysym):
11443         * event-Xt.c (describe_event):
11444         * event-Xt.c (emacs_Xt_event_handler):
11445         * event-Xt.c (vars_of_event_Xt):
11446         * event-msw.c:
11447         * event-msw.c (mswindows_wnd_proc):
11448         * event-msw.c (vars_of_event_mswindows):
11449         rename {x,mswindows}-debug-events to debug-{}-events for
11450         consistency with other debug-foo variables.
11451
11452         * event-stream.c:
11453         document next-event more clearly.
11454
11455         * fileio.c (Ffile_name_directory):
11456         * fileio.c (Ffile_name_nondirectory):
11457         * fileio.c (Funhandled_file_name_directory):
11458         * fileio.c (file_name_as_directory):
11459         * fileio.c (Ffile_name_as_directory):
11460         * fileio.c (directory_file_name):
11461         * fileio.c (Fdirectory_file_name):
11462         * fileio.c (Fmake_temp_name):
11463         * fileio.c (Ffile_truename):
11464         * fileio.c (Fsubstitute_in_file_name):
11465         * fileio.c (expand_and_dir_to_file):
11466         * fileio.c (barf_or_query_if_file_exists):
11467         * fileio.c (check_executable):
11468         * fileio.c (Ffile_exists_p):
11469         * fileio.c (Ffile_writable_p):
11470         * fileio.c (Ffile_directory_p):
11471         * fileio.c (Ffile_regular_p):
11472         * fileio.c (Ffile_modes):
11473         * fileio.c (Ffile_newer_than_file_p):
11474         * fileio.c (Fverify_visited_file_modtime):
11475         * fileio.c (Fset_visited_file_modtime):
11476         * fileio.c (auto_save_1):
11477         (1). (2).
11478         fix up gcpro's.
11479
11480         * frame-msw.c:
11481         * frame-msw.c (mswindows_init_frame_1):
11482         * frame-msw.c (mswindows_enable_frame):
11483         * frame-msw.c (error_frame_unsizable):
11484         * frame-msw.c (msprinter_init_frame_1):
11485         * frame-msw.c (msprinter_init_frame_3):
11486         * frame-msw.c (console_type_create_frame_mswindows):
11487         (2).
11488         implement new enable/disable frame methods.
11489
11490         * frame-x.c:
11491         * frame-x.c (x_enable_frame):
11492         * frame-x.c (console_type_create_frame_x):
11493         implement new enable/disable frame methods.
11494
11495         * frame.c:
11496         * frame.c (Fdisable_frame):
11497         * frame.c (syms_of_frame):
11498         * frame.h (struct frame):
11499         implement new enable/disable frame methods/functions.
11500
11501         * general-slots.h:
11502         add initial-focus.
11503
11504         * glyphs-msw.c (mswindows_widget_instantiate):
11505         comment that initial-focus should be implemented.
11506
11507         * glyphs-widget.c:
11508         * glyphs-widget.c (check_valid_instantiator):
11509         * glyphs-widget.c (check_valid_orientation):
11510         * glyphs-widget.c (check_valid_tab_orientation):
11511         * glyphs-widget.c (check_valid_justification):
11512         * glyphs-widget.c (check_valid_border):
11513         * glyphs-widget.c (check_valid_callback):
11514         * glyphs-widget.c (check_valid_int_or_function):
11515         * glyphs-widget.c (check_valid_string_or_vector):
11516         * glyphs-widget.c (check_valid_item_list_1):
11517         * glyphs-widget.c (widget_validate):
11518         * glyphs-widget.c (combo_box_validate):
11519         * glyphs-widget.c (widget_instantiate):
11520         * glyphs-widget.c (syms_of_glyphs_widget):
11521         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11522         * glyphs-widget.c (image_instantiator_combo_box):
11523         * glyphs-widget.c (image_instantiator_scrollbar):
11524         * glyphs-widget.c (image_instantiator_tab_control):
11525         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11526         (2).
11527         support (unimplemented) keyword initial-focus.
11528         reindent long macros.
11529
11530         * glyphs-x.c (x_redisplay_widget):
11531         * glyphs-x.c (x_button_instantiate):
11532         * glyphs-x.c (x_button_redisplay):
11533         * glyphs-x.c (x_progress_gauge_instantiate):
11534         * glyphs-x.c (x_edit_field_instantiate):
11535         * glyphs-x.c (x_combo_box_instantiate):
11536         * glyphs-x.c (x_tab_control_instantiate):
11537         * glyphs-x.c (x_label_instantiate):
11538         * gui-x.c:
11539         * gui-x.c (button_item_to_widget_value):
11540         * gui-x.c (gui_items_to_widget_values_1):
11541         * gui-x.c (gui_item_children_to_widget_values):
11542         * gui-x.c (gui_items_to_widget_values):
11543         * gui-x.h:
11544         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11545         add new flag to gui-parsing routines to indicate whether
11546         accelerator specs should be supported.
11547
11548         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11549
11550         * glyphs.h (struct Lisp_Image_Instance):
11551         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11552         add initial-focus flag.
11553
11554         * gui.c:
11555         * gui.c (syms_of_gui):
11556         * gui.c (vars_of_gui):
11557         clean up menu-no-selection-hook.
11558
11559         * gui.h:
11560         support delete-dialog-box-hook.
11561
11562         * lread.c (Fload_internal):
11563         * lread.c (locate_file_in_directory_mapper):
11564         (1).
11565
11566         * lrecord.h:
11567         * lrecord.h (struct toolbar_button):
11568         * lrecord.h (syms_of_toolbar):
11569         document how to create a new object.
11570
11571         * menubar-msw.c (mswindows_char_is_accelerator):
11572         may be called on frames w/o menus.
11573
11574         * menubar.c (vars_of_menubar):
11575         clean up :filter docs.
11576
11577         * nt.c (readdir):
11578         * ntproc.c:
11579         (1).
11580
11581         * process-nt.c:
11582         * process-nt.c (validate_signal_number):
11583         * process-nt.c (signal_cannot_launch):
11584         * process-nt.c (nt_create_process):
11585         * process-nt.c (nt_send_process):
11586         * process-nt.c (nt_kill_child_process):
11587         * process-nt.c (nt_open_network_stream):
11588         * process-nt.c (syms_of_process_nt):
11589         (2).
11590         delete quote-handling.  call new lisp code that does it better.
11591
11592         * process-unix.c (connect_to_file_descriptor):
11593         * process-unix.c (allocate_pty):
11594         * process-unix.c (unix_send_process):
11595         * process-unix.c (unix_kill_child_process):
11596         * process-unix.c (unix_open_network_stream):
11597         * process-unix.c (unix_open_multicast_group):
11598         (1). (2).
11599
11600         * process.c:
11601         * process.c (Fstart_process_internal):
11602         (2).  need to canonicalize process path even if absolute.
11603
11604         * select-msw.c (symbol_to_ms_cf):
11605         * select-msw.c (ms_cf_to_symbol):
11606         * select-msw.c (cf_is_autofreed):
11607         * select-msw.c (mswindows_destroy_selection):
11608         * select.c:
11609         * select.c (syms_of_select):
11610         * select.h:
11611         support dibv5, fix bugs. (from Mike Alexander)
11612
11613         * select.c (Fget_selection_internal):
11614         * select.c (select_convert_out):
11615
11616         * sysdep.c:
11617         * sysdep.c (xemacs_stat):
11618         renamed.
11619
11620         * sysdep.c (mkdir):
11621         * sysdep.c (rmdir):
11622         but keep original stat() here because we provide encapsulation
11623         around these funs.
11624
11625         * sysfile.h:
11626         * sysfile.h (fstat):
11627         remove stat garbage.
11628
11629         * syswindows.h:
11630         fix X/MSW conflict.
11631         don't include tchar.h.  it's inappropriate because it makes
11632         compile-time distinctions when we want runtime distinctions.
11633         (we provide our own tchar replacements)
11634
11635         * toolbar.c:
11636         use default object printer for toolbar-button.
11637
11638         * unexcw.c:
11639         make sure we don't encapsulate.
11640
11641         * window.c (vars_of_window):
11642         emphasize that temp-buffer-show-hook is obsolete.
11643
11644 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11645
11646         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11647         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11648
11649         * events.c (Fevent_timestamp_lessp):
11650         Not 64-bit clean.  Use EMACS_INT, not int.
11651
11652 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11653
11654         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11655         unsigned int and changed the last enum to
11656         lrecord_type_last_built_in_type.
11657         (lrecord_implementations_table): changed prototype to know how
11658         long the array is supposed to be.
11659         (lrecord_type_count): new unsigned int to keep track of the
11660         current number of lisp lrecord types.
11661         (DEFINE_EXTERNAL_LRECORD):
11662         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11663         dynamic-modules to declare new lisp types. They are the same
11664         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11665         int for each new type, and increment lrecord_type_count by 1.
11666
11667         * alloc.c (lrecord_implementations_table): Changed to reference
11668         lrecord_type_last_built_in_type for the size of the array.
11669         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11670
11671 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11672
11673         * glyphs.h (check_valid_item_list): Renamed from
11674         check_valid_item_list_1.
11675
11676 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11677
11678         * select.c (Qselect_coerce): New.
11679         * select.c (Vselection_coercion_alist): New.
11680         * select.c (syms_of_select): Declare.
11681         * select.c (get-selection-internal): Use it.
11682         Use the new select-coerce functionality.
11683
11684         * select.c (select_coerce): New.
11685         * select.h (select_coerce): Declare.
11686         New function to coerce one type of data into another.
11687
11688 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11689
11690         * callproc.c (Fcall_process_internal):
11691         (Fcall_process_internal):
11692         * process-unix.c (unix_create_process):
11693         Save and restore the value of errno, so that error messages are accurate.
11694
11695 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11696
11697         * elhash.c (print_hash_table):
11698         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11699         Prettify docstrings and indentation.
11700
11701 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11702
11703         * window.c (Fwindow_pixel_edges): Subtract frame border and
11704         gutter size.
11705
11706 2000-07-31  Andy Piper  <andy@xemacs.org>
11707
11708         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11709         will acknowledge the change.
11710
11711         * glyphs.h: declare tab_control_order_only_changed.
11712
11713         * glyphs-x.c (x_tab_control_redisplay): use
11714         tab_control_order_only_changed.
11715
11716         * glyphs-widget.c (tab_control_order_only_changed): new function.
11717
11718         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11719         tab_control_order_only_changed.
11720
11721         * gui.c (gui_item_equal_sans_selected): new function.
11722         (gui_item_equal): use it.
11723
11724         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11725         :properties in favor of :items..
11726
11727         * glyphs-widget.c (check_valid_item_list): rename from
11728         check_valid_item_list_1.
11729         (check_valid_item_list_1): renamed.
11730         (combo_box_validate): deprecate :properties in favor of :items.
11731         (widget_instantiate): ditto.
11732         (tab_control_update): ditto.
11733         (image_instantiator_combo_box): ditto.
11734         (image_instantiator_tree_view): ditto.
11735         (image_instantiator_tab_control): ditto.
11736         (layout_post_instantiate): remove dead code.
11737
11738         * print.c (debug_print_no_newline): only write to debugger if in
11739         WIN32_NATIVE.
11740
11741         * elhash.c (Fmake_hash_table): update doc string.
11742
11743         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11744         messages whilst in GC. This at least stops XEmacs crashing but has
11745         the potential for wierd behaviour.
11746
11747 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11748
11749         * config.h.in:
11750         Make existence of s&m files optional.
11751
11752         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11753         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11754         * s/gnu.h: Remove HAVE_GETLOADAVG.
11755         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11756         * s/sol2.h: Remove HAVE_GETLOADAVG.
11757         * lisp.h: Remove getloadavg() declaration.
11758         * fns.c:
11759         Include <sys/loadavg.h> if available.
11760         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11761         * config.h.in:  Group together getloadavg()-related macros.
11762         Use only configure-time tests to detect getloadavg().
11763
11764 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11765
11766         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11767
11768 2000-07-25  Andy Piper  <andy@xemacs.org>
11769
11770         * syswindows.h: add tchar.h for native builds.
11771
11772         * frame.c (syms_of_frame): remove set-glyph-image.
11773
11774         * general-slots.h: add Qset_glyph_image.
11775
11776         * glyphs-widget.c (layout_update): add domain arg to
11777         set-glyph-image.
11778         (syms_of_glyphs_widget): remove set-glyph-image.
11779
11780 2000-07-23  Ben Wing  <ben@xemacs.org>
11781
11782         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11783         Vpopup_frame_list.
11784
11785 2000-07-22  Andy Piper  <andy@xemacs.org>
11786
11787         * symsinit.h: add syms_of_win32().
11788
11789         * gui-msw.c (syms_of_gui_mswindows): remove
11790         Fmswindows_shell_execute.
11791         (Fmswindows_shell_execute): moved to win32.c.
11792
11793         * emacs.c (main_1): add syms_of_win32 ().
11794
11795         * win32.c (init_potentially_nonexistent_functions): rewrite in
11796         compiler-friendly terms.
11797         (Fmswindows_shell_execute): move here from gui-msw.c.
11798         (syms_of_win32): new.
11799
11800         * device-msw.c (Fmswindows_printer_list): clean up args to
11801         EnumPrinters.
11802         Don't include tchar under cygwin or mingw.
11803         (msprinter_default_printer): make cygwin-friendly.
11804
11805 2000-07-21  Andy Piper  <andy@xemacs.org>
11806
11807         * glyphs-widget.c (image_instantiator_tree_view): use tab
11808         control's update function.
11809         (layout_property): new function. Retrieve items.
11810
11811         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11812         function. Re-populate the tree view from the pending items.
11813
11814         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11815         is designated the parent if the domain is an image instance. This
11816         is needed so that dirtiness can be cascade up the hierarchy and
11817         thus for layout children to be redisplayed correctly.
11818         (allocate_image_instance): rename glyph -> parent.
11819
11820         * redisplay.h: change redisplay_output_layout signature.
11821
11822         * redisplay-msw.c (mswindows_output_display_block): use domain
11823         arg.
11824
11825         * redisplay-x.c (x_output_display_block): use domain arg.
11826
11827 2000-07-10  Andy Piper  <andy@xemacs.org>
11828
11829         * window.c (Fset_window_configuration): add comment.
11830
11831         * redisplay-output.c (compare_runes):
11832         (redisplay_output_subwindow): redisplay rather than update subwindow.
11833         (redisplay_output_layout): ditto.
11834
11835         * redisplay-msw.c (mswindows_frame_output_end):
11836         (mswindows_frame_output_end): make defer window pos optional.
11837
11838         * lisp.h: add Flast.
11839
11840         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11841         normalize method. Change update method to be for changed
11842         instantiators. Add redisplay method. Change signature of layout
11843         method.
11844         (struct Lisp_Image_Instance): add instantiator.
11845         (IMAGE_INSTANCE_INSTANTIATOR): new.
11846         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11847         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11848         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11849
11850         * glyphs.c:
11851         (find_instantiator_differences): new function.
11852         (Fset_instantiator_property): new convenience function.
11853         (check_image_instance_structure): strictly check for vector
11854         instantiators.
11855         (normalize_image_instantiator): make non-static.
11856         (instantiate_image_instantiator): pass on dest_mask and use new
11857         signatures for image_instance_layout and friends.
11858         (mark_image_instance): mark the instantiator. Mark the subwindow
11859         face not the widget face.
11860         (image_instance_equal): add instantiator.
11861         (image_instance_hash): ditto.
11862         (allocate_image_instance): ditto.
11863         (Fset_image_instance_property): removed.
11864         (Fimage_instance_file_name): ditto.
11865         (Fcolorize_image_instance): ditto.
11866         (image_instance_layout): add offsets to be set.
11867         (update_image_instance): new function. update an image instance
11868         from its changed instantiator.
11869         (inherit_normalize): add dest_mask.
11870         (xbm_normalize): ditto.
11871         (xface_normalize): ditto.
11872         (xpm_normalize): ditto.
11873         (text_update): set_property -> update.
11874         (image_instantiate): use the glyph identity as a hash key, not the
11875         instantiator.
11876         (glyph_width): use new image_instance_layout signature.
11877         (glyph_ascent): ditto.
11878         (glyph_descent): ditto.
11879         (glyph_height): ditto.
11880         (glyph_query_geometry): ressurrect.
11881         (glyph_layout): ditto.
11882         (redisplay_subwindow): update -> redisplay.
11883         (syms_of_glyphs): add Fset_instantiator_property.
11884         (image_instantiator_format_create): set_property -> update.
11885
11886         * glyphs-x.c:
11887         (autodetect_normalize): add dest_maks to signature.
11888         (x_redisplay_subwindow): update -> redisplay.
11889         (x_redisplay_widget): ditto.
11890         (x_button_redisplay): ditto.
11891         (x_progress_gauge_redisplay): ditto.
11892         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11893         stacking order.
11894         (console_type_create_glyphs_x): update -> redisplay.
11895         (image_instantiator_format_create_glyphs_x): ditto.
11896
11897         * glyphs-widget.c:
11898         (check_valid_instantiator): disallow glyphs in the instantiator,
11899         they must now be vectors.
11900         (check_valid_instantiator_list): ditto.
11901         (glyph_instantiator_to_glyph): use internal symbol rather than
11902         intern.
11903         (widget_update): renamed from widget_set_property. Call cascaded
11904         update methods.
11905         (redisplay_widget): renamed from update_widget.
11906         (widget_layout): image_instance_layout now takes position as well
11907         as size.
11908         (widget_normalize): ditto.
11909         (widget_instantiate): ditto.
11910         (tab_control_query_geometry) ditto.:
11911         (tab_control_update): renamed from tab_control_set_property.
11912         (progress_gauge_update): set_property -> update.
11913         (layout_normalize): rewrite so that child instantiators are
11914         normalized also.
11915         (layout_update): new function. Create glyphs from the normalized
11916         children and cope with any other layout keywords. We do not
11917         instantiate children here that will be take care of by
11918         redisplay_output_layout.
11919         (layout_instantiate): call layout_update and not much else.
11920         (layout_post_instantiate): not sure whether this is needed
11921         anymore.
11922         (layout_query_geometry): query glyph geometry rather than
11923         image_instance geometry.
11924         (layout_layout): set offsets from pass in parameters. Use glyph
11925         geometry and layout functions rather than image instance ones.
11926         (native_layout_layout): ditto.
11927         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11928         (image_instantiator_widget): set_property -> update.
11929         (image_instantiator_buttons): ditto.
11930         (image_instantiator_progress_guage): ditto.
11931         (image_instantiator_tab_control): ditto.
11932         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11933         (image_instantiator_layout): add update method.
11934
11935         * glyphs-msw.c (bmp_normalize):
11936         (mswindows_resource_normalize): add dest_mask so that it can be
11937         proprogated by layout_normalize.
11938         (begin_defer_window_pos): make optional because it may not be the
11939         right thing to do and it introduces differences with X.
11940         (mswindows_unmap_subwindow): ditto.
11941         (mswindows_map_subwindow): ditto.
11942         (mswindows_redisplay_subwindow): renamed from
11943         mswindows_update_subwindow.
11944         (mswindows_redisplay_widget): ditto.
11945         (mswindows_button_redisplay): renamed from
11946         mswindows_button_update. Update is now what the instantiation
11947         function does for a changed instantiator.
11948         (mswindows_progress_gauge_instantiate): set the progress value
11949         here if appropriate.
11950         (mswindows_tab_control_redisplay): cope with re-ordering of the
11951         members of the tab widget by simply selecting the new top
11952         widget. This makes things appear ok if you click on a tab.
11953         (mswindows_combo_box_instantiate): image_instance_layout now takes
11954         position as well as size.
11955         (mswindows_progress_gauge_redisplay): renamed from
11956         mswindows_progress_gauge_update.
11957         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11958         (image_instantiator_format_create_glyphs_mswindows): ditto.
11959
11960         * glyphs-eimage.c (jpeg_normalize):
11961         (gif_normalize):
11962         (png_normalize):
11963         (tiff_normalize): add dest_mask so that it can be proprogated by
11964         layout_normalize.
11965
11966         * elhash.c:
11967         (print_hash_table):
11968         (hash_table_weakness_validate):
11969         (decode_hash_table_weakness):
11970         (Fhash_table_weakness):
11971         (Fhash_table_type):
11972         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11973
11974         * console.h (struct console_methods): move update_* to
11975         redisplay_*.
11976
11977 2000-07-20  Ben Wing  <ben@xemacs.org>
11978
11979         * *.[ch] (XSETOBJ): remove unused middle argument.
11980         lisp-disunion.h: correct wrap_object() to one argument.
11981
11982 2000-07-15  Ben Wing  <ben@xemacs.org>
11983
11984         * s/cygwin32.h:
11985         * s/cygwin32.h (CYGWIN_CONV_PATH):
11986         Add missing logb prototype for v1.1.
11987         Use post-b20 names and alias to pre-b20 names when pre-b20.
11988
11989         * s/windowsnt.h: [5].
11990
11991 2000-07-15  Ben Wing  <ben@xemacs.org>
11992
11993         * Makefile.in.in (x_objs):
11994         * Makefile.in.in (sheap_objs):
11995         * Makefile.in.in (objs):
11996         added win32.o, cosmetic cleanups.
11997
11998         * alloc.c (Fmake_byte_code):
11999         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12000         etc. macros which declare their own args now.
12001
12002         * alloc.c (syms_of_alloc):
12003         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12004
12005         * buffer.c:
12006         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12007
12008         * buffer.c (Fget_file_buffer):
12009         Fixed GCPRO problem.
12010
12011         * buffer.c (get_truename_buffer):
12012         Fixed comment about GC checking.
12013
12014         * buffer.c (syms_of_buffer):
12015         Undeclared those dedicated frame funs.
12016         [2].
12017
12018         * buffer.h:
12019         Define convenience macros for internal/external conversions.
12020         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12021         and Qenvironment_variable_encoding for cleaner code.
12022
12023         * bufslots.h:
12024         Remove dedicated-frame; in lisp.
12025
12026         * bytecode.c (funcall_compiled_function):
12027         [1].
12028
12029         * bytecode.c (syms_of_bytecode):
12030         [2].
12031
12032         * console-msw.c:
12033         * console-msw.c (mswindows_show_console): Rewrote.
12034
12035         * console-msw.c (Fmswindows_debugging_output): New.
12036         Sends to OutputDebugString (special MSWin debugger interface).
12037
12038         * console-msw.c (Fmswindows_message_box):
12039         Fixed stupid bugs so it works when called from kill-emacs.
12040
12041         * console-msw.c (syms_of_console_mswindows):
12042         Declare Fmswindows_debugging_output.
12043
12044         * console-msw.h:
12045         New MSWin prototypes.
12046
12047         * console-msw.h (struct mswindows_frame):
12048         New entry last-click-mods for improved button-modifier support.
12049
12050         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12051         New struct entry `popup' with corresponding accessor.
12052
12053         * console-x.c:
12054         * console-x.c (split_up_display_spec):
12055         * console-x.c (get_display_arg_connection):
12056         * console-x.c (x_semi_canonicalize_console_connection):
12057         * console-x.c (x_canonicalize_device_connection):
12058         [[[6]]]: Change char to more specific type.
12059         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12060
12061         * console-x.c (x_semi_canonicalize_console_connection):
12062         * console-x.c (x_canonicalize_device_connection):
12063         [[[9]]]: Fix up error signalling to use new structured error system.
12064
12065         * console-x.h:
12066         [[[4]]]: Define codesys aliases:
12067         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12068         Qx_color_name_encoding, Qx_display_name_encoding.
12069
12070         * console.h (struct console_methods):
12071         New method make_dialog_box_internal supersedes older
12072         popup_dialog_box method.
12073
12074         * data.c:
12075         Define many new errors, part of new structured errors.
12076
12077         * data.c (init_errors_once_early):
12078         * data.c (syms_of_data):
12079         [2].
12080
12081         * device-msw.c (mswindows_init_device):
12082         [[[5]]]: Cleanup to support NT 3.51.
12083
12084         * device-msw.c (decode_devmode): Cleanup.
12085
12086         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12087         * device-msw.c (mswindows_handle_print_dialog_box):
12088         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12089         * device-msw.c (syms_of_device_mswindows):
12090         Delete the dialog box primitives recently introduced by Kirill and
12091         instead interface to general dialog box interface.
12092
12093         * device-x.c:
12094         * device-x.c (compute_x_app_name):
12095         * device-x.c (x_init_device):
12096         * device-x.c (Fx_valid_keysym_name_p):
12097         * device-x.c (Fx_set_font_path):
12098         [6].
12099         [7].
12100
12101         * device.h (wrap_device): New.
12102         First of its kind; meant to replace XSETDEVICE.
12103
12104         * dialog-msw.c: Many file-dialog symbols.
12105
12106         * dialog-msw.c (mswindows_register_popup_frame): New.
12107         * dialog-msw.c (mswindows_is_dialog_msg): New.
12108         For supporting kbd traversal in dialog boxes.
12109
12110         * dialog-msw.c (dialog_proc):
12111         Support hitting ESC in dialogs.
12112
12113         * dialog-msw.c (struct):
12114         Common dialog box errors.
12115
12116         * dialog-msw.c (handle_file_dialog_box): New.
12117         Add file dialog code.
12118
12119         * dialog-msw.c (handle_question_dialog_box):
12120         Redo existing code to support new question dialog syntax.
12121
12122         * dialog-msw.c (console_type_create_dialog_mswindows):
12123         We support new dialog console method.
12124
12125         * dialog-msw.c (syms_of_dialog_mswindows):
12126         * dialog-msw.c (vars_of_dialog_mswindows):
12127         New file dialog symbols, vars.
12128
12129         * dialog-x.c:
12130         * dialog-x.c (maybe_run_dbox_text_callback):
12131         * dialog-x.c (dbox_descriptor_to_widget_value):
12132         * dialog-x.c (x_make_dialog_box_internal):
12133         * dialog-x.c (console_type_create_dialog_x):
12134         Mule-ize entire file.
12135         Redo to support question dialog syntax.
12136         [6].
12137
12138         * dialog.c:
12139         * dialog.c (Fmake_dialog_box_internal):
12140         * dialog.c (syms_of_dialog):
12141         Kill old popup-dialog-box, replace with new primitive.
12142         Just call device method or signal error.
12143
12144         * eldap.c (Fldap_open):
12145         * eldap.c (Fldap_search_basic):
12146         * eldap.c (Fldap_add):
12147         * eldap.c (Fldap_modify):
12148         [1].
12149         [7].
12150
12151         * emacs.c:
12152         * emacs.c (make_arg_list_1):
12153         * emacs.c (make_arg_list):
12154         Mule-ize call to dll_init().
12155         [6].
12156         [8].
12157
12158         * emacs.c (make_argc_argv):
12159         * emacs.c (free_argc_argv):
12160         * emacs.c (init_cmdargs):
12161         * emacs.c (main_1):
12162         * emacs.c (Fkill_emacs):
12163         * emacs.c (Fdump_emacs):
12164         Update comments about what can be used in syms_* etc.
12165         Call init_win32() when necessary.
12166         Fix up MS Win dialog box in kill-buffer to actually work right.
12167         [7].
12168
12169         * eval.c:
12170         * eval.c (For):
12171         * eval.c (Fand):
12172         * eval.c (Fprogn):
12173         * eval.c (Fprog1):
12174         * eval.c (Fprog2):
12175         * eval.c (FletX):
12176         * eval.c (Flet):
12177         * eval.c (condition_case_3):
12178         * eval.c (Feval):
12179         * eval.c (function_argcount):
12180         * eval.c (funcall_lambda):
12181         [1].
12182
12183         * eval.c (type_error): New.
12184         * eval.c (maybe_type_error): New.
12185         * eval.c (continuable_type_error): New.
12186         * eval.c (maybe_continuable_type_error): New.
12187         * eval.c (type_error_with_frob): New.
12188         * eval.c (maybe_type_error_with_frob): New.
12189         * eval.c (continuable_type_error_with_frob): New.
12190         * eval.c (maybe_continuable_type_error_with_frob): New.
12191         New functions for use with structured errors.
12192
12193         * event-Xt.c:
12194         * event-Xt.c (x_event_to_emacs_event):
12195         Buttons are now modifiers too.
12196
12197         * event-Xt.c (emacs_Xt_current_event_timestamp):
12198         Implement new event method.
12199         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12200
12201         * event-msw.c:
12202         * event-msw.c (ntpipe_shove_writer): [5].
12203         * event-msw.c (mswindows_enqueue_mouse_button_event):
12204         * event-msw.c (mswindows_drain_windows_queue):
12205         * event-msw.c (mswindows_wnd_proc): [7].
12206         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12207         * event-msw.c (mswindows_modifier_state):
12208         Throughout: support new button modifiers.
12209
12210         * event-msw.c (emacs_mswindows_current_event_timestamp):
12211         Implement new event method.
12212         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12213
12214         * event-stream.c:
12215         * event-stream.c (event_stream_current_event_timestamp): New.
12216         * event-stream.c (maybe_kbd_translate): New functionality.
12217         * event-stream.c (vars_of_event_stream):
12218         Document new kbd-translate-table functionality.
12219
12220         * event-stream.c (Fcurrent_event_timestamp): New.
12221         New primitive for use in fabricated events.
12222         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12223
12224         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12225
12226         * events.c:
12227         * events.c (Fmake_event):
12228         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12229         [1].
12230         [9].
12231
12232         * events.c (format_event_object): fix gcc warnings.
12233
12234         * events.c (Fevent_timestamp): Document new primitives.
12235
12236         * events.c (TIMESTAMP_HALFSPACE): New.
12237
12238         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12239         comparing timestamps correctly (half-space algorithm).
12240
12241         * events.c (Fevent_modifier_bits): Doc fix.
12242
12243         * events.c (Fevent_modifiers): Major doc addition.
12244         * events.c (event_x_y_pixel_internal): Typo fix.
12245         * events.c (syms_of_events): Declare new primitives.
12246
12247         * events.h:
12248         Update long comment for button modifiers, timestamps.
12249
12250         * events.h (struct event_stream):
12251         New current_event_timestamp method.
12252
12253         * extents.c:
12254         * extents.c (extent_in_region_p):
12255         * extents.c (decode_extent):
12256         * extents.c (Fset_extent_parent):
12257         * extents.c (decode_map_extents_flags):
12258         Fix gcc warnings.
12259         [9].
12260
12261         * extents.c (struct extent_at_arg):
12262         * extents.c (decode_extent_at_flag):
12263         * extents.c (extent_at_mapper):
12264         * extents.c (extent_at_bytind):
12265         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12266         * extents.c (Fextents_at): New primitive. [9].
12267         * extents.c (symbol_to_glyph_layout): [9].
12268         Support new primitive `extents-at'.
12269
12270
12271         * extents.c (get_text_property_bytind):
12272         extent_at_bytind has another arg.
12273         [9].
12274
12275         * extents.c (syms_of_extents): New primitive.
12276
12277         * file-coding.c (Fmake_coding_system): [1].
12278         * file-coding.c (subsidiary_coding_system): fix gcc warning
12279         * file-coding.c (syms_of_file_coding): [2].
12280
12281         * fileio.c (Fexpand_file_name):
12282         * fileio.c (Fsysnetunam):
12283         * fileio.c (Ffile_exists_p):
12284         * fileio.c (Ffile_executable_p):
12285         * fileio.c (Fverify_visited_file_modtime):
12286         Clean up GCPROing.
12287
12288         * fileio.c (syms_of_fileio): [2].
12289
12290         * filelock.c (lock_file_1):
12291         * filelock.c (current_lock_owner):
12292         * filelock.c (lock_if_free):
12293         * filelock.c (lock_file):
12294         * filelock.c (unlock_file):
12295         Clean up GCPROing.
12296
12297         * fns.c (concat): Fix gcc warning.
12298
12299         * fns.c (Fmember):
12300         * fns.c (Fold_member):
12301         * fns.c (Fmemq):
12302         * fns.c (Fold_memq):
12303         * fns.c (memq_no_quit):
12304         * fns.c (Fassoc):
12305         * fns.c (Fold_assoc):
12306         * fns.c (Fassq):
12307         * fns.c (Fold_assq):
12308         * fns.c (assq_no_quit):
12309         * fns.c (Frassoc):
12310         * fns.c (Fold_rassoc):
12311         * fns.c (Frassq):
12312         * fns.c (Fold_rassq):
12313         * fns.c (rassq_no_quit):
12314         * fns.c (Fdelete):
12315         * fns.c (Fold_delete):
12316         * fns.c (Fdelq):
12317         * fns.c (Fold_delq):
12318         * fns.c (delq_no_quit):
12319         * fns.c (Fremassoc):
12320         * fns.c (Fremassq):
12321         * fns.c (remassq_no_quit):
12322         * fns.c (Fremrassoc):
12323         * fns.c (Fremrassq):
12324         * fns.c (remrassq_no_quit):
12325         * fns.c (Freverse):
12326         * fns.c (mapcar1):
12327         [1].
12328
12329         * frame-msw.c (mswindows_init_frame_1):
12330         * frame-msw.c (mswindows_delete_frame):
12331         Register popups with dialog code so keyboard traversing works.
12332
12333         * frame-tty.c (tty_raise_frame_no_select): [1].
12334
12335         * frame-x.c:
12336         * frame-x.c (x_set_frame_text_value):
12337         * frame-x.c (x_set_frame_properties):
12338         * frame-x.c (x_create_widgets):
12339         [7].
12340
12341         * frame.c:
12342         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12343
12344         * frame.h (wrap_frame): New.
12345         Macro like wrap_device.
12346
12347         * general.c:
12348         * general.c (SYMBOL):
12349         * general.c (syms_of_general):
12350         Major reorg.  This is now just a wrapper and symbols themselves
12351         are listed in general-slots.h.
12352
12353         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12354         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12355
12356         * glyphs-msw.c (mswindows_native_layout_instantiate):
12357         Add DS_CONTROL so keyboard traversal will work.
12358
12359         * glyphs-widget.c:
12360         * glyphs-widget.c (syms_of_glyphs_widget):
12361         Move some symbols to general-slots.h.
12362
12363         * glyphs-x.c:
12364         * glyphs-x.c (xbm_instantiate_1):
12365         * glyphs-x.c (x_xbm_instantiate):
12366         * glyphs-x.c (x_xface_instantiate):
12367         * glyphs-x.c (autodetect_instantiate):
12368         * glyphs-x.c (cursor_font_instantiate):
12369         * glyphs-x.c (x_update_widget):
12370         * glyphs-x.c (x_widget_instantiate):
12371         * glyphs.c (bitmap_to_lisp_data):
12372         * glyphs.c (pixmap_to_lisp_data):
12373         [7].
12374
12375         * glyphs.c (syms_of_glyphs):
12376         [2].
12377
12378         * gui-x.c:
12379         * gui-x.c (print_widget_value):
12380         * gui-x.c (menu_separator_style_and_to_external):
12381         * gui-x.c (add_accel_and_to_external):
12382         * gui-x.c (button_item_to_widget_value):
12383         * gui-x.c (gui_items_to_widget_values_1):
12384         * gui-x.c (gui_items_to_widget_values):
12385         * gui-x.c (syms_of_gui_x):
12386         * gui-x.c (vars_of_gui_x):
12387         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12388         [9].
12389
12390         * gui-x.h:
12391         Muleize, prototype changes matching gui-x.c.
12392
12393         * gui.c:
12394         * gui.c (separator_string_p):
12395         * gui.c (gui_item_add_keyval_pair):
12396         * gui.c (make_gui_item_from_keywords_internal):
12397         * gui.c (signal_too_long_error):
12398         * gui.c (parse_gui_item_tree_item):
12399         * gui.c (syms_of_gui):
12400         * gui.c (vars_of_gui):
12401         * gui.h:
12402         menu-no-selection-hook moved here (used by MSWin).
12403         Move some symbols to general-slots.h.
12404         [6].
12405         [9].
12406
12407         * insdel.c (get_buffer_pos_char):
12408         * insdel.c (get_buffer_range_char):
12409         Add GC comments.
12410
12411         * keymap.c (keymap_lookup_directly):
12412         * keymap.c (keymap_store):
12413         * keymap.c (ensure_meta_prefix_char_keymapp):
12414         * keymap.c (describe_map):
12415         * keymap.h:
12416         Support new button modifiers.
12417
12418         * lisp-disunion.h (wrap_object):
12419         * lisp-disunion.h (XSETOBJ):
12420         Rename make_obj to wrap_object.
12421
12422         * lisp-union.h:
12423         * lisp-union.h (make_int):
12424         * lisp-union.h (make_char):
12425         Support wrap_object.
12426
12427         * lisp.h:
12428         * lisp.h (LIST_LOOP):
12429         * lisp.h (EXTERNAL_LIST_LOOP):
12430         * lisp.h (LIST_LOOP_2):
12431         * lisp.h (EXTERNAL_LIST_LOOP_1):
12432         * lisp.h (EXTERNAL_LIST_LOOP_2):
12433         * lisp.h (EXTERNAL_LIST_LOOP_3):
12434         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12435         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12436         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12437         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12438         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12439         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12440         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12441         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12442         * lisp.h (struct Lisp_Symbol):
12443         * lisp.h (maybe_continuable_error_with_frob):
12444         Fix up section comments.
12445         Add new types for char to indicate usage.
12446         Delete symbols auto-generated from general-slots.h.
12447         Add prototypes for structured error functions.
12448         Add long comments describing looping macros and change interface
12449         so that lvalues are automatically declared.
12450         Add NO_DECLARE macro in case callers want to declare lvalues
12451         themselves.
12452
12453         * lread.c (read_syntax_error):
12454         * lread.c (continuable_read_syntax_error):
12455         * lread.c (read_structure):
12456         * lread.c (sequence_reader):
12457         * lread.c (read_list_conser):
12458         * lread.c (read_compiled_function):
12459         Rename syntax_error and continuable_syntax_error to avoid clash
12460         with same-named structured error functions.
12461
12462         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12463         * menubar-msw.c (populate_menu_add_item):
12464         * menubar-msw.c (populate_or_checksum_helper):
12465         [5].
12466         [9].
12467
12468         * menubar-x.c:
12469         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12470         Mule-ize whole file.
12471
12472         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12473
12474         * mule-charset.c (Fmake_charset):
12475         * mule-wnnfns.c (Fwnn_set_param):
12476         [1].
12477
12478         * ntproc.c (create_child):
12479         * ntproc.c (Fwin32_set_current_locale):
12480         Add comments portending doom.
12481
12482         * objects-msw.c:
12483         * objects-msw.c (old_font_enum_callback_2):
12484         * objects-msw.c (font_enum_callback_1):
12485         * objects-msw.c (mswindows_enumerate_fonts):
12486         [5].
12487
12488         * objects-x.c:
12489         * objects-x.c (allocate_nearest_color):
12490         * objects-x.c (x_parse_nearest_color):
12491         * objects-x.c (x_initialize_color_instance):
12492         * objects-x.c (x_print_color_instance):
12493         * objects-x.c (x_finalize_color_instance):
12494         * objects-x.c (x_valid_color_name_p):
12495         * objects-x.c (x_initialize_font_instance):
12496         * objects-x.c (x_print_font_instance):
12497         * objects-x.c (valid_x_font_name_p):
12498         * objects-x.c (truename_via_FONT_prop):
12499         * objects-x.c (truename_via_random_props):
12500         * objects-x.c (truename_via_XListFonts):
12501         * objects-x.c (x_font_truename):
12502         * objects-x.c (x_font_instance_truename):
12503         * objects-x.c (x_font_instance_properties):
12504         * objects-x.c (x_list_fonts):
12505         * objects-x.c (x_find_charset_font):
12506         Mule-ize entire file.
12507         [7].
12508
12509         * objects-x.h:
12510         Mule-verify.
12511
12512         * print.c:
12513         * print.c (std_handle_out_external):
12514         * print.c (debug_print_no_newline):
12515         * print.c (syms_of_print):
12516         Output to all debugger kinds in debug-print.
12517         Fix console-output code under MSWin to actually work.
12518
12519         * process-nt.c (send_signal):
12520         * process-nt.c (nt_create_process):
12521         Use newer Unicode macros.
12522
12523         * process-unix.c (unix_create_process):
12524         * process-unix.c (unix_canonicalize_host_name):
12525         * process-unix.c (unix_open_network_stream):
12526         [7].
12527
12528         * scrollbar-x.c:
12529         Mule-verify.
12530
12531         * search.c (syms_of_search):
12532         [2].
12533
12534         * select-msw.c (mswindows_destroy_selection):
12535         Use LIST_LOOP_2.
12536
12537         * select-x.c (symbol_to_x_atom):
12538         [7].
12539
12540         * select.c (syms_of_select):
12541         [2].
12542
12543         * sound.c (Fplay_sound_file):
12544         [7].
12545
12546         * specifier.c:
12547         * specifier.c (decode_specifier_type):
12548         * specifier.c (Fvalid_specifier_locale_type_p):
12549         * specifier.c (check_valid_locale_or_locale_type):
12550         * specifier.c (decode_locale):
12551         * specifier.c (decode_locale_type):
12552         * specifier.c (decode_locale_list):
12553         * specifier.c (check_valid_domain):
12554         * specifier.c (decode_specifier_tag_set):
12555         * specifier.c (Fcanonicalize_tag_set):
12556         * specifier.c (Fdefine_specifier_tag):
12557         * specifier.c (Fspecifier_tag_predicate):
12558         * specifier.c (check_valid_inst_list):
12559         * specifier.c (check_valid_spec_list):
12560         * specifier.c (decode_how_to_add_specification):
12561         * specifier.c (check_modifiable_specifier):
12562         * specifier.c (specifier_add_spec):
12563         * specifier.c (boolean_validate):
12564         * specifier.c (display_table_validate):
12565         [9].
12566
12567         * specifier.c (syms_of_specifier):
12568         Move some symbols to general-slots.h.
12569         [2].
12570
12571         * symbols.c:
12572         * symbols.c (Fmapatoms):
12573         * symbols.c (Fapropos_internal):
12574         Add GCPROs.
12575
12576         * symbols.c (set_default_buffer_slot_variable):
12577         * symbols.c (set_default_console_slot_variable):
12578         [1].
12579
12580         * symbols.c (defsymbol_massage_name_1):
12581         * symbols.c (defkeyword_massage_name):
12582         * symbols.c (deferror_1):
12583         * symbols.c (deferror):
12584         * symbols.c (deferror_massage_name_and_message):
12585         * symeval.h:
12586         * symeval.h (DEFSYMBOL):
12587         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12588
12589         * symbols.c (syms_of_symbols):
12590         [2].
12591
12592         * symsinit.h:
12593         * symsinit.h (init_win32): New.
12594         Also new is syms_of_dialog_mswindows.
12595
12596         * syswindows.h:
12597         Add new Unicode macros, missing Cygwin wide-char functions,
12598         convenience conversion macros for Qmswindows_tstr, macros for
12599         encapsulating required MSWin <-> Cygwin filename conversions,
12600         prototype for dynamically-extracted (not in NT 3.51) functions.
12601
12602         * toolbar-x.c:
12603         Mule-verify.
12604
12605         * tooltalk.c (Fadd_tooltalk_message_arg):
12606         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12607         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12608         [7].
12609
12610         * tooltalk.c (syms_of_tooltalk):
12611         [2].
12612
12613         * unexnt.c:
12614         * unexnt.c (unexec):
12615         Fix up headers, declaration of unexec() to be more standard.
12616
12617 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12618
12619         * offix.h: Revert change to guard macros - they're used in offix.c!
12620
12621 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12622
12623         * lisp.h: Defsubred Fdelete.
12624
12625         * console-msw.h:  (msprinter_default_printer): Added.
12626
12627         * console-msw.c (msprinter_canonicalize_console_connection):
12628         (msprinter_canonicalize_device_connection): Added.
12629
12630         * device-msw.c (msprinter_default_printer):
12631         (Fmswingows_get_default_printer):
12632         (signal_enum_priner_error):
12633         (Fmswingows_printer_list): Added.
12634
12635 2000-07-19  Martin Buchholz <martin@xemacs.org>
12636
12637         * XEmacs 21.2.35 is released.
12638
12639 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12640
12641         * select-x.c (x_handle_selection_request):
12642         Text selected in xemacs and pasted into xterm failed to appear.
12643         Spelling fixes and cosmetic changes.
12644
12645 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12646
12647         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12648         XEmacs frame (fix for doubling chars in dialog boxes).
12649
12650 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12651
12652         * select.c (select_convert_in, select_convert_out):
12653         Don't call intern() every time.
12654
12655         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12656         * select.c (vars_of_select): Initialise them.
12657
12658 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12659
12660         * select.c (selection-coercible-types): New.
12661
12662         * select.c (own-selection-internal):
12663         * select.c (get-selection-internal):
12664         MULE bug fix - these should default to COMPOUND_TEXT and not
12665         STRING for MULE. I think.
12666
12667         * select.c (select_convert_out): Use selection-coercible-types
12668         to find types that we can attempt to perform coercions on.
12669
12670 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12671
12672         * mule-wnnfns.c:
12673         * mule-canna.c:
12674         Add coding: cookie to identify encoding.
12675
12676         * mule-canna.c (CANNA_mode_keys): make static.
12677         Use proper prototypes, even for functions of no arguments.
12678         Remove external prototype for Fding().
12679
12680         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12681
12682         * select.c (syms_of_select): Add missing DEFSUBR.
12683
12684 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12685
12686         * select.c (get_selection_internal, own_selection_internal):
12687         Make the type default to STRING, rather than placing a nil type
12688         into Vselection_alist.
12689
12690 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12691
12692         * gpmevent.c (tty_selection_exists_p):
12693         * gpmevent.c (tty_own_selection):
12694         Updated parameter lists.
12695
12696 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12697
12698         * select.h (selection-alist): Removed declaration.
12699
12700         * select.h (get_local_selection):
12701         * select.c (get_local_selection):
12702         Made static.
12703
12704         * select.h (convert_selection): Removed declaration.
12705         * select.c (convert_selection): Removed.
12706         This function belongs in Lisp.
12707
12708         * select.h (select_convert_in): Declare.
12709         * select.h (select_convert_out): Declare.
12710         * select.c (select_convert_in): New.
12711         * select.c (select_convert_out): New.
12712         New conversion functions for other files to call.
12713
12714         * select.h (select_notify_buffer_kill): Declare.
12715         * select.c (select_notify_buffer_kill): New.
12716         New functions that get called from kill-buffer.
12717
12718         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12719         X-specific lisp code.
12720
12721         * select.h: Declare some of the lisp-visible functions for
12722         external use.
12723
12724         * select.c (clean_local_selection_data): Removed. This was
12725         a disgusting function, and previously should have been in
12726         select-x.c in any case. The functionality is now provided
12727         in select-convert-from-integer (select.el).
12728
12729         * select.c (available-selection-types): Fixed stupidity where
12730         INTEGER and ATOM got added twice. Also add STRING when we see an
12731         extent.
12732
12733         * select.c (get-selection-internal): Removed symbol stripping. No
12734         longer causes conversion when data comes from the internal cache.
12735
12736         * select.c (syms_of_select): Added new functions.
12737
12738         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12739         error checking - previously this called abort!
12740
12741         * select-x.c (x_own_selection): Changed comment.
12742
12743         * select-x.c (x_handle_selection_request): Use select_convert_out.
12744         Don't mess with selection-alist; it's an internal variable of select.c.
12745
12746         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12747
12748         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12749         rather than messing with selection-alist.
12750
12751         * select-msw.c (mswindows_get_foreign_selection):
12752         Use TO_INTERNAL_FORMAT rather than hacking.
12753
12754 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12755
12756         * process-unix.c (unix_open_multicast_group):
12757         (unix_open_multicast_group): Remove useless casts.
12758
12759 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12760
12761         * sound.c (Fplay_sound): Fix `unused variable' warning.
12762
12763         * emacs.c (main): Use correct type for _environ on SCO5.
12764
12765 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12766
12767         * console.h (own_selection_method):
12768         * console.h (selection_exists_p_method):
12769         * console.h (available_selection_types_method): New.
12770         * console.h (register_selection_data_type_method): New.
12771         * console.h (selection_data_type_name): New.
12772
12773         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12774         function & alist to track GlobalAlloc()'d handles that need
12775         releasing when the clipboard data gets replaced or emptied.
12776
12777         * event-msw.c (mswindows_wnd_proc): Call it.
12778
12779         * lisp.h, general.c (Qappend): New symbol representing a
12780         `how-to-add' mode.
12781
12782         * select.c (own-selection-internal):
12783         * select.c (selection-exists-p):
12784         * select.c (available-selection-types): New.
12785         * select.c (register-selection-data-type): New.
12786         * select.c (selection-data-type-name): New.  New functions to deal
12787         with device-specific selection data formats.
12788         * select.c (selection-converter-out-alist): Renamed.
12789         * select.c (selection-converter-in-alist): New.
12790         * select.c (selection-appender-alist): New.  Added new alists.
12791         * select.c (syms_of_select, vars_of_select): Added new symbols &
12792         variables.
12793         * select.c (get_local_selection): Split.
12794         * select.c: Removed spurious type checking - selections may now be
12795         of any type, not just strings.
12796         * select.c (own-selection-internal):
12797
12798         * select.h, select.c (convert_selection): New. Created
12799         convert_selection() function based on get_local_selection().
12800         * select.h, select.c (QCF_*): New symbols representing mswindows
12801         clipboard formats.
12802         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12803         symbols representing `how-to-add' modes.
12804
12805         * select-msw.c (x_sym_p): New.
12806         * select-msw.c (symbol_to_ms_cf): New.
12807         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12808         symbols & clipboard formats. Can also handle string names.
12809         * select-msw.c (mswindows_own_selection):
12810         * select-msw.c (mswindows_selection_exists_p):
12811         Added `data-type' parameter. Use it.
12812         * select-msw.c (mswindows_available_selection_types): New.
12813         * select-msw.c (mswindows_register_selection_data_type): New.
12814         * select-msw.c (mswindows_selection_data_type_name): New.
12815         * select-msw.c (mswindows_own_selection):
12816         * select-msw.c (mswindows_get_foreign_selection):
12817         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12818         * select-msw.c (console_create_select_mswindows): Added new methods.
12819         * select-msw.c (mswindows_destroy_selection): New.
12820         * select-msw.c (Vhandle_alist): New list.
12821         * select-msw.c (mswindows_own_selection):
12822
12823         * select-x.c (x_own_selection):
12824         * select-x.c (x_selection_exists_p):
12825         * select-x.c: Added some comments about maybe using new
12826         functionality.
12827         * select-x.c (x_own_selection):
12828
12829         * specifier.c: Remove definition of Qappend (now in general.c)
12830         * specifier.c (syms_of_specifier): Remove Qappend.
12831
12832 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12833
12834         * config.h.in: Add socklen_t.
12835
12836         * s/decosf4-0.h: No special compiler flags needed or desired.
12837         In particular, undefine _BSD for DEC OSF 4.0.
12838
12839 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12840
12841         * redisplay-msw.c (msprinter_frame_output_end): Added.
12842         (console_type_create_redisplay_mswindows): Referred the above.
12843
12844         * frame.c (setup_frame_without_minibuffer): Do not create a
12845         default minibuffer frame on a printer device.
12846
12847         * frame-msw.c (apply_dc_geometry): Added.
12848         (msprinter_start_page):
12849         (msprinter_init_frame_3):
12850         (msprinter_eject_page): Use it.
12851
12852         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12853         and removed residual duplex and orientation properties.
12854
12855 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12856
12857         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12858
12859         * unexalpha.c: Remove system prototypes from C sources!
12860
12861 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12862
12863         * eval.c: Remove references to M-x edit-options in DEFUNs for
12864         `defvar' and `defconst'.
12865
12866 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12867
12868         * config.h.in: Remove SMART_INCLUDE hackery.
12869
12870         PostgreSQL hacking:
12871         * config.h.in: Don't use SMART_INCLUDE.
12872
12873         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12874         * inline.c: Simply #include "postgresql.h"
12875         * postgresql.c:
12876         - Don't use SMART_INCLUDE
12877         - Use simply "const".
12878         - Use standard doc string conventions.
12879         - Use correct type for result of PQstatus.
12880
12881 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12882
12883         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12884
12885         C++ compilation changes.
12886         * config.h.in (EXTERN_C): Define.
12887         * config.h.in (not): This is also a C++ keyword.
12888         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12889         * cm.c: Use EXTERN_C.
12890         * redisplay-tty.c: Use EXTERN_C.
12891         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12892
12893 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12894
12895         * general.c: Remove duplicate definition for Qfunction.
12896
12897 2000-07-08  Ben Wing  <ben@xemacs.org>
12898
12899         * device-msw.c (msprinter_init_device):
12900         * device-msw.c (sync_printer_with_devmode):
12901         * device-msw.c (handle_devmode_changes):
12902         * device-msw.c (print_dialog_worker):
12903         * device-msw.c (Fmsprinter_apply_settings):
12904         * device-msw.c (hash_devmode):
12905         * device-msw.c (Fmsprinter_settings_despecialize):
12906         use Qmswindows_tstr, not Qctext.
12907
12908         * vm-limit.c (check_memory_limits):
12909         avoid infinite loop printing warning messages.
12910
12911 2000-07-05  Craig Lanning  <lanning@scra.org>
12912
12913         * Makefile.in.in: Add support for including the Windows resources
12914         when building with the cygwin and mingw targets.
12915
12916         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12917         not set or not correct.
12918         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12919         (init_initial_directory): Don't try to use $PWD on the
12920         WIN32_NATIVE target.
12921
12922         * s\cygwin32.h:
12923         [[Add -mwindows to eliminate console window.]] not required --ben
12924         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12925         (MAIL_USE_POP): removed; now handled by configure.
12926
12927         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12928         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12929         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12930         (MAIL_USE_POP): removed; now handled by configure.
12931         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12932         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12933         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12934         constant string.
12935         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12936         up from <winsock.h> via systime.h.
12937         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12938         (getpagesize): from Dan Holmsand, added.
12939         Added #endif which was left dangling by Ben's mega patch; added
12940         comment to help prevent this in the future.
12941
12942         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12943
12944 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12945
12946         * console-msw.h (struct mswindows_device): Removed unnecessary
12947         cached device geometry values.
12948         Added update_tick and an accessor macro.
12949         (Lisp_Devmode): Added lrecord declaration.
12950         (struct msprinter_device): Contain devmode as a Lisp object.
12951         Added mswindows_get_selected_frame_hwnd();
12952
12953         * console.h (struct console_methods): Indentation nitpicking.
12954
12955         * device-msw.c (mswindows_init_device): Do not initialize geometry
12956         cache. Initialize update tick.
12957         (mswindows_device_system_metrics): Ask the device for its geometry.
12958         (global_free_2_maybe):
12959         (devmode_to_hglobal):
12960         (handle_printer_changes):
12961         (ensure_not_printing):
12962         (print_dialog_worker):
12963         (Fmsprinter_print_setup_dialog):
12964         (Fmsprinter_print_dialog):
12965         (plist_get_margin):
12966         (plist_set_margin):
12967         (Fmsprinter_page_setup_dialog): Added functions.
12968         (sync_printer_with_devmode):
12969         (handle_devmode_changes):
12970         (Fmsprinter_get_settings):
12971         (Fmsprinter_select_settings):
12972         (Fmsprinter_apply_settings):
12973         (allocate_devmode):
12974         (Fmsprinter_settings_copy):
12975         (Fmsprinter_settings_despecialize):
12976         (print_devmode):
12977         (finalize_devmode):
12978         (equal_devmode):
12979         (hash_devmode): Added functions
12980         (syms_of_device_mswindows): Init devmode lrecord class.
12981
12982         * device.h: Added an exfun for find-device.
12983
12984         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12985         geometry; although, recreate the device compatible DC.
12986
12987         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12988         (msprinter_init_frame_3):
12989         (msprinter_frame_property):
12990         (msprinter_internal_frame_property_p):
12991         (msprinter_frame_properties):
12992         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12993         print job properties (will move to device settings).
12994
12995         * lisp.h: Added symbols.
12996
12997         * general.c (syms_of_general): Declared them.
12998
12999         * hash.c (string_hash): Added.
13000
13001         * lrecord.h (lrecord_type): Added devmode lrecord type.
13002
13003 2000-07-02  Mike Sperber <mike@xemacs.org>
13004
13005         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13006         FreeBSD 4.0.
13007
13008 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13009
13010         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13011         integer.
13012
13013 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13014
13015         * data.c (Fstring_to_number): Don't recognize floating point if
13016         base is not 10.
13017
13018 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13019
13020         * glyphs-widget.c (tab_control_query_geometry):
13021         (widget_query_geometry):
13022         (button_query_geometry):
13023         * glyphs.c (text_query_geometry):
13024         Enforce type correctness.
13025
13026 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13027
13028         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13029         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13030
13031 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13032
13033         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13034         conflicts with gcc's fixincluded version of FOO.h.
13035
13036         * glyphs.h (image_instance_geometry): Remove trailing `,'
13037
13038 2000-06-08  Mike Alexander  <mta@arbortext.com>
13039
13040         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13041         (shove_thread): Don't write the same output twice
13042         (make_ntpipe_output_stream): Increase priority of shove thread
13043         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13044         chance to run
13045         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13046         it.
13047
13048 2000-06-12  Ben Wing  <ben@xemacs.org>
13049
13050         * s\mingw32.h (sigset):
13051         * s\windowsnt.h (sigset):
13052         rename msw_ to mswindows_ for consistency with general convention.
13053
13054 2000-06-12  Ben Wing  <ben@xemacs.org>
13055
13056         * console-msw.c:
13057         * console-msw.c (mswindows_get_console_hwnd):
13058         * console-msw.c (mswindows_ensure_console_allocated):
13059         * console-msw.c (mswindows_hide_console):
13060         * console-msw.c (mswindows_show_console):
13061         * console-msw.c (mswindows_ensure_console_buffered):
13062         * console-msw.c (mswindows_output_console_string):
13063         * console-msw.c (mswindows_windows9x_p):
13064         * console-msw.h:
13065         * device-msw.c (mswindows_get_workspace_coords):
13066         * device-msw.c (mswindows_device_system_metrics):
13067         * dialog-msw.c (mswindows_popup_dialog_box):
13068         * event-msw.c (mswindows_wnd_proc):
13069         * frame-msw.c (mswindows_size_frame_internal):
13070         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13071         * menubar-msw.c (displayable_menu_item):
13072         * menubar-msw.c (mswindows_char_is_accelerator):
13073         * nt.c:
13074         * nt.c (mswindows_sigset):
13075         * nt.c (mswindows_sigrelse):
13076         * nt.c (mswindows_sigpause):
13077         * nt.c (mswindows_raise):
13078         * nt.c (timer_proc):
13079         * ntproc.c:
13080         * ntproc.c (find_child_console):
13081         * ntproc.c (sys_kill):
13082         * print.c:
13083         * print.c (std_handle_out_external):
13084         * process-nt.c (find_child_console):
13085         * process-nt.c (send_signal_the_95_way):
13086         * process-nt.c (ensure_console_window_exists):
13087         * process-nt.c (nt_create_process):
13088         * syssignal.h:
13089         rename msw_ to mswindows_ for consistency with general convention.
13090
13091         * emacs.c:
13092         * dumper.c:
13093         include nt.h, not syswindows.h.
13094
13095         * nt.c (mswindows_fstat):
13096         * nt.c (mswindows_stat):
13097         prefix mswindows_ instead of attempting to directly override the
13098         library functions.  fix declarations.
13099
13100         * nt.h:
13101         include syswindows.h.  move some sysdep.h stuff here.
13102
13103         * ntheap.h:
13104         include syswindows.h, not <windows.h>.
13105
13106         * ntplay.c:
13107         clean up headers.
13108
13109         * sysdep.c:
13110         clean up headers.
13111
13112         * sysdep.c (sys_fstat):
13113         * sysdep.c (sys_stat):
13114         call mswindows versions when appropriate.
13115
13116         * sysdep.h:
13117         move mswin decls to nt.h.
13118
13119         * syswindows.h:
13120         add long comment describing appropriate use of the various windows
13121         headers.
13122
13123 2000-06-11  Ben Wing  <ben@xemacs.org>
13124
13125         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13126
13127 2000-06-10  Ben Wing  <ben@xemacs.org>
13128
13129         * Makefile.in.in (release):
13130         Correction to make sure xemacs.exe always dumped when correct.
13131
13132         * alloca.c:
13133         * balloon_help.c:
13134         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13135
13136         * buffer.c (set_buffer_internal):
13137         [[[[2]]]]: Remove HAVE_FEP code.
13138
13139         * buffer.c (init_initial_directory):
13140         [3].
13141
13142         * bytecode.c:
13143         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13144         individual files.
13145
13146         * callproc.c:
13147         * callproc.c (call_process_cleanup):
13148         * callproc.c (Fold_call_process_internal):
13149         * callproc.c (child_setup):
13150         * callproc.c (getenv_internal):
13151         * callproc.c (init_callproc):
13152         * callproc.c (vars_of_callproc):
13153         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13154         __CYGWIN32__ -> CYGWIN.
13155         DOS_NT -> WIN32_NATIVE.
13156         Remove MSDOS support/references, converting to WIN32_NATIVE
13157           where correct.
13158         __MINGW32__ -> MINGW.
13159         Fix windows.h includes.
13160         Remove bogus HAVE_NTGUI.
13161
13162         * config.h.in:
13163         [2].
13164
13165         * console-msw.c:
13166         mswindows_message_outputted added for use in allowing startup
13167         errors on the console to be seen.
13168
13169         * console-msw.c (msw_ensure_console_allocated):
13170         * console-msw.c (msw_output_console_string):
13171         * console-msw.c (DHEADER):
13172         * console-msw.c (DOPAQUE_DATA):
13173         * console-msw.c (DEVENT):
13174         * console-msw.c (DCONS):
13175         * console-msw.c (DCONSCDR):
13176         * console-msw.c (DSTRING):
13177         * console-msw.c (DVECTOR):
13178         * console-msw.c (DSYMBOL):
13179         * console-msw.c (DSYMNAME):
13180         Fix warnings.
13181
13182         * console-stream.c (stream_init_console):
13183         Fix text/binary problems.
13184
13185         * device-msw.c:
13186         * device-msw.c (mswindows_finish_init_device):
13187         * device-msw.c (mswindows_delete_device):
13188         [1].
13189
13190         * device.c (handle_asynch_device_change):
13191         [3].
13192
13193         * dgif_lib.c:
13194         * dgif_lib.c (DGifOpenFileName):
13195         * dgif_lib.c (DGifOpenFileHandle):
13196         * dgif_lib.c (DGifGetLine):
13197         * dgif_lib.c (DGifGetPixel):
13198         Added config.h/lisp.h, fix up includes.
13199         [1].
13200
13201         * dired-msw.c:
13202         [4].
13203
13204         * dired.c:
13205         * dired.c (file_name_completion):
13206         * dired.c (Ffile_attributes):
13207         * dired.c (syms_of_dired):
13208         [1].
13209
13210         * dumper.c:
13211         * dumper.c (pdump_file_unmap):
13212         * dumper.c (pdump_load):
13213         [1].
13214
13215         * editfns.c:
13216         * editfns.c (Ftemp_directory):
13217         * editfns.c (user_login_name):
13218         * editfns.c (Fuser_real_login_name):
13219         * editfns.c (get_home_directory):
13220         [1].
13221
13222         * elhash.c (finish_marking_weak_hash_tables):
13223         [[[[5]]]]: Fix GCC warnings.
13224
13225         * emacs.c:
13226         * emacs.c (mswindows_handle_hardware_exceptions):
13227         * emacs.c (make_arg_list_1):
13228         * emacs.c (main_1):
13229         * emacs.c (Fkill_emacs):
13230         * emacs.c (Fdump_emacs):
13231         [1].
13232         Fix problems with nested crashes, add long comment.
13233
13234         * event-Xt.c (init_event_Xt_late):
13235         [1].
13236
13237         * event-msw.c:
13238         * event-msw.c (mswindows_dde_callback):
13239         * event-msw.c (mswindows_handle_sticky_modifiers):
13240         * event-msw.c (mswindows_wnd_proc):
13241         [1].
13242         [5].
13243
13244         * events.c (character_to_event):
13245         [1].
13246
13247         * fileio.c:
13248         * fileio.c (Ffile_name_directory):
13249         * fileio.c (Ffile_name_nondirectory):
13250         * fileio.c (directory_file_name):
13251         * fileio.c (Fexpand_file_name):
13252         * fileio.c (Fsubstitute_in_file_name):
13253         * fileio.c (Ffile_name_absolute_p):
13254         * fileio.c (check_executable):
13255         * fileio.c (Ffile_readable_p):
13256         * fileio.c (Ffile_accessible_directory_p):
13257         * fileio.c (Ffile_modes):
13258         * fileio.c (Funix_sync):
13259         * fileio.c (vars_of_fileio):
13260         [1]. [4].
13261
13262         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13263
13264         Expand getdefdir defn.
13265         Fix bogus rename() comment.
13266
13267         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13268         to use standard XEmacs include files, e.g. sysfile.h, rather
13269         than system-specific includes.
13270
13271         * fns.c:
13272         * fns.c (Fsubseq):
13273         [5]. [6].
13274
13275         * frame.c (vars_of_frame):
13276         [1].
13277
13278         * getloadavg.c:
13279         * getloadavg.c (getloadavg):
13280         [1]. [6].
13281         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13282         (We don't use it elsewhere in the code; just add a comment.)
13283
13284         * gif_io.c:
13285         [6].
13286         Add config.h.
13287
13288         * glyphs-msw.c:
13289         * glyphs-msw.c (mswindows_resource_instantiate):
13290         [1].
13291
13292         * glyphs-x.c (x_native_layout_instantiate):
13293         [5].
13294
13295         * gui-msw.c (Fmswindows_shell_execute):
13296         [1].
13297
13298         * insdel.c:
13299         [4].
13300
13301         * lisp.h:
13302         [4]. [5].
13303
13304         * lread.c (locate_file_in_directory_mapper):
13305         [1].
13306
13307         * lstream.c:
13308         [4].
13309
13310         * mem-limits.h:
13311         * mem-limits.h (get_lim_data):
13312         [1].
13313
13314         * menubar-msw.c:
13315         [4].
13316
13317         * ndir.h:
13318         [1].
13319
13320         * nt.c:
13321         * nt.c (getwd):
13322         * nt.c (closedir):
13323         * nt.c (rva_to_section):
13324         * nt.c (mswindows_executable_type):
13325         [1]. [6].
13326         Fix closedir() defn.
13327
13328         * nt.h:
13329         [[[[8]]]]: *_OK defs moved to sysfile.h.
13330
13331         * ntproc.c:
13332         [6]. [7].
13333
13334         * objects-x.c:
13335         [4].
13336
13337         * print.c:
13338         * print.c (std_handle_out_external):
13339         [1]. [4].
13340
13341         * process-nt.c:
13342         * process-nt.c (nt_create_process):
13343         [6].
13344         try to fix process quoting somewhat.
13345
13346         * process-unix.c (unix_create_process):
13347         [1].
13348
13349         * process.c:
13350         * process.c (vars_of_process):
13351         Add Vnull_device.
13352
13353         * process.h:
13354         [1].
13355
13356         * realpath.c:
13357         * realpath.c (xrealpath):
13358         [1].
13359
13360         * redisplay-tty.c (init_tty_for_redisplay):
13361         [3].
13362
13363         * redisplay.c:
13364         [4]. [6].
13365
13366         * scrollbar-msw.c:
13367         [4].
13368
13369         * sheap.c:
13370         * sheap.c (more_static_core):
13371         * sheap.c (report_sheap_usage):
13372         [5]. [6].
13373
13374         * signal.c:
13375         * signal.c (alarm_signal):
13376         [1]. [6].
13377
13378         * sound.c:
13379         [6].
13380
13381         * strftime.c:
13382         * strftime.c (zone_name):
13383         [1]. [5].
13384
13385         * symsinit.h (init_sunpro):
13386         [1].
13387
13388         * syscommctrl.h:
13389         commctrl.h not in Cygwin b20.1.
13390
13391         * sysdep.c:
13392         * sysdep.c (endif):
13393         * sysdep.c (sys_subshell):
13394         * sysdep.c (init_baud_rate):
13395         * sysdep.c (emacs_get_tty):
13396         * sysdep.c (emacs_set_tty):
13397         * sysdep.c (tty_init_sys_modes_on_device):
13398         * sysdep.c (init_system_name):
13399         * sysdep.c (sys_open):
13400         * sysdep.c (interruptible_open):
13401         * sysdep.c (sys_fopen):
13402         * sysdep.c (sys_mkdir):
13403         * sysdep.c (sys_rename):
13404         * sysdep.c (get_process_times_1):
13405         [1]. [6].
13406
13407         * sysdep.h:
13408         [1].
13409
13410         * sysdir.h:
13411         * sysdir.h (DIRENTRY_NONEMPTY):
13412         [1]. [6].
13413
13414         * sysdll.c (dll_init):
13415         * sysdll.h:
13416         [1].
13417
13418         * sysfile.h:
13419         [1]. [6]. [8].
13420         added text/binary defs.
13421
13422         * sysfloat.h:
13423         [1].
13424
13425         * sysproc.h:
13426         * sysproc.h (EDESTADDRREQ):
13427         * sysproc.h (poll_fds_for_input):
13428         [1]. [6].
13429
13430         * syspwd.h:
13431         [6].
13432
13433         * syssignal.h:
13434         [1].
13435
13436         * systime.h:
13437         [1]. [6].
13438
13439         * systty.h:
13440         [1].
13441
13442         * syswindows.h:
13443         [1].
13444         Always define WIN32_LEAN_AND_MEAN.
13445
13446         * unexcw.c (unexec):
13447         [5].
13448
13449         * unexec.c:
13450         * unexec.c (copy_text_and_data):
13451         * unexec.c (adjust_lnnoptrs):
13452         [1].
13453
13454         * unexnt.c:
13455         * unexnt.c (_start):
13456         [1].
13457
13458 2000-06-07  Ben Wing  <ben@xemacs.org>
13459
13460         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13461         was used only as a model.  We've long since extracted any useful
13462         logic or code out of this. (I just did an exhaustive search.)
13463
13464         * s\msdos.h: Removed.
13465
13466         * s\windows95.h: Removed.
13467
13468 2000-06-10  Ben Wing  <ben@xemacs.org>
13469
13470         * s\cygwin32.h:
13471         [1]. [5].
13472         Don't use extern with fun defs.
13473
13474         * s\mingw32.h:
13475         [1]. [7].
13476         Remove nt\inc include.
13477         Remove getdisk, getdefdir. (The former is unused, the latter
13478         expanded in fileio.h.)
13479
13480         * s\windowsnt.h:
13481         * s\windowsnt.h (WIN32_NATIVE):
13482         * s\windowsnt.h (HAVE_STRCASECMP):
13483         [1]. [7].
13484         Add long comment about preprocessor changes.
13485         Remove getdisk, getdefdir. (The former is unused, the latter
13486         expanded in fileio.h.)
13487
13488 2000-06-10  Ben Wing  <ben@xemacs.org>
13489
13490         * m\arm.h:
13491         * m\delta.h:
13492         * m\intel386.h:
13493         * m\sequent.h:
13494         * m\template.h:
13495         * m\windowsnt.h:
13496         [1].
13497         Remove bogus/unused NO_SOCK_SIGIO.
13498
13499 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13500
13501         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13502         not an Emchar.
13503
13504 2000-06-04  Mike Sperber <mike@xemacs.org>
13505
13506         * casetab.c (set_case_table): For `set-standard-case-table',
13507         actually deposit the new case tables where the rest of XEmacs can
13508         see them.
13509
13510 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13511
13512         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13513
13514 2000-06-05  Ben Wing  <ben@xemacs.org>
13515
13516         * callproc.c (child_setup): Don't do close_load_descs() under
13517         MS Windows.  Put in a comment explaining why.
13518
13519 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13520
13521         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13522         Toolkit shell" which breaks `kill-compilation' on Windows NT
13523         native, retaining STDERR handling improvements.
13524
13525 2000-06-01  Andreas Jaeger  <aj@suse.de>
13526
13527         * s/s390.h: Support for S390, based on a patch by Martin
13528         Schwidefsky <schwidefsky@de.ibm.com>.
13529
13530 2000-05-30  Andy Piper  <andy@xemacs.org>
13531
13532         * window.c (allocate_window):
13533         (make_dummy_parent):
13534         (Fset_window_configuration): use new hashtable type.
13535
13536         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13537         (struct image_instantiator_methods):
13538         (struct Lisp_Image_Instance): make instance geometry signed.
13539
13540         * glyphs.c (instantiate_image_instantiator):
13541         (image_instance_query_geometry):
13542         (image_instance_layout):
13543         (image_instance_layout):
13544         (query_string_geometry):
13545         (text_query_geometry):
13546         (image_instantiate):
13547         (image_instantiate):
13548         (cache_subwindow_instance_in_frame_maybe):
13549         (subwindow_query_geometry): make instance geometry signed.
13550
13551         * glyphs-widget.c (widget_query_geometry):
13552         (widget_layout):
13553         (button_query_geometry):
13554         (tree_view_query_geometry):
13555         (tab_control_query_geometry):
13556         (layout_query_geometry):
13557         (layout_layout):
13558         (native_layout_layout): make instance geometry signed.
13559
13560 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13561
13562         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13563         constant.
13564
13565         * general.c (syms_of_general): Add Qfull_assoc symbol.
13566
13567         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13568         correctly.
13569         (decode_weak_list_type): Decode full-assoc type.
13570         (encode_weak_list_type): Encode full-assoc type.
13571         (Fmake_weak_list): Update doc string.
13572
13573 2000-05-30  Andy Piper  <andy@xemacs.org>
13574
13575         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13576
13577         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13578         (decode_hash_table_weakness): ditto.
13579         (Fhash_table_weakness): ditto.
13580         (Fhash_table_type): ditto.
13581         (finish_marking_weak_hash_tables): ditto.
13582         (hash_table_weakness_validate): ditto.
13583         (syms_of_elhash): ditto.
13584
13585 2000-05-28  Martin Buchholz <martin@xemacs.org>
13586
13587         * XEmacs 21.2.34 is released.
13588
13589 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13590
13591         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13592         start cache.
13593         (updating_line_start_cache): Gone.
13594         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13595         generic code to force a minimum of 1 line laid out in the
13596         CMOTION_DISP case.
13597
13598 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13599
13600         * glyphs.c (instantiate_image_instantiator): Check for initialized
13601         height & width no longer special cases IMAGE_NOTHING.
13602         (nothing_instantiate): Set height and width of instance.
13603
13604 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13605
13606         * unexelf.c (unexec): Search for ".data" section.
13607         Initialize new_data2_offset from old_data_index.
13608         Remove redundant check for ElfW.
13609
13610 2000-05-23  Andy Piper  <andy@xemacs.org>
13611
13612         * glyphs.c (get_image_instantiator_governing_domain): allow more
13613         specific domains as the governing domain rather than expecting an
13614         exact match. This fixes problems with layouts.
13615
13616 2000-05-22  Andy Piper  <andy@xemacs.org>
13617
13618         * redisplay-output.c (compare_runes): check for non-images
13619
13620         * glyphs.c (set_glyph_dirty_p): ditto.
13621         (update_glyph_cachel_data): ditto.
13622
13623         * glyphs-widget.c (layout_post_instantiate): ditto.
13624         (layout_post_instantiate): ditto.
13625
13626         * event-msw.c (mswindows_wnd_proc): warning removal.
13627
13628 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13629
13630         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13631
13632         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13633
13634         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13635
13636         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13637         (mswindows_executable_type): mingw32 now has enough headers for
13638         this to work.
13639
13640 2000-05-20  Andy Piper  <andy@xemacs.org>
13641
13642         * console-msw.c (mswindows_output_last_error): ; -> ,
13643
13644 2000-05-12  Andy Piper  <andy@xemacs.org>
13645
13646         * console-msw.c (FROB): compare ints with ints.
13647
13648 2000-05-11  Andy Piper  <andy@xemacs.org>
13649
13650         * glyphs-x.c (x_finalize_image_instance): make minimal build
13651         happy.
13652
13653 2000-05-20  Ben Wing  <ben@xemacs.org>
13654
13655         * event-Xt.c:
13656         * event-Xt.c (vars_of_event_Xt):
13657         move modifier-keys-are-sticky to event-stream.c.
13658
13659         * event-msw.c:
13660         * event-msw.c (mswindows_enqueue_mouse_button_event):
13661         * event-msw.c (key_needs_default_processing_p):
13662         * event-msw.c (XEMSW_LCONTROL):
13663         * event-msw.c (mswindows_handle_sticky_modifiers):
13664         * event-msw.c (FROB):
13665         * event-msw.c (clear_sticky_modifiers):
13666         * event-msw.c (output_modifier_keyboard_state):
13667         * event-msw.c (output_alt_keyboard_state):
13668         * event-msw.c (mswindows_wnd_proc):
13669         * event-msw.c (mswindows_modifier_state):
13670         * event-msw.c (emacs_mswindows_handle_magic_event):
13671         implement sticky modifiers.
13672
13673         * event-stream.c:
13674         * event-stream.c (vars_of_event_stream):
13675         move modifier-keys-are-sticky here.
13676
13677         * lisp.h:
13678         add CHECK_FUNCTION.
13679
13680         * rangetab.c:
13681         implement map-range-table.
13682
13683
13684 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13685
13686         * redisplay-tty.c (reset_tty_modes):
13687         (tty_redisplay_shutdown): Adjust argument type to
13688         tty_frame_output_end.
13689
13690 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13691
13692         * eval.c (Fbacktrace): Don't output a line with only right
13693         parenthesis.
13694
13695 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13696
13697         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13698         (Fpq_reset_poll): Ditto.
13699
13700 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13701
13702         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13703
13704 2000-05-16  Ben Wing  <ben@xemacs.org>
13705
13706         * buffer.c:
13707         * buffer.c (dfc_convert_to/from_internal_format):
13708         * buffer.c (reinit_vars_of_buffer):
13709         Fix conversion functions to allow reentrancy.
13710
13711         * console-msw.c:
13712         * console-msw.c (mswindows_output_last_error):
13713         New fun, generally useful -- output a human-readable
13714         version of GetLastError() on the console.
13715
13716         * console-msw.h:
13717         * console-msw.h (struct mswindows_frame):
13718         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13719
13720         * console-stream.c (stream_output_begin):
13721         * console-stream.c (stream_output_end):
13722         * console-stream.c (stream_output_vertical_divider):
13723         * console-stream.c (stream_clear_region):
13724         * console-stream.c (stream_flash):
13725         * console-stream.c (console_type_create_stream):
13726         Delete blank stream methods, not needed.
13727
13728         * console.h (struct console_methods):
13729         Split begin/end methods into window and frame.
13730
13731         * event-msw.c:
13732         * event-msw.c (mswindows_handle_paint):
13733         * event-msw.c (output_alt_keyboard_state):
13734         * event-msw.c (mswindows_wnd_proc):
13735         * event-msw.c (vars_of_event_mswindows):
13736         Comment about problems with ignored-expose.
13737         Define mswindows-debug-events; not really implemented.
13738
13739         * frame-msw.c (mswindows_init_frame_1):
13740         random cleanups.
13741
13742         * glyphs-msw.c:
13743         * glyphs-msw.c (begin_defer_window_pos):
13744         * glyphs-msw.c (mswindows_unmap_subwindow):
13745         * glyphs-msw.c (mswindows_map_subwindow):
13746         * glyphs-msw.c (mswindows_resize_subwindow):
13747         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13748
13749         * glyphs.c (make_image_instance_1):
13750         Fix crash.
13751
13752         * gutter.c (Fredisplay_gutter_area):
13753         Use new begin/end methods.
13754
13755         * lisp.h (Dynarr_new2):
13756         New creation fun.
13757
13758         * redisplay-msw.c:
13759         * redisplay-msw.c (mswindows_frame_output_begin):
13760         * redisplay-msw.c (mswindows_frame_output_end):
13761         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13762         New begin/end methods -- handle DeferWindowPos.
13763
13764         * redisplay-output.c (redisplay_move_cursor):
13765         * redisplay-output.c (redraw_cursor_in_window):
13766         * redisplay-output.c (redisplay_update_line):
13767         * redisplay-output.c (redisplay_output_window):
13768         New begin/end methods.
13769
13770         * redisplay-tty.c:
13771         * redisplay-tty.c (tty_frame_output_begin):
13772         * redisplay-tty.c (tty_frame_output_end):
13773         * redisplay-tty.c (console_type_create_redisplay_tty):
13774         New begin/end methods.
13775
13776         * redisplay-x.c:
13777         * redisplay-x.c (x_window_output_begin):
13778         * redisplay-x.c (x_window_output_end):
13779         * redisplay-x.c (console_type_create_redisplay_x):
13780         New begin/end methods.
13781
13782         * redisplay.c (redisplay_frame):
13783         * redisplay.c (Fredisplay_echo_area):
13784         New begin/end methods.
13785         use MAYBE_DEVMETH for clear_frame; it may not exist.
13786
13787         * window.h (WINDOW_XFRAME):
13788         WINDOW_XFOO macros -- get locale and decode struct pointer.
13789
13790
13791 2000-05-12  Ben Wing  <ben@xemacs.org>
13792
13793         * emacs.c:
13794         * emacs.c (ensure_no_quitting_from_now_on):
13795         * emacs.c (fatal_error_signal):
13796         * emacs.c (mswindows_handle_hardware_exceptions):
13797         * emacs.c (main):
13798         * emacs.c (Fkill_emacs):
13799         * emacs.c (shut_down_emacs):
13800         * emacs.c (assert_failed):
13801         various improvements in fatal error handling.
13802
13803         * eval.c:
13804         move preparing_for_armageddon to emacs.c.
13805
13806         * lisp.h:
13807         declare fatal_error_in_progress.
13808
13809         * print.c:
13810         * print.c (std_handle_out_external):
13811         * print.c (std_handle_out_va):
13812         * print.c (stderr_out):
13813         * print.c (stdout_out):
13814         use console under mswin when no standard output.
13815         don't do code conversion during fatal error.
13816
13817         * scrollbar.c (Fscrollbar_page_up):
13818         * scrollbar.c (Fscrollbar_page_down):
13819         fix missing else.  reindent.
13820
13821 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13822
13823         Emergency fix.
13824
13825         * glyphs.h (GLYPH_CACHEL_DESCENT):
13826         (GLYPH_CACHEL_DESCENT):
13827         (GLYPH_CACHEL_DESCENT):
13828         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13829         used in case these are inline functions.
13830         Use more absurd values to error check.
13831
13832         include window.h for error check functions.
13833
13834 2000-05-11  Ben Wing  <ben@xemacs.org>
13835
13836         * cmdloop.c (Freally_early_error_handler):
13837         Display message box under windows; otherwise, message will disappear
13838         before it can be viewed.
13839
13840         * console-msw.c:
13841         * console-msw.c (Fmswindows_message_box):
13842         * console-msw.c (FROB):
13843         * console-msw.c (syms_of_console_mswindows):
13844         Define new fun `mswindows-message-box'.
13845         #### I will merge this into `popup-dialog-box'; just give me
13846         a bit of time.
13847
13848         * general.c:
13849         * general.c (syms_of_general):
13850         Some new symbols used in `mswindows-message-box'.
13851
13852         * glyphs.c:
13853         * glyphs.c (Fset_image_instance_property):
13854         put warning in this fun.
13855
13856         * glyphs.h:
13857         * glyphs.h (GLYPH_CACHEL_WIDTH):
13858         * glyphs.h (GLYPH_CACHEL_ASCENT):
13859         * glyphs.h (GLYPH_CACHEL):
13860         * glyphs.h (GLYPH_CACHEL_GLYPH):
13861         define error-checking versions to try to catch a bug i've seen --
13862         redisplay gets in an infinite loop because the glyph width of the
13863         continuation glyph is 65535.
13864
13865         * lisp.h:
13866         Extern message-box stuff.
13867
13868         * window.c (allocate_window):
13869         * window.c (make_dummy_parent):
13870         * window.c (Fset_window_configuration):
13871         Use EQUAL not EQ for subwindow caches to make them work a bit
13872         better. (Something is still very broken.)
13873
13874
13875 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13876
13877         * glyphs.c (image_instantiate): Suppress gcc warnings.
13878         (Fmake_image_instance): Fix doc string.
13879         * specifier.c (Fmake_specifier): Ditto.
13880
13881 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13882
13883         * paths.h.in (PATH_LOCK): Removed.
13884         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13885         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13886
13887 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13888
13889         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13890         Document (featurep '(and xemacs 21.02)).
13891
13892 2000-05-09  Ben Wing  <ben@xemacs.org>
13893
13894         * buffer.c (complex_vars_of_buffer):
13895         update modeline-format doc.
13896
13897         * device.h:
13898         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13899
13900         * emacs.c:
13901         timeline of all released versions of Emacs, for use in creating
13902         authorship comments and in synching up.
13903
13904         * glyphs-widget.c (image_instantiator_buttons):
13905         * glyphs-widget.c (image_instantiator_edit_fields):
13906         * glyphs-widget.c (image_instantiator_combo_box):
13907         * glyphs-widget.c (image_instantiator_scrollbar):
13908         * glyphs-widget.c (image_instantiator_progress_guage):
13909         * glyphs-widget.c (image_instantiator_tree_view):
13910         * glyphs-widget.c (image_instantiator_tab_control):
13911         * glyphs-widget.c (image_instantiator_labels):
13912         * glyphs-widget.c (image_instantiator_layout):
13913         * glyphs-widget.c (image_instantiator_native_layout):
13914         rename decode_domain method to governing_domain.
13915
13916         * glyphs.c:
13917         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13918         * glyphs.c (add_entry_to_device_ii_format_list):
13919         make sure we don't put an entry more than once into the list.
13920         * glyphs.c (check_instance_cache_mapper):
13921         *************************************************************
13922         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13923         HAVE BEEN GETTING.
13924         *************************************************************
13925         * glyphs.c (get_image_instantiator_governing_domain):
13926         clean up, expand on new concept of governing domain.
13927         * glyphs.c (instantiate_image_instantiator):
13928         * glyphs.c (allocate_image_instance):
13929         use governing_domain instead of cache_domain in naming.
13930         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13931         * glyphs.c (make_image_instance_1):
13932         * glyphs.c (Fmake_image_instance):
13933         allow for any domain (not just device), and process the
13934         governing domain correctly.  very big doc fix.
13935         * glyphs.c (Fimage_instance_domain):
13936         new primitive, to retrieve the governing domain of an image instance.
13937         * glyphs.c (image_instantiate):
13938         use new governing_domain stuff.  this fixes a crash you could get
13939         by instantiating certain widget glyphs in frame locales. (should
13940         signal an error instead of crashing.)
13941         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13942         * glyphs.c (Fglyphp): clean up doc.
13943         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13944         * glyphs.c (syms_of_glyphs):
13945         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13946         * glyphs.c (image_instantiator_format_create): add some comments about
13947         bogus code.
13948         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13949         for current-display-table. (Apparently Hrjove implemented in 1998 a
13950         design I wrote up in 1996, but didn't update the doc string.)
13951
13952         * glyphs.h: clean up a doc string.
13953         * glyphs.h (governing_domain):
13954         * glyphs.h (struct image_instantiator_methods):
13955         changes for governing_domain stuff.
13956
13957         * gutter.c:
13958         * gutter.c (Fgutter_specifier_p):
13959         * gutter.c (Fgutter_size_specifier_p):
13960         * gutter.c (Fgutter_visible_specifier_p):
13961         * objects.c:
13962         * objects.c (Fcolor_specifier_p):
13963         * objects.c (Ffont_specifier_p):
13964         * objects.c (Fface_boolean_specifier_p):
13965         doc strings moved to make-*-specifier.
13966
13967         * redisplay.c (add_disp_table_entry_runes_1):
13968         * redisplay.c (generate_fstring_runes):
13969         * redisplay.c (screen):
13970         add random comments and doc strings.
13971
13972         * specifier.c:
13973         * specifier.c (Fmake_specifier):
13974         major overhaul of this doc string.
13975
13976         * specifier.c (Fvalid_specifier_domain_p):
13977         comment about the bogosity of image instances being domains.
13978         * specifier.c (decode_domain):
13979         now non-static, used in glyphs.c.
13980         * specifier.c (specifier_instance):
13981         comment about the bogosity of image instances being domains.
13982         * specifier.c (Fgeneric_specifier_p):
13983         move doc string to make-generic-specifier.
13984         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13985         rebackslashify.
13986
13987         * specifier.h:
13988         * specifier.h (DOMAIN_FRAME):
13989         * specifier.h (DOMAIN_LIVE_P):
13990         * specifier.h (DOMAIN_XDEVICE):
13991         rebackslashify.
13992         add comments about problems with these macros.
13993         prototype for decode_domain.
13994
13995         * toolbar.c:
13996         * toolbar.c (Ftoolbar_specifier_p):
13997         move doc string to `make-toolbar-specifier'.
13998
13999         * window.c (window_unmap_subwindows_cache_mapper):
14000         *************************************************************
14001         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14002         HAVE BEEN GETTING.
14003         *************************************************************
14004
14005 2000-05-09  Andy Piper  <andy@xemacs.org>
14006
14007         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14008
14009         * window.c (Fset_window_configuration): reset the frame subwindow
14010         cache and re-initialize the window subwindow caches.
14011
14012         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14013
14014 2000-05-09  Ben Wing  <ben@xemacs.org>
14015
14016         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14017         DWORD.
14018
14019 2000-04-26  Mike Woolley  <mike@bulsara.com>
14020
14021         * ntheap.c: Changed recreate_heap to limit the amount reserved
14022         for the heap to that which is actually available. Also now
14023         displays a message box (with some dignostics) in the event that
14024         it still can't start.
14025
14026 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14027
14028         * callproc.c (Fold_call_process_internal): GCPRO path
14029
14030 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14031
14032         Patch by Bill Perry.
14033
14034         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14035         back data instead of #ifdef.
14036         (Fscrollbar_page_down): ditto.
14037
14038 2000-05-07  Ben Wing  <ben@xemacs.org>
14039
14040         * buffer.h:
14041         Kludge for defining Qmswindows_tstr.
14042
14043         * nt.c:
14044         * nt.c (open_input_file):
14045         * nt.c (open_output_file):
14046         * nt.c (rva_to_section):
14047         * nt.c (mswindows_executable_type):
14048         Move all memory-mapped-file routines here (some were in unexnt.c,
14049         which is bad because they are used by process-nt.c, and unexnt
14050         won't be around when portable dumping).  Synched the above routines
14051         with FSF 20.6.
14052
14053         * nt.h:
14054         Removed ifdef'd out bogus code.
14055         Fixed some prototypes.
14056
14057         * nt.h (file_data):
14058         * nt.h (OFFSET_TO_RVA):
14059         * nt.h (RVA_TO_OFFSET):
14060         * nt.h (RVA_TO_PTR):
14061         Moved the memory-mapped-file structures, macros and prototypes
14062         here, to parallel nt.c.  ntheap.h should really be removed
14063         entirely, and it's a non-portable-dumper specific file.
14064
14065         * ntheap.h (round_to_next):
14066         Moved the memory-mapped-file structures, macros and prototypes
14067         to nt.h.
14068
14069         * ntproc.c (compare_env):
14070         Moved rva_to_section and mswindows_executable_type to nt.c.
14071         Moved compare_env to process-nt.c.
14072         ntproc.c will die, one day.
14073
14074         * ntproc.c (sys_spawnve):
14075         Account for win32_ -> mswindows_.
14076
14077         * process-nt.c:
14078         * process-nt.c (struct nt_process_data):
14079         * process-nt.c (ensure_console_window_exists):
14080         * process-nt.c (compare_env):
14081         * process-nt.c (nt_create_process):
14082         * process-nt.c (nt_kill_process_by_pid):
14083         * process-nt.c (syms_of_process_nt):
14084         * process-nt.c (vars_of_process_nt):
14085         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14086         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14087         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14088         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14089         Move compare_env here from ntproc.c.
14090
14091         * process.c (Fprocess_send_region):
14092         Takes an optional fourth argument, BUFFER, which should fix some
14093         problems with call-process.
14094
14095         * syscommctrl.h:
14096         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14097
14098         * syswindows.h:
14099         Move ICC_BAR_CLASSES to syscommctrl.h.
14100         Add preliminary macros for MSWindows/Mule.  More to come.
14101
14102         * unexnt.c:
14103         * unexnt.c (unexec):
14104         open_output_file moved to nt.c.
14105
14106
14107 2000-05-05  Andy Piper  <andy@xemacs.org>
14108
14109         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14110         instance from the frame cache also since GC may catch up too late
14111         to make frame deletion sane.
14112
14113 2000-05-04  Andy Piper  <andy@xemacs.org>
14114
14115         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14116         (x_finalize_image_instance): ungcpro on deletion.
14117
14118         * glyphs.c (image_instantiator_format_create): give pointers a
14119         query geometry method so that the geometry is at least set.
14120
14121         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14122         initialize layouts if using widgets.
14123
14124 2000-05-03  Andy Piper  <andy@xemacs.org>
14125
14126         * nt.c: remove bogus reference to sysmmsystem.h
14127
14128         * gui-x.c (popup_selection_callback): fix no selection abort.
14129
14130 2000-05-02  Andy Piper  <andy@xemacs.org>
14131
14132         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14133         (mswindows_widget_instantiate): ditto.
14134
14135         * glyphs-widget.c (initialize_widget_image_instance): initialize
14136         children correctly.
14137         (widget_instantiate): cope with children and items in the same
14138         instance.
14139
14140         * glyphs.c (mark_image_instance): cope with children as a first
14141         class member.
14142         (image_instance_equal): ditto.
14143         (image_instance_hash): ditto.
14144         (image_instance_changed): ditto.
14145
14146 2000-04-30  Andy Piper  <andy@xemacs.org>
14147
14148         * glyphs.c (subwindow_query_geometry): new function. Return some
14149         defaults.
14150         (subwindow_instantiate): don't assign dimensions if none have been
14151         given.
14152         (image_instantiator_format_create): add subwindow_query_geometry.
14153         (print_image_instance): cope with layouts as widgets.
14154
14155 2000-04-29  Andy Piper  <andy@xemacs.org>
14156
14157         * frame.c (delete_frame_internal): call
14158         free_frame_subwindow_instance_cache so that all subwindows are
14159         finalized before their parent.
14160         (mark_frame): remove subwindow_cachels.
14161         (Fmake_frame): remove subwindow_cachel manipulation.
14162         (allocate_frame_core): subwindow_instance_cache is a weak list.
14163         (delete_frame_internal): set subwindow_instance_cache to nil.
14164
14165         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14166         finalization safe.
14167         (mswindows_finalize_image_instance): use the device
14168         not the domain as the domain may have died already.
14169
14170         * glyphs-x.c (x_finalize_image_instance): ditto.
14171         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14172         HEIGHT.
14173
14174         * redisplay-output.c (redisplay_unmap_subwindows): update for
14175         subwindow instance cache as a weak list.
14176         (redisplay_unmap_subwindows_maybe): ditto.
14177         (redisplay_unmap_subwindows_except_us): ditto.
14178
14179         * glyphs.c (unmap_subwindow): error checking will check the domain
14180         so don't deal with it here. Don't use cachels anymore.
14181         (map_subwindow): ditto.
14182         (update_subwindow_cachel_data): remove old accessor names.
14183         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14184         (Fresize_subwindow): don't update cachel.
14185         (mark_subwindow_cachels):
14186         (update_subwindow_cachel_data):
14187         (add_subwindow_cachel):
14188         (get_subwindow_cachel_index):
14189         (update_subwindow_cachel):
14190         (reset_subwindow_cachels):
14191         (mark_subwindow_cachels_as_not_updated): deleted.
14192         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14193         subwindow instance to the frame cache.
14194         (find_matching_subwindow): update for subwindow instance cache as
14195         a weak list.
14196         (update_widget_instances): ditto.
14197         (image_instance_type_to_mask):inlined.
14198         (free_frame_subwindow_instance_cache): new function. finalize all
14199         subwindows that are instantiated.
14200
14201         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14202         of cachel information.
14203         (IMAGE_INSTANCE_DISPLAY_X):
14204         (IMAGE_INSTANCE_DISPLAY_Y):
14205         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14206         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14207         (XIMAGE_INSTANCE_DISPLAY_X):
14208         (XIMAGE_INSTANCE_DISPLAY_Y):
14209         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14210         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14211         remove subwindow_cachel structure and function references.
14212         (image_instance_type_to_mask): inline from glyphs.c
14213
14214         * redisplay.c (redisplay_frame): remove subwindow_cachel
14215         references.
14216
14217         * frame.h (struct frame): remove subwindow_cachels.
14218         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14219
14220         * frameslots.h: add subwindow_instance_cache.
14221
14222         * window.c (replace_window): check subwindow cache of replacement.
14223         (window_unmap_subwindows_cache_mapper):
14224         (window_unmap_subwindows): new functions. Unmap all subwindows
14225         cached on this window.
14226         (mark_window_as_deleted): unmap all subwindows.
14227
14228 2000-04-27  Andy Piper  <andy@xemacs.org>
14229
14230         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14231
14232         * glyphs-widget.c (widget_layout): return something.
14233         (layout_layout): return something. Fail if not initialized.
14234         (layout_query_geometry): ditto.
14235         (image_instantiator_native_layout): new function. Initialized the
14236         native layout type.
14237         (widget_instantiate): don't do layout stuff here.
14238
14239         * glyphs.c (instantiate_image_instantiator): reorded calling or
14240         instantiate and post_instantiate with layout in between.
14241         (image_instance_layout): be more selective about deciding whether
14242         the layout has been done or not.
14243
14244         * glyphs.h (struct image_instantiator_methods): return a value
14245         from layout_method.
14246
14247 2000-04-26  Andy Piper  <andy@xemacs.org>
14248
14249         * glyphs.c (allocate_image_instance): make initial width and
14250         height unspecified. Set initialized to 0.
14251
14252         * syscommctrl.h new file. Encapsulates commctrl.h.
14253
14254         * syswindows.h new file. Encapsulates windows.h.
14255
14256         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14257         * nt.c: ditto.
14258         * console-msw.h: ditto.
14259
14260         * redisplay-tty.c (tty_output_display_block): remove layout references.
14261
14262         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14263         window handle rather than just the frame.
14264
14265         * glyphs.c (mark_image_instance): remove layout references.
14266         (print_image_instance): ditto.
14267         (image_instance_equal): ditto.
14268         (image_instance_hash): ditto.
14269         (decode_image_instance_type): ditto.
14270         (encode_image_instance_type): ditto.
14271         (image_instantiate): ditto.
14272         (allocate_glyph): ditto.
14273         (Fimage_instance_height): ditto.
14274         (Fimage_instance_width): ditto.
14275         (update_subwindow): ditto.
14276
14277         * redisplay-x.c (x_output_display_block): recode for layouts as
14278         widgets.
14279
14280         * redisplay-output.c (redisplay_output_layout): recode for layouts
14281         as widgets.
14282         (compare_runes): remove layout references.
14283
14284         * redisplay-msw.c (mswindows_output_display_block): recode for
14285         layouts as widgets.
14286
14287         * glyphs-widget.c (image_instantiator_layout): remove
14288         layout_possible_dest_types.
14289         (layout_possible_dest_types): deleted.
14290
14291         * glyphs.h (image_instance_type): remove layout references.
14292         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14293         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14294         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14295
14296 2000-04-25  Andy Piper  <andy@xemacs.org>
14297
14298         * glyphs-widget.c (image_instantiator_buttons):
14299         (image_instantiator_edit_fields):
14300         (image_instantiator_combo_box):
14301         (image_instantiator_scrollbar):
14302         (image_instantiator_progress_guage):
14303         (image_instantiator_tree_view):
14304         (image_instantiator_tab_control):
14305         (image_instantiator_labels):
14306         (image_instantiator_layout): call default post_instantiate method.
14307         (widget_post_instantiate): new function. Simply lays out the
14308         widgets.
14309
14310         * glyphs.h (struct image_instantiator_methods): add
14311         post_instantiate method.
14312
14313         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14314         method calls.
14315
14316 2000-04-23  Andy Piper  <andy@xemacs.org>
14317
14318         * glyphs.h (struct image_instantiator_methods): add
14319         decode_domain_method.
14320         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14321         derived from the domain.
14322         (IMAGE_INSTANCE_FRAME): new accessor.
14323         (XIMAGE_INSTANCE_FRAME): ditto.
14324
14325         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14326         instead of _SUBWINDOW_FRAME.
14327         (finalize_image_instance): ditto.
14328         (Fimage_instance_foreground): ditto.
14329         (Fimage_instance_background): ditto.
14330         (image_instantiate): ditto.
14331         (update_subwindow_cachel): ditto.
14332         (update_subwindow): ditto.
14333         (unmap_subwindow): ditto.
14334         (map_subwindow): ditto
14335         (subwindow_instantiate): ditto.
14336         * glyphs-msw.c (mswindows_update_widget): ditto.
14337         (mswindows_progress_gauge_instantiate): ditto.
14338         (mswindows_tab_control_update): ditto.
14339         * glyphs-x.c (x_update_widget): ditto.
14340         (x_widget_instantiate): ditto.
14341         (x_tab_control_instantiate): ditto.
14342         (x_tab_control_update): ditto.
14343         * event-msw.c (mswindows_wnd_proc): ditto
14344
14345         * glyphs-widget.c (image_instantiator_layout): use
14346         subwindow_decode_domain.
14347         (image_instantiator_buttons): ditto.
14348         (image_instantiator_edit_fields): ditto.
14349         (image_instantiator_combo_box): ditto.
14350         (image_instantiator_scrollbar): ditto.
14351         (image_instantiator_progress_guage): ditto.
14352         (image_instantiator_tree_view): ditto.
14353         (image_instantiator_tab_control): ditto.
14354         (image_instantiator_labels): ditto.
14355         (image_instantiator_layout): ditto.
14356
14357         * glyphs.c: add instance error checking to many functions.
14358         (instantiate_image_instantiator): decode device from cache_domain.
14359         (image_instantiate): partially rewrite by using
14360         decode_image_instantiator_domain to determine what domain the
14361         instance needs to be cached in.
14362         (decode_image_instantiator_domain): new function. Determine what
14363         domain the image needs to be cached in.
14364         (check_window_subwindow_cache): new error checking function.
14365         (check_instance_cache_mapper): ditto.
14366         (check_image_instance_structure): ditto.
14367         (subwindow_decode_domain): new function. Encodes a window as a
14368         subwindow's cache domain.
14369         (image_instantiator_format_create): use it for text and
14370         subwindows.
14371
14372 2000-04-21  Andy Piper  <andy@xemacs.org>
14373
14374         * glyphs.c (image_instance_device): new function.
14375         (image_instance_frame): new function.
14376         (image_instance_window): new function.
14377         (image_instance_live_p): new function.
14378
14379         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14380         cache to nil.
14381
14382         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14383         (IMAGE_INSTANCE_DOMAIN): new accessor.
14384         (XIMAGE_INSTANCE_DOMAIN): ditto.
14385
14386         * glyphs-x.c (x_finalize_image_instance): device->domain.
14387
14388         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14389         (mswindows_finalize_image_instance): ditto.
14390
14391         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14392         (gif_instantiate): ditto.
14393         (png_instantiate): ditto.
14394         (tiff_instantiate): ditto.
14395
14396         * glyphs.c (instantiate_image_instantiator): use domain rather
14397         than device.
14398         (mark_image_instance): device -> domain.
14399         (print_image_instance): ditto.
14400         (finalize_image_instance): ditto.
14401         (image_instance_equal): ditto.
14402         (allocate_image_instance): ditto.
14403         (Fcolorize_image_instance): ditto.
14404         (query_string_geometry): ditto.
14405         (image_instantiate): ditto
14406         (query_string_font): ditto.
14407         (image_instantiate): ditto.
14408         (update_subwindow): ditto.
14409         (unmap_subwindow): ditto.
14410         (map_subwindow): ditto.
14411         (subwindow_instantiate): ditto.
14412
14413         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14414         (DOMAIN_FRAME): ditto.
14415         (DOMAIN_WINDOW): ditto.
14416         (DOMAIN_LIVE_P): ditto.
14417         (XDOMAIN_DEVICE): ditto.
14418         (XDOMAIN_FRAME): ditto.
14419         (XDOMAIN_WINDOW): ditto.
14420
14421         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14422         a valid specifier domain.
14423
14424 2000-04-19  Andy Piper  <andy@xemacs.org>
14425
14426         * glyphs-widget.c (syms_of_glyphs_widget): remove
14427         widget-callback-current-channel.
14428         (vars_of_glyphs_widget): ditto.
14429         * glyphs.h: ditto
14430
14431         * gui.c (get_gui_callback): revert to previous behaviour.
14432
14433 2000-04-18  Andy Piper  <andy@xemacs.org>
14434
14435         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14436         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14437         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14438
14439         * glyphs.c (image_instance_equal): add margin_width.
14440         (image_instance_hash): ditto.
14441
14442         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14443         (layout_query_geometry): ditto.
14444         (layout_layout): ditto.
14445         (syms_of_glyphs_widget): add margin-width.
14446         (image_instantiator_layout): allow margin-width.
14447
14448         * glyphs.c (update_widget_instances): make a normal function.
14449         (syms_of_glyphs): remove Qupdate_widget_instances.
14450         * glyphs.h: ditto.
14451
14452         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14453         so that we don't corrupt ideas about the last event or
14454         command. Remove widget-callback-current-channel fiddling.
14455         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14456
14457 2000-05-01  Martin Buchholz <martin@xemacs.org>
14458
14459         * XEmacs 21.2.33 is released.
14460
14461 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14462
14463         * make-src-depend: Allow dots in header file name.
14464
14465 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14466
14467         * mule-charset.h (struct charset_lookup): Add
14468         next_allocated_1_byte_leading_byte and
14469         next_allocated_2_byte_leading_byte.
14470         * mule-charset.c: Move above two variables so that those values
14471         will be dumped.
14472
14473 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14474
14475         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14476         when string length is zero.
14477         (find_charsets_in_emchar_string): Ditto.
14478
14479 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14480
14481         * lisp.h: extern Qdialog and Qmenubar.
14482
14483         * gui-x.c: added events.h.
14484                 also fixed typo which made the file uncompilable.
14485
14486         * general.c: Added Qmenubar and Qdialog
14487
14488 2000-04-28  Ben Wing  <ben@xemacs.org>
14489
14490         * frame-msw.c (mswindows_init_frame_1):
14491         * frame-msw.c (mswindows_mark_frame):
14492         * event-msw.c (mswindows_enqueue_dispatch_event):
14493         * console-msw.h:
14494         * console-msw.h (struct mswindows_frame):
14495         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14496         there are now three hash tables for callbacks.
14497         mswindows_enqueue_dispatch_event is no longer static.
14498
14499         * dialog-x.c (maybe_run_dbox_text_callback):
14500         * dialog-x.c (dbox_descriptor_to_widget_value):
14501         switch to new cons3 form for callbacks.
14502
14503         * glyphs-msw.c (mswindows_register_gui_item):
14504         * glyphs-msw.c (mswindows_widget_instantiate):
14505         * glyphs-msw.c (add_tree_item):
14506         * glyphs-msw.c (add_tab_item):
14507         new image instance parameter, so it can be passed to callback-ex.
14508         respect :callback-ex as well as :callback.
14509
14510         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14511         add :callback-ex.
14512
14513         * glyphs.c (print_image_instance):
14514         prettify, e.g. now prints widget type.
14515
14516         * gui-x.h:
14517         certain funs have new image instance parameter.
14518
14519         * gui.c:
14520         * gui.c (get_gui_callback):
14521         * gui.c (gui_item_add_keyval_pair):
14522         * gui.c (gui_item_init):
14523         * gui.c (gui_add_item_keywords_to_plist):
14524         * gui.c (mark_gui_item):
14525         * gui.c (gui_item_hash):
14526         * gui.c (gui_item_equal):
14527         * gui.c (copy_gui_item):
14528         * gui.c (syms_of_gui):
14529         recognize callback-ex in a number of places.
14530         also, fix the annoying "can't get out of yes-no dialog" bug.
14531
14532         * gui.h:
14533         * gui.h (struct Lisp_Gui_Item):
14534         recognize callback-ex in a number of places.
14535
14536         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14537         new parameter in button_item_to_widget_value.
14538
14539         * glyphs-x.c (x_update_widget):
14540         * glyphs-x.c (x_button_instantiate):
14541         * glyphs-x.c (x_button_update):
14542         * glyphs-x.c (x_progress_gauge_instantiate):
14543         * glyphs-x.c (x_edit_field_instantiate):
14544         * glyphs-x.c (x_combo_box_instantiate):
14545         * glyphs-x.c (x_tab_control_instantiate):
14546         * glyphs-x.c (x_label_instantiate):
14547         new image instance parameter in various places.
14548
14549         * event-Xt.c:
14550         * event-Xt.c (enqueue_Xt_dispatch_event):
14551         this fun gets exported.
14552
14553         * gui-msw.c:
14554         * gui-msw.c (mswindows_handle_gui_wm_command):
14555         handle both :callback and :callback-ex, and generate our own
14556         event because it's one of the callback-ex arguments.
14557
14558         * gui-x.c:
14559         * gui-x.c (popup_selection_callback):
14560         handle both :callback and :callback-ex, and generate our own
14561         event because it's one of the callback-ex arguments.
14562         * gui-x.c (button_item_to_widget_value):
14563         * gui-x.c (gui_items_to_widget_values_1):
14564         * gui-x.c (gui_item_children_to_widget_values):
14565         * gui-x.c (gui_items_to_widget_values):
14566         new image instance parameter in various places.
14567
14568         * fns.c (Freplace_list):
14569         fix small typo in doc string.
14570
14571         * lisp.h:
14572         declare enqueue_Xt_dispatch_event.
14573
14574 2000-04-28  Ben Wing  <ben@xemacs.org>
14575
14576         * buffer.c:
14577         * buffer.c (Frecord_buffer):
14578         * buffer.c (syms_of_buffer):
14579         delete record-buffer-hook.
14580
14581         * fns.c:
14582         * fns.c (Freplace_list):
14583         * fns.c (syms_of_fns):
14584         new primitive replace-list.
14585
14586         * frameslots.h:
14587         slot for old buffer-alist.
14588
14589         * lisp.h:
14590         exfun replace-list.
14591
14592         * redisplay.c:
14593         * redisplay.c (redisplay_frame):
14594         * redisplay.c (syms_of_redisplay):
14595         * redisplay.c (vars_of_redisplay):
14596         new hook buffer-list-changed-hook.
14597         call it.
14598
14599 2000-04-27  Ben Wing  <ben@xemacs.org>
14600
14601         * extents.h: extern in_modeline_generation.
14602
14603         * redisplay.c (generate_formatted_string_db): set
14604         in_modeline_generation.
14605
14606         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14607         flags if in modeline generation.  otherwise frame-modified-tick
14608         is ticked far too often.
14609         Declare in_modeline_generation.
14610
14611 2000-04-26  Ben Wing  <ben@xemacs.org>
14612
14613         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14614         option.
14615         (vars_of_emacs): add quick-build as an error-checking option.
14616         A bit kludgy, but there doesn't seem much point in creating
14617         a real var for this.
14618
14619         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14620
14621 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14622
14623         * redisplay.h (struct display_line): Add a new variable,
14624         line_continuation.
14625
14626         * redisplay.c (create_text_block): Set dl->line_continuation if
14627         the line continues.
14628         (create_string_text_block): Ditto.
14629         (regenerate_window_incrementally): Use line_continuation instead
14630         of searching continuation glyph.
14631         (add_margin_runes): Call add_glyph_rune.
14632         (add_glyph_rune): Handle margin glyph.
14633
14634 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14635
14636         * filelock.c (fill_in_lock_file_name):
14637         ANSIfy.
14638         Check for IS_ANY_SEP instead of '/'.
14639         (lock_file_1):
14640         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14641         Never check errno without first seeing that system call failed.
14642         (unlock_file): Add GCPRO.
14643         (Flock_buffer): Fix docstring.
14644         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14645
14646 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14647
14648         * sysdep.c (get_pty_max_bytes):
14649         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14650         strings longer than 252 bytes.
14651
14652         * md5.c: Unconditionally include ANSI header <limits.h>
14653
14654         * glyphs-x.c (convert_EImage_to_XImage):
14655         * lisp-union.h (union Lisp_Object):
14656         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14657
14658 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14659
14660         * filelock.c (current_lock_owner): Remove unused variable o, p.
14661
14662 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14663
14664         * callint.c: Remove multiply defined symbol Qlet
14665         (syms_of_callint): ditto.
14666
14667 2000-04-14  Andy Piper  <andy@xemacs.org>
14668
14669         * general.c (syms_of_general): add last-command, this-command, let
14670         and funcall.
14671
14672         * lisp.h: declare various symbols.
14673
14674         * glyphs.h: declare Qwidget_callback_current_channel;
14675
14676         * glyphs-widget.c (syms_of_glyphs_widget): add
14677         Qgui_callback_current_channel.
14678         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14679
14680         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14681         widget-callback-current-channel when invoking the interactive
14682         arg. Also bind last-command and next-command when invoking the
14683         widget updates.
14684         * gui-x.c (popup_selection_callback): ditto.
14685
14686         * gui.c (get_gui_callback): massage args so that we are always
14687         calling eval. This allows us to add our own variable bindings
14688         outside.
14689
14690         * glyphs-x.c (x_button_instantiate): use
14691         gui_items_to_widget_values since this is GC safe.
14692         (x_progress_gauge_instantiate): ditto.
14693         (x_edit_field_instantiate): ditto.
14694         (x_label_instantiate): ditto.
14695
14696         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14697         (emacs_Xt_event_widget_focus_out): new function
14698         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14699         focus.
14700         (emacs_Xt_event_add_widget_actions): new function. add focus
14701         functions as actions.
14702         (init_event_Xt_late): use it.
14703
14704 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14705
14706         * event-stream.c (Fdispatch_event): Doc fix.
14707
14708 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14709
14710         * postgresql.c: Remove all references to PQsetenv*.
14711
14712         * postgresql.h: Remove references to PGsetenvHandler object.
14713         * lrecord.h (lrecord_type): Ditto.
14714
14715 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14716
14717         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14718         real_heigh and real_width members, and accessor macros for these.
14719
14720         * glyphs-msw.c (init_image_instance_geometry): New function.
14721         (init_image_instance_from_dibitmap): Use it.
14722         (mswindows_resource_instantiate): Use it.
14723         (init_image_instance_from_xbm_inline): Use it.
14724         (mswindows_initialize_image_instance_mask): Use real bitmap
14725         geometry.
14726         (mswindows_create_resized_bitmap): Ditto.
14727         (mswindows_create_resized_mask): Ditto.
14728
14729         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14730         and bitmap to their surface size.
14731
14732 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14733
14734         * process-unix.c (unix_send_process): Guard against process MIA
14735         after Faccept_process_output.
14736
14737 2000-04-11  Ben Wing  <ben@xemacs.org>
14738
14739         * eval.c (unbind_to_hairy): fix brokenness introduced by
14740         nanosecond speed improvements.
14741
14742 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14743
14744         * sunplay.c (init_device): To play sounds correctly, the device
14745         apparently needs to be initialized at least once by XEmacs.  Make
14746         it so.
14747
14748 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14749
14750         * redisplay.c (add_margin_runes): Add text image glyph
14751           handling.
14752
14753 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14754
14755         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14756         gcc is newer than 2.5.
14757
14758 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14759
14760         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14761
14762         * fns.c (size_bit_vector):
14763         * alloc.c (size_vector):
14764         (make_vector_internal):
14765         (make_bit_vector_internal):
14766         (sweep_bit_vectors_1):
14767         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14768
14769 2000-04-06  Andy Piper  <andy@xemacs.org>
14770
14771         * gmalloc.c (malloc): undo previous change.
14772         (malloc): ditto.
14773         (free): ditto.
14774         (realloc): ditto.
14775
14776 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14777
14778         * line-number.c (buffer_line_number): Revert to former version.
14779
14780 2000-04-06  Andy Piper  <andy@xemacs.org>
14781
14782         * gmalloc.c (malloc): add error checking.
14783         (malloc): ditto.
14784         (free): ditto.
14785         (realloc): ditto.
14786
14787         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14788         button_item_to_widget_value arg.
14789
14790         * glyphs-x.c (x_button_instantiate): add extra
14791         button_item_to_widget_value arg.
14792         (x_progress_gauge_instantiate): ditto.
14793         (x_edit_field_instantiate): ditto.
14794         (x_label_instantiate): ditto.
14795
14796         * gui-x.c (gui_items_to_widget_values_1): add extra
14797         button_item_to_widget_value arg.
14798         (button_item_to_widget_value): add extra menu_item_p arg.
14799
14800         * gui-x.h: change signature of button_item_to_widget_value.
14801
14802         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14803         button_item_to_widget_value arg.
14804
14805 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14806
14807         * buffer.h (struct buffer): auto_save_modified should be long.
14808
14809 2000-04-05  Andy Piper  <andy@xemacs.org>
14810
14811         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14812         type.
14813         (button_query_geometry): give a little more room so that athena
14814         buttons fit.
14815
14816 2000-04-05  Andy Piper  <andy@xemacs.org>
14817
14818         * faces.c (complex_vars_of_faces): The widget face should inherit
14819         the font of the gui-element face.
14820
14821 2000-04-04  Andy Piper  <andy@xemacs.org>
14822
14823         * glyphs-x.c (x_button_update): new function. unconditionally
14824         update a button's state when the instance is dirty.
14825         (image_instantiator_format_create_glyphs_x): add x_button_update.
14826         (x_widget_instantiate): remove old resize cruft.
14827
14828 2000-04-02  Andy Piper  <andy@xemacs.org>
14829
14830         * frame.c (change_frame_size_1): The introduction of gutters means
14831         that we need to allow 0 as a potential frame dimension.
14832
14833 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14834
14835         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14836         image glyph if allow_cursor.
14837         (add_hscroll_rune): Don't allow cursor to border glyph.
14838         (create_text_block): Ditto.
14839
14840         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14841         text not in buffer.
14842         (redisplay_output_layout): Call ensure_face_cachel_complete for
14843         text image glyph.
14844
14845
14846 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14847
14848         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14849
14850         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14851         not in buffer
14852
14853         * redisplay-tty.c (tty_output_display_block): Delete the routine
14854         for text image glyph
14855         * redisplay-x.c (x_output_display_block): ditto
14856         * redisplay-msw.c (mswindows_output_display_block): ditto
14857
14858 2000-02-02  Mike Alexander  <mta@arbortext.com>
14859
14860         Note: Some of these were committed by accident as part of other
14861         patches.
14862
14863         * regex.c (regex_compile): Avoid compiler warnings.
14864
14865         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14866
14867         * nt.h: Declare term_ntproc correctly.
14868
14869         * nt.c: Remove incorrect declaration of get_home_directory which
14870         is declared correctly in lisp.h.
14871
14872         * keymap.c (get_keyelt): Avoid compiler warnings.
14873         (raw_lookup_key_mapper): Avoid compiler warnings.
14874
14875         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14876
14877         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14878
14879         * filemode.c (mode_string): Avoid compiler warnings.
14880
14881         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14882         avoid warning.
14883
14884         * events-mod.h: Undef some things that winuser.h defines differently.
14885
14886         * data.c (Faset): Avoid compiler warnings.
14887
14888         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14889
14890 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14891
14892         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14893         Fall through to simple beep on error.
14894         Replace "extern" by real header file.
14895
14896         * linuxplay.c: Use nativesound.h
14897         (play_sound_data): Return error code. Be less verbose on error.
14898
14899         * sunplay.c: Use nativesound.h
14900         (play_sound_data): Return error code. Be less verbose on error.
14901
14902         * ntplay.c: Use nativesound.h
14903         (play_sound_data): Return fake error code
14904
14905         * sgiplay.c: Use nativesound.h
14906         (play_sound_data): Return error code
14907
14908         * hpplay.c: Use nativesound.h, partially implement
14909         new error code. Break compilation until finished.
14910         (play_sound_data): error code.
14911
14912         * nativesound.h (play_sound_file):
14913           (play_sound_data): Prototype in new header.
14914
14915 2000-03-31  Andy Piper  <andy@xemacs.org>
14916
14917         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14918         for toggle and radio buttons.
14919         (image_instantiator_buttons): use it.
14920
14921 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14922
14923         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14924         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14925         found. Scrollbar event probably belonged to some old config.
14926
14927 2000-03-31  Andy Piper  <andy@xemacs.org>
14928
14929         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14930         than 1.
14931         (initialize_widget_image_instance): default layout to
14932         LAYOUT_HORIZONTAL rather than 0.
14933         (widget_instantiate): reverse the item list at the end rather than
14934         every iteration.
14935         (layout_layout): re-code for the border text at the front of the
14936         item list rather than at the end.
14937         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14938         provided by the user.
14939         (widget_query_geometry): comment.
14940
14941 2000-03-30  Andy Piper  <andy@xemacs.org>
14942
14943         * glyphs-widget.c (image_instantiator_layout): allow standard
14944         widget keywords in layouts.
14945
14946         * gutter.c (output_gutter): cope with nil gutter contents.
14947
14948         * frame.c (Fset_frame_properties): add gutter docs.
14949
14950 2000-03-29  Andy Piper  <andy@xemacs.org>
14951
14952         * toolbar-msw.c (TBSTYLE_FLAT): add.
14953         (mswindows_output_toolbar): minor fiddling.
14954
14955 2000-03-29  Andy Piper  <andy@xemacs.org>
14956
14957         * gutter.c (output_gutter): force gutter size recalculation if
14958         what we are trying to display won't fit.
14959         (update_gutter_geometry): new function. A per-gutter version of
14960         update_frame_gutter_geometry.
14961         (update_frame_gutter_geometry): use it.
14962         (redraw_exposed_gutter): add extra debugging output.
14963
14964 2000-03-28  Mike Alexander  <mta@arbortext.com>
14965
14966         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14967         (pdump_file_unmap): Implement it on Windows
14968         (pdump_file_get): Save alocated handles for pdump_file_unmap
14969
14970 2000-03-28  Andy Piper  <andy@xemacs.org>
14971
14972         * gui.c (get_gui_callback): treat Quit specially.
14973
14974 2000-03-27  Andy Piper  <andy@xemacs.org>
14975
14976         * glyphs.c (image_instantiate): be careful to check in the same
14977         way we assigned.
14978
14979 2000-03-27  Didier Verna  <didier@xemacs.org>
14980
14981         * config.h.in: define the proper SMART_INCLUDE macro.
14982         handle renaming of `foo_h_path' to `foo_h_file'.
14983
14984         * database.c: ditto.
14985
14986         * emacs.c: ditto.
14987
14988         * linuxplay.c: ditto.
14989
14990         * terminfo.c: ditto.
14991
14992         * tooltalk.h: ditto.
14993
14994 2000-03-27  Andy Piper  <andy@xemacs.org>
14995
14996         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14997         gets updated whenever the face might have changed.
14998
14999 2000-03-26  Mike Alexander  <mta@arbortext.com>
15000
15001         * dumper.c (pdump_resource_free): Fix the comment.
15002
15003 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15004
15005         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15006
15007 2000-03-22  Mike Alexander  <mta@arbortext.com>
15008
15009         * dumper.c: Include Windows headers on Windows
15010         (pdump_resource_free): Add a body to the function
15011         (pdump_load): exe_name -> exe_path and add some comments.
15012
15013 2000-03-25  Mike Alexander  <mta@arbortext.com>
15014
15015         * gui.c (copy_gui_item_tree): Return a value in all cases
15016
15017 2000-03-21  Didier Verna  <didier@xemacs.org>
15018
15019         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15020         lwlib/config.h.in.
15021         (SMART_INCLUDE): new macro.
15022         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15023         the proper location.
15024
15025         * postgresql.c: use it.
15026
15027         * inline.c: ditto.
15028
15029 2000-03-24  Andy Piper  <andy@xemacs.org>
15030
15031         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15032         do this.
15033
15034 2000-03-24  Andy Piper  <andy@xemacs.org>
15035
15036         * redisplay-output.c (compare_runes): use image_instance_changed
15037         to detect changes. Do not depend on glyphs_changed, only depend on
15038         dirtiness.
15039          (redisplay_output_layout): add debug messages.
15040         (compare_runes): ditto.
15041
15042         * glyphs.h: declare new functions.
15043         (struct Lisp_Image_Instance): remove percent and associated
15044         accessors.
15045
15046         * gui.h: declare new copying functions.
15047
15048         * gui.c (copy_gui_item_tree): new function.
15049         (copy_gui_item): new function.
15050         (gui_item_id_hash): revert to standard hash.
15051         (gui_item_hash): ditto.
15052         (gui_item_hash_internal): deleted.
15053         (mark_gui_item): mark value.
15054         (gui_item_add_keyval_pair): add value.
15055         (gui_item_init): ditto.
15056         (gui_add_item_keywords_to_plist): ditto.
15057         (gui_item_equal): ditto.
15058         (syms_of_gui): add Q_value.
15059
15060         * glyphs-x.c (x_progress_gauge_update): use pending items and
15061         value for setting the state.
15062         (x_update_widget): don't set items from pending here.
15063
15064         * glyphs-widget.c (update_widget): update items here.
15065         (progress_gauge_set_property): use items for storing value. Put
15066         new value in pending items.
15067
15068         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15069         items for new value. Convert percent -> value.
15070         (mswindows_tab_control_update): don't update items here.
15071
15072         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15073         (update_subwindow): ditto.
15074         (image_instance_changed): new function. Compare hash values and
15075         past and present widget items.
15076         (image_instantiate): We more careful about where we instantiate
15077         things.
15078         (image_instantiate): add error checking.
15079
15080         * gutter.c (syms_of_gutter): use -hook.
15081
15082 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15083
15084         * console-tty.c (Fset_console_tty_input_coding_system): Use
15085         Qkeyboard.
15086         (Fset_console_tty_output_coding_system): Use Qterminal.
15087         (tty_init_console): Use Qkeyboard and Qterminal.
15088
15089 2000-03-21  Ben Wing  <ben@xemacs.org>
15090
15091         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15092         From Mike Alexander <mta@arbortext.com>.
15093
15094 2000-03-21  Ben Wing  <ben@xemacs.org>
15095
15096         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15097         process brokenness.  Proper implementation to come.
15098         * callproc.c:
15099         Rename call-process-internal to old-call-process-internal.
15100         New impl. in process.el.
15101
15102 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15103
15104         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15105
15106 2000-03-20  Andy Piper  <andy@xemacs.org>
15107
15108         * glyphs.c (full_list_hash): make hashes of the same elements in
15109         different orders return different values.
15110
15111 2000-03-20  Martin Buchholz <martin@xemacs.org>
15112
15113         * XEmacs 21.2.32 is released.
15114
15115 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15116
15117         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15118         (DFC_MALLOC_USE_CONVERTED_DATA):
15119         Add aliasing-safe casts to allow use with char* or unsigned char*
15120         lvalues.
15121
15122         * eldap.c (Fldap_open):
15123         (Fldap_search_basic):
15124         (Fldap_add):
15125         (Fldap_modify):
15126         Make C++-compilable.
15127         Make sure GCPRO'ed variables are initialized.
15128         Use temp variables to avoid repeated calls to Flength.
15129
15130 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15131
15132         * sysfile.h:
15133         Make sure PATH_MAX is always defined.
15134         Include limits.h for PATH_MAX.
15135         Deprecate use of MAXPATHLEN.
15136
15137 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15138
15139         * emacs.c: Add reinit_vars_of_fileio.
15140         * symsinit.h: Add reinit_vars_of_fileio.
15141         * fileio.c (reinit_vars_of_fileio): New.
15142         * fileio.c (Fmake_temp_name):
15143         Initialize temp_name random number from microseconds to make
15144         collisions even less likely.  Initialize always at process startup
15145         time.  (make-temp-name) used to return the same file name twice in
15146         a row when PDUMP.
15147         Random stylistic fiddling.
15148         Comment fixes.
15149
15150 2000-03-20  Andy Piper  <andy@xemacs.org>
15151
15152         * glyphs.c (image_instantiate): allow text glyphs to be
15153         instantiated in the minibuffer window.
15154
15155 2000-03-19  Andy Piper  <andy@xemacs.org>
15156
15157         * glyphs.c (image_instance_hash): be careful about which items we
15158         hash on.
15159
15160         * glyphs-widget.c (tab_control_set_property): record into pending
15161         items rather than the actual items.
15162
15163         * glyphs-x.c (x_update_widget): use pending items to update with.
15164
15165         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15166         to update with.
15167
15168         * glyphs.c (mark_image_instance): mark pending items.
15169
15170         * window.c (Fset_window_configuration): record the buffer.
15171         (Fselect_window): totally revert previous change which breaks many
15172         things.
15173
15174 2000-03-18  Andy Piper  <andy@xemacs.org>
15175
15176         * glyphs-msw.c (mswindows_tab_control_update): force selected
15177         item.
15178
15179         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15180         window domain cache, otherwise we get inconsistencies at
15181         startup. There is something fishy at startup which can lead to the
15182         minibuffer being the selected window when the gutter content is
15183         instantiated.
15184
15185         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15186         gcpros.
15187         (parse_gui_item_tree_children): ditto.
15188         (parse_gui_item_tree_item): ditto.
15189
15190         * glyphs.c (Fupdate_widget_instances): return something.
15191
15192 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15193
15194         * window.c (Fselect_window): Undo 2000-03-17 change.
15195
15196 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15197
15198         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15199         against v7.0 libraries.  Insta-coredump city until the postgres
15200         folks fix it.
15201
15202 2000-03-17  Andy Piper  <andy@xemacs.org>
15203
15204         * faces.c (complex_vars_of_faces): don't give the widget face an
15205         inherited background pixmap.
15206
15207         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15208         selected item.
15209
15210         * event-stream.c (Fdispatch_non_command_events): return something.
15211
15212         * gutter.c (output_gutter): use widget face.
15213         (clear_gutter): ditto.
15214
15215         * NEWS: adjust again.
15216
15217         * window.c (Fselect_window): make sure this runs to completion to
15218         avoid oddities with Fset_window_configuration.
15219         (Fcurrent_window_configuration): in general do not save the
15220         minibuffer as the selected window.
15221
15222         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15223
15224 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15225
15226         * emacs.c (Frunning_temacs_p): Revert previous patch.
15227         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15228
15229 2000-03-16  Andy Piper  <andy@xemacs.org>
15230
15231         * glyphs-x.c (x_tab_control_update): if no widget values then
15232         return.
15233
15234         * NEWS: update for new features.
15235
15236         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15237         synthetic event to the native system.
15238         (reinit_vars_of_event_Xt): set force_event_pending to
15239         emacs_Xt_force_event_pending.
15240
15241         * events.h (struct event_stream): add force_event_pending.
15242
15243         * specifier.c (recompute_one_cached_specifier_in_window): add
15244         comment.
15245
15246         * redisplay.c (redisplay_frame): don't call
15247         update_frame_subwindows. Reset subwindow cachels when
15248         subwindows_changed, removing this was an optimization too far.
15249
15250         * redisplay-output.c (compare_runes): reorganize so that we catch
15251         glyph changes when we want them. Set optimize_output when this
15252         would help layouts.
15253         (redisplay_output_layout): remove frame_really_changed, use
15254         optimize_output instead.
15255
15256         * redisplay-msw.c (mswindows_output_display_block): reset
15257         optimize_output after outputting a glyph.
15258         * redisplay-x.c (x_output_display_block): ditto.
15259         * redisplay-tty.c (tty_output_display_block): ditto.
15260
15261         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15262         functions.
15263         (gutter_specs_changed): do specific gutter positions.
15264         (top_gutter_specs_changed): new function. Only update the
15265         specified gutter specs.
15266         (bottom_gutter_specs_changed): ditto.
15267         (left_gutter_specs_changed): ditto.
15268         (right_gutter_specs_changed): ditto.
15269
15270         * gui.c (gui_item_hash_internal): new function, does a real hash.
15271         (gui_item_id_hash): use it.
15272         (gui_item_hash): hash the eval'ed gui_item.
15273
15274         * gui-x.c (popup_selection_callback): send an eval event to call
15275         Fupdate_widget_instances.
15276
15277         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15278         to call Fupdate_widget_instances.
15279
15280         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15281         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15282
15283         * glyphs.c: (update_frame_subwindows): deleted.
15284         (Fupdate_widget_instances): new function for updating the dirty
15285         state of widgets that might have changed.
15286         (syms_of_glyphs): add Qupdate_widget_instances.
15287         (full_list_hash): hash a list completely.
15288         (image_instance_hash): use it for items and properties.
15289
15290         * frame-msw.c (mswindows_size_frame_internal): remove unused
15291         variable.
15292
15293         * faces.h (struct face_cachel): fix comment.
15294
15295         * event-stream.c (Fdispatch_non_command_events): new
15296         function. Process non-command events, forcing an event cycle
15297         beforehand.
15298         (syms_of_event_stream): declare.
15299         (event_stream_force_event_pending): new function. Force an event
15300         on the native event queue so that an event cycle will occur next
15301         time we check.
15302
15303         * event-msw.c:
15304         (struct ntpipe_shove_stream):
15305         (mswindows_enqueue_dispatch_event):
15306         (mswindows_dequeue_dispatch_event):
15307         (mswindows_cancel_dispatch_event):
15308         (mswindows_pump_outstanding_events):
15309         (mswindows_drain_windows_queue):
15310         (mswindows_handle_paint):
15311         (mswindows_wnd_proc):
15312         (mswindows_key_to_emacs_keysym):
15313         (get_process_input_waitable):
15314         (emacs_mswindows_delete_stream_pair): re-indent file.
15315         (mswindows_need_event): do not process further fds if the windows
15316         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15317         fixes the 100% cpu problem.
15318         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15319
15320 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15321
15322         * alloc.h: New.
15323         * dumper.h: New.
15324         * dumper.c: New.
15325
15326         * emacs.c: Moved dump file searching to dumper.c.
15327         (Frunning_temacs_p): Fixed.
15328
15329         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15330         last_lrecord_type_index_assigned.
15331
15332 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15333
15334         * symsinit.h: Added reinit parameter to init_console_stream
15335         declaration.
15336
15337         * lisp.h: Added file parameter to pdump_load declaration.
15338
15339         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15340         support.  Added dump file searching.
15341
15342         * config.h.in: Added EMACS_PROGNAME.
15343
15344         * console-stream.c (init_console_stream): Fix reinitialisation
15345         when running from temacs.
15346
15347         * alloc.c (pdump): Add id support.
15348         (pdump_load): Add file parameter and signature/id support.
15349
15350         * Makefile.in.in: Add full pdump support.
15351
15352 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15353
15354         * postgresql.c: Update documentation to reflect latest code
15355         status.
15356         (print_result): Show tuple counts in printed representation when
15357         appropriate.
15358         (Fpq_put_nbytes): MULE-ize.
15359         (Fpq_get_line_async): Ditto.
15360
15361 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15362
15363         * postgresql.c (Fpq_lo_import): Fix return value.
15364         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15365
15366 2000-03-13  Ben Wing  <ben@xemacs.org>
15367
15368         * alloc.c (pdump_load):
15369         Fix compile warning under mswin.
15370
15371 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15372
15373         * postgresql.c: Mule-ization, bug fixes.
15374         Use PG_CODING to encapsulate coding system name changes.
15375         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15376         (pg-coding-system): Create.
15377
15378         (Fpq_conn_defaults): Mule-ize.
15379         (Fpq_connectdb): Mule-ize & bug fix.
15380         (Fpq_connect_start): Mule-ize.
15381         (Fpq_set_client_encoding): Mule-ize.
15382         (Fpq_finish): Document `DEAD' connection status.
15383         (Fpq_clear): Ditto.
15384         (Fpq_pgconn): Mule-ize.
15385         (Fpq_exec): Mule-ize & bug fix.
15386         (Fpq_send_query): Ditto.
15387         (Fpq_get_result): Ditto.
15388         (Fpq_res_status): Mule-ize.
15389         (Fpq_result_error_message): Mule-ize.
15390         (Fpq_ntuples): fix comments.
15391         (Fpq_fname): Mule-ize.
15392         (Fpq_fnumber): Mule-ize.
15393         (Fpq_ftype): fix comments.
15394         (Fpq_get_value): Mule-ize.
15395         (Fpq_cmd_status): Ditto.
15396         (Fpq_cmd_tuples): Ditto.
15397         (Fpq_oid_value): Ditto.
15398         (Fpq_notifies): Ditto.
15399         (Fpq_lo_import): Ditto.
15400         (Fpq_lo_export): Ditto.
15401         (Fpq_get_line): Ditto.
15402         (Fpq_put_line): Mule-ize and bug fix.
15403         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15404
15405 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15406
15407         * postgresql.c (vars_of_postgresql): Mule-ize.
15408         (Fpq_conn_defaults): Ditto.
15409
15410 2000-03-12  Ben Wing  <ben@xemacs.org>
15411
15412         * alloc.c (Fmake_byte_code):
15413         * alloc.c (debug_string_purity_print):
15414         * alloc.c (pdump_backtrace):
15415         * alloc.c (pdump_get_indirect_count):
15416         * alloc.c (pdump_register_sub):
15417         * alloc.c (pdump_register_object):
15418         * alloc.c (pdump_register_struct):
15419         * alloc.c (pdump_dump_data):
15420         * alloc.c (pdump_reloc_one):
15421         Minor cleanups.
15422
15423         * console-msw.c:
15424         * console-msw.c (GetConsoleHwnd):
15425         * console-msw.c (msw_hide_console):
15426         * console-msw.c (msw_show_console):
15427         * console-msw.c (msw_ensure_console_buffered):
15428         * console-msw.c (msw_output_console_string):
15429         * console-msw.c (console_type_create_mswindows):
15430
15431         a) Added functions to manipulate the console window for use with
15432         shell support.
15433
15434         b) Added support for writing text to the console, which is now
15435         used under Windows when xemacs is not being run non-interactively,
15436         to write text that would otherwise be destined for stdout because
15437         under these circumstances, text written to stdout tends to
15438         disappear and not be seen.
15439
15440         * console-msw.h:
15441         * event-Xt.c:
15442         * event-Xt.c (x_event_to_emacs_event):
15443         * event-Xt.c (describe_event_window):
15444         * events-mod.h (XEMACS_MOD_CONTROL):
15445         * events.c:
15446         * events.c (Fmake_event):
15447         * events.c (character_to_event):
15448         * events.c (event_to_character):
15449         * events.c (format_event_object):
15450         * events.c (Fevent_modifiers):
15451         * events.h:
15452         * events.h (struct key_data):
15453         * events.h (struct button_data):
15454         * events.h (struct misc_user_data):
15455         * frame-x.c (Fcde_start_drag_internal):
15456         * frame-x.c (Foffix_start_drag_internal):
15457         * gpmevent.c (Freceive_gpm_event):
15458         * keymap.c:
15459         * keymap.c (bucky_sym_to_bucky_bit):
15460         * keymap.c (control_meta_superify):
15461         * keymap.c (make_key_description):
15462         * keymap.c (keymap_lookup_directly):
15463         * keymap.c (create_bucky_submap):
15464         * keymap.c (keymap_store):
15465         * keymap.c (define_key_check_and_coerce_keysym):
15466         * keymap.c (define_key_parser):
15467         * keymap.c (define_key_alternate_name):
15468         * keymap.c (Fdefine_key):
15469         * keymap.c (raw_lookup_key_mapper):
15470         * keymap.c (struct map_keymap_unsorted_closure):
15471         * keymap.c (map_keymap_unsorted_mapper):
15472         * keymap.c (map_keymap_sort_predicate):
15473         * keymap.c (map_keymap_sorted):
15474         * keymap.c (accessible_keymaps_mapper_1):
15475         * keymap.c (where_is_recursive_mapper):
15476         * keymap.c (describe_map_mapper):
15477         * keymap.c (describe_map_sort_predicate):
15478         * keymap.c (describe_map):
15479         * keymap.c (complex_vars_of_keymap):
15480         And a number of other files, the key modifier preprocessor
15481         constants that xemacs uses have names that conflict with constants
15482         defined under MS Windows for other purposes, so they were renamed
15483         to begin with the prefix XEMACS_. The variables that hold such
15484         modifiers were changed to consistently be of type int to fix
15485         various compile warnings.
15486
15487         * console.c (complex_vars_of_console):
15488         * device.c:
15489         * device-msw.c:
15490         * device-msw.c (mswindows_finish_init_device):
15491         * device-msw.c (msw_get_workspace_coords):
15492         * device-msw.c (mswindows_device_system_metrics):
15493         and various other files, added support for a new
15494         device property called offset-workspace which returns the position
15495         of the upper left corner of the workspace area and goes along with
15496         the existing size-workspace property.
15497
15498         * dialog-msw.c:
15499         * dialog-msw.c (push_bufbyte_string_as_unicode):
15500         * dialog-msw.c (mswindows_popup_dialog_box):
15501         Added support for XEmacs-style accelerator specifications in
15502         button text.  Note: I didn't add support for this under X Windows,
15503         and somebody needs to do this.
15504
15505         * dialog.c:
15506         * dialog.c (Fpopup_dialog_box):
15507         Documented the support for accelerators that was just mentioned.
15508
15509         editfns.c (get_home_directory): Changed behavior under Windows
15510         when HOME not defined; former behavior was irretrievably broken.
15511
15512         * emacs.c:
15513         * emacs.c (main_1):
15514         * emacs.c (main):
15515         * minibuf.c (clear_echo_area_internal):
15516         * minibuf.c (echo_area_append):
15517         * print.c:
15518         * print.c (std_handle_out_external):
15519         * print.c (std_handle_out_va):
15520         * print.c (fatal):
15521         * print.c (write_string_to_stdio_stream):
15522         * print.c (output_string):
15523         * print.c (debug_print):
15524         * print.c (debug_backtrace):
15525         * print.c (debug_short_backtrace):
15526         Cleaned up the code that prints text to stdout so that this can be
15527         changed to output into a console window instead under MS Windows,
15528         as described above.
15529
15530         * eval.c:
15531         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15532         * eval.c (internal_catch):
15533         * eval.c (unwind_to_catch):
15534         * eval.c (throw_or_bomb_out):
15535         * eval.c (condition_case_1):
15536         * eval.c (signal_1):
15537         * eval.c (check_error_state_sanity):
15538         * eval.c (call_with_suspended_errors_1):
15539         * eval.c (call_with_suspended_errors):
15540         * eval.c (reinit_vars_of_eval):
15541         Added code to catch throw loops and check for a pesky bug that may
15542         be gone now.
15543
15544         * event-msw.c:
15545         * event-msw.c (key_needs_default_processing_p):
15546         * event-msw.c (mswindows_wnd_proc):
15547         * event-msw.c (mswindows_modifier_state):
15548         * event-msw.c (emacs_mswindows_quit_p):
15549         * event-msw.c (vars_of_event_mswindows):
15550         a) Added support for using the alt key to select menu items as is
15551         standard under MS Windows.  This is controlled using the variable
15552         menu-accelerator-enabled, just like under X Windows.  There is an
15553         option on the options menu to turn this support on.  I really
15554         think that it should be on by default under Windows, but I'm not
15555         going to make this change yet.
15556
15557         b)  Added support for dynamic display size changes under Windows.
15558
15559         * event-stream.c:
15560         * event-stream.c (maybe_echo_keys):
15561         * event-stream.c (Fnext_event):
15562         * event-stream.c (command_builder_find_leaf):
15563         * event-stream.c (lookup_command_event):
15564         * event-stream.c (execute_command_event):
15565         * event-stream.c (pre_command_hook):
15566         * event-stream.c (post_command_hook):
15567         * event-stream.c (syms_of_event_stream):
15568         * event-stream.c (vars_of_event_stream):
15569         * event-stream.c (complex_vars_of_event_stream):
15570         * events.h (struct command_builder):
15571
15572         a) Tried to clean up a little bit the horribly written x-specific
15573         accelerator code that crept into this file.  I moved this code
15574         into menubar-x.c where it belongs. I also needed to move the
15575         command builder structure into the file events.h because it is
15576         accessed directly by this accelerator code.  What I didn't do, but
15577         which should be done at some point, is to properly abstract this
15578         code using device methods instead of the kludgy way that it
15579         currently hooks into the event code.
15580
15581         b) Added the lisp variables this-command-properties and
15582         last-command- properties, which should be used to synchronize two
15583         adjacent commands in preference to playing games with the variable
15584         this-command, which is typically what happens.
15585
15586         c) Added some slightly nasty code to hook into the lisp support
15587         for shifted- motion-key selection.  This is actually necessary for
15588         somewhat complicated reasons, which are described in
15589         simple.el. (NB: I think the proper thing would be to have the code
15590         that calls the pre and post command hooks also call out to generic
15591         lisp functions in simple.el, where all built-in stuff could be
15592         added.  I will think about this more.)
15593
15594         * event-unixoid.c (poll_fds_for_input):
15595         * lread.c (readchar):
15596         * redisplay-tty.c (tty_clear_frame):
15597         * redisplay-x.c (x_get_gc):
15598         * signal.c (interrupt_signal):
15599         And a whole bunch of other files: fixed up places that printed
15600         directly to stderr to instead call the function stderr_out so that
15601         the changes I made under Windows work correctly.
15602
15603         * filemode.c (mode_string):
15604         Warning fixes.
15605
15606         * frame-msw.c:
15607         * frame-msw.c (mswindows_size_frame_internal):
15608         Fixed the computation of frame size and position to keep the frame
15609         within the workspace area, rather than within the physical
15610         dimensions of the screen, so that the frame doesn't overlap window
15611         manager decorations, such as the start menu and toolbar, typically
15612         at the bottom of the screen.
15613
15614         * frame.c (vars_of_frame):
15615         Changed the default frame title format under MS Windows to consist
15616         of buffername-XEmacs, which is standard under MS Windows.  I think
15617         it might be a good idea to change this everywhere because I think
15618         it is superior to the current frame title format, but this is the
15619         kind of change that is likely to cause some people to get annoyed,
15620         so I'm not making it.
15621
15622         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15623
15624         * gui-msw.c (mswindows_handle_gui_wm_command):
15625         Fixed compile warnings.
15626
15627         * gui-x.c:
15628         * gui-x.c (strdup_and_add_accel):
15629         * gui-x.c (button_item_to_widget_value):
15630         * gui-x.h:
15631         Added code to automatically put an accelerator onto the beginning
15632         of menu items that don't have one as is now the standard, and is
15633         described more later.  Also fixed things so that the menu item
15634         name can be an evaluated expression, again a new standard.
15635
15636         * gui.c:
15637         * gui.c (gui_item_add_keyval_pair):
15638         * gui.c (make_gui_item_from_keywords_internal):
15639         * gui.c (gui_add_item_keywords_to_plist):
15640         * gui.c (gui_item_accelerator):
15641         * gui.c (gui_name_accelerator):
15642         * gui.c (gui_item_included_p):
15643         * gui.c (gui_item_display_flush_left):
15644         * gui.c (gui_item_display_flush_right):
15645         * gui.c (parse_gui_item_tree_item):
15646         * gui.c (parse_gui_item_tree_children):
15647         * gui.c (parse_gui_item_tree_list):
15648         Mule-ized.  Cleanup.  GCPRO addition.
15649
15650         * line-number.c (buffer_line_number):
15651         * lisp.h:
15652         * lisp.h (EMACS_INT_MAX):
15653         Added the manifest constant EMACS_INT_MIN corresponding to the
15654         existing constant EMACS_INT_MAX.  This is partially to fix compile
15655         warnings under Windows, and partly for cleanliness.
15656
15657         * menubar-msw.c:
15658         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15659         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15660         * menubar-msw.c (displayable_menu_item):
15661         * menubar-msw.c (populate_menu_add_item):
15662         * menubar-msw.c (populate_or_checksum_helper):
15663         * menubar-msw.c (populate_menu):
15664         * menubar-msw.c (update_frame_menubar_maybe):
15665         * menubar-msw.c (prune_menubar):
15666         * menubar-msw.c (msw_char_is_accelerator):
15667         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15668         * menubar-msw.c (mswindows_handle_wm_command):
15669         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15670         * menubar-msw.c (mswindows_handle_wm_initmenu):
15671         * menubar-msw.c (mswindows_update_frame_menubars):
15672         * menubar-msw.c (mswindows_free_frame_menubars):
15673         * menubar-msw.c (mswindows_popup_menu):
15674         Fixed a bug in handling accelerators where an extra character
15675         would be displayed in the menu item.  Also generalized the
15676         function displayable_menu_item because it is now used by the
15677         dialog box code as well.  And finally, added code in the functions
15678         that create the menubar to extract a list of accelerators for the
15679         top level menubar, which is used in the event code to determine
15680         whether a particular alt-key combination should be used to invoke
15681         a menu item, or should be passed through to access the standard
15682         XEmacs keymap binding for this key combination.
15683
15684         Much needed GCPROing.
15685
15686         * menubar-x.c:
15687         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15688         * menubar-x.c (menu_item_descriptor_to_widget_value):
15689         * menubar-x.c (restore_in_menu_callback):
15690         * menubar-x.c (x_popup_menu):
15691         * menubar-x.c (menu_move_up):
15692         * menubar-x.c (menu_move_down):
15693         * menubar-x.c (menu_move_left):
15694         * menubar-x.c (menu_move_right):
15695         * menubar-x.c (menu_select_item):
15696         * menubar-x.c (command_builder_operate_menu_accelerator):
15697         * menubar-x.c (menu_accelerator_junk_on_error):
15698         * menubar-x.c (command_builder_find_menu_accelerator):
15699         * menubar-x.c (Faccelerate_menu):
15700         * menubar.h:
15701         Moved a whole bunch of code here that was previously in
15702         event-stream.c as described above.  There is also code connected
15703         to the new standard of adding an accelerator to the beginning of
15704         menu items that don't have one as described above and below.
15705
15706         * menubar.c:
15707         * menubar.c (menu_parse_submenu_keywords):
15708         * menubar.c (Fmenu_find_real_submenu):
15709         * menubar.c (Fnormalize_menu_item_name):
15710         * menubar.c (syms_of_menubar):
15711         * menubar.c (vars_of_menubar):
15712         * menubar.c (complex_vars_of_menubar):
15713
15714         a) Cleaned up a bunch of documentation and improved it.
15715
15716         b) XEmacs now automatically adds an accelerator onto the beginning
15717         of any menu items that don't have one.  I did this because there
15718         will inevitably be some menu items on the main menubar that don't
15719         have accelerators on them because the package that adds that
15720         particular menu item hasn't yet been fixed up to have accelerators
15721         in them and it looked rather strange to have some items with and
15722         some items without accelerators, especially since even in items
15723         without accelerators, you can, at least under windows, still
15724         access the item through an accelerator corresponding to the first
15725         character in the item's name.  If people don't like this behavior,
15726         I can add a variable to turn it off optionally, but I'm not sure
15727         this is a good idea because we really do need to have accelerators
15728         on all of the menu items, and if a package doesn't like the
15729         accelerators being put on the first character, then it should put
15730         the accelerators where they belong.
15731
15732         c) I made a behavior change, which is that the descriptor that
15733         specifies the text of the menu item, which formerly was just a
15734         string, can now also be an evaluated expression.  This makes this
15735         descriptor parallel with all of the others, which could also be
15736         evaluated expressions.  This also obviates the need for the
15737         keyword :label, which was previously listed in the documentation
15738         as unimplemented, and which was for the same purpose.
15739
15740         d) GCPROing.
15741
15742         * ntproc.c:
15743         * ntproc.c (new_child):
15744         * ntproc.c (sys_spawnve):
15745         * ntproc.c (find_child_console):
15746         * ntproc.c (sys_kill):
15747         Fixed compile warnings.  By the way, this file should really go
15748         away entirely, and this will happen as soon as Kirill makes his
15749         final round of process cleanups, which affect the function
15750         call-process.
15751
15752         * process-nt.c:
15753         * process-nt.c (struct nt_process_data):
15754         * process-nt.c (find_process_from_pid):
15755         * process-nt.c (send_signal_the_nt_way):
15756         * process-nt.c (enable_child_signals):
15757         * process-nt.c (find_child_console):
15758         * process-nt.c (send_signal_the_95_way):
15759         * process-nt.c (nt_finalize_process_data):
15760         * process-nt.c (ensure_console_window_exists):
15761         * process-nt.c (nt_create_process):
15762         * process-nt.c (nt_kill_child_process):
15763         * process-nt.c (nt_kill_process_by_pid):
15764         * process-nt.c (nt_open_network_stream):
15765         * process-nt.c (vars_of_process_nt):
15766         Copied over code from Emacs 20.5 to correctly send signals to sub-
15767         processes under Windows 95.  Also added code to automatically
15768         create and hide console window when a sub-process is created under
15769         Windows 95, which obviates the need for the separate runemacs.exe
15770         executable, and finally implemented some variables that were
15771         implemented in Emacs 20.5, but previously not in XEmacs.  These
15772         include mswindows- start-process-share-console and
15773         mswindows-start-process-inherit-error-mode. (Both of these only
15774         apply to Windows 95.)
15775
15776         * regex.c (regex_compile): Fixed a compile warning.
15777
15778         * select-msw.c:
15779         * select-msw.c (mswindows_own_selection):
15780         * select-msw.c (mswindows_get_foreign_selection):
15781         * select-msw.c (mswindows_disown_selection):
15782         * select-msw.c (console_type_create_select_mswindows):
15783         * select-msw.c (syms_of_select_mswindows):
15784         Cleaned up the file and implemented the device method
15785         selection_exists_p, which had accidentally been left out.  Also
15786         removed four lisp functions that were remnants from before the
15787         time when the selection code was properly device abstracted.
15788         These functions are no longer needed because there are generic
15789         equivalents, and because they were added recently and don't exist
15790         in FSF Emacs, I don't think there's any problem with just deleting
15791         them.
15792
15793         * sysdep.c:
15794         * sysdep.c (sys_subshell):
15795         Fixed a compile warning, although in this case there's probably
15796         something wrong with this code, and it ought to be looked into
15797         more thoroughly by somebody who understands it.
15798
15799         * window.c:
15800         * window.c (Fwindow_text_area_height):
15801         * window.c (Fwindow_width):
15802         * window.c (Fwindow_full_width):
15803         * window.c (Fwindow_pixel_width):
15804         * window.c (debug_print_window):
15805         * window.c (syms_of_window):
15806         Added functions window-text-area-height and window-full-width,
15807         which are functions for returning various width and height
15808         characteristics of a window. (One of these functions is necessary
15809         for making the file dialog box work correctly, and the other one
15810         was added for completeness.)  Also added a table to the
15811         documentation for window-height which describes the entire scheme
15812         for accessing width and height characteristics of a window.
15813
15814 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15815
15816         * nt.c (fstat): Added a comment for another problem with
15817         non-encapsulated [f]stat(), reported by Adrian Aichner
15818         <aichner@ecf.teradyne.com>.
15819
15820 2000-03-11  Andy Piper  <andy@xemacs.org>
15821
15822         * window.c (make_dummy_parent): initialize subwindow instance
15823         cache.
15824         (Fset_window_configuration): zero extent_modiff.
15825
15826 2000-03-10  Andy Piper  <andy@xemacs.org>
15827
15828         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15829         more changes can be triggered.
15830         (Fredisplay_frame): ditto.
15831         (Fredraw_device): ditto.
15832         (Fredisplay_device): ditto.
15833         (redisplay_frame): make non-static.
15834         (redisplay_frame): call update_frame_gutter_geometry outside of
15835         display proper.
15836
15837         * gutter.h: declare update_frame_gutter_geometry.
15838
15839         * redisplay.h: declare redisplay_frame.
15840
15841         * gutter.c (update_frame_gutter_geometry): move geometry changes
15842         in update_frame_gutters here. Geometry changes can only occur
15843         outside of redisplay.
15844         (update_frame_gutters): remove geometry change code.
15845         (Fredisplay_gutter_area): make sure that we are in display when we
15846         update and that we have flushed any size changes.
15847
15848 2000-03-11  Andy Piper  <andy@xemacs.org>
15849
15850         * alloc.c (pdump_dump_data): remove i & count shadows.
15851
15852 2000-02-27  Mike Alexander  <mta@arbortext.com>
15853
15854         * sysdep.h: Declare pdump_read_file
15855
15856         * sysdep.c (pdump_read_file): New function
15857
15858         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15859         dump data
15860
15861 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15862
15863         * lrecord.h: add `lrecord_type_pgsetenv'.
15864
15865 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15866
15867         * symsinit.h: declare (vars|syms)_of* functions.
15868         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15869
15870 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15871
15872         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15873
15874         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15875         GCCs.
15876
15877         * emacs.c (main_1): Call postgres initialization code.
15878
15879         * postgresql.h: New file.  PostgreSQL RDBMS support.
15880         * postgresql.c: New file.
15881
15882 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15883
15884         * redisplay-output.c (redisplay_output_display_block): Disable
15885         redundant code.
15886
15887 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15888
15889         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15890         (Fcanna_henkan_next): Ditto.
15891         (Fcanna_bunsetu_henkou): Ditto.
15892         (Fcanna_henkan_kakutei): Ditto.
15893         (Fcanna_henkan_end): Ditto.
15894         (Fcanna_henkan_quit): Ditto.
15895         (Fcanna_henkan_next): Set retun value correctly.
15896         (c2mu): Use unsigned char instead of signed char.
15897
15898 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15899
15900         * emacs.c (main_1): Always call syms_of_gui.
15901         * inline.c: include gui.h
15902
15903 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15904
15905         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15906         converted to Lisp_Object.
15907         (Qtop_bottom): New variable.
15908         (syms_of_redisplay): Initialize it.
15909         * redisplay.h (Vvisible_bell): Ditto.
15910         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15911         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15912         only flash top and bottom.
15913
15914 2000-03-08  Andy Piper  <andy@xemacs.org>
15915
15916         * buffer.c (Frename_buffer): record new buffer name the right way.
15917
15918 2000-03-08  Andy Piper  <andy@xemacs.org>
15919
15920         * glyphs.c (update_subwindow): increase hash depth so that widget
15921         items get picked up properly.
15922
15923         * redisplay-output.c (compare_runes): increase hash depth so that
15924         widget items get picked up properly.
15925
15926 2000-03-08  Andy Piper  <andy@xemacs.org>
15927
15928         * gutter.c (output_gutter): add some debug.
15929
15930         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15931         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15932         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15933
15934         * redisplay-output.c (compare_runes): use display_hash to
15935         determine if glyphs really are not the same.
15936
15937         * glyphs.c (update_subwindow): check display_hash to see if
15938         anything really needs to be updated. If not then do
15939         nothing. Record the display_hash after updating.
15940         (image_instance_equal): compare the image_instance face also.
15941
15942 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15943
15944         * redisplay.h: Fix comment style.
15945
15946 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15947
15948         * consle-msw.h (struct mswindows_frame):
15949         Added new member paint_pending to indicate whether a WM_PAINT
15950         magic event has been queued for this frame.
15951
15952         * event-msw.c (mswindows_drain_windows_queue):
15953         Don't queue a WM_PAINT magic event if one is already queued.
15954         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15955
15956         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15957
15958 2000-03-07  Didier Verna  <didier@xemacs.org>
15959
15960         * dired.c: #include `regex.h' after `sysfile.h'.
15961
15962 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15963
15964         * sound.c (init_nas_sound): Fix compiler warning.
15965
15966         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15967         (FREE_STRUCT_P):
15968         (MARK_STRUCT_AS_FREE):
15969         (MARK_STRUCT_AS_NOT_FREE):
15970         Make `gcc -fstrict-aliasing' work properly.
15971
15972 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15973
15974         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15975         (mswindows_delete_device): Call CoUnnitialize().
15976
15977         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15978
15979 2000-02-25    <CraigL@DyCon.com>
15980
15981         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15982         <errno.h>.
15983
15984         * sysdep.c: This extern declaration for environ prevents MinGW
15985         from finding the variable in CRTDLL.DLL.
15986
15987         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15988         windows headers.
15989         (SHGFI_EXETYPE): ..
15990         (WM_MOUSEWHEEL): ..
15991         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15992         definitions.
15993         (MMRESULT): Removed, now defined in cygwin's windows headers.
15994         (TIMECAPS): ..
15995         (uid_t,gid_t,pid_t,ssize_t): ..
15996         (_timeb): Removed, MinGW defines both _timeb and timeb.
15997         (HAVE_H_ERRNO): Added.
15998         (HAVE_TZNAME): Added, configure is not detecting this.
15999
16000 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16001
16002         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16003         * syntax.c (syntax_match): Use it.
16004
16005         * cmds.c: Import auto-fill-chars from FSF Emacs.
16006         (Vauto_fill_chars): New variables.
16007         (internal_self_insert): Check Vauto_fill_chars.
16008         (vars_of_cmds):
16009         Declare auto-fill-chars as a Lisp variable and initialize it.
16010
16011 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16012
16013         * fileio.c (Fmake_symbolic_link):
16014         (Ffile_symlink_p):
16015         Run handlers even if local machine doesn't have symlinks.
16016
16017 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16018
16019         * event-msw.c (mswindows_drain_windows_queue):
16020         Don't generate paint magic events for non-XEmacs frames.
16021
16022 2000-03-05  Andy Piper  <andy@xemacs.org>
16023
16024         * redisplay.c (redisplay_frame): generate_displayable_area and
16025         friends assumes that we are not in GC, we therefore have to make
16026         sure that this doesn't happen.
16027
16028         * gutter.c (calculate_gutter_size): generate_displayable_area
16029         assumes that we are not in GC, we therefore have to make sure that
16030         this doesn't happen.
16031
16032 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16033
16034         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16035
16036 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16037
16038         * redisplay.c (regenerate_window): Make sure we set a sane value
16039         for end_pos even if we jump out of the loop.
16040         (regenerate_window): Answer Ben's question :-).
16041         (start_end_of_last_line): Add may_error argument.
16042         (start_of_last_line):
16043         (end_of_last_line): Pass may_error = 0.
16044         (end_of_last_line_may_error): New function.
16045         (pixel_to_glyph_translation): Use it, so we don't crash in
16046         event_to_glyph.
16047
16048 2000-03-04  Andy Piper  <andy@xemacs.org>
16049
16050         * window.h (struct window): add gutter_extent_modiff.
16051
16052         * window.c (allocate_window): zero out gutter_extent_modiff.
16053
16054         * redisplay.h: declare sync_display_line_structs.
16055
16056         * redisplay.c (add_glyph_rune): add a better comment.
16057
16058         * redisplay-output.c (sync_display_line_structs): made non-static.
16059         (compare_runes): remove unneccesary glyph cachel access.
16060
16061         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16062
16063         * gutter.c (output_gutter): don't output the gutter if extent
16064         changes only involve extents in buffers. use 4 sets of display
16065         lines.
16066         (gutter_extent_signal_changed_region_maybe): new function. Mark
16067         extents in gutters as changed.
16068         (update_frame_gutters): use 4 sets of display lines.
16069         (reset_gutter_display_lines): ditto.
16070         (free_frame_gutters): ditto.
16071         (redraw_exposed_gutter): force output of gutters.
16072
16073         * frame.h (struct frame): add 4 sets of gutter display lines.
16074
16075         * extents.c: (extent_changed_for_redisplay): signal changes to
16076         extents in strings in the gutter as well as extents in buffers.
16077
16078 2000-03-02  Andy Piper  <andy@xemacs.org>
16079
16080         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16081
16082         * frame.c (Fmake_frame): make sure the gutters get initialized
16083         after the frame is visible.
16084         (set_frame_selected_window): re-arrange compilation macros a
16085         little.
16086         (change_frame_size_1): mark gutters changed.
16087
16088         * device.c (Fset_device_class): mark gutters changed.
16089
16090 2000-03-01  Andy Piper  <andy@xemacs.org>
16091
16092         * window.c (window_top_frame_gutter_height): deleted.
16093         (window_bottom_frame_gutter_height): ditto.
16094         (window_left_frame_gutter_height): ditto.
16095         (window_right_frame_gutter_height): ditto.
16096         (window_top_gutter_height): don't use them.
16097         (window_bottom_gutter_height): ditto.
16098         (window_left_gutter_width): ditto.
16099         (window_right_gutter_width): ditto.
16100         (Fsplit_window): ditto.
16101         (Fwindow_pixel_edges): don't use border dimensions here.
16102
16103         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16104         (update_scrollbar_instance): ditto.
16105
16106         * redisplay.c (generate_modeline): don't take gutters into account.
16107         (generate_modeline): ditto.
16108         (redisplay_frame): small gutter display optimization.
16109
16110         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16111
16112         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16113         gutters into account.
16114
16115         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16116         for window position and type.
16117
16118         * gutter.c (get_gutter_coords): fix for frame gutters.
16119         (update_frame_gutters): update frame geometry if the gutters have
16120         changed.
16121         (init_frame_gutters): record current gutter geometries.
16122
16123         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16124         var.
16125         (mswindows_widget_instantiate): ditto.
16126
16127         * frame.h (struct frame): add current_gutter_bounds.
16128
16129         * frame.c (change_frame_size_1): position window and minibuffer
16130         appropriately taking into account the frame gutters.
16131
16132         * frame-x.c: (x_initialize_frame_size): take into account the
16133         frame gutters.
16134
16135 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16136
16137         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16138
16139 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16140
16141         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16142
16143 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16144
16145         * file-coding.c (reset_decoding_stream): Clear previous
16146         detection state when autodetect.
16147
16148 2000-02-29  Didier Verna  <didier@xemacs.org>
16149
16150         * extents.c (set_extent_glyph_1): don't require extents to be
16151         attached.
16152
16153 2000-02-27  Andy Piper  <andy@xemacs.org>
16154
16155         * gutter.c (Fset_default_gutter_position): don't default left and
16156         right gutter visibility to t.
16157         (Fset_default_gutter_position): run
16158         default-gutter-position-changed-hook.
16159         (syms_of_gutter): add default-gutter-position-changed-hook.
16160
16161 2000-02-26  Andy Piper  <andy@xemacs.org>
16162
16163         * specifier.c (Fmake_specifier): add gutter references.
16164
16165         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16166
16167         * lisp.h: declare Fvalid_plist_p.
16168
16169         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16170         as changed.
16171         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16172         well as its visibility so that it gets reconstructed.
16173         (construct_window_gutter_spec): new function. Construct a string
16174         to be displayed in the gutter from a plist of strings. Take care
16175         to only use elements that are declared as visible.
16176         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16177         WINDOW_GUTTER.
16178         (gutter_validate): allow plists of strings in the specifier.
16179         (gutter_specs_changed): construct the real_gutter from the gutter
16180         specs using construct_window_gutter_spec.
16181         (gutter_visible_validate): gutter-visible is a new specifier type.
16182         (Fgutter_visible_specifier_p): new function for the new specifier.
16183         (syms_of_gutter): declare gutter-visible and
16184         Fgutter_visible_specifier_p.
16185         (specifier_type_create_gutter): intitalize new gutter-visible
16186         specifier.
16187         (reinit_specifier_type_create_gutter): ditto.
16188         (specifier_vars_of_gutter): use new specifier type for gutter
16189         visibility.
16190         (init_frame_gutters): construct real_gutter correctly.
16191         (Fgutter_specifier_p): beef up documentation.
16192         (Fgutter_size_specifier_p): ditto.
16193
16194         * winslots.h: add real_gutter slots.
16195
16196 2000-02-25  Andy Piper  <andy@xemacs.org>
16197
16198         * device-msw.c: Be kind to older cygwin versions. From Raymond
16199         Toy <toy@rtp.ericsson.se>.
16200
16201         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16202         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16203
16204 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16205
16206         * elhash.c (MARK_OBJ): Practice macro hygiene.
16207
16208 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16209
16210         * miscplay.c: s/__inline__/inline/g;
16211         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16212         (get_device_compdc): INLINE ==> static inline
16213         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16214         find -name '*.h' | \
16215         xargs global-replace \
16216         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16217
16218 2000-02-25  Andy Piper  <andy@xemacs.org>
16219
16220         * window.c (window_top_frame_gutter_height): new function.
16221         (window_top_window_gutter_height): ditto.
16222         (window_top_gutter_height): use them.
16223         (window_bottom_frame_gutter_height): new function.
16224         (window_bottom_window_gutter_height): ditto.
16225         (window_bottom_gutter_height): use them.
16226         (window_left_window_gutter_width): new function.
16227         (window_left_frame_gutter_width): ditto.
16228         (window_left_gutter_width): use them.
16229         (window_right_window_gutter_width): new function.
16230         (window_right_frame_gutter_width): ditto.
16231         (window_right_gutter_width): use them.
16232         (window_pixel_height): new function. calulate window pixel height
16233         with frame gutter involvement.
16234         (Fsplit_window): calculate new sizes taking frame gutters into
16235         account.
16236         (window_char_height_to_pixel_height): don't include frame gutters.
16237         (window_char_height): use window_pixel_height.
16238         (window_pixheight): rename from window_pixel_height.
16239         (change_window_height): use it.
16240         (window_pixel_height_to_char_height): don't include frame gutters.
16241         (window_char_width_to_pixel_width): ditto.
16242
16243 2000-02-25  Andy Piper  <andy@xemacs.org>
16244
16245         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16246         if it is.
16247
16248 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16249
16250         * alloc.c (staticpro):
16251         (staticpro_nodump):
16252         (dumpstruct):
16253         (dumpopaque):
16254         (pdump_wire):
16255         (pdump_wire_list):
16256         (compact_string_chars):
16257         (pdump_dump_wired):
16258         Convert:  if (foo) abort();  ==>  assert (! foo);
16259
16260         * eldap.c (Fldap_search_basic):
16261         (Fldap_add):
16262         (Fldap_modify):
16263         (Fldap_delete):
16264         Fix compiler warnings, and possible crashes if (random) return
16265         value were to be used.
16266
16267 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16268
16269         * device-msw.c: Workaround ResetDC failure.
16270
16271         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16272         applying a devmode.
16273
16274         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16275         (mswindows_text_width): Do not start printer page.
16276
16277         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16278
16279         * glyphs-msw.c: Added image methods to msprinter console and
16280         msprinter-specific image instantiation.
16281
16282 2000-02-20  Mike Alexander  <mta@arbortext.com>
16283
16284         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16285         to avoid crashes when selection-sets-clipboard is on
16286         (mswindows_own_selection): ditto
16287
16288 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16289
16290         * glyphs-msw.c:
16291         * redisplay-msw.c (get_frame_dc):
16292         (get_frame_compdc):
16293         * console-msw.h:
16294         * device-msw.c (mswindows_init_device):
16295         (mswindows_delete_device):
16296         (msprinter_init_device):
16297         (msprinter_delete_device):
16298         * frame-msw.c (mswindows_init_frame_1):
16299         (mswindows_delete_frame):
16300         (msprinter_init_frame_3):
16301         (msprinter_delete_frame): Move compatible DC to device object from
16302         frame object, for both mswindows and msprinter. Only one at a time
16303         is needed, it is a real waste to have one per frame!
16304
16305 2000-02-23  Andy Piper  <andy@xemacs.org>
16306
16307         * glyphs.c: add dynamic width and height elements.
16308         (image_instance_equal): ditto.
16309
16310         * glyphs-widget.c (widget_query_geometry): calculate width and
16311         height dynamically if required.
16312         (initialize_widget_image_instance): initialize dynamic dimensions.
16313         (widget_instantiate): pick-up dynamic dimensions.
16314
16315         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16316         dynamic determination. Add appropriate macros.
16317
16318         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16319         dimensions safe.
16320         (WINDOW_GUTTER_SIZE): ditto.
16321         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16322
16323         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16324         inline.
16325         (get_frame_dc): ditto.
16326
16327         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16328         here.
16329
16330 2000-02-23  Martin Buchholz <martin@xemacs.org>
16331
16332         * XEmacs 21.2.31 is released.
16333
16334 2000-02-22  Ben Wing <ben@xemacs.org>
16335
16336         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16337
16338 2000-02-22  Andy Piper  <andy@xemacs.org>
16339
16340         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16341
16342 2000-02-21  Mike Sperber <mike@xemacs.org>
16343
16344         * .dbxrc:
16345         * .gdbinit:
16346         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16347         variables.
16348
16349 2000-02-21  Mike Sperber <mike@xemacs.org>
16350
16351         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16352
16353 2000-02-21  Martin Buchholz <martin@xemacs.org>
16354
16355         * XEmacs 21.2.30 is released.
16356
16357 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16358
16359         Performance hacking.
16360         * *.c (syms_of_*):
16361         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16362         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16363         * emacs.c (main_1):
16364         * lisp.h (DEFUN):
16365         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16366         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16367         * symeval.h (DEFVAR_SYMVAL_FWD):
16368         * symbols.c (guts_of_unbound_marker):
16369         Make all c_readonly objects also lisp_readonly and marked for life.
16370         * lrecord.h (struct lrecord_implementation):
16371         Document flags better.
16372         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16373         * lrecord.h (DECLARE_LRECORD):
16374         * lrecord.h (XSETRECORD):
16375         * lrecord.h (RECORDP):
16376         * lrecord.h (RECORD_TYPEP):
16377         * lrecord.h (RECORD_MARKER): New.
16378         * lrecord.h (error_check_*):
16379         * lrecord.h (CONCHECK_NONRECORD):
16380         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16381         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16382         * lrecord.h (set_lheader_implementation):
16383         * lrecord.h (enum lrecord_type): New.
16384         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16385         * alloc.c (disksave_object_finalization_1):
16386         * alloc.c (mark_object):
16387         * alloc.c (lrecord_type_index):
16388         * alloc.c (tick_lcrecord_stats):
16389         * alloc.c (Fgarbage_collect):
16390         * alloc.c (init_alloc_once_early):
16391         * alloc.c (pdump_load):
16392         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16393         * alloc.c (lrecord_type_index): Delete.
16394         Make lisp object type indexes be constant.
16395           Makes (byte-compile) 5% faster.
16396         Put all marker functions into their own array.
16397           Makes (garbage-collect) 5% faster.
16398         Optimize SYMBOL_VALUE_MAGIC_P.
16399           Makes (byte-compile) 2-3% faster.
16400         * config.h.in (gc_checking_assert): New.
16401         * alloc.c: Use gc_checking_assert().
16402         * .dbxrc: Make compatible with new object type implementation.
16403         * .gdbinit: Make compatible with new object type implementation.
16404         * alloc.c: Delete all symbols defined only for debugging, such as
16405         Lisp_Type_Vector and lrecord_charset.
16406
16407 2000-02-21  Andy Piper  <andy@xemacs.org>
16408
16409         * gui-msw.c (Fmswindows_shell_execute): fix file location
16410         problems.
16411
16412         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16413         unshowing so that set_window_buffer doesn't undo
16414         kill_buffer_hook's hard work.
16415
16416         * glyphs-widget.c (tab_control_query_geometry): don't count the
16417         first item when calculating geometry.
16418
16419         * glyphs.c (map_subwindow): remove redundant code.
16420         (update_frame_subwindows): be more circumspect about when to
16421         update subwindows.
16422
16423         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16424         when items haven't changed. Update faces if faces have changed as
16425         well as just the widget face.
16426         (x_tab_control_update): Update faces if faces have changed as well
16427         as just the widget face.
16428
16429 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16430
16431         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16432         registration.
16433         (build_syscolor_string): Use mswindows_color_to_string to try to
16434         get a named color.
16435         (mswindows_device_system_metrics): Reverse the foreground and
16436         background colors so that they match the documentation.
16437
16438         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16439         they match the default Windows palette.
16440         (mswindows_color_to_string): New function.
16441
16442 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16443
16444         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16445
16446 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16447
16448         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16449         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16450
16451         * symbols.c (init_symbols_once_early): Removed obsolete
16452         DATA_SEG_BITS related kludge.
16453         (defvar_magic): Ditto.
16454
16455         * malloc.c: Removed obsolete DATA_SEG_BITS
16456         * ralloc.c: Ditto.
16457         * mem-limits.h: Ditto.
16458
16459         * Makefile.in.in: Removed obsolete HAVE_SHM
16460         * emacs.c: Ditto.
16461
16462 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16463
16464         *  device-msw.c (mswindows_delete_device): Free DDE string
16465         handles.
16466
16467 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16468
16469         * keymap.c (get_keyelt):
16470         * unexnt.c (unexec):
16471         * vm-limit.c (memory_warnings):
16472         * ntheap.c (recreate_heap):
16473         * ntheap.h (UNINIT_PTR):
16474         * select-msw.c (Fmswindows_get_clipboard):
16475         (Fmswindows_set_clipboard):
16476         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16477         * objects-msw.c:
16478         * menubar-msw.c (displayable_menu_item):
16479         * glyphs-msw.c:
16480         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16481         * sysdep.c (sys_subshell):
16482         * process-nt.c (nt_create_process):
16483         * nt.c (normalize_filename):
16484         (dostounix_filename):
16485         (unixtodos_filename):
16486         * ntproc.c (win32_executable_type):
16487         * ntplay.c (play_sound_data_1):
16488         (play_sound_file):
16489         * editfns.c (get_home_directory):
16490         * event-msw.c (struct winsock_stream):
16491         (mswindows_dde_callback):
16492         * device-msw.c (msprinter_init_device):
16493         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16494
16495         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16496         mswindows_clear_toolbar were swapped!
16497
16498         * objects-msw.c:(colormap_t):
16499         (fontmap_t):
16500         * emacs.c (struct standard_args): Fixed const jumble.
16501
16502         * glyphs-widget.c (update_widget): Fixed comparison notation.
16503
16504         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16505
16506         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16507         __declspec(noreturn) syntax.
16508
16509 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16510
16511         * eldap.c (Fldap_open):
16512         (Fldap_search_basic):
16513         (Fldap_add):
16514         (Fldap_modify):
16515         Use new coding system conversion macros.
16516
16517 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16518
16519         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16520
16521 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16522
16523         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16524         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16525
16526         * eldap.c (Qadd, Qreplace): New constant symbols
16527         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16528         interruptions by XEmacs signals
16529         Remove unnecessary calls to slow_down_interrupts and
16530         speed_up_interrupts
16531         (Fldap_search_basic): Renamed from Fldap_search_internal
16532         Added new optional parameter VERBOSE that triggers the
16533         display of progress messages
16534         Remove unnecessary calls to slow_down_interrupts and
16535         speed_up_interrupts
16536         LDAP result code analysis rewritten
16537         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16538         (syms_of_eldap): Define the new symbols and functions
16539
16540
16541 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16542
16543         * realpath.c: Determine PATH_MAX maximally portably.
16544
16545         * insdel.c (bytecount_to_charcount): Optimize.
16546         The function used to be optimized for entirely ASCII sequences.
16547         Now it is optimized for successive characters from the same
16548         charset.  This also wins big for _mostly_ ASCII sequences.
16549
16550         * fileio.c (Ffile_truename): convert return from realpath() using
16551         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16552         - Rewrite GCPROing slightly.
16553
16554         * sysdep.c (sys_open): Do filename conversion, like all other
16555         sys_* functions.  Fixes bug:
16556         (let ((file-name-coding-system 'iso-8859-2))
16557            (write-region x y latin2-name))
16558         ==> writes filename using internal encoding.
16559
16560 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16561
16562         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16563         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16564         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16565         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16566         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16567         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16568         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16569         (CONST_IF_NOT_DEBUG): Delete.
16570         * alloc.c (this_one_is_unmarkable): Delete.
16571         (mark_object): Don't check for this_one_is_unmarkable. Use the
16572         c_readonly flag instead.
16573         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16574
16575 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16576
16577         * event-msw.c (mswindows_drain_windows_queue):
16578         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16579         away redundant repaint events.
16580
16581 2000-02-17  Andy Piper  <andy@xemacs.org>
16582
16583         * redisplay.h: declare mark_redisplay_structs.
16584
16585         * redisplay.c (redisplay_window):
16586         (redisplay_frame): don't check subwindows_state_changed.
16587         (mark_redisplay): mark gutters here.
16588
16589         * glyphs.c: (instantiate_image_instantiator): always layout if we
16590         haven't done so already.
16591         (allocate_image_instance): don't mark as dirty.
16592         (update_subwindow): bind inhibit_quit.
16593
16594         * gutter.c (mark_gutters): new function.
16595
16596         * glyphs-x.c (x_update_widget): Always resize to get round a
16597         widget bug.
16598
16599         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16600         breaking absolutely everything.
16601
16602         * gutter.h: declare mark_gutters.
16603
16604 2000-02-16  Martin Buchholz <martin@xemacs.org>
16605
16606         * XEmacs 21.2.29 is released.
16607
16608 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16609
16610         * fns.c (size_bit_vector): Fix computation of the size.
16611
16612 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16613
16614         * *.[ch]: Change CONST to const globally.
16615         find -name '*.[ch]' | \
16616         xargs global-replace \
16617         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16618         - Remove vestigial references to CONST_IS_LOSING
16619
16620 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16621
16622         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16623         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16624         events instead of dispatching them directly.
16625         (mswindows_handle_paint): New function to do repainting.
16626         (mswindows_wnd_proc):
16627         (emacs_mswindows_handle_magic_event): Call above function.
16628
16629 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16630
16631         * objects-msw.c (mswindows_create_font_variant): Return the new
16632         font handle.
16633         (initialize_font_instance): Get font metrics from the underlined
16634         variant of the font to cope with the case where the underlined
16635         font has a bigger descent.
16636
16637 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16638
16639         * gui.c (gui_item_accelerator): Return the first underlined
16640         character in item name.
16641
16642 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16643
16644         * lisp.h: Added Qprinter.
16645
16646         * general.c (syms_of_general): Initialized it.
16647
16648         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16649         (get_frame_dc):
16650         (get_frame_compdc): Made inline.
16651
16652         * console.h (struct console_methods): Added eject_page method.
16653
16654         * frame.h: Added FRAME_DISPLAY_P and friends.
16655         Aligned backslahes in many macros in more readable fashion.
16656         Added page_number to struct frame, and an accessor macro
16657         for it.
16658
16659         * defice.h: Added DEVICE_DISPLAY_P and friends.
16660
16661         * device.c (Fdevice_printer_p): Used these.
16662
16663         * frame.c (allocate_frame_core): Initialize page number.
16664         (Fprint_job_page_number):
16665         (Fprint_job_eject_page): Implemented.
16666
16667         * frame-msw.c (msprinter_eject_page): Added method.
16668         (msprinter_start_page): Added.
16669
16670         * window.c (Fwindow_truncated_p): Fixed docstring.
16671         (Fwindow_last_line_visible_height): Implemented.
16672
16673 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16674
16675         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16676
16677 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16678
16679         * syntax.c (scan_words): Always advance at least one character.
16680
16681 2000-02-13  Andy Piper  <andy@xemacs.org>
16682
16683         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16684         to make sure the glyph is in the cachels.
16685
16686         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16687         global image instance flag.
16688         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16689         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16690
16691         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16692         (Fset_image_instance_property): mark layout as changed.
16693         (invalidate_glyph_geometry_maybe): mark layout as changed.
16694         (glyph_width): use new NEEDS_LAYOUT macro.
16695         (glyph_ascent): ditto.
16696         (glyph_descent): ditto.
16697         (glyph_height): ditto.
16698         (image_instance_layout): mark layout as clean after laying out.
16699         (update_subwindow): don't mark layout as clean here.
16700
16701         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16702         should no longer be needed.
16703
16704         * glyphs-x.c (x_update_widget): sanitize asserts.
16705         (x_finalize_image_instance): sanitize assignment to widgets.
16706
16707         * glyphs-widget.c (widget_instantiate): don't need to clear the
16708         layout flag here.
16709
16710 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16711
16712         * sysdep.c (getcwd): Use standard prototype.
16713         * sysdep.h (getcwd): Use standard prototype.
16714
16715         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16716         (sequence, start, end).
16717         Remove redundant type checking.
16718         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16719         view of `caller-protects') to avoid a crash where the real fix was
16720         found elsewhere.
16721
16722 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16723
16724         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16725
16726         * s/sol2.h: Remove feature macro initialization.
16727
16728         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16729         (vector_hash): New.  Code from internal_hash.
16730         * lrecord.h:
16731         Fix up allocation subsystem comments.
16732
16733         * config.h.in: Add __EXTENSIONS__ for Solaris.
16734
16735         * systime.h (EMACS_GETTIMEOFDAY): New.
16736         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16737         Remove Solaris-specific code.
16738         Use void* for the (ignored) second arg for gettimeofday().
16739
16740         * elhash.c (hash_table_hash): Implement it, finally.
16741         * elhash.c:  Use hashcode_t.
16742
16743         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16744         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16745
16746         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16747         * fns.c (size_bit_vector):
16748         * alloc.c (size_vector):
16749         (make_vector_internal):
16750         (make_bit_vector_internal):
16751         (sweep_bit_vectors_1):
16752         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16753
16754 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16755
16756         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16757         Include strings.h to avoid warnings for bzero and strcasecmp.
16758
16759 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16760
16761         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16762         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16763
16764         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16765         sequence.
16766
16767 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16768
16769         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16770         use a value field instead.
16771         (symbol_value_forward_forward): Use value field.
16772         (DEFVAR_SYMVAL_FWD): Use value field.
16773         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16774         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16775         (DEFVAR_CONST_INT): Ditto.
16776         (DEFVAR_BOOL): Ditto.
16777         (DEFVAR_CONST_BOOL): Ditto.
16778         (DEFVAR_INT_MAGIC): Ditto.
16779         (DEFVAR_BOOL_MAGIC): Ditto.
16780
16781         * symbols.c (guts_of_unbound_marker): Use value field.
16782         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16783         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16784
16785         * lisp.h: Declare dumpopaque and noninteractive1.
16786
16787         * alloc.c (dumpopaque): Added.
16788         (pdump_dump_opaquevec): Added.
16789         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16790         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16791         noninteractive.
16792
16793 2000-02-10  Andy Piper  <andy@xemacs.org>
16794
16795         * glyphs.c (image_instance_layout): if the size changes, mark it
16796         as such.
16797
16798         * redisplay-output.c (redisplay_output_layout): Update the
16799         subwindow here.
16800         (redisplay_output_subwindow): ditto.
16801
16802         * glyphs.c (update_subwindow): make sure we reset flags for
16803         layouts as well as everything else.
16804
16805         * glyphs-widget.c (layout_layout): don't need to set the instances
16806         dimensions here.
16807
16808 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16809
16810         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16811         not HAVE_DLOPEN, which is a lower-level thing.
16812
16813         * .cvsignore: Ignore gmon.out
16814
16815 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16816
16817         * .cvsignore: Ignore portable dumper xemacs.dmp file
16818
16819 2000-02-09  Andy Piper  <andy@xemacs.org>
16820
16821         * redisplay-output.c (redisplay_output_layout): be more clever
16822         about when we output based on the changed flags.
16823
16824         * glyphs.h (struct image_instantiator_methods): add update_method.
16825         (struct Lisp_Image_Instance): add changed flags. Declare new
16826         macros for manipulating them.
16827
16828         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16829         (image_instance_parent_glyph): find an image_instance's parent
16830         glyph or image_instance.
16831         (image_instance_layout): mark the size as changed.
16832         (set_image_instance_dirty_p): new function. mark an image
16833         instance, plus all of its parents, as dirty.
16834         (Fset_image_instance_property): use it.
16835         (Fglyph_animated_timeout_handler): use it.
16836         (update_subwindow): call update_widget and device methods for
16837         update_subwindow. Mark all changed flags as clean.
16838         (Fresize_subwindow): mark size as changed.
16839
16840         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16841         failures.
16842         (x_update_subwindow): only resize subwindows here.
16843         (x_update_widget): new function. Update all changed properties of
16844         a widget.
16845         (x_resize_subwindow): deleted.
16846         (x_widget_set_property): deleted.
16847         (x_progress_gauge_set_property): deleted.
16848         (x_progress_gauge_update): new function. Implement recorded
16849         changes.
16850         (x_tab_control_update): ditto.
16851         (x_tab_control_set_property): deleted.
16852         (console_type_create_glyphs_x): declare new functions.
16853         (image_instantiator_format_create_glyphs_x): ditto.
16854
16855         * glyphs-widget.c (widget_set_property): mark text changed.
16856         (update_widget): new function. Update properties of a widget.
16857         (widget_instantiate): for layouts make sure we set their
16858         children's parent correctly.
16859         (tab_control_set_property): new function. Record changes that will
16860         take place under redisplay's control.
16861         (progress_gauge_set_property): ditto.
16862         (image_instantiator_progress_guage): declare new functions.
16863         (image_instantiator_tab_control): ditto.
16864
16865         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16866         now.
16867         (mswindows_update_widget): new function. Update all properties on
16868         a widget that have changed.
16869         (mswindows_button_update): new function. Update a button's set
16870         state.
16871         (mswindows_tab_control_update): new function. Update the items in
16872         a tab.
16873         (mswindows_tab_control_set_property): deleted.
16874         (mswindows_progress_gauge_update): new function. Update the
16875         progress gauge's progress.
16876         (mswindows_widget_set_property): deleted. This is all done
16877         asynchronously now.
16878         (mswindows_progress_gauge_set_property): ditto.
16879         (console_type_create_glyphs_mswindows): declare new methods.
16880         (image_instantiator_format_create_glyphs_mswindows): ditto.
16881
16882         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16883         (msprinter_set_frame_properties): ditto.
16884
16885         * console.h (struct console_methods): Add update_widget_method.
16886
16887 2000-02-09  Andy Piper  <andy@xemacs.org>
16888
16889         * gui-msw.c (Fmswindows_shell_execute): Make
16890         mswindows-shell-execute industrial strength.
16891
16892 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16893
16894         * lrecord.h: Make macro argument `props' match member function `plist'.
16895         * fns.c (Fget):
16896         * fns.c (Fput):
16897         * fns.c (Fremprop):
16898         * fns.c (Fobject_plist):
16899         * alloc.c:
16900         * symbols.c:
16901         Object property list frobbing cleanup.
16902         - Allow any lisp object (compared with `eq'), not just symbols, as
16903           keys in object plists.
16904         - Move symbol plist frobbing into symbols.c, where it belongs.
16905         - Move string plist frobbing into alloc.c, where it belongs.
16906         - Everything's an lrecord now, so no need to test for symbolp, etc.
16907         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16908
16909         * extents.c: Reorder code to remove declarations.
16910
16911         * frame.h (store_in_alist): Remove useless declaration.
16912
16913 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16914
16915         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16916         * config.h.in: Add HAVE_XCONVERTCASE.
16917
16918 2000-02-07  Andy Piper  <andy@xemacs.org>
16919
16920         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16921         it breaks many things.
16922
16923 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16924
16925         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16926         actually can start a common comment type.
16927         * src/syntax.h (SYNTAX_END_P): ditto for end.
16928
16929 2000-02-07  Martin Buchholz <martin@xemacs.org>
16930
16931         * XEmacs 21.2.28 is released.
16932
16933 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16934
16935         * event-Xt.c (x_keysym_to_character): New.
16936         (maybe_define_x_key_as_self_inserting_character): New.
16937         (x_has_keysym): New.
16938         Auto-define all keys on the keyboard as self-insert-key.
16939
16940 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16941
16942         * menubar.c (vars_of_menubar): A small code simplification.
16943
16944         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16945
16946         * ExternalShell.c:
16947         * ExternalClient.c:
16948         * EmacsShell-sub.c:
16949         * EmacsManager.c:
16950         * EmacsFrame.c:
16951         Use consistent style for specifying X resources.
16952
16953         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16954         This makes (dontusethis-set-symbol-value-handler) actually usable.
16955
16956         * lrecord.h (lrecord_decription_type):
16957         * alloc.c (pdump_register_sub):
16958         (pdump_dump_data):
16959         (pdump_reloc_one):
16960         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16961         Comply with XEmacs coding style.
16962         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16963         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16964
16965         * keymap.c (Faccessible_keymaps):
16966         Make (accessible-keymaps map "\C-h") do the Right Thing.
16967         Make (accessible-keymaps map []) do the Right Thing.
16968         Make (accessible-keymaps map "") do the Right Thing.
16969         (check_keymap_definition_loop): New function.
16970         (keymap_store_internal): Keep luser from shooting self in foot,
16971           via (define-key ctl-x-4-map "p" global-map).
16972         Remove fullness slot from struct Lisp_Keymap, since hash tables
16973         are now reliable.
16974         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16975
16976 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16977
16978         * redisplay.c (init_redisplay): Fix small memory leak.
16979         * elhash.h:
16980         * elhash.c (pdump_reorganize_hash_table):
16981         Rename from reorganize_hash_table. Change prototype.
16982         Reuse the original memory for hentries.  Save 100k.
16983         * alloc.c (PDUMP_READ): new macro.
16984         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16985         * alloc.c: No need to #ifndef before #undef.
16986
16987         * print.c: Allow debug_print() to print readably by modifying
16988         debug_print_readably.  Use consistent variable names.
16989
16990         * .dbxrc: Try to get things to work even if stopped in a function
16991         without source available by explicitly specifying source files.
16992 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16993
16994         * unexnt.c (_start): Removed bogus code which caused loading heap
16995         from differrent executable file.
16996         Removed bogus assignment to _fmode, which caused inconsistencies.
16997
16998 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16999
17000         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17001         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17002         Do not preliminary `#define signal sigset'.
17003
17004         * systime.h: Do not prototype environ on windows nt and cygwin,
17005         this conflicts with system header.
17006
17007         * syssignal.h: Use correct define for WINDOWSNT
17008
17009         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17010         with system header.
17011
17012         * sysdep.c (near start of file): Fixed commentary and rearranged
17013         ifdefs in readable order.
17014         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17015         (start_of_text):
17016         (end_of_text):
17017         (end_of_data): Do not compile in if using PDUMP.
17018
17019         * symsinit.h: Prototyped vars_of_nt().
17020
17021         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17022         (find_child_console): Use it.
17023         (sys_kill): Use it.
17024
17025         * ntheap.h: Do not extern os_subtype.
17026
17027         * ntheap.c (cache_system_info): Do not cache unneeded:
17028         nt_major_version, nt_minor_version and os_subtype.
17029         (recreate_heap): Do not compile in when PDUMPing.
17030
17031         * nt.c (geteuid and friends): Use the new varibale
17032         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17033         (init_user_info): Removed the above mentioned hackery.
17034         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17035         stat has been fixed in the C runtime.
17036         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17037
17038         * file-coding.c (struct file_coding_dump): Do not define
17039         ucs_to_mule_table in the struct if not MULE.
17040         (struct struct lrecord_description fcd_description_1): Do not dump
17041         the above.
17042
17043         * emacs.c (main_1): Call vars_of_nt().
17044         (right before Fdump_emacs_data): Don't need lastfile if using both
17045         portabe dumper and system malloc.
17046
17047         * alloc.c (Fmemory_limit): Conditionalized out.
17048         (pdump): Use OPEN_BINARY for the portable dump file.
17049         (pdump_load): Ditto.
17050
17051 2000-02-02  Mike Alexander  <mta@arbortext.com>
17052
17053         * nt.c (convert_time): Set tm_isdst before calling mktime and
17054         avoid calling it at all if the compiler supports 64 bit integers.
17055         Also initialize utc_base_ft before using it.
17056
17057 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17058
17059         * frame.c (change_frame_size_1): Take f->internal_border_width
17060         into consideration when calculating the width of the frame.
17061
17062 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17063
17064         * window.c (frame_min_height):
17065         (frame_size_valid_p):
17066         (frame_pixsize_valid_p): Added.
17067         (check_frame_size): Generalized.
17068
17069         * window.h: Prototyped the above.
17070
17071         * lisp.h:
17072         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17073         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17074         Deleted Vwin32_* and Vbinary_process_* unused variables.
17075
17076         * device-msw.c (msprinter_init_device): Do not get printer font
17077         list; Added DEVMODE functions.
17078
17079         * frame-msw.c: Added lots of printer code.
17080
17081         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17082         general.c.
17083
17084         * console-msw.h: Added more msprinter device private slots.
17085
17086 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17087
17088         * event-msw.c (key_needs_default_processing_p): Added.
17089         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17090
17091 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17092
17093         * glyphs.c (image_instance_layout): Mark image instance as clean
17094         after layout.
17095         (glyph_dirty_p): Removed redundant function.
17096         (invalidate_glyph_geometry_maybe): Added.
17097         (update_glyph_cachel_data): Call it.
17098
17099         * glyphs.h: Prototyped it.
17100
17101         * redisplay.c (add_glyph_rune): Call it.
17102         (redisplay_window): Reset glyphs cachels when frame faces have
17103         changed, thus forcing recomputation of built-in border glyphs.
17104
17105 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17106
17107         * Makefile.in.in: Make portable dumper and purify play well together.
17108         Add imperfect, but better than nothing, support for pdump.
17109         Remove xemacs.dmp when temacs is re-generated.
17110         Don't ignore errors when dumping xemacs.
17111
17112         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17113
17114 2000-01-28  Andy Piper  <andy@xemacs.org>
17115
17116         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17117         (setup_normal_frame): ditto.
17118         (setup_frame_without_minibuffer): ditto.
17119         (setup_minibuffer_frame): ditto.
17120         (delete_frame_internal): ditto.
17121         (Fmake_frame_invisible): ditto.
17122         (Ficonify_frame): ditto.
17123
17124         * window.h: change Fset_window_buffer signature.
17125
17126         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17127         (Fset_window_buffer): allow recording of buffer if the window is
17128         the selected window.
17129         (window_loop): Use new Fset_window signature.
17130
17131 2000-01-23  Daniel Pittman  <daniel@danann.net>
17132
17133         * config.h.in: Added template for `HAVE_ATHENA_3D'
17134
17135 2000-01-29  Andy Piper  <andy@xemacs.org>
17136
17137         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17138
17139         * gutter.c (output_gutter): Don't output if the window isn't live.
17140
17141 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17142
17143         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17144         of 01/12/00: Moved SetFocus back here where it belongs.
17145
17146 2000-01-23  Andy Piper  <andy@xemacs.org>
17147
17148         * s/cygwin32.h: declare printer things.
17149
17150 2000-01-26  Andy Piper  <andy@xemacs.org>
17151
17152         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17153         Alexander.
17154
17155 2000-01-24  Andy Piper  <andy@xemacs.org>
17156
17157         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17158         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17159
17160         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17161
17162         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17163
17164         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17165
17166         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17167         (mswindows_output_display_block): Avoid local shadows.
17168
17169         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17170         (mswindows_enqueue_mouse_button_event): ditto.
17171         (mswindows_handle_gui_wm_command): remove declaration.
17172
17173         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17174         warnings.
17175
17176         * console-msw.h: Avoid shadows.
17177         (mswindows_get_toolbar_button_text):
17178         (emacs_mswindows_create_stream_pair):
17179         (emacs_mswindows_delete_stream_pair):
17180         (mswindows_handle_toolbar_wm_command): declare.
17181
17182         * device-msw.c (build_syscolor_string): Avoid shadows.
17183
17184 2000-01-23  Andy Piper  <andy@xemacs.org>
17185
17186         * glyphs-widget.c (widget_instantiate): reverse the items for
17187         layouts so that children are in the expected order.
17188
17189 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17190
17191         * ralloc.c: safe_bcopy ==> memmove
17192         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17193         * s/msdos.h: Remove BCOPY macros.
17194         * insdel.c (gap_right): Remove BCOPY conditional code.
17195         * insdel.c (gap_left): Remove BCOPY conditional code.
17196         XEmacs demands a working ANSI C compiler - hence memmove.
17197
17198         * regex.c (regex_compile): Remove accidental use of trigraphs.
17199
17200 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17201
17202         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17203         event timestamp.
17204
17205 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17206
17207         * event-msw.c (mswindows_drain_windows_queue): Added the
17208         parameter.
17209         (mswindows_need_event): Commented the call to
17210         mswindows_drain_windows_queue().
17211         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17212         only.
17213
17214         * console-msw.h: Moved a few function prototypes here from
17215         event-msw.c.
17216
17217         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17218         parameter from unsigned short to unsigned long.
17219         (Fmswindows_shell_execute): Added return value.
17220
17221 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17222
17223         * sysdep.c (init_system_name):
17224           process-unix.c (unix_canonicalized_host_name):
17225         Don't call freeaddrinfo() if getaddrinfo() fails.
17226
17227         * process-unix.c (unix_open_unix_network_stream):
17228         Moved the code to get a port # into address loop.
17229
17230 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17231
17232         * buffer.c (reinit_vars_of_buffer):
17233         The right place to initialize conversion_in_dynarr and
17234         conversion_out_dynarr.
17235
17236         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17237
17238         * process-unix.c (unix_canonicalize_host_name): Muleize.
17239         (unix_open_network_stream): Muleize.
17240
17241         * buffer.h: Fix up prototypes for ralloc.c functions.
17242
17243 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17244         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17245         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17246                 instead of gethostbyname()
17247         * process-unix.c: In unix_canonicalize_host_name() and
17248                 unix_open_network_stream(), add code to use getaddrinfo()
17249                 instead of gethostbyname().
17250
17251 2000-01-27  Daniel Pittman <daniel@danann.net>
17252
17253         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17254         libs when built with flat Athena.
17255
17256 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17257
17258         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17259         Use coding standards for function prototypes.
17260
17261 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17262
17263         * dialog-msw.c (push_lisp_string_as_unicode):
17264         * doc.c (unparesseuxify_doc_string):
17265         * dired.c (Fuser_name_completion_1):
17266         * dired.c (Fuser_name_all_completions):
17267         * dired.c (free_user_cache):
17268         * dired.c (user_name_completion):
17269         * console-x.c (get_display_arg_connection):
17270         * minibuf.c (clear_echo_area_internal):
17271         * minibuf.c (echo_area_append):
17272         * eldap.c (Fldap_open):
17273         * eldap.c (Fldap_search_internal):
17274         * frame-x.c (x_set_frame_text_value):
17275         * frame-x.c (x_set_frame_properties):
17276         * frame-x.c (x_create_widgets):
17277         * redisplay-tty.c (term_get_fkeys_1):
17278         * objects-x.c (x_parse_nearest_color):
17279         * objects-x.c (x_valid_color_name_p):
17280         * objects-x.c (x_initialize_font_instance):
17281         * objects-x.c (x_list_fonts):
17282         * objects-x.c (x_find_charset_font):
17283         * tooltalk.c (Fadd_tooltalk_message_arg):
17284         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17285         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17286         * process-unix.c (unix_create_process):
17287         * ntproc.c (sys_spawnve):
17288         * sound.c (Fplay_sound_file):
17289         * sound.c (Fplay_sound):
17290         * buffer.c (init_initial_directory):
17291         * buffer.c (init_buffer):
17292         * editfns.c (init_editfns):
17293         * editfns.c (Ftemp_directory):
17294         * editfns.c (Fuser_full_name):
17295         * editfns.c (uncache_home_directory):
17296         * editfns.c (get_home_directory):
17297         * editfns.c (Fuser_home_directory):
17298         * editfns.c (Fformat_time_string):
17299         * editfns.c (Fcurrent_time_string):
17300         * gui-x.c (button_item_to_widget_value):
17301         * database.c (Fopen_database):
17302         * event-Xt.c (x_to_emacs_keysym):
17303         * event-Xt.c (x_event_to_emacs_event):
17304         * event-Xt.c (describe_event_window):
17305         * event-msw.c (mswindows_wnd_proc):
17306         * glyphs-eimage.c (jpeg_instantiate):
17307         * glyphs-eimage.c (gif_instantiate):
17308         * glyphs-eimage.c (png_instantiate):
17309         * glyphs-eimage.c (tiff_instantiate):
17310         * glyphs-x.c (xbm_instantiate_1):
17311         * glyphs-x.c (x_xbm_instantiate):
17312         * glyphs-x.c (x_xface_instantiate):
17313         * glyphs-x.c (autodetect_instantiate):
17314         * glyphs-x.c (cursor_font_instantiate):
17315         * glyphs-x.c (x_widget_instantiate):
17316         * glyphs-x.c (x_widget_set_property):
17317         * glyphs-x.c (x_widget_property):
17318         * glyphs-x.c (BUILD_GLYPH_INST):
17319         * print.c (write_string_to_stdio_stream):
17320         * print.c (output_string):
17321         * print.c (Falternate_debugging_output):
17322         * print.c (Fexternal_debugging_output):
17323         * glyphs-msw.c (extract_xpm_color_names):
17324         * glyphs-msw.c (mswindows_xpm_instantiate):
17325         * glyphs-msw.c (bmp_instantiate):
17326         * glyphs-msw.c (resource_name_to_resource):
17327         * glyphs-msw.c (mswindows_resource_instantiate):
17328         * glyphs-msw.c (xbm_instantiate_1):
17329         * glyphs-msw.c (mswindows_xbm_instantiate):
17330         * glyphs-msw.c (mswindows_xface_instantiate):
17331         * glyphs-msw.c (mswindows_widget_instantiate):
17332         * glyphs-msw.c (add_tree_item):
17333         * glyphs-msw.c (add_tab_item):
17334         * glyphs-msw.c (mswindows_combo_box_instantiate):
17335         * glyphs-msw.c (mswindows_widget_property):
17336         * glyphs-msw.c (mswindows_combo_box_property):
17337         * glyphs-msw.c (mswindows_widget_set_property):
17338         * console.c (stuff_buffered_input):
17339         * objects-msw.c (mswindows_initialize_color_instance):
17340         * objects-msw.c (mswindows_valid_color_name_p):
17341         * objects-msw.c (mswindows_list_fonts):
17342         * objects-msw.c (mswindows_font_instance_truename):
17343         * bytecode.c (optimize_compiled_function):
17344         * select-x.c (symbol_to_x_atom):
17345         * select-x.c (x_atom_to_symbol):
17346         * select-x.c (hack_motif_clipboard_selection):
17347         * select-x.c (selection_data_to_lisp_data):
17348         * select-x.c (lisp_data_to_selection_data):
17349         * select-x.c (Fx_get_cutbuffer_internal):
17350         * select-x.c (Fx_store_cutbuffer_internal):
17351         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17352         * buffer.h (TO_INTERNAL_FORMAT): New function.
17353         * emacs.c (make_arg_list_1):
17354         * emacs.c (make_argc_argv):
17355         * emacs.c (main_1):
17356         * emacs.c (Fdump_emacs):
17357         * emacs.c (split_string_by_emchar_1):
17358         * file-coding.h:
17359         * lisp.h:
17360         * lstream.h:
17361         * symsinit.h:
17362         * device-x.c (x_init_device):
17363         * device-x.c (Fx_valid_keysym_name_p):
17364         * device-x.c (Fx_get_font_path):
17365         * device-x.c (Fx_set_font_path):
17366         * glyphs.c (bitmap_to_lisp_data):
17367         * glyphs.c (pixmap_to_lisp_data):
17368         * alloc.c (make_ext_string): Use coding system arguments.  Update
17369         all callers.
17370         * alloc.c (build_string):
17371         * callproc.c (child_setup):
17372         * callproc.c (init_callproc):
17373         * fileio.c (lisp_strerror):
17374         * fileio.c (directory_file_name):
17375         * fileio.c (Fexpand_file_name):
17376         * fileio.c (Ffile_truename):
17377         * fileio.c (Fsysnetunam):
17378         * fileio.c (Fdo_auto_save):
17379         * sysdep.c (sys_readdir):
17380         * tests.c: New file.  Allow adding C tests.
17381         Replace GET_* macros with a more comprehensible and flexible
17382         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17383         Modify all calls.
17384         Any coding system can be used to do format conversion.
17385         Eliminate enum external_data_format.
17386         Eliminate convert_to_external_format.
17387         Eliminate convert_to_internal_format.
17388         Make sure file-name, keyboard, terminal, and ctext are always
17389         defined as coding systems or aliases.  Make
17390         file-name-coding-system, terminal-coding-system, and
17391         keyboard-coding-system magical variables that are equivalent to
17392         defining the corresponding coding system aliases.
17393
17394         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17395         * file-coding.c (Fcoding_system_alias_p): New function.
17396         * file-coding.c (Fcoding_system_aliasee): New function.
17397         * file-coding.c (append_suffix_to_symbol): New function.
17398         * file-coding.c (dangling_coding_system_alias_p): New function.
17399         * file-coding.c (Ffind_coding_system):
17400         * file-coding.c (Fcopy_coding_system):
17401         * file-coding.c (encode_coding_no_conversion):
17402         * file-coding.c (syms_of_file_coding):
17403         * file-coding.c (vars_of_file_coding):
17404         Rewrite coding system alias code.
17405         Allow nested aliases, like symbolic links.
17406         Allow redefinition of coding system aliases.
17407         Prevent existence of dangling coding system aliases.
17408
17409         * dired.c (Fuser_name_completion_1):
17410         * dired.c (Fuser_name_all_completions):
17411         A crash would happen if user did QUIT in the middle of building
17412         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17413
17414         * lisp.h:
17415         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17416
17417         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17418         an unsigned char *.  Update all callers.
17419
17420 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17421
17422         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17423
17424 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17425
17426         * elhash.c (hentry_description): Use more portable definition.
17427         (resize_hash_table): Initialize new hentries using
17428         xnew_array_and_zero, thereby simplifying the code.
17429
17430         * mule-charset.c (make_charset): Make sure entire object is
17431         initialized, to avoid Purify warnings.
17432
17433         * alloc.c (resize_string): Fix unlikely crash with big strings.
17434
17435 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17436
17437         * realpath.c (xrealpath):
17438         Don't call getwd().
17439
17440 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17441
17442         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17443
17444 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17445
17446         * unexelfsgi.c (unexec): Change the way we decide which segment
17447         should be extended.
17448
17449         Assumption that .bss section should be outside the PT_LOADable
17450         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17451         it's present) is inside the 'data' segment. This would fail the
17452         test which was used to find a segment to grow and cover new
17453         heap. Instead of this assumption, I created another one - on IRIX
17454         the segment to grow should start below .bss and it's address
17455         should extent above the end of .bss. Once this segment is
17456         identified, it's grown to accommodate the new heap and new
17457         zero-length .bss section is added at the end of .data2.
17458
17459 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17460
17461         * eval.c (Feval): Wrong number of arguments should use original
17462         function, not the indirect_function version of it.
17463
17464 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17465
17466         * glyphs-x.c (x_button_instantiate): Don't add image if
17467         it is not a pixmap.
17468         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17469         is relative.
17470
17471 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17472
17473         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17474         declaration.
17475         (DEFVAR_INT_MAGIC): Ditto.
17476         (DEFVAR_BOOL_MAGIC): Ditto.
17477         * glyphs.h: Reindent backslash.
17478
17479 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17480
17481         * glyphs-widget.c (layout_query_geometry):
17482         (layout_layout): Use correct types for gheight, gwidth.
17483
17484 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17485
17486         * EmacsManager.c (QueryGeometry): Purified.
17487
17488 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17489
17490         * alloc.c (make_float): Make sure entire object is initialized, to
17491         avoid Purify warnings.
17492         (pdump_register_sub): Remove useless assignment.
17493         (pdump): Use xmalloc, not malloc.
17494         (pdump_load): Use xmalloc, not malloc.
17495
17496 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17497
17498         * callproc.c:
17499         * dired-msw.c:
17500         * fileio.c:
17501         * process-nt.c:
17502         * redisplay-msw.c:
17503         * sysdep.c: Removed redundant #include <windows.h>
17504
17505 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17506
17507         * frame.c (delete_frame_internal): Do not delete device when its
17508         implementation so declares.
17509         (delete_frame_internal): Set device selected frame to nil when
17510         last frame goes away.
17511
17512         * device-msw.c (msprinter_device_system_metrics): Implemented.
17513         (mswindows_device_system_metrics): Added 'device-dpi property.
17514
17515         * device.c: (Fdevice_printer_p): Added.
17516         Added 'offset-workspace device metric.
17517
17518         * console.h (device_metrics): Declared DM_offset_workspace.
17519
17520 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17521
17522         * fileio.c (Ffile_truename): Remove pointless and confusing
17523         initialization of elen.
17524
17525         * glyphs-widget.c: Compiler warning fixes.
17526
17527 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17528
17529         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17530         instead of a Lisp_Object as argument to make it consistent with
17531         the other LIVE_P macros.
17532         (CHECK_LIVE_PROCESS): New macro.
17533
17534         * process.c: Declare Qprocess_live_p.
17535         (Fprocess_live_p): New function.
17536         (create_process): Use PROCESS_LIVE_P.
17537         (read_process_output): Ditto.
17538         (set_process_filter): Ditto.
17539         (Fdelete_process): Ditto.
17540         (kill_buffer_processes): Ditto
17541         (process_send_signal): Use CHECK_LIVE_PROCESS.
17542         (Fprocess_input_coding_system): Check whether process is still
17543         alive (fix PR#1061).
17544         (Fprocess_output_coding_system): Ditto.
17545         (Fprocess_coding_system): Ditto.
17546         (Fset_process_input_coding_system): Ditto.
17547         (Fset_process_output_coding_system): Ditto.
17548
17549 2000-01-23  Andy Piper  <andy@xemacs.org>
17550
17551         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17552         layout and widget.
17553
17554         * glyphs.c (mark_image_instance): take into account changed
17555         image_instance format.
17556         (image_instance_equal): ditto.
17557         (image_instance_hash): ditto.
17558
17559         * glyphs-widget.c (widget_instantiate): Incorporate layout
17560         instantiation here. Delay layout of the layout until later.
17561         (layout_instantiate): deleted.
17562         (layout_query_geometry): new function. get the geometry of a
17563         layout.
17564         (layout_layout): layout a layout dynamically.
17565         (image_instantiator_widget): New function - splitting up
17566         image_instantiator_format_create_glyphs_widget for netwinder
17567         compilation.
17568         (image_instantiator_buttons):
17569         (image_instantiator_edit_fields):
17570         (image_instantiator_combo_box):
17571         (image_instantiator_scrollbar):
17572         (image_instantiator_progress_guage):
17573         (image_instantiator_tree_view):
17574         (image_instantiator_tab_control):
17575         (image_instantiator_labels):
17576         (image_instantiator_layout): ditto.
17577         (image_instantiator_format_create_glyphs_widget): Call preceding
17578         functions.
17579
17580 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17581
17582         * process.c (Fset_process_coding_system):
17583         * device-x.c (Fx_keysym_hash_table):
17584         Docstring fixes.
17585
17586         * lstream.c (Lstream_write): Return documented value, not 0.
17587
17588         * fileio.c (directory_file_name):
17589         (Fsubstitute_in_file_name):
17590         (Fsubstitute_insert_file_contents_internal):
17591         (Fwrite_region_internal):
17592         * emacs.c:
17593         * sysdep.c:
17594         * getloadavg.c:
17595         * systty.h:
17596         Remove vestigial APOLLO-conditional code.
17597
17598 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17599
17600         * getpagesize.h: Add guard macros.
17601         * libsst.h: Add guard macros.
17602         * libst.h: Add guard macros.
17603         * line-number.h: Add guard macros.
17604         * ndir.h: Add guard macros.
17605         * sysfloat.h: Add guard macros.
17606         * sysfile.h: Add guard macros.
17607         * sysproc.h: Add guard macros.
17608         * syswait.h: Add guard macros.
17609         * xintrinsic.h: Add guard macros.
17610         * xintrinsicp.h: Add guard macros.
17611         * xmmanager.h: Add guard macros.
17612         * xmmanagerp.h: Add guard macros.
17613         * xmprimitive.h: Add guard macros.
17614         * xmu.h: Add guard macros.
17615         * gpmevent.h: Add copyright statement. Add guard macros.
17616         * miscplay.h: Add guard macros.
17617         * *.h: Use consistent C-standards-approved guard macro names.
17618
17619         * opaque.c (make_opaque): Switch parameter order.
17620         * opaque.h (make_opaque): Switch parameter order.
17621         Update all callers.
17622         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17623
17624         * config.h.in (type_checking_assert): Added.
17625         (bufpos_checking_assert): Added.
17626
17627 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17628
17629         * alloc.c: Harmless pdump changes.
17630         - Use countof().
17631         - spell alignment correctly.
17632         * sysdep.c: Use countof()
17633
17634 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17635
17636         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17637         initially_selected_for_input() console method, default to 0.
17638         (semi_canonicalize_console_connection): Try to delegate to
17639         canonicalize_console_connection if no such console method.
17640         (canonicalize_console_connection): Vice versa.
17641         (print_console): Do not print nil connection.
17642
17643         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17644         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17645         (XDEVIMPF_FRAMELESS_OK): Added.
17646         (CONSOLE_INHERITS_METHOD): Added.
17647
17648         * console-msw.c (mswindows_canonicalize_console_connection):
17649         Added.
17650         (mswindows_canonicalize_device_connection): Added.
17651
17652         * console-msw.h (struct msprinter_device): Added this struct and
17653         accessor macros.
17654         (mswindows_device): Made fontlist a lisp object.
17655
17656         * device.c (semi_canonicalize_device_connection):  Try to delegate
17657         to canonicalize_device_connection if no such console method.
17658         (canonicalize_device_connection): Vice versa.
17659         (print_device): Do not print nil connection.
17660
17661         * device-msw.c (mswindows_init_device): Call InitCommonControls
17662         when have widgets.
17663         (mswindows_delete_device): Removed fontlist deallocation.
17664         (mswindows_mark_device): Added.
17665
17666         * events.c (event_equal): Added abort() at unreached code.
17667         (event_hash): Ditto.
17668
17669         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17670         fallback tags of Windows devices.
17671
17672         * general.c (syms_of_general): Initialized Qmsprinter.
17673
17674         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17675         of fallback tags of Windows devices.
17676
17677         * lisp.h: Declared Qmsprinter.
17678
17679         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17680         of strings.
17681         (mswindows_list_fonts): Ditto.
17682         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17683         that it can be used by both mswindows and msprinter devices.
17684         (initialize_font_instance): Added.
17685         (mswindows_initialize_font_instance): Use it.
17686         (msprinter_initialize_font_instance): Added.
17687
17688         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17689         and implementation flags check.
17690         (redisplay_without_hooks): Changed the call to the above.
17691         (Fredraw_device): Ditto.
17692         (Fredisplay_device): Ditto.
17693
17694         * redisplay-msw.c (get_frame_dc): Implemented.
17695         (get_frame_compdc): Implemented.
17696         (many functions): Use the two functions above to get device
17697         contexts, ether for a window or a printer.
17698
17699 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17700
17701         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17702         initialization here.
17703         (init_symbols_once_early): Call it.
17704         * emacs.c (main_1): Call it.
17705         * symsinit.h: Declare it.
17706
17707 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17708
17709         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17710         Lisp_Object.
17711         (pdump_backtrace): Ditto.
17712         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17713         (pdump_get_entry): Abort if trying to register a null pointer.
17714         (pdump_dump_data): Cleanup types when relocating.
17715         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17716         (pdump_dump_rtables): Remove bad casts.
17717         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17718         Lisp_Object instead of a EMACS_INT for the hashtable
17719         reorganization.
17720
17721 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17722
17723         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17724
17725         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17726
17727         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17728
17729         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17730
17731 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17732
17733         * faces.h (FACE_STRIKETHRU_P): Added.
17734
17735         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17736         of font variants.
17737
17738         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17739         (mswindows_set_dc_font): New function, aware of font variants,
17740         separated from mswindows_update_dc.
17741
17742         * objects-msw.h (struct mswindows_font_instance_data): Added
17743         definition.
17744
17745         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17746         cached fonts and the data structure.
17747         (mswindows_initialize_font_instance): Added creation of font data
17748         structure.
17749         (mswindows_print_font_instance): Print at least something.
17750         (mswindows_create_font_variant): Implemented.
17751         (mswindows_get_hfont): Implemented.
17752
17753 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17754
17755         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17756         prototyping problem with msvc.
17757
17758         * emacs.c (main_1): added syms_of_gui_mswindows() call
17759
17760         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17761         syms_of_gui_mswindows() function
17762
17763         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17764
17765 2000-01-18  Martin Buchholz <martin@xemacs.org>
17766
17767         * XEmacs 21.2.27 is released.
17768
17769 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17770
17771         * glyphs-eimage.c (struct tiff_error_struct):
17772         (tiff_error_func):
17773         (tiff_warning_func):
17774         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17775
17776         * unexmips.c:
17777         * unexhp9k3.c:
17778         * unexfreebsd.c:
17779         * unexec.c: Remove vestigial Lucid C code.
17780         * unexalpha.c:
17781         * unexaix.c:
17782         * termcap.c:
17783         * libsst.c: Ansify.
17784         Remove declarations of errno and strerror().
17785
17786         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17787
17788         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17789
17790 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17791
17792         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17793         Optimize.
17794
17795 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17796
17797         * md5.c:
17798         * file-coding.c:
17799         * file-coding.h:
17800         Change enum eol_type to eol_type_t.
17801
17802 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17803
17804         * gui.c (get_gui_callback): Check cons before accessing car.
17805
17806 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17807
17808         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17809         (XSETSPECIFIER_TYPE): Ditto.
17810
17811 2000-01-17  Didier Verna  <didier@xemacs.org>
17812
17813         * redisplay.c (generate_fstring_runes): compute string size in
17814         characters, not bytes.
17815
17816 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17817
17818         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17819
17820 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17821
17822         * print.c (print_error_message): Call print_prepare().
17823
17824 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17825
17826         * .dbxrc: Renamed from dbxrc.
17827
17828         * events.c (event_to_character):
17829         Use `assert (foo)' instead of `if (!foo) abort()'
17830
17831         * .gdbinit (xtype): Add documentation.
17832         * .gdbinit (check-temacs): New function.
17833         * .gdbinit (check-xemacs): New function.
17834         * dbxrc (check-xemacs): New function.
17835         * dbxrc (check-xemacs): New function.
17836
17837 2000-01-14  Andy Piper  <andy@xemacs.org>
17838
17839         * glyphs-widget.c (widget_query_geometry): Make sure that we
17840         calculate default dimensions correctly.
17841
17842 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17843
17844         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17845
17846         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17847         pdump_wire'd variable.
17848
17849         * emacs.c: (main_1): Conditionalized calls to
17850         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17851
17852 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17853
17854         * window.c (Fset_window_configuration):
17855         * sysdep.c (_start):
17856         * input-method-motif.c (res):
17857         * event-Xt.c (Xt_process_to_emacs_event):
17858         Simple compiler warning fixes.
17859
17860         * bytecode.c (funcall_compiled_function): Use the original
17861         function symbol on the backtrace list in preference to the
17862         compiled_function object in error messages.
17863
17864 2000-01-13  Andy Piper  <andy@xemacs.org>
17865
17866         * glyphs-x.c (update_widget_face): Make sure we update the widget
17867         background as well as foreground.
17868
17869 2000-01-13  Andy Piper  <andy@xemacs.org>
17870
17871         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17872         fields to subwindow.
17873         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17874         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17875         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17876         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17877
17878         * glyphs-widget.c (check_valid_tab_orientation): new function.
17879         (initialize_widget_image_instance): zero orientation and
17880         justification.
17881         (widget_instantiate): pick up orientation.
17882         (tab_control_query_geometry): return appropriate values for
17883         vertical tabs.
17884
17885         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17886         appropriate creation flags for left, right and bottom tabs.
17887
17888         * s/cygwin32.h: add tab definitions.
17889
17890 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17891
17892         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17893         frame upon hiding a subwindow.
17894         (mswindows_button_instantiate): Changed the push button style to
17895         BS_PUSHBUTTON.
17896         (mswindows_button_instantiate): Removed button BS_NOTIFY
17897         style.
17898         (mswindows_button_instantiate): Removed redundant check for
17899         a disabled gui item.
17900         (mswindows_button_instantiate): Made use of WS_TABSTOP
17901         consistent: "operable" controls (edit, button, tree, scroll) have
17902         this style, "display-only" ones (static, progress gauge) do
17903         not. This style is currently ignored by XEmacs though. Also,
17904         removed the WS_EX_CONTROLPARENT style - it is not for children,
17905         it is for their parents!
17906         (mswindows_edit_field_instantiate): Ditto.
17907         (mswindows_progress_gauge_instantiate): Ditto.
17908         (mswindows_tree_view_instantiate): Ditto.
17909         (mswindows_tab_control_instantiate): Ditto.
17910         (mswindows_scrollbar_instantiate): Ditto.
17911         (mswindows_combo_box_instantiate): Ditto.
17912         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17913         style to the "clip" window.
17914         (mswindows_button_instantiate): Removed compilation warning by
17915         equally typing terms of the ?: operator.
17916
17917 2000-01-12  Didier Verna  <didier@xemacs.org>
17918
17919         * redisplay.c (generate_fstring_runes): new parameter holding the
17920         last modeline-format extent.
17921         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17922         extent, fill the glyph block with it.
17923         (generate_fstring_runes): handle these parameters.
17924         (generate_formatted_string_db): ditto.
17925
17926         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17927         glyphs'extents in the modeline.
17928
17929 1999-01-11  Mike Woolley  <mike@bulsara.com>
17930
17931         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17932         256Mb, as a workaround for the non-starting problem many people
17933         have experienced.
17934
17935 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17936
17937         * console-tty.c (Fset_console_tty_output_coding_system):
17938         Force redrawing tty frame.
17939
17940 2000-01-10  Didier Verna  <didier@xemacs.org>
17941
17942         * redisplay.c (generate_fstring_runes): fix size computation bug.
17943
17944 2000-01-09  William M. Perry <wmperry@aventail.com>
17945
17946         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17947
17948 2000-01-09  Andy Piper  <andy@xemacs.org>
17949
17950         * glyphs-msw.c: index -> i to avoid shadows.
17951         (xbm_create_bitmap_from_data): make static.
17952         (check_valid_string_or_int): deleted.
17953         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17954
17955         * glyphs-x.c (x_update_subwindow): remove unused args.
17956
17957         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17958         back pointer - this is done in allocate_image_instance.
17959         (query_string_font): return Qnil to make the compiler happy.
17960         (unmap_subwindow): set to ~0 to make the compiler happy.
17961         (glyph_query_geometry): comment out until used.
17962         (glyph_layout): ditto.
17963
17964 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17965
17966         * insdel.c (signal_after_change): Remove extraneous unbind_to().