update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * concord.c (concord_object_put): New function.
4         (Fconcord_object_put): Use `concord_object_put'.
5
6 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * concord.c (Fconcord_define_object): New function.
9         (syms_of_concord): Add new builtin function
10         `concord-define-object'.
11
12 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
13
14         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
15         (Kamo).
16
17 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
18
19         * concord.c: Add EXFUN for Fconcord_object_get.
20         (Vconcord_genre_object_hash_table): New variable.
21         (concord_genre_cache_get_object): New function.
22         (concord_genre_cache_put_object): New function.
23         (Fconcord_make_object): Use object cache; put object-ID into `=id'
24         feature.
25         (Fconcord_object_put): Call `concord_index_sync' after
26         `concord_index_strid_put_obj'.
27         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
28
29 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
30
31         * concord.c (Fconcord_decode_object): Do GCPRO for
32         Fconcord_make_object.
33         (func_for_each_object): Likewise; do GCPRO for
34         for_each_object_closure->function.
35         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
36         for_each_object_closure->function, for_each_object_closure->genre,
37         for_each_object_closure->ds and for_each_object_closure->ret.
38         (concord_object_validate): Do GCPRO for Fconcord_make_object.
39
40 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
41
42         * concord.c: Add EXFUNs for Fconcord_decode_object and
43         Fconcord_object_put.
44         (Fconcord_make_object): Change order of arguments.
45         (Fconcord_decode_object): Modify for Fconcord_make_object.
46         (func_for_each_object): Likewise.
47         (concord_object_validate): Likewise.
48         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
49
50 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
53
54 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
55
56         * concord.c (Fconcord_decode_object): Try to use readable print
57         form as a key of Concord-index.
58         (Fconcord_object_get): Try to use readable print form as an ID of
59         Concord-object.
60         (Fconcord_object_put): Try to use readable print form as an ID of
61         Concord-object and a feature value.
62         (Fconcord_object_spec): Try to use readable print form as an ID of
63         Concord-object.
64
65 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
66
67         * concord.c (print_concord_object): Support readable form.
68
69 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
70
71         * emacs.c (main_1): Call `structure_type_create_concord' when
72         HAVE_CONCORD is defined.
73
74         * symsinit.h (structure_type_create_concord): New prototype.
75
76         * concord.c (Qconcord_object): New variable.
77         (Qgenre): Likewise.
78         (Q_id): Likewise.
79         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
80         for directory.
81         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
82         char*> for genre-name.
83         (Fconcord_feature_list): Likewise.
84         (Fconcord_make_object): Likewise.
85         (Fconcord_decode_object): Likewise; use <char*> instead of
86         <unsigned char*> for feature_name and strid.
87         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
88         c_obj and feature_name.
89         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
90         char*> for c_value.
91         (struct closure_for_object_spec): Use <char*> instead of <unsigned
92         char*> for member `object_id'.
93         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
94         char*> for feature-name.
95         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
96         for c_obj.
97         (func_for_each_object): Cast to avoid warnings.
98         (Fconcord_foreach_object_in_feature): Use <char*> instead of
99         <unsigned char*> for genre_name and feature_name.
100         (concord_name_validate): New function.
101         (concord_object_validate): Likewise.
102         (concord_object_instantiate): Likewise.
103         (syms_of_concord): Add new builtin symbols `concord-object',
104         `genre' and `=id'.
105         (structure_type_create_concord): New function.
106
107 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
108
109         * concord.c (Vconcord_ds_hash_table): New variable.
110         (Vconcord_genre_hash_table): New variable.
111         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
112         (Fconcord_ds_directory): New function.
113         (Fconcord_assign_genre): New function.
114         (Fconcord_genre_directory): New function.
115         (Fconcord_genre_ds): New function.
116         (Fconcord_feature_list): Allow to omit `ds'.
117         (Fconcord_make_object): Likewise.
118         (Fconcord_decode_object): Likewise.
119         (Fconcord_foreach_object_in_feature): Likewise.
120         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
121         Fconcord_assign_genre, Fconcord_genre_directory and
122         Fconcord_genre_ds.
123         (vars_of_concord): Setup Vconcord_ds_hash_table and
124         Vconcord_genre_hash_table.
125
126 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
127
128         * concord.c (struct closure_for_each_object): Add new member
129         `ret'.
130         (func_for_each_object): Setup the return value to
131         `for_each_object_closure->ret'.
132         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
133         returns the value instead of Qt.
134
135 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
136
137         * concord.c: New file.
138
139 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
140
141         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
142         `lrecord_type_concord_object'.
143
144 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
145
146         * symsinit.h (syms_of_concord): New prototype.
147         (vars_of_concord): New prototype.
148
149         * emacs.c (main_1): Setup symbols and variable about concord if
150         HAVE_CONCORD is defined.
151
152         * config.h.in (HAVE_CONCORD): New macro.
153
154 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * chartab.c (Fput_char_attribute): For each character relation
157         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
158
159 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
160
161         * chartab.c (Fput_char_attribute): Use
162         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
163         calling `put_char_composition'.
164
165 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
166
167         * chartab.c (Q_halfwidth_of): New variable.
168         (put_char_composition): Return `<-halfwidth' instead of
169         `=decomposition' for compatibility mapping to single character
170         tagged `narrow'.
171         (Fput_char_attribute): Convert char-specs in value of
172         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
173         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
174         for `<-halfwidth'.
175         (syms_of_chartab): Add new symbol `<-halfwidth'.
176
177 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
178
179         * chartab.c (put_char_composition): Return
180         `<-formed@{isolated|initial|medial|final}' for compatibility
181         mapping to single character tagged
182         `{isolated|initial|medial|final}'.
183
184 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
185
186         * chartab.c (Q_compat_of): Deleted.
187         (put_char_composition): Return `<-FOO' for compatibility mapping
188         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
189         of `symbol_name (XSYMBOL(...))'.
190         (Fput_char_attribute): Convert char-specs in value of
191         `{<-|->}font[^*]*' to characters and put reverse links.
192         (Fsave_char_attribute_table): Don't refer Q_compat_of.
193         (syms_of_chartab): Delete builtin symbol `<-compat'.
194
195 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
196
197         * chartab.c (Q_circled_of): New variable.
198         (put_char_composition): Return `<-circled' instead of
199         `=decomposition' for compatibility mapping to single character
200         tagged `circle'.
201         (Fput_char_attribute): Convert char-specs in value of
202         `{<-|->}circled[^*]*' to characters and put reverse links.
203         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
204         for `<-circled'.
205         (syms_of_chartab): Add new symbol `<-circled'.
206
207 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
208
209         * chartab.c (Qto_decomposition_at_circled): New variable.
210         (put_char_composition): Return `=>decomposition@circled' instead
211         of `=decomposition' for compatibility decomposition mapping tagged
212         `circle'.
213         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
214
215 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
216
217         * chartab.c (Q_subscript_of): New variable.
218         (put_char_composition): Return `<-subscript' instead of
219         `=decomposition' for compatibility mapping to single character
220         tagged `sub'.
221         (Fput_char_attribute): Convert char-specs in value of
222         `{<-|->}subscript[^*]*' to characters and put reverse links.
223         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
224         for `<-subscript'.
225         (syms_of_chartab): Add new symbol `<-subscript'.
226
227 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
228
229         * chartab.c (Q_superscript_of): New variable.
230         (put_char_composition): Return `<-superscript' instead of
231         `=decomposition' for compatibility mapping to single character
232         tagged `super'.
233         (Fput_char_attribute): Convert char-specs in value of
234         `{<-|->}superscript[^*]*' to characters and put reverse links.
235         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
236         for `<-superscript'.
237         (syms_of_chartab): Add new symbol `<-superscript'.
238
239 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
240
241         * chartab.c (Qto_decomposition_at_compat): Deleted.
242         (Qto_decomposition_at_superscript): New variable.
243         (put_char_composition): Use `=>decomposition@superscript' instead
244         of `=decomposition' for compatibility decomposition mapping tagged
245         `super'.
246         (Fput_char_attribute): Fix condition about `put_char_composition'.
247         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
248         add news symbol `=>decomposition@superscript'.
249
250 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
251
252         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
253         for compatibility decomposition mapping tagged FOO.
254         (Fput_char_attribute): Modify for `put_char_composition'.
255
256 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
257
258         * chartab.c (Qto_decomposition_at_compat): New variable.
259         (Q_compat_of): Renamed from `Q_compatibility_of'.
260         (put_char_composition): Rename `Q_compatibility_of' to
261         `Q_compat_of'; return `=>decomposition@compat' for compatibility
262         decomposition mapping.
263         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
264         `Q_compat_of'.
265         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
266         `<-compatibility' to `<-compat'.
267
268 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
269
270         * chartab.c (Q_compatibility_of): New variable.
271         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
272         object is proved to be a cons cell; return `<-compatibility' if
273         the first element of argument `value' is `compat'.
274         (Fput_char_attribute): Eliminate the first value if
275         `put_char_composition' returns `<-compatibility'.
276         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
277         for `<-compatibility'.
278         (syms_of_chartab): Add new symbol `<-compatibility'.
279
280 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
281
282         * chartab.c (Q_canonical): New variable.
283         (put_char_composition): Return a feature name: return
284         `->canonical' if argument `value' specifies single character.
285         (Fput_char_attribute): Use `put_char_composition' to determine
286         feature name for `=decomposition' or `->denotational'.
287         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
288         for `->canonical'.
289         (syms_of_chartab): Add new symbol `->canonical'.
290
291 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
292
293         * chartab.c (Qmap_decomposition): New variable.
294         (Fput_char_attribute): Convert `->decomposition' to
295         `=decomposition'.
296         (syms_of_chartab): Add new symbol `=decomposition'.
297
298 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
299
300         * chartab.c (Fget_range_char_table): Fix serious problem when
301         `range' is nil.
302
303 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
304
305         * chartab.c (char_table_get_db): Use `read_from_c_string'.
306
307 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
308
309         * lread.c (read_from_c_string): New function.
310
311         * lisp.h (read_from_c_string): New prototype.
312
313 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
314
315         * chartab.c (Fput_char_attribute): Convert char-specs in value of
316         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
317         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
318         for `{<-|->}Oracle-Bones[^*]*'.
319
320 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
321
322         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
323         (Kizu).
324
325 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
326
327         * text-coding.c (Qccs_priority_list): New variable in XEmacs
328         CHISE.
329         (Fmake_coding_system): Support new property `ccs-priority-list' in
330         XEmacs CHISE.
331         (Fcoding_system_property): Likewise.
332         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
333         Vdefault_coded_charset_priority_list in XEmacs CHISE.
334         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
335         XEmacs CHISE.
336         (complex_vars_of_file_coding): Define new coding-system-property
337         `ccs-priority-list' in XEmacs CHISE.
338
339         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
340
341 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
344         changed to normal function.
345         (encode_char_2): Likewise.
346
347         * mule-charset.c (decoding_table_put_char): Copied from
348         char-ucs.h; changed to normal function.
349         (encode_char_2): Likewise.
350
351 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
352
353         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
354         New extern.
355         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
356         (encode_char_2_search_children): New inline function.
357         (encode_char_2): Refer
358         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
359         and use `encode_char_2_search_children'.
360
361 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
362
363         * mule-charset.c
364         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
365         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
366         (vars_of_mule_charset): Add new variable
367         `display-coded-charset-priority-use-inheritance' and
368         `display-coded-charset-priority-use-hierarchy-order'.
369
370 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
371
372         * char-ucs.h (Q_subsumptive): New extern.
373         (Q_denotational): Likewise.
374         (encode_char_2): Search children specified by `->subsumptive' and
375         `->denotational'.
376
377 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
378
379         * mule-charset.c (complex_vars_of_mule_charset): Modify the
380         X-registry of `ucs-bmp'.
381
382 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
383
384         * chartab.c (char-variants): Refer `->subsumptive',
385         `->denotational' and `->identical' as same as `->ucs-unified'.
386
387 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
388
389         * chartab.c (Fput_char_attribute): Convert char-specs in value of
390         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
391         links.
392
393 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
394
395         * text-coding.c: Add EXFUN for `Fregexp_quote'.
396         (decode_add_er_char): Fix problem about infinite loop when a CCS
397         specified in `coded-charset-entity-reference-alist' is not
398         existed.
399
400 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
401
402         * mule-charset.c (syms_of_mule_charset): Rename
403         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
404
405 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
406
407         * fns.c (simplify_char_spec): Don't allocate new character-object
408         if specified char_spec does not have any CCS-features.
409
410         * chartab.h: Add EXFUN for Fdefine_char.
411
412         * chartab.c: Delete EXFUN for Fdefine_char.
413
414 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
415
416         * fns.c (simplify_char_spec): Use Fdefine_char instead of
417         Ffind_char for char-spec.
418
419 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
420
421         * lisp-disunion.h (XCHARVAL): Fix condition about
422         SIZEOF_EMACS_INT.
423
424 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
425
426         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
427         <int> for `code'.
428         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
429         point; use <Emchar> instead of <int> for character-id.
430
431 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
432
433         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
434         (make_char): Likewise.
435         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
436         environment.
437         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
438         instead of <int> as the type of return value; use <Lisp_Object>
439         instead of <Emchar> as the type of argument.
440         (XCHARVAL[macro version]): Cast the result into <Emchar>.
441
442         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
443         syntaxcode> instead of <int>.
444
445 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * chartab.c (put_char_composition): Use DECODE_CHAR to get
448         character corresponding with UCS code point.
449         (Fput_char_attribute): Likewise.
450
451         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
452         character in the UCS decoding-table if the char-id is not equal to
453         the UCS code point.
454
455 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
456
457         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
458         for aliases; write `description'; write
459         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
460         not 0.
461
462 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
463
464         * chartab.c (Fsave_char_attribute_table): Don't use
465         `save_charset_properties'.
466
467         * mule-charset.c (Fsave_charset_properties): Renamed from
468         `save_charset_properties' and changed to Lisp function again;
469         write property `type' as `CCS'; write properties `final-byte' and
470         `mother' if they exists.
471         (syms_of_mule_charset): Revive builtin function
472         `save-charset-properties' when HAVE_LIBCHISE is defined.
473
474 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
475
476         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
477         instead of Vexec_directory.
478         (char_attribute_system_db_file): Likewise.
479
480 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
481
482         * chartab.c (Fsave_char_attribute_table): Use
483         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
484         defined.
485
486         * mule-charset.c (save_charset_properties): Renamed from
487         `Fsave_charset_properties'; changed to non-Lisp function.
488         (syms_of_mule_charset): Abolish builtin function
489         `save-charset-properties'.
490
491 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
492
493         * mule-charset.c (Fsave_charset_properties): New function when
494         HAVE_LIBCHISE is defined.
495         (syms_of_mule_charset): Add new builtin function
496         `save-charset-properties' when HAVE_LIBCHISE is defined.
497
498 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
499
500         * chartab.c (Fput_char_attribute): Convert char-specs in value of
501         `{<-|->}ancient[^*]*' to characters and put reverse links.
502         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
503         for `{<-|->}ancient[^*]*'.
504
505 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
506
507         * chartab.c (Fput_char_attribute): Convert char-specs in value of
508         `{<-|->}original[^*]*' to characters and put reverse links.
509         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
510         for `{<-|->}original[^*]*'.
511
512 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
513
514         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
515
516 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
517
518         * mule-charset.c (Qsystem_char_id): New variable.
519
520         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
521         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
522
523 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
524
525         * chartab.c (Fput_char_attribute): When processing a reference of
526         a character, put into the end of the reversed reference of each
527         target character.
528
529 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
530
531         * chartab.c (Q_same): Deleted.
532         (Q_same_of): Deleted.
533         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
534         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
535         for `{<-|->}same'.
536         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
537
538 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
539
540         * chartab.c (Q_vulgar): Deleted.
541         (Q_vulgar_of): Deleted.
542         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
543         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
544         for `{<-|->}vulgar'.
545         (syms_of_chartab): Don't define `{<-|->}vulgar'.
546
547 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
548
549         * chartab.c (Fput_char_attribute): Convert char-specs in value of
550         `{<-|->}wrong[^*]*' to characters and put reverse links.
551         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
552         for `{<-|->}wrong[^*]*'.
553
554 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
555
556         * chartab.c (Q_vulgar): New variable.
557         (Q_vulgar_of): New variable.
558         (Fput_char_attribute): Convert char-specs in value of
559         `{->|<-}vulgar' to characters and put reverse links.
560         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
561         for `{->|<-}vulgar'.
562         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
563
564 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
565
566         * text-coding.c (decode_add_er_char): Must to quote prefix string
567         as regexp.
568
569 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
570
571         * mule-charset.c (put_char_ccs_code_point): Store characters of
572         =ucs whose code_points >= 0xF0000.
573
574 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
575
576         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
577         CHISE.
578         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
579         CHISE.
580         (complex_vars_of_mule_charset): Add new coded-charset
581         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
582         builtin characters over 0xEFFFF.
583
584         * chartab.c (syms_of_chartab): Don't define symbol
585         `system-char-id' in every case.
586
587         * char-ucs.h (Qsystem_char_id): New extern variable.
588         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
589
590 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
591
592         * text-coding.c (char_encode_utf8): Try to use entity-references
593         for U-000F0000 ...  U-0010FFFF.
594
595 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
596
597         * text-coding.c (ER_BUF_SIZE): New macro.
598         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
599         `er_buf'.
600         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
601         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
602
603 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
604
605         * chartab.c (find_char_feature_in_family): New function.
606         (Fchar_feature): Use `find_char_feature_in_family' with
607         `->identical', `<-subsumptive' and `<-denotational'.
608
609 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
610
611         * text-coding.c (char_encode_as_entity_reference): Allow prefix
612         within 8 characters; fix infinite loop.
613
614 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
615
616         * chartab.c (Q_same): New variable.
617         (Q_same_of): New variable.
618         (Fput_char_attribute): Convert char-specs in value of
619         `{->|<-}same' to characters and put reverse links.
620         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
621         for `{->|<-}same'.
622         (syms_of_chartab): Add new symbols `{->|<-}same'.
623
624 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
625
626         * chartab.c (Q_component): New variable.
627         (Q_component_of): Likewise.
628         (Fput_char_attribute): Convert char-specs in value of
629         `{->|<-}ideographic-component-forms' to characters and put reverse
630         links.
631         (syms_of_chartab): Add new symbols
632         `{->|<-}ideographic-component-forms'.
633
634 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
635
636         * chartab.c (Q_identical): New variable.
637         (Q_identical_from): New variable.
638         (Fchar_feature): Regard `->identical' as a feature to find
639         ancestors.
640         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
641         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
642         for `{->|<-}identical'.
643         (syms_of_chartab): Add new symbols `{->|<-}identical'.
644
645 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
646
647         * char-ucs.h (encode_char_2): New inline function.
648         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
649
650 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
651
652         * chartab.c (Fput_char_attribute): Convert char-specs to
653         characters in value of `ideographic-structure'.
654         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
655         for `{<-|->}simplified(@...)'.
656         (Fdefine_char): Try to use predefined character's id.
657
658 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
659
660         * fns.c (simplify_char_spec): Try to convert builtin chars to
661         defined chars.
662
663 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
664
665         * chartab.c (Fput_char_attribute): Convert char-specs in value of
666         `<-simplified[^*]*' to characters and put reverse links.
667
668 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
669
670         * chartab.c (Q_subsumptive): Renamed from Q_unified.
671         (Q_subsumptive_from): Renamed from Q_unified_from.
672         (Fchar_feature): Use `Q_subsumptive_from' instead of
673         `Q_unified_from'.
674         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
675         `Q_unified'.
676         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
677         `<-unified' to `<-subsumptive'.
678
679 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
680
681         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
682         inheritance itself; fix typo; stop recursive search if cyclic
683         inheritance is found.
684
685 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
686
687         * chartab.c (Q_denotational): New variable.
688         (Q_denotational_from): New variable.
689         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
690         (put_char_attribute): New function.
691         (Fput_char_attribute): Use `put_char_attribute'; regard
692         `->denotational' and `<-denotational' as same as `->unified' and
693         `<-unified'.
694         (syms_of_chartab): Add new symbols `->denotational' and
695         `<-denotational'.
696
697 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
698
699         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
700         `Fget_char_attribute'.
701         (Fchar_variants): Likewise.
702         (get_char_table): Likewise.
703         (Fchar_feature): New function.
704         (put_char_composition): Use `Fchar_feature' instead of
705         `Fget_char_attribute'.
706         (Fput_char_attribute): Likewise; don't put the target character
707         into its `->unified' value.
708         (syms_of_chartab): Add new builtin function `char-feature'.
709
710 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
711
712         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
713         `Fget_char_attribute'.
714         (char_encode_utf8): Likewise.
715
716         * chartab.h: Add an EXFUN for `Fchar_feature'.
717
718 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
719
720         * chartab.c (Vnext_defined_char_id): New variable.
721         (Fput_char_attribute): Accept characters in `->unified'.
722         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
723         new characters which are not related with builtin char-id ranges.
724         (vars_of_chartab): Add new variable `next-defined-char-id'.
725
726 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
727
728         * chartab.c (Q_unified): New variable.
729         (Q_unified_from): New variable.
730         (Fput_char_attribute): Add code for `->unified'.
731         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
732         XEmacs CHISE.
733
734 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
735
736         * mule-charset.c (decode_ccs_conversion): New function.
737         (decode_defined_char): Use `decode_ccs_conversion'.
738         (decode_builtin_char): Likewise.
739
740 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
741
742         * char-ucs.h: Change some charset-ids of private coded-charsets.
743
744 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
745
746         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
747         (char_encode_as_entity_reference): Likewise.
748         (decode_coding_big5): Modify for `decode_defined_char' and
749         `DECODE_CHAR'.
750         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
751         avoid compiler warning.
752         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
753
754         * mule-charset.c (decode_defined_char): Add new argument
755         `without_inheritance'.
756         (Fdecode_char): Add new optional argument `without_inheritance'.
757         (Fdecode_builtin_char): Modify for `Fdecode_char'.
758
759         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
760         (simplify_char_spec): Likewise.
761
762         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
763         setting.
764
765         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
766         (map_char_table): Likewise.
767         (Fdefine_char): Use `Fdecode_char' without inheritance.
768         (Ffind_char): Modify for `Fdecode_char'.
769
770         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
771
772         * char-ucs.h (decode_defined_char): Add new argument
773         `without_inheritance'.
774         (DECODE_CHAR): Likewise.
775         (MAKE_CHAR): Modify for `DECODE_CHAR'.
776
777 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
778
779         * chartab.c (Vchise_system_db_directory): New variable.
780         (vars_of_chartab): Add new variable `chise-system-db-directory'.
781
782 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
783
784         * chartab.c: EXFUN `Fmount_char_attribute_table'.
785         (print_chartab_range): Don't define when `UTF2000' is defined.
786         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
787         `CHISE_DS_open'.
788
789 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
790
791         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
792         and optional argument `rehash' is specified, call
793         `open_chise_data_source_maybe' before
794         `chise_ds_foreach_char_feature_name' is called.
795
796 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
797
798         * chartab.c (char_attribute_list_reset_map_func): New function
799         when HAVE_LIBCHISE is defined.
800         (Fchar_attribute_list): Add new optional argument `rehash' when
801         HAVE_LIBCHISE is defined.
802         (open_chise_data_source_maybe): Use "chise-db" instead of
803         "char-db".
804         (char_attribute_system_db_file): Likewise.
805         (Fload_char_attribute_table): Use
806         `chise_feature_foreach_char_with_value' instead of
807         `chise_char_feature_value_iterate'.
808
809 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
810
811         * chartab.c (Vchise_db_directory): New variable.
812         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
813
814 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
815
816         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
817         instead of HAVE_CHISE to specify using with libchise.
818
819         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
820
821         * chartab.h: Don't use HAVE_CHISE_CLIENT.
822
823         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
824         defined or HAVE_LIBCHISE_LIBCHISE is defined.
825         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
826         is defined.
827         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
828         HAVE_CHISE to specify using with libchise.
829         (syms_of_chartab): Don't define symbol `system-char-id' when
830         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
831
832 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
833
834         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
835         specify CHISE DB support.
836         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
837         of `char_attribute_system_db_file' to check feature DB file.
838
839         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
840         HAVE_CHISE_CLIENT to specify CHISE DB support.
841
842         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
843         specify CHISE DB support.
844         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
845         not defined.
846         (Freset_char_attribute_table): Use `chise_feature_setup_db'
847         instead of `char_attribute_system_db_file' to check feature DB
848         file.
849
850 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
851
852         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
853         `HAVE_CHISE_CLIENT'.
854
855 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
856
857         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
858         (Fsave_charset_mapping_table): Don't use
859         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
860
861         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
862         (HAVE_LIBCHISE): New macro.
863
864         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
865
866         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
867         (Fsave_char_attribute_table): Don't use
868         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
869
870 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
871
872         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
873         defined.
874         (save_uint16_byte_table): Likewise.
875         (save_byte_table): Likewise.
876         (char_table_get_db): Use `chise_ds_load_char_feature_value'
877         instead of `chise_char_load_feature_value'.
878         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
879
880 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
881
882         * chartab.h (struct Lisp_Char_Table): Delete member
883         `feature_table' if CHISE is defined.
884
885         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
886         (Fcopy_char_table): Likewise.
887         (char_table_open_db_maybe): Likewise.
888         (char_table_close_db_maybe): Likewise.
889         (char_table_get_db): Likewise.
890         (Fmount_char_attribute_table): Likewise.
891         (Fload_char_attribute_table): Likewise.
892
893 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
894
895         * mule-charset.c (load_char_decoding_entry_maybe): Use
896         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
897         `chise_ccs_decode'.
898
899 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
900
901         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
902         instead of `chise_open_data_source'.
903         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
904         `chise_ds_close'.
905
906 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
907
908         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
909         instead of `chise_ds_open_feature_table'.
910         (char_table_close_db_maybe): Don't use `chise_ft_close'.
911
912 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
913
914         * mule-charset.c (Fsave_charset_mapping_table): Use
915         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
916         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
917         `chise_ccs_sync' instead of `chise_ccst_close'.
918         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
919
920         * chartab.c (open_chise_data_source_maybe): Modify for
921         `chise_open_data_source'.
922         (char_table_open_db_maybe): Modify for
923         `chise_ds_open_feature_table'.
924
925 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
926
927         * mule-charset.c (load_char_decoding_entry_maybe): Use
928         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
929         `chise_ccst_close'.
930
931 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
932
933         * mule-charset.c (Fsave_charset_mapping_table): Use
934         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
935         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
936         `chise_dt_put_char' and `chise_dt_close'.
937         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
938         `chise_ccs_decode' and `chise_ccst_close' instead of
939         `chise_ds_open_decoding_table', `chise_dt_get_char' and
940         `chise_dt_close'.
941
942         * chartab.c (char_table_get_db): Use
943         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
944         (load_char_attribute_table_map_func): Modify for
945         `chise_char_feature_value_iterate'.
946         (Fload_char_attribute_table): Use
947         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
948
949 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
950
951         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
952
953 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
954
955         * chartab.c (put_char_table): Modify for inherited coded-charsets
956         in XEmacs CHISE.
957
958 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
959
960         * chartab.c (Fput_char_table_map_function): Fixed.
961         (word_boundary_p): Don't check charset in XEmacs CHISE.
962
963 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
964
965         * mule-charset.c (Fsave_charset_mapping_table): Use
966         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
967         instead of `chise_open_decoding_table'; refer
968         `default_chise_data_source'; use `chise_dt_close' instead of
969         `chise_close_decoding_table'.
970         (load_char_decoding_entry_maybe): Likewise.
971
972         * chartab.c (default_chise_data_source): New variable when `CHISE'
973         is defined.
974         (Fcopy_char_table): `ct->ds' is deleted.
975         (open_chise_data_source_maybe): New function.
976         (Fclose_char_data_source): New function.
977         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
978         use `chise_ds_open_feature_table' instead of
979         `chise_open_feature_table'.
980         (char_table_close_db_maybe): Use `chise_ft_close' instead of
981         `chise_close_feature_table'; `cit->ds' is deleted.
982         (syms_of_chartab): Add new builtin function
983         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
984
985         * chartab.h (default_chise_data_source): New extern variable.
986         (open_chise_data_source_maybe): New prototype.
987         (struct Lisp_Char_Table): Delete `ds'.
988
989 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
990
991         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
992         `CHISE' is defined.
993
994 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
995
996         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
997         not defined; add code for non-libchise setting.
998         (char_table_close_db_maybe): Likewise.
999         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1000         defined.
1001         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1002         even if `CHISE' is not defined.
1003         (Freset_char_attribute_table): Likewise.
1004         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1005         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1006         `char_table_get_db'.
1007         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1008         `char_table_close_db_maybe' even if `CHISE' is not defined.
1009
1010 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1011
1012         * chartab.c (char_table_open_db_maybe): New function.
1013         (char_table_close_db_maybe): New function.
1014         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1015         (Freset_char_attribute_table): Likewise.
1016         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1017         `char_table_close_db_maybe'.
1018         (Fload_char_attribute_table): Likewise.
1019
1020 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1021
1022         * chartab.c: Don't include <chise.h> because it is included in
1023         chartab.h.
1024         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1025         defined.
1026         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1027         `CHISE' is defined.
1028         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1029         `CHISE' is defined.
1030         (Fclose_char_attribute_table): Close `ct->feature_table' and
1031         `ct->ds' when `CHISE' is defined.
1032         (Freset_char_attribute_table): Likewise.
1033         (load_char_attribute_maybe): Use `cit->ds' and
1034         `cit->feature_table' when `CHISE' is defined.
1035         (Fload_char_attribute_table): Likewise.
1036
1037         * chartab.h: Include <chise.h> when `CHISE' is defined.
1038         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1039         when `CHISE' is defined.
1040
1041 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1042
1043         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1044         is defined.
1045         (char_table_description): Likewise.
1046         (Fmake_char_table): Likewise.
1047         (Fcopy_char_table): Likewise.
1048         (Fmount_char_attribute_table): Likewise.
1049         (Fclose_char_attribute_table): Likewise.
1050         (Freset_char_attribute_table): Likewise.
1051         (load_char_attribute_maybe): Likewise.
1052         (Fload_char_attribute_table): Likewise.
1053
1054         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1055         defined.
1056
1057 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1058
1059         * chartab.c (load_char_attribute_table_map_func): New function
1060         when CHISE is defined.
1061         (Qload_char_attribute_table_map_function): Don't define when CHISE
1062         is defined.
1063         (Fload_char_attribute_table_map_function): Likewise.
1064         (Fload_char_attribute_table): Use libchise when `CHISE' is
1065         defined.
1066         (syms_of_chartab): Don't define
1067         `load-char-attribute-table-map-function' when CHISE is defined.
1068
1069 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1070
1071         * chartab.c: Include <chise.h> when `CHISE' is defined.
1072         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1073
1074 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1075
1076         * mule-charset.c (charset_code_point): Fix problem when searching
1077         in mother CCS fails with `defined_only' mode.
1078
1079 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1080
1081         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1082         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1083         (put_char_composition): Likewise.
1084         (Fput_char_attribute): Likewise.
1085         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1086
1087 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1088
1089         * chartab.c (Q_ucs): Deleted.
1090         (Fput_char_attribute): Don't refer `->ucs'.
1091         (Fdefine_char): Likewise.
1092         (Ffind_char): Likewise.
1093         (syms_of_chartab): Delete `->ucs'.
1094
1095 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1096
1097         * mule-charset.c (Qmap_cns11643_2): Renamed from
1098         `Qchinese_cns11643_2'.
1099         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1100         `chinese-cns11643-2'.
1101         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1102         `=cns11643-2'.
1103
1104 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1105
1106         * mule-charset.c (Qmap_cns11643_1): Renamed from
1107         `Qchinese_cns11643_1'.
1108         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1109         `chinese-cns11643-1'.
1110         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1111         `=cns11643-1'.
1112
1113 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1114
1115         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1116         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1117         `chinese-gb12345'.
1118         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1119         `=gb12345'.
1120
1121 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1122
1123         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1124         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1125         `chinese-gb2312'.
1126         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1127         `=gb2312'.
1128
1129 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1130
1131         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1132         (syms_of_mule_charset): Add new symbol `=big5' instead of
1133         `chinese-big5'.
1134         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1135
1136 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1137
1138         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1139         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1140         `korean-ksc5601'.
1141         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1142         `=ks-x1001'.
1143
1144 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1145
1146         * mule-charset.c (Qmap_jis_x0212): Renamed from
1147         `Qjapanese_jisx0212'.
1148         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1149         `japanese-jisx0212'.
1150         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1151         `=jis-x0212'.
1152
1153 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1154
1155         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1156         `Qjapanese_jisx0208'.
1157         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1158         of `japanese-jisx0208'.
1159         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1160         `=jis-x0208-1983'.
1161
1162 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1163
1164         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1165         `Qjapanese_jisx0208_1978'.
1166         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1167         of `japanese-jisx0208-1978'.
1168         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1169         `=jis-x0208-1978'.
1170
1171 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1172
1173         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1174         only for XEmacs CHISE.
1175
1176 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1177
1178         * char-ucs.h: Compact non-ISO-IR charset-ids.
1179         (LEADING_BYTE_UCS): Changed to -177.
1180         (LEADING_BYTE_CONTROL_1): Changed to -77.
1181         (LEADING_BYTE_UCS_BMP): Changed to -176.
1182         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1183
1184 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1185
1186         * mule-charset.c (Qiso_ir): New variable.
1187         (Fmake_charset): Recognise new property `iso-ir'.
1188         (syms_of_mule_charset): Add new symbol `iso-ir'.
1189
1190 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1191
1192         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1193         n to -n; charset-id of non ISO-IR sets are changed to positive
1194         numbers.
1195
1196 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1197
1198         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1199         for &MCS-XXXXXXXX; values.
1200
1201 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1202
1203         * mule.c (Vxemacs_chise_version): Renamed from
1204         `Vutf_2000_version'.
1205         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1206         `utf-2000-version' as an alias for `xemacs-chise-version'.
1207
1208 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1209
1210         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1211         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1212         defined.
1213
1214         * config.h.in (CHISE): New macro.
1215
1216 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1217
1218         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1219         of `ucs'.
1220         (Qmap_ucs): New variable.
1221         (syms_of_mule_charset): Add new symbol `=ucs'.
1222         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1223
1224         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1225         (simplify_char_spec): Likewise.
1226
1227         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1228
1229         * char-ucs.h (Qmap_ucs): New extern variable.
1230
1231 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1232
1233         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1234         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1235         don't define it when UTF2000 is not defined.
1236         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1237         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1238         when UTF2000 is not defined.
1239         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1240         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1241
1242 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1243
1244         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1245
1246         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1247         (Qucs_gb): Deleted.
1248         (syms_of_mule_charset): Delete `ucs-gb'.
1249         (complex_vars_of_mule_charset): Likewise.
1250
1251 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1252
1253         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1254
1255         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1256         (Qucs_cns): Deleted.
1257         (syms_of_mule_charset): Delete `ucs-cns'.
1258         (complex_vars_of_mule_charset): Likewise.
1259
1260 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1261
1262         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1263
1264         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1265         (Qucs_jis): Deleted.
1266         (syms_of_mule_charset): Delete `ucs-jis'.
1267         (complex_vars_of_mule_charset): Likewise.
1268
1269 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1270
1271         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1272
1273         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1274         (Qucs_ks): Deleted.
1275         (syms_of_mule_charset): Delete `ucs-ks'.
1276         (complex_vars_of_mule_charset): Likewise.
1277
1278 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1279
1280         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1281         (Qideograph_daikanwa_2): Deleted.
1282         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1283         (complex_vars_of_mule_charset): Likewise.
1284
1285         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1286         (LEADING_BYTE_DAIKANWA_1): Deleted.
1287         (LEADING_BYTE_DAIKANWA_2): Deleted.
1288         (MIN_CHAR_DAIKANWA): Deleted.
1289         (MAX_CHAR_DAIKANWA): Deleted.
1290
1291 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1292
1293         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1294         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1295         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1296
1297         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1298         (Vcharset_ideograph_daikanwa): Deleted.
1299         (Qideograph_hanziku_{1..12}): Deleted.
1300         (Qideograph_daikanwa): Deleted.
1301         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1302         Vcharset_ideograph_daikanwa.
1303         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1304         `ideograph-hanziku-{1..12}'.
1305         (complex_vars_of_mule_charset): Likewise.
1306
1307 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1308
1309         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1310
1311         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1312         (Qideograph_gt_pj_{1..11}): Deleted.
1313         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1314         (complex_vars_of_mule_charset): Likewise.
1315
1316 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1317
1318         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1319         (Vcharset_ideograph_gt): Deleted.
1320         (Qucs_big5): Deleted.
1321         (Qideograph_gt): Deleted.
1322         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1323         `ideograph-gt'.
1324         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1325         and `ideograph-gt'.
1326
1327         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1328         (LEADING_BYTE_GT): Deleted.
1329         (MIN_CHAR_GT): Deleted.
1330         (MAX_CHAR_GT): Deleted.
1331
1332 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1333
1334         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1335
1336 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1337
1338         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1339         (save_uint16_byte_table): Likewise.
1340         (save_byte_table): Likewise; convert values by it.
1341         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1342         for `ideographic-structure'.
1343         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1344         as the filter for `ideographic-structure'.
1345
1346 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1347
1348         * chartab.c (put_char_composition): New function.
1349         (Fput_char_attribute): Use `put_char_composition'; use
1350         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1351
1352         * fns.c (simplify_char_spec): New function.
1353         (char_ref_simplify_spec): New function.
1354         (Fchar_refs_simplify_char_specs): New function.
1355         (syms_of_fns): Add new builtin function
1356         `char-refs-simplify-char-specs'.
1357
1358 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1359
1360         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1361         (Qideograph_cbeta): Deleted.
1362         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1363         (complex_vars_of_mule_charset): Likewise.
1364
1365         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1366         (MIN_CHAR_CBETA): Comment out.
1367         (MAX_CHAR_CBETA): Likewise.
1368
1369 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1370
1371         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1372         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1373         CHISE client feature.
1374
1375 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1376
1377         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1378
1379 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1380
1381         * mule-charset.c (charset_lookup_description_1): Use
1382         `NUM_LEADING_BYTES' in UTF-2000.
1383
1384 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1385
1386         * char-ucs.h (GC_CHARSETP): Deleted.
1387
1388 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1389
1390         * char-ucs.h (MAX_CHAR_GT): Updated.
1391
1392 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1393
1394         * text-coding.c: Sync with XEmacs 21.4.10.
1395
1396 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1397
1398         * mule-charset.c (Vcharset_china3_jef): Deleted.
1399         (Qchina3_jef): Deleted.
1400         (syms_of_mule_charset): Don't define `china3-jef'.
1401         (complex_vars_of_mule_charset): Likewise.
1402
1403         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1404         (MIN_CHAR_CHINA3_JEF): Comment out.
1405         (MAX_CHAR_CHINA3_JEF): Comment out.
1406
1407 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1408
1409         * mule-charset.c (Vcharset_ucs_gb): New variable.
1410         (Qucs_gb): New variable.
1411         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1412         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1413
1414         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1415
1416 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1417
1418         * mule-charset.c (charset_code_point): if a coded-charset has a
1419         final-byte, don't inherit the builtin range of the mother CCS.
1420
1421 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1422
1423         * mule-charset.c (charset_code_point): Fix problem about
1424         inheritance.
1425
1426 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1427
1428         * mule-charset.c (decode_builtin_char): Reorganized.
1429
1430 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1431
1432         * text-coding.c (char_encode_as_entity_reference): Modify for
1433         `charset_code_point'.
1434         (char_encode_shift_jis): Likewise.
1435         (char_encode_big5): Likewise.
1436         (char_encode_utf8): Likewise.
1437         (char_encode_iso2022): Likewise.
1438
1439         * mule-charset.c (charset_code_point): Add new argument
1440         `defined_only'.
1441         (Fencode_char): Add new optional argument `defined_only'.
1442
1443         * chartab.c (put_char_table): Modify for `charset_code_point'.
1444
1445         * char-ucs.h (charset_code_point): Add new argument
1446         `defined_only'.
1447         (encode_char_1): Modify for `charset_code_point'.
1448
1449 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1450
1451         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1452         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1453
1454 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1455
1456         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1457         (Qjis_x0208): Likewise.
1458         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1459         XCHARSET_FINAL(charset).
1460         (charset_code_point): Modify condition for final-byte based
1461         builtin-chars.
1462         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1463         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1464         in UTF-2000; specify `=jis-x0208' as the mother of
1465         `japanese-jisx0208-1978', `japanese-jisx0208' and
1466         `japanese-jisx0208-1990' in UTF-2000.
1467
1468 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1469
1470         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1471
1472 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1473
1474         * text-coding.c (decode_coding_utf16): Support UTF-16.
1475         (char_encode_utf16): Fixed.
1476
1477 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1478
1479         * text-coding.c (Qutf16): New variable in MULE.
1480         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1481         (Fcoding_system_type): Add `utf-16' in MULE.
1482         (struct detection_state): Add a structure for utf16 in MULE.
1483         (detect_coding_type): Setup st->utf16.mask in MULE.
1484         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1485         MULE.
1486         (reset_encoding_stream): Use `char_encode_utf16' and
1487         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1488         (detect_coding_utf16): New function [incomplete].
1489         (decode_coding_utf16): New function [support only UCS-2].
1490         (char_encode_utf16): New function.
1491         (char_finish_utf16): New function.
1492         (syms_of_file_coding): Add new symbol `utf-16'; setup
1493         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1494
1495         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1496         UTF-2000.
1497         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1498         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1499
1500 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1501
1502         * chartab.c (put_char_table): When a charset is specified as a
1503         range in UTF-2000, don't support builtin characters.
1504
1505 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1506
1507         * mule-charset.c (decode_defined_char): Don't refer external
1508         database if Qunbound or Qnil are found.
1509         (Fsave_charset_mapping_table): Don't define it if
1510         HAVE_CHISE_CLIENT is not defined.
1511         (Freset_charset_mapping_table): New function.
1512         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1513         found in external database.
1514         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1515         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1516         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1517
1518 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1519
1520         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1521         not.
1522
1523 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1524
1525         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1526         Q_lowercase, Q_uppercase in UTF-2000.
1527
1528         * chartab.c (get_char_table): Add special code for the standard
1529         case table to use character attribute `->downcase' and
1530         `->uppercase' for case operations in UTF-2000.
1531
1532         * casetab.c (Qflippedcase): New variable in UTF-2000.
1533         (Q_lowercase): Likewise.
1534         (Q_uppercase): Likewise.
1535         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1536         and `->uppercase' in UTF-2000.
1537         (complex_vars_of_casetab): Assign attribute name `downcase' to
1538         downcase and CANON table of Vstandard_case_table in UTF-2000;
1539         assign attribute name `flippedcase' to upcase and EQV table of
1540         Vstandard_case_table in UTF-2000.
1541
1542 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1543
1544         * text-coding.c (decode_add_er_char): Support isolated-chars.
1545         (char_encode_as_entity_reference): Likewise.
1546
1547 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1548
1549         * emacs.c (Vutf_2000_lisp_directory): New variable.
1550         (Vconfigure_utf_2000_lisp_directory): Likewise.
1551         (complex_vars_of_emacs): Add new variable
1552         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1553
1554 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1555
1556         * char-ucs.h (DECODE_CHAR): Delete special code for
1557         `chinese-big5-1' and `chinese-big5-2'.
1558
1559         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1560         (Qbig5_2): Likewise.
1561         (decode_defined_char): Support CONVERSION_BIG5_1 and
1562         CONVERSION_BIG5_2.
1563         (decode_builtin_char): Likewise.
1564         (charset_code_point): Likewise.
1565         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1566         'conversion in UTF-2000.
1567         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1568         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1569         `chinese-big5-2' as children of `chinese-big5'.
1570
1571         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1572         (CONVERSION_BIG5_2): New macro.
1573
1574 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1575
1576         * text-coding.c (char_encode_big5): Support entity-reference.
1577
1578 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1579
1580         * text-coding.c (char_encode_as_entity_reference): New function.
1581         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1582
1583 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1584
1585         * text-coding.c (decode_coding_big5): Support entity-reference
1586         decoding feature.
1587
1588 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1589
1590         * text-coding.c (allocate_coding_system): Initialize initial
1591         charsets for CODESYS_UTF8.
1592         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1593         charset-g2 for CODESYS_UTF8.
1594         (decode_coding_utf8): Use charset-g0.
1595         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1596         to force variants to map to UCS.
1597
1598 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1599
1600         * text-coding.c (Qutf_8_mcs): New variable.
1601         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1602         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1603         instead of `utf-8' in UTF-2000.
1604
1605 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1606
1607         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1608         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1609         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1610         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1611         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1612         CONVERSION_96x96x96x96 are introduced.
1613         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1614         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1615         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1616
1617         * char-ucs.h (CONVERSION_94): New macro.
1618         (CONVERSION_96): New macro.
1619         (CONVERSION_94x94): New macro.
1620         (CONVERSION_96x96): New macro.
1621         (CONVERSION_94x94x94): New macro.
1622         (CONVERSION_96x96x96): New macro.
1623         (CONVERSION_94x94x94x60): New macro.
1624         (CONVERSION_94x94x94x94): New macro.
1625         (CONVERSION_96x96x96x96): New macro.
1626
1627 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1628
1629         * chartab.c (Vcharacter_variant_table): Deleted.
1630         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1631         of `Vcharacter_variant_table'.
1632         (Fput_char_attribute): Likewise.
1633         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1634         (complex_vars_of_chartab): Likewise.
1635
1636 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1637
1638         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1639
1640         * fns.c (Qideographic_structure): New variable.
1641         (Qkeyword_char): New variable.
1642         (ids_format_unit): New function.
1643         (Fideographic_structure_to_ids): New function.
1644         (syms_of_fns): Add new symbols `ideographic-structure' and
1645         `:char'; add new builtin function `ideographic-structure-to-ids'.
1646
1647         * data.c (Fchar_ref_p): New function.
1648         (syms_of_data): Add new builtin function `char-ref-p'.
1649
1650         * chartab.h: Add an EXFUN for `Ffind_char'.
1651
1652 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1653
1654         * text-coding.c (Vcharacter_composition_table): Deleted.
1655         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1656         in every UTF-2000.
1657
1658         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1659         UTF-2000.
1660         (Vcharacter_composition_table): Deleted.
1661         (Fget_composite_char): Use the implementation for external-DB
1662         support in every UTF-2000.
1663         (Fput_char_attribute): Likewise.
1664         (char_attribute_system_db_file): Don't define if external-DB
1665         feature is not available.
1666         (Fsave_char_attribute_table): Likewise.
1667         (Fmount_char_attribute_table): Likewise.
1668         (Fclose_char_attribute_table): Likewise.
1669         (Freset_char_attribute_table): Likewise.
1670         (Fload_char_attribute_table): Likewise.
1671         (syms_of_chartab): Don't define `save-char-attribute-table',
1672         `mount-char-attribute-table', `reset-char-attribute-table',
1673         `close-char-attribute-table' and `load-char-attribute-table' if
1674         external-DB feature is not available.
1675         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1676
1677 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1678
1679         * text-coding.c (Qcomposition): Add extern if external-DB feature
1680         is supported.
1681         (Vcharacter_composition_table): Don't add extern if external-DB
1682         feature is supported.
1683         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1684         character composition rule if external-DB feature is supported.
1685
1686         * chartab.c (Vcharacter_composition_table): Don't define if
1687         external-DB feature is supported.
1688         (Qcomposition): New variable.
1689         (Fget_composite_char): New implementation for external-DB support.
1690         (Fput_char_attribute): Use `composition' property of each
1691         character instead of `Vcharacter_composition_table' to store
1692         character-composition rules if external-DB feature is supported.
1693         (syms_of_chartab): Add new symbol `composition'.
1694         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1695         external-DB feature is supported.
1696
1697 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1698
1699         * chartab.c (Vchar_db_stingy_mode): New variable.
1700         (load_char_attribute_maybe): Close database if
1701         Vchar_db_stingy_mode is not NIL.
1702         (Fload_char_attribute_table_map_function): Use
1703         `get_char_id_table_0' instead of `get_char_id_table'.
1704         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1705
1706         * chartab.h (get_char_id_table_0): New inline function.
1707         (get_char_id_table): Use `get_char_id_table_0'.
1708
1709 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1710
1711         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1712         and `COMPOSE_ADD_CHAR'.
1713         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1714
1715 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1716
1717         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1718         instead of `DECODE_ADD_UCS_CHAR'.
1719         (COMPOSE_ADD_CHAR): Likewise.
1720
1721 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1722
1723         * text-coding.c (decode_flush_er_chars): New inline function.
1724         (decode_add_er_char): New function.
1725         (decode_coding_utf8): Use `decode_flush_er_chars' and
1726         `decode_add_er_char'.
1727
1728 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1729
1730         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1731         done before `decode_output_utf8_partial_char'.
1732
1733         * mule-charset.c (complex_vars_of_mule_charset): Specify
1734         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1735         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1736
1737 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1738
1739         * mule-charset.c (decode_defined_char): New function; search
1740         mother.
1741         (decode_builtin_char): Don't search mother if
1742         XCHARSET_MAX_CODE(charset) == 0.
1743         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1744         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1745         (Fdecode_char): Use `decode_defined_char' instead of
1746         `DECODE_DEFINED_CHAR'.
1747         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1748         mother of `Vcharset_ucs_jis'.
1749
1750         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1751         instead of `DECODE_DEFINED_CHAR'.
1752
1753         * char-ucs.h (decode_defined_char): Renamed from
1754         `DECODE_DEFINED_CHAR'; changed to normal function.
1755         (DECODE_CHAR): Use `decode_defined_char' instead of
1756         `DECODE_DEFINED_CHAR'.
1757
1758         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1759
1760 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1761
1762         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1763
1764         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1765         variable.
1766         (Quse_entity_reference): New variable.
1767         (Qd): New variable.
1768         (Qx): New variable.
1769         (QX): New variable.
1770         (coding_system_description): Add description for
1771         `ccs_priority_list'.
1772         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1773         (allocate_coding_system): Initialize `ccs_priority_list' in
1774         UTF-2000.
1775         (Fmake_coding_system): Add description about
1776         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1777         (codesys).
1778         (Fcoding_system_property): Accept `disable-composition' and
1779         `use-entity-reference' in UTF-2000.
1780         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1781         in UTF-2000.
1782         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1783         (decode_coding_utf8): Decode entity-reference if
1784         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1785         (char_encode_utf8): Encode non-Unicode characters as
1786         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1787         (str->codesys).
1788         (syms_of_file_coding): Add new symbols `use-entity-reference',
1789         `d', `x', `X'.
1790         (vars_of_file_coding): Add new variable
1791         `coded-charset-entity-reference-alist'.
1792         (complex_vars_of_file_coding): Declare `disable-composition' and
1793         `use-entity-reference' to be coding-system-properties in UTF-2000.
1794
1795         * file-coding.h (struct Lisp_Coding_System): Add new member
1796         `use_entity_reference' and `ccs_priority_list'.
1797         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1798         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1799         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1800
1801 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1802
1803         * chartab.c (save_uint8_byte_table): Don't clear the table.
1804         (save_uint16_byte_table): Likewise.
1805         (save_byte_table): Likewise.
1806         (Fmount_char_attribute_table): New function.
1807         (syms_of_chartab): Add new builtin function
1808         `mount-char-attribute-table'.
1809
1810 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1811
1812         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1813         "w+" mode.
1814         (load_char_decoding_entry_maybe): Open database as read-only mode.
1815
1816         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1817         open database as "w+" mode.
1818         (load_char_attribute_maybe): Open database as read-only mode.
1819         (Fload_char_attribute_table): Likewise.
1820
1821 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1822
1823         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1824         (char_table_description): Delete member `db_file'.
1825         (Fmake_char_table): Don't refer `ct->db_file'.
1826         (Fcopy_char_table): Likewise.
1827         (Fsave_char_attribute_table): Likewise.
1828         (Fclose_char_attribute_table): Likewise.
1829         (Freset_char_attribute_table): Likewise.
1830         (load_char_attribute_maybe): Likewise.
1831         (Fload_char_attribute_table): Likewise.
1832
1833         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1834
1835 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1836
1837         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1838         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1839         `ct->db' is living.
1840         (load_char_attribute_maybe): Likewise.
1841         (Fload_char_attribute_table): Likewise.
1842
1843 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1844
1845         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1846         `ct->db_file' unconditionally.
1847
1848 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1849
1850         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1851         UTF-2000.
1852         (char_table_description): Add description for `db_file' and `db'
1853         in UTF-2000.
1854         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1855         UTF-2000.
1856         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1857         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1858         (Fclose_char_attribute_table): New function.
1859         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1860         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1861         and `cit->db'.
1862         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1863         (syms_of_chartab): Add new builtin function
1864         `Fclose_char_attribute_table'.
1865
1866 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1867
1868         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1869         `db' in UTF-2000.
1870         (load_char_attribute_maybe): Change interface.
1871         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1872
1873 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1874
1875         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1876
1877 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1878
1879         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1880         instead of `DECODE_CHAR' for mother; don't use special code for
1881         chinese-big5 to use code space of chinese-big5-1 and
1882         chinese-big5-2.
1883         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1884         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1885
1886         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1887         (MAX_CHAR_BIG5_CDP): Revival.
1888
1889 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1890
1891         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1892         the XLFD registry-encoding name of `chinese-big5'.
1893
1894 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1895
1896         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1897         (Qchinese_big5_cdp): Deleted.
1898         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1899         (complex_vars_of_mule_charset): Delete coded-charset
1900         `chinese-big5-cdp'.
1901
1902         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1903         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1904         `CHARSET_ID_OFFSET - n' for private CCS.
1905         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1906         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1907         of `MIN_LEADING_BYTE'.
1908         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1909         `(CHARSET_ID_OFFSET - 97)'.
1910         (MIN_CHAR_BIG5_CDP): Deleted.
1911         (MAX_CHAR_BIG5_CDP): Deleted.
1912
1913 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1914
1915         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1916
1917 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1918
1919         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1920         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1921         chartab.c].
1922
1923         * chartab.c (Vutf_2000_version): Moved to mule.c.
1924         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1925
1926 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1927
1928         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1929         when HAVE_CHISE_CLIENT is not defined.
1930
1931         * mule.c (vars_of_mule): Provide feature `chise' when
1932         HAVE_CHISE_CLIENT is defined.
1933
1934 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1935
1936         * config.h.in (UTF2000): Add comment.
1937         (HAVE_CHISE_CLIENT): New macro.
1938
1939 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1940
1941         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1942         CONSP.
1943         (Fput_char_attribute): Likewise.
1944         (char_attribute_system_db_file): Encode file-name of attribute.
1945         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1946         the initial value.
1947
1948 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1949
1950         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1951         (Fsave_charset_mapping_table): Use
1952         `char_attribute_system_db_file'.
1953         (load_char_decoding_entry_maybe): Likewise.
1954
1955         * chartab.h (Qsystem_char_id): New external variable.
1956         (char_attribute_system_db_file): New prototype.
1957
1958         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1959         (char_attribute_system_db_file): New function.
1960         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1961         (Freset_char_attribute_table): Likewise.
1962         (load_char_attribute_maybe): Likewise.
1963         (Fload_char_attribute_table): Likewise.
1964         (syms_of_chartab): Add new symbol `system-char-id'.
1965
1966 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1967
1968         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1969         `XCHARSET_GRAPHIC(ccs)'.
1970
1971 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1972
1973         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1974
1975 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1976
1977         * chartab.c (Q_ucs_variants): New variable.
1978         (syms_of_chartab): Add new symbol `->ucs-variants'.
1979         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1980         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1981         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1982
1983         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1984
1985         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1986         `HAVE_DATABASE' is defined.
1987         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1988         `HAVE_DATABASE' is defined.
1989
1990 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1991
1992         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1993         attribute-table.
1994         (Freset_char_attribute_table): New function.
1995         (syms_of_chartab): Add new builtin function
1996         `reset-char-attribute-table'.
1997
1998 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1999
2000         * chartab.c (load_char_attribute_maybe): Don't make directories.
2001
2002 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2003
2004         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2005
2006         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2007         for decoding-table.
2008
2009 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2010
2011         * mule-charset.c (Fsave_charset_mapping_table): Use
2012         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2013
2014         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2015         instead of `XCHARSET_CHARS'.
2016
2017 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2018
2019         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2020         (XCHARSET_BYTE_SIZE): Likewise.
2021
2022         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2023         mule-charset.c].
2024         (XCHARSET_BYTE_SIZE): Likewise.
2025
2026 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2027
2028         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2029         data-directory to store database.
2030         (Fsave_char_attribute_table): Likewise.
2031         (load_char_attribute_maybe): Likewise.
2032         (Fload_char_attribute_table): Likewise.
2033
2034 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2035
2036         * mule-charset.c (Fsave_charset_mapping_table): New function.
2037         (syms_of_mule_charset): Add new builtin function
2038         `save-charset-mapping-table'.
2039
2040 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2041
2042         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2043         (get_ccs_octet_table): New inline function.
2044         (put_ccs_octet_table): Likewise.
2045         (decoding_table_put_char): Use `get_ccs_octet_table' and
2046         `put_ccs_octet_table'.
2047         (decoding_table_remove_char): Use `decoding_table_put_char'.
2048         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2049
2050         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2051         into encoding_table.
2052         (make_charset): Use Qunbound instead Qnil as initial value of
2053         decoding_table.
2054
2055 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2056
2057         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2058         element is Qunloaded.
2059         (map_over_uint16_byte_table): Likewise.
2060         (map_over_byte_table): Likewise.
2061         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2062         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2063         database support, load encoding-table of the specified
2064         coded-charset if it is not loaded yet.
2065         (save_uint8_byte_table): New function of UTF-2000 with external
2066         database support.
2067         (save_uint16_byte_table): Likewise.
2068         (save_byte_table): Likewise.
2069         (Fput_char_attribute): Don't store value into external database
2070         even if the external database feature is supported in UTF-2000;
2071         set `attribute' as name of char-table if the external database
2072         feature is supported.
2073         (Fsave_char_attribute_table): New function in UTF-2000.
2074         (syms_of_chartab): Add new builtin function
2075         `save-char-attribute-table' in UTF-2000.
2076
2077 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2078
2079         * chartab.c (char_attribute_table_to_put): New variable in
2080         UTF-2000.
2081         (Qput_char_table_map_function): Likewise.
2082         (value_to_put): Likewise.
2083         (Fput_char_table_map_function): New function in UTF-2000.
2084         (put_char_table): Use `Fmap_char_attribute' for
2085         CHARTAB_RANGE_CHARSET in UTF-2000.
2086         (Fput_char_attribute): Store symbol instead of string in
2087         `XCHAR_TABLE_NAME (table)'.
2088         (load_char_attribute_maybe): Likewise.
2089         (syms_of_chartab): Add new symbol/function
2090         `put-char-table-map-function'.
2091
2092 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2093
2094         * database.h: Add new EXFUN for `Fmap_database'.
2095
2096         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2097         (syms_of_database): Likewise.
2098
2099         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2100         UTF-2000.
2101         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2102         (XCHAR_TABLE_UNLOADED): Likewise.
2103
2104         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2105         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2106         HAVE_DATABASE is defined.
2107         (char_attribute_table_to_load): New variable of UTF-2000 with
2108         external database support.
2109         (Qload_char_attribute_table_map_function): Likewise.
2110         (Fload_char_attribute_table_map_function): New function of
2111         UTF-2000 with external database support.
2112         (Fload_char_attribute_table): New function of UTF-2000.
2113         (Fmap_char_attribute): Call Fload_char_attribute_table if
2114         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2115         (syms_of_chartab): Add new symbol and function
2116         `load-char-attribute-table-map-function' in UTF-2000 with external
2117         database support; add new function `load-char-attribute-table' in
2118         UTF-2000.
2119
2120 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2121
2122         * chartab.h (load_char_attribute_maybe): New prototype for
2123         UTF-2000 with DATABASE support.
2124         (get_char_id_table): Use `load_char_attribute_maybe' if
2125         HAVE_DATABASE is defined.
2126
2127         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2128         with DATABASE support.
2129
2130 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2131
2132         * chartab.c (Fput_char_attribute): Use S-expression as key of
2133         external database.
2134
2135         * chartab.h (get_char_id_table): Use S-expression as key of
2136         external database.
2137
2138 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2139
2140         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2141         if an element is not loaded, load the corresponding attributes
2142         from an external database.
2143         (map_over_uint16_byte_table): Likewise.
2144         (map_over_byte_table): Likewise.
2145         (map_char_table): Modify for `map_over_uint8_byte_table',
2146         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2147         element is not loaded, load the corresponding attributes from an
2148         external database.
2149         (Fput_char_attribute): Change initial values to Qunloaded.
2150
2151         * chartab.h (get_char_id_table): If a character attribute is not
2152         loaded and the attribute value is not found in an external
2153         database, store Qunbound as the attribute value.
2154
2155 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2156
2157         * chartab.c (BT_UINT8_unloaded): New macro.
2158         (UINT8_VALUE_P): Accept Qunloaded.
2159         (UINT8_ENCODE): Likewise.
2160         (UINT8_DECODE): Likewise.
2161         (BT_UINT16_unloaded): New macro.
2162         (UINT16_VALUE_P): Accept Qunloaded.
2163         (UINT16_ENCODE): Likewise.
2164         (UINT16_DECODE): Likewise.
2165         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2166         BT_UINT16_unloaded.
2167         (mark_char_table): Mark `ct->name' in UTF-2000.
2168         (char_table_description): Add `name' in UTF-2000.
2169         (Fmake_char_table): Initialize `ct->name'.
2170         (Fcopy_char_table): Copy `ct->name'.
2171         (Fput_char_attribute): Store value into an external database if
2172         HAVE_DATABASE is defined.
2173
2174         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2175         UTF-2000.
2176         (CHAR_TABLE_NAME): New macro in UTF-2000.
2177         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2178         (get_char_id_table): Try to read an external database if Qunloaded
2179         is stored in a table.
2180
2181         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2182         Qunloaded.
2183
2184 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2185
2186         * database.h: Add EXFUN definitions for Fopen_database,
2187         Fput_database, Fget_database and Fclose_database.
2188
2189         * data.c (Qunloaded): New variable in UTF-2000.
2190
2191         * lisp.h (Qunloaded): New variable in UTF-2000.
2192
2193 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2194
2195         * mule-charset.c (put_char_ccs_code_point): Modify for
2196         `decoding_table_remove_char' and `decoding_table_put_char'.
2197         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2198
2199         * char-ucs.h (decoding_table_remove_char): Change arguments to
2200         hide decoding_table vector.
2201         (decoding_table_put_char): Likewise.
2202
2203 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2204
2205         * mule-charset.c (decoding_table_remove_char): Moved to
2206         char-ucs.h.
2207         (decoding_table_put_char): Likewise.
2208
2209         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2210         from mule-charset.c].
2211         (decoding_table_remove_char): New inline function [moved from
2212         mule-charset.c].
2213         (decoding_table_put_char): Likewise.
2214
2215 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2216
2217         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2218         extension.
2219
2220 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2221
2222         * mule-charset.c (decode_builtin_char): Support mother charsets.
2223
2224 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2225
2226         * mule-charset.c (Q94x94x60): New variable.
2227         (charset_code_point): Support conversion `94x94x60'.
2228         (Fmake_charset): Likewise.
2229         (syms_of_mule_charset): Add new symbol `94x94x60'.
2230
2231         * char-ucs.h (CONVERSION_94x94x60): New macro.
2232
2233 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2234
2235         * mule-charset.c (charset_code_point): Unify code about
2236         `code-offset'.
2237
2238 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2239
2240         * mule-charset.c (charset_code_point): Merge code about builtin
2241         characters into code about mother charsets; don't use
2242         `range_charset_code_point'.
2243         (range_charset_code_point): Deleted.
2244
2245 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2246
2247         * mule-charset.c (Qcode_offset): New variable.
2248         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2249         `max-code'; accept new property `code-offset'.
2250         (syms_of_mule_charset): Add new symbol `code-offset'.
2251
2252 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2253
2254         * mule-charset.c (range_charset_code_point): Fixed.
2255
2256 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2257
2258         * mule-charset.c (decode_builtin_char): Change semantics of
2259         code-offset of coded-charset.
2260         (charset_code_point): Likewise.
2261         (range_charset_code_point): Likewise.
2262         (complex_vars_of_mule_charset): Modify for the change.
2263
2264 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2265
2266         * mule-charset.c (Fencode_char): Reverse arguments.
2267
2268         * mule-charset.c (charset_code_point): Fixed.
2269
2270 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2271
2272         * mule-charset.c (Vcharset_mojikyo): Deleted.
2273         (Vcharset_mojikyo_2022_1): Deleted.
2274         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2275         (Qmin_code): New variable in UTF-2000.
2276         (Qmax_code): Likewise.
2277         (Qmother): Likewise.
2278         (Qconversion): Likewise.
2279         (Q94x60): Likewise.
2280         (Qmojikyo): Deleted.
2281         (Qmojikyo_2022_1): Deleted.
2282         (Qmojikyo_pj_{1..22}): Deleted.
2283         (mark_charset): Mark `cs->mother'.
2284         (charset_description): Add description for `mother'.
2285         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2286         new arguments `mother' and `conversion'; use
2287         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2288         (charset_code_point): Moved from char-ucs.h; support `mother'
2289         charset feature.
2290         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2291         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2292         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2293         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2294         allow 2 as the value of `graphic' in UTF-2000; add new properties
2295         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2296         require `final' in UTF-2000; modify for `make_charset'.
2297         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2298         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2299         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2300         (Fencode_char): New function.
2301         (syms_of_mule_charset): Add new builtin function `encode-char' in
2302         UTF-2000; add new symbols `min-code', `max-code', `mother',
2303         `conversion' and `94x60'; delete symbols `mojikyo',
2304         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2305         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2306         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2307         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2308
2309         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2310         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2311
2312         * char-ucs.h (Vcharset_mojikyo): Deleted.
2313         (Vcharset_mojikyo_2022_1): Deleted.
2314         (LEADING_BYTE_MOJIKYO): Deleted.
2315         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2316         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2317         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2318         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2319         add new member `mother'; add new member `conversion'.
2320         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2321         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2322         (CHARSET_MOTHER): New macro.
2323         (CHARSET_CONVERSION): New macro.
2324         (CONVERSION_IDENTICAL): New macro.
2325         (CONVERSION_94x60): New macro.
2326         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2327         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2328         (XCHARSET_MOTHER): New macro.
2329         (XCHARSET_CONVERSION): New macro.
2330         (MIN_CHAR_MOJIKYO): Deleted.
2331         (MAX_CHAR_MOJIKYO): Deleted.
2332         (DECODE_MOJIKYO_2022): Deleted.
2333         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2334         (charset_code_point): Changed to non-inline function.
2335         (encode_char_1): Use `charset_code_point'.
2336         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2337
2338 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2339
2340         * lread.c (read_compiled_function): Fix prototype.
2341         (read_vector): Likewise.
2342
2343 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2344
2345         * lrecord.h (struct lrecord_header): Delete `older'.
2346         (set_lheader_implementation): Delete code for `older'.
2347         (set_lheader_older_implementation): Deleted.
2348         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2349         (OLDER_RECORD_P): Deleted.
2350         (OLDER_RECORD_HEADER_P): Deleted.
2351         (alloc_older_lcrecord): Deleted.
2352         (alloc_older_lcrecord_type): Deleted.
2353
2354         * alloc.c (all_older_lcrecords): Deleted.
2355         (alloc_older_lcrecord): Deleted.
2356         (disksave_object_finalization_1): Delete code for older objects.
2357         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2358         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2359
2360 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2361
2362         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2363         instead of `make_older_vector'.
2364         (put_char_ccs_code_point): Likewise.
2365         (mark_charset): Mark `cs->decoding_table'.
2366         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2367
2368         * lisp.h (make_older_vector): Deleted.
2369         (make_vector_newer): Deleted.
2370
2371         * config.h.in (HAVE_GGC): Deleted.
2372
2373         * alloc.c (make_older_vector): Deleted.
2374         (make_vector_newer_1): Deleted.
2375         (make_vector_newer): Deleted.
2376
2377 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2378
2379         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2380         (Qideograph_daikanwa_2): New variable.
2381         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2382         (complex_vars_of_mule_charset): Add new coded-charset
2383         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2384         `LEADING_BYTE_DAIKANWA'.
2385
2386         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2387         (LEADING_BYTE_DAIKANWA_1): New macro.
2388         (LEADING_BYTE_DAIKANWA_2): New macro.
2389         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2390
2391 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2392
2393         * mule-charset.c (complex_vars_of_mule_charset): Change
2394         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2395         the second revised version.
2396
2397 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2398
2399         * mule-charset.c (Vcharset_ucs_smp): New variable.
2400         (Vcharset_ucs_sip): New variable.
2401         (Qucs_smp): New variable.
2402         (Qucs_sip): New variable.
2403         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2404         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2405         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2406         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2407         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2408         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2409
2410         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2411         (LEADING_BYTE_UCS_SIP): New macro.
2412         (MIN_CHAR_SMP): New macro.
2413         (MAX_CHAR_SMP): New macro.
2414         (MIN_CHAR_SIP): New macro.
2415         (MAX_CHAR_SIP): New macro.
2416
2417 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2418
2419         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2420         utf-2000.
2421
2422 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2423
2424         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2425         value; don't store value into `encoding_table' of `Lisp_Charset'.
2426         (mark_charset): `encoding_table' was deleted.
2427         (charset_description): Likewise.
2428         (make_charset): Likewise.
2429         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2430         `put_char_ccs_code_point'.
2431
2432         * chartab.h (Fput_char_attribute): New EXFUN.
2433
2434         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2435         is unified with normal symbol space.
2436         (Fget_char_attribute): Likewise.
2437         (Fput_char_attribute): Likewise; behavior of
2438         `put_char_ccs_code_point' is changed.
2439
2440         * char-ucs.h: Include "elhash.h".
2441         (Vchar_attribute_hash_table): New external variable.
2442         (struct Lisp_Charset): Delete `encoding_table'.
2443         (CHARSET_ENCODING_TABLE): New implementation; refer
2444         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2445         `Lisp_Charset'.
2446
2447 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2448
2449         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2450         (cs) == 0.
2451
2452 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2453
2454         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2455         `chinese-big5'.
2456
2457 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2458
2459         * chartab.c (uint8_byte_table_description): New constant.
2460         (uint8-byte-table): Use `uint8_byte_table_description'.
2461         (uint16_byte_table_description): New constant.
2462         (uint16-byte-table): Use `uint16_byte_table_description'.
2463
2464 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2465
2466         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2467         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2468
2469 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2470
2471         * mule-charset.c (Vcharset_ucs_ks): New variable.
2472         (Qucs_ks): New variable.
2473         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2474         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2475
2476         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2477
2478 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2479
2480         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2481         (Fdecode_char): Likewise.
2482
2483         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2484         chartab.h.
2485         (Fdefine_char): Modify for Fdecode_char.
2486         (Ffind_char): Likewise.
2487
2488         * mule-charset.c (Fdecode_char): Add new optional argument
2489         `defined-only'.
2490         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2491
2492 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2493
2494         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2495         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2496         (allocate_coding_system): Initialize initial-charsets of
2497         CODESYS_BIG5 in XEmacs UTF-2000.
2498         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2499         CODESYS_BIG5 in XEmacs UTF-2000.
2500         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2501         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2502
2503         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2504         variables.
2505         (Qideograph_hanziku_{1 .. 12}): Likewise.
2506         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2507         .. 12}'.
2508         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2509         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2510         `ideograph-hanziku-{1 .. 12}'.
2511
2512         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2513         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2514         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2515         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2516         (DECODE_DEFINED_CHAR): New inline function.
2517         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2518
2519 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2520
2521         * mule-charset.c (Vcharset_china3_jef): Renamed from
2522         `Vcharset_japanese_jef_china3'.
2523         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2524         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2525         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2526         (syms_of_mule_charset): Rename `china3-jef' from
2527         `japanese-jef-china3'.
2528         (complex_vars_of_mule_charset): Likewise; rename
2529         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2530
2531         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2532         `LEADING_BYTE_JEF_CHINA3'.
2533         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2534         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2535
2536 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2537
2538         * mule-charset.c (encode_builtin_char_1): Comment out special code
2539         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2540
2541         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2542         (MAX_CHAR_MOJIKYO_0): Comment out.
2543         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2544         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2545         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2546         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2547
2548 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2549
2550         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2551         (Qideograph_cbeta): New variable.
2552         (encode_builtin_char_1): Comment out special code for
2553         coded-charset `mojikyo' and `japanese-jef-china3'.
2554         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2555         (complex_vars_of_mule_charset): Add new coded-charset
2556         `ideograph-cbeta'.
2557
2558         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2559         (MIN_CHAR_CBETA): New macro.
2560         (MAX_CHAR_CBETA): New macro.
2561
2562 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2563
2564         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2565         (LEADING_BYTE_JEF_CHINA3): New macro.
2566         (MIN_CHAR_JEF_CHINA3): New macro.
2567         (MAX_CHAR_JEF_CHINA3): Likewise.
2568         (DECODE_CHAR): Fixed.
2569
2570 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2571
2572         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2573         (Qjapanese_jef_china3): New variable.
2574         (encode_builtin_char_1): Support `japanese-jef-china3'.
2575         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2576         (complex_vars_of_mule_charset): Add new coded-charset
2577         `japanese-jef-china3'.
2578
2579 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2580
2581         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2582         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2583         94^4, 96^3, 96^4, 128^n and 256^n set.
2584         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2585         (map_char_table): Likewise.
2586
2587 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2588
2589         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2590         UTF-2000.
2591
2592 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2593
2594         * chartab.h (get_char_id_table): New inline function.
2595
2596         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2597         function.
2598
2599 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2600
2601         * chartab.h (decode_char_table_range): New prototype in XEmacs
2602         UTF-2000.
2603         (put_char_id_table): New inline function in XEmacs UTF-2000.
2604
2605         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2606         function.
2607         (decode_char_table_range): Delete static declaration in XEmacs
2608         UTF-2000.
2609
2610 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2611
2612         * chartab.c (put_char_id_table): Use `put_char_table'.
2613
2614 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2615
2616         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2617         (map_over_uint16_byte_table): Likewise.
2618         (map_over_byte_table): Likewise.
2619         (map_char_table): Modify for `map_over_uint8_byte_table',
2620         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2621         UTF-2000.
2622
2623 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2624
2625         * chartab.c (struct map_char_table_for_charset_arg): New
2626         structure.
2627         (map_char_table_for_charset_fun): New function.
2628         (map_char_table): Use `map_char_table' for encoding_table of
2629         `range->charset'.
2630
2631 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2632
2633         * chartab.c (map_char_table): Check a character is found in
2634         range->charset instead of non default value is defined in
2635         char-table when range is CHARTAB_RANGE_ROW.
2636
2637 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2638
2639         * chartab.c (map_char_id_table): Deleted.
2640         (Fmap_char_attribute): Use `map_char_table' instead of
2641         `map_char_id_table'.
2642
2643 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2644
2645         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2646         UTF-2000.
2647         (update_syntax_table): Deleted in XEmacs UTF-2000.
2648
2649         * syntax.c (find_defun_start): Use `syntax_table' instead of
2650         `mirror_syntax_table' in XEmacs UTF-2000.
2651         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2652         UTF-2000.
2653         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2654         XEmacs UTF-2000.
2655         (Fmatching_paren): Likewise.
2656         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2657         in XEmacs UTF-2000.
2658         (find_start_of_comment): Likewise.
2659         (find_end_of_comment): Likewise.
2660         (Fforward_comment): Likewise.
2661         (scan_lists): Likewise.
2662         (char_quoted): Likewise.
2663         (Fbackward_prefix_chars): Likewise.
2664         (scan_sexps_forward): Likewise.
2665         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2666         (update_syntax_table): Likewise.
2667
2668         * search.c (skip_chars): Use `syntax_table' instead of
2669         `mirror_syntax_table' in XEmacs UTF-2000.
2670         (wordify): Likewise.
2671         (Freplace_match): Likewise.
2672
2673         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2674         `mirror_syntax_table' in XEmacs UTF-2000.
2675         (WORDCHAR_P_UNSAFE): Likewise.
2676         (re_match_2_internal): Likewise.
2677
2678         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2679         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2680
2681         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2682         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2683
2684         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2685         XEmacs UTF-2000.
2686
2687         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2688         UTF-2000.
2689         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2690         (char_table_description): Delete `mirror_table' in XEmacs
2691         UTF-2000.
2692         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2693         UTF-2000.
2694         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2695         (Fcopy_char_table): Likewise.
2696         (put_char_table): Don't call `update_syntax_table' in XEmacs
2697         UTF-2000.
2698
2699         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2700         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2701         (casify_region_internal): Likewise.
2702
2703         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2704
2705         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2706         `mirror_syntax_table' in XEmacs UTF-2000.
2707
2708         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2709         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2710         (Fexpand_abbrev): Likewise.
2711
2712 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2713
2714         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2715
2716 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2717
2718         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2719         (map_over_uint16_byte_table): Likewise.
2720         (map_over_byte_table): Likewise.
2721         (get_char_id_table): Refer `cit->default_value'.
2722         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2723         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2724         of character-id ranges.
2725         (mark_char_table): Mark `ct->default_value'.
2726         (char_table_description): Add `default_value'.
2727         (fill_char_table): Use `default_value'.
2728         (decode_char_table_range): Decode `nil' as
2729         `CHARTAB_RANGE_DEFAULT'.
2730         (get_char_id_table): Refer `cit->default_value'.
2731         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2732         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2733         temporary hack; check value of char-table is bound or not.
2734         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2735
2736         * chartab.h (struct Lisp_Char_Table): Add new member
2737         `default_value' in XEmacs UTF-2000.
2738         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2739         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2740         UTF-2000.
2741
2742 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2743
2744         * chartab.h (Lisp_Char_ID_Table): Deleted.
2745
2746         * chartab.c (char_table_description): Fix typo.
2747         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2748         `Lisp_Char_ID_Table'.
2749
2750 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2751
2752         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2753         `CHAR_ID_TABLE_P'.
2754
2755         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2756         `CHAR_ID_TABLE_P'.
2757
2758         * chartab.h (XCHAR_ID_TABLE): Deleted.
2759         (XSETCHAR_ID_TABLE): Deleted.
2760         (CHAR_ID_TABLE_P): Deleted.
2761
2762         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2763         `CHAR_ID_TABLE_P'.
2764         (Fget_composite_char): Likewise.
2765         (put_char_table): Likewise.
2766         (add_char_attribute_alist_mapper): Fixed.
2767         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2768         `CHAR_ID_TABLE_P'.
2769         (Fget_char_attribute): Likewise.
2770         (Fget_char_attribute): Likewise.
2771         (Fmap_char_attribute): Likewise.
2772
2773         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2774         `CHAR_ID_TABLE_P'.
2775         (encode_char_1): Likewise.
2776
2777 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2778
2779         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2780         `XCHAR_ID_TABLE'.
2781
2782         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2783         instead of `XCHAR_ID_TABLE'.
2784         (remove_char_ccs): Likewise.
2785
2786         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2787         `XCHAR_ID_TABLE'.
2788         (Fget_composite_char): Likewise.
2789         (Fchar_variants): Likewise.
2790         (put_char_table): Likewise.
2791         (add_char_attribute_alist_mapper): Likewise.
2792         (Fchar_attribute_alist): Likewise.
2793         (Fget_char_attribute): Likewise.
2794         (Fput_char_attribute): Likewise.
2795         (Fmap_char_attribute): Likewise.
2796         (Fmap_char_attribute): Likewise.
2797
2798         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2799         `XCHAR_ID_TABLE'.
2800         (encode_char_1): Likewise.
2801
2802 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2803
2804         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2805         `Lisp_Char_ID_Table'.
2806         (mark_char_id_table): Deleted.
2807         (print_char_id_table): Likewise.
2808         (char_id_table_equal): Likewise.
2809         (char_id_table_hash): Likewise.
2810         (char_id_table_description): Likewise.
2811         (char_id_table): Likewise.
2812         (make_char_id_table): Use `Fmake_char_table' and
2813         `fill_char_table'.
2814         (get_char_id_table): Use `Lisp_Char_Table' instead of
2815         `Lisp_Char_ID_Table'.
2816         (put_char_id_table): Likewise.
2817         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2818         `XCHAR_ID_TABLE'.
2819         (Fremove_char_attribute): Likewise.
2820         (syms_of_chartab): Don't define type `char-id-table'.
2821
2822         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2823         (char_id_table): Likewise.
2824         (GC_CHAR_ID_TABLE_P): Likewise.
2825         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2826         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2827         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2828         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2829         (get_char_id_table): Use `Lisp_Char_Table' instead of
2830         `Lisp_Char_ID_Table'.
2831         (put_char_id_table_0): Likewise.
2832         (put_char_id_table): Likewise.
2833
2834 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2835
2836         * chartab.h: Lisp_Byte_Table related codes are moved from
2837         chartab.h.
2838
2839         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2840
2841 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2842
2843         * chartab.h: Don't include "chartab.h".
2844         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2845         (Lisp_Char_ID_Table): Likewise.
2846         (char_id_table): Likewise.
2847         (XCHAR_ID_TABLE): Likewise.
2848         (XSETCHAR_ID_TABLE): Likewise.
2849         (CHAR_ID_TABLE_P): Likewise.
2850         (GC_CHAR_ID_TABLE_P): Likewise.
2851         (get_char_id_table): Likewise.
2852
2853         * char-ucs.h: Include "chartab.h".
2854         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2855         (Lisp_Char_ID_Table): Likewise.
2856         (char_id_table): Likewise.
2857         (XCHAR_ID_TABLE): Likewise.
2858         (XSETCHAR_ID_TABLE): Likewise.
2859         (CHAR_ID_TABLE_P): Likewise.
2860         (GC_CHAR_ID_TABLE_P): Likewise.
2861         (get_char_id_table): Likewise.
2862
2863 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2864
2865         * chartab.c (copy_uint8_byte_table): New function.
2866         (copy_uint16_byte_table): New function.
2867         (copy_byte_table): New function.
2868         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2869         characters to call.
2870         (map_over_uint16_byte_table): Likewise.
2871         (map_over_byte_table): Likewise.
2872         (get_byte_table): Move prototype to chartab.h.
2873         (put_byte_table): Likewise.
2874         (put_char_id_table_0): Moved to chartab.h.
2875         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2876         (char_table_entry_equal): Likewise.
2877         (char_table_entry_hash): Likewise.
2878         (char_table_entry_description): Likewise.
2879         (char_table_entry): Likewise.
2880         (make_char_table_entry): Likewise.
2881         (copy_char_table_entry): Likewise.
2882         (get_non_ascii_char_table_value): Likewise.
2883         (map_over_charset_ascii): Likewise.
2884         (map_over_charset_control_1): Likewise.
2885         (map_over_charset_row): Likewise.
2886         (map_over_other_charset): Likewise.
2887         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2888         (print_char_table): Likewise.
2889         (char_table_equal): Likewise.
2890         (char_table_hash): Likewise.
2891         (char_table_description): Likewise.
2892         (fill_char_table): Likewise.
2893         (Fcopy_char_table): Likewise.
2894         (get_char_table): Likewise.
2895         (Fget_range_char_table): Likewise.
2896         (put_char_table): Likewise.
2897         (map_char_table): Likewise.
2898         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2899         UTF-2000.
2900
2901 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2902
2903         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2904         `Vauto_fill_chars' in XEmacs UTF-2000.
2905
2906         * chartab.h (get_byte_table): New prototype [moved from
2907         chartab.c].
2908         (put_byte_table): Likewise [moved from chartab.c].
2909         (put_char_id_table_0): New inline function [moved from chartab.c].
2910         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2911         (Lisp_Char_Table_Entry): Likewise.
2912         (char_table_entry): Likewise.
2913         (XCHAR_TABLE_ENTRY): Likewise.
2914         (XSETCHAR_TABLE_ENTRY): Likewise.
2915         (CHAR_TABLE_ENTRYP): Likewise.
2916         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2917         (NUM_ASCII_CHARS): Likewise.
2918         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2919         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2920
2921 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2922
2923         * chartab.c (get_char_id_table): Change interface.
2924         (put_char_id_table_0): New function.
2925         (put_char_id_table): Change interface; new implementation.
2926         (Fget_composite_char): Modify for interface change of
2927         `get_char_id_table'.
2928         (Fchar_variants): Likewise.
2929         (add_char_attribute_alist_mapper): Likewise.
2930         (Fchar_attribute_alist): Likewise.
2931         (Fget_char_attribute): Likewise.
2932         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2933         as same as character as the first argument like `put-char-table';
2934         modify for interface change of `put_char_id_table'.
2935         (Fremove_char_attribute): Modify for interface change of
2936         `put_char_id_table'.
2937
2938 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2939
2940         * text-coding.c: Sync up with XEmacs 21.2.41.
2941         (COMPOSE_ADD_CHAR): Modify for interface change of
2942         `get_char_id_table'.
2943
2944         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2945         change of `put_char_id_table'.
2946         (remove_char_ccs): Likewise.
2947
2948         * chartab.h (put_char_id_table): Change interface.
2949
2950         * char-ucs.h (get_char_id_table): Change interface.
2951         (charset_code_point): Modify for interface change of
2952         `get_char_id_table'.
2953         (encode_char_1): Likewise.
2954
2955 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2956
2957         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2958         argument `ccs'.
2959         (map_over_uint16_byte_table): Likewise.
2960         (map_over_byte_table): Likewise.
2961         (map_char_id_table): Add new argument `range' like
2962         `map_char_table'.
2963         (Fmap_char_attribute): Add new argument `range' like
2964         `Fmap_char_table'.
2965
2966 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2967
2968         * chartab.c (map_over_uint8_byte_table): Change interface of
2969         mapping function to use struct chartab_range instead of Emchar.
2970         (map_over_uint16_byte_table): Likewise.
2971         (map_over_byte_table): Likewise.
2972         (map_char_id_table): Likewise.
2973         (struct slow_map_char_id_table_arg): Deleted.
2974         (slow_map_char_id_table_fun): Deleted.
2975         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2976         function `slow_map_char_table_fun' instead of struct
2977         `slow_map_char_id_table_arg' and function
2978         `slow_map_char_id_table_fun'.
2979
2980 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2981
2982         * mule-charset.c: Move char-it-table related codes to chartab.c.
2983         (Vutf_2000_version): Moved to chartab.c.
2984         (Fdefine_char): Likewise.
2985         (Ffind_char): Likewise.
2986         (syms_of_mule_charset): Move types `uint8-byte-table',
2987         `uint16-byte-table', `byte-table' and `char-id-table' to
2988         chartab.c; move functions `char_attribute_list,
2989         `find_char_attribute_table, `char_attribute_alist,
2990         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2991         `map_char_attribute, `define_char, `find_char, `char_variants and
2992         `get_composite_char to chartab.c; move symbols `=>ucs',
2993         `->decomposition', `compat', `isolated', `initial', `medial',
2994         `final', `vertical', `noBreak', `fraction', `super', `sub',
2995         `circle', `square', `wide', `narrow', `small' and `font' to
2996         chartab.c.
2997         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2998         setting codes for `Vcharacter_composition_table' and
2999         `Vcharacter_variant_table' to chartab.c.
3000         (complex_vars_of_mule_charset): Move setting code for
3001         `Vchar_attribute_hash_table' to chartab.c.
3002
3003         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3004         (make_char_id_table): New prototype.
3005         (put_char_id_table): Likewise.
3006         (Fget_char_attribute): Likewise.
3007
3008         * chartab.c: Move char-id-table related code from mule-charset.c.
3009         (Vutf_2000_version): Moved from mule-charset.c.
3010
3011         * char-ucs.h (Qucs): New external variable.
3012         (put_char_ccs_code_point): New prototype.
3013         (remove_char_ccs): Likewise.
3014
3015 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3016
3017         * mule-charset.c (Vcharset_ucs_jis): New variable.
3018         (Qucs_jis): Likewise.
3019         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3020         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3021
3022         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3023
3024 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3025
3026         * mule-charset.c (map_over_uint8_byte_table): New function.
3027         (map_over_uint16_byte_table): Likewise.
3028         (map_over_byte_table): Likewise.
3029         (map_char_id_table): Likewise.
3030         (slow_map_char_id_table_fun): Likewise.
3031         (Fmap_char_attribute): Likewise.
3032         (syms_of_mule_charset): Add new function `map-char-attribute'.
3033
3034 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3035
3036         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3037         (syms_of_mule_charset): Add new function `find-char'.
3038
3039 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3040
3041         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3042         XEmacs UTF-2000.
3043         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3044         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3045         XEmacs UTF-2000.
3046         (complex_vars_of_mule_charset): Add new coded-charset
3047         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3048         `ideograph-gt-pj-*'.
3049
3050         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3051
3052 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3053
3054         * mule-charset.c (encode_builtin_char_1): Purge codes about
3055         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3056         {MIN|MAX}_CHAR_HEBREW.
3057         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3058         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3059
3060         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3061         (MAX_CHAR_GREEK): Purged.
3062         (MIN_CHAR_CYRILLIC): Purged.
3063         (MAX_CHAR_CYRILLIC): Purged.
3064         (MIN_CHAR_HEBREW): Commented out.
3065         (MAX_CHAR_HEBREW): Likewise.
3066
3067 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3068
3069         * mule-charset.c (Qto_ucs): New variable.
3070         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3071         (Fdefine_char): Likewise.
3072         (syms_of_mule_charset): Add new symbol `=>ucs'.
3073
3074 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3075
3076         * mule-charset.c (Fdecode_char): Fixed.
3077
3078 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3079
3080         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3081         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3082         "tcvn5712-1".
3083
3084 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3085
3086         * mule-charset.c (Vcharset_ucs_big5): New variable.
3087         (Qucs_big5): Likewise.
3088         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3089         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3090
3091         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3092
3093 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3094
3095         * mule-charset.c (decode_builtin_char): Check Big5 code range
3096         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3097
3098 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3099
3100         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3101         (Qchinese_gb12345): Likewise.
3102         (Fdecode_builtin_char): Fixed.
3103         (syms_of_mule_charset): Add `chinese-gb12345'.
3104         (complex_vars_of_mule_charset): Add coded-charset
3105         `chinese-gb12345'.
3106
3107         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3108         (LEADING_BYTE_CHINESE_GB12345): New macro.
3109
3110 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3111
3112         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3113         and `latin-viscii-upper' for `latin-viscii'.
3114
3115 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3116
3117         * mule-charset.c (Fdecode_builtin_char): Comment out
3118         regularization code for ISO-IR GR representation.
3119
3120 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3121
3122         * mule-charset.c (decode_builtin_char): New function; renamed from
3123         `make_builtin_char'; return -1 instead of signal.
3124         (Fdecode_builtin_char): Use `decode_builtin_char'.
3125
3126         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3127         `make_builtin_char'.
3128         (DECODE_CHAR): Use `decode_builtin_char' instead of
3129         `make_builtin_char'; use mapping table of `chinese-big5' for
3130         `chinese-big5-{1,2}'.
3131
3132 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3133
3134         * text-coding.c (char_encode_big5): New function.
3135         (char_finish_big5): Likewise.
3136         (reset_encoding_stream): Use `char_encode_big5' and
3137         `char_finish_big5' for CODESYS_BIG5.
3138         (mule_encode): Don't use `encode_coding_big5'.
3139         (encode_coding_big5): Deleted.
3140
3141 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3142
3143         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3144         0x81- in XEmacs UTF-2000.
3145         (detect_coding_big5): Likewise.
3146
3147 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3148
3149         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3150         generate character-id if the CCS property does not have
3151         corresponding predefined character.
3152         (make_builtin_char): Return -1 if corresponding predefined
3153         character is not found.
3154         (Fdecode_char): Return nil if corresponding character is not
3155         found.
3156         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3157         don't map to builtin ucs space.
3158
3159 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3160
3161         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3162         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3163
3164 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3165
3166         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3167         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3168         (Qideograph_gt): Likewise.
3169         (Qideograph_gt_pj_{1..11}): Likewise.
3170         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3171         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3172         `ideograph-gt-pj-11'.
3173         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3174         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3175         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3176
3177         * char-ucs.h (LEADING_BYTE_GT): New macro.
3178         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3179         (MIN_CHAR_GT): Likewise.
3180         (MAX_CHAR_GT): Likewise.
3181
3182 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3183
3184         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3185         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3186
3187         * doprnt.c (unsigned_int_converters): Add `c'.
3188         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3189
3190         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3191         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3192         `MIN_CHAR_MOJIKYO'.
3193         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3194         (MAX_CHAR_MOJIKYO_0): New macro.
3195         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3196
3197 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3198
3199         * mule-charset.c (Fdefine_char): Delete cemented out code.
3200         (encode_builtin_char_1): Modify for new allocation of builtin
3201         Mojikyo characters.
3202
3203         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3204
3205 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3206
3207         * mule-charset.c (Vcharset_ucs_cns): New variable.
3208         (Qucs_cns): New variable.
3209         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3210         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3211
3212 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3213
3214         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3215
3216 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3217
3218         * search.c (search_buffer): Make `charset_base_code' as
3219         character-id >> 6 to eliminate the corresponding last byte in
3220         UTF-8 representation [I'm not sure it is right thing].
3221         (boyer_moore): Likewise.
3222
3223 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3224
3225         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3226         representation in MULE.
3227
3228 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3229
3230         * text-coding.c (Fmake_coding_system): Use
3231         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3232         `EXTERNAL_PROPERTY_LIST_LOOP'.
3233
3234 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3235
3236         * text-coding.c (decode_output_utf8_partial_char): New function.
3237         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3238
3239 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3240
3241         * text-coding.c (decode_coding_utf8): Output original byte
3242         sequence if it is broken; change order of conditions.
3243
3244         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3245         of conditions.
3246
3247         * mb-multibyte.h (BYTE_ASCII_P):
3248         Use bit ops for char-signedness safety.
3249         (BYTE_C0_P): Use bit ops for char-signedness safety.
3250         (BYTE_C1_P): Use bit ops for char-signedness safety.
3251
3252         * character.h: (XCHAR_OR_CHAR_INT):
3253         Always use inline function.
3254         Remove redundant type checking assert() - XINT will abort quite
3255         nicely.
3256
3257 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3258
3259         * text-coding.c: (Fencode_shift_jis_char):
3260         (Fencode_big5_char):
3261         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3262         Replace 0 with '\0' when working with bytes.
3263         Replace initial "(" with "\(" in docstrings.
3264
3265         (Fmake_coding_system):
3266         When type is ccl and value is vector, register it with a proper
3267         symbol.  And checks whether the given ccl program is valid.
3268         (mule_decode): When calling ccl_driver, if src indicates
3269         NULL pointer, set an empty string instead.
3270         (mule_encode): Likewise.
3271
3272         (detect_eol_type):
3273         (detect_coding_sjis):
3274         (decode_coding_sjis):
3275         (detect_coding_big5):
3276         (decode_coding_big5):
3277         (detect_coding_ucs4):
3278         (decode_coding_ucs4):
3279         (detect_coding_utf8):
3280         (decode_coding_utf8):
3281         (detect_coding_iso2022):
3282         (decode_coding_iso2022):
3283         (decode_coding_no_conversion):
3284         (mule_decode):
3285         Make all detecting and decoding functions take an Extbyte * arg.
3286         (text_encode_generic):
3287         (encode_coding_big5):
3288         (encode_coding_no_conversion):
3289         (mule_encode):
3290         Make all encoding functions take a Bufbyte * arg.
3291         Use size_t instead of unsigned int for memory sizes.
3292         Only cast to unsigned char whenever dereferencing Extbyte *.
3293
3294         (struct lrecord_description fcd_description_1): Use countof.
3295         (complex_vars_of_file_coding):
3296         Use countof instead of sizeof.
3297         Use CHECK_NATNUM instead of CHECK_INT.
3298
3299 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3300
3301         * mule-charset.c (Fget_char_attribute): Add new optional argument
3302         `default-value'.
3303         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3304         (remove_char_ccs): Likewise.
3305
3306 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3307
3308         * text-coding.c (char_encode_shift_jis): New implementation in
3309         UTF-2000.
3310         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3311         ...)'.
3312
3313         * mule-charset.c (Vcharset_chinese_big5): New variable in
3314         UTF-2000.
3315         (Qchinese_big5): New variable in UTF-2000.
3316         (BIG5_SAME_ROW): New macro in UTF-2000.
3317         (make_builtin_char): Use builtin characters of
3318         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3319         characters of `Vcharset_chinese_big5'.
3320         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3321         (complex_vars_of_mule_charset): Add new coded-charset
3322         `chinese-big5' in UTF-2000.
3323
3324         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3325         (Vcharset_chinese_big5): New external variable declaration.
3326         (Vcharset_japanese_jisx0208_1990): Likewise.
3327
3328 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3329
3330         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3331         function.
3332         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3333
3334 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3335
3336         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3337         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3338         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3339         `mojikyo-pj-*'.
3340
3341 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3342
3343         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3344
3345 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3346
3347         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3348         to 0.17.
3349
3350 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3351
3352         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3353         for `CHARSET_BY_ATTRIBUTES'.
3354         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3355         `CHARSET_BY_ATTRIBUTES'.
3356
3357         * text-coding.c (struct decoding_stream): Rename member `CH' to
3358         `CPOS'.
3359         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3360         (decode_coding_sjis): Likewise.
3361         (decode_coding_big5): Likewise.
3362         (decode_coding_ucs4): Likewise.
3363         (decode_coding_utf8): Likewise.
3364         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3365         `CHARSET_BY_ATTRIBUTES'.
3366         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3367         `str->counter'; decode 3, 4 bytes sets.
3368         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3369         sets.
3370         (decode_coding_no_conversion): Use `str->cpos' instead of
3371         `str->ch'.
3372
3373         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3374         (Qmojikyo_2022_1): New variable.
3375         (make_charset): Don't use `CHARSET_TYPE_*'.
3376         (range_charset_code_point): Support coded-charset
3377         `mojikyo-2022-1'.
3378         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3379         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3380         `CHARSET_BY_ATTRIBUTES'.
3381         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3382         `CHARSET_BY_ATTRIBUTES'.
3383         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3384         (complex_vars_of_mule_charset): Add new coded-charset
3385         `mojikyo-2022-1'.
3386
3387         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3388         interface; changed to inline function.
3389
3390         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3391         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3392         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3393         (CHARSET_TYPE_94): Deleted.
3394         (CHARSET_TYPE_94X94): Deleted.
3395         (CHARSET_TYPE_96): Deleted.
3396         (CHARSET_TYPE_96X96): Deleted.
3397         (CHARSET_TYPE_128): Deleted.
3398         (CHARSET_TYPE_128X128): Deleted.
3399         (CHARSET_TYPE_256): Deleted.
3400         (CHARSET_TYPE_256X256): Deleted.
3401         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3402         to inline function.
3403         (DECODE_MOJIKYO_2022): New inline function.
3404         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3405         `Vcharset_mojikyo_2022_1'.
3406
3407 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3408
3409         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3410         instead of `EQ'.
3411         (put_byte_table): Likewise.
3412         (char_id_table_equal): Use `get_byte_table' [new implementation].
3413
3414 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3415
3416         * mule-charset.c: Include <limits.h> in UTF-2000.
3417         (BT_UINT8_MIN): New macro in UTF-2000.
3418         (BT_UINT8_MAX): New macro in UTF-2000.
3419         (BT_UINT8_t): New macro in UTF-2000.
3420         (BT_UINT8_nil): New macro in UTF-2000.
3421         (BT_UINT8_unbound): New macro in UTF-2000.
3422         (INT_UINT8_P): New inline function in UTF-2000.
3423         (UINT8_VALUE_P): New inline function in UTF-2000.
3424         (UINT8_ENCODE): New inline function in UTF-2000.
3425         (UINT8_DECODE): New inline function in UTF-2000.
3426         (mark_uint8_byte_table): New function in UTF-2000.
3427         (print_uint8_byte_table): New function in UTF-2000.
3428         (uint8_byte_table_equal): New function in UTF-2000.
3429         (uint8_byte_table_hash): New function in UTF-2000.
3430         (make_uint8_byte_table): New function in UTF-2000.
3431         (uint8_byte_table_same_value_p): New function in UTF-2000.
3432         (BT_UINT16_MIN): New macro in UTF-2000.
3433         (BT_UINT16_MAX): New macro in UTF-2000.
3434         (BT_UINT16_t): New macro in UTF-2000.
3435         (BT_UINT16_nil): New macro in UTF-2000.
3436         (BT_UINT16_unbound): New macro in UTF-2000.
3437         (INT_UINT16_P): New inline function in UTF-2000.
3438         (UINT16_VALUE_P): New inline function in UTF-2000.
3439         (UINT16_ENCODE): New inline function in UTF-2000.
3440         (UINT16_DECODE): New inline function in UTF-2000.
3441         (UINT8_TO_UINT16): New inline function in UTF-2000.
3442         (mark_uint16_byte_table): New function in UTF-2000.
3443         (print_uint16_byte_table): New function in UTF-2000.
3444         (uint16_byte_table_equal): New function in UTF-2000.
3445         (uint16_byte_table_hash): New function in UTF-2000.
3446         (make_uint16_byte_table): New function in UTF-2000.
3447         (uint16_byte_table_same_value_p): New function in UTF-2000.
3448         (print_byte_table): New function in UTF-2000.
3449         (byte-table): Use `print_byte_table' as printer.
3450         (make_byte_table): Delete second argument `older'.
3451         (byte_table_same_value_p): New function in UTF-2000.
3452         (copy_byte_table): Deleted.
3453         (get_byte_table): New function in UTF-2000.
3454         (put_byte_table): New function in UTF-2000.
3455         (print_char_id_table): New function in UTF-2000.
3456         (char-id-table): Use `print_char_id_table' as printer.
3457         (make_char_id_table): Delete second argument `older'.
3458         (get_char_id_table): Use `get_byte_table [new implementation].
3459         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3460         implementation].
3461         (Ffind_char_attribute_table): New function in UTF-2000.
3462         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3463         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3464         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3465         (syms_of_mule_charset): Add new function
3466         `find-char-attribute-table' in UTF-2000.
3467
3468         * lrecord.h (enum lrecord_type): Add
3469         `lrecord_type_uint16_byte_table' and
3470         `lrecord_type_uint8_byte_table'.
3471
3472         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3473         (Lisp_Uint8_Byte_Table): New type.
3474         (XUINT8_BYTE_TABLE): New macro.
3475         (XSETUINT8_BYTE_TABLE): New macro.
3476         (UINT8_BYTE_TABLE_P): New macro.
3477         (GC_UINT8_BYTE_TABLE_P): New macro.
3478         (struct Lisp_Uint16_Byte_Table): New structure.
3479         (Lisp_Uint16_Byte_Table): New type.
3480         (XUINT16_BYTE_TABLE): New macro.
3481         (XSETUINT16_BYTE_TABLE): New macro.
3482         (UINT16_BYTE_TABLE_P): New macro.
3483         (GC_UINT16_BYTE_TABLE_P): New macro.
3484
3485 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3486
3487         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3488         (Vcharacter_ideographic_strokes_table): Deleted.
3489         (Vcharacter_total_strokes_table): Deleted.
3490         (Vcharacter_morohashi_daikanwa_table): Deleted.
3491         (Vcharacter_decomposition_table): Deleted.
3492         (Qname): Deleted because it is duplicated.
3493         (Qideographic_radical): Deleted.
3494         (Qideographic_strokes): Deleted.
3495         (Qtotal_strokes): Deleted.
3496         (Qmorohashi_daikanwa): Deleted.
3497         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3498         `ideographic-radical', `ideographic-strokes', `total-strokes',
3499         `morohashi-daikanwa' and `->decomposition'.
3500         (Fget_char_attribute): Likewise.
3501         (Fput_char_attribute): Likewise; use `make-vector' instead of
3502         `make_older_vector' for `->decomposition' value.
3503         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3504         `ideograph-daikanwa'.
3505         (syms_of_mule_charset): Delete builtin symbols `name',
3506         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3507         `morohashi-daikanwa'.
3508         (vars_of_mule_charset): Don't setup
3509         `Vcharacter_ideographic_radical_table',
3510         `Vcharacter_ideographic_strokes_table',
3511         `Vcharacter_total_strokes_table',
3512         `Vcharacter_morohashi_daikanwa_table' and
3513         `Vcharacter_decomposition_table'.
3514
3515 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3516
3517         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3518         `make_older_vector', `make_vector_newer_1' and
3519         `make_vector_newer'.
3520
3521         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3522         `make_older_vector' and `make_vector_newer'.
3523
3524         * config.h.in (HAVE_GGC): New macro.
3525
3526 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3527
3528         * mule-charset.c (struct char_attribute_list_closure): New
3529         structure in UTF-2000.
3530         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3531         (Fchar_attribute_list): Likewise.
3532         (Fset_charset_mapping_table): Use `make_vector_newer'.
3533         (Fdecode_builtin_char): New function in UTF-2000.
3534         (syms_of_mule_charset): Add new function `char-attribute-list' and
3535         `decode-builtin-char' in UTF-2000.
3536
3537         * lisp.h (make_vector_newer): New prototype.
3538
3539         * alloc.c (make_vector_newer_1): New function.
3540         (make_vector_newer): New function.
3541
3542 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3543
3544         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3545         50100)'.
3546
3547 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3548
3549         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3550         (Vcharacter_attribute_table): Deleted.
3551         (Vcharacter_name_table): Deleted.
3552         (put_char_attribute): Deleted.
3553         (remove_char_attribute): Deleted.
3554         (struct char_attribute_alist_closure): New structure.
3555         (add_char_attribute_alist_mapper): New function.
3556         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3557         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3558         (Fget_char_attribute): Likewise.
3559         (Fput_char_attribute): Likewise.
3560         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3561         of `remove_char_attribute'.
3562         (Fdefine_char): Return character.
3563         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3564         and `Vcharacter_name_table'.
3565         (complex_vars_of_mule_charset): Likewise
3566         `Vchar_attribute_hash_table'.
3567
3568 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3569
3570         * character.h (CHARC_CHARSET): New macro.
3571         (CHARC_CHARSET_ID): New macro.
3572         (CHARC_CODE_POINT): New macro.
3573         (CHARC_COLUMNS): New macro.
3574         (CHARC_TO_CHAR): New inline function.
3575         (CHARC_EQ): New inline function.
3576         (CHARC_ASCII_EQ): New inline function.
3577         (CHARC_IS_SPACE): New inline function.
3578         (ASCII_TO_CHARC): New inline function.
3579
3580         * char-ucs.h (encode_char_2): Deleted.
3581         (ENCODE_CHAR): Use `encode_char_1' again.
3582         (breakup_char_1): Likewise.
3583         (CHAR_TO_CHARC): New inline function.
3584
3585         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3586
3587 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3588
3589         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3590         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3591         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3592         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3593         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3594         `CHARC_IS_SPACE'.
3595         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3596
3597         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3598         `CHARC_CODE_POINT'.
3599         (x_output_display_block): Use `CHARC_CHARSET' and
3600         `CHARC_ASCII_EQ'.
3601
3602         * redisplay-tty.c (tty_output_display_block): Use
3603         `CHARC_ASCII_EQ'.
3604         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3605
3606         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3607
3608         * insdel.c (find_charsets_in_charc_string): Use
3609         `CHARC_CHARSET_ID'.
3610         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3611         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3612         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3613         (convert_charc_string_into_malloced_string): Likewise.
3614
3615 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3616
3617         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3618         instead of <Emchar_dynarr *> for buf; use
3619         `convert_bufbyte_string_into_charc_dynarr' instead of
3620         `convert_bufbyte_string_into_emchar_dynarr'; use
3621         `find_charsets_in_charc_string' instead of
3622         `find_charsets_in_emchar_string'.
3623
3624         * redisplay.h:
3625         - Include "character.h".
3626         (struct rune): New member `cglyph'; delete member `chr'.
3627
3628         * redisplay.c (redisplay_text_width_charc_string): New function;
3629         delete `redisplay_text_width_emchar_string'.
3630         (rtw_charc_dynarr): New variable; renamed from
3631         `rtw_emchar_dynarr'.
3632         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3633         `rtw_emchar_dynarr'; use
3634         `convert_bufbyte_string_into_charc_dynarr' instead of
3635         `convert_bufbyte_string_into_emchar_dynarr'; use
3636         `redisplay_text_width_charc_string' instead of
3637         `redisplay_text_width_emchar_string'.
3638         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3639         instead of `rtw_emchar_dynarr'; use
3640         `convert_bufbyte_string_into_charc_dynarr' instead of
3641         `convert_bufbyte_string_into_emchar_dynarr'.
3642         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3643         `redisplay_text_width_charc_string' instead of
3644         `redisplay_text_width_emchar_string'.
3645         (create_text_block): Modify for <struct rune> change.
3646         (generate_formatted_string_db): Likewise.
3647         (create_string_text_block): Likewise.
3648         (pixel_to_glyph_translation): Likewise.
3649
3650         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3651         instead of <const Emchar *>.
3652         (x_text_width): Likewise.
3653         (x_output_display_block): Use <Charc_dynarr *> instead
3654         <Emchar_dynarr *>; modify for <structure rune> change.
3655         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3656         *>.
3657
3658         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3659         <const Emchar *>; use `charc_string_displayed_columns' instead of
3660         `emchar_string_displayed_columns'.
3661         (tty_output_display_block): Use <Charc_dynarr *> instead of
3662         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3663         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3664         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3665         `tty_output_emchar_dynarr_dynarr'.
3666         (tty_output_charc_dynarr): New function; delete
3667         `tty_output_charc_dynarr'.
3668
3669         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3670         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3671         <Emchar_dynarr *> for buf; use
3672         `convert_bufbyte_string_into_charc_dynarr' instead of
3673         `convert_bufbyte_string_into_emchar_dynarr'.
3674
3675         * frame.c (title_string_charc_dynarr): New variable; renamed from
3676         `title_string_emchar_dynarr'.
3677         (generate_title_string): Use `title_string_charc_dynarr' instead
3678         of `title_string_emchar_dynarr'; use
3679         `convert_charc_string_into_malloced_string' instead of
3680         `convert_emchar_string_into_malloced_string'.
3681         (init_frame): Use `title_string_charc_dynarr' instead of
3682         `title_string_emchar_dynarr'.
3683
3684         * console.h:
3685         - Include "character.h".
3686         (struct console_methods): Use <const Charc *> instead of <const
3687         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3688         <Emchar_dynarr *> in output_string_method.
3689
3690         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3691         <Emchar_dynarr *>.
3692
3693         * console-stream.c (stream_text_width): Use <const Charc *>
3694         instead of <const Emchar *>.
3695
3696         * character.h (Charc_dynarr): New type.
3697
3698         * char-ucs.h (structure Charc): New structure; define new type
3699         `Charc'.
3700
3701         * char-lb.h (DECODE_CHAR): New inline function.
3702         (encode_char_1): New inline function.
3703         (ENCODE_CHAR): New macro.
3704         (structure Charc): New structure; define new type `Charc'.
3705
3706         * char-1byte.h (Vcharset_control_1): New macro.
3707         (Vcharset_latin_iso8859_1): New macro.
3708         (DECODE_CHAR): New inline function.
3709         (encode_char_1): New inline function.
3710         (ENCODE_CHAR): New macro.
3711         (structure Charc): New structure; define new type `Charc'.
3712
3713         * insdel.c (find_charsets_in_charc_string): New function; delete
3714         `find_charsets_in_emchar_string'.
3715         (charc_string_displayed_columns): New function; delete
3716         `emchar_string_displayed_columns'.
3717         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3718         `convert_bufbyte_string_into_emchar_dynarr'.
3719         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3720         `convert_charc_string_into_bufbyte_dynarr'.
3721         (convert_charc_string_into_malloced_string): New function; delete
3722         `convert_charc_string_into_malloced_string'.
3723
3724         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3725         `find_charsets_in_emchar_string'.
3726         (charc_string_displayed_columns): New prototype; delete
3727         `emchar_string_displayed_columns'.
3728         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3729         `convert_charc_string_into_bufbyte_dynarr'.
3730         (convert_charc_string_into_malloced_string): New prototype; delete
3731         `convert_charc_string_into_malloced_string'.
3732
3733 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3734
3735         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3736
3737 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3738
3739         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3740
3741         * char-ucs.h: Use <short> for <Charset_ID>.
3742
3743         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3744         <Charset_ID>.
3745
3746 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3747
3748         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3749         to 0.16.
3750
3751 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3752
3753         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3754         variable.
3755         (Qmorohashi_daikanwa): New variable.
3756         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3757         for `morohashi-daikanwa' attribute.
3758         (Fget_char_attribute): Likewise.
3759         (Fput_char_attribute): Likewise.
3760         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3761         has the same value of `ideograph-daikanwa'.
3762         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3763         (vars_of_mule_charset): Setup
3764         `Vcharacter_morohashi_daikanwa_table'.
3765
3766 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3767
3768         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3769         attributes.
3770         (add_charset_to_list_mapper): Add `key' instead of
3771         `XCHARSET_NAME (value)' to return aliases.
3772
3773 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3774
3775         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3776         variable.
3777         (Vcharacter_ideographic_strokes_table): New variable.
3778         (Qideographic_radical): New variable.
3779         (Qideographic_strokes): New variable.
3780         (Fchar_attribute_alist): Use
3781         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3782         attribute; use `Vcharacter_ideographic_strokes_table' for
3783         `ideographic-strokes' attribute.
3784         (Fget_char_attribute): Likewise.
3785         (Fput_char_attribute): Likewise.
3786         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3787         `ideographic-strokes'.
3788         (vars_of_mule_charset): Setup
3789         `Vcharacter_ideographic_radical_table' and
3790         `Vcharacter_ideographic_strokes_table'.
3791
3792 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3793
3794         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3795         (Qtotal_strokes): New variable.
3796         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3797         `total-strokes' attribute.
3798         (Fget_char_attribute): Likewise.
3799         (Fput_char_attribute): Likewise.
3800         (syms_of_mule_charset): Add new symbol `total-strokes'.
3801         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3802
3803 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3804
3805         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3806         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3807         are found.
3808         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3809         `->decomposition' attribute.
3810         (Fput_char_attribute): Likewise.
3811         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3812
3813 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3814
3815         * mule-charset.c (decoding_table_check_elements): New function.
3816         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3817
3818 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3819
3820         * mule-charset.c (Fset_charset_mapping_table): Use
3821         `put_char_ccs_code_point'.
3822
3823 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3824
3825         * mule-charset.c (decoding_table_put_char): New inline function.
3826         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3827
3828 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3829
3830         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3831         (XCHARSET_BYTE_SIZE): New macro.
3832         (decoding_table_remove_char): New inline function.
3833         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3834         `decoding_table_remove_char'.
3835         (remove_char_ccs): Use `decoding_table_remove_char'.
3836         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3837
3838 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3839
3840         * mule-charset.c (Vcharacter_name_table): New variable.
3841         (Qname): New variable.
3842         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3843         attribute.
3844         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3845         `Vcharacter_name_table' for `name' attribute.
3846         (Fremove_char_attribute): Use function `remove_char_ccs'.
3847         (put_char_ccs_code_point): New function.
3848         (remove_char_ccs): New function.
3849         (syms_of_mule_charset): Add new symbol `name'.
3850         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3851
3852 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3853
3854         * mule-charset.c (make_byte_table): Add new argument `older'.
3855         (make_char_id_table): Likewise.
3856         (copy_char_id_table): Comment out because it is not used.
3857         (put_char_id_table): Modify for `make_byte_table'.
3858         (Fput_char_attribute): Make encoding_table as older object;
3859         inherit older bit of `Vcharacter_composition_table'.
3860         (mark_charset): Don't mark `cs->encoding_table'.
3861         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3862         normal object; make `Vcharacter_composition_table' as an older
3863         object; delete staticpro for `Vcharacter_composition_table'; make
3864         `Vcharacter_variant_table' as a normal object.
3865
3866         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3867         (mark_object): Don't check older object in UTF-2000.
3868
3869         * lrecord.h (struct lrecord_header): Add new member `older' in
3870         UTF-2000.
3871         (set_lheader_implementation): Setup `SLI_header->older' in
3872         UTF-2000.
3873         (set_lheader_older_implementation): New macro in UTF-2000.
3874         (OLDER_RECORD_P): New macro in UTF-2000.
3875         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3876         (alloc_older_lcrecord): New prototype in UTF-2000.
3877         (alloc_older_lcrecord_type): New macro in UTF-2000.
3878
3879 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3880
3881         * mule-charset.c (byte_table_description): Use
3882         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3883         (char_id_table_description): Delete bogus `, 1'.
3884         (Fget_char_attribute): Refer encoding_table of each coded-charset
3885         to get value of coded-charset attribute of a character.
3886         (Fput_char_attribute): Use `make_older_vector' instead of
3887         `make_vector'; use encoding_table of each coded-charset to store
3888         value of coded-charset attribute of a character.
3889         (Fremove_char_attribute): Use encoding_table of each coded-charset
3890         to store value of coded-charset attribute of a character.
3891         (mark_charset): Mark `cs->encoding_table'; don't mark
3892         `cs->decoding_table'.
3893         (charset_description): Add description of new member
3894         `encoding_table'.
3895         (make_charset): Initialize `encoding_table'.
3896
3897         * char-ucs.h (struct Lisp_Charset): Add new member
3898         `encoding_table'.
3899         (CHARSET_ENCODING_TABLE): New macro.
3900         (XCHARSET_ENCODING_TABLE): New macro.
3901         (charset_code_point): New implementation.
3902         (encode_char_1): Likewise.
3903
3904         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3905         (disksave_object_finalization_1): Call finalizers of
3906         `all_older_lcrecords' in UTF-2000.
3907         (make_older_vector): New function in UTF-2000.
3908         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3909         UTF-2000.
3910
3911         * lisp.h (make_older_vector): New prototype in UTF-2000.
3912
3913 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3914
3915         * lrecord.h (enum lrecord_type): Rename
3916         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3917
3918         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3919         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3920         `get_char_code_table'.
3921
3922         * mule-charset.c (mark_char_id_table): Renamed from
3923         `mark_char_code_table'.
3924         (char_id_table_equal): Renamed from `char_code_table_equal'.
3925         (char_id_table_hash): Renamed from `char_code_table_hash'.
3926         (make_char_id_table): Renamed from `make_char_code_table'.
3927         (copy_char_id_table): Renamed from `copy_char_code_table'.
3928         (get_char_id_table): Renamed from `get_char_code_table'.
3929         (put_char_id_table): Renamed from `put_char_code_table'.
3930         (to_char_id): Renamed from `to_char_code'.
3931
3932         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3933         `Lisp_Char_Code_Table'.
3934         (char_id_table): Renamed from `char_code_table'.
3935         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3936         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3937         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3938         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3939         (get_char_id_table): Renamed from `get_char_code_table'.
3940
3941 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3942
3943         * lrecord.h (enum lrecord_type): Rename
3944         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3945
3946         * mule-charset.c (mark_byte_table): Renamed from
3947         `mark_char_byte_table'.
3948         (byte_table_equal): Renamed from `char_byte_table_equal'.
3949         (byte_table_hash): Renamed from `byte_table_hash'.
3950         (make_byte_table): Renamed from `make_byte_table'.
3951         (copy_byte_table): Renamed from `copy_char_byte_table'.
3952
3953         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3954         `Lisp_Char_Byte_Table'.
3955         (byte_table): Renamed from `char_byte_table'.
3956         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3957         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3958         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3959         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3960
3961 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3962
3963         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3964         (dfc_convert_to_internal_format): Likewise.
3965         
3966         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3967         * text-coding.c (Fcoding_system_alias_p): New function.
3968         * text-coding.c (Fcoding_system_aliasee): New function.
3969         * text-coding.c (append_suffix_to_symbol): New function.
3970         * text-coding.c (dangling_coding_system_alias_p): New function.
3971         * text-coding.c (Ffind_coding_system):
3972         * text-coding.c (Fcopy_coding_system):
3973         * text-coding.c (encode_coding_no_conversion):
3974         * text-coding.c (syms_of_file_coding):
3975         * text-coding.c (vars_of_file_coding):
3976         Rewrite coding system alias code.
3977         Allow nested aliases, like symbolic links.
3978         Allow redefinition of coding system aliases.
3979         Prevent existence of dangling coding system aliases.
3980         Eliminate convert_to_external_format.
3981         Eliminate convert_to_internal_format.
3982         
3983         * text-coding.c: Change enum eol_type to eol_type_t.
3984
3985 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3986
3987         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3988         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3989
3990         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3991         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3992
3993 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3994
3995         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3996         `ideograph-daikanwa'.
3997
3998         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3999         (Vcharset_ucs_bmp): Likewise.
4000         (Vcharset_mojikyo): Add new extern variable definition.
4001         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4002         (Vcharset_latin_iso8859_3): Likewise.
4003         (Vcharset_latin_iso8859_4): Likewise.
4004         (Vcharset_latin_iso8859_9): Likewise.
4005         (Vcharset_latin_viscii_lower): Likewise.
4006         (Vcharset_latin_viscii_upper): Likewise.
4007         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4008         `mojikyo' code-point is used to decode.
4009         (encode_char_2): New function [to convert `mojikyo' code-point to
4010         Mojikyo font encoding].
4011         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4012         (breakup_char_1): Likewise.
4013         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4014
4015 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4016
4017         * text-coding.c (Fmake_coding_system): Add document about
4018         `disable-composition' property.
4019
4020 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4021
4022         * text-coding.c (Qdisable_composition): New variable; delete
4023         `Qcomposite'.
4024         (Fmake_coding_system): Add new property `disable-composite';
4025         delete property `composite'.
4026         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4027         instead of `!CODING_SYSTEM_COMPOSITE'.
4028         (syms_of_file_coding): Add new symbol `disable-composition';
4029         delete symbol `composite'.
4030
4031         * file-coding.h (struct Lisp_Coding_System): Add
4032         `disable_composition'; delete `enable_composition'.
4033         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4034         `CODING_SYSTEM_COMPOSITE'.
4035         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4036         `XCODING_SYSTEM_COMPOSITE'.
4037
4038 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4039
4040         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4041         to 0.15.
4042
4043 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4044
4045         * text-coding.c (Qcomposite): New variable.
4046         (Fmake_coding_system): Add new property `composite'.
4047         (struct decoding_stream): Add `combined_char_count',
4048         `combined_chars' and `combining_table' in UTF-2000.
4049         (COMPOSE_FLUSH_CHARS): New macro.
4050         (COMPOSE_ADD_CHAR): New macro.
4051         (reset_decoding_stream): Reset `str->combined_char_count' and
4052         `str->combining_table' in UTF-2000.
4053         (decode_coding_iso2022): Modify for character-decomposition.
4054         (syms_of_file_coding): Add new symbol `composite'.
4055
4056 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4057
4058         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4059         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4060         of `Vcharacter_composition_table' if `->decomposition' property
4061         has only 1 element.
4062         (Qlatin_tcvn5712): New variable.
4063         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4064         (complex_vars_of_mule_charset): Add new coded-charset
4065         `latin-tcvn5712'.
4066
4067         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4068
4069 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4070
4071         * file-coding.h (struct Lisp_Coding_System): Add
4072         `enable_composition'.
4073         (CODING_SYSTEM_COMPOSITE): New macro.
4074         (XCODING_SYSTEM_COMPOSITE): New macro.
4075
4076 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4077
4078         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4079
4080 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4081
4082         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4083         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4084
4085 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4086
4087         * mule-charset.c (Vcharset_mojikyo): New variable.
4088         (Fdefine_char): Don't use coded-charset which does not have
4089         non-builtin character range to allocate character-id.
4090         (Qmojikyo): New variable.
4091         (syms_of_mule_charset): Add new symbol `mojikyo'.
4092         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4093
4094         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4095         (LEADING_BYTE_MOJIKYO): New macro.
4096         (MIN_CHAR_MOJIKYO): New macro.
4097         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4098         (MAX_CHAR_MOJIKYO): New macro.
4099
4100 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4101
4102         * mule-charset.c (remove_char_attribute): Fixed.
4103
4104 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4105
4106         * mule-charset.c (remove_char_attribute): New function.
4107         (Fremove_char_attribute): New function.
4108         (encode_builtin_char_1): Comment out builtin-support for
4109         greek-iso8859-7 and cyrillic-iso8859-5.
4110         (Fdecode_char): Check `code' is an integer.
4111         (syms_of_mule_charset): Add `remove-char-attribute'.
4112         (MIN_CHAR_GREEK): Deleted.
4113         (MAX_CHAR_GREEK): Likewise.
4114         (MIN_CHAR_CYRILLIC): Likewise.
4115         (MAX_CHAR_CYRILLIC): Likewise.
4116         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4117         MAX_CHAR_GREEK for `greek-iso8859-7'.
4118
4119         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4120         (MAX_CHAR_GREEK): Likewise.
4121         (MIN_CHAR_CYRILLIC): Likewise.
4122         (MAX_CHAR_CYRILLIC): Likewise.
4123
4124 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4125
4126         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4127         format is used without `ucs' property.
4128         (Fdecode_char): Fix problem with GR representation.
4129         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4130         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4131
4132 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4133
4134         * mule-charset.c (make_builtin_char): New function.
4135         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4136         (Fset_charset_mapping_table): Modify for new representation of
4137         code-point.
4138         (Fdecode_char): New function.
4139         (syms_of_mule_charset): Add new builtin function `decode-char' in
4140         UTF-2000.
4141
4142         * char-ucs.h (make_builtin_char): New prototype.
4143         (DECODE_CHAR): New inline function.
4144         (MAKE_CHAR): Use `DECODE_CHAR'.
4145
4146 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4147
4148         * text-coding.c (parse_charset_conversion_specs): Use
4149         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4150         `XCHARSET_TYPE'.
4151         (iso2022_designate): Likewise.
4152
4153         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4154         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4155
4156         * mule-charset.c (Vcharset_ucs): New variable.
4157         (print_charset): Change design; use `CHARSET_CHARS' and
4158         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4159         (make_charset): Change signature to specify `chars' and
4160         `dimension' instead of `type'.
4161         (range_charset_code_point): Modify for 256^n-set.
4162         (encode_builtin_char_1): Encode as `ucs' in default.
4163         (Fmake_charset): Modify for `make_charset'.
4164         (Fmake_reverse_direction_charset): Likewise.
4165         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4166         UTF-2000.
4167         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4168         for `make_charset'.
4169
4170         * char-ucs.h (Vcharset_ucs): New variable.
4171         (LEADING_BYTE_UCS): New macro.
4172         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4173         and `chars' to `unsigned short' from `unsigned int'.
4174         (CHARSET_TYPE): Deleted.
4175         (XCHARSET_TYPE): Deleted.
4176
4177 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4178
4179         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4180
4181         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4182         (ENCODE_CHAR): New macro.
4183
4184 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4185
4186         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4187         to 0.14 (Kawachi-Katakami).
4188
4189 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4190
4191         * text-coding.c (char_encode_shift_jis): Modify for
4192         `charset_code_point'.
4193         (char_encode_iso2022): Likewise.
4194
4195         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4196         (integer) instead of list of <Lisp_Object>s (integers) as the
4197         format of code-point of a coded-charset.
4198         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4199         (encode_builtin_char_1): New function; delete
4200         `split_builtin_char'.
4201         (charset_code_point): Return <int> instead of <Lisp_Object>.
4202         (Fsplit_char): Don't use `SPLIT_CHAR'.
4203
4204         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4205         prototype for `split_builtin_char'.
4206         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4207         (charset_code_point): Likewise.
4208         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4209         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4210
4211 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4212
4213         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4214         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4215
4216 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4217
4218         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4219
4220         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4221         (MAX_CHAR_OBS_94x94): Deleted.
4222
4223 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4224
4225         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4226
4227         * char-ucs.h (MAX_CHAR_BMP): New macro.
4228
4229 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4230
4231         * text-coding.c: Sync with r21-2-24.
4232
4233 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4234
4235         * file-coding.c: Modify for UTF-2000.
4236
4237 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4238
4239         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4240         to 0.13 (Takaida).
4241
4242 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4243
4244         * mule-charset.c (split_builtin_char): Delete builtin support for
4245         `katakana-jisx0201'.
4246         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4247         BMP area in builtin representation.
4248
4249         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4250         `Vcharset_katakana_jisx0201'.
4251
4252 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4253
4254         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4255         (Qisolated): New variable.
4256         (Qinitial): New variable.
4257         (Qmedial): New variable.
4258         (Qfinal): New variable.
4259         (Qvertical): New variable.
4260         (Qsmall): New variable.
4261         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4262         `Qvertical' and `Qsmall'.
4263         (Qmojikyo_pj_[1 .. 21]): New variable.
4264         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4265         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4266         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4267         .. 21]'.
4268
4269 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4270
4271         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4272         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4273         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4274
4275 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4276
4277         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4278         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4279         BMP.
4280         (Qjapanese_jisx0208_1990): New variable.
4281         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4282         (complex_vars_of_mule_charset): Add new coded-charset
4283         `japanese-jisx0208-1990'.
4284
4285         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4286         (MIN_CHAR_JIS_X0208_1990): New macro.
4287         (MAX_CHAR_JIS_X0208_1990): New macro.
4288
4289 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4290
4291         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4292         coded-charset is not found.
4293
4294 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4295
4296         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4297         (Fdefine_char): Use `Fmake_char'.
4298
4299 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4300
4301         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4302         (Vcharset_hiragana_jisx0208): Deleted.
4303         (Vcharset_katakana_jisx0208): Deleted.
4304         (Qideograph_daikanwa): New variable.
4305         (Qhiragana_jisx0208): Deleted.
4306         (Qkatakana_jisx0208): Deleted.
4307         (split_builtin_char): Split `ideograph-daikanwa'.
4308         (Fsplit_char): New implementation for UTF-2000.
4309         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4310         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4311         (complex_vars_of_mule_charset): Add new coded-charset
4312         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4313         `katakana-jisx0208'.
4314
4315         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4316         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4317         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4318         (MIN_CHAR_DAIKANWA): New macro.
4319         (MAX_CHAR_DAIKANWA): New macro.
4320
4321 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4322
4323         * data.c (Fstring_to_number): Don't recognize floating point if
4324         base is not 10.
4325
4326 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4327
4328         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4329
4330 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4331
4332         * mule-charset.c (Qsquare): New variable.
4333         (to_char_code): Add `Qsquare'.
4334         (syms_of_mule_charset): Add new symbol `square'.
4335
4336 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4337
4338         * mule-charset.c (Qcircle): New variable.
4339         (to_char_code): Add `Qcircle'.
4340         (syms_of_mule_charset): Add new symbol `circle'.
4341
4342 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4343
4344         * mule-charset.c (Qfont): New variable.
4345         (to_char_code): Add `Qfont'.
4346         (syms_of_mule_charset): Add new symbol `font'.
4347
4348 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4349
4350         * mule-charset.c (Qsub): New variable.
4351         (to_char_code): Add `Qsub'.
4352         (syms_of_mule_charset): Add new symbol `sub'.
4353
4354 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4355
4356         * mule-charset.c (Fput_char_attribute): Convert each element of
4357         VALUE to GL position if ATTRIBUTE is a GR-set,
4358
4359 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4360
4361         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4362         coded-charset is a GR-set.
4363
4364 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4365
4366         * mule-charset.c (Fput_char_attribute): Check each element of
4367         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4368
4369 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4370
4371         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4372         UTF-2000.
4373         (Qethiopic_ucs): New variable in UTF-2000.
4374         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4375         (complex_vars_of_mule_charset): Add new coded-charset
4376         `ethiopic-ucs' in UTF-2000.
4377
4378         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4379         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4380         9)'.
4381         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4382         10)'.
4383         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4384
4385 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4386
4387         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4388         `ascii'.
4389
4390 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4391
4392         * mule-charset.c (Vcharacter_variant_table): New variable.
4393         (Q_ucs): New variable.
4394         (Fchar_variants): New function.
4395         (Fput_char_attribute): Register `->ucs' value to
4396         `Vcharacter_variant_table'.
4397         (syms_of_mule_charset): Add new function `char-variants' and new
4398         symbol `->ucs'.
4399         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4400
4401 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4402
4403         * mule-charset.c (get_char_code_table): Allow negative character
4404         code.
4405         (put_char_code_table): Likewise.
4406         (Vcharacter_composition_table): New variable.
4407         (Q_decomposition): New variable.
4408         (Qwide): New variable.
4409         (Qnarrow): New variable.
4410         (Qcompat): New variable.
4411         (QnoBreak): New variable.
4412         (Qsuper): New variable.
4413         (Qfraction): New variable.
4414         (to_char_code): New function.
4415         (Fget_composite_char): New function.
4416         (Fput_char_attribute): Register `->decomposition' value to
4417         `Vcharacter_composition_table'.
4418         (syms_of_mule_charset): Add new function `get-composite-char', new
4419         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4420         `super' and `fraction'.
4421         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4422
4423 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4424
4425         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4426         character; copy the return value.
4427
4428 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4429
4430         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4431
4432         * mule-charset.c (range_charset_code_point): Must use make_int.
4433         (split_builtin_char): New function.
4434
4435 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4436
4437         * mule-charset.c (char_byte_table): Change name from
4438         "char-code-table" to "char-byte-table".
4439         (mark_char_code_table): New function.
4440         (char_code_table_equal): New function.
4441         (char_code_table_hash): New function.
4442         (char_code_table_description): New constant.
4443         (char_code_table): New type.
4444         (make_char_code_table): New function.
4445         (copy_char_code_table): New function.
4446         (get_char_code_table): Modify for `char_code_table' type.
4447         (put_char_code_table): Likewise.
4448         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4449         (Kashiwara).
4450
4451         * char-ucs.h (char_code_table): New type.
4452         (XCHAR_CODE_TABLE): New macro.
4453         (XSETCHAR_CODE_TABLE): New macro.
4454         (CHAR_CODE_TABLE_P): New macro.
4455         (GC_CHAR_CODE_TABLE_P): New macro.
4456         (struct Lisp_Char_Code_Table): New structure.
4457
4458 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4459
4460         * mule-charset.c (Fmake_charset): Setup byte_offset for
4461         {94|96}^n-set.
4462
4463 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4464
4465         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4466         character.
4467
4468 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4469
4470         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4471         is found.
4472
4473 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4474
4475         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4476         charset, it is regarded as a charset.
4477         (put_char_attribute): New function in UTF-2000.
4478         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4479         charset, mapping-table of the charset is modified.
4480         (Fdefine_char): New function in UTF-2000.
4481         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4482         `Fput_char_attribute'.
4483         (syms_of_mule_charset): Add new function `define-char' and new
4484         symbol `ucs' in UTF-2000.
4485         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4486
4487 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4488
4489         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4490         non-UTF-2000 configuration.
4491
4492 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4493
4494         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4495         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4496
4497         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4498         deleted.
4499         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4500         (Fset_charset_mapping_table): Likewise.
4501
4502         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4503         (CHARSET_ENCODING_TABLE): Delete.
4504         (XCHARSET_ENCODING_TABLE): Delete.
4505         (charset_code_point): New interface.
4506
4507 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4508
4509         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4510         instead of `charset_get_byte1' and `charset_get_byte2'.
4511
4512         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4513         (charset_get_byte2): Deleted.
4514
4515 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4516
4517         * char-ucs.h (SPLIT_CHAR): New inline function.
4518         (breakup_char_1): Use `SPLIT_CHAR'.
4519
4520         * mule-charset.c (range_charset_code_point): New function.
4521         (charset_code_point): New function.
4522
4523         * char-ucs.h (range_charset_code_point): New interface.
4524         (breakup_char_1): Use `range_charset_code_point'.
4525
4526 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4527
4528         * mule-charset.c (Fmake_charset): Delete unused local variable
4529         `code_offset'.
4530
4531         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4532         (breakup_char_1): Find a charset and code-point in
4533         `Vcharacter_attribute_table'.
4534
4535 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4536
4537         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4538         to 0.10 (Yao).
4539
4540 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4541
4542         * mule-charset.c (Vcharacter_attribute_table): New variable.
4543         (Fchar_attribute_alist): New function.
4544         (Fget_char_attribute): New function.
4545         (Fput_char_attribute): New function.
4546         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4547         too.
4548         (syms_of_mule_charset): Add new function `char-attribute-alist',
4549         `get-char-attribute' and `put-char-attribute'.
4550         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4551
4552 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4553
4554         * mule-charset.c (Fmake_charset): Just use
4555         `get_unallocated_leading_byte'.
4556
4557         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4558         sets; don't use final-byte based number for private sets.
4559
4560 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4561
4562         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4563         integer.
4564
4565 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4566
4567         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4568         to 0.9.
4569
4570 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4571
4572         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4573         of `CHAR_LEADING_BYTE' in UTF-2000.
4574
4575         * insdel.c (find_charsets_in_bufbyte_string): Use
4576         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4577         (find_charsets_in_emchar_string): Likewise.
4578
4579         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4580         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4581
4582         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4583         (CHAR_CHARSET_ID): New macro.
4584
4585 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4586
4587         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4588         charset-id - MIN_LEADING_BYTE.
4589         (put_char_table): Likewise.
4590
4591 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4592
4593         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4594         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4595         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4596         (CHARSET_ID_OFFSET): New macro.
4597         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4598         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4599         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4600         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4601         4).
4602         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4603         5).
4604         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4605         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4606         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4607         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4608         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4609
4610 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4611
4612         * mule-charset.c (next_allocated_leading_byte): New variable in
4613         UTF-2000.
4614         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4615         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4616         (get_unallocated_leading_byte): Simply use
4617         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4618         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4619         UTF-2000.
4620
4621         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4622         (MAX_LEADING_BYTE_PRIVATE): New macro.
4623         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4624         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4625
4626 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4627
4628         * mule-charset.c (Fmake_charset): Allocate final-byte based
4629         charset-id for 94-set, 96-set and 94x94-set.
4630
4631 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4632
4633         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4634         ambiguous `else'.
4635         (Fmake_charset): Likewise.
4636         (complex_vars_of_mule_charset): Modify the font registry of
4637         `ucs-bmp' not to match `Ethiopic-Unicode'.
4638
4639 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4640
4641         * mule-charset.c (complex_vars_of_mule_charset): Add font
4642         registory of `ucs-bmp'.
4643
4644 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4645
4646         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4647         coded-charsets in `default-coded-charset-priority-list' when
4648         breaking up a character.
4649
4650         * mule-charset.c (Vcharset_latin_viscii): New variable.
4651         (Qlatin_viscii): New variable.
4652         (make_charset): Don't use `decoding_table'.
4653         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4654         byte_offset.
4655         (Fset_charset_mapping_table): New implementation.
4656         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4657         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4658         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4659         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4660         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4661         charset `latin_viscii'.
4662
4663         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4664         (CHARSET_TYPE_94X94): Change to 1 from 2.
4665         (CHARSET_TYPE_96): Change to 2 from 1.
4666         (CHARSET_TYPE_128): New macro.
4667         (CHARSET_TYPE_128X128): Change to 5 from 4.
4668         (CHARSET_TYPE_256): New macro.
4669         (CHARSET_TYPE_256X256): Change to 7 from 5.
4670         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4671
4672 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4673
4674         * text-coding.c (char_encode_shift_jis): Refer
4675         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4676         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4677
4678         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4679         (char_byte_table_equal): New function in UTF-2000.
4680         (char_byte_table_hash): New function in UTF-2000.
4681         (char_byte_table_description): New constant in UTF-2000.
4682         (char_byte_table): New type in UTF-2000.
4683         (make_char_byte_table): New function in UTF-2000.
4684         (copy_char_byte_table): New function in UTF-2000.
4685         (make_char_code_table): New macro in UTF-2000.
4686         (get_char_code_table): New function in UTF-2000.
4687         (put_char_code_table): New function in UTF-2000.
4688         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4689         (charset_description): Add setting in UTF-2000.
4690         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4691         `CHARSET_TO_BYTE1_TABLE(cs)'.
4692         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4693         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4694         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4695         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4696         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4697         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4698         `CHARSET_TO_BYTE2_TABLE(cs)'.
4699
4700         * char-ucs.h (char_byte_table): New type.
4701         (XCHAR_BYTE_TABLE): New macro.
4702         (XSETCHAR_BYTE_TABLE): New macro.
4703         (CHAR_BYTE_TABLE_P): New macro.
4704         (GC_CHAR_BYTE_TABLE_P): New macro.
4705         (struct Lisp_Char_Byte_Table): New structure.
4706         (get_char_code_table): New interface.
4707         (Emchar_to_byte_table): Deleted.
4708         (get_byte_from_character_table): Deleted.
4709         (struct Lisp_Charset): Add `encoding_table'; delete
4710         `to_byte1_table' and `to_byte2_table'.
4711         (CHARSET_ENCODING_TABLE): New macro.
4712         (CHARSET_TO_BYTE1_TABLE): Deleted.
4713         (CHARSET_TO_BYTE2_TABLE): Deleted.
4714         (XCHARSET_ENCODING_TABLE): New macro.
4715         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4716         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4717
4718 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4719
4720         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4721         `vietnamese-viscii-*'.
4722
4723 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4724
4725         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4726         (Qvietnamese_viscii_upper): New variable.
4727         (Fdefine_charset_alias): New function.
4728         (syms_of_mule_charset): Add new function `define-charset-alias'.
4729         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4730         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4731         `latin-viscii-*'.
4732
4733 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4734
4735         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4736         (MAX_CHAR_OBS_94x94): New macro.
4737         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4738         for 94x94 sets.
4739
4740         * mule-charset.c (put_byte_from_character_table): Change unit size
4741         from 128 to 256.
4742         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4743         not defined.
4744         (Fmake_reverse_direction_charset): Modify dummy argument of
4745         `make_charset' for non-UTF-2000 environment.
4746
4747 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4748
4749         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4750
4751         * mule-charset.c (destroy_byte_from_character_table): New macro.
4752         (latin_jisx0201_to_ucs): Deleted.
4753         (latin_iso8859_2_to_ucs): Deleted.
4754         (latin_iso8859_3_to_ucs): Deleted.
4755         (latin_iso8859_4_to_ucs): Deleted.
4756         (latin_iso8859_9_to_ucs): Deleted.
4757         (latin_viscii_lower_to_ucs): Deleted.
4758         (latin_viscii_upper_to_ucs): Deleted.
4759         (mark_charset): Mark `cs->decoding_table'.
4760         (Fcharset_mapping_table): Fix DOC-string.
4761         (Fset_charset_mapping_table): New function.
4762         (syms_of_mule_charset): Add nwe function
4763         `set-charset-mapping-table'.
4764         (complex_vars_of_mule_charset): Don't setup and use
4765         `latin_*_to_ucs'.
4766
4767 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4768
4769         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4770         charset.
4771
4772 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4773
4774         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4775         (Vcharset_katakana_jisx0208): New variable.
4776         (Qhiragana_jisx0208): New variable.
4777         (Qkatakana_jisx0208): New variable.
4778         (make_charset): Add new argument `byte_offset'.
4779         (charset_get_byte1): Modify for new coded-charset definition; use
4780         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4781         `XCHARSET_BYTE_OFFSET'.
4782         (Fmake_charset): Modify for `make_charset'.
4783         (Fmake_reverse_direction_charset): Likewise.
4784         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4785         `katakana-jisx0208'.
4786         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4787         `.'  in font registry of charset `katakana-jisx0201',
4788         `latin-jisx0201', `vietnamese-viscii-lower' and
4789         `vietnamese-viscii-upper'; modify DOC-string of charset
4790         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4791         registry of charset `japanese-jisx0208' not to use font for JIS
4792         X0208:1990; add new charset `hiragana-jisx0208' and
4793         `katakana-jisx0208'.
4794
4795         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4796         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4797         (struct Lisp_Charset): Add `byte_offset'.
4798         (CHARSET_BYTE_OFFSET): New macro.
4799         (XCHARSET_UCS_MIN): New macro.
4800         (XCHARSET_UCS_MAX): New macro.
4801         (XCHARSET_CODE_OFFSET): New macro.
4802         (XCHARSET_BYTE_OFFSET): New macro.
4803         (MIN_CHAR_HIRAGANA): New macro.
4804         (MAX_CHAR_HIRAGANA): New macro.
4805         (MIN_CHAR_KATAKANA): New macro.
4806         (MAX_CHAR_KATAKANA): New macro.
4807         (MAKE_CHAR): Modify for new coded-charset definition; use
4808         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4809         `XCHARSET_BYTE_OFFSET'.
4810
4811 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4812
4813         * mule-charset.c (CHAR96): Deleted.
4814         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4815         <Lisp_Object>.
4816         (latin_iso8859_2_to_ucs): Likewise.
4817         (latin_iso8859_3_to_ucs): Likewise.
4818         (latin_iso8859_4_to_ucs): Likewise.
4819         (latin_iso8859_9_to_ucs): Likewise.
4820         (latin_viscii_lower_to_ucs): Likewise.
4821         (latin_viscii_upper_to_ucs): Likewise.
4822         (latin_tcvn5712_to_ucs): Commented out.
4823         (make_charset): Change type of argument `decoding_table' from
4824         <Emchar*> to <Lisp_Object> [vector of characters].
4825         (Fmake_charset): Modify for `make_charset'.
4826         (Fmake_reverse_direction_charset): Likewise.
4827         (Fcharset_mapping_table): New function in UTF-2000.
4828         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4829         UTF-2000.
4830         (complex_vars_of_mule_charset): Modify for type change of
4831         `*_to_ucs'; modify for `make_charset'.
4832
4833         * char-ucs.h (struct Lisp_Charset): Change type of
4834         `decoding_table' from <Emchar*> to <Lisp_Object>.
4835         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4836
4837 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4838
4839         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4840         error with non-UTF-2000-Mule.
4841
4842 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4843
4844         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4845         in lisp again].
4846         (Vcharset_chinese_cns11643_4): Likewise.
4847         (Vcharset_chinese_cns11643_5): Likewise.
4848         (Vcharset_chinese_cns11643_6): Likewise.
4849         (Vcharset_chinese_cns11643_7): Likewise.
4850         (Qchinese_cns11643_3): Likewise.
4851         (Qchinese_cns11643_4): Likewise.
4852         (Qchinese_cns11643_5): Likewise.
4853         (Qchinese_cns11643_6): Likewise.
4854         (Qchinese_cns11643_7): Likewise.
4855         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4856         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4857         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4858         (complex_vars_of_mule_charset): Likewise.
4859
4860 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4861
4862         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4863         96-set.
4864         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4865         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4866
4867 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4868
4869         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4870         0xFF60.
4871         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4872         (breakup_char_1): Likewise.
4873
4874         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4875         one of them includes the specified character.
4876
4877 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4878
4879         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4880
4881 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4882
4883         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4884
4885 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4886
4887         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4888         definition for non-UTF-2000 Mule.
4889         (latin_iso8859_3_to_ucs): Likewise.
4890         (latin_iso8859_4_to_ucs): Likewise.
4891         (latin_iso8859_9_to_ucs): Likewise.
4892         (latin_jisx0201_to_ucs): Likewise.
4893         (MIN_CHAR_THAI): Likewise.
4894         (MAX_CHAR_THAI): Likewise.
4895         (MIN_CHAR_GREEK): Likewise.
4896         (MAX_CHAR_GREEK): Likewise.
4897         (MIN_CHAR_HEBREW): Likewise.
4898         (MAX_CHAR_HEBREW): Likewise.
4899         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4900         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4901         (MIN_CHAR_CYRILLIC): Likewise.
4902         (MAX_CHAR_CYRILLIC): Likewise.
4903
4904 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4905
4906         * char-ucs.h (breakup_char_1): Use
4907         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4908         thai-tis620 and katakana-jisx0201 area.
4909
4910 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4911
4912         * char-ucs.h (breakup_char_1): Use
4913         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4914         area.
4915
4916         * text-coding.c (reset_encoding_stream): Fixed.
4917         (char_encode_ucs4): Delete `& 255'.
4918
4919         * char-ucs.h (breakup_char_1): Use
4920         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4921
4922 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4923
4924         * file-coding.c (Fmake_coding_system): Don't set up
4925         `codesys->fixed.size'.
4926         (encode_coding_no_conversion): Don't refer
4927         `str->codesys->fixed.size'.
4928
4929 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4930
4931         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4932         (latin_a_char_to_byte1): Deleted.
4933         (latin_a_char_to_byte2): Deleted.
4934
4935 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4936
4937         * mule-charset.c (make_charset): Add new argument `ucs_min',
4938         `ucs_max' and `code_offset'.
4939         (charset_get_byte1): New implementation [delete specific charset
4940         depended implementations].
4941         (Fmake_charset): Modify for `make_charset'.
4942         (Fmake_reverse_direction_charset): Likewise.
4943         (complex_vars_of_mule_charset): Likewise.
4944
4945         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4946         `code_offset'.
4947         (CHARSET_UCS_MIN): New macro.
4948         (CHARSET_UCS_MAX): New macro.
4949         (CHARSET_CODE_OFFSET): New macro.
4950         (MAKE_CHAR): Delete charset depended definitions [except
4951         katakana-jisx0201].
4952
4953 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4954
4955         * char-ucs.h (breakup_char_1): Use
4956         `Vdefault_coded_charset_priority_list' for C0-Controls,
4957         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4958
4959 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4960
4961         * char-ucs.h (charset_get_byte1): New function.
4962         (XCHARSET_GET_BYTE1): Deleted.
4963         (charset_get_byte2): New function.
4964         (XCHARSET_GET_BYTE2): Deleted.
4965         (Vdefault_coded_charset_priority_list): New external variable.
4966         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4967         `Vdefault_preferred_coded_charset_list'.
4968
4969         * mule-charset.c (charset_get_byte1): New function.
4970         (charset_get_byte2): New function.
4971         (Vdefault_coded_charset_priority_list): New variable.
4972         (vars_of_mule_charset): Add new variable
4973         `default-coded-charset-priority-list'.
4974
4975 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4976
4977         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4978         (XCHARSET_GET_BYTE2): New inline function.
4979         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4980         `XCHARSET_GET_BYTE2'.
4981
4982 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4983
4984         * mule-charset.c (make_charset): Initialize
4985         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4986         NULL if table is not defined.
4987
4988 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4989
4990         * text-coding.c (char_encode_shift_jis): Use
4991         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4992         `ucs_to_latin_jisx0201'.
4993
4994         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4995         (ucs_to_latin_iso8859_2): Deleted.
4996         (ucs_to_latin_iso8859_3): Deleted.
4997         (ucs_to_latin_iso8859_4): Deleted.
4998         (ucs_to_latin_iso8859_9): Deleted.
4999         (ucs_to_latin_viscii_lower): Deleted.
5000         (ucs_to_latin_viscii_upper): Deleted.
5001         (ucs_to_latin_tcvn5712): Deleted.
5002         (make_charset): Add new argument `decoding_table'; set up
5003         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5004         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5005         `decoding_table' is defined in UTF-2000.
5006         (Fmake_charset): Modify for `make_charset'.
5007         (Fmake_reverse_direction_charset): Likewise.
5008         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5009         and `GENERATE_96_SET'.
5010
5011         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5012         (ucs_to_latin_jisx0201): Deleted.
5013         (latin_iso8859_2_to_ucs): Deleted.
5014         (ucs_to_latin_iso8859_2): Deleted.
5015         (latin_iso8859_3_to_ucs): Deleted.
5016         (ucs_to_latin_iso8859_3): Deleted.
5017         (latin_iso8859_4_to_ucs): Deleted.
5018         (ucs_to_latin_iso8859_4): Deleted.
5019         (latin_iso8859_9_to_ucs): Deleted.
5020         (ucs_to_latin_iso8859_9): Deleted.
5021         (latin_viscii_lower_to_ucs): Deleted.
5022         (ucs_to_latin_viscii_lower): Deleted.
5023         (latin_viscii_upper_to_ucs): Deleted.
5024         (ucs_to_latin_viscii_upper): Deleted.
5025         (struct Lisp_Charset): Renamed `encoding_table' to
5026         `to_byte1_table'; add `to_byte2_table'.
5027         (CHARSET_DECODING_TABLE): New macro.
5028         (CHARSET_TO_BYTE1_TABLE): New macro.
5029         (CHARSET_TO_BYTE2_TABLE): New macro.
5030         (XCHARSET_DECODING_TABLE): New macro.
5031         (XCHARSET_TO_BYTE1_TABLE): New macro.
5032         (XCHARSET_TO_BYTE2_TABLE): New macro.
5033         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5034         tables.
5035         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5036         don't use `ucs_to_*' tables.
5037
5038 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5039
5040         * text-coding.c (Fmake_coding_system): Don't set up
5041         `codesys->fixed.size'.
5042         (encode_coding_no_conversion): Use `if' instead of `switch'.
5043
5044         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5045
5046 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5047
5048         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5049         (Fmake_charset): Modify for `make_charset'.
5050         (Fmake_reverse_direction_charset): Likewise.
5051         (complex_vars_of_mule_charset): Likewise.
5052
5053 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5054
5055         * text-coding.c (char_encode_shift_jis): Use table
5056         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5057
5058 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5059
5060         * text-coding.c (text_encode_generic): Use `if' instead of
5061         `switch'.
5062         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5063         decode JIS-Latin.
5064
5065 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5066
5067         * text-coding.c (encode_coding_sjis): Deleted.
5068         (char_encode_shift_jis): New function.
5069         (char_finish_shift_jis): New function.
5070         (reset_encoding_stream): Set up `encode_char' and `finish' for
5071         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5072         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5073         (char_encode_utf8): Treat `eol_type'.
5074
5075 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5076
5077         * file-coding.c (decode_coding_iso2022): Use
5078         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5079
5080 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5081
5082         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5083         to 0.7 (Hirano).
5084
5085 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5086
5087         * char-lb.h (CHAR_COLUMNS): New macro.
5088
5089 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5090
5091         * text-coding.c (char_encode_ucs4): New function.
5092         (char_finish_ucs4): New function.
5093         (encode_coding_ucs4): Deleted.
5094         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5095         (text_encode_generic): Delete local variable `charset' and `half'.
5096         (ucs_to_mule_table): Deleted.
5097         (mule_to_ucs_table): Deleted.
5098         (Fset_ucs_char): Deleted.
5099         (ucs_to_char): Deleted.
5100         (Fucs_char): Deleted.
5101         (Fset_char_ucs): Deleted.
5102         (Fchar_ucs): Deleted.
5103         (decode_ucs4): Deleted.
5104         (mule_char_to_ucs4): Deleted.
5105         (encode_ucs4): Deleted.
5106         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5107         (decode_coding_utf8): Likewise.
5108         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5109         (char_encode_iso2022): Fixed.
5110         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5111         `Fset_char_ucs' and `Fchar_ucs'.
5112         (complex_vars_of_file_coding): Don't initialize
5113         `ucs_to_mule_table'.
5114
5115         * objects-tty.c (tty_initialize_font_instance): Don't use
5116         `XCHARSET_COLUMNS'.
5117
5118         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5119         UTF-2000.
5120
5121         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5122         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5123
5124         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5125         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5126         (emchar_string_displayed_columns): Likewise.
5127
5128         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5129         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5130         (string_column_at_point): Likewise.
5131         (Fmove_to_column): Likewise.
5132
5133         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5134         `encoding_table' and `decoding_table'.
5135         (CHARSET_REP_BYTES): Deleted.
5136         (XCHARSET_REP_BYTES): Deleted.
5137         (XCHARSET_COLUMNS): Deleted.
5138         (CHAR_COLUMNS): New macro.
5139         (lookup_composite_char): Deleted unconditionally.
5140         (composite_char_string): Likewise.
5141
5142 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5143
5144         * char-ucs.h (Emchar_to_byte_table): New type.
5145         (get_byte_from_character_table): New function interface.
5146         (Vcharset_latin_jisx0201): New variable.
5147         (latin_jisx0201_to_ucs): New variable.
5148         (ucs_to_latin_jisx0201): New variable.
5149         (Vcharset_latin_iso8859_2): New variable.
5150         (latin_iso8859_2_to_ucs): New variable.
5151         (ucs_to_latin_iso8859_2): New variable.
5152         (Vcharset_latin_iso8859_3): New variable.
5153         (latin_iso8859_3_to_ucs): New variable.
5154         (ucs_to_latin_iso8859_3): New variable.
5155         (Vcharset_latin_iso8859_4): New variable.
5156         (latin_iso8859_4_to_ucs): New variable.
5157         (ucs_to_latin_iso8859_4): New variable.
5158         (Vcharset_latin_iso8859_9): New variable.
5159         (latin_iso8859_9_to_ucs): New variable.
5160         (ucs_to_latin_iso8859_9): New variable.
5161         (Vcharset_latin_viscii_lower): New variable.
5162         (latin_viscii_lower_to_ucs): New variable.
5163         (ucs_to_latin_viscii_lower): New variable.
5164         (Vcharset_latin_viscii_upper): New variable.
5165         (latin_viscii_upper_to_ucs): New variable.
5166         (ucs_to_latin_viscii_upper): New variable.
5167         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5168         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5169         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5170         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5171         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5172         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5173         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5174         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5175         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5176         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5177
5178         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5179         (Vcharset_latin_viscii_upper): New variable.
5180         (make_byte_from_character_table): New function.
5181         (put_byte_from_character_table): New function.
5182         (get_byte_from_character_table): New function.
5183         (CHAR96): New macro.
5184         (ucs_to_latin_jisx0201): New variable.
5185         (latin_jisx0201_to_ucs): New variable.
5186         (ucs_to_latin_iso8859_2): New variable.
5187         (latin_iso8859_2_to_ucs): New variable.
5188         (ucs_to_latin_iso8859_3): New variable.
5189         (latin_iso8859_3_to_ucs): New variable.
5190         (ucs_to_latin_iso8859_4): New variable.
5191         (latin_iso8859_4_to_ucs): New variable.
5192         (ucs_to_latin_iso8859_9): New variable.
5193         (latin_iso8859_9_to_ucs): New variable.
5194         (ucs_to_latin_viscii_lower): New variable.
5195         (latin_viscii_lower_to_ucs): New variable.
5196         (ucs_to_latin_viscii_upper): New variable.
5197         (latin_viscii_upper_to_ucs): New variable.
5198         (ucs_to_latin_tcvn5712): New variable.
5199         (latin_tcvn5712_to_ucs): New variable.
5200         (Qlatin_viscii_lower): New variable.
5201         (Qlatin_viscii_upper): New variable.
5202         (syms_of_mule_charset): Set up new symbol
5203         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5204         (complex_vars_of_mule_charset): Set up new charset
5205         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5206         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5207         `ucs_to_<CHARSET>' tables.
5208
5209 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5210
5211         * text-coding.c: New file.
5212
5213 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5214
5215         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5216
5217         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5218         (MAKE_CHAR): Modify for `ucs-bmp'.
5219         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5220         non-MULE characters of BMP.
5221
5222 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5223
5224         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5225         to 0.6.
5226
5227 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5228
5229         * lstream.h:
5230         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5231         - Include character.h for `CHAR_ASCII_P'.
5232
5233         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5234
5235         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5236         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5237
5238         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5239         (BYTE_C0_P): Likewise.
5240         (BYTE_C1_P): Likewise.
5241         (Lstream_get_emchar_1): Likewise.
5242         (Lstream_fput_emchar): Likewise.
5243         (Lstream_funget_emchar): Likewise.
5244         (copy_internal_to_external): Likewise.
5245         (copy_external_to_internal): Likewise.
5246
5247         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5248         (BYTE_C0_P): Likewise.
5249         (BYTE_C1_P): Likewise.
5250         (Lstream_get_emchar_1): Likewise.
5251         (Lstream_fput_emchar): Likewise.
5252         (Lstream_funget_emchar): Likewise.
5253         (copy_internal_to_external): Likewise.
5254         (copy_external_to_internal): Likewise.
5255
5256         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5257         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5258
5259         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5260         (BYTE_ASCII_P): Moved to mb-1byte.h.
5261
5262 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5263
5264         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5265
5266         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5267         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5268         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5269         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5270         (VALIDATE_CHARPTR_FORWARD): Likewise.
5271         (simple_charptr_emchar): Moved to mb-multibyte.h.
5272         (simple_set_charptr_emchar): Likewise.
5273         (simple_charptr_copy_char): Likewise.
5274         (non_ascii_charptr_emchar): Likewise.
5275         (non_ascii_set_charptr_emchar): Likewise.
5276         (non_ascii_charptr_copy_char): Likewise.
5277         (charptr_emchar): Moved to mb-*byte.h.
5278         (set_charptr_emchar): Likewise.
5279         (charptr_copy_char): Likewise.
5280
5281         * mb-1byte.h, mb-multibyte.h: New files.
5282
5283 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5284
5285         * mb-utf-8.h (MULTIBYTE): New macro.
5286         (MAX_EMCHAR_LEN): Moved from buffer.h.
5287         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5288
5289         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5290
5291         * mb-lb.h, multibyte.h: New files.
5292
5293         * char-1byte.h (Charset_ID): Moved from buffer.h.
5294         (MIN_LEADING_BYTE): Likewise.
5295         (LEADING_BYTE_ASCII): Likewise.
5296         (NUM_LEADING_BYTES): Likewise.
5297         (CHARSETP): Likewise.
5298         (CHARSET_BY_LEADING_BYTE): Likewise.
5299         (XCHARSET_LEADING_BYTE): Likewise.
5300         (XCHARSET_GRAPHIC): Likewise.
5301         (XCHARSET_COLUMNS): Likewise.
5302         (XCHARSET_DIMENSION): Likewise.
5303         (CHAR_CHARSET): Likewise.
5304         (CHAR_LEADING_BYTE): Likewise.
5305         (BREAKUP_CHAR): Likewise.
5306         (Vcharset_ascii): Likewise.
5307
5308         * buffer.h: Include multibyte.h unconditionally.
5309         (VALID_CHARPTR_P): Moved to multibyte.h.
5310         (ASSERT_VALID_CHARPTR): Likewise.
5311         (REAL_INC_CHARPTR): Likewise.
5312         (REAL_INC_CHARBYTIND): Likewise.
5313         (REAL_DEC_CHARPTR): Likewise.
5314         (INC_CHARPTR): Likewise.
5315         (INC_CHARBYTIND): Likewise.
5316         (DEC_CHARPTR): Likewise.
5317         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5318         (VALIDATE_CHARPTR_FORWARD): Likewise.
5319         (charptr_n_addr): Likewise.
5320         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5321         (simple_charptr_emchar): Moved to multibyte.h.
5322         (simple_set_charptr_emchar): Likewise.
5323         (simple_charptr_copy_char): Likewise.
5324         (non_ascii_charptr_emchar): Likewise.
5325         (non_ascii_set_charptr_emchar): Likewise.
5326         (non_ascii_charptr_copy_char): Likewise.
5327         (charptr_emchar): Likewise.
5328         (set_charptr_emchar): Likewise.
5329         (charptr_copy_char): Likewise.
5330         (charptr_emchar_n): Likewise.
5331         (Charset_ID): Moved to char-1byte.h.
5332         (Vcharset_ascii): Likewise.
5333         (CHAR_CHARSET): Likewise.
5334         (CHAR_LEADING_BYTE): Likewise.
5335         (LEADING_BYTE_ASCII): Likewise.
5336         (NUM_LEADING_BYTES): Likewise.
5337         (MIN_LEADING_BYTE): Likewise.
5338         (CHARSETP): Likewise.
5339         (CHARSET_BY_LEADING_BYTE): Likewise.
5340         (XCHARSET_LEADING_BYTE): Likewise.
5341         (XCHARSET_GRAPHIC): Likewise.
5342         (XCHARSET_COLUMNS): Likewise.
5343         (XCHARSET_DIMENSION): Likewise.
5344         (BREAKUP_CHAR): Likewise.
5345
5346 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5347
5348         * character.h: Add document about interface for characters.
5349
5350         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5351         (MAKE_CHAR): Delete comment about
5352         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5353         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5354         (BREAKUP_CHAR): Modify name of arguments.
5355         (CHAR_CHARSET): Modify name of argument.
5356
5357         * buffer.h: Delete document about Emchar accessors.
5358
5359 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5360
5361         * character.h (CHAR_INTP): Moved from buffer.h
5362         (CHAR_OR_CHAR_INTP): Likewise.
5363         (XCHAR_OR_CHAR_INT): Likewise.
5364         (CHECK_CHAR_COERCE_INT): Likewise.
5365
5366         * buffer.h (CHAR_INTP): Moved to character.h
5367         (CHAR_OR_CHAR_INTP): Likewise.
5368         (XCHAR_OR_CHAR_INT): Likewise.
5369         (CHECK_CHAR_COERCE_INT): Likewise.
5370
5371 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5372
5373         * character.h:
5374         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5375         - Include char-1byte.h, char-lb.h or char-ucs.h.
5376
5377         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5378
5379         * buffer.h: Include character unconditionally.
5380         (valid_char_p): Moved to char-*.h.
5381         (non_ascii_valid_char_p): Moved to char-lb.h.
5382
5383         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5384
5385 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5386
5387         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5388         in UTF-2000 because it is not ported yet and not to use
5389         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5390         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5391         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5392
5393         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5394         (CHAR_ASCII_P): Moved from character.h.
5395
5396         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5397         (CHAR_ASCII_P): Likewise.
5398         (CHAR_FIELD1_MASK): Deleted.
5399         (CHAR_FIELD2_MASK): Deleted.
5400         (CHAR_FIELD3_MASK): Deleted.
5401         (MAX_CHAR_BASIC_LATIN): New macro.
5402         (CHAR_FIELD1): Deleted.
5403         (CHAR_FIELD2_INTERNAL): Deleted.
5404         (CHAR_FIELD3_INTERNAL): Deleted.
5405         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5406         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5407         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5408         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5409         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5410         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5411         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5412         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5413         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5414         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5415         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5416         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5417         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5418         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5419         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5420         (MIN_CHAR_COMPOSITION): Deleted.
5421         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5422         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5423
5424 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5425
5426         * buffer.h: Include mb-utf-8.h in UTF-2000.
5427
5428         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5429
5430         * mb-utf-8.h: New file.
5431
5432 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5433
5434         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5435         instead of `int'.
5436
5437         * mule-charset.h, buffer.h (Charset_ID): New type.
5438
5439 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5440
5441         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5442         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5443         instead of `MULE_CHAR_PRIVATE_OFFSET',
5444         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5445         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5446         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5447
5448         * character.h (Vcharset_japanese_jisx0212): New variable
5449         definition.
5450
5451 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5452
5453         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5454         (charset_by_attributes): Delete array about direction.
5455         (latin_a_char_to_charset): New variable in UTF-2000.
5456         (latin_a_char_to_byte1): New variable in UTF-2000.
5457         (latin_a_char_to_byte2): New variable in UTF-2000.
5458         (Qucs_bmp): New variable.
5459         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5460         `Bufbyte'.
5461         (next_allocated_2_byte_leading_byte): Likewise.
5462         (non_ascii_set_charptr_emchar): Likewise.
5463         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5464         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5465         `charset_by_attributes'.
5466         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5467         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5468         and `CHARSET_BY_LEADING_BYTE'.
5469         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5470         `utf-2000-version' to `vars_of_mule_charset'.
5471         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5472         define `leading-code-private-11' in UTF-2000; move setting of
5473         `utf-2000-version' from `syms_of_mule_charset'.
5474         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5475         UTF-2000.
5476
5477         * character.h (Charset_ID): New type.
5478         (LEADING_BYTE_UCS_BMP): New macro.
5479         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5480         (CHARSET_ID_OFFSET_94): New macro.
5481         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5482         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5483         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5484         final-byte.
5485         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5486         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5487         (CHARSET_ID_OFFSET_96): New macro.
5488         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5489         CHARSET_ID_OFFSET_96 and final-byte.
5490         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5491         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5492         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5493         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5494         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5495         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5496         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5497         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5498         (LEADING_BYTE_THAI_TIS620): Likewise.
5499         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5500         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5501         (CHARSET_ID_OFFSET_94x94): New macro.
5502         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5503         CHARSET_ID_OFFSET_94x94 and final-byte.
5504         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5505         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5506         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5507         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5508         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5509         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5510         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5511         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5512         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5513         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5514         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5515         (CHARSET_TYPE_128X128): New macro.
5516         (CHARSET_TYPE_256X256): New macro.
5517         (XCHARSET_PRIVATE_P): Delete unconditionally.
5518         (charset_by_attributes): Delete array about direction.
5519         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5520         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5521         (MIN_CHAR_94): New macro.
5522         (MAX_CHAR_94): New macro.
5523         (MIN_CHAR_96): New macro.
5524         (MAX_CHAR_96): New macro.
5525         (MIN_CHAR_94x94): New macro.
5526         (MAX_CHAR_94x94): New macro.
5527         (MIN_CHAR_96x96): New macro.
5528         (MAX_CHAR_96x96): New macro.
5529         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5530         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5531         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5532         - 32)'.
5533         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5534         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5535         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5536         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5537         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5538         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5539         `XCHARSET_LEADING_BYTE' to make code-point.
5540         (latin_a_char_to_charset): New variable.
5541         (latin_a_char_to_byte1): New variable.
5542         (latin_a_char_to_byte2): New variable.
5543         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5544         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5545         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5546
5547         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5548         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5549         (find_charsets_in_emchar_string): Likewise.
5550         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5551
5552         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5553         `int'.
5554         (decode_coding_iso2022): Likewise.
5555
5556         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5557         of `unsigned char'.
5558
5559         * redisplay.c (redisplay_text_width_emchar_string): Use
5560         `Charset_ID' instead of `unsigned char'.
5561         (redisplay_frame_text_width_string): Likewise.
5562
5563         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5564         `unsigned char'.
5565
5566         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5567         instead of `unsigned char'.
5568         (face_cachel_charset_font_metric_info): Likewise.
5569
5570         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5571         (get_non_ascii_char_table_value): Likewise.
5572         (get_char_table): Likewise.
5573         (put_char_table): Likewise.
5574         (map_over_other_charset): Likewise.
5575         (map_char_table): Likewise.
5576
5577         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5578         instead of `unsigned char'.
5579
5580 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5581
5582         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5583         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5584
5585         * mule-charset.c (leading_code_private_11): Don't define in
5586         UTF-2000.
5587
5588         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5589         in UTF-2000 because it is not ported yet and not to use
5590         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5591
5592 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5593
5594         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5595
5596 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5597
5598         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5599         in UTF-2000.
5600
5601         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5602         of unsigned char to store leading-byte.
5603
5604         * chartab.c (get_non_ascii_char_table_value): Don't use
5605         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5606
5607         * file-coding.c (encode_coding_big5): Delete bogus implementation
5608         in UTF2000.
5609
5610         * character.h (LEADING_BYTE_*): Delete definition for
5611         non-UTF-2000.
5612         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5613         (LEADING_BYTE_PREFIX_P): Deleted.
5614         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5615         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5616         (BUFBYTE_LEADING_BYTE_P): Deleted.
5617         (CHARSET_PRIVATE_P): Deleted unconditionally.
5618         (rep_bytes_by_first_byte): Deleted unconditionally.
5619         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5620         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5621         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5622         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5623         (CHAR_FIELD2): Deleted.
5624         (CHAR_FIELD3): Deleted.
5625         (MAKE_CHAR): Delete definition for non-UTF-2000.
5626         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5627         (breakup_char_1): New implementation.
5628         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5629         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5630
5631 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5632
5633         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5634         condition.
5635
5636 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5637
5638         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5639         (CHARSET_PRIVATE_P): Likewise.
5640         (XCHARSET_PRIVATE_P): Likewise.
5641         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5642
5643         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5644         UTF2000.
5645         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5646
5647 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5648
5649         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5650         (NUM_LEADING_BYTES): Changed from 128 to 256.
5651         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5652         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5653         UTF2000.
5654         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5655
5656         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5657         UTF2000.
5658         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5659         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5660         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5661         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5662         (Qchinese_cns11643_3): New variable in UTF2000.
5663         (Qchinese_cns11643_4): New variable in UTF2000.
5664         (Qchinese_cns11643_5): New variable in UTF2000.
5665         (Qchinese_cns11643_6): New variable in UTF2000.
5666         (Qchinese_cns11643_7): New variable in UTF2000.
5667         (syms_of_mule_charset): Define `chinese-cns11643-3',
5668         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5669         and `chinese-cns11643-7' in UTF2000.
5670         (vars_of_mule_charset): Initialize
5671         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5672         + 1 in UTF2000.
5673         (complex_vars_of_mule_charset): Setup charset
5674         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5675         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5676
5677 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5678
5679         * mule-charset.c: Move setting for `leading-code-private-11' from
5680         `syms_of_mule_charset' to `vars_of_mule_charset'.
5681
5682 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5683
5684         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5685         and `NUM_LEADING_BYTES' in assert.
5686
5687 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5688
5689         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5690         instead of 128.
5691         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5692         `NUM_LEADING_BYTES' instead of 128.
5693
5694 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5695
5696         * mule-charset.h (charset_by_leading_byte): Use
5697         `NUM_LEADING_BYTES' instead of 128.
5698         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5699
5700         * mule-charset.c (charset_by_leading_byte): Use
5701         `NUM_LEADING_BYTES' instead of 128.
5702         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5703
5704         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5705         128.
5706
5707 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5708
5709         * mule-charset.c (syms_of_mule_charset): Update to
5710         0.4 (Shin-Imamiya).
5711
5712 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5713
5714         * file-coding.c (encode_coding_sjis): New implementation for
5715         UTF2000.  (decode_coding_sjis): Ditto.
5716
5717 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5718
5719         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5720         Don't define in UTF2000.
5721
5722         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5723         defined.
5724
5725         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5726         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5727         MULE.
5728
5729 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5730
5731         * config.h.in (CHAR_IS_UCS4): New macro.
5732
5733         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5734         conventional MULE representation.
5735         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5736
5737         * mule-charset.h: Reverted to original.
5738
5739         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5740         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5741         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5742
5743         * character.h: New file.
5744
5745         * file-coding.c (Fmake_coding_system): Set 1 to
5746         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5747         defined.
5748         (encode_coding_no_conversion): New implementation for UTF2000.
5749
5750         * file-coding.h (struct Lisp_Coding_System): Add new member
5751         `fixed.size'.
5752
5753 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5754
5755         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5756         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5757         (encode_coding_iso2022): New implementation for UTF2000.
5758
5759 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5760
5761         * mule-canna.c (c2mu): New implementation for UTF2000.
5762         (m2c): Likewise.
5763
5764 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5765
5766         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5767
5768 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5769
5770         * file-coding.c (reset_encoding_stream): Set 0 to
5771         `str->iso2022.current_char_boundary' in UTF2000.
5772         (encode_utf8): Don't define in UTF2000.
5773         (encode_coding_utf8): New implementation for UTF-8 representation
5774         of UTF2000.
5775         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5776
5777 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5778
5779         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5780
5781         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5782         UTF2000.
5783         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5784
5785         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5786
5787         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5788         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5789         as UTF-8 in UTF2000.
5790         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5791         (non_ascii_valid_char_p): Don't define in UTF2000.
5792         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5793         (Lstream_get_emchar_1): Likewise.
5794         (utf-2000-version): New variable in UTF2000.
5795
5796         * lread.c (read_escape): Add new reader `u'.
5797
5798         * insdel.c (three_to_one_table): Don't define in UTF2000.
5799         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5800         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5801         UTF2000.
5802         (bytind_to_bufpos_func): Likewise.
5803         (buffer_mule_signal_inserted_region): Likewise.
5804         (vars_of_insdel): Don't initialize `three_to_one_table'.
5805         (init_buffer_text): Use `buf->text->mule_size' instead of
5806         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5807         UTF2000.
5808
5809         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5810         UTF-8 representation in UTF2000.
5811         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5812         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5813         (decode_coding_iso2022): Don't define local variable `lb' in
5814         UTF2000; don't use LEADING_BYTE in UTF2000; use
5815         `DECODE_ADD_UCS_CHAR' in UTF2000.
5816         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5817
5818         * config.h.in (UTF2000): New macro.
5819
5820         * buffer.h (struct buffer_text): Add new member `mule_size' and
5821         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5822         (valid_char_p): Return always 1 in UTF2000.
5823         (MAX_EMCHAR_LEN): 6 in UTF2000.
5824         (three_to_one_table): Don't define in UTF2000.
5825         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5826         UTF2000.
5827         (real_bytind_to_bufpos): Likewise.
5828
5829         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5830
5831 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5832
5833         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5834         representation change.
5835         (Vutf_2000_version): New variable.
5836         (leading_code_private_11): New variable.
5837         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5838         `leading-code-private-11'.
5839
5840         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5841         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5842         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5843         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5844         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5845         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5846         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5847         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5848         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5849         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5850         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5851         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5852         (MIN_CHAR_GREEK): New macro.
5853         (MAX_CHAR_GREEK): New macro.
5854         (MIN_CHAR_CYRILLIC): New macro.
5855         (MAX_CHAR_CYRILLIC): New macro.
5856         (MIN_CHAR_HEBREW): New macro.
5857         (MAX_CHAR_HEBREW): New macro.
5858         (MIN_CHAR_THAI): New macro.
5859         (MAX_CHAR_THAI): New macro.
5860         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5861         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5862         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5863         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5864         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5865         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5866         (CHAR_FIELD2): New inline function.
5867         (CHAR_FIELD3): New inline function.
5868         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5869         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5870         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5871         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5872         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5873         (MIN_CHAR_COMPOSITION): Likewise.
5874         (CHAR_LEADING_BYTE): Modified for character representation change.
5875         (MAKE_CHAR): Likewise.
5876
5877         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5878         (Vcharset_greek_iso8859_7): Likewise.
5879         (Vcharset_cyrillic_iso8859_5): Likewise.
5880         (Vcharset_hebrew_iso8859_8): Likewise.
5881         (Vcharset_thai_tis620): Likewise.
5882         (Vcharset_katakana_jisx0201): Likewise.
5883
5884 2006-01-28  Vin Shelton  <acs@xemacs.org>
5885
5886         * XEmacs 21.4.19 is released
5887
5888 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
5889
5890         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
5891
5892 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
5893
5894         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
5895         5000 to INT_MAX.
5896
5897 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
5898
5899         * database.c: Suppress compiler warning under Cygwin.
5900         * database.c: Removed __FreeBSD__ check, should be handled by
5901         HAVE_U_xxx_T defines.
5902
5903 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
5904
5905         * console.c (stuff_buffered_input): Compile body only if
5906         HAVE_TTY.
5907
5908 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
5909
5910         * callproc.c: #include sysdir.h, so that any appropriate Mule
5911         magic happens with the chdir() call when calling a subprocess. 
5912
5913 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
5914
5915         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
5916         * mule-ccl.c: Check that a character set exists before using it
5917         to create a character. 
5918
5919 2005-12-06  Vin Shelton  <acs@xemacs.org>
5920
5921         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
5922         to INT_MAX.
5923
5924 2005-12-03  Vin Shelton <acs@xemacs.org>
5925
5926         * XEmacs 21.4.18 is released
5927
5928 2005-11-27  Kean Johnston <kean@armory.com>
5929
5930         * redisplay-tty.c (set_tty_modes):
5931         (reset_tty_modes): disable auto-margins if the terminal supports
5932         them.
5933         (init_tty_for_redisplay): fix cursor shape.
5934
5935 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
5936
5937         * mule-ccl.c (ccl_driver): Calculate the charset and position code
5938         for control-1 characters properly, both when reading multibyte
5939         characters and writing them. 
5940
5941 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
5942
5943         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
5944         * select-x.c (x_reply_selection_request): Use it; fix the bug we
5945         were seeing with incremental selection transfer failing. 
5946
5947 2005-11-26  Vin Shelton  <acs@xemacs.org>
5948
5949         * callproc.c (Fold_call_process_internal): Create the buffer if it
5950         does not already exist.  The original patch came from Ben Wing in
5951         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
5952
5953 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
5954
5955         * callproc.c: Process-related docstring improvements spurred by
5956         Norbert Koch.
5957
5958 2005-11-25  Vin Shelton  <acs@xemacs.org>
5959
5960         * depend: Regenerated.
5961
5962 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
5963
5964         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
5965         says it clashes with a global with the same name.
5966
5967 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
5968
5969         * sysdll.c (dll_open): Under MacOS X return NULL under the
5970         filename is NULL.  Fixes problems finding local symbols under 10.4
5971         (Tiger)
5972
5973 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
5974         
5975         * config.h.in: New HAVE_U_INT*_T defines.
5976         
5977         * database.c: Only use u_int*_t typedefs if not already
5978         defined.
5979
5980 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
5981
5982         * src/process-unix.c (unix_open_network_stream): moved
5983           'portbuf' buffer out of an inner block as it is used in the
5984           entire function. With gcc4, the stack may get corrupted
5985           after leaving this block. This patches adjusts the size of
5986           the used buffer also; static '128' bytes are far too much
5987           currently and might not suffice for future architectures
5988           (e.g. for 512 bit ones ;)). Instead of, use only the really
5989           required space (max octets * ln(256)/ln(10) chars + space
5990           for '\0' and the sign)
5991
5992 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
5993
5994         * callproc.c: Include sysdir.h, so any necessary Mule processing
5995         is done on the current directory name before starting a new
5996         process.
5997
5998 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
5999
6000         * chartab.c (Fchar_table_p):
6001         (Fget_range_char_table):
6002         (Fput_char_table):
6003         (Fmap_char_table):
6004         Describe range representation and fix typo.
6005
6006 2005-02-12  Vin Shelton  <acs@xemacs.org>
6007
6008         * emacs.c (shut_down_emacs): Advise users to send email to the
6009         xemacs-beta list instead of crashes@xemacs.org.
6010
6011 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6012
6013         * process-unix.c (unix_send_process): Flush the last chunk, even
6014         when the pipe is blocked.
6015
6016 2005-02-06  Vin Shelton <acs@xemacs.org>
6017
6018         * XEmacs 21.4.17 is released
6019
6020 2005-01-31  Ben Wing  <ben@xemacs.org>
6021
6022         * emacs.c:
6023         Define assert_failed() always.
6024         * lisp.h:
6025         Always define ABORT().
6026
6027 2005-01-25  Ben Wing  <ben@xemacs.org>
6028
6029         * Makefile.in.in:
6030         * Makefile.in.in (%.o):
6031         Don't compile executable as Windows (-mwindows) under Cygwin.
6032         Semi-recent changes to Cygwin's executable-startup handling make
6033         it impossible to access the TTY this way.
6034
6035         Don't use special linker file under Cygwin (cygwin.sc) except
6036         when non-PDUMP (even in this case it is highly questionable); you
6037         get errors like
6038
6039       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6040    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6041
6042 2005-01-29  Ben Wing  <ben@xemacs.org>
6043
6044         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6045
6046         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6047
6048 2005-01-29  Ben Wing  <ben@xemacs.org>
6049
6050         * bytecode.c (optimize_compiled_function):
6051         * print.c (FROB):
6052         * print.c (long_to_string):
6053         Add casts to avoid warning.
6054         
6055         * glyphs-eimage.c:
6056         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6057         #### The better solution is to move the TIFF and JPEG code to
6058         different files.
6059         
6060         * glyphs-msw.c (mswindows_xbm_instantiate):
6061         Define __STDC__ to avoid problems with compface.h.
6062         
6063         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6064         * EmacsShell-sub.c:
6065         * EmacsShell-sub.c (ABORT):
6066         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6067         * EmacsShell-sub.c (RootGeometryManager):
6068         * EmacsShell.c:
6069         * EmacsShell.c (ABORT):
6070         * EmacsShell.c (EmacsShellUpdateSizeHints):
6071         * alloc.c (free_lcrecord):
6072         * alloca.c (i00afunc):
6073         * buffer.c (delete_from_buffer_alist):
6074         * buffer.c (MARKED_SLOT):
6075         * bytecode.c (execute_rare_opcode):
6076         * bytecode.c (optimize_byte_code):
6077         * bytecode.c (Ffetch_bytecode):
6078         * chartab.c (char_table_type_to_symbol):
6079         * chartab.c (Freset_char_table):
6080         * chartab.c (decode_char_table_range):
6081         * chartab.c (Fget_range_char_table):
6082         * chartab.c (check_valid_char_table_value):
6083         * chartab.c (map_char_table):
6084         * chartab.c (slow_map_char_table_fun):
6085         * chartab.c (chartab_instantiate):
6086         * cm.c (cmcheckmagic):
6087         * console-msw.c (DHEADER):
6088         * console.c (MARKED_SLOT):
6089         * data.c (finish_marking_weak_lists):
6090         * data.c (encode_weak_list_type):
6091         * debug.h (DASSERT):
6092         * device-gtk.c (gtk_init_device):
6093         * device-msw.c (mswindows_get_default_margin):
6094         * device-tty.c (tty_init_device):
6095         * device-x.c (get_device_from_display):
6096         * device-x.c (x_get_visual_depth):
6097         * doprnt.c (parse_doprnt_spec):
6098         * doprnt.c (get_doprnt_args):
6099         * dumper.c (pdump_get_indirect_count):
6100         * dumper.c (pdump_register_sub):
6101         * dumper.c (pdump_register_object):
6102         * dumper.c (pdump_register_struct):
6103         * dumper.c (pdump_dump_data):
6104         * dumper.c (pdump_reloc_one):
6105         * elhash.c (print_hash_table):
6106         * elhash.c (make_standard_lisp_hash_table):
6107         * elhash.c (hash_table_instantiate):
6108         * emacs.c:
6109         * emacs.c (Fforce_debugging_signal):
6110         * emacs.c (sort_args):
6111         * emacs.c (main):
6112         * emacs.c (assert_failed):
6113         * eval.c (throw_or_bomb_out):
6114         * eval.c (signal_1):
6115         * eval.c (Fsignal):
6116         * event-Xt.c:
6117         * event-Xt.c (emacs_Xt_mapping_action):
6118         * event-Xt.c (Xt_process_to_emacs_event):
6119         * event-msw.c:
6120         * event-stream.c (check_event_stream_ok):
6121         * event-stream.c (Fadd_timeout):
6122         * event-stream.c (Fadd_async_timeout):
6123         * event-stream.c (Fdiscard_input):
6124         * event-stream.c (execute_internal_event):
6125         * event-stream.c (Frecent_keys):
6126         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6127         * event-stream.c (lookup_command_event):
6128         * event-unixoid.c (poll_fds_for_input):
6129         * events.c:
6130         * events.c (mark_event):
6131         * events.c (event_equal):
6132         * events.c (event_hash):
6133         * events.c (Fmake_event):
6134         * events.c (Fdeallocate_event):
6135         * events.c (event_chain_find_previous):
6136         * events.c (event_to_character):
6137         * events.c (format_event_object):
6138         * events.c (Fevent_type):
6139         * events.c (event_pixel_translation):
6140         * events.c (Fevent_properties):
6141         * extents.c (extent_in_region_p):
6142         * extents.c (print_extent):
6143         * extents.c (process_extents_for_insertion_mapper):
6144         * extents.c (report_extent_modification_mapper):
6145         * extents.c (glyph_layout_to_symbol):
6146         * faces.c (face_validate):
6147         * file-coding.c (eol_type_to_symbol):
6148         * file-coding.c (subsidiary_coding_system):
6149         * file-coding.c (Fcoding_system_type):
6150         * file-coding.c (Fcoding_system_property):
6151         * file-coding.c (mule_decode):
6152         * file-coding.c (mule_encode):
6153         * file-coding.c (encode_coding_ucs4):
6154         * file-coding.c (encode_coding_utf8):
6155         * file-coding.c (parse_iso2022_esc):
6156         * file-coding.c (encode_coding_iso2022):
6157         * fileio.c:
6158         * fns.c (concat):
6159         * fns.c (Fsubseq):
6160         * fns.c (mapcar1):
6161         * fns.c (Fbase64_encode_region):
6162         * fns.c (Fbase64_encode_string):
6163         * fns.c (Fbase64_decode_region):
6164         * fns.c (Fbase64_decode_string):
6165         * font-lock.c (find_context):
6166         * font-lock.c (context_to_symbol):
6167         * frame-gtk.c (gtk_set_frame_pointer):
6168         * frame-gtk.c (gtk_update_frame_external_traits):
6169         * frame-x.c (x_wm_mark_shell_size_user_specified):
6170         * frame-x.c (x_wm_mark_shell_position_user_specified):
6171         * frame-x.c (x_wm_set_shell_iconic_p):
6172         * frame-x.c (x_wm_set_cell_size):
6173         * frame-x.c (x_wm_set_variable_size):
6174         * frame-x.c (x_wm_store_class_hints):
6175         * frame-x.c (x_wm_maybe_store_wm_command):
6176         * frame-x.c (x_initialize_frame_size):
6177         * frame-x.c (x_update_frame_external_traits):
6178         * frame.c:
6179         * frame.c (delete_frame_internal):
6180         * frame.c (mouse_pixel_position_1):
6181         * frame.c (change_frame_size_1):
6182         * free-hook.c (check_free):
6183         * free-hook.c (check_realloc):
6184         * free-hook.c (note_block_input):
6185         * free-hook.c (log_gcpro):
6186         * gccache-gtk.c (gc_cache_lookup):
6187         * glyphs-eimage.c (tiff_memory_write):
6188         * glyphs-gtk.c (gtk_finalize_image_instance):
6189         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6190         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6191         * glyphs-gtk.c (gtk_xpm_instantiate):
6192         * glyphs-gtk.c (gtk_unmap_subwindow):
6193         * glyphs-gtk.c (gtk_map_subwindow):
6194         * glyphs-gtk.c (gtk_button_redisplay):
6195         * glyphs-msw.c:
6196         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6197         * glyphs-x.c (init_image_instance_from_xbm_inline):
6198         * glyphs-x.c (extract_xpm_color_names):
6199         * glyphs-x.c (x_xpm_instantiate):
6200         * glyphs.c (get_image_instantiator_governing_domain):
6201         * glyphs.c (print_image_instance):
6202         * glyphs.c (image_instance_equal):
6203         * glyphs.c (image_instance_hash):
6204         * glyphs.c (encode_image_instance_type):
6205         * glyphs.c (make_image_instance_1):
6206         * glyphs.c (inherit_instantiate):
6207         * glyphs.c (image_instantiate):
6208         * glyphs.c (allocate_glyph):
6209         * glyphs.c (Fglyph_type):
6210         * glyphs.c (redisplay_subwindow):
6211         * glyphs.c (display_table_entry):
6212         * gtk-glue.c (xemacs_list_to_gtklist):
6213         * gtk-glue.c (xemacs_gtklist_to_list):
6214         * gtk-glue.c (xemacs_list_to_array):
6215         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6216         * gutter.c (gutter_was_visible):
6217         * gutter.c (get_gutter_coords):
6218         * input-method-xlib.c (get_XIM_input):
6219         * insdel.c (bufpos_to_bytind_func):
6220         * insdel.c (bytind_to_bufpos_func):
6221         * insdel.c (move_gap):
6222         * intl.c (x_get_composed_input):
6223         * keymap.c (keymap_lookup_directly):
6224         * keymap.c (keymap_delete_inverse_internal):
6225         * keymap.c (ensure_meta_prefix_char_keymapp):
6226         * keymap.c (accessible_keymaps_mapper_1):
6227         * keymap.c (where_is_recursive_mapper):
6228         * lisp.h:
6229         * lisp.h (ABORT):
6230         * lread.c (read_atom):
6231         * lstream.c (Lstream_delete):
6232         * lstream.c (make_lisp_buffer_stream_1):
6233         * macros.c (pop_kbd_macro_event):
6234         * malloc.c (malloc):
6235         * malloc.c (free):
6236         * marker.c (bi_marker_position):
6237         * marker.c (set_bi_marker_position):
6238         * menubar-gtk.c (menu_descriptor_to_widget_1):
6239         * menubar-msw.c (prune_menubar):
6240         * menubar-x.c (set_frame_menubar):
6241         * mule-charset.c (get_unallocated_leading_byte):
6242         * mule-charset.h (CHAR_LEADING_BYTE):
6243         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6244         * nt.c (init_environment):
6245         * nt.c (generate_inode_val):
6246         * ntproc.c (delete_child):
6247         * ntproc.c (_sys_read_ahead):
6248         * ntproc.c (create_child):
6249         * objects.c (color_instantiate):
6250         * objects.c (font_instantiate):
6251         * objects.c (face_boolean_instantiate):
6252         * print.c (printing_major_badness):
6253         * process-nt.c (nt_send_process):
6254         * process-unix.c (unix_send_process):
6255         * process.c (get_process):
6256         * ralloc.c (obtain):
6257         * ralloc.c (relinquish):
6258         * ralloc.c (relocate_blocs):
6259         * ralloc.c (resize_bloc):
6260         * ralloc.c (r_alloc_free):
6261         * ralloc.c (r_re_alloc):
6262         * ralloc.c (r_alloc_thaw):
6263         * ralloc.c (init_ralloc):
6264         * ralloc.c (Free_Addr_Block):
6265         * ralloc.c (r_alloc):
6266         * redisplay-gtk.c (gtk_output_display_block):
6267         * redisplay-msw.c (mswindows_output_display_block):
6268         * redisplay-output.c (get_next_display_block):
6269         * redisplay-output.c (get_cursor_size_and_location):
6270         * redisplay-output.c (redisplay_output_layout):
6271         * redisplay-output.c (redisplay_clear_region):
6272         * redisplay-tty.c (tty_output_display_block):
6273         * redisplay-x.c (x_output_display_block):
6274         * redisplay.c (add_propagation_runes):
6275         * redisplay.c (add_glyph_rune):
6276         * redisplay.c (create_text_block):
6277         * redisplay.c (add_margin_runes):
6278         * redisplay.c (create_left_glyph_block):
6279         * redisplay.c (create_right_glyph_block):
6280         * redisplay.c (create_string_text_block):
6281         * redisplay.c (regenerate_window):
6282         * redisplay.c (REGEN_INC_FIND_START_END):
6283         * redisplay.c (redisplay_frame):
6284         * redisplay.c (point_in_line_start_cache):
6285         * regex.c:
6286         * regex.c (ABORT):
6287         * regex.c (re_compile_fastmap):
6288         * regex.c (re_match_2_internal):
6289         * regex.c (regerror):
6290         * scrollbar-gtk.c (gtk_scrollbar_loop):
6291         * scrollbar-gtk.c (scrollbar_cb):
6292         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6293         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6294         * scrollbar-x.c (x_update_scrollbar_instance_status):
6295         * scrollbar-x.c (x_scrollbar_loop):
6296         * scrollbar-x.c (x_update_frame_scrollbars):
6297         * search.c (search_command):
6298         * search.c (Fmatch_data):
6299         * select-x.c (motif_clipboard_cb):
6300         * signal.c (interrupt_signal):
6301         * specifier.c (specifier_add_spec):
6302         * specifier.c (specifier_instance_from_inst_list):
6303         * specifier.c (specifier_instance):
6304         * specifier.h:
6305         * specifier.h (struct specifier_methods):
6306         * strftime.c (add_num_time_t):
6307         * sunplay.c (init_device):
6308         * symbols.c (Fsetplist):
6309         * symbols.c (do_symval_forwarding):
6310         * symbols.c (store_symval_forwarding):
6311         * symbols.c (Fset):
6312         * symbols.c (Fbuilt_in_variable_type):
6313         * symbols.c (decode_magic_handler_type):
6314         * symbols.c (handler_type_from_function_symbol):
6315         * syntax.c (update_syntax_cache):
6316         * sysdep.c (init_baud_rate):
6317         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6318         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6319         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6320         * toolbar.c (get_toolbar_coords):
6321         * ui-gtk.c (build_gtk_boxed):
6322         * ui-gtk.c (describe_gtk_arg):
6323         * ui-gtk.c (gtk_type_to_lisp):
6324         * ui-gtk.c (lisp_to_gtk_type):
6325         * ui-gtk.c (lisp_to_gtk_ret_type):
6326         * ui-gtk.c (lisp_to_flag):
6327         * unexnt.c (read_in_bss):
6328         * unexnt.c (map_in_heap):
6329         * window.c (real_window):
6330         * window.c (window_display_lines):
6331         * window.c (window_display_buffer):
6332         * window.c (set_window_display_buffer):
6333         * window.c (window_modeline_height):
6334         * window.c (unshow_buffer):
6335         * window.c (window_loop):
6336         * window.c (Fget_lru_window):
6337         * window.c (Fsplit_window):
6338         * window.c (Fset_window_configuration):
6339         * window.c (saved_window_index):
6340         * xgccache.c (gc_cache_lookup):
6341         abort() -> ABORT().  Eliminate preprocessor games with abort()
6342         since it creates huge problems in VC7, solvable only by including
6343         massive amounts of files in every compile (and not worth it).
6344
6345         * sysdep.c:
6346         * sysproc.h:
6347         Inclusion of process.h does not need to be before lisp.h any more.
6348         Move later and remove comment about abort().
6349
6350 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6351
6352         * regex.c (re_match_2_internal):
6353         Correctly initialize loop which clears uninitialized registers.
6354
6355 2005-01-28  Vin Shelton  <acs@xemacs.org>
6356
6357         * sheap.c (more_static_core): Applied Ben's version of the long
6358         string patch.
6359
6360 2005-01-24  Vin Shelton  <acs@xemacs.org>
6361
6362         * sheap.c (more_static_core): Reformatted printf string so
6363         gcc-3.3.3 will compile this on Cygwin.
6364
6365 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6366
6367         * console.c (function_key_map): Reference `key-binding'.
6368
6369         * keymap.c (Vkey_translation_map): Improve docstring.
6370
6371 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6372
6373         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6374         * window.c (window_loop): [fix] Take into account
6375         `allow-deletion-of-last-visible-frame' variable.
6376         * window.c (replace-buffer-in-windows): Ditto.
6377
6378 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6379
6380         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6381
6382 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6383
6384         * event-gtk.c: Recognise AltGr as a valid modifier.
6385
6386 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6387
6388         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6389
6390 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6391
6392         Fix backreference bug caught by test suite.
6393
6394         * regex.c (regex_compile):
6395         Make backref duplicate internal register.
6396
6397 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6398
6399         Documentation, code clarification, and warning suppression.
6400         
6401         * regex.c (regex_compile):
6402         Improve comments.
6403         (re_match_2_internal):
6404         Improve comments and avoid redundant braces.  [Most of the big hunk
6405         at l. 4710 is indentation; use diff -w to see the real changes.]
6406         (alt_match_null_string_p):
6407         (common_op_match_null_string_p):
6408         Avoid shadowing global on Mac OS X 10.4, at least.
6409
6410 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6411
6412         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6413         introduced with shy groups fix).  [Already applied, probably
6414         with the second "fix shy groups" patch of 2004-10-07.] 
6415
6416 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6417
6418         From Andrey Slusar <anrays@gmail.com>:
6419
6420         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6421
6422 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6423
6424         * Makefile (RECURSIVE_MAKE): Removed.
6425         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6426         handling parallel builds.
6427
6428 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6429
6430         * Makefile.in.in: Enable support for parallel builds.
6431
6432 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6433
6434         From Andrey Slusar <anrays@gmail.com>:
6435
6436         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6437         FreeBSD version is >= 199701 _and_ < 600006.
6438
6439 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6440
6441         * scrollbar.c (compute_scrollbar_instance_usage):
6442         Only call device method compute_scrollbar_instance_usage() if it
6443         is defined.
6444
6445 2004-12-05  Vin Shelton <acs@xemacs.org>
6446
6447         * XEmacs 21.4.16 is released
6448
6449 2004-12-04  Vin Shelton  <acs@xemacs.org>
6450
6451         * depend: Regenerated.
6452
6453 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6454
6455         * regex.c (re_match_2_internal): Map internal to external
6456         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6457         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6458
6459 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6460
6461         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6462         to fix a crash.  Also, check the buffer is live and it
6463         really exists in buffer_list.  If the buffer is not in the list,
6464         prepend it.
6465
6466 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6467
6468         Fix shy groups by implementing recording of all groups for
6469         repetition and backtracking.  Backport from 21.5.
6470         
6471         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6472         external_to_internal_register, external_to_internal_register_size,
6473         and update comments for re_nsub.
6474
6475         * regex.c (re_opcode_t): Update comments.
6476         (print_compiled_pattern): Ouput external_to_internal_register,
6477         external_to_internal_register_size, and re_ngroups for debugging.
6478         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6479         (regex_compile): Update header comment.
6480         Ensure that all groups are recorded so that repeat matches and
6481         backtracking work correctly.  Comment related warning for groups >
6482         255.
6483         (re_search_2): Construct map of API indexes (which count only
6484         nonshy groups) to internal register numbers, and keep it updated.
6485
6486 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6487
6488         * frame-gtk.c (gtk_make_frame_visible):
6489         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6490         show/hide.  This is what X uses and is prevents previously hidden
6491         widgets from suddenly reappearing.
6492         * gtk-xemacs.c (gtk_xemacs_paint):
6493         * gtk-xemacs.c (gtk_xemacs_draw):
6494         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6495         drawable.
6496         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6497         size and location changes so that they can be seen before the next
6498         idle event.  Without this rapid changes to scrollbar properties
6499         are not seen.
6500
6501 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6502
6503         * console-gtk.h:
6504         * console-gtk.h (struct gtk_frame):
6505         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6506           Add hash tables track tab_control callback data.
6507           Added #defines for GTK object data names.
6508           Declaration of gtk_widget_to_frame().
6509         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6510         * frame-gtk.c (gtk_widget_to_frame): New.
6511         * frame-gtk.c (gtk_create_widgets):
6512         * frame-gtk.c (allocate_gtk_frame_struct):
6513         * frame-gtk.c (gtk_mark_frame):
6514         Manage frame callbakc hash tables.
6515         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6516         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6517         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6518         of widget size.
6519         * glyphs-gtk.c (gtk_widget_query_geometry): New
6520         * glyphs-gtk.c (gtk_register_gui_item): New
6521         * glyphs-gtk.c (gtk_add_tab_item): New
6522         * glyphs-gtk.c (gtk_tab_control_callback): New
6523         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6524         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6525         Use correct list when loading item.
6526         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6527         Register new methods.
6528         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6529         default size, for widgets.
6530         * gui-x.c:  Improved comment.
6531         * menubar-gtk.c (__generic_button_callback): Use
6532         gtk_widget_to_frame instead of __get_channel.
6533         * scrollbar-gtk.c:
6534         * ui-gtk.c: Use symbolic names for GTK object data.
6535
6536 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6537
6538         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6539
6540 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6541
6542         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6543
6544 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6545
6546         * malloc.c (morecore): siz is a long because in some architectures
6547         (eg ia-64) an int cannot hold the address range.  Additional patch
6548         from the SuSe distribution.
6549
6550 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6551
6552         * emacs.c:
6553         * malloc.c: lim_data is a long because in some architectures
6554         (eg ia-64) an int cannot hold the address range.
6555         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6556         instead of ulimit() because ulimit() always returns -1.
6557
6558 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6559
6560         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6561
6562 2004-06-11  David Kastrup  <dak@gnu.org>
6563
6564         * search.c (match_limit): Don't flag an error if match-data
6565         exceeding the allocated search_regs.num_regs gets requested, just
6566         return Qnil.
6567
6568 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6569
6570         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6571         replace symbolic color entries with the real colors specified in
6572         xpm-color-symbols, before passing the XPM to gtk.
6573         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6574         instead of a GTK specific field, so that it is used in by generic
6575         code.
6576
6577 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6578
6579        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6580         coredump from deref of NULL ptr (ExtData)
6581
6582 2004-04-19  Jerry James  <james@xemacs.org>
6583
6584         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6585         VALBITS to compute the location of the sign bit.
6586         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6587         of VALBITS with EMACS_INT_MAX.
6588         * events.c (Fevent_timestamp): Ditto.
6589         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6590         compute the halfway point to timestamp wraparound.
6591         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6592         EMACS_INT_MIN instead of using VALBITS.
6593         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6594         incorrect number with VALBITS.
6595         * fns.c (Frandom): Correct number of integer bits in docstring.
6596         Use INT_VALBITS instead of VALBITS to compute the denominator.
6597         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6598         build random numbers.
6599
6600 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6601         * event-gtk.c:
6602         * event-gtk.c (gtk_event_to_emacs_event):
6603         * menubar-gtk.c:
6604         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6605         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6606         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6607         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6608         * menubar-gtk.c (__activate_menu):
6609         * menubar-gtk.c (convert_underscores):
6610         * menubar-gtk.c (remove_underscores):
6611         * menubar-gtk.c (menu_convert):
6612         * menubar-gtk.c (menu_descriptor_to_widget_1):
6613         * menubar-gtk.c (menu_descriptor_to_widget):
6614         * menubar-gtk.c (menu_can_reuse_widget):
6615         * menubar-gtk.c (menu_create_menubar):
6616         * menubar-gtk.c (gtk_popup_menu):
6617         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6618         Added support for Gtk menu bar and menu item mnemonics.
6619
6620 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6621
6622         * sysdll.c: (dll_function): Added support for finding symbols in
6623         Darwin shared libraries as well in Darwin bundles.
6624         * sysdll.c (image_for_address): New
6625         * sysdll.c (my_find_image): New
6626         * sysdll.c (search_linked_libs): New
6627
6628 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6629
6630         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6631         return to GTK requires a different API to marshalling data to use
6632         as GTK parameters.
6633         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6634
6635 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6636
6637         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6638
6639 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6640
6641         * glyphs.c (process_image_string_instantiator):
6642         (Fset_console_type_image_conversion_list):
6643         Stop GCC from warning about shadowing of `exp'.
6644
6645         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6646
6647 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6648
6649         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6650
6651 2004-02-03  Vin Shelton  <acs@xemacs.org>
6652
6653         * glyphs.c (image_instance_layout): Remove pointless assertion.
6654         * regex.c (regex_grow_registers): Return type is void.
6655
6656 2004-02-02  Vin Shelton <acs@xemacs.org>
6657
6658         * XEmacs 21.4.15 is released
6659
6660 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6661
6662         * device-x.c (x_error_handler): Don't call stderr_out
6663
6664 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6665
6666         * buffer.c (other-buffer): Clarify documentation of order of
6667         arguments for FSF Emacs.
6668
6669 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6670
6671         * window.c (Fdelete_window): Dirty the mirror structure _before_
6672         marking the window deleted.
6673
6674 2003-09-15  Jerry James  <james@xemacs.org>
6675
6676         * event-msw.c (debug_mswin_messages): Conditionally compile
6677         messages missing from the Cygwin headers.
6678
6679 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6680
6681         * data.c (eq_with_ebola_notice): Fix typo in comment.
6682         (Ftrue_list_p): Improve docstring.
6683
6684 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6685
6686         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6687
6688 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6689
6690         * search.c (trivial_regexp_p): Regexps containing "\{" are
6691         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6692         Stefan Monnier for suggesting a diagnosis.
6693
6694 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6695
6696         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6697
6698 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6699
6700         * search.c (Fsearch_forward):
6701         (Fsearch_backward):
6702         Document negative count.
6703
6704 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6705
6706         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6707
6708 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6709
6710         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6711
6712 2003-09-15  Vin Shelton  <acs@xemacs.org>
6713
6714         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6715         21.5.
6716
6717 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6718
6719         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6720         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6721         (re_match_2_internal): Use TRANSLATE instead of
6722         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6723         non-ASCII char case conversion.
6724
6725 2003-09-08  Mike Sperber  <mike@xemacs.org>
6726
6727         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6728         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6729
6730 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6731
6732        * .gdbinit (pobj): fix printing of symbol name.
6733
6734 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6735
6736         * frame-x.c (x_layout_widgets): When resizing is about to cause
6737         frame size slip, mark it for redisplay.
6738
6739 2003-08-18  Jerry James  <james@xemacs.org>
6740
6741         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6742
6743 2003-09-03  Vin Shelton <acs@xemacs.org>
6744
6745         * XEmacs 21.4.14 is released
6746
6747 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6748
6749         * config.h.in (REGEX_MALLOC): Make it configure'able.
6750
6751 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6752
6753         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6754         linking.
6755         * sysdll.c (dll_init):
6756         * sysdll.c (dll_open):
6757         * sysdll.c (dll_close):
6758         * sysdll.c (dll_function):
6759         * sysdll.c (dll_variable):
6760         * sysdll.c (dll_error):
6761         Add support for loading bundles using Darwin/MacOSX
6762         native API.
6763
6764 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6765
6766         * process.c (start-process-internal): Document coding systems.
6767
6768 2003-07-30  Jerry James  <james@xemacs.org>
6769
6770         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6771
6772 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6773
6774         * event-msw.c (mswindows_enqueue_mouse_button_event):
6775         * event-msw.c (mswindows_wnd_proc):
6776           enqueue button event when scrollwheel event isn't handled by 
6777           mswindows_handle_mousewheel_event, such as when the scrollbars
6778           are not showing.
6779
6780 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6781
6782         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6783
6784 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6785
6786         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6787
6788 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6789
6790         * regex.c (re_match_2_internal): Fix matching degenerate word
6791         boundaries.
6792
6793 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6794
6795         * XEmacs 21.4.13 is released
6796
6797 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6798
6799         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6800         * lisp.h (<inttypes.h>):
6801         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6802         the definition.
6803
6804 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6805
6806         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6807         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6808         Result: "temacs can only be run in -batch mode."
6809         Fix: Check xemacs executable candidate for directory-ness.
6810
6811 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6812
6813         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6814           they conflict with <sys/types.h>.
6815
6816 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6817
6818         * database.c: Berkeley DB wants __STDC__ to be defined.
6819
6820 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6821
6822         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6823
6824 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6825
6826         * process-unix.c (unix_send_process): Fix C++ compile error.
6827
6828 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6829
6830         * Added .dylib as an acceptable shared library file extension
6831         * to support MacOSX.
6832
6833 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6834
6835         * EmacsFrameP.h (EmacsFramePart):
6836         Kludge to allow compiling with Motif1, but linking with Motif2.
6837
6838 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6839
6840         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6841
6842
6843 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6844
6845         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6846
6847 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6848
6849         * sysdll.c: Included lisp.h to define needed alloca_array.
6850
6851 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6852
6853         Make XEmacs redisplay 10 times faster.
6854         If, that is, you're using a slow X connection and MoveOpaque.
6855         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6856         Use compress_motion = TRUE.
6857         * EmacsFrame.c (emacsFrameClassRec): 
6858         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6859         * EmacsManager.c (emacsManagerClassRec):
6860         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6861
6862 2003-01-30  Vin Shelton  <acs@xemacs.org>
6863
6864         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6865
6866 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6867
6868         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6869         Patch by Martin Buchholz.
6870
6871 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6872
6873         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6874         Thanks to icc for warning and Martin Buchholz for reporting.
6875
6876 2003-01-29  Vin Shelton <acs@xemacs.org>
6877
6878         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6879
6880         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6881         remember to multiply by the element size.
6882
6883 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
6884
6885         * XEmacs 21.4.12 "Portable Code" is released.
6886
6887 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
6888
6889         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6890         * s/cygwin.sc: new linker file.
6891
6892 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
6893
6894         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6895
6896         * redisplay-x.c (x_output_string): Use X11-specified types.
6897         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6898         * emacs.c (__free_hook): Use typeof with Intel compiler.
6899         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6900
6901 2003-01-08  Andy Piper  <andy@xemacs.org>
6902
6903         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6904         reserve size during unexec().
6905
6906 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
6907
6908         * process-unix.c (unix_create_process): Don't let outchannel block.
6909
6910 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
6911
6912         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6913         Needed for IsBadReadPtr().
6914
6915 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
6916
6917         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6918
6919 2002-12-14  Ben Wing  <ben@xemacs.org>
6920
6921         * callint.c: Declaration error.
6922         * dumper.c (pdump):
6923         * dumper.c (pdump_load): Warning fix.
6924         * process.c: GCPRO error.
6925         * glyphs.c (unmap_subwindow):
6926         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6927         * event-stream.c (maybe_kbd_translate): Wrong argument to
6928         character_to_event().
6929
6930         * alloc.c (garbage_collect_1):
6931         * emacs.c:
6932         * emacs.c (debug_can_access_memory):
6933         * emacs.c (fatal_error_signal):
6934         * emacs.c (mswindows_handle_hardware_exceptions):
6935         * emacs.c (main_1):
6936         * emacs.c (main):
6937         * emacs.c (assert_failed):
6938         * emacs.c (syms_of_emacs):
6939         * lisp.h:
6940         * print.c:
6941         * print.c (std_handle_out_va):
6942         * print.c (write_string_to_stdio_stream):
6943         * print.c (write_fmt_string):
6944         * print.c (printing_badness):
6945         * print.c (printing_major_badness):
6946         * print.c (print_internal):
6947         * print.c (debug_print_no_newline):
6948         * print.c (debug_backtrace):
6949         Be more defensive in handling bad values when printing.  Add code
6950         from trunk involving inhibit_non_essential_printing_operations.
6951         When going down or in debug_print(), don't do external conversion
6952         and such and try really, really hard when printing to avoid core
6953         dumping.  Add force-debugging-signal, debug_break().
6954
6955 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
6956
6957         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6958         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6959
6960 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
6961
6962         * database.c: Fix open_database. Berkeley DB API has changed in
6963         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6964
6965 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
6966
6967         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6968
6969 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
6970
6971         * event-Xt.c (Xt_timeout):
6972         (Xt_timeout_callback):
6973         (emacs_Xt_add_timeout):
6974         (emacs_Xt_remove_timeout):
6975         (Xt_timeout_to_emacs_event):
6976         Turn completed_timeouts from a stack into a queue.  Fixes
6977         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6978
6979 2002-11-07  Wolfram Gloger  <wg@malloc.de>
6980
6981         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6982         * emacs.c (main): Assert that mmap'd allocation is disabled.
6983
6984 2002-10-14  Andy Piper  <andy@xemacs.org>
6985
6986         * glyphs-widget.c (layout_query_geometry): add in fiddle
6987         factor. Include border text in width layout calculation.
6988         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6989
6990 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
6991
6992         * XEmacs 21.4.10 "Military Intelligence" is released.
6993
6994 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
6995
6996         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
6997         using the NAS private array SoundFileInfo that no longer exists in
6998         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
6999         and earlier.  This is broken for some versions between 1.5a and
7000         1.5f.
7001
7002 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7003
7004         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7005
7006         * emacs.c (shut_down_emacs): Improve crash message.
7007
7008 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7009
7010         * file-coding.c (determine_real_coding_system): Check for coding
7011         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7012         shebangs and Python PEP 263.
7013
7014 2002-10-08  Andy Piper  <andy@xemacs.org>
7015
7016         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7017         if static sizes haven't been set.
7018
7019 2002-08-30  Mike Alexander  <mta@arbortext.com>
7020
7021         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7022         to close a socket.
7023
7024 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7025
7026         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7027
7028 2002-09-20  Mike Sperber <mike@xemacs.org>
7029
7030         (This partially gets back my patch from 2002-07-20 without the
7031         bug.)
7032         * callproc.c (child_setup): Remove Ben's comment noting confusion
7033         over the file descriptors >= 3: close_process_descs() doesn't
7034         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7035         * process-unix.c (unix_create_process): Call
7036         begin_dont_check_for_quit to inhibit unwanted interaction (and
7037         thus breaking of X event synchronicity) in the child.
7038
7039 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7040
7041         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7042         widget.
7043
7044 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7045
7046         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7047         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7048         the xemacs process did not exit, but looped infinitely here.  This
7049         fixes that problem.
7050
7051 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7052
7053         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7054         (find_context): Improve comments.
7055
7056         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7057         (re_match_2): An XCHAR_TABLE operation was missing.
7058
7059         Many of the following changes were inspired by Andy Piper's (now
7060         obsolete) patch to make syntax-table text property lookup optional.
7061
7062         [Documentation]
7063
7064         * syntax.h (top level): Document semantics of syntax flags.
7065         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7066         * syntax.c, syntax.h (top level): Document syntax cache better in
7067         comments.
7068
7069         [Instrument syntax caching (temporary change)]
7070
7071         * syntax.h (enum syntax_cache_statistics_functions, struct
7072         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7073         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7074         * syntax.c (scan_words, Fforward_comment, scan_lists,
7075         Fbackward_prefix_characters):
7076         * font-lock.c (find_context):
7077         Use them to instrument syntax caching. 
7078         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7079         syntax_cache_statistics_function_names): New type and variables.
7080         * syntax.c (update_syntax_cache): Update and report statistics.
7081
7082         [Major syntax cache optimizations]
7083
7084         syntax.c (lookup_syntax_properties): Default off.
7085
7086         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7087         * syntax.c (update_syntax_cache):
7088         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7089
7090         [Minor syntax cache optimizations and code clarifications]
7091
7092         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7093         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7094         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7095         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7096         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7097         (Code clarification.)
7098
7099         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7100         scan_lists): Compute code from syncode, use Boolean macros instead
7101         of redundant masking operations.  (Code clarification; any decent
7102         compiler can do this optimization.)
7103
7104         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7105         for clarity.
7106
7107         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7108         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7109         use F*_single_property_change instead of F*_extent_change.
7110         Currently F*_single_property_change is _much_ less efficient.
7111
7112         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7113         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7114         syntax_cache.object properly, don't leave Qt or Qnil.
7115         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7116         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7117         tests for Qt or Qnil.
7118
7119 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7120
7121         * redisplay.c (point_in_line_start_cache): 
7122         * extents.c (print_extent_1):
7123         Fix warnings.
7124
7125         * extents.c (Fset_extent_property): Document `syntax-table' property.
7126
7127         * extents.h (Fnext_single_property_change): EXFUN it.
7128
7129 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7130
7131         * search.c (clear_unused_search_regs): New static function.
7132         (search_buffer): 
7133         (simple_search): 
7134         (boyer_moore):
7135         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7136         Minor clarifications in comments.
7137
7138         * regex.c (re_match_2_internal): Ensure no stale submatches.
7139
7140 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7141
7142         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7143
7144 2002-08-29  Jerry James  <james@xemacs.org>
7145
7146         * lisp.h: structrures -> structures.
7147
7148 2002-06-03  Andy Piper  <andy@xemacs.org>
7149
7150         * frame.c (frame_conversion_internal): add conversion appropriate
7151         for setting frame dimensions in pixels.
7152
7153         * console.h (struct console_methods): add device-specific widget
7154         layout functions.
7155
7156         * emacs.c (main_1): initialize glyph vars.
7157
7158         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7159         (handle_focus_event_2): new function. Allow focus to
7160         be set to a particular window and widget.
7161         (enqueue_focus_event): new function. Create a
7162         synthetic focus event.
7163         (emacs_Xt_handle_magic_event): call
7164         handle_focus_event_2.
7165
7166         * frame.c (Fset_frame_pixel_height): new function. Allow
7167         pixel-based sizing. Does the right thing on character-oriented
7168         displays.
7169         (Fset_frame_pixel_width): ditto.
7170         (Fset_frame_pixel_size): ditto.
7171         (syms_of_frame): declare.
7172
7173         * general-slots.h: add :vertically-justify and
7174         :horizontally-justify.
7175
7176         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7177         (mswindows_widget_border_width): new function.
7178         (mswindows_combo_box_instantiate): set border widths.
7179         (console_type_create_glyphs_mswindows): declare.
7180
7181         * glyphs-widget.c:
7182         (check_valid_justification): allow vertical and horizontal
7183         justification.
7184         (widget_border_width): new function. Call device methods.
7185         (widget_instance_border_width): ditto.
7186         (logical_unit_height): new function. Determine the height of a
7187         logical-unit. Logical units are intended to provide grid-like
7188         layout for subcontrols in a layout. If the layout is
7189         :vertically-justify top then subcontrols will be positioned on
7190         logical-unit boundaries, thus allowing adjacent subcontrols to
7191         line up.
7192         (widget_logical_unit_height): ditto for widgets.
7193         (redisplay_widget): misc cleanup.
7194         (widget_spacing): new function. Call device specific
7195         methods. Intended to be the default gap between adjacent widgets.
7196         (widget_query_geometry): use new spacing functions to determine
7197         appropriate geometry.
7198         (initialize_widget_image_instance): initialize horizontal and
7199         vertical justification.
7200         (widget_instantiate): use logica-units where appropriate for
7201         sizing large widgets.
7202         (button_query_geometry): use widget_instance_border_width.
7203         (tree_view_query_geometry): ditto.
7204         (tab_control_query_geometry): ditto.
7205         (edit_field_query_geometry): new function.
7206         (layout_update): pick up :justify, :horizontally-justify and
7207         :vertically-justify none of which worked previously. :justify is
7208         used as a fallback for both horizontal and vertical justification.
7209         (layout_query_geometry): use logical units to size appropriately.
7210         (layout_layout): ditto.
7211         (Fwidget_logical_to_character_width): new function. Allow users to
7212         convert from logical units to characters so that frame sizes can
7213         be set appropriately.
7214         (Fwidget_logical_to_character_height): ditto.
7215         (syms_of_glyphs_widget): declare.
7216         (image_instantiator_edit_fields): add edit_field_query_geometry.
7217         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7218         :horizontally-justify.
7219         (specifier_vars_of_glyphs_widget): new function. Declare
7220         Vwidget_border_width which is not yet used.
7221
7222         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7223         (x_widget_border_width): new function.
7224         (x_widget_instantiate): create a sensible name for widgets.
7225         (console_type_create_glyphs_x): declare x_widget_border_width.
7226
7227         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7228         (struct Lisp_Image_Instance): add :vertically-justify and
7229         :horizontally-justify.
7230         (LAYOUT_JUSTIFY_TOP): new.
7231         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7232         (ROUND_UP): new macro. Round argument up to next integral
7233         interval.
7234
7235         * redisplay-output.c (redisplay_output_layout): misc formatting.
7236
7237         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7238
7239 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7240
7241         * XEmacs 21.4.9 "Informed Management" is released.
7242
7243 2002-08-19  Andy Piper  <andy@xemacs.org>
7244
7245         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7246         win32 format.
7247
7248         * realpath.c (xrealpath): normalize drive spec also so that dir
7249         sep chars are not mixed on cygwin.
7250
7251 2002-08-06  Jerry James  <james@xemacs.org>
7252
7253         * window.c (Fsplit_window): Count only half of the divider width
7254         against the left window when splitting horizontally. 
7255
7256 2002-06-24  Andy Piper  <andy@xemacs.org>
7257
7258         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7259         toolbar was cleared.
7260
7261         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7262         function. Split out from mswindows_output_frame_toolbars.
7263         (mswindows_output_frame_toolbars): move clear pieces to
7264         mswindows_output_frame_toolbars.
7265
7266         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7267         out from gtk_output_frame_toolbars.
7268         (gtk_output_frame_toolbars): move clear pieces to
7269         gtk_clear_frame_toolbars.
7270
7271         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7272         the frame is cleared. How this ever worked before is a mystery.
7273         (x_output_frame_toolbars): Only output toolbars.
7274         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7275
7276         * gutter.c (update_gutter_geometry):
7277         Mark frame layout changed.
7278         (update_frame_gutter_geometry, update_frame_gutters):
7279         Respect frame_layout_changed.
7280
7281         * console.h (struct console_methods): add
7282         clear_frame_toolbars_method.
7283
7284         * redisplay.c (redisplay_frame): call
7285         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7286
7287         * toolbar.h: declare update_frame_toolbars_geometry.
7288
7289         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7290         out from update_frame_toolbars.  Call clear_frame_toolbars.
7291         (update_frame_toolbars): only output, do not change geometry.
7292
7293         * redisplay.c: add frame_layout_changed.
7294
7295         * redisplay.h: add frame_layout_changed.
7296         (CLASS_RESET_CHANGED_FLAGS): set it.
7297         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7298         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7299         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7300
7301         * device.h (struct device): add frame_layout_changed.
7302         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7303
7304         * frame.h (struct frame): add frame_layout_changed.
7305         (MARK_FRAME_LAYOUT_CHANGED): new.
7306
7307 2002-06-30  Mike Alexander  <mta@arbortext.com>
7308
7309         * event-msw.c (mswindows_need_event): Don't wait for a new message
7310         if the queue is not empty.  Suggested by Paul Moore.
7311
7312 2002-06-12  Andy Piper  <andy@xemacs.org>
7313
7314         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7315         for printing on accurately.
7316
7317 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7318
7319         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7320         WM_ACTIVATE message. Make sure that the frame is visible if the
7321         window is visible. This seemss to fix the problem where XEmacs
7322         appears to freeze after switching desktops with certain virtual
7323         window managers.
7324         (debug_output_mswin_message): Added code to output message
7325         parameters for WM_WINDOWPOSCHANGED, 
7326         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7327
7328 2002-05-25  Andy Piper  <andy@xemacs.org>
7329
7330         * select-x.c (vars_of_select_x): Fix docstring of
7331         x-selection-strict-motif-ownership
7332
7333 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7334
7335         * keymap.c (get_keymap):
7336         Add comment about do_autoload GCPROs own args.
7337
7338 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7339
7340         * bytecode.c (execute_optimized_program): check_opcode ifdef
7341         ERROR_CHECK_BYTE_CODE.
7342
7343 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7344
7345         Thanks to Ben Wing and Michael Sperber.
7346
7347         * eval.c (Fcommand_execute):
7348         (Feval):
7349         (Ffuncall):
7350         (Fmacroexpand_internal):
7351         (function_argcount):
7352         callint.c (Fcall_interactively):
7353         Add comment about do_autoload GCPROs own args.
7354
7355         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7356
7357         * eval.c (Ffuncall): Extra braces to placate GCC.
7358
7359 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7360
7361         * backtrace.h (grow_specpdl):
7362         (SPECPDL_RESERVE):
7363         * EmacsFrame.c (EmacsFrameSetValues):
7364         * eval.c (grow_specpdl):
7365         * ExternalShell.c (hack_event_masks_1):
7366         * glyphs-x.c (convert_EImage_to_XImage): 
7367         (x_finalize_image_instance):
7368         * ralloc.c (page_size):
7369         (r_alloc_sbrk):
7370         * xgccache.c (gc_cache_hash):
7371         Fix unsigned comparison warnings.
7372
7373 2002-07-29  Jerry James  <james@xemacs.org>
7374
7375         * lread.c (locate_file): Any nonnegative return value indicates
7376         success if MODE is nonnegative.
7377
7378 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7379
7380         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7381         argument. 
7382
7383 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7384
7385         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7386
7387         * dumper.c (pdump_get_indirect_count):
7388         (pdump_scan_by_alignment):
7389         (pdump_dump_root_struct_ptrs):
7390         (pdump_dump_rtables):
7391         (pdump_dump_root_objects):
7392         (pdump):
7393         * nas.c (WaveOpenDataForReading):
7394         * fns.c (print_bit_vector):
7395         * font-lock.c (SINGLE_SYNTAX_STYLE):
7396         * glyphs.c (check_for_ignored_expose):
7397         (find_matching_subwindow):
7398         * glyphs-eimage.c:
7399         * imgproc.c (get_histogram):
7400         * redisplay.c (point_in_line_start_cache):
7401         * redisplay-output.c (redisplay_unmap_subwindows):
7402         * symbols.c (defsymbol_massage_name_1):
7403         (defkeyword_massage_name):
7404         (deferror_massage_name_and_message):
7405         * redisplay-x.c (x_output_string): 
7406         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7407         * frame.h (struct frame):
7408         * filelock.c (current_lock_owner):
7409         * doprnt.c (emacs_doprnt_1):
7410         * lisp.h (struct Lisp_Bit_Vector):
7411         (DO_REALLOC):
7412         Fix warnings.
7413
7414 2002-02-13  Ben Wing  <ben@xemacs.org>
7415
7416         * event-stream.c (reset_key_echo):
7417         * event-stream.c (reset_this_command_keys):
7418         * event-stream.c (execute_command_event):
7419         If console is dead as a result of C-x 5 0, then post-command stuff
7420         needs to be careful and do only non-console-specific stuff.
7421
7422 2002-07-01  Mike Sperber <mike@xemacs.org>
7423
7424         * process-unix.c (unix_send_process): Mark coding_outstream as
7425         non-open upon SIGPIPE.
7426
7427         * event-stream.c (Fnext_event): Reorder switch cases to something
7428         that makes sense.
7429
7430 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7431
7432         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7433         Don't bogusly reinitialize ascii_character property.
7434
7435 2002-07-08  Mike Sperber <mike@xemacs.org>
7436
7437         * process.c (Fstart_process_internal): Do error checking before we
7438         fork off the child, so the child can't muck with the state of the
7439         parent.
7440
7441 2002-07-08  Mike Sperber <mike@xemacs.org>
7442
7443         * ralloc.c (init_ralloc): Allocate properly for pdump.
7444
7445 2002-06-12  Andy Piper  <andy@xemacs.org>
7446
7447         * glyphs.c (query_string_geometry): check the string.
7448
7449         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7450         widget names.
7451
7452 2002-06-17  Jerry James  <james@xemacs.org>
7453
7454         * sysdll.c: Remove RTLD_GLOBAL initialization.
7455         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7456
7457 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7458
7459         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7460
7461 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7462
7463         * sysdep.c (sys_rename): Make sys_rename work for the case where
7464         Windows rename sets errno to EACCES if target file exists.
7465
7466 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7467
7468         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7469         Fix detection of metric units to work on Win95
7470
7471 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7472
7473         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7474
7475 2002-04-25  Andy Piper  <andy@xemacs.org>
7476
7477         * redisplay.c (create_text_block): Remove extra comment trailer.
7478
7479 2002-04-24  Andy Piper  <andy@xemacs.org>
7480
7481         * redisplay.c (create_text_block): Don't actually add propagation
7482         data if the line ends after we have added a glyph.
7483
7484 2002-04-22  Andy Piper  <andy@xemacs.org>
7485
7486         * extents.c (extent_fragment_update): check for glyphs we have
7487         previously displayed.
7488         * extents.c (print_extent_1): warning removal.
7489         * extents.h: change prototype.
7490         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7491         widths correctly for wide glyphs.
7492         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7493         * redisplay.c (prop_type): add PROP_GLYPH.
7494         * redisplay.c (struct prop_block): add glyph type
7495         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7496         to the propagation data.
7497         * redisplay.c (create_text_block): if there is a glyph in the
7498         propagation data use it to salt extent_fragment_update.
7499         * redisplay.c (create_string_text_block): ditto.
7500
7501 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7502
7503         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7504         * redisplay-output.c (compare_runes): Compare them.
7505         * redisplay.c: Update copyright date.
7506         * redisplay.c (pos_data): Add need_baseline_computation field.
7507         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7508         need_baseline_computation; zero yoffset. Set max_pixmap_height
7509         for all pixmaps, not just automatically positioned ones.
7510         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7511         * redisplay.c (calculate_baseline): New, compute textual baseline.
7512         * redisplay.c (add_glyph_rune): Call them.
7513         * redisplay.c (create_text_block): Likewise.
7514         * redisplay.c (create_overlay_glyph_block): Likewise.
7515         * redisplay.c (add_margin_runes): Likewise.
7516         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7517
7518         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7519         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7520         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7521         * redisplay-msw.c (mswindows_output_string): Likewise.
7522         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7523         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7524         * redisplay-x.c (x_output_display_block): Likewise.
7525
7526 2002-03-28  Ben Wing  <ben@xemacs.org>
7527
7528         * redisplay.c: Fixed bug in redisplay
7529         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7530         and down of the lines, since they're bigger than the line
7531         size. (It was seen most obviously when there's a horizontal scroll
7532         bar, e.g. do C-h a glyph or something like that.) The problem was
7533         that the glyph-contrib-p setting on glyphs was ignored even if it
7534         was set properly, which it wasn't until now.
7535
7536 2002-04-24  Andy Piper  <andy@xemacs.org>
7537
7538         * lisp.h (Dynarr_end): Fix definition.
7539
7540 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7541
7542         * redisplay.c (mark_redisplay): Remove call to
7543         update_frame_window_mirror.
7544
7545 2001-11-15  Andy Piper  <andy@xemacs.org>
7546
7547         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7548         cygwin (again).
7549
7550 2002-02-13  Andy Piper  <andy@xemacs.org>
7551
7552         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7553         we did in fact enqueue the XM_MAPFRAME event.
7554
7555 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7556
7557         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7558         to fix problem switching between virtual desktops under virtuawin
7559         virtual window manager.
7560
7561 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7562
7563         * event-msw.c: Typo fix.
7564         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7565         magic XM_MAPFRAME event has been sent.
7566
7567 2001-11-23  Andy Piper  <andy@xemacs.org>
7568
7569         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7570
7571 2001-11-21  Andy Piper  <andy@xemacs.org>
7572
7573         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7574         mouse events outside the frame.
7575
7576 2002-03-20  Andy Piper  <andy@xemacs.org>
7577
7578         * menubar-msw.c (mswindows_popup_menu): warning removal.
7579         * dialog-msw.c (dialog_popped_down): ditto.
7580
7581 2001-12-11  Andy Piper  <andy@xemacs.org>
7582
7583         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7584         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7585         popup_up_p.
7586         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7587         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7588         * menubar-msw.c (mswindows_popup_menu): ditto.
7589
7590 2001-10-29  Andy Piper  <andy@xemacs.org>
7591
7592         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7593         cancels.
7594
7595 2002-01-03  Andy Piper  <andy@xemacs.org>
7596
7597         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7598         letters.
7599         (xrealpath): ditto.
7600
7601 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7602
7603         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7604         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7605         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7606         Detect and handle case where machine is set up for metric units
7607
7608 2002-04-02  Andy Piper  <andy@xemacs.org>
7609
7610         * dired-msw.c (mswindows_get_files): 
7611         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7612         completely handled by XEmacs. Suggested by Thomas Vogler
7613         <mail@thomas-vogler.de>.
7614
7615 2001-11-14  Andy Piper  <andy@xemacs.org>
7616
7617         * nt.c (REG_ROOT): change registry key to XEmacs.
7618
7619 2002-04-27  Andy Piper  <andy@xemacs.org>
7620
7621         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7622
7623 2002-04-26  Andy Piper  <andy@xemacs.org>
7624
7625         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7626         behavior.
7627
7628 2002-03-14  Mike Alexander  <mta@arbortext.com>
7629
7630         * event-msw.c (mswindows_unwait_process): New, remove process from
7631         wait list
7632         * process-nt.c (nt_finalize_process_data): Call
7633         mswindows_unwait_process
7634         * console-msw.h: Declare mswindows_unwait_process
7635
7636 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7637
7638         * editfns.c (Fdecode_time):
7639         (Fformat_time_string):
7640         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7641         (make_time): Warning elimination (change arg name).
7642
7643 2001-11-24  Andy Piper  <andy@xemacs.org>
7644
7645         * window.c (Fsplit_window): Doc return type.
7646
7647 2002-04-01  Andy Piper  <andy@xemacs.org>
7648
7649         * emacs.c (Fkill_emacs): Only output message box in interactive
7650         mode.
7651
7652 2002-04-26  Andy Piper  <andy@xemacs.org>
7653  
7654         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7655         cygwin.
7656
7657 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7658
7659         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7660         bit platform.
7661
7662 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7663
7664         * XEmacs 21.4.8 "Honest Recruiter" is released.
7665
7666 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7667
7668         Supersedes 2002-04-17 patch.
7669
7670         * process.h (PROCESS_LIVE_P): Use the process status as
7671         evidence of health, not the state of the input stream.
7672         (PROCESS_READABLE_P): Say if the process is readable
7673         from. (It may be dead nonetheless.)
7674         (CHECK_READABLE_PROCESS): Test for that condition.
7675
7676         * process.c (create_process): Use PROCESS_READABLE_P.
7677         (read_process_output, set_process_filter): Likewise.
7678
7679         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7680         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7681
7682         This code is #if 0'd, this is not the time to add new functions:
7683
7684         * process.c (Fprocess_readable_p): Report readability status.
7685         * process.c (Qprocess_readable_p): New, associated symbol...
7686         * process.c (syms_of_process): ... initialize it.
7687
7688 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7689
7690         * XEmacs 21.4.7 "Economic Science" is released.
7691
7692 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7693
7694         * process.h (PROCESS_LIVE_P): Use the process status as
7695         evidence of health, not the state of the input stream.
7696
7697 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7698
7699         * sysdep.c (sys_siglist): change "signum" to "signal"
7700
7701 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7702
7703         * s/darwin.h: New file.
7704         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7705         
7706 2002-04-23  Andreas Jaeger  <aj@suse.de>
7707
7708         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7709         which use lib64 for 64-bit libs.
7710         (START_FILES): Likewise.
7711
7712 2002-02-11  Mike Sperber  <mike@xemacs.org>
7713
7714         * device-x.c: 
7715         (x_IO_error_handler):
7716         (x_init_device): Temporarily keep device in static variable
7717         `device_being_initialized' so we can recover gracefully from
7718         internal XOpenDevice failure.  (XOpenDevice is documented to
7719         return NULL on failure, but sometimes calls the IO error handler
7720         instead.)
7721
7722 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7723
7724         * dired.c (Ffile_name_all_completions): Change documentation --
7725         remove reference to completion-ignored-extensions.
7726         * dired.c (vars_of_dired): Change documentation for
7727         completion-ignored-extensions -- remove reference to
7728         file-name-all-completions.
7729
7730 2002-03-06  Jerry James  <james@xemacs.org>
7731
7732         * emodules.c (emodules_load): Fix multiple loading of same module.
7733
7734 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7735         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7736         RTLD_LAZY to avoid incorrect symbol binding when using nested
7737         shared libraries on Solaris.
7738
7739 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7740
7741         * fileio.c (Ffind_file_name_handler): Improve docstring.
7742
7743 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7744
7745         * fns.c (Fmapconcat): Improve docstring.
7746
7747 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7748
7749         * device-gtk.c: Add prototype for
7750         emacs_gtk_selection_clear_event_handle.
7751         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7752         selection.  Setup signal handler for "selection_clear_event"
7753         (emacs_gtk_selection_clear_event_handle).
7754
7755         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7756         other applications owning the clipboard (based on
7757         x_handle_selection_clear).
7758
7759 2001-12-23  William M. Perry  <wmperry@gnu.org>
7760
7761         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7762         
7763 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7764
7765         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7766
7767 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7768
7769         * XEmacs 21.4.6 "Common Lisp" is released.
7770
7771 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7772
7773         * search.c (Freplace_match): Add missing sub-expression functionality.
7774
7775         * buffer.c (decode_buffer): Add a check for pointer type to
7776         decode_buffer, before gcc's CSE optimization reorders a
7777         dereference in front of the allow_string test.
7778
7779 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7780
7781         * window.c (window_loop): Fix bug that sometimes prevented
7782         window_loop() from iterating across multiple devices.  Also, at
7783         Ben's request, changed infloop-detecting code to abort() instead
7784         of silently terminating window_loop().
7785
7786 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7787
7788         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7789         * editfns.c (make_time): New function.
7790         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7791         * lisp.h (make_time): Prototype and comment it.
7792         * dired.c (wasteful_word_to_lisp): Deprecate.
7793         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7794
7795 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7796
7797         * fileio.c (auto_save_1): Use current coding system, not
7798         escape-quoted.
7799
7800 2001-11-13  Ben Wing  <ben@xemacs.org>
7801
7802         * window.c:
7803         * window.c (window_truncation_on):
7804         * window.c (syms_of_window):
7805         truncate-partial-width-windows should respect the buffer being
7806         displayed, like other redisplay vars.
7807
7808 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7809
7810         * event-stream.c (Fread_key_sequence): save current buffer.
7811
7812 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7813
7814         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7815
7816 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7817
7818         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7819
7820 2001-10-26  Mike Alexander  <mta@arbortext.com>
7821
7822         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7823
7824 2001-10-25  Andy Piper  <andy@xemacs.org>
7825
7826         * ChangeLog:
7827         * dialog-msw.c (handle_directory_proc): new function.
7828          (handle_directory_dialog_box): new fucntion.
7829          (handle_file_dialog_box): use new directory dialog support.
7830          (mswindows_make_dialog_box_internal): ditto.
7831         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7832         handling.
7833         (mswindows_find_frame): make global.
7834         * fileio.c (Fexpand_file_name): build fix.
7835         * general-slots.h: add Qdirectory.
7836         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7837         handling.
7838         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7839         cygwin not leaving win32 paths unchanged.
7840         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7841         cygwin runtime to do path conversion.
7842         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7843         (syms_of_win32): add new function.
7844         * window.c (window_loop): build fix.
7845
7846 2001-10-15  Andy Piper  <andy@xemacs.org>
7847
7848         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7849
7850 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7851
7852         * XEmacs 21.4.5 "Civil Service" is released.
7853
7854 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7855
7856         * glyphs-x.c: Force buffer-tab highlight update when moving the
7857         buffer, avoiding an ugly black border, used for keyboard focus
7858         indication, on a widget that can never have keyboard focus, the
7859         buffer tab.
7860
7861 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7862
7863         * process-unix.c (unix_open_multicast_group): Remove too much
7864         conversion between host and network byte order.
7865
7866 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7867
7868         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7869         before replacing them.
7870
7871         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7872         operation.
7873
7874         * src/window.c (undedicate_windows): Use it.
7875         * src/window.h: Add prototype.
7876
7877 2001-09-17  Ben Wing  <ben@xemacs.org>
7878
7879         * fileio.c (normalize_filename):
7880         * fileio.c (Fexpand_file_name):
7881         Fix various C++ compile errors in Andy's recent code.
7882         
7883         * callint.c (Fcall_interactively):
7884         * editfns.c (Ftemp_directory):
7885         * editfns.c (Fuser_full_name):
7886         * emacs.c (argmatch):
7887         * lread.c (locate_file_map_suffixes):
7888         * redisplay-x.c (x_ring_bell):
7889         Fix sign-compare warnings.
7890         
7891 2001-09-08  Andy Piper  <andy@xemacs.org>
7892
7893         * fileio.c (normalize_filename): copied from nt.c
7894         * (Ffile_name_directory): enable win32 paths under cygwin.
7895         * (Ffile_name_nondirectory): ditto.
7896         * (directory_file_name): ditto.
7897         * (Fexpand_file_name): ditto.
7898         * (Ffile_truename): ditto.
7899         * (Fsubstitute_in_file_name): ditto.
7900         * (Ffile_name_absolute_p): ditto.
7901         * (Ffile_readable_p): ditto.
7902
7903 2001-09-08  Andy Piper  <andy@xemacs.org>
7904
7905         * device-msw.c (mswindows_finish_init_device): remove dde
7906         initialization.
7907         * device-msw.c (mswindows_init_dde): factor out from
7908         mswindows_finish_init_device()
7909         * device-msw.c (init_mswindows_very_early): new function
7910         initialize but don't enable dde.
7911         * emacs.c (main_1): call init_mswindows_very_early.
7912         * event-msw.c:
7913         * event-msw.c (mswindows_dde_callback): only execute when we are
7914         ready.
7915         * symsinit.h: declare init_mswindows_very_early.
7916
7917 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7918
7919         [sjt: This has been in 21.5 for months with no complaints.]
7920
7921         * console.h (struct console_methods): Added flags member.
7922         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7923         (CONMETH_IMPL_FLAG):
7924         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7925         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7926
7927         * device.c (window_system_pixelated_geometry): Use the above macros.
7928
7929         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7930         implememntation flag.
7931         * device.h (DEVICE_DISPLAY_P): Use it.
7932
7933         * frame.c (delete_frame_internal): Use the above macro.
7934
7935         * redisplay.c (redisplay_device): Use it.
7936         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7937         (redisplay_frame): Ditto.
7938
7939         * device-msw.c (mswindows_device_implementation_flags): Removed.
7940         (msprinter_device_implementation_flags): Removed.
7941         (console_type_create_device_mswindows): Removed references to
7942         implementation_flags methods, set implementation flags here.
7943         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7944
7945         * device-gtk.c (gtk_device_implementation_flags): Removed method.
7946         (console_type_create_device_gtk): Removed method declaration.
7947         Added commented out statement which semantically matches the
7948         commented out statement in the above removed method.
7949
7950 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
7951
7952         The attached patch fixes a few warnings. 
7953
7954         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7955         * src/frame-gtk.c: guard against GNOME calls in GTK only
7956         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7957         * src/select-gtk.c: prototype lisp_to_time
7958
7959 2001-06-08  Ben Wing  <ben@xemacs.org>
7960
7961         ------ gc-in-window-procedure fixes ------
7962         
7963         * alloc.c:
7964         * alloc.c (struct post_gc_action):
7965         * alloc.c (register_post_gc_action):
7966         * alloc.c (run_post_gc_actions):
7967         * alloc.c (garbage_collect_1):
7968         Create "post-gc actions", to avoid those dreaded "GC during window
7969         procedure" problems.
7970
7971         * event-msw.c:
7972         Abort, clean and simple, when GC in window procedure.  We want
7973         to flush these puppies out.
7974
7975         * glyphs-msw.c:
7976         * glyphs-msw.c (finalize_destroy_window):
7977         * glyphs-msw.c (mswindows_finalize_image_instance):
7978         Use a post-gc action when destroying subwindows.
7979
7980         * lisp.h:
7981         Declare register_post_gc_action().
7982
7983         * scrollbar-msw.c:
7984         * scrollbar-msw.c (unshow_that_mofo):
7985         Use a post-gc action when unshowing scrollbar windows, if in gc.
7986
7987         * redisplay.c (mark_redisplay):
7988         Add comment about the utter evilness of what's going down here.
7989
7990         ------ cygwin setitimer fixes ------
7991         
7992         * Makefile.in.in (sheap_objs):
7993         * Makefile.in.in (profile_objs):
7994         * Makefile.in.in (objs):
7995         Compile profile.c only when HAVE_SETITIMER.
7996         
7997         * nt.c (mswindows_sigset):
7998         * nt.c (mswindows_sighold):
7999         * nt.c (mswindows_sigrelse):
8000         * nt.c (mswindows_sigpause):
8001         * nt.c (mswindows_raise):
8002         * nt.c (close_file_data):
8003         Style fixes.
8004         
8005         * nt.c:
8006         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8007         
8008         * profile.c:
8009         * profile.c (Fstart_profiling):
8010         * profile.c (Fstop_profiling):
8011         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8012         instead of just plain setitimer().
8013         
8014         * signal.c:
8015         * signal.c (set_one_shot_timer):
8016         * signal.c (alarm):
8017         Define qxe_setitimer() as an encapsulation around setitimer() --
8018         call setitimer() directly unless Cygwin or MS Win, in which case
8019         we use our simulated version in win32.c.
8020         
8021         * systime.h:
8022         * systime.h (struct itimerval):
8023         * systime.h (ITIMER_REAL):
8024         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8025         comment about "qxe" and the policy regarding encapsulation.
8026
8027         * win32.c:
8028         * win32.c (setitimer_helper_proc):
8029         * win32.c (setitimer_helper_period):
8030         * win32.c (setitimer_helper):
8031         * win32.c (mswindows_setitimer):
8032         Move setitimer() emulation here, so Cygwin can use it.
8033         Rename a couple of functions and variables to be longer and more
8034         descriptive.  In setitimer_helper_proc(), send the signal
8035         using either mswindows_raise() or (on Cygwin) kill().  If for
8036         some reason we are still getting lockups, we'll change the kill()
8037         to directly invoke the signal handlers.
8038
8039         ------ windows shell fixes ------
8040         
8041         * callproc.c:
8042         * ntproc.c:
8043         Comments about how these two files must die.
8044
8045         * callproc.c (init_callproc):
8046         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8047         not just COMSPEC. (more correct and closer to FSF.) Don't
8048         force a value for SHELL into the environment. (Comments added
8049         to explain why not.)
8050         
8051         * nt.c (init_user_info):
8052         Don't shove a fabricated SHELL into the environment.  See above.
8053
8054 2001-06-01  Ben Wing  <ben@xemacs.org>
8055
8056         * Makefile.in.in (ldflags):
8057         eliminate that pesky "defaulting to 00401000" warning.
8058         * nt.h:
8059         eliminate warnings.
8060
8061 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8062
8063         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8064         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8065
8066 2001-04-24  Jerry James <james@xemacs.org>
8067
8068         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8069         correct order.
8070
8071 2001-06-01  Ben Wing  <ben@xemacs.org>
8072
8073         * event-msw.c (debug_mswin_messages):
8074         conditionalize the messages that were causing compile errors.
8075         (if only macros could generate #ifdef statements ...)
8076
8077 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8078
8079         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8080
8081 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8082
8083         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8084
8085 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8086
8087         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8088         * process-unix.c (unix_canonicalize_host_name):
8089         sysdep.c (init_system_name):
8090         Use it to conditionally support IPv6 canonicalization.
8091
8092 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8093
8094         * event-msw.c:
8095         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8096
8097 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8098
8099         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8100         attempt is made to scroll when no scroll bar is available.
8101
8102 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8103
8104         * input-method-motif.c (XIM_delete_frame): New callback.
8105         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8106         got deleted from 21.4.3.)
8107
8108 2001-06-01  Ben Wing  <ben@xemacs.org>
8109
8110         * nt.c (mswindows_utime):
8111         * nt.c (close_file_data):
8112         fix off-by-one-indirection error.
8113
8114 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8115
8116         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8117         because set_file_times() now takes Lisp_Object path, instead of
8118         char*.
8119         * nt.c: Include buffer.h.
8120         * nt.c (convert_from_time_t): New.
8121         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8122         not set mtime correctly.
8123         * nt.h: Declare mswindows_utime().
8124         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8125         path, instead of char*.
8126         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8127
8128 2001-05-30  Ben Wing  <ben@xemacs.org>
8129
8130         For 21.4:
8131
8132         (Stephen, just take all event-msw.c patches.  This includes
8133         the "iconify" fix below.)
8134
8135         * event-msw.c:
8136         * event-msw.c (mswindows_dequeue_dispatch_event):
8137         * event-msw.c (assert):
8138         * event-msw.c (emacs_mswindows_quit_p):
8139         * event-msw.c (debug_mswin_messages):
8140         * event-msw.c (debug_output_mswin_message):
8141         * event-msw.c (vars_of_event_mswindows):
8142         Fix yet more problems with C-g handling.
8143         Implement debug-mswindows-events.
8144         
8145 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8146
8147         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8148         
8149 2001-05-23  Ben Wing  <ben@xemacs.org>
8150
8151         * event-msw.c (winsock_writer):
8152         * event-msw.c (winsock_closer):
8153         prior kludgy code was clobbering the buffer, thinking it was
8154         "unused" space to store an unneeded return value; instead, use
8155         the variable we've already got staring us in the face.
8156
8157 2001-05-17  Andy Piper  <andy@xemacs.org>
8158
8159         * sysfile.h: don't assume that file attributes are boolean
8160
8161 2001-05-23  Ben Wing  <ben@xemacs.org>
8162
8163         * device-msw.c (msprinter_init_device):
8164         signal an error rather than crash with an unavailable network
8165         printer (from Mike Alexander).
8166         
8167         * event-msw.c:
8168         * event-msw.c (struct winsock_stream):
8169         * event-msw.c (winsock_writer):
8170         * event-msw.c (winsock_closer):
8171         * event-msw.c (make_winsock_stream_1):
8172         cleanup headers.  fix (hopefully) an error with data corruption
8173         when sending to a network connection.
8174
8175         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8176         to handle the ~user prefix by (a) always assuming we're referencing
8177         ourselves and not even verifying the user -- hence any file with
8178         a tilde as its first char is invalid! (b) if there wasn't a slash
8179         following the filename, the pointer was set *past* the end of
8180         file and we started reading from uninitialized memory.  Now we
8181         simply treat these as files, always.
8182
8183         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8184         
8185 2001-05-19  Ben Wing  <ben@xemacs.org>
8186
8187         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8188
8189         * process-nt.c:
8190         * process-nt.c (vars_of_process_nt):
8191         remove unused mswindows-quote-process-args.  rec for 21.4.
8192         
8193 2001-05-12  Ben Wing  <ben@xemacs.org>
8194
8195         * event-msw.c (mswindows_dde_callback):
8196         * event-msw.c (mswindows_wnd_proc):
8197         eliminate cygwin warnings.
8198
8199 2001-05-06  Ben Wing  <ben@xemacs.org>
8200
8201         * console-msw.h:
8202         * device-msw.c:
8203         * device-msw.c (print_dialog_worker):
8204         * device-msw.c (mswindows_handle_print_dialog_box):
8205         * device-msw.c (syms_of_device_mswindows):
8206         * dialog-msw.c (mswindows_make_dialog_box_internal):
8207         * general-slots.h:
8208         implement printing the selection when it's selected.
8209
8210 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8211
8212         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8213
8214 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8215
8216         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8217         EMACS_INT is signed.
8218
8219 2001-04-15  Michael Lausch  <mla@1012surf.net>
8220
8221         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8222         gtk_widget_request_size() to give scrollbar >0 width for
8223         GTK >1.2.8.
8224
8225 2001-05-30  William M. Perry  <wmperry@gnu.org>
8226
8227         * event-gtk.c: Check for buttons as modifier keys.
8228
8229 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8230
8231         * s\mingw32.h:
8232         Properly find MinGW's <process.h> inside Cygwin's restructured
8233         include directories.  Don't try to include <cygwin/version.h>
8234         since we are dropping support for MinGW in versions of Cygwin
8235         earlier than b21.
8236         * nt.c:
8237         Drop support for MinGW in versions of Cygwin before b21.
8238         * sysdep.c:
8239         Properly find MinGW's <process.h> inside Cygwin's restructured
8240         include directories.
8241         * syswindows.h:
8242         Drop support for MinGW in versions of Cygwin before b21.
8243         * unexcw.c:
8244         Even though a.out.h is no longer detected by configure, allow
8245         MinGW to use it until we figure out how to do the job with Win32.
8246
8247 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8248
8249         * syntax.c (find_start_of_comment):
8250         Fix `unbalanced parentheses' bug when dealing with mixed comment
8251         styles in c++/java/etc. mode
8252
8253 2001-05-29  Mike Alexander  <mta@arbortext.com>
8254
8255         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8256         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8257
8258 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8259
8260         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8261
8262 2001-03-31  Mike Sperber <mike@xemacs.org>
8263
8264         * search.c (Freplace_match): Support FSF-style specification of
8265         match subexpression when applied to a buffer.
8266
8267 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8268
8269         * event-stream.c (is_scrollbar_event): add missing semicolon
8270
8271 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8272
8273         * Makefile.in.in: Use TAR macro instead of hardcoding
8274           tar.  Allows use of GNU tar instead of system tar
8275
8276 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8277
8278         * event-stream.c (is_scrollbar_event): add missing semicolon
8279
8280 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8281
8282         * XEmacs 21.4.3 "Academic Rigor" is released.
8283
8284 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8285
8286         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8287
8288 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8289
8290         * buffer.c (Vcase_fold_search): Remove obsolete
8291           comment about non ASCII case-fold-search.  This
8292           bug has been fixed by case-table changes.
8293
8294 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8295
8296         * event-msw.c: Restore include of events-mod.h.
8297
8298 2001-04-22   zhaoway  <zw@debian.org>
8299
8300         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8301         !HAVE_SCROLLBARS.
8302
8303 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8304
8305         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8306
8307 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8308
8309         * mule-charset.c (Fmake_charset): Add missing else.
8310
8311 2001-04-23  Ben Wing  <ben@xemacs.org>
8312
8313         * event-msw.c (FAKE_MOD_QUIT):
8314         * event-msw.c (mswindows_dequeue_dispatch_event):
8315         * event-msw.c (mswindows_wnd_proc):
8316         * event-msw.c (emacs_mswindows_quit_p):
8317         Get critical quit working.
8318
8319 2001-05-05  Ben Wing  <ben@xemacs.org>
8320
8321         * console-msw.h:
8322         * device-msw.c:
8323         * device-msw.c (mswindows_get_default_margin):
8324         * frame-msw.c (mswindows_size_frame_internal):
8325         * frame-msw.c (msprinter_init_frame_1):
8326         * frame-msw.c (vars_of_frame_mswindows):
8327         Change top/bottom margin defaults to 0.5 inches.
8328
8329 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8330
8331         Fix link error with gcc 3.0 on Linux.
8332         * terminfo.c (UP): Remove.
8333         * terminfo.c (BC): Remove.
8334         * terminfo.c (PC): Remove.
8335         They weren't used, and in any case, these symbols should be
8336         defined in the *library*.
8337
8338 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8339
8340         * s/aix4.h: Fix crash with xlc -O3.
8341         Improve comment explaining how -O3 works.
8342
8343 2001-04-15  Ben Wing  <ben@xemacs.org>
8344
8345         * event-stream.c:
8346         * event-stream.c (Fnext_event):
8347         * event-stream.c (is_scrollbar_event):
8348         * event-stream.c (execute_command_event):
8349         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8350         crash' problem.  His fix introduces other problems.  We filter
8351         out scrollbar events specifically, making them somewhat invisible
8352         to command-building, and not appearing in `this-command-keys'.
8353         More work is still needed (see comments in event-stream.c), but
8354         this fixes all the major problems.
8355
8356 2001-04-20  Ben Wing  <ben@xemacs.org>
8357
8358         * .cvsignore: Added stuff for Windows.
8359
8360 2001-04-28  Ben Wing  <ben@xemacs.org>
8361
8362         * buffer.c (Ferase_buffer):
8363         * editfns.c (buffer_insert1):
8364         * editfns.c (Finsert_before_markers):
8365         * editfns.c (Finsert_string):
8366         * editfns.c (Finsert_char):
8367         * editfns.c (Fdelete_region):
8368         * editfns.c (Fwiden):
8369         * editfns.c (Fnarrow_to_region):
8370         remove bogus lines setting zmacs_region_stays to 0.
8371         
8372 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8373
8374         * process-unix.c (unix_open_network_stream): If connect() fails
8375         invalidate file descriptor after closing it.
8376
8377 2001-03-08  Mike Alexander  <mta@arbortext.com>
8378
8379         * event-msw.c (mswindows_need_event_in_modal_loop):
8380         Don't dispatch a message if we didn't get one.
8381         (mswindows_need_event):
8382         Terminate the correct process when one exits instead of the first
8383         one on Vprocess_list and look for process termination when in
8384         mswindows_protect_modal_loop.
8385
8386 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8387
8388         * XEmacs 21.4.1 "Copyleft" is released.
8389
8390 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8391
8392         * input-method-motif.c (XIM_delete_frame): New callback.
8393         (XIM_init_frame): Register it.
8394
8395 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8396
8397         * XEmacs 21.4.0 "Solid Vapor" is released.
8398
8399 2001-04-15  Ben Wing  <ben@xemacs.org>
8400
8401         * cmdloop.c (call_command_loop):
8402         Fix braino in bit-rotting code.
8403         
8404 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8405
8406         * extents.c (Fset_extent_endpoints): Force creation of extent info
8407         in buffer_or_string.
8408
8409         * extents.c (process_extents_for_insertion_mapper): Correctly
8410         check for open-open zero-length extents.
8411
8412 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8413
8414         * lisp.h: New typedefs Memory_count, Element_count.
8415         * regex.c:
8416         * regex.h:
8417         Sign-compare warning elimination: several unsigned -> signed.
8418         Based on work by Ben Wing <ben@xemacs.org>.
8419
8420 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8421
8422         * XEmacs 21.2.47 "Zephir" is released.
8423
8424 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8425
8426         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8427
8428 2001-04-03  Mike Sperber <mike@xemacs.org>
8429
8430         * search.c: Revert previous patch due because of release.
8431
8432 2001-03-30  Ben Wing  <ben@xemacs.org>
8433
8434         * s\cygwin32.h:
8435         Add missing killpg prototype.
8436
8437         * elhash.c:
8438         Add a comment about fixing problems when a new entry is added
8439         while mapping.
8440
8441         * frame-msw.c (mswindows_init_frame_1):
8442         Fix compile warnings.
8443
8444         * menubar.c (vars_of_menubar):
8445         Provide `menu-accelerator-support' to indicate that we properly
8446         support %_ in menu specifications, so that package code can
8447         conditionalize on this (and remove %_ from menu specifications
8448         on older versions).
8449
8450         * event-msw.c:
8451         * scrollbar-msw.c:
8452         * scrollbar-msw.c (can_scroll):
8453         * scrollbar-msw.h:
8454         Fix handling of mouse wheel under Windows to follow standards --
8455         now scrolls window under pointer, not selected window.
8456
8457 2001-03-31  Mike Sperber <mike@xemacs.org>
8458
8459         * search.c (Freplace_match): Support FSF-style specification of
8460         match subexpression when applied to a buffer.
8461
8462 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8463
8464         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8465         function to modify KEYMAP, so map over a copy of the hash table.
8466
8467 2001-03-21  Martin Buchholz <martin@xemacs.org>
8468
8469         * XEmacs 21.2.46 "Urania" is released.
8470
8471 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8472
8473         * realpath.c (xrealpath): Make file-truename work with symlinks to
8474         /cygdrive paths on cygwin. Always lowercase drive-letters on
8475         native windows.
8476         (cygwin_readlink): Don't try to find canonical filename unless
8477         file exists.
8478
8479 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8480
8481         * ChangeLog: Log GTK merge.
8482
8483         * dumper.c:
8484         * select-x.c:
8485         * specifier.c:
8486         * symeval.h:
8487         Revert gratuitous whitespace changes from GTK merge.
8488
8489         * emacs.c: Document end of complex #ifdef @ l. 1495.
8490
8491
8492 2001-03-12  Andy Piper  <andy@xemacs.org>
8493
8494         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8495         have to do likewise.
8496
8497 2001-03-12  Andy Piper  <andy@xemacs.org>
8498
8499         * sysdep.c: we only support mingw now.
8500
8501 2001-03-09  Andy Piper  <andy@xemacs.org>
8502
8503         * unexcw.c (copy_executable_and_dump_data_section): making approx
8504         overrun a warning only.
8505
8506 2001-03-10  William M. Perry  <wmperry@aventail.com>
8507
8508         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8509         satisfy Stephen's identical-after-cpp plea.
8510
8511 2001-03-02  Ben Wing  <ben@xemacs.org>
8512
8513         * cmds.c:
8514         * cmds.c (Fforward_char):
8515         * syntax.c:
8516         * window.c:
8517
8518         Augment documentation of the most common motion commands to make
8519         note of the shifted-motion support.
8520         
8521 2001-03-02  Ben Wing  <ben@xemacs.org>
8522
8523         * nt.c (mswindows_fstat):
8524         * nt.c (mswindows_stat):
8525         * search.c (boyer_moore):
8526         Fix compile warnings under Windows.
8527         
8528         * sysdep.c (sys_readdir):
8529         Fix buggy filename-conversion code under Mule.
8530
8531 2001-03-09  William M. Perry  <wmperry@aventail.com>
8532
8533         * Makefile.in.in:
8534         * config.h.in:
8535         * console.c:
8536         * console.h:
8537         * device.c:
8538         * device.h:
8539         * dragdrop.c:
8540         * emacs.c:
8541         * event-stream.c:
8542         * events.c:
8543         * events.h:
8544         * faces.c:
8545         * frame.h:
8546         * general-slots.h:
8547         * glyphs.c:
8548         * gutter.c:
8549         * inline.c:
8550         * lisp.h:
8551         * lrecord.h:
8552         * make-src-depend:
8553         * redisplay-output.c:
8554         * redisplay.c:
8555         * symsinit.h:
8556         * sysfile.h:
8557         * toolbar.c:
8558         * window.c:
8559         The Great GTK Merge.
8560
8561         * ChangeLog.GTK:
8562         * console-gtk.c:
8563         * console-gtk.h:
8564         * device-gtk.c:
8565         * emacs-marshals.c:
8566         * emacs-widget-accessors.c:
8567         * event-gtk.c:
8568         * frame-gtk.c:
8569         * gccache-gtk.c:
8570         * gccache-gtk.h:
8571         * glade.c:
8572         * glyphs-gtk.c:
8573         * glyphs-gtk.h:
8574         * gtk-glue.c:
8575         * gtk-xemacs.c:
8576         * gtk-xemacs.h:
8577         * gui-gtk.c:
8578         * gui-gtk.h:
8579         * menubar-gtk.c:
8580         * native-gtk-toolbar.c:
8581         * objects-gtk.c:
8582         * objects-gtk.h:
8583         * redisplay-gtk.c:
8584         * scrollbar-gtk.c:
8585         * scrollbar-gtk.h:
8586         * select-gtk.c:
8587         * toolbar-gtk.c:
8588         * ui-byhand.c:
8589         * ui-gtk.c:
8590         * ui-gtk.h:
8591         The Great GTK Merge: new files.
8592
8593 2001-02-26  Ben Wing  <ben@xemacs.org>
8594
8595         Reapplied Lstream change.
8596
8597 2001-02-26  Ben Wing  <ben@xemacs.org>
8598
8599         Undid the last change, since it is more controversial than I
8600         thought.  It should be back in at some point soon.
8601         
8602 2001-02-25  Ben Wing  <ben@xemacs.org>
8603
8604         * buffer.c:
8605         * callproc.c (Fold_call_process_internal):
8606         * event-msw.c (ntpipe_slurp_reader):
8607         * event-msw.c (ntpipe_shove_writer):
8608         * event-msw.c (winsock_reader):
8609         * event-msw.c (winsock_writer):
8610         * file-coding.c:
8611         * file-coding.c (detect_eol_type):
8612         * file-coding.c (detect_coding_type):
8613         * file-coding.c (determine_real_coding_system):
8614         * file-coding.c (Fdetect_coding_region):
8615         * file-coding.c (decoding_reader):
8616         * file-coding.c (decoding_writer):
8617         * file-coding.c (mule_decode):
8618         * file-coding.c (Fdecode_coding_region):
8619         * file-coding.c (encoding_reader):
8620         * file-coding.c (encoding_writer):
8621         * file-coding.c (mule_encode):
8622         * file-coding.c (Fencode_coding_region):
8623         * file-coding.c (detect_coding_sjis):
8624         * file-coding.c (decode_coding_sjis):
8625         * file-coding.c (encode_coding_sjis):
8626         * file-coding.c (detect_coding_big5):
8627         * file-coding.c (decode_coding_big5):
8628         * file-coding.c (encode_coding_big5):
8629         * file-coding.c (detect_coding_ucs4):
8630         * file-coding.c (decode_coding_ucs4):
8631         * file-coding.c (encode_coding_ucs4):
8632         * file-coding.c (detect_coding_utf8):
8633         * file-coding.c (decode_coding_utf8):
8634         * file-coding.c (encode_coding_utf8):
8635         * file-coding.c (detect_coding_iso2022):
8636         * file-coding.c (decode_coding_iso2022):
8637         * file-coding.c (encode_coding_iso2022):
8638         * file-coding.c (decode_coding_no_conversion):
8639         * file-coding.c (encode_coding_no_conversion):
8640         * glyphs-x.c (write_lisp_string_to_temp_file):
8641         * gpmevent.c (tty_get_foreign_selection):
8642         * lisp.h:
8643         * lstream.c:
8644         * lstream.c (Lstream_flush_out):
8645         * lstream.c (Lstream_adding):
8646         * lstream.c (Lstream_write_1):
8647         * lstream.c (Lstream_write):
8648         * lstream.c (Lstream_raw_read):
8649         * lstream.c (Lstream_read_more):
8650         * lstream.c (Lstream_read):
8651         * lstream.c (Lstream_unread):
8652         * lstream.c (Lstream_fputc):
8653         * lstream.c (stdio_reader):
8654         * lstream.c (stdio_writer):
8655         * lstream.c (filedesc_reader):
8656         * lstream.c (filedesc_writer):
8657         * lstream.c (lisp_string_reader):
8658         * lstream.c (struct fixed_buffer_stream):
8659         * lstream.c (make_fixed_buffer_input_stream):
8660         * lstream.c (make_fixed_buffer_output_stream):
8661         * lstream.c (fixed_buffer_reader):
8662         * lstream.c (fixed_buffer_writer):
8663         * lstream.c (struct resizing_buffer_stream):
8664         * lstream.c (resizing_buffer_writer):
8665         * lstream.c (dynarr_writer):
8666         * lstream.c (lisp_buffer_reader):
8667         * lstream.c (lisp_buffer_writer):
8668         * lstream.h:
8669         * lstream.h (lstream_implementation):
8670         * lstream.h (struct lstream):
8671         * md5.c (Fmd5):
8672         * process-nt.c (nt_send_process):
8673         * process-unix.c (unix_send_process):
8674         
8675         Correct Lstream lossage due to mixing of signed and unsigned
8676         quantities.  All Lstream uses of size_t and ssize_t are now a
8677         single signed data type Lstream_data_count.  This fixes problems
8678         under Windows with sending large quantities of data to a process,
8679         and may well fix other subtle bugs.
8680
8681 2001-02-23  Martin Buchholz <martin@xemacs.org>
8682
8683         * XEmacs 21.2.45 "Thelxepeia" is released.
8684
8685 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8686
8687         * lisp-union.h (XSETINT): 
8688         (XSETCHAR):
8689         (XSETOBJ): 
8690         Reverse previous change of 2001-02-06.
8691
8692 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8693
8694         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8695         buffers.
8696         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8697         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8698         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8699         * regex.c (POS_AS_IN_BUFFER): removed
8700         * regex.c (re_search_2):
8701         * regex.c (re_match_2):
8702         Don't use an offset of 1 when calculating buffer positions, since
8703         `BI_BUF_BEGV' does it already.
8704
8705 2001-02-18  Wim Dumon  <wim@easics.be>
8706
8707         * insdel.c (prepare_to_modify_buffer): Also check for
8708         supersession when clash-detection is enabled. 
8709
8710 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8711
8712         * regex.c (re_match_2_internal):
8713         Convert temp characters from 'const unsigned char' to 're_char'.
8714         Fix crashing bug with extended characters under mule.
8715         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8716         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8717         font-lock, pdump, and new syntax-table code.
8718         * syntax.c (find_start_of_comment):
8719         (find_end_of_comment):
8720         (forward-comment):
8721         Fix crashing bugs involving moving beyond end of buffer.
8722         * syntax.c (find_start_of_comment):
8723         Fixed logic to allow proper detection of cases where the same
8724         character is used to end both a two-char comment start and a
8725         two-char comment end sequence. Fixes `(forward-comment -1)'.
8726         * syntax.c (find_start_of_comment):
8727         Return position just past last comment-end character for all cases
8728         (previously was only done for two-char comment-end sequences).
8729         * syntax.c (forward-comment):
8730         Take value returned from `find_end_of_comment', rather than
8731         incrementing it.
8732         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8733         Properly deal with BUFFERP (syntax_cache.object)
8734
8735 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8736
8737         * alloc.c (Fgarbage_collect): 
8738         * alloc.c (make_bit_vector_from_byte_vector):
8739         -Wsign-compare-correctness.
8740
8741 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8742
8743         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8744         (XSETCHAR): Likewise.
8745         (XSETOBJ): Likewise.
8746
8747 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8748
8749         * mule-canna.c (canna-func-delete_previous): 
8750         Rename to canna-func-delete-previous.
8751
8752 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8753
8754         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8755
8756 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8757
8758         * font-lock.c (find_context): Fix C++ compile errors introduced by
8759         recent patch
8760
8761 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8762
8763         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8764         pragma, but earlier ones barf on the same pragma.
8765
8766 2001-02-06  Mike Sperber <mike@xemacs.org>
8767
8768         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8769         `configure-mule-lisp-directory'.
8770
8771 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8772
8773         Make sure dump-id.c is compiled in the same way as other .c's.
8774         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8775         * dump-id.h: Remove.
8776         * emacs.c: Move dump-id.h into dumper.h.
8777         * dumper.h: Move dump-id.h into dumper.h.
8778         * Makefile.in.in:
8779         Use standard .c.o rule for building dump-id.o.
8780         Remove preprocessor flags from link command.
8781         Add dump-id.o to ${otherobjs} if PDUMP.
8782
8783 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8784
8785         Port FSF 20.7 syntax table improvements.
8786         * syntax.c.
8787         * syntax.h.
8788
8789         Fixups for new syntax table stuff.
8790         * dired.c: Include syntax.c.
8791         (Fdirectory_files): Initialize regex_match_object and
8792         regex_emacs_buffer.
8793         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8794         and Fget_char_property.
8795
8796         Use ported FSF 20.7 syntax table improvements.
8797         * font-lock.c.
8798         * regex.c.
8799         * search.c.
8800         
8801 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8802
8803         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8804         Unixware's enum boolean from sys/types.h.
8805
8806 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8807
8808         Fix support for building with latest Purify.
8809         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8810         (PURIFY_FLAGS): Likewise.
8811
8812 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8813
8814         * fileio.c (lisp_string_set_file_times): New.
8815         * fileio.c (Fcopy_file): Use it.
8816         Fixes bug:
8817         (copy-file filename non-ascii-filename t t)
8818         ==> No such file or directory, non-ascii-filename
8819
8820 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8821
8822         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8823         USHRT_MAX seems clearer than ~0 anyways.
8824
8825 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8826
8827         dumper improvements.  Inspired by Olivier.
8828         * dumper.c (pdump_max_align): New.
8829         * dumper.c (pdump_add_entry): Use pdump_max_align.
8830         * dumper.c (pdump_get_entry_list): Likewise.
8831         * dumper.c (pdump_scan_by_alignment): Likewise.
8832         Don't iterate through unnecessary alignments.
8833         * dumper.c (pdump_file_get): No need to align result of malloc().
8834         * dumper.c (pdump_mallocadr): Remove.  
8835         The result of malloc() is guaranteed to be maximally aligned.
8836         * dumper.c: s/elmt/elt/g;
8837         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8838         * dumper.c (pdump_alert_undump_object): Likewise.
8839         * dumper.c (pdump_align_table): 
8840         Don't support alignments > 64.
8841         Store ALIGNOF's, not shift counts, in table.
8842
8843 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8844
8845         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8846         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8847         * systime.h: Use HAVE_UTIME.
8848         * sysdep.c (struct utimbuf): Remove.
8849         * sysdep.c (set_file_times): Prefer utime() to utimes().
8850         * config.h.in (HAVE_UTIME): New.
8851         * config.h.in (HAVE_UTIME_H): Remove.
8852         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8853
8854 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8855
8856         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8857
8858 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8859
8860         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8861
8862 2001-02-08  Martin Buchholz <martin@xemacs.org>
8863
8864         * XEmacs 21.2.44 "Thalia" is released.
8865
8866 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8867
8868         Fixes crashes in kill-emacs on some systems.
8869         * process-unix.c (unix_kill_child_process):
8870         It's OK for kill() to fail with ESRCH.
8871
8872 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8873
8874         Contortions to make .gdbinit tricks work on most systems.
8875         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8876         * alloc.c (dbg_valmask): Make non-const.
8877         * alloc.c (dbg_typemask): Make non-const.
8878         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8879         * alloc.c (dbg_valbits): Make non-const.
8880         * alloc.c (dbg_gctypebits): Make non-const.
8881         * .gdbinit (decode_object): Make it work with AIX cc.
8882
8883 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8884
8885         * elhash.c (make_general_lisp_hash_table):
8886         Use simpler and more efficient calloc to clear entries.
8887
8888 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8889
8890         * window.c (window_scroll): Work around an AIX C compiler bug.
8891         Fixes 'scroll-up' does nothing problem with xlC.
8892
8893 2001-02-05  Martin Buchholz  <martin@xemacs.org>
8894
8895         * .gdbinit: Remove obsolete comment.
8896
8897 2001-01-31  Mike Alexander  <mta@arbortext.com>
8898
8899         * select.c (Fown_selection_internal): Set owned_p for device
8900         method correctly.
8901
8902 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8903
8904         Port to g++ 2.97.
8905         "not" cannot be used as a macro name as it is an operator in C++
8906         * config.h.in: Stop #defining `not'.
8907         * chartab.c (check_category_char): not ==> not_p
8908         * chartab.h: Likewise.
8909         * regex.c (re_match_2_internal): Likewise.
8910
8911 2001-02-02  Martin Buchholz  <martin@xemacs.org>
8912
8913         * lisp-disunion.h: Fix up comments.
8914
8915 2001-01-31  Martin Buchholz  <martin@xemacs.org>
8916
8917         * keymap.c (define_key_check_and_coerce_keysym):
8918         (syms_of_keymap):
8919         Support mouse-6 and mouse-7 bindings in the obvious way.
8920
8921 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8922
8923         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8924
8925 2001-01-30  Martin Buchholz  <martin@xemacs.org>
8926
8927         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8928         Previous patch missed DEFVAR_INT_MAGIC.
8929         Make sure future DEFVAR_foo use correct types.
8930         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8931         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8932         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8933         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8934         * (DEFVAR_INT): Likewise.
8935         * redisplay.c (vertical_clip): Should be of type Fixnum.
8936         * redisplay.c (horizontal_clip): Likewise.
8937         * lisp.h (dump_add_opaque_int): New.
8938         (dump_add_opaque_fixnum): New.
8939
8940 2001-01-29  Andy Piper  <andy@xemacs.org>
8941
8942         * glyphs-widget.c (check_valid_int_or_function): allow symbols
8943         since they can be eval'ed
8944
8945 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8946
8947         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8948         Oops, XEmacs redefines `class'.  Use `typename' instead.
8949
8950 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8951
8952         * dumper.c: Fix C++ compile errors.
8953
8954 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8955
8956         * tparam.c: Use correct prototypes.
8957
8958 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8959
8960         * sysproc.h: #include util.h for NetBSD's openpty.
8961
8962 2001-01-27  Martin Buchholz  <martin@xemacs.org>
8963
8964         More 64-bit correctness.
8965         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8966         Use a typedef `fixnum' for the type used for DEFVAR_INT.
8967         Fix up comments.
8968         This finally finishes the 64-bit SGI port.
8969         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8970         * symbols.c: Fix up comments and type casts.
8971         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8972         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8973         * symeval.h (Fixnum): New type.
8974         * symeval.h (symbol_value_type): Fix up comment.
8975
8976         * commands.h:
8977         * nt.c:
8978         * emacs.c:
8979         * data.c:
8980         * redisplay.c:
8981         * abbrev.c:
8982         * dired-msw.c:
8983         * event-Xt.c:
8984         * eldap.c:
8985         * window.c:
8986         * sound.c:
8987         * event-stream.c:
8988         * eval.c:
8989         * buffer.c:
8990         * mule-canna.c: A million DEFVAR_INTs here...
8991         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8992         * extents.c:
8993         * cmdloop.c:
8994         * lisp.h:
8995         * select-x.c:
8996         * console-x.h:
8997         * event-msw.c:
8998         * mule-wnnfns.c:
8999         * hpplay.c:
9000         * ralloc.c:
9001         * alloc.c:
9002         * keymap.c:
9003         * profile.c:
9004         s/int/Fixnum/g in DEFVAR_INT declarations.
9005
9006 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9007
9008         Port pdump to SGI alignment-sensitive environment.
9009         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9010         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9011         properly aligned.
9012         Define and use aligned reading and writing macros.
9013         Use buffered stdio instead of posix i/o for faster dumping.
9014         Eliminate kludgy 256 byte space for header.
9015         Read and write from dump file using structs for alignment safety.
9016         * dumper.c (pdump_align_stream): New.
9017         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9018         * dumper.c (PDUMP_READ_ALIGNED): New.
9019         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9020         * dumper.c (pdump_static_Lisp_Object): New struct.
9021         * dumper.c (pdump_static_pointer): New struct.
9022         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9023         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9024         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9025         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9026
9027         * dumper.c (pdump_backtrace):
9028         * dumper.c (pdump_get_indirect_count):
9029         * dumper.c (pdump_register_object):
9030         * dumper.c (pdump_register_struct):
9031         * dumper.c (pdump_reloc_one):
9032         * dumper.c (pdump_scan_by_alignment):
9033         * dumper.c (pdump_dump_from_root_struct_ptrs):
9034         * dumper.c (pdump_dump_opaques):
9035         * dumper.c (pdump_dump_rtables):
9036         * dumper.c (pdump_dump_from_root_objects):
9037         * dumper.c (pdump):
9038         * dumper.c (pdump_load_finish):
9039         Use aligned reading and writing.
9040
9041         * dumper.c (pdump_free): Make static.
9042         * dumper.c (pdump_hFile): Likewise.
9043         * dumper.c (pdump_hMap): Likewise.
9044
9045 2001-01-26  Martin Buchholz <martin@xemacs.org>
9046
9047         * XEmacs 21.2.43 "Terspichore" is released.
9048
9049 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9050
9051         Type fiddling for window_config.saved_windows_count
9052         * window.c (struct window_config): 
9053         Make saved_windows_count member unsigned.
9054         * window.c (sizeof_window_config_for_n_windows): 
9055         Make parameter unsigned.
9056         * window.c (mark_window_config):
9057         * window.c (window_config_equal):
9058         * window.c (free_window_configuration):
9059         * window.c (Fset_window_configuration):
9060         * window.c (count_windows):
9061         * window.c (Fcurrent_window_configuration):
9062         * window.c (reinit_vars_of_window):
9063         Update all callers and users.
9064
9065 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9066
9067         Alignment correctness for flexible arrays.
9068         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9069         Make alignment-correct. Add interesting comments.
9070         * alloc.c (size_vector):
9071         * alloc.c (make_vector_internal):
9072         * alloc.c (make_bit_vector_internal):
9073         * alloc.c (sweep_bit_vectors_1):
9074         * fns.c (size_bit_vector):
9075         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9076         * window.c (sizeof_window_config_for_n_windows): 
9077         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9078
9079 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9080
9081         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9082
9083 2001-01-23  Andy Piper  <andy@xemacs.org>
9084
9085         * select.c (Fown_selection_internal): pass owned_p
9086
9087         * select-msw.c (mswindows_own_selection): New Signature.
9088
9089         * console.h (struct console_methods): add owned_p to
9090         _own_selection.
9091
9092         * select-x.c (x_own_selection): pass owned_p
9093         (hack_motif_clipboard_selection): use owned_p
9094         (vars_of_select_x): new variable -
9095         x_selection_strict_motif_ownership.
9096
9097 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9098
9099         * specifier.h (specifier_data_offset): Remove pointless parens.
9100         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9101
9102 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9103
9104         Make Lisp_Object sizeof methods be alignment-correct.
9105         pdump must restore objects to the same alignment as the C compiler
9106         assumes.  It really matters on SGIs.
9107         * lstream.c (aligned_sizeof_lstream): New.
9108         (sizeof_lstream): Use aligned_sizeof_lstream.
9109         (Lstream_new): Likewise.
9110         * opaque.c (aligned_sizeof_opaque): New.
9111         (sizeof_opaque): Use aligned_sizeof_opaque.
9112         (make_opaque): Likewise.
9113         * specifier.c (aligned_sizeof_specifier): New.
9114         (sizeof_specifier): Use aligned_sizeof_specifier.
9115         (make_specifier_internal): Likewise.
9116
9117 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9118
9119         * lstream.h (struct lstream): Use max_align_t for trailing data.
9120         * specifier.h (struct Lisp_Specifier): Likewise.
9121
9122 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9123
9124         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9125         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9126         (CCL_SUSPEND): Likewise.
9127         (CCL_INVALID_CMD): Likewise.
9128         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9129         (ccl_driver): Likewise.
9130         (CCL_WRITE_CHAR): Macro hygiene.
9131         (CCL_WRITE_STRING): Macro hygiene.
9132
9133 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9134
9135         Port "portable" dumper to SunOS 4 and HP-UX.
9136         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9137         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9138         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9139
9140 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9141
9142         * lisp.h (ALIGNOF): A better definition for C++.
9143
9144 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9145
9146         Macro hygiene.
9147         Fix printf warnings: int format, long int arg.
9148         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9149         (PUSH_FAILURE_POINT): Use correct printf formats.
9150         (POP_FAILURE_POINT): Use correct printf formats.  
9151         Use do {...} while (0)
9152
9153 2001-01-20  Martin Buchholz <martin@xemacs.org>
9154
9155         * XEmacs 21.2.42 "Poseidon" is released.
9156
9157 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9158
9159         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9160
9161 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9162
9163         De-kludgify FIXED_TYPE free list frobbing.
9164         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9165         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9166         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9167         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9168         * alloc.c (LRECORD_FREE_P): New.
9169         * alloc.c (MARK_LRECORD_AS_FREE): New.
9170         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9171         * alloc.c (STRUCT_FREE_P): Deleted.
9172         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9173         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9174         * alloc.c (STRING_CHARS_FREE_P): New.
9175         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9176         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9177         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9178         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9179         * alloc.c (resize_string): Use new definitions.
9180         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9181         * alloc.c (verify_string_chars_integrity): Use new definitions.
9182         * alloc.c (compact_string_chars): Use new definitions.
9183         * alloc.c: Update monster comments.
9184         * lrecord.h (lrecord_type): Add some new lrecord types for
9185         alloc.c's use.
9186
9187 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9188
9189         Improve alignment hackery.
9190         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9191         (max_align_t): Moved from opaque.h - general purpose.
9192         (ALIGN_PTR): Use size_t, not long.
9193         * opaque.h (max_align_t): Move to lisp.h.
9194
9195 2001-01-18  Norbert Koch  <nk@LF.net>
9196
9197         * gui.h: Fix and add prototypes to fix build problems.
9198
9199 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9200
9201         temacs is going away, so `dump-temacs' is now a bad name.
9202         * .dbxrc (dump-temacs): Rename to `dmp'.
9203         * .gdbinit (dump-temacs): Rename to `dmp'.
9204
9205 2001-01-17  Andy Piper  <andy@xemacs.org>
9206
9207         * glyphs.c (print_image_instance): comment to make martin happy.
9208
9209         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9210         change.
9211
9212         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9213         activation.
9214         (mswindows_tab_control_redisplay): warning suppression.
9215
9216         * glyphs-widget.c (widget_update): re-write to cope with updated
9217         items.
9218         (widget_instantiate): use new gui_item functions.
9219         (tab_control_update): deleted.
9220         (progress_gauge_update): deleted.
9221         (image_instantiator_progress_guage): take out update reference.
9222         (image_instantiator_tree_view): ditto.
9223         (image_instantiator_tab_control): ditto.
9224
9225         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9226         Right the new way.
9227         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9228         return whether anything was changed.
9229         (update_gui_item_keywords): as it sounds.
9230
9231         * gui.h: declare widget_gui_parse_item_keywords.
9232
9233         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9234         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9235
9236 2001-01-17  Martin Buchholz <martin@xemacs.org>
9237
9238         * XEmacs 21.2.41 "Polyhymnia" is released.
9239
9240 2001-01-16  Didier Verna  <didier@xemacs.org>
9241
9242         * glyphs.c (image_instantiate): don't use fallbacks when
9243         instantiating a face's background pixmap by inheritance.
9244
9245 2001-01-14  Mike Sperber <mike@xemacs.org>
9246
9247         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9248         Conditionalize accordingly.
9249
9250 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9251
9252         * dumper.c (pdump_file_get): Fix a compiler warning.
9253
9254 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9255
9256         Make Purify happy when pdumping.
9257         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9258         iniitalizing all bits of new lisp object memory.
9259         * symbols.c (Fmake_local_variable): Likewise.
9260         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9261         * symbols.c (Fdefvaralias): Likewise.
9262         * mule-charset.c (vars_of_mule_charset): Likewise.
9263
9264 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9265         Add the `-nd' flag when running pre-dump operations under the debugger.
9266         * .dbxrc (run-temacs): Add `-nd'.
9267         * .dbxrc (update-elc): Likewise.
9268         * .dbxrc (dump-temacs): Likewise.
9269         * .gdbinit (run-temacs): Likewise.
9270         * .gdbinit (check-temacs): Likewise.
9271         * .gdbinit (update-elc): Likewise.
9272         * .gdbinit (dump-temacs): Likewise.
9273
9274 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9275
9276         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9277         export OBJECT_MODE=64
9278         configure --pdump --use-union-type=no
9279         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9280         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9281
9282         * miscplay.c (sndcnv8U_2mono):
9283         Avoid two uses of `++' in the same expression.
9284         Suppresses a GCC warning.
9285
9286 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9287
9288         Make sure future compilers don't miscompile alloc.c.
9289         * alloc.c:
9290         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9291         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9292
9293 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9294
9295         * dumper.c: A little post-pdump-rename comment fixup.
9296
9297 2001-01-09  Jerry James  <james@eecs.ku.edu>
9298
9299         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9300
9301 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9302
9303         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9304         script:
9305         #!/bin/sh
9306         replace_symbol () {
9307           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9308         }
9309
9310         replace_symbol pdump_wire_lists pdump_weak_object_chains
9311         replace_symbol pdump_wire_list dump_add_weak_object_chain
9312
9313         replace_symbol pdump_wires pdump_root_objects
9314         replace_symbol pdump_wire dump_add_root_object
9315
9316         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9317         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9318
9319         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9320         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9321         replace_symbol dumpstructinfo pdump_root_struct_ptr
9322         replace_symbol dumpstruct dump_add_root_struct_ptr
9323
9324         replace_symbol dumpopaque dump_add_opaque
9325         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9326         replace_symbol dumpopaqueinfos pdump_opaques
9327         replace_symbol dumpopaqueinfo pdump_opaque
9328
9329         replace_symbol nb_structdump nb_root_struct_ptrs
9330         replace_symbol nb_opaquedump nb_opaques
9331
9332         replace_symbol align_table pdump_align_table
9333         replace_symbol dump_header pdump_header
9334
9335         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9336         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9337
9338
9339 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9340
9341         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9342         optimizing bytecount_to_charcount().
9343
9344 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9345
9346         * config.h.in:
9347         (HAVE_DLFCN_H): Removed.
9348         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9349
9350 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9351
9352         Portable dumper maintainability improvements.
9353         * alloc.c (staticpro):
9354         * alloc.c (staticpro_nodump):
9355         * alloc.c (garbage_collect_1):
9356         * alloc.c (reinit_alloc_once_early):
9357         * alloc.c (init_alloc_once_early):
9358         * alloc.c: Move dumper functions to alloc.c.
9359         * dumper.c (pdump_backtrace):
9360         * dumper.c (pdump_dump_structs):
9361         * dumper.c (pdump_dump_opaques):
9362         * dumper.c (pdump_dump_rtables):
9363         * dumper.c (pdump_dump_wired):
9364         * dumper.c (pdump):
9365         * dumper.c (pdump_load_check):
9366         * dumper.c (pdump_load_finish):
9367         * dumper.c (pdump_file_unmap):
9368         * dumper.c (pdump_file_get):
9369         * dumper.c (pdump_resource_free):
9370         * dumper.c (pdump_resource_get):
9371         * dumper.c (pdump_file_free):
9372         * dumper.c (pdump_file_try):
9373         * dumper.c (pdump_load):
9374         Remove fixed size limits on staticpro(), staticpro_nodump(),
9375         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9376         Remove custom code for dumping lrecord_implementations_table - use
9377         dumpopaque instead.
9378         Remove (most of the) custom code for dumping staticpros - dump it
9379         like any other dynarr.
9380
9381         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9382         * dumper.c: Moved functions from alloc.c.
9383         * alloc.c (dumpstruct): Moved to dumper.c.
9384         * alloc.c (dumpopaque): Likewise.
9385         * alloc.c (pdump_wire): Likewise.
9386         * alloc.c (pdump_wire_list): Likewise.
9387
9388         * lisp.h (Dynarr_sizeof): New.
9389         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9390         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9391         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9392
9393         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9394         * lisp.h (dumpopaque): ditto.
9395         * lisp.h (pdump_wire): ditto.
9396         * lisp.h (pdump_wire_list): ditto.
9397
9398 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9399
9400         * make-src-depend (PrintPatternDeps):
9401         Use `sort' to make output independent of perl version.
9402
9403 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9404
9405         Port to Netbsd 1.5.
9406         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9407         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9408
9409 2001-01-03  Didier Verna  <didier@xemacs.org>
9410
9411         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9412         that `focus_frame' is alive before thinking of calling
9413         `redisplay_redraw_cursor' on it.
9414
9415 2001-01-08  Martin Buchholz <martin@xemacs.org>
9416
9417         * XEmacs 21.2.40 is released.
9418
9419 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9420
9421         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9422
9423 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9424
9425         * alloc.c (dbg_valmask): Make const.
9426         * alloc.c (dbg_typemask): Make const.
9427         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9428         * alloc.c (dbg_valbits): Make const.
9429         * alloc.c (dbg_gctypebits): Make const.
9430
9431 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9432
9433         * redisplay-x.c (x_bevel_area):
9434         redisplay.h (struct rune):
9435         Typo fixes in comments.
9436
9437 2001-01-05  Andy Piper  <andy@xemacs.org>
9438
9439         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9440         adjustment.
9441
9442         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9443
9444 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9445
9446         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9447
9448         * mule-ccl.c (stack_idx_of_map_multiple):
9449         Non const global data must not be initialized!
9450         Found by MIYASHITA Hisashi.
9451
9452 2001-01-02  Andy Piper  <andy@xemacs.org>
9453
9454         * frame.c (change_frame_size): make sure frame size is always
9455         marked as changed.
9456
9457         * glyphs.c (image_instance_layout): minor code reuse.
9458
9459         * window.c (Fcurrent_window_configuration): revert previous
9460         change.
9461
9462 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9463
9464         * glyphs.h:
9465         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9466
9467 2000-12-31  Andy Piper  <andy@xemacs.org>
9468
9469         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9470         when widget gets unmapped.
9471
9472         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9473         function. Make sure widgets losing focus don't just drop it.
9474         (handle_focus_event_1): record the widget with focus.
9475
9476 2000-12-31  Andy Piper  <andy@xemacs.org>
9477
9478         * window.c (allocate_window): use
9479         make_image_instance_cache_hash_table.
9480         (make_dummy_parent): ditto.
9481         (Fset_window_configuration): ditto.
9482
9483         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9484
9485         * glyphs.c (process_image_string_instantiator): use
9486         INSTANTIATOR_TYPE.
9487         (get_image_instantiator_governing_domain): ditto.
9488         (normalize_image_instantiator): ditto.
9489         (instantiate_image_instantiator): ditto.
9490         (make_image_instance_1): ditto.
9491         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9492         (instantiator_eq_equal): new function for use with instance hash
9493         tables.
9494         (instantiator_eq_hash): ditto.
9495         (make_image_instance_cache_hash_table): create a suitable hash
9496         table for storing image instances.
9497
9498         * elhash.h (hash_table_weakness): new internal weakness type
9499         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9500         declare new functions.
9501
9502         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9503         another weakness type for glyphs.
9504         (make_standard_lisp_hash_table): new function split out from
9505         make_general_lisp_hash_table.
9506         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9507         (hash_table_instantiate): ditto.
9508         (Fmake_hash_table): ditto.
9509
9510 2000-12-31  Martin Buchholz <martin@xemacs.org>
9511
9512         * XEmacs 21.2.39 is released.
9513
9514 2000-12-29  Andy Piper  <andy@xemacs.org>
9515
9516         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9517
9518         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9519         the frame has changed so that we pick up geometry changes such as
9520         menubar visibility.
9521
9522 2000-12-28  Andy Piper  <andy@xemacs.org>
9523
9524         * lastfile.c (my_ebss): make a char array so we can pad the
9525         bss. Fixes cygwin unexec.
9526
9527         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9528
9529 2000-12-26  Andy Piper  <andy@xemacs.org>
9530
9531         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9532         comments and try and be more precise about a non-/SIGIO world.
9533         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9534         SIGIO.
9535
9536         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9537         we don't normalize to zero width or height.
9538
9539 2000-12-24  Andy Piper  <andy@xemacs.org>
9540
9541         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9542
9543 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9544
9545         * s/sco5.h: SCO 5 has pty support.
9546
9547 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9548
9549         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9550         input-method-xlib.c contains whole contents of input-method-xfs.c,
9551         so we can use input-method-xlib.c's code for USE_XFONTSET
9552         using #ifdefs.
9553         * input-method-xfs.c: removed.
9554
9555 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9556
9557         * file-coding.h (enum coding_category_type): reorder enumerators to
9558         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9559         (now one greater than largest real coding_category_type enumerator).
9560         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9561         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9562         Fcoding_category_list, Fset_coding_priority_list,
9563         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9564         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9565
9566 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9567
9568         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9569         * redisplay-output.c (redisplay_output_window): Clear top of window
9570         when face is changed.
9571         * redisplay-x.c (x_redraw_exposed_window): Call
9572         redisplay_clear_top_of_window.
9573         * redisplay.h: Publish redisplay_clear_top_of_window.
9574
9575 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9576
9577         * buffer.c (Fkill_buffer): Map over all devices.
9578         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9579         (list_windows): New function.
9580         (list_all_windows): Ditto.
9581         (Freplace_buffer_in_windows): Use them.
9582
9583 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9584
9585         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9586         (Fopen_database): Use `db_create' instead of `db_open'.
9587         (syms_of_database): Initialize Qqueue.
9588
9589 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9590
9591         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9592         buffer_local_face_property.
9593         * buffer.h (struct buffer): New member buffer_local_face_property.
9594         * window.c (Fset_window_buffer):  Mark window's face as changed
9595         when buffer has buffer local face.
9596         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9597         * objects.c (color_after_change): Set buffer_local_face_property
9598         when locale of face specifier is buffer.
9599         * objects.c (font_after_change): Ditto.
9600         * objects.c (face_boolean_after_change): Ditto.
9601         * glyphs.c (image_after_change): Ditto.
9602
9603 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9604
9605         * nt.c (mswindows_fstat): Report file permissions, volume serial
9606         number, etc. Code adapted from FSF Emacs 20.7.
9607
9608 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9609
9610         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9611         of stat when we don't have symbolic links, to make sure
9612         mswindows_stat is called on mswindows.
9613
9614 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9615
9616         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9617
9618 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9619
9620         * doprnt.c (emacs_doprnt_1): More printing fixes.
9621         Make printing of numbers compatible with libc and FSF Emacs.
9622         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9623         Use the system printf to do most of the hard work of formatting,
9624         instead of doprnt_1().
9625         Calculate memory to allocate for format string.
9626         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9627         (doprnt_1): Cleaner code and documentation.
9628
9629 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9630
9631         * Makefile.in.in: Use the loop variable to install headers.
9632
9633 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9634
9635         * window.c (Fsplit_window): Don't invalidate face cache.
9636
9637 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9638
9639         * minibuf.c (Fall_completions): Undo the previous change
9640         which removed checking elements start with space.
9641
9642 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9643
9644         * mule-canna.c: Didier suppression.
9645
9646 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9647
9648         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9649         (warning suppression).  Add English comment translations.
9650
9651 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9652
9653         * unexelfsgi.c (unexec): Better test for mmap failure.
9654
9655 2000-12-05  Martin Buchholz <martin@xemacs.org>
9656
9657         * XEmacs 21.2.38 is released.
9658
9659 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9660
9661         * redisplay.c (bar-cursor): Make a user variable.
9662
9663         * symsinit.h: Add init_postgresql_from_environment.
9664
9665 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9666
9667         * regex.c: Convert to clean C.
9668
9669 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9670
9671         * realpath.c:
9672         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9673         initialization.
9674         (sys_readlink): renamed to system_readlink to avoid conflict with
9675         the other sys_readlink.
9676
9677 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9678
9679         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9680
9681 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9682
9683         * postgresql.c (init_postgresql_from_environment): new function.
9684         (vars_of_postgresql): Move code initializing Lisp variables out and
9685         into init_postgresql_from_environment.
9686         emacs.c (main_1): Call init_postgresql_from_environment if and only
9687         if running a dumped XEmacs.
9688
9689 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9690
9691         * buffer.c: Make find-file-compare-truenames default to true on
9692         windows.
9693
9694         * realpath.c (win32_abs_start):
9695         (cygwin_readlink):
9696         (win32_readlink): New functions.
9697         (xrealpath): Return really real filenames on windows.
9698
9699         * fileio.c (Ffile_truename): Make file-truename work on windows.
9700
9701 2000-11-29  Didier Verna  <didier@xemacs.org>
9702
9703         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9704         * faces.c (update_face_cachel_data): use it.
9705         * faces.c (add_face_cachel): use it. Complete background pixmap
9706         frobbing in face cache if `update_face_cachel_data' has not done so.
9707
9708 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9709
9710         * search.c (string_match_1): Don't set last_thing_searched
9711         when search failed.
9712
9713 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9714
9715         * buffer.c: Include casetab.h
9716         (common_init_complex_vars_of_buffer): Use new case-table object.
9717         * buffer.h: Include casetab.h
9718         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9719         (DOWNCASE_TABLE_OF): Ditto.
9720         * bufslots.h: Remove char-tables and add case-table.
9721         * casetab.c: Include casetab.h
9722         (CASE_TABLE_P): Removed.
9723         (mark_case_table): New function.
9724         (allocate_case_table): New function.
9725         (Fcase_table_p): Use new case-table.
9726         (case_table_char): New function.
9727         (Fget_case_table): Ditto.
9728         (Fput_case_table): Ditto.
9729         (Fput_case_table_pair): Ditto.
9730         (Fcopy_case_table): Ditto.
9731         (Fcurrent_case_table): Return case-table.
9732         (Fstandard_case_table): Return case-table.
9733         (Fset_case_table): Fix doc-string.
9734         (set_case_table): Use case-table
9735         (syms_of_casetab): DEFSUBR new functions.
9736         (complex_vars_of_casetab): Set up standard case-table.
9737         * casetab.h: New file.
9738         * editfns.c: Include casetab.h
9739         (Fcompare_buffer_substrings): Use case-table.
9740         * inline.c: Include casetab.h
9741         * lisp.h: Remove bogus extern.
9742         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9743         * search.c: Include casetab.h
9744         (TRANSLATE_ASCII): Removed.
9745         (TRANSLATE): Unconditionally translate character.
9746         (looking_at_1): Use case-table.
9747         (string_match_1): Ditto.
9748         (fast_string_match): Ditto.
9749         (search_command): Ditto.
9750         (search_buffer): Separate boyer_moore.  Check whether
9751         boyer_moore is possible.
9752         (simple_search): New function.
9753         (boyer_moore): Separated from search_buffer. Translate char.
9754
9755 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9756
9757         * regex.c (RE_TR_ASCII): Removed.
9758         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9759         (PATFETCH): Call PATFETCH_RAW.
9760         (PATFETCH_RAW): Fetch Emchar.
9761         (PATUNFETCH): Decrement charptr.
9762         (GET_BUFFER_SPACE): Rename b to buf_end.
9763         (BUF_PUSH): Ditto.
9764         (BUF_PUSH_2): Ditto.
9765         (BUF_PUSH_3): Ditto.
9766         (EXTEND_BUFFER): Ditto.
9767         (SET_LIST_BIT): Ditto.
9768         (regex_compile): Ditto.  Translate non ASCII char.
9769         (compile_range): Ditto.
9770         (re_search_2): Ditto.
9771         (re_match_2_internal): Compare Emchar.
9772         (bcmp_translate): Ditto.
9773
9774 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9775
9776         * lisp.h (basic char/int typedefs):  comment improvement.
9777
9778 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9779
9780         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9781         unstomp inhibit_site_lisp.  Improve comments.
9782
9783 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9784
9785         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9786
9787 2000-11-28  Andy Piper  <andy@xemacs.org>
9788
9789         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9790         clipped display for windows in the gutter also.
9791         (redisplay_display_boxes_in_window_p): change semantics of return
9792         codes to be more intuitive.
9793
9794         * gutter.h: declare display_boxes_in_gutter_p.
9795
9796         * gutter.c (display_boxes_in_gutter_p): new function for
9797         redisplay.
9798
9799 2000-11-22  Andy Piper  <andy@xemacs.org>
9800
9801         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9802         autodetect domain.
9803
9804 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9805
9806         * callproc.c (Fold_call_process_internal):
9807         * gpm.c (Freceive_gpm_event):
9808         (tty_get_foreign_selection): Might be just warning supression.
9809         * fileio.c (Fwrite_region_internal):
9810         (Fset_visited_file_modtime):
9811         * keymap.c (event_matches_key_specifier_p):
9812         Initialize GCPROed variable.
9813
9814         * menubar-x.c (command_builder_find_menu_accelerator):
9815         Initialize before use.
9816
9817 2000-11-23  Andy Piper  <andy@xemacs.org>
9818
9819         * unexcw.c (unexec): make the resulting executable executable.
9820
9821 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9822
9823         * doc.c (get_doc_string):
9824         Use size_t, not int, for result of XSTRING_LENGTH.
9825
9826         * cmds.c (Fdelete_char):
9827         * cmds.c (Fpoint_at_eol):
9828         * cmds.c (Fself_insert_command):
9829         Use EMACS_INT, not int, for result of XINT.
9830         Someday, someone will want to insert more than 2**31 identical characters.
9831
9832         * cmds.c (Fdelete_char):
9833         * cmds.c (Fdelete_backward_char):
9834         * syntax.c (Fforward_word):
9835         * syntax.c (Fforward_comment):
9836         Make COUNT argument optional, for consistency with forward-char et al.
9837
9838 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9839
9840         * lisp.h:
9841         * print.c (long_to_string):
9842         Return a useful value: the pointer at end of data written.
9843
9844         * doprnt.c:
9845         Use `static const char * const' for constant strings.
9846         (union printf_arg): Delete `i', `ui' members.
9847         (get_doprnt_args):
9848         (emacs_doprnt_1):
9849         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9850         Do all printf-ing via the `l' specifier.
9851         Use EMACS_INT instead of int.
9852         Optimize.
9853
9854 2000-11-20  Didier Verna  <didier@xemacs.org>
9855
9856         * faces.c (update_face_cachel_data): don't frob the background
9857         pixmap when the window is being created. The face is needed but
9858         does not exist yet.
9859
9860 2000-11-20  Andy Piper  <andy@xemacs.org>
9861
9862         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9863         messing with a debug environment.
9864
9865 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9866
9867         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9868
9869 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9870
9871         * casetab.c (Fcase_table_p): Fix compile error and crash.
9872
9873 2000-11-18  Philip Aston  <philipa@mail.com>
9874
9875         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9876
9877 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9878
9879         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9880         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9881
9882 2000-11-17  Martin Buchholz  <martin@xemacs.org>
9883
9884         * config.h.in: Define HAVE_ELF_H if elf.h exists.
9885         * unexelf.c: Use HAVE_ELF_H.
9886         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9887         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9888         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9889         Greg Harrington <greg_harrington@hotmail.com> provided a machine
9890         for testing.
9891         So this is an unexelfsgi.c from a different line of development.
9892
9893 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9894
9895         * regex.c (RE_TR_ASCII): New function.
9896         (RE_TRANSLATE): Call it.
9897
9898 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9899
9900         * buffer.h (TRT_TABLE_OF): Remove assert.
9901         (IN_TRT_TABLE_DOMAIN): Removed.
9902
9903 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9904
9905         * free-hook.c (log_gcpro):
9906         (show_gcprohist): Add support for GCPRO5.
9907
9908 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
9909
9910         * emacs.c (main_1): Improve -sd error message when --pdump=no.
9911
9912 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
9913
9914         * symeval.h: Declare flush_all_buffer_local_cache.
9915
9916         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9917         (flush_buffer_local_cache): Added.
9918         (flush_all_buffer_local_cache): Added.
9919
9920         * lrecord.h: Remove unused XD_LO_RESET_NIL.
9921
9922         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9923         (pdump_dump_data): Ditto.
9924         (pdump_reloc_one): Ditto.
9925         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
9926         before dumping.
9927
9928
9929 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9930
9931         * buffer.c: Remove if 0'ed entry.
9932         * buffer.h: Rewrite TRT to use char-table.
9933         * bufslots.h: Remove mirror tables.
9934         * casetab.c: Remove mirror tables.
9935         (CASE_TABLE_P): New macro.
9936         (Fcase_table_p): Element of a case table is string or char-table.
9937         (make_mirror_trt_table): Removed.
9938         (set_case_table): Setup char-table from strings for backward
9939         compatibility.
9940         * dired.c (Fdirectory_files):
9941         * dired-msw.c: (mswindows_get_files):
9942         * lisp.h: Change prototype of re_pattern_buffer.
9943         * regex.c: (RE_TRANSLATE): New macro.
9944         (TRANSLATE_P): Ditto.
9945         Change translate to type RE_TRANSLATE_TYPE.
9946         * regex.h: Define RE_TRANSLATE_TYPE
9947         * search.c (TRANSLATE): New macro.
9948         (TRANSLATE_ASCII): New macro.
9949         Translate table is changed to Lisp_Object.
9950         (signal_failure): Inhibit return.
9951
9952 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9953
9954         * device-msw.c:
9955         * eldap.c:
9956         * event-Xt.c:
9957         * event-stream.c:
9958         * print.c:
9959         Do UNGCPRO before return.
9960
9961 2000-11-14  Martin Buchholz <martin@xemacs.org>
9962
9963         * XEmacs 21.2.37 is released.
9964
9965 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9966
9967         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9968         Add comments about discarded return value.
9969
9970 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9971
9972         * callint.c:
9973         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
9974
9975 2000-10-27  Andy Piper  <andy@xemacs.org>
9976
9977         * gutter.c (Fset_default_gutter_position): default left and right
9978         gutters to visible.
9979         (calculate_gutter_size): calculate resonable heuristic for left
9980         and right gutter sizes.
9981         (specifier_vars_of_gutter): change left and right gutter sizes to
9982         autodetect.
9983         (calculate_gutter_size_from_display_lines): new function.
9984         (output_gutter): check for resizing on left and right gutters.
9985         (clear_gutter): don't special case top and left gutters.
9986         (specifier_vars_of_gutter): use new signature for
9987         set_specifier_caching.
9988
9989         * glyphs-x.c (x_redisplay_widget): spelling fix.
9990         * glyphs.c (specifier_vars_of_glyphs):
9991         * menubar.c (specifier_vars_of_menubar):
9992         * redisplay.c (specifier_vars_of_redisplay):
9993         * toolbar.c (specifier_vars_of_toolbar):
9994         * window.c (specifier_vars_of_window):
9995         * scrollbar.c (specifier_vars_of_scrollbar):
9996         (complex_vars_of_scrollbar): use new signature for
9997         set_specifier_caching.
9998
9999         * specifier.c (set_specifier_caching): include recompute flag.
10000         (recompute_one_cached_specifier_in_window): always recompute if
10001         flag set.
10002         (recompute_one_cached_specifier_in_frame): ditto.
10003
10004         * specifier.h (struct specifier_caching): add recompute flag.
10005
10006 2000-10-24  Andy Piper  <andy@xemacs.org>
10007
10008         * unexcw.c (copy_executable_and_dump_data_section): add new
10009         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10010         5.0 happy.
10011
10012 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10013
10014         * console-x.h (x_device): New member modifier_release_time.
10015         * event-Xt.c (x_handle_sticky_modifiers):
10016         Bound interval modifier keys are sticky.
10017         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10018         * events.h: extern it.
10019
10020 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10021
10022         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10023
10024 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10025
10026         * event-stream.c (execute_command_event): Preserve current_events
10027         and the like when event is misc-user-event.
10028         Inhibit quit during the call to maybe_echo_keys.
10029
10030 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10031
10032         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10033         symlink when buffer is killed.
10034         (inhibit_clash_detection): New variable.
10035
10036 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10037
10038         * console.c (Fset_input_method): Trigger redisplay on tty.
10039
10040 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10041
10042         * process.c (Fprocess_status): Revert to previous behavior:
10043         (process-status "nosuchprocess") ==> nil
10044
10045 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10046
10047         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10048         Work around another GCC 2.95.2 optimizer bug.
10049
10050 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10051
10052         * process.c (Fget_process): Use LIST_LOOP_2.
10053         (kill_buffer_processes): Use LIST_LOOP_2.
10054
10055         * minibuf.c (Fall_completions):
10056         Delete old non-functional code for FSF fourth argument.
10057
10058         * frame.c (frame_matches_frame_spec):
10059         Renamed from `frame_matches_frametype'.  Update all callers.
10060         (device_matches_device_spec):
10061         Renamed from 'device_matches_console_spec'.  Update all callers.
10062
10063         * doc.c (Fsubstitute_command_keys):
10064         Remove buffer overflow crash.  Small code cleanups.
10065
10066         * casetab.c (check_case_table): Simpler code.
10067
10068         * window.c (Freplace_buffer_in_windows):
10069         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10070         (and similar implementation) as Fdelete_windows_on.
10071         Update all callers.
10072
10073         * alloc.c (Fmake_list):
10074         * alloc.c (make_vector):
10075         * alloc.c (Fmake_vector):
10076         * alloc.c (make_bit_vector):
10077         * alloc.c (Fmake_bit_vector):
10078         * alloc.c (Fbit_vector):
10079         * alloc.c (Fmake_string):
10080         * alloc.c (Fpurecopy):
10081         * alloc.c (Fmemory_limit):
10082         * buffer.c:
10083         * buffer.c (Fget_buffer):
10084         * buffer.c (Fkill_buffer):
10085         * buffer.c (complex_vars_of_buffer):
10086         * bytecode.c (Fcompiled_function_stack_depth):
10087         * callint.c (Fprefix_numeric_value):
10088         * event-stream.c:
10089         * event-stream.c (Fread_key_sequence):
10090         * casetab.c:
10091         * casetab.c (Fcase_table_p):
10092         * casetab.c (check_case_table):
10093         * casetab.c (Fset_case_table):
10094         * casetab.c (Fset_standard_case_table):
10095         * chartab.c:
10096         * chartab.c (Fchar_table_type):
10097         * chartab.c (Freset_char_table):
10098         * chartab.c (Fget_char_table):
10099         * chartab.c (Fget_range_char_table):
10100         * chartab.c (Fput_char_table):
10101         * chartab.c (Fmap_char_table):
10102         * chartab.c (Fcategory_table_p):
10103         * chartab.c (Fcheck_category_at):
10104         * chartab.c (Fchar_in_category_p):
10105         * chartab.c (Fcategory_table):
10106         * chartab.c (Fcopy_category_table):
10107         * chartab.c (Fset_category_table):
10108         * chartab.c (Fcategory_designator_p):
10109         * chartab.c (Fcategory_table_value_p):
10110         * cmds.c (Fdelete_char):
10111         * cmds.c (Fdelete_backward_char):
10112         * cmds.c (Fself_insert_command):
10113         * cmds.c (Fself_insert_internal):
10114         * console.c (Fvalid_console_type_p):
10115         * console.c (Fcdfw_console):
10116         * console.c (Fconsole_type):
10117         * console.c (Fconsole_name):
10118         * console.c (Fconsole_device_list):
10119         * console.c (Fconsole_on_window_system_p):
10120         * data.c:
10121         * data.c (Feq):
10122         * data.c (Fold_eq):
10123         * data.c (Fsubr_interactive):
10124         * data.c (Fchar_to_int):
10125         * data.c (Fint_to_char):
10126         * data.c (Fsetcar):
10127         * data.c (Fsetcdr):
10128         * data.c (Fnumber_to_string):
10129         * data.c (Fstring_to_number):
10130         * data.c (Frem):
10131         * database.c (mark_database):
10132         * database.c (finalize_database):
10133         * database.c (Fdatabase_live_p):
10134         * database.c (Fdatabasep):
10135         * device-x.c (Fx_get_resource):
10136         * device.c (Fdfw_device):
10137         * dired.c:
10138         * dired.c (Ffile_name_completion):
10139         * dired.c (Ffile_name_all_completions):
10140         * dired.c (Fuser_name_completion):
10141         * dired.c (Fuser_name_completion_1):
10142         * dired.c (Fuser_name_all_completions):
10143         * doc.c (Fdocumentation):
10144         * doc.c (Fdocumentation_property):
10145         * doc.c (Fsubstitute_command_keys):
10146         * editfns.c:
10147         * editfns.c (Fchar_to_string):
10148         * editfns.c (Fstring_to_char):
10149         * editfns.c (Ftemp_directory):
10150         * editfns.c (Finsert_char):
10151         * editfns.c (Fbuffer_substring_no_properties):
10152         * editfns.c (Fnarrow_to_region):
10153         * editfns.c (Fchar_equal):
10154         * editfns.c (Fchar_Equal):
10155         * editfns.c (Ftranspose_regions):
10156         * emacs.c (Fdump_emacs):
10157         * eval.c (Fthrow):
10158         * eval.c (Fcommand_execute):
10159         * eval.c (Fautoload):
10160         * eval.c (Fbacktrace):
10161         * eval.c (Fbacktrace_frame):
10162         * events.c:
10163         * events.c (Fcopy_event):
10164         * events.c (Fcharacter_to_event):
10165         * events.c (Fevent_button):
10166         * events.c (Fevent_process):
10167         * extents.c:
10168         * extents.c (Fnext_extent_change):
10169         * extents.c (Fextent_property):
10170         * faces.c (Ffacep):
10171         * faces.c (Fmake_face):
10172         * file-coding.c:
10173         * file-coding.c (Fencode_shift_jis_char):
10174         * file-coding.c (Fencode_big5_char):
10175         * fileio.c (Ffile_name_directory):
10176         * fileio.c (Ffile_name_nondirectory):
10177         * fileio.c (Ffile_name_as_directory):
10178         * fileio.c (Fdirectory_file_name):
10179         * fileio.c (Ffile_truename):
10180         * fileio.c (Fsubstitute_in_file_name):
10181         * fileio.c (Ffile_modes):
10182         * fileio.c (Fset_file_modes):
10183         * fileio.c (Fset_default_file_modes):
10184         * fileio.c (Fverify_visited_file_modtime):
10185         * floatfns.c (Facos):
10186         * floatfns.c (Fasin):
10187         * floatfns.c (Fatan):
10188         * floatfns.c (Fcos):
10189         * floatfns.c (Fsin):
10190         * floatfns.c (Ftan):
10191         * floatfns.c (Fbessel_j0):
10192         * floatfns.c (Fbessel_j1):
10193         * floatfns.c (Fbessel_jn):
10194         * floatfns.c (Fbessel_y0):
10195         * floatfns.c (Fbessel_y1):
10196         * floatfns.c (Fbessel_yn):
10197         * floatfns.c (Ferf):
10198         * floatfns.c (Ferfc):
10199         * floatfns.c (Flog_gamma):
10200         * floatfns.c (Fexp):
10201         * floatfns.c (Fexpt):
10202         * floatfns.c (Flog):
10203         * floatfns.c (Flog10):
10204         * floatfns.c (Fsqrt):
10205         * floatfns.c (Fcube_root):
10206         * floatfns.c (Facosh):
10207         * floatfns.c (Fasinh):
10208         * floatfns.c (Fatanh):
10209         * floatfns.c (Fcosh):
10210         * floatfns.c (Fsinh):
10211         * floatfns.c (Ftanh):
10212         * floatfns.c (Fabs):
10213         * floatfns.c (Ffloat):
10214         * floatfns.c (Flogb):
10215         * floatfns.c (Fceiling):
10216         * floatfns.c (Ffloor):
10217         * floatfns.c (Fround):
10218         * floatfns.c (Ftruncate):
10219         * floatfns.c (Ffceiling):
10220         * floatfns.c (Fffloor):
10221         * floatfns.c (Ffround):
10222         * floatfns.c (Fftruncate):
10223         * fns.c (Fstring_equal):
10224         * fns.c (Fstring_lessp):
10225         * fns.c (concat2):
10226         * fns.c (concat3):
10227         * fns.c (vconcat2):
10228         * fns.c (vconcat3):
10229         * fns.c (Fsubstring):
10230         * fns.c (Fassoc):
10231         * fns.c (Fold_assoc):
10232         * fns.c (assoc_no_quit):
10233         * fns.c (Fassq):
10234         * fns.c (Fold_assq):
10235         * fns.c (assq_no_quit):
10236         * fns.c (Frassoc):
10237         * fns.c (Fold_rassoc):
10238         * fns.c (Frassq):
10239         * fns.c (Fold_rassq):
10240         * fns.c (rassq_no_quit):
10241         * fns.c (Fremassoc):
10242         * fns.c (remassoc_no_quit):
10243         * fns.c (Fremassq):
10244         * fns.c (remassq_no_quit):
10245         * fns.c (Fremrassoc):
10246         * fns.c (Fremrassq):
10247         * fns.c (remrassq_no_quit):
10248         * fns.c (Fsort):
10249         * fns.c (Fplist_get):
10250         * fns.c (Fplist_put):
10251         * fns.c (Fplist_remprop):
10252         * fns.c (Fplist_member):
10253         * fns.c (Flax_plist_get):
10254         * fns.c (Flax_plist_put):
10255         * fns.c (Flax_plist_remprop):
10256         * fns.c (Flax_plist_member):
10257         * fns.c (Fequal):
10258         * fns.c (Fold_equal):
10259         * fns.c (Frequire):
10260         * fns.c (Fbase64_encode_region):
10261         * fns.c (Fbase64_encode_string):
10262         * fns.c (Fbase64_decode_region):
10263         * frame.c:
10264         * frame.c (frame_matches_frame_spec):
10265         * frame.c (device_matches_device_spec):
10266         * frame.c (next_frame):
10267         * frame.c (previous_frame):
10268         * frame.c (Fnext_frame):
10269         * frame.c (Fprevious_frame):
10270         * frame.c (Fframe_property):
10271         * frame.c (Fset_frame_height):
10272         * frame.c (Fset_frame_size):
10273         * frame.h:
10274         * glyphs.c:
10275         * glyphs.c (if):
10276         * glyphs.c (decode_error_behavior_flag):
10277         * glyphs.c (Fmake_image_instance):
10278         * indent.c (Findent_to):
10279         * intl.c (Fignore_defer_gettext):
10280         * keymap.c (Fkeymapp):
10281         * keymap.c (Flookup_key):
10282         * lread.c:
10283         * lread.c (Fload_internal):
10284         * lread.c (Feval_buffer):
10285         * lread.c (Feval_region):
10286         * macros.c (Fexecute_kbd_macro):
10287         * marker.c (set_marker_internal):
10288         * marker.c (Fset_marker):
10289         * marker.c (set_marker_restricted):
10290         * marker.c (Fcopy_marker):
10291         * marker.c (noseeum_copy_marker):
10292         * menubar.c:
10293         * menubar.c (Fpopup_menu):
10294         * minibuf.c:
10295         * mule-charset.c (Fcharset_name):
10296         * mule-charset.c (Fchar_charset):
10297         * mule-charset.c (Fchar_octet):
10298         * mule-charset.c (Fsplit_char):
10299         * mule-wnnfns.c (Fwnn_open):
10300         * mule-wnnfns.c (Fwnn_dict_comment):
10301         * mule-wnnfns.c (Fwnn_quit_henkan):
10302         * mule-wnnfns.c (Fwnn_word_toroku):
10303         * mule-wnnfns.c (Fwnn_word_sakujo):
10304         * mule-wnnfns.c (Fwnn_word_use):
10305         * mule-wnnfns.c (Fwnn_hindo_set):
10306         * objects.c:
10307         * objects.c (Fmake_color_instance):
10308         * objects.c (Fmake_font_instance):
10309         * print.c (Fwrite_char):
10310         * process.c:
10311         * process.c (mark_process):
10312         * process.c (print_process):
10313         * process.c (get_process_from_usid):
10314         * process.c (Fprocessp):
10315         * process.c (Fprocess_live_p):
10316         * process.c (Fget_process):
10317         * process.c (Fget_buffer_process):
10318         * process.c (get_process):
10319         * process.c (Fprocess_id):
10320         * process.c (Fprocess_name):
10321         * process.c (Fprocess_command):
10322         * process.c (init_process_io_handles):
10323         * process.c (start_process_unwind):
10324         * process.c (Fstart_process_internal):
10325         * process.c (Fopen_multicast_group_internal):
10326         * process.c (Fset_process_window_size):
10327         * process.c (read_process_output):
10328         * process.c (send_process):
10329         * process.c (Fprocess_tty_name):
10330         * process.c (Fset_process_buffer):
10331         * process.c (Fprocess_buffer):
10332         * process.c (Fprocess_mark):
10333         * process.c (set_process_filter):
10334         * process.c (Fset_process_filter):
10335         * process.c (Fprocess_filter):
10336         * process.c (Fprocess_send_region):
10337         * process.c (Fprocess_send_string):
10338         * process.c (exec_sentinel):
10339         * process.c (Fset_process_sentinel):
10340         * process.c (Fprocess_sentinel):
10341         * process.c (status_notify):
10342         * process.c (Fprocess_status):
10343         * process.c (Fprocess_exit_status):
10344         * process.c (process_send_signal):
10345         * process.c (Fprocess_send_eof):
10346         * process.c (deactivate_process):
10347         * process.c (remove_process):
10348         * process.c (Fdelete_process):
10349         * process.c (kill_buffer_processes):
10350         * process.c (Fprocess_kill_without_query):
10351         * process.c (Fprocess_kill_without_query_p):
10352         * rangetab.c:
10353         * rangetab.c (Fget_range_table):
10354         * rangetab.c (Fput_range_table):
10355         * rangetab.c (Fremove_range_table):
10356         * rangetab.c (Fclear_range_table):
10357         * search.c:
10358         * search.c (Fskip_chars_forward):
10359         * search.c (Fskip_chars_backward):
10360         * search.c (Fskip_syntax_forward):
10361         * search.c (Fskip_syntax_backward):
10362         * search.c (search_command):
10363         * search.c (Freplace_match):
10364         * search.c (Fregexp_quote):
10365         * select.c (Fown_selection_internal):
10366         * select.c (Fselection_owner_p):
10367         * select.c (Fselection_exists_p):
10368         * select.c (Fget_selection_internal):
10369         * specifier.c:
10370         * symbols.c:
10371         * symbols.c (Fintern):
10372         * symbols.c (Fintern_soft):
10373         * symbols.c (Funintern):
10374         * symbols.c (Fapropos_internal):
10375         * symbols.c (Fset_default):
10376         * syntax.c:
10377         * syntax.c (Fsyntax_table_p):
10378         * syntax.c (Fcopy_syntax_table):
10379         * syntax.c (Fset_syntax_table):
10380         * syntax.c (Fchar_syntax):
10381         * syntax.c (syntax_match):
10382         * syntax.c (Fmatching_paren):
10383         * syntax.c (Fforward_word):
10384         * syntax.c (scan_lists):
10385         * syntax.c (Fscan_lists):
10386         * syntax.c (Fscan_sexps):
10387         * syntax.c (Fparse_partial_sexp):
10388         * toolbar.c (Fcheck_toolbar_button_syntax):
10389         * tooltalk.doc:
10390         * window.c:
10391         * window.c (Fwindowp):
10392         * window.c (Fwindow_live_p):
10393         * window.c (Fwindow_point):
10394         * window.c (Fdelete_window):
10395         * window.c (Fnext_window):
10396         * window.c (Fprevious_window):
10397         * window.c (Fother_window):
10398         * window.c (window_loop):
10399         * window.c (Fget_lru_window):
10400         * window.c (Fsplit_window):
10401         * window.c (Fenlarge_window):
10402         * window.c (Fenlarge_window_pixels):
10403         * window.c (Fshrink_window):
10404         * window.c (Fshrink_window_pixels):
10405         * window.c (change_window_height):
10406         * window.c (Fwindow_configuration_p):
10407         * window.c (Fcurrent_window_configuration):
10408         * window.h:
10409         * casefiddle.c (casify_object):
10410         * casefiddle.c (Fupcase):
10411         * casefiddle.c (Fdowncase):
10412         * casefiddle.c (Fcapitalize):
10413         * casefiddle.c (Fupcase_initials):
10414         * casefiddle.c (casify_region_internal):
10415         * casefiddle.c (casify_region):
10416         * casefiddle.c (Fupcase_region):
10417         * casefiddle.c (Fdowncase_region):
10418         * casefiddle.c (Fcapitalize_region):
10419         * casefiddle.c (Fupcase_initials_region):
10420         * casefiddle.c (Fupcase_word):
10421         * casefiddle.c (Fdowncase_word):
10422         * casefiddle.c (Fcapitalize_word):
10423         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10424         Replace 0 with '\0' when working with bytes.
10425         Replace initial "(" with "\(" in docstrings.
10426
10427 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10428
10429         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10430
10431         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10432
10433 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10434
10435         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10436
10437 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10438
10439         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10440         correctly.
10441
10442 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10443
10444         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10445         (inhibit_auto_save_session): New variable.
10446         (vars_of_fileio): Declare and initialize them.
10447         * fileio.c (Fdo_auto_save): Don't create session file if
10448         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10449
10450 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10451
10452         * sgiplay.c (play_internal): C++ compilability.
10453         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10454         * callproc.c (Fold_call_process_internal):
10455         Remove unused vars `env', `first'.
10456         * scrollbar.c (update_scrollbar_instance):
10457         #### unused var `current_window'.
10458         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10459         etc. within #ifdef NOT_YET.
10460         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10461         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10462         * specifier.c (specifier_instance):
10463         #### unused var `tag'.
10464         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10465
10466 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10467
10468         * fns.c (Fbutlast):
10469         * fns.c (list_sort):
10470         * fns.c (Ffillarray):
10471         * fns.c (bytecode_nconc2):
10472         * fns.c (Fnconc):
10473         * fns.c (mapcar1):
10474         * fns.c (Fmapconcat):
10475         Be pedantically 64-bit correct.  For the time when someone will
10476         want to have a list with length > 2**32.
10477
10478         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10479         Work around MIPSpro compiler bug.
10480
10481         * process-unix.c (unix_kill_child_process): Add snarky comment.
10482         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10483
10484         * config.h.in: Oops, _getpt ==> _getpty
10485
10486 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10487
10488         * config.h.in:
10489         * regex.c:
10490         Use void*, not char*, as return type of alloca().
10491
10492         * alloc.c (free_marker): Side effect inside assert expression!
10493
10494 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10495
10496         * mule-charset.c (Fset_charset_ccl_program): To check
10497         if the given ccl program is valid, use setup_ccl_program()
10498         instead of CHECK_VECTOR().
10499         (Fmake_charset): Likewise.
10500
10501 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10502
10503         * faces.c (get_extent_fragment_face_cache_index):
10504         Fix cachel.merged_faces memory leak.
10505
10506 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10507
10508         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10509         Reset MSB of octets obtained by DECODE_SJIS
10510         because of the incompatibility with Emacs.
10511         (ccl_driver)<CCL_ENCODE_SJIS>:
10512         Set MSB of octets before passing them to
10513         ENCODE_SJIS because of the incompatibility
10514         with Emacs.
10515
10516 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10517
10518         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10519         (DECLARE_LRECORD): Undo the last change.
10520         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10521
10522 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10523
10524         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10525         the implementation to lrecord_implementations_table.
10526
10527 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10528
10529         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10530         initial value of `lrecord_type_##c_name' and
10531         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10532         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10533         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10534         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10535         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10536
10537 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10538
10539         * miscplay.c (sndcnv8S_2mono):
10540         (sndcnv2monounsigned):
10541         (sndcnvULaw_2linear):
10542         (sndcnv16swap):
10543         Remove implementation-defined behavior.
10544
10545 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10546
10547         * input-method-xlib.c: Warning suppression.
10548
10549 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10550
10551         * mule-ccl.c: Sync up with Emacs 21.0.90.
10552         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10553         Do nothing.
10554         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10555         Likewise.
10556         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10557         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10558         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10559         leading char belongs to official 2-dimensional charset.
10560         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10561         write the given character as is.  Otherwise,
10562         if it is a multibyte char, convert it by
10563         non_ascii_set_charptr_emchar, then write it.
10564         (CCL_WRITE_STRING): Likewise.
10565         (ccl_get_compiled_code): New function.
10566         (setup_ccl_program): When ccl_prog is invalid,
10567         return -1.
10568         (Fregister_code_conversion_map): New function.
10569         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10570
10571         * mule-ccl.h: Sync up with Emacs 21.0.90.
10572         (Fregister_ccl_program): export it.
10573
10574         * redisplay-msw.c (separate_textual_runs):
10575         If ccl program is not valid, don't do ccl conversion.
10576
10577         * redisplay-x.c (separate_textual_runs): Ditto.
10578
10579         * file-coding.c (Fmake_coding_system):
10580         When type is ccl and value is vector, register it
10581         with a proper symbol.  And checks whether the
10582         given ccl program is valid.
10583         (mule_decode): When calling ccl_driver, if src indicates
10584         NULL pointer, set an empty string instead.
10585         (mule_encode): Likewise.
10586
10587 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10588
10589         The following large batch of changes gets us back to a state of
10590         C++ compilability.  Extbyte is now a char, which means that
10591         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10592
10593         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10594
10595         * sound.c (Fplay_sound): Type correctness.
10596
10597         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10598         (x_get_window_property): Type correctness.
10599         (receive_incremental_selection): unsigned char ==> Extbyte
10600         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10601         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10602         (Fx_store_cutbuffer_internal): Type correctness.
10603
10604         * process-unix.c (try_to_initialize_subtty): Type correctness.
10605
10606         * objects-x.c (x_print_color_instance): Type correctness.
10607         (x_print_font_instance): Type correctness.
10608         (x_list_fonts): SExtbyte ==> Extbyte.
10609         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10610         (x_find_charset_font): SExtbyte ==> Extbyte.
10611         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10612         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10613         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10614         Use bufbyte_strcmp.
10615
10616         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10617         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10618         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10619         (BYTE_C0_P): Use bit ops for char-signedness safety.
10620         (BYTE_C1_P): Use bit ops for char-signedness safety.
10621         (CHARSET_BY_LEADING_BYTE):
10622         (CHARSET_BY_ATTRIBUTES):
10623         Always use inline function.
10624         Use type_checking_assert.
10625         Hide chlook.
10626
10627         * mule-charset.c (non_ascii_charptr_copy_char):
10628         Modify to work with both ASCII and non-ASCII characters.
10629         Improve docs and variable names.
10630         Replace over-clever fall-through switch with a simple loop.
10631         (Lstream_get_emchar_1):
10632         Replace over-clever fall-through switch with a simple loop.
10633
10634         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10635         Warning suppression.
10636
10637         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10638         the return value of Lstream_getc, which could be EOF as well.
10639
10640         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10641
10642         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10643         APIs can be used on Extbytes without casts.  Risky!
10644         (SExtbyte): Remove.
10645         (UExtbyte): Remove.
10646
10647         * input-method-xlib.c (XIM_init_device):
10648         Use Xlib.h instead of IntrinsicP.h.
10649         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10650         which will break in X11R7.
10651         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10652         to call XRegisterIMInstantiateCallback with correct types.
10653
10654         * gui-x.c (button_item_to_widget_value): Type correctness.
10655
10656         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10657
10658         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10659         (xbm_instantiate_1): Type correctness.
10660         (BUILD_GLYPH_INST):  Type correctness.
10661
10662         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10663
10664         * file-coding.c:
10665         (decode_coding_sjis):
10666         (decode_coding_big5):
10667         (decode_coding_ucs4):
10668         (decode_coding_utf8):
10669         (decode_coding_iso2022):
10670         (decode_coding_no_conversion):
10671         Make all decoding functions take an Extbyte * arg.
10672         (encode_coding_sjis):
10673         (encode_coding_big5):
10674         (encode_coding_ucs4):
10675         (encode_coding_utf8):
10676         (encode_coding_iso2022):
10677         (encode_coding_no_conversion):
10678         Make all encoding functions take a Bufbyte * arg.
10679         Use size_t instead of unsigned int for memory sizes.
10680         Only cast to unsigned char whenever dereferencing Extbyte *.
10681
10682         * doc.c (unparesseuxify_doc_string): Type correctness.
10683
10684         * console-x.c (split_up_display_spec):
10685         Rewrite without using details of internal string representation.
10686         (x_semi_canonicalize_device_connection): Type correctness.
10687
10688         * config.h.in:
10689         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10690         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10691         (HAVE_XFREE386): Removed.
10692
10693         * buffer.h (DEC_CHARPTR): `const' correctness.
10694         (bufbyte_strcmp): New.
10695         (bufbyte_memcmp): New.
10696
10697         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10698
10699         * buffer.h (XCHAR_OR_CHAR_INT):
10700         Always use inline function.
10701         Remove redundant type checking assert() - XINT will abort quite nicely.
10702
10703 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10704
10705         * search.c (Freplace_match): Set newtext to an empty string.
10706
10707 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10708
10709         * s/decosf1-3.h: Remove #include of stropts.h
10710         * s/ptx.h: Remove #include of stropts.h
10711         * s/usg5-4.h: Remove #include of stropts.h
10712         * sysproc.h:
10713         * config.h.in:
10714         Use stropts.h, not sys/stropts.h.
10715         Use strtio.h, not sys/strtio.h.
10716
10717 2000-10-04  Martin Buchholz <martin@xemacs.org>
10718
10719         * XEmacs 21.2.36 is released.
10720
10721 2000-09-21  Andy Piper  <andy@xemacs.org>
10722
10723         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10724         changes still involve copying the widget tree.
10725         (update_widget_face): make sure a change is register in the widget
10726         tree. Call update_tab_widget_face appropriately.
10727         (update_tab_widget_face): ditto.
10728         (x_tab_control_redisplay): make sure non-structural changes still
10729         involve copying the widget tree.
10730
10731 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10732
10733         * lread.c (locate_file): Check the path element is non-nil.
10734
10735 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10736
10737         * lisp.h: Warning suppression for SCO compilers.
10738
10739         * redisplay-tty.c (reset_tty_modes): Fix crash.
10740         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10741
10742 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10743
10744         Big signal/process handling overhaul.  Bugs fixed:
10745         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10746         M-x comint-kill-subjob should work for both values nil and t of
10747         process-connection-type. It was broken on most platforms.
10748         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10749         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10750         * process-unix.c: Signal/Process handling overhaul.
10751         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10752         (allocate_pty): Use all available modern methods of allocating
10753         ptys, falling back to old style BSD allocation as a last resort.
10754         Use allegedly more secure Unix98 pty allocation by default.
10755         (allocate_pty_the_old_fashioned_way): New. the last resort.
10756         (unix_create_process): Push ptem, ldterm, ttcompat where
10757         available.  Autoconfiscate.
10758         (try_to_initialize_subtty): New.
10759         (unix_kill_child_process): Proper signal handling for ptys on most
10760         platforms, using special knowledge of AIX, BSD, etc...
10761         (unix_create_process): Always disconnect_controlling_terminal() for
10762         subprocesses, whether using ptys or not.
10763         * process.h: Remove old getpt-dependent PTY code.
10764         * process.c (Fprocess_send_signal): New, obvious generic function.
10765         (decode_signal): New.
10766         (Finterrupt_process):
10767         (Fkill_process):
10768         (Fquit_process):
10769         (Fstop_process):
10770         (Fcontinue_process):
10771         (Fsignal_process): Use decode_signal.
10772         (process_send_signal):
10773         Many docstring corrections.
10774         Allow any signal to be sent to a process object.
10775         * config.h.in: Add symbols for big signal/process overhaul.
10776         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10777         * sysproc.h: Include process-related headers, where available:
10778         sys/stropts.h sys/strtio.h pty.h libutil.h
10779         * s/irix4-0.h:
10780         * s/irix5-0.h:
10781         * s/cygwin32.h:
10782         * s/gnu.h:
10783         * s/linux.h:
10784         * s/hpux.h:
10785         * s/aix3-1.h:
10786         Remove old S&M pty stuff.
10787         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10788         * systty.h: Simplify cpp hackery, improve comments.
10789         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10790
10791         * editfns.c (Fformat_time_string):
10792         Be a little more paranoid with the return value of ctime.
10793
10794         * fileio.c (check_executable):
10795         (check_writable):
10796         Use symbolic constants X_OK, W_OK.
10797
10798         * console-x.c (split_up_display_spec): Fix a warning.
10799
10800 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10801
10802         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10803         * ntproc.c (sys_spawnve): make_string ==> build_string
10804         Small clarity improvements.
10805
10806 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10807
10808         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10809
10810         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10811
10812         * config.h.in (HAVE_STRCASECMP): Remove.
10813
10814 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10815
10816         * redisplay-output.c (redisplay_output_pixmap):
10817         Cleaner and possibly more 64-bit correct code.
10818
10819 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10820
10821         * dumper.c (pdump_load_finish): move restoration of
10822         `noninteractive1' to emacs.c (main_1).
10823         * emacs.c (main_1): protect LISP-visible command-line flags
10824         from pdump_load().
10825
10826 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10827
10828         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10829         DUMP_TARGET instead of literal program names.
10830
10831 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10832
10833         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10834
10835 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10836
10837         * *: Spelling mega-patch
10838
10839 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10840
10841         * fns.c (bad_bad_turtle):
10842         Delete "Eek!" comment, since we fixed the bug to which it refers.
10843
10844 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10845
10846         * alloca.c: Replace REGISTER with register.
10847
10848 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10849
10850         * file-coding.c (ucs_to_char): Use countof.
10851
10852 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10853
10854         * file-coding.c: (ucs_to_char):
10855         (complex_vars_of_file_coding):
10856         Use countof instead of sizeof.
10857         Use CHECK_NATNUM instead of CHECK_INT.
10858
10859         * sysdep.c (strcasecmp): Remove.
10860         * device-x.c (ascii_strcasecmp): New.
10861         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10862         Avoid using non-standard non-portable strcasecmp.
10863
10864 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10865
10866         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10867         * font-lock.c: remove reference to emacsfns.h.
10868         * search.c: small doc improvement.
10869         * event-Xt.c: correct file names in comments.
10870         * console-x.h Correct file names in comments.
10871         * frame.c: Correct file names in comments.
10872         * event-stream.c: remove Energize from comments.
10873
10874 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10875
10876         * symeval.h (DEFERROR_STANDARD):
10877         (DEFERROR):
10878         (DEFSYMBOL):
10879         (DEFSYMBOL_NO_DUMP):
10880         (DEFSYMBOL_MULTIWORD_PREDICATE):
10881         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10882         (DEFKEYWORD):
10883         The construct &##name is not sensible C.
10884         Fixes compilation errors with Unixware native compiler.
10885
10886 2000-09-14  Martin Buchholz  <martin@xemacs.org>
10887
10888         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10889         (next_frame_internal): Removed.  We now just have next_frame.
10890         (next_frame):
10891         Write a simpler and cleaner one-pass algorithm.
10892         Remove called_from_delete_device arg and #ifdefed-out code.
10893         (previous_frame):
10894         Renamed from prev_frame.  Update callers.
10895         Cleaned up to have an analogous implementation to next_frame.
10896         (other_visible_frames_internal): Remove the
10897         called_from_delete_device bogus arg, and hence, remove this
10898         function.  Just use other_visible_frames().
10899
10900         * window.c (Fnext_window):
10901         Prettify docstring.
10902         Since next_frame() is guaranteed to return a frame, remove check
10903         for nil inserted in previous patch.
10904         (Fprevious_window):
10905         Prettify docstring.
10906         Make code look more like Fnext_window.
10907         (window_loop):
10908         Respect the `console' arg when iterating through windows.
10909         Fixes bug: (get-buffer-window buffer t device) not respecting
10910         the `device' arg.
10911         This function needs more work, as others have pointed out.
10912
10913         * frame.h: Rename prev_frame to previous_frame.
10914         device_matches_console_spec no longer takes a `frame' arg.
10915
10916         * s/gnu.h:
10917         * s/linux.h:
10918         * s/hpux.h:
10919         Use EMACS_BLOCK_SIGNAL instead of sigblock.
10920         From "Golubev I. N." <gin@mo.msk.ru>.
10921
10922         * make-src-depend: Fix typo.
10923
10924 2000-09-13  Martin Buchholz  <martin@xemacs.org>
10925
10926         * window.c (Fnext_window):
10927         next_frame() might return nil, not a frame.
10928         Fixes this crash:
10929         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10930
10931         * frame.c (next_frame_internal):
10932         We've passed a frame if we've passed its device.
10933         Fixes this crash:
10934         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10935 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10936
10937 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10938
10939         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10940         Allow option to suppress accelerators in menu/dialog items.
10941         (populate_or_checksum_helper): Pass dialog title through above.
10942
10943 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10944
10945         * event-msw.c (mswindows_key_to_emacs_keysym):
10946         Add "pause" key, fix "menu" key.
10947
10948 2000-09-09  Martin Buchholz  <martin@xemacs.org>
10949
10950         * eval.c (reinit_vars_of_eval):
10951         Increase max_lisp_eval_depth to 1000,
10952         required for thai-xtis.el to byte-compile under some circumstances.
10953
10954 2000-09-04  Martin Buchholz  <martin@xemacs.org>
10955
10956         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10957         From Kenichi Handa.
10958
10959 2000-09-01  Martin Buchholz  <martin@xemacs.org>
10960
10961         * make-src-depend: Make the generated Makefiles smaller.
10962
10963         * s/hpux.h (SETUP_SLAVE_PTY):
10964         Provide a %d in the format string for the errno argument.
10965
10966         * editfns.c (Ftemp_directory):
10967         Warning fix.
10968         Avoid buffer overrun on very long file name.
10969
10970         * input-method-xlib.c (XIM_init_device):
10971         6th parameter of XRegisterIMInstantiateCallback has different
10972         pointer types on different OSes, so simply cast to (void *).
10973
10974         * unexhp9k800.c: Warning fixes.  Fiddly changes.
10975
10976         * sysdll.c (dll_open):
10977         shl_load will hang hard if passed a NULL filename.
10978         Simply return NULL for compatibility with dlopen.
10979         * sysdll.c: Conform to XEmacs coding standards.
10980
10981         * sysdep.c (get_pty_max_bytes):
10982         Support pty input lines longer than 512 bytes on HP-UX 10.20.
10983
10984 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10985
10986         * tooltalk.c: Add #include <syssignal.h>
10987
10988 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
10989
10990         * s/hpux.h: Don't use undefined function sigunblock().
10991
10992 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10993
10994         * config.h.in: Add HAVE_BALLOON_HELP.
10995         * emacs.c: Use HAVE_BALLOON_HELP.
10996         * Makefile.in.in (x_objs):
10997         Make Balloon Help conditional on finding shape.h.
10998
10999 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11000
11001         * syntax.c (regex_emacs_buffer_p): New variable.
11002         * syntax.h (regex_emacs_buffer_p): extern.
11003         * search.c (looking_at_1):
11004         (string_match_1):
11005         (fast_string_match):
11006         (search_buffer): Set regex_emacs_buffer_p.
11007         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11008         when before_dot, at_dot, after_dot.
11009
11010 2000-08-23  Andy Piper  <andy@xemacs.org>
11011
11012         * gui-x.c (popup_selection_callback): Only set action_occurred
11013         when we really have an image instance.
11014         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11015
11016 2000-08-23  Andy Piper  <andy@xemacs.org>
11017
11018         * gui-msw.c (mswindows_handle_gui_wm_command): set
11019         action_occurred.
11020         * gui-x.c (popup_selection_callback): ditto.
11021
11022         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11023         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11024         (struct Lisp_Image_Instance): add action_occurred flag.
11025
11026         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11027         (image_instance_changed): ditto.
11028         (reset_frame_subwindow_instance_cache): only unmap windows - do
11029         not remove them from the cache also.
11030
11031         * glyphs-widget.c (tab_control_update): better debug.
11032         (progress_gauge_update): ditto.
11033         (layout_update): ditto.
11034         (layout_instantiate): ditto.
11035         (tab_control_order_only_changed): cope with null pending items.
11036
11037         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11038         debug. Force selection of an item when an action occurred. Cope
11039         with null pending_items.
11040         (mswindows_progress_gauge_redisplay): better debug.
11041         * glyphs-x.c (x_tab_control_redisplay): ditto.
11042
11043         * redisplay.c (redisplay_frame): reset the frame cache if the
11044         frame is garbaged.
11045
11046         * window.c (Fset_window_configuration): potentially re-enable
11047         frame cache reset.
11048         (window_unmap_subwindows): need to finalize instances here since
11049         it is only used in mark_window_as_deleted.
11050
11051 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11052
11053         * nas.c (SndOpenDataForReading):
11054         nas.c (WaveOpenDataForReading):
11055         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11056         Somehow escaped from the 2000-08-14 patch.
11057
11058 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11059
11060         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11061         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11062
11063 2000-08-21  Andy Piper  <andy@xemacs.org>
11064
11065         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11066         window if it is not already displayed.
11067
11068         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11069         it is not already displayed.
11070
11071         * window.c (Fset_window_configuration): don't reset the frame
11072         cache.
11073
11074         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11075         instances from the frame cache if we are actually finalizing them.
11076         (reset_frame_subwindow_instance_cache): reset frame cache only
11077         after unmapping everything.
11078         (map_subwindow): set displayed flag after mapping.
11079
11080 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11081
11082         * data.c (indirect_function):
11083         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11084
11085         * eval.c (function_argcount):
11086         Use original function when signaling errors.
11087
11088 2000-08-18  Andy Piper  <andy@xemacs.org>
11089
11090         * frame.c (delete_frame_internal): use new
11091         free_frame_subwindow_instances name.
11092
11093         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11094         (add_tab_item): make return type correct.
11095         (mswindows_tab_control_instantiate): assert index of tab.
11096         (mswindows_tab_control_redisplay): Re-code to use
11097         gui_item_equal_sans_selected and gui_item_list_find_selected.
11098
11099         * glyphs-widget.c (tab_control_update): Correct comment.
11100
11101         * window.c (window_unmap_subwindows): use new
11102         unmap_subwindow_instance_cache_mapper.
11103         (window_unmap_subwindows_cache_mapper): deleted.
11104         (Fset_window_configuration): comparisons should now be with
11105         EQ. Preserve the subwindow instance cache across configuration
11106         changes.
11107         (allocate_window): ditto.
11108         (make_dummy_parent): ditto.
11109
11110         * glyphs.c (free_frame_subwindow_instances): rename from
11111         free_frame_subwindow_instance_cache. finalize all instances rather
11112         than just those in the display cache.
11113         (finalize_all_subwindow_instances): walk windows unmapping and
11114         finalizing subwindows.
11115         (unmap_subwindow_instance_cache_mapper): moved from
11116         window.c. Allow finalization as well as unmapping.
11117
11118         * gui.c (gui_item_list_find_selected): new function.
11119
11120         * gui.h (gui_item_list_find_selected): declare.
11121
11122         * glyphs-x.c (x_tab_control_redisplay): pick tab
11123         explicitly. Re-code to use gui_item_equal_sans_selected and
11124         gui_item_list_find_selected.
11125
11126         * glyphs-x.h: add lwlib-utils.h
11127
11128         * buffer.c (Frecord_buffer): undo previous change.
11129
11130 2000-08-09  Vin Shelton  <acs@xemacs.org>
11131
11132         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11133         possible.  Create temporary files more securely.  The patch was
11134         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11135         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11136         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11137         for details.
11138
11139 2000-08-07  Ben Wing  <ben@xemacs.org>
11140
11141         * getloadavg.c: remove duplicate (and windows-breaking)
11142         includes of fcntl.h and sys/file.h.
11143
11144         * nt.c: remove duplicate getloadavg() definition.
11145
11146         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11147         encodings.
11148
11149 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11150
11151         * eval.c (function_argcount): If function needs to be autoloaded
11152         actually use the loaded definition.
11153         GCPRO function.
11154
11155 2000-08-05  Ben Wing  <ben@xemacs.org>
11156
11157         * getloadavg.c: add prototype for getloadavg().  remove
11158         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11159         of the code).  remove duplicate header includes.
11160
11161         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11162
11163         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11164         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11165         useful load average.
11166
11167         * alloc.c (reinit_alloc_once_early): removed references to
11168         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11169         the lisp vars are the only things referencing the malloc_sbrk_*
11170         vars, and they were already if 0'd out.  these vars only exist
11171         in the older malloc.c, which is basically unused, and they're
11172         only for informational purposes.
11173
11174         * m\*.h: removed useless VIRT_ADDR_VARIES.
11175
11176         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11177
11178 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11179
11180         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11181         color if the image is a mono pixmap.
11182
11183 2000-07-30  Ben Wing  <ben@xemacs.org>
11184
11185         * Makefile.in.in (release):
11186         Remove stray @.
11187
11188         * buffer.c (directory_is_current_directory):
11189         * dired-msw.c (mswindows_get_files):
11190         * dired.c:
11191         * dired.c (Fdirectory_files):
11192         * dired.c (file_name_completion_stat):
11193         * dired.c (Ffile_attributes):
11194         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11195         preprocessor tricks, to avoid problems on some machines
11196         (e.g. SCO).
11197
11198         * callproc.c (egetenv): GC docs.
11199
11200         * console-msw.h:
11201         * console-msw.h (struct mswindows_dialog_id):
11202         * lrecord.h (lrecord_type):
11203         New object for use with MSW dialogs.
11204
11205         * console.h (struct console_methods):
11206         New enable/disable frame methods, for proper modal dialogs.
11207
11208         * device-msw.c (msprinter_default_printer): Fix to follow
11209         proper Mule conventions.
11210
11211         * device-msw.c:
11212         * device-msw.c (signal_open_printer_error):
11213         * device-msw.c (msprinter_init_device):
11214         * device-msw.c (ensure_not_printing):
11215         * device-msw.c (plist_get_margin):
11216         * device-msw.c (Fmsprinter_select_settings):
11217         * device-msw.c (finalize_devmode):
11218         * device-msw.c (Fmsprinter_settings_despecialize):
11219         * device-msw.c (signal_enum_priner_error):
11220         * extents.c (decode_extent):
11221         * extents.c (decode_map_extents_flags):
11222         * extents.c (decode_extent_at_flag):
11223         * extents.c (Fextent_at):
11224         * extents.c (Fextents_at):
11225         * extents.c (symbol_to_glyph_layout):
11226         [[[[2]]]] Use structured errors.
11227
11228         * dialog-msw.c:
11229         * dialog-msw.c (mswindows_is_dialog_msg):
11230         * dialog-msw.c (mark_mswindows_dialog_id):
11231         * dialog-msw.c (dialog_proc):
11232         * dialog-msw.c (handle_question_dialog_box):
11233         * dialog-msw.c (syms_of_dialog_mswindows):
11234         Define new object to clean up marking; use it as a dialog identifier.
11235         Call new delete-dialog-box-hook.
11236
11237         * dialog-x.c (dbox_selection_callback):
11238         * dialog-x.c (dbox_descriptor_to_widget_value):
11239         * dialog-x.c (x_make_dialog_box_internal):
11240         Call new delete-dialog-box-hook.
11241         Return an id.
11242
11243         * dialog.c:
11244         * dialog.c (syms_of_dialog):
11245         * dialog.c (vars_of_dialog):
11246         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11247
11248         * eval.c:
11249         * eval.c (signal_call_debugger):
11250         when noninteractive, output stack traces on the console instead
11251         of in a (never-seen) buffer.
11252
11253         * eval.c (signal_type_error):
11254         * eval.c (invalid_argument_2):
11255         * lisp.h:
11256         new funs for use w/structured errors.
11257
11258         * event-Xt.c:
11259         * event-Xt.c (x_to_emacs_keysym):
11260         * event-Xt.c (describe_event):
11261         * event-Xt.c (emacs_Xt_event_handler):
11262         * event-Xt.c (vars_of_event_Xt):
11263         * event-msw.c:
11264         * event-msw.c (mswindows_wnd_proc):
11265         * event-msw.c (vars_of_event_mswindows):
11266         rename {x,mswindows}-debug-events to debug-{}-events for
11267         consistency with other debug-foo variables.
11268
11269         * event-stream.c:
11270         document next-event more clearly.
11271
11272         * fileio.c (Ffile_name_directory):
11273         * fileio.c (Ffile_name_nondirectory):
11274         * fileio.c (Funhandled_file_name_directory):
11275         * fileio.c (file_name_as_directory):
11276         * fileio.c (Ffile_name_as_directory):
11277         * fileio.c (directory_file_name):
11278         * fileio.c (Fdirectory_file_name):
11279         * fileio.c (Fmake_temp_name):
11280         * fileio.c (Ffile_truename):
11281         * fileio.c (Fsubstitute_in_file_name):
11282         * fileio.c (expand_and_dir_to_file):
11283         * fileio.c (barf_or_query_if_file_exists):
11284         * fileio.c (check_executable):
11285         * fileio.c (Ffile_exists_p):
11286         * fileio.c (Ffile_writable_p):
11287         * fileio.c (Ffile_directory_p):
11288         * fileio.c (Ffile_regular_p):
11289         * fileio.c (Ffile_modes):
11290         * fileio.c (Ffile_newer_than_file_p):
11291         * fileio.c (Fverify_visited_file_modtime):
11292         * fileio.c (Fset_visited_file_modtime):
11293         * fileio.c (auto_save_1):
11294         (1). (2).
11295         fix up gcpro's.
11296
11297         * frame-msw.c:
11298         * frame-msw.c (mswindows_init_frame_1):
11299         * frame-msw.c (mswindows_enable_frame):
11300         * frame-msw.c (error_frame_unsizable):
11301         * frame-msw.c (msprinter_init_frame_1):
11302         * frame-msw.c (msprinter_init_frame_3):
11303         * frame-msw.c (console_type_create_frame_mswindows):
11304         (2).
11305         implement new enable/disable frame methods.
11306
11307         * frame-x.c:
11308         * frame-x.c (x_enable_frame):
11309         * frame-x.c (console_type_create_frame_x):
11310         implement new enable/disable frame methods.
11311
11312         * frame.c:
11313         * frame.c (Fdisable_frame):
11314         * frame.c (syms_of_frame):
11315         * frame.h (struct frame):
11316         implement new enable/disable frame methods/functions.
11317
11318         * general-slots.h:
11319         add initial-focus.
11320
11321         * glyphs-msw.c (mswindows_widget_instantiate):
11322         comment that initial-focus should be implemented.
11323
11324         * glyphs-widget.c:
11325         * glyphs-widget.c (check_valid_instantiator):
11326         * glyphs-widget.c (check_valid_orientation):
11327         * glyphs-widget.c (check_valid_tab_orientation):
11328         * glyphs-widget.c (check_valid_justification):
11329         * glyphs-widget.c (check_valid_border):
11330         * glyphs-widget.c (check_valid_callback):
11331         * glyphs-widget.c (check_valid_int_or_function):
11332         * glyphs-widget.c (check_valid_string_or_vector):
11333         * glyphs-widget.c (check_valid_item_list_1):
11334         * glyphs-widget.c (widget_validate):
11335         * glyphs-widget.c (combo_box_validate):
11336         * glyphs-widget.c (widget_instantiate):
11337         * glyphs-widget.c (syms_of_glyphs_widget):
11338         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11339         * glyphs-widget.c (image_instantiator_combo_box):
11340         * glyphs-widget.c (image_instantiator_scrollbar):
11341         * glyphs-widget.c (image_instantiator_tab_control):
11342         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11343         (2).
11344         support (unimplemented) keyword initial-focus.
11345         reindent long macros.
11346
11347         * glyphs-x.c (x_redisplay_widget):
11348         * glyphs-x.c (x_button_instantiate):
11349         * glyphs-x.c (x_button_redisplay):
11350         * glyphs-x.c (x_progress_gauge_instantiate):
11351         * glyphs-x.c (x_edit_field_instantiate):
11352         * glyphs-x.c (x_combo_box_instantiate):
11353         * glyphs-x.c (x_tab_control_instantiate):
11354         * glyphs-x.c (x_label_instantiate):
11355         * gui-x.c:
11356         * gui-x.c (button_item_to_widget_value):
11357         * gui-x.c (gui_items_to_widget_values_1):
11358         * gui-x.c (gui_item_children_to_widget_values):
11359         * gui-x.c (gui_items_to_widget_values):
11360         * gui-x.h:
11361         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11362         add new flag to gui-parsing routines to indicate whether
11363         accelerator specs should be supported.
11364
11365         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11366
11367         * glyphs.h (struct Lisp_Image_Instance):
11368         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11369         add initial-focus flag.
11370
11371         * gui.c:
11372         * gui.c (syms_of_gui):
11373         * gui.c (vars_of_gui):
11374         clean up menu-no-selection-hook.
11375
11376         * gui.h:
11377         support delete-dialog-box-hook.
11378
11379         * lread.c (Fload_internal):
11380         * lread.c (locate_file_in_directory_mapper):
11381         (1).
11382
11383         * lrecord.h:
11384         * lrecord.h (struct toolbar_button):
11385         * lrecord.h (syms_of_toolbar):
11386         document how to create a new object.
11387
11388         * menubar-msw.c (mswindows_char_is_accelerator):
11389         may be called on frames w/o menus.
11390
11391         * menubar.c (vars_of_menubar):
11392         clean up :filter docs.
11393
11394         * nt.c (readdir):
11395         * ntproc.c:
11396         (1).
11397
11398         * process-nt.c:
11399         * process-nt.c (validate_signal_number):
11400         * process-nt.c (signal_cannot_launch):
11401         * process-nt.c (nt_create_process):
11402         * process-nt.c (nt_send_process):
11403         * process-nt.c (nt_kill_child_process):
11404         * process-nt.c (nt_open_network_stream):
11405         * process-nt.c (syms_of_process_nt):
11406         (2).
11407         delete quote-handling.  call new lisp code that does it better.
11408
11409         * process-unix.c (connect_to_file_descriptor):
11410         * process-unix.c (allocate_pty):
11411         * process-unix.c (unix_send_process):
11412         * process-unix.c (unix_kill_child_process):
11413         * process-unix.c (unix_open_network_stream):
11414         * process-unix.c (unix_open_multicast_group):
11415         (1). (2).
11416
11417         * process.c:
11418         * process.c (Fstart_process_internal):
11419         (2).  need to canonicalize process path even if absolute.
11420
11421         * select-msw.c (symbol_to_ms_cf):
11422         * select-msw.c (ms_cf_to_symbol):
11423         * select-msw.c (cf_is_autofreed):
11424         * select-msw.c (mswindows_destroy_selection):
11425         * select.c:
11426         * select.c (syms_of_select):
11427         * select.h:
11428         support dibv5, fix bugs. (from Mike Alexander)
11429
11430         * select.c (Fget_selection_internal):
11431         * select.c (select_convert_out):
11432
11433         * sysdep.c:
11434         * sysdep.c (xemacs_stat):
11435         renamed.
11436
11437         * sysdep.c (mkdir):
11438         * sysdep.c (rmdir):
11439         but keep original stat() here because we provide encapsulation
11440         around these funs.
11441
11442         * sysfile.h:
11443         * sysfile.h (fstat):
11444         remove stat garbage.
11445
11446         * syswindows.h:
11447         fix X/MSW conflict.
11448         don't include tchar.h.  it's inappropriate because it makes
11449         compile-time distinctions when we want runtime distinctions.
11450         (we provide our own tchar replacements)
11451
11452         * toolbar.c:
11453         use default object printer for toolbar-button.
11454
11455         * unexcw.c:
11456         make sure we don't encapsulate.
11457
11458         * window.c (vars_of_window):
11459         emphasize that temp-buffer-show-hook is obsolete.
11460
11461 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11462
11463         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11464         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11465
11466         * events.c (Fevent_timestamp_lessp):
11467         Not 64-bit clean.  Use EMACS_INT, not int.
11468
11469 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11470
11471         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11472         unsigned int and changed the last enum to
11473         lrecord_type_last_built_in_type.
11474         (lrecord_implementations_table): changed prototype to know how
11475         long the array is supposed to be.
11476         (lrecord_type_count): new unsigned int to keep track of the
11477         current number of lisp lrecord types.
11478         (DEFINE_EXTERNAL_LRECORD):
11479         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11480         dynamic-modules to declare new lisp types. They are the same
11481         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11482         int for each new type, and increment lrecord_type_count by 1.
11483
11484         * alloc.c (lrecord_implementations_table): Changed to reference
11485         lrecord_type_last_built_in_type for the size of the array.
11486         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11487
11488 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11489
11490         * glyphs.h (check_valid_item_list): Renamed from
11491         check_valid_item_list_1.
11492
11493 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11494
11495         * select.c (Qselect_coerce): New.
11496         * select.c (Vselection_coercion_alist): New.
11497         * select.c (syms_of_select): Declare.
11498         * select.c (get-selection-internal): Use it.
11499         Use the new select-coerce functionality.
11500
11501         * select.c (select_coerce): New.
11502         * select.h (select_coerce): Declare.
11503         New function to coerce one type of data into another.
11504
11505 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11506
11507         * callproc.c (Fcall_process_internal):
11508         (Fcall_process_internal):
11509         * process-unix.c (unix_create_process):
11510         Save and restore the value of errno, so that error messages are accurate.
11511
11512 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11513
11514         * elhash.c (print_hash_table):
11515         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11516         Prettify docstrings and indentation.
11517
11518 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11519
11520         * window.c (Fwindow_pixel_edges): Subtract frame border and
11521         gutter size.
11522
11523 2000-07-31  Andy Piper  <andy@xemacs.org>
11524
11525         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11526         will acknowledge the change.
11527
11528         * glyphs.h: declare tab_control_order_only_changed.
11529
11530         * glyphs-x.c (x_tab_control_redisplay): use
11531         tab_control_order_only_changed.
11532
11533         * glyphs-widget.c (tab_control_order_only_changed): new function.
11534
11535         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11536         tab_control_order_only_changed.
11537
11538         * gui.c (gui_item_equal_sans_selected): new function.
11539         (gui_item_equal): use it.
11540
11541         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11542         :properties in favor of :items..
11543
11544         * glyphs-widget.c (check_valid_item_list): rename from
11545         check_valid_item_list_1.
11546         (check_valid_item_list_1): renamed.
11547         (combo_box_validate): deprecate :properties in favor of :items.
11548         (widget_instantiate): ditto.
11549         (tab_control_update): ditto.
11550         (image_instantiator_combo_box): ditto.
11551         (image_instantiator_tree_view): ditto.
11552         (image_instantiator_tab_control): ditto.
11553         (layout_post_instantiate): remove dead code.
11554
11555         * print.c (debug_print_no_newline): only write to debugger if in
11556         WIN32_NATIVE.
11557
11558         * elhash.c (Fmake_hash_table): update doc string.
11559
11560         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11561         messages whilst in GC. This at least stops XEmacs crashing but has
11562         the potential for wierd behaviour.
11563
11564 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11565
11566         * config.h.in:
11567         Make existence of s&m files optional.
11568
11569         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11570         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11571         * s/gnu.h: Remove HAVE_GETLOADAVG.
11572         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11573         * s/sol2.h: Remove HAVE_GETLOADAVG.
11574         * lisp.h: Remove getloadavg() declaration.
11575         * fns.c:
11576         Include <sys/loadavg.h> if available.
11577         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11578         * config.h.in:  Group together getloadavg()-related macros.
11579         Use only configure-time tests to detect getloadavg().
11580
11581 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11582
11583         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11584
11585 2000-07-25  Andy Piper  <andy@xemacs.org>
11586
11587         * syswindows.h: add tchar.h for native builds.
11588
11589         * frame.c (syms_of_frame): remove set-glyph-image.
11590
11591         * general-slots.h: add Qset_glyph_image.
11592
11593         * glyphs-widget.c (layout_update): add domain arg to
11594         set-glyph-image.
11595         (syms_of_glyphs_widget): remove set-glyph-image.
11596
11597 2000-07-23  Ben Wing  <ben@xemacs.org>
11598
11599         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11600         Vpopup_frame_list.
11601
11602 2000-07-22  Andy Piper  <andy@xemacs.org>
11603
11604         * symsinit.h: add syms_of_win32().
11605
11606         * gui-msw.c (syms_of_gui_mswindows): remove
11607         Fmswindows_shell_execute.
11608         (Fmswindows_shell_execute): moved to win32.c.
11609
11610         * emacs.c (main_1): add syms_of_win32 ().
11611
11612         * win32.c (init_potentially_nonexistent_functions): rewrite in
11613         compiler-friendly terms.
11614         (Fmswindows_shell_execute): move here from gui-msw.c.
11615         (syms_of_win32): new.
11616
11617         * device-msw.c (Fmswindows_printer_list): clean up args to
11618         EnumPrinters.
11619         Don't include tchar under cygwin or mingw.
11620         (msprinter_default_printer): make cygwin-friendly.
11621
11622 2000-07-21  Andy Piper  <andy@xemacs.org>
11623
11624         * glyphs-widget.c (image_instantiator_tree_view): use tab
11625         control's update function.
11626         (layout_property): new function. Retrieve items.
11627
11628         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11629         function. Re-populate the tree view from the pending items.
11630
11631         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11632         is designated the parent if the domain is an image instance. This
11633         is needed so that dirtiness can be cascade up the hierarchy and
11634         thus for layout children to be redisplayed correctly.
11635         (allocate_image_instance): rename glyph -> parent.
11636
11637         * redisplay.h: change redisplay_output_layout signature.
11638
11639         * redisplay-msw.c (mswindows_output_display_block): use domain
11640         arg.
11641
11642         * redisplay-x.c (x_output_display_block): use domain arg.
11643
11644 2000-07-10  Andy Piper  <andy@xemacs.org>
11645
11646         * window.c (Fset_window_configuration): add comment.
11647
11648         * redisplay-output.c (compare_runes):
11649         (redisplay_output_subwindow): redisplay rather than update subwindow.
11650         (redisplay_output_layout): ditto.
11651
11652         * redisplay-msw.c (mswindows_frame_output_end):
11653         (mswindows_frame_output_end): make defer window pos optional.
11654
11655         * lisp.h: add Flast.
11656
11657         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11658         normalize method. Change update method to be for changed
11659         instantiators. Add redisplay method. Change signature of layout
11660         method.
11661         (struct Lisp_Image_Instance): add instantiator.
11662         (IMAGE_INSTANCE_INSTANTIATOR): new.
11663         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11664         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11665         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11666
11667         * glyphs.c:
11668         (find_instantiator_differences): new function.
11669         (Fset_instantiator_property): new convenience function.
11670         (check_image_instance_structure): strictly check for vector
11671         instantiators.
11672         (normalize_image_instantiator): make non-static.
11673         (instantiate_image_instantiator): pass on dest_mask and use new
11674         signatures for image_instance_layout and friends.
11675         (mark_image_instance): mark the instantiator. Mark the subwindow
11676         face not the widget face.
11677         (image_instance_equal): add instantiator.
11678         (image_instance_hash): ditto.
11679         (allocate_image_instance): ditto.
11680         (Fset_image_instance_property): removed.
11681         (Fimage_instance_file_name): ditto.
11682         (Fcolorize_image_instance): ditto.
11683         (image_instance_layout): add offsets to be set.
11684         (update_image_instance): new function. update an image instance
11685         from its changed instantiator.
11686         (inherit_normalize): add dest_mask.
11687         (xbm_normalize): ditto.
11688         (xface_normalize): ditto.
11689         (xpm_normalize): ditto.
11690         (text_update): set_property -> update.
11691         (image_instantiate): use the glyph identity as a hash key, not the
11692         instantiator.
11693         (glyph_width): use new image_instance_layout signature.
11694         (glyph_ascent): ditto.
11695         (glyph_descent): ditto.
11696         (glyph_height): ditto.
11697         (glyph_query_geometry): ressurrect.
11698         (glyph_layout): ditto.
11699         (redisplay_subwindow): update -> redisplay.
11700         (syms_of_glyphs): add Fset_instantiator_property.
11701         (image_instantiator_format_create): set_property -> update.
11702
11703         * glyphs-x.c:
11704         (autodetect_normalize): add dest_maks to signature.
11705         (x_redisplay_subwindow): update -> redisplay.
11706         (x_redisplay_widget): ditto.
11707         (x_button_redisplay): ditto.
11708         (x_progress_gauge_redisplay): ditto.
11709         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11710         stacking order.
11711         (console_type_create_glyphs_x): update -> redisplay.
11712         (image_instantiator_format_create_glyphs_x): ditto.
11713
11714         * glyphs-widget.c:
11715         (check_valid_instantiator): disallow glyphs in the instantiator,
11716         they must now be vectors.
11717         (check_valid_instantiator_list): ditto.
11718         (glyph_instantiator_to_glyph): use internal symbol rather than
11719         intern.
11720         (widget_update): renamed from widget_set_property. Call cascaded
11721         update methods.
11722         (redisplay_widget): renamed from update_widget.
11723         (widget_layout): image_instance_layout now takes position as well
11724         as size.
11725         (widget_normalize): ditto.
11726         (widget_instantiate): ditto.
11727         (tab_control_query_geometry) ditto.:
11728         (tab_control_update): renamed from tab_control_set_property.
11729         (progress_gauge_update): set_property -> update.
11730         (layout_normalize): rewrite so that child instantiators are
11731         normalized also.
11732         (layout_update): new function. Create glyphs from the normalized
11733         children and cope with any other layout keywords. We do not
11734         instantiate children here that will be take care of by
11735         redisplay_output_layout.
11736         (layout_instantiate): call layout_update and not much else.
11737         (layout_post_instantiate): not sure whether this is needed
11738         anymore.
11739         (layout_query_geometry): query glyph geometry rather than
11740         image_instance geometry.
11741         (layout_layout): set offsets from pass in parameters. Use glyph
11742         geometry and layout functions rather than image instance ones.
11743         (native_layout_layout): ditto.
11744         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11745         (image_instantiator_widget): set_property -> update.
11746         (image_instantiator_buttons): ditto.
11747         (image_instantiator_progress_guage): ditto.
11748         (image_instantiator_tab_control): ditto.
11749         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11750         (image_instantiator_layout): add update method.
11751
11752         * glyphs-msw.c (bmp_normalize):
11753         (mswindows_resource_normalize): add dest_mask so that it can be
11754         proprogated by layout_normalize.
11755         (begin_defer_window_pos): make optional because it may not be the
11756         right thing to do and it introduces differences with X.
11757         (mswindows_unmap_subwindow): ditto.
11758         (mswindows_map_subwindow): ditto.
11759         (mswindows_redisplay_subwindow): renamed from
11760         mswindows_update_subwindow.
11761         (mswindows_redisplay_widget): ditto.
11762         (mswindows_button_redisplay): renamed from
11763         mswindows_button_update. Update is now what the instantiation
11764         function does for a changed instantiator.
11765         (mswindows_progress_gauge_instantiate): set the progress value
11766         here if appropriate.
11767         (mswindows_tab_control_redisplay): cope with re-ordering of the
11768         members of the tab widget by simply selecting the new top
11769         widget. This makes things appear ok if you click on a tab.
11770         (mswindows_combo_box_instantiate): image_instance_layout now takes
11771         position as well as size.
11772         (mswindows_progress_gauge_redisplay): renamed from
11773         mswindows_progress_gauge_update.
11774         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11775         (image_instantiator_format_create_glyphs_mswindows): ditto.
11776
11777         * glyphs-eimage.c (jpeg_normalize):
11778         (gif_normalize):
11779         (png_normalize):
11780         (tiff_normalize): add dest_mask so that it can be proprogated by
11781         layout_normalize.
11782
11783         * elhash.c:
11784         (print_hash_table):
11785         (hash_table_weakness_validate):
11786         (decode_hash_table_weakness):
11787         (Fhash_table_weakness):
11788         (Fhash_table_type):
11789         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11790
11791         * console.h (struct console_methods): move update_* to
11792         redisplay_*.
11793
11794 2000-07-20  Ben Wing  <ben@xemacs.org>
11795
11796         * *.[ch] (XSETOBJ): remove unused middle argument.
11797         lisp-disunion.h: correct wrap_object() to one argument.
11798
11799 2000-07-15  Ben Wing  <ben@xemacs.org>
11800
11801         * s/cygwin32.h:
11802         * s/cygwin32.h (CYGWIN_CONV_PATH):
11803         Add missing logb prototype for v1.1.
11804         Use post-b20 names and alias to pre-b20 names when pre-b20.
11805
11806         * s/windowsnt.h: [5].
11807
11808 2000-07-15  Ben Wing  <ben@xemacs.org>
11809
11810         * Makefile.in.in (x_objs):
11811         * Makefile.in.in (sheap_objs):
11812         * Makefile.in.in (objs):
11813         added win32.o, cosmetic cleanups.
11814
11815         * alloc.c (Fmake_byte_code):
11816         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11817         etc. macros which declare their own args now.
11818
11819         * alloc.c (syms_of_alloc):
11820         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11821
11822         * buffer.c:
11823         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11824
11825         * buffer.c (Fget_file_buffer):
11826         Fixed GCPRO problem.
11827
11828         * buffer.c (get_truename_buffer):
11829         Fixed comment about GC checking.
11830
11831         * buffer.c (syms_of_buffer):
11832         Undeclared those dedicated frame funs.
11833         [2].
11834
11835         * buffer.h:
11836         Define convenience macros for internal/external conversions.
11837         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11838         and Qenvironment_variable_encoding for cleaner code.
11839
11840         * bufslots.h:
11841         Remove dedicated-frame; in lisp.
11842
11843         * bytecode.c (funcall_compiled_function):
11844         [1].
11845
11846         * bytecode.c (syms_of_bytecode):
11847         [2].
11848
11849         * console-msw.c:
11850         * console-msw.c (mswindows_show_console): Rewrote.
11851
11852         * console-msw.c (Fmswindows_debugging_output): New.
11853         Sends to OutputDebugString (special MSWin debugger interface).
11854
11855         * console-msw.c (Fmswindows_message_box):
11856         Fixed stupid bugs so it works when called from kill-emacs.
11857
11858         * console-msw.c (syms_of_console_mswindows):
11859         Declare Fmswindows_debugging_output.
11860
11861         * console-msw.h:
11862         New MSWin prototypes.
11863
11864         * console-msw.h (struct mswindows_frame):
11865         New entry last-click-mods for improved button-modifier support.
11866
11867         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11868         New struct entry `popup' with corresponding accessor.
11869
11870         * console-x.c:
11871         * console-x.c (split_up_display_spec):
11872         * console-x.c (get_display_arg_connection):
11873         * console-x.c (x_semi_canonicalize_console_connection):
11874         * console-x.c (x_canonicalize_device_connection):
11875         [[[6]]]: Change char to more specific type.
11876         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11877
11878         * console-x.c (x_semi_canonicalize_console_connection):
11879         * console-x.c (x_canonicalize_device_connection):
11880         [[[9]]]: Fix up error signalling to use new structured error system.
11881
11882         * console-x.h:
11883         [[[4]]]: Define codesys aliases:
11884         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11885         Qx_color_name_encoding, Qx_display_name_encoding.
11886
11887         * console.h (struct console_methods):
11888         New method make_dialog_box_internal supersedes older
11889         popup_dialog_box method.
11890
11891         * data.c:
11892         Define many new errors, part of new structured errors.
11893
11894         * data.c (init_errors_once_early):
11895         * data.c (syms_of_data):
11896         [2].
11897
11898         * device-msw.c (mswindows_init_device):
11899         [[[5]]]: Cleanup to support NT 3.51.
11900
11901         * device-msw.c (decode_devmode): Cleanup.
11902
11903         * device-msw.c (mswindows_handle_print_setup_dialog_box):
11904         * device-msw.c (mswindows_handle_print_dialog_box):
11905         * device-msw.c (mswindows_handle_page_setup_dialog_box):
11906         * device-msw.c (syms_of_device_mswindows):
11907         Delete the dialog box primitives recently introduced by Kirill and
11908         instead interface to general dialog box interface.
11909
11910         * device-x.c:
11911         * device-x.c (compute_x_app_name):
11912         * device-x.c (x_init_device):
11913         * device-x.c (Fx_valid_keysym_name_p):
11914         * device-x.c (Fx_set_font_path):
11915         [6].
11916         [7].
11917
11918         * device.h (wrap_device): New.
11919         First of its kind; meant to replace XSETDEVICE.
11920
11921         * dialog-msw.c: Many file-dialog symbols.
11922
11923         * dialog-msw.c (mswindows_register_popup_frame): New.
11924         * dialog-msw.c (mswindows_is_dialog_msg): New.
11925         For supporting kbd traversal in dialog boxes.
11926
11927         * dialog-msw.c (dialog_proc):
11928         Support hitting ESC in dialogs.
11929
11930         * dialog-msw.c (struct):
11931         Common dialog box errors.
11932
11933         * dialog-msw.c (handle_file_dialog_box): New.
11934         Add file dialog code.
11935
11936         * dialog-msw.c (handle_question_dialog_box):
11937         Redo existing code to support new question dialog syntax.
11938
11939         * dialog-msw.c (console_type_create_dialog_mswindows):
11940         We support new dialog console method.
11941
11942         * dialog-msw.c (syms_of_dialog_mswindows):
11943         * dialog-msw.c (vars_of_dialog_mswindows):
11944         New file dialog symbols, vars.
11945
11946         * dialog-x.c:
11947         * dialog-x.c (maybe_run_dbox_text_callback):
11948         * dialog-x.c (dbox_descriptor_to_widget_value):
11949         * dialog-x.c (x_make_dialog_box_internal):
11950         * dialog-x.c (console_type_create_dialog_x):
11951         Mule-ize entire file.
11952         Redo to support question dialog syntax.
11953         [6].
11954
11955         * dialog.c:
11956         * dialog.c (Fmake_dialog_box_internal):
11957         * dialog.c (syms_of_dialog):
11958         Kill old popup-dialog-box, replace with new primitive.
11959         Just call device method or signal error.
11960
11961         * eldap.c (Fldap_open):
11962         * eldap.c (Fldap_search_basic):
11963         * eldap.c (Fldap_add):
11964         * eldap.c (Fldap_modify):
11965         [1].
11966         [7].
11967
11968         * emacs.c:
11969         * emacs.c (make_arg_list_1):
11970         * emacs.c (make_arg_list):
11971         Mule-ize call to dll_init().
11972         [6].
11973         [8].
11974
11975         * emacs.c (make_argc_argv):
11976         * emacs.c (free_argc_argv):
11977         * emacs.c (init_cmdargs):
11978         * emacs.c (main_1):
11979         * emacs.c (Fkill_emacs):
11980         * emacs.c (Fdump_emacs):
11981         Update comments about what can be used in syms_* etc.
11982         Call init_win32() when necessary.
11983         Fix up MS Win dialog box in kill-buffer to actually work right.
11984         [7].
11985
11986         * eval.c:
11987         * eval.c (For):
11988         * eval.c (Fand):
11989         * eval.c (Fprogn):
11990         * eval.c (Fprog1):
11991         * eval.c (Fprog2):
11992         * eval.c (FletX):
11993         * eval.c (Flet):
11994         * eval.c (condition_case_3):
11995         * eval.c (Feval):
11996         * eval.c (function_argcount):
11997         * eval.c (funcall_lambda):
11998         [1].
11999
12000         * eval.c (type_error): New.
12001         * eval.c (maybe_type_error): New.
12002         * eval.c (continuable_type_error): New.
12003         * eval.c (maybe_continuable_type_error): New.
12004         * eval.c (type_error_with_frob): New.
12005         * eval.c (maybe_type_error_with_frob): New.
12006         * eval.c (continuable_type_error_with_frob): New.
12007         * eval.c (maybe_continuable_type_error_with_frob): New.
12008         New functions for use with structured errors.
12009
12010         * event-Xt.c:
12011         * event-Xt.c (x_event_to_emacs_event):
12012         Buttons are now modifiers too.
12013
12014         * event-Xt.c (emacs_Xt_current_event_timestamp):
12015         Implement new event method.
12016         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12017
12018         * event-msw.c:
12019         * event-msw.c (ntpipe_shove_writer): [5].
12020         * event-msw.c (mswindows_enqueue_mouse_button_event):
12021         * event-msw.c (mswindows_drain_windows_queue):
12022         * event-msw.c (mswindows_wnd_proc): [7].
12023         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12024         * event-msw.c (mswindows_modifier_state):
12025         Throughout: support new button modifiers.
12026
12027         * event-msw.c (emacs_mswindows_current_event_timestamp):
12028         Implement new event method.
12029         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12030
12031         * event-stream.c:
12032         * event-stream.c (event_stream_current_event_timestamp): New.
12033         * event-stream.c (maybe_kbd_translate): New functionality.
12034         * event-stream.c (vars_of_event_stream):
12035         Document new kbd-translate-table functionality.
12036
12037         * event-stream.c (Fcurrent_event_timestamp): New.
12038         New primitive for use in fabricated events.
12039         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12040
12041         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12042
12043         * events.c:
12044         * events.c (Fmake_event):
12045         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12046         [1].
12047         [9].
12048
12049         * events.c (format_event_object): fix gcc warnings.
12050
12051         * events.c (Fevent_timestamp): Document new primitives.
12052
12053         * events.c (TIMESTAMP_HALFSPACE): New.
12054
12055         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12056         comparing timestamps correctly (half-space algorithm).
12057
12058         * events.c (Fevent_modifier_bits): Doc fix.
12059
12060         * events.c (Fevent_modifiers): Major doc addition.
12061         * events.c (event_x_y_pixel_internal): Typo fix.
12062         * events.c (syms_of_events): Declare new primitives.
12063
12064         * events.h:
12065         Update long comment for button modifiers, timestamps.
12066
12067         * events.h (struct event_stream):
12068         New current_event_timestamp method.
12069
12070         * extents.c:
12071         * extents.c (extent_in_region_p):
12072         * extents.c (decode_extent):
12073         * extents.c (Fset_extent_parent):
12074         * extents.c (decode_map_extents_flags):
12075         Fix gcc warnings.
12076         [9].
12077
12078         * extents.c (struct extent_at_arg):
12079         * extents.c (decode_extent_at_flag):
12080         * extents.c (extent_at_mapper):
12081         * extents.c (extent_at_bytind):
12082         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12083         * extents.c (Fextents_at): New primitive. [9].
12084         * extents.c (symbol_to_glyph_layout): [9].
12085         Support new primitive `extents-at'.
12086
12087
12088         * extents.c (get_text_property_bytind):
12089         extent_at_bytind has another arg.
12090         [9].
12091
12092         * extents.c (syms_of_extents): New primitive.
12093
12094         * file-coding.c (Fmake_coding_system): [1].
12095         * file-coding.c (subsidiary_coding_system): fix gcc warning
12096         * file-coding.c (syms_of_file_coding): [2].
12097
12098         * fileio.c (Fexpand_file_name):
12099         * fileio.c (Fsysnetunam):
12100         * fileio.c (Ffile_exists_p):
12101         * fileio.c (Ffile_executable_p):
12102         * fileio.c (Fverify_visited_file_modtime):
12103         Clean up GCPROing.
12104
12105         * fileio.c (syms_of_fileio): [2].
12106
12107         * filelock.c (lock_file_1):
12108         * filelock.c (current_lock_owner):
12109         * filelock.c (lock_if_free):
12110         * filelock.c (lock_file):
12111         * filelock.c (unlock_file):
12112         Clean up GCPROing.
12113
12114         * fns.c (concat): Fix gcc warning.
12115
12116         * fns.c (Fmember):
12117         * fns.c (Fold_member):
12118         * fns.c (Fmemq):
12119         * fns.c (Fold_memq):
12120         * fns.c (memq_no_quit):
12121         * fns.c (Fassoc):
12122         * fns.c (Fold_assoc):
12123         * fns.c (Fassq):
12124         * fns.c (Fold_assq):
12125         * fns.c (assq_no_quit):
12126         * fns.c (Frassoc):
12127         * fns.c (Fold_rassoc):
12128         * fns.c (Frassq):
12129         * fns.c (Fold_rassq):
12130         * fns.c (rassq_no_quit):
12131         * fns.c (Fdelete):
12132         * fns.c (Fold_delete):
12133         * fns.c (Fdelq):
12134         * fns.c (Fold_delq):
12135         * fns.c (delq_no_quit):
12136         * fns.c (Fremassoc):
12137         * fns.c (Fremassq):
12138         * fns.c (remassq_no_quit):
12139         * fns.c (Fremrassoc):
12140         * fns.c (Fremrassq):
12141         * fns.c (remrassq_no_quit):
12142         * fns.c (Freverse):
12143         * fns.c (mapcar1):
12144         [1].
12145
12146         * frame-msw.c (mswindows_init_frame_1):
12147         * frame-msw.c (mswindows_delete_frame):
12148         Register popups with dialog code so keyboard traversing works.
12149
12150         * frame-tty.c (tty_raise_frame_no_select): [1].
12151
12152         * frame-x.c:
12153         * frame-x.c (x_set_frame_text_value):
12154         * frame-x.c (x_set_frame_properties):
12155         * frame-x.c (x_create_widgets):
12156         [7].
12157
12158         * frame.c:
12159         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12160
12161         * frame.h (wrap_frame): New.
12162         Macro like wrap_device.
12163
12164         * general.c:
12165         * general.c (SYMBOL):
12166         * general.c (syms_of_general):
12167         Major reorg.  This is now just a wrapper and symbols themselves
12168         are listed in general-slots.h.
12169
12170         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12171         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12172
12173         * glyphs-msw.c (mswindows_native_layout_instantiate):
12174         Add DS_CONTROL so keyboard traversal will work.
12175
12176         * glyphs-widget.c:
12177         * glyphs-widget.c (syms_of_glyphs_widget):
12178         Move some symbols to general-slots.h.
12179
12180         * glyphs-x.c:
12181         * glyphs-x.c (xbm_instantiate_1):
12182         * glyphs-x.c (x_xbm_instantiate):
12183         * glyphs-x.c (x_xface_instantiate):
12184         * glyphs-x.c (autodetect_instantiate):
12185         * glyphs-x.c (cursor_font_instantiate):
12186         * glyphs-x.c (x_update_widget):
12187         * glyphs-x.c (x_widget_instantiate):
12188         * glyphs.c (bitmap_to_lisp_data):
12189         * glyphs.c (pixmap_to_lisp_data):
12190         [7].
12191
12192         * glyphs.c (syms_of_glyphs):
12193         [2].
12194
12195         * gui-x.c:
12196         * gui-x.c (print_widget_value):
12197         * gui-x.c (menu_separator_style_and_to_external):
12198         * gui-x.c (add_accel_and_to_external):
12199         * gui-x.c (button_item_to_widget_value):
12200         * gui-x.c (gui_items_to_widget_values_1):
12201         * gui-x.c (gui_items_to_widget_values):
12202         * gui-x.c (syms_of_gui_x):
12203         * gui-x.c (vars_of_gui_x):
12204         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12205         [9].
12206
12207         * gui-x.h:
12208         Muleize, prototype changes matching gui-x.c.
12209
12210         * gui.c:
12211         * gui.c (separator_string_p):
12212         * gui.c (gui_item_add_keyval_pair):
12213         * gui.c (make_gui_item_from_keywords_internal):
12214         * gui.c (signal_too_long_error):
12215         * gui.c (parse_gui_item_tree_item):
12216         * gui.c (syms_of_gui):
12217         * gui.c (vars_of_gui):
12218         * gui.h:
12219         menu-no-selection-hook moved here (used by MSWin).
12220         Move some symbols to general-slots.h.
12221         [6].
12222         [9].
12223
12224         * insdel.c (get_buffer_pos_char):
12225         * insdel.c (get_buffer_range_char):
12226         Add GC comments.
12227
12228         * keymap.c (keymap_lookup_directly):
12229         * keymap.c (keymap_store):
12230         * keymap.c (ensure_meta_prefix_char_keymapp):
12231         * keymap.c (describe_map):
12232         * keymap.h:
12233         Support new button modifiers.
12234
12235         * lisp-disunion.h (wrap_object):
12236         * lisp-disunion.h (XSETOBJ):
12237         Rename make_obj to wrap_object.
12238
12239         * lisp-union.h:
12240         * lisp-union.h (make_int):
12241         * lisp-union.h (make_char):
12242         Support wrap_object.
12243
12244         * lisp.h:
12245         * lisp.h (LIST_LOOP):
12246         * lisp.h (EXTERNAL_LIST_LOOP):
12247         * lisp.h (LIST_LOOP_2):
12248         * lisp.h (EXTERNAL_LIST_LOOP_1):
12249         * lisp.h (EXTERNAL_LIST_LOOP_2):
12250         * lisp.h (EXTERNAL_LIST_LOOP_3):
12251         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12252         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12253         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12254         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12255         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12256         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12257         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12258         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12259         * lisp.h (struct Lisp_Symbol):
12260         * lisp.h (maybe_continuable_error_with_frob):
12261         Fix up section comments.
12262         Add new types for char to indicate usage.
12263         Delete symbols auto-generated from general-slots.h.
12264         Add prototypes for structured error functions.
12265         Add long comments describing looping macros and change interface
12266         so that lvalues are automatically declared.
12267         Add NO_DECLARE macro in case callers want to declare lvalues
12268         themselves.
12269
12270         * lread.c (read_syntax_error):
12271         * lread.c (continuable_read_syntax_error):
12272         * lread.c (read_structure):
12273         * lread.c (sequence_reader):
12274         * lread.c (read_list_conser):
12275         * lread.c (read_compiled_function):
12276         Rename syntax_error and continuable_syntax_error to avoid clash
12277         with same-named structured error functions.
12278
12279         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12280         * menubar-msw.c (populate_menu_add_item):
12281         * menubar-msw.c (populate_or_checksum_helper):
12282         [5].
12283         [9].
12284
12285         * menubar-x.c:
12286         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12287         Mule-ize whole file.
12288
12289         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12290
12291         * mule-charset.c (Fmake_charset):
12292         * mule-wnnfns.c (Fwnn_set_param):
12293         [1].
12294
12295         * ntproc.c (create_child):
12296         * ntproc.c (Fwin32_set_current_locale):
12297         Add comments portending doom.
12298
12299         * objects-msw.c:
12300         * objects-msw.c (old_font_enum_callback_2):
12301         * objects-msw.c (font_enum_callback_1):
12302         * objects-msw.c (mswindows_enumerate_fonts):
12303         [5].
12304
12305         * objects-x.c:
12306         * objects-x.c (allocate_nearest_color):
12307         * objects-x.c (x_parse_nearest_color):
12308         * objects-x.c (x_initialize_color_instance):
12309         * objects-x.c (x_print_color_instance):
12310         * objects-x.c (x_finalize_color_instance):
12311         * objects-x.c (x_valid_color_name_p):
12312         * objects-x.c (x_initialize_font_instance):
12313         * objects-x.c (x_print_font_instance):
12314         * objects-x.c (valid_x_font_name_p):
12315         * objects-x.c (truename_via_FONT_prop):
12316         * objects-x.c (truename_via_random_props):
12317         * objects-x.c (truename_via_XListFonts):
12318         * objects-x.c (x_font_truename):
12319         * objects-x.c (x_font_instance_truename):
12320         * objects-x.c (x_font_instance_properties):
12321         * objects-x.c (x_list_fonts):
12322         * objects-x.c (x_find_charset_font):
12323         Mule-ize entire file.
12324         [7].
12325
12326         * objects-x.h:
12327         Mule-verify.
12328
12329         * print.c:
12330         * print.c (std_handle_out_external):
12331         * print.c (debug_print_no_newline):
12332         * print.c (syms_of_print):
12333         Output to all debugger kinds in debug-print.
12334         Fix console-output code under MSWin to actually work.
12335
12336         * process-nt.c (send_signal):
12337         * process-nt.c (nt_create_process):
12338         Use newer Unicode macros.
12339
12340         * process-unix.c (unix_create_process):
12341         * process-unix.c (unix_canonicalize_host_name):
12342         * process-unix.c (unix_open_network_stream):
12343         [7].
12344
12345         * scrollbar-x.c:
12346         Mule-verify.
12347
12348         * search.c (syms_of_search):
12349         [2].
12350
12351         * select-msw.c (mswindows_destroy_selection):
12352         Use LIST_LOOP_2.
12353
12354         * select-x.c (symbol_to_x_atom):
12355         [7].
12356
12357         * select.c (syms_of_select):
12358         [2].
12359
12360         * sound.c (Fplay_sound_file):
12361         [7].
12362
12363         * specifier.c:
12364         * specifier.c (decode_specifier_type):
12365         * specifier.c (Fvalid_specifier_locale_type_p):
12366         * specifier.c (check_valid_locale_or_locale_type):
12367         * specifier.c (decode_locale):
12368         * specifier.c (decode_locale_type):
12369         * specifier.c (decode_locale_list):
12370         * specifier.c (check_valid_domain):
12371         * specifier.c (decode_specifier_tag_set):
12372         * specifier.c (Fcanonicalize_tag_set):
12373         * specifier.c (Fdefine_specifier_tag):
12374         * specifier.c (Fspecifier_tag_predicate):
12375         * specifier.c (check_valid_inst_list):
12376         * specifier.c (check_valid_spec_list):
12377         * specifier.c (decode_how_to_add_specification):
12378         * specifier.c (check_modifiable_specifier):
12379         * specifier.c (specifier_add_spec):
12380         * specifier.c (boolean_validate):
12381         * specifier.c (display_table_validate):
12382         [9].
12383
12384         * specifier.c (syms_of_specifier):
12385         Move some symbols to general-slots.h.
12386         [2].
12387
12388         * symbols.c:
12389         * symbols.c (Fmapatoms):
12390         * symbols.c (Fapropos_internal):
12391         Add GCPROs.
12392
12393         * symbols.c (set_default_buffer_slot_variable):
12394         * symbols.c (set_default_console_slot_variable):
12395         [1].
12396
12397         * symbols.c (defsymbol_massage_name_1):
12398         * symbols.c (defkeyword_massage_name):
12399         * symbols.c (deferror_1):
12400         * symbols.c (deferror):
12401         * symbols.c (deferror_massage_name_and_message):
12402         * symeval.h:
12403         * symeval.h (DEFSYMBOL):
12404         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12405
12406         * symbols.c (syms_of_symbols):
12407         [2].
12408
12409         * symsinit.h:
12410         * symsinit.h (init_win32): New.
12411         Also new is syms_of_dialog_mswindows.
12412
12413         * syswindows.h:
12414         Add new Unicode macros, missing Cygwin wide-char functions,
12415         convenience conversion macros for Qmswindows_tstr, macros for
12416         encapsulating required MSWin <-> Cygwin filename conversions,
12417         prototype for dynamically-extracted (not in NT 3.51) functions.
12418
12419         * toolbar-x.c:
12420         Mule-verify.
12421
12422         * tooltalk.c (Fadd_tooltalk_message_arg):
12423         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12424         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12425         [7].
12426
12427         * tooltalk.c (syms_of_tooltalk):
12428         [2].
12429
12430         * unexnt.c:
12431         * unexnt.c (unexec):
12432         Fix up headers, declaration of unexec() to be more standard.
12433
12434 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12435
12436         * offix.h: Revert change to guard macros - they're used in offix.c!
12437
12438 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12439
12440         * lisp.h: Defsubred Fdelete.
12441
12442         * console-msw.h:  (msprinter_default_printer): Added.
12443
12444         * console-msw.c (msprinter_canonicalize_console_connection):
12445         (msprinter_canonicalize_device_connection): Added.
12446
12447         * device-msw.c (msprinter_default_printer):
12448         (Fmswingows_get_default_printer):
12449         (signal_enum_priner_error):
12450         (Fmswingows_printer_list): Added.
12451
12452 2000-07-19  Martin Buchholz <martin@xemacs.org>
12453
12454         * XEmacs 21.2.35 is released.
12455
12456 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12457
12458         * select-x.c (x_handle_selection_request):
12459         Text selected in xemacs and pasted into xterm failed to appear.
12460         Spelling fixes and cosmetic changes.
12461
12462 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12463
12464         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12465         XEmacs frame (fix for doubling chars in dialog boxes).
12466
12467 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12468
12469         * select.c (select_convert_in, select_convert_out):
12470         Don't call intern() every time.
12471
12472         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12473         * select.c (vars_of_select): Initialise them.
12474
12475 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12476
12477         * select.c (selection-coercible-types): New.
12478
12479         * select.c (own-selection-internal):
12480         * select.c (get-selection-internal):
12481         MULE bug fix - these should default to COMPOUND_TEXT and not
12482         STRING for MULE. I think.
12483
12484         * select.c (select_convert_out): Use selection-coercible-types
12485         to find types that we can attempt to perform coercions on.
12486
12487 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12488
12489         * mule-wnnfns.c:
12490         * mule-canna.c:
12491         Add coding: cookie to identify encoding.
12492
12493         * mule-canna.c (CANNA_mode_keys): make static.
12494         Use proper prototypes, even for functions of no arguments.
12495         Remove external prototype for Fding().
12496
12497         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12498
12499         * select.c (syms_of_select): Add missing DEFSUBR.
12500
12501 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12502
12503         * select.c (get_selection_internal, own_selection_internal):
12504         Make the type default to STRING, rather than placing a nil type
12505         into Vselection_alist.
12506
12507 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12508
12509         * gpmevent.c (tty_selection_exists_p):
12510         * gpmevent.c (tty_own_selection):
12511         Updated parameter lists.
12512
12513 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12514
12515         * select.h (selection-alist): Removed declaration.
12516
12517         * select.h (get_local_selection):
12518         * select.c (get_local_selection):
12519         Made static.
12520
12521         * select.h (convert_selection): Removed declaration.
12522         * select.c (convert_selection): Removed.
12523         This function belongs in Lisp.
12524
12525         * select.h (select_convert_in): Declare.
12526         * select.h (select_convert_out): Declare.
12527         * select.c (select_convert_in): New.
12528         * select.c (select_convert_out): New.
12529         New conversion functions for other files to call.
12530
12531         * select.h (select_notify_buffer_kill): Declare.
12532         * select.c (select_notify_buffer_kill): New.
12533         New functions that get called from kill-buffer.
12534
12535         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12536         X-specific lisp code.
12537
12538         * select.h: Declare some of the lisp-visible functions for
12539         external use.
12540
12541         * select.c (clean_local_selection_data): Removed. This was
12542         a disgusting function, and previously should have been in
12543         select-x.c in any case. The functionality is now provided
12544         in select-convert-from-integer (select.el).
12545
12546         * select.c (available-selection-types): Fixed stupidity where
12547         INTEGER and ATOM got added twice. Also add STRING when we see an
12548         extent.
12549
12550         * select.c (get-selection-internal): Removed symbol stripping. No
12551         longer causes conversion when data comes from the internal cache.
12552
12553         * select.c (syms_of_select): Added new functions.
12554
12555         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12556         error checking - previously this called abort!
12557
12558         * select-x.c (x_own_selection): Changed comment.
12559
12560         * select-x.c (x_handle_selection_request): Use select_convert_out.
12561         Don't mess with selection-alist; it's an internal variable of select.c.
12562
12563         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12564
12565         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12566         rather than messing with selection-alist.
12567
12568         * select-msw.c (mswindows_get_foreign_selection):
12569         Use TO_INTERNAL_FORMAT rather than hacking.
12570
12571 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12572
12573         * process-unix.c (unix_open_multicast_group):
12574         (unix_open_multicast_group): Remove useless casts.
12575
12576 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12577
12578         * sound.c (Fplay_sound): Fix `unused variable' warning.
12579
12580         * emacs.c (main): Use correct type for _environ on SCO5.
12581
12582 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12583
12584         * console.h (own_selection_method):
12585         * console.h (selection_exists_p_method):
12586         * console.h (available_selection_types_method): New.
12587         * console.h (register_selection_data_type_method): New.
12588         * console.h (selection_data_type_name): New.
12589
12590         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12591         function & alist to track GlobalAlloc()'d handles that need
12592         releasing when the clipboard data gets replaced or emptied.
12593
12594         * event-msw.c (mswindows_wnd_proc): Call it.
12595
12596         * lisp.h, general.c (Qappend): New symbol representing a
12597         `how-to-add' mode.
12598
12599         * select.c (own-selection-internal):
12600         * select.c (selection-exists-p):
12601         * select.c (available-selection-types): New.
12602         * select.c (register-selection-data-type): New.
12603         * select.c (selection-data-type-name): New.  New functions to deal
12604         with device-specific selection data formats.
12605         * select.c (selection-converter-out-alist): Renamed.
12606         * select.c (selection-converter-in-alist): New.
12607         * select.c (selection-appender-alist): New.  Added new alists.
12608         * select.c (syms_of_select, vars_of_select): Added new symbols &
12609         variables.
12610         * select.c (get_local_selection): Split.
12611         * select.c: Removed spurious type checking - selections may now be
12612         of any type, not just strings.
12613         * select.c (own-selection-internal):
12614
12615         * select.h, select.c (convert_selection): New. Created
12616         convert_selection() function based on get_local_selection().
12617         * select.h, select.c (QCF_*): New symbols representing mswindows
12618         clipboard formats.
12619         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12620         symbols representing `how-to-add' modes.
12621
12622         * select-msw.c (x_sym_p): New.
12623         * select-msw.c (symbol_to_ms_cf): New.
12624         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12625         symbols & clipboard formats. Can also handle string names.
12626         * select-msw.c (mswindows_own_selection):
12627         * select-msw.c (mswindows_selection_exists_p):
12628         Added `data-type' parameter. Use it.
12629         * select-msw.c (mswindows_available_selection_types): New.
12630         * select-msw.c (mswindows_register_selection_data_type): New.
12631         * select-msw.c (mswindows_selection_data_type_name): New.
12632         * select-msw.c (mswindows_own_selection):
12633         * select-msw.c (mswindows_get_foreign_selection):
12634         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12635         * select-msw.c (console_create_select_mswindows): Added new methods.
12636         * select-msw.c (mswindows_destroy_selection): New.
12637         * select-msw.c (Vhandle_alist): New list.
12638         * select-msw.c (mswindows_own_selection):
12639
12640         * select-x.c (x_own_selection):
12641         * select-x.c (x_selection_exists_p):
12642         * select-x.c: Added some comments about maybe using new
12643         functionality.
12644         * select-x.c (x_own_selection):
12645
12646         * specifier.c: Remove definition of Qappend (now in general.c)
12647         * specifier.c (syms_of_specifier): Remove Qappend.
12648
12649 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12650
12651         * config.h.in: Add socklen_t.
12652
12653         * s/decosf4-0.h: No special compiler flags needed or desired.
12654         In particular, undefine _BSD for DEC OSF 4.0.
12655
12656 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12657
12658         * redisplay-msw.c (msprinter_frame_output_end): Added.
12659         (console_type_create_redisplay_mswindows): Referred the above.
12660
12661         * frame.c (setup_frame_without_minibuffer): Do not create a
12662         default minibuffer frame on a printer device.
12663
12664         * frame-msw.c (apply_dc_geometry): Added.
12665         (msprinter_start_page):
12666         (msprinter_init_frame_3):
12667         (msprinter_eject_page): Use it.
12668
12669         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12670         and removed residual duplex and orientation properties.
12671
12672 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12673
12674         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12675
12676         * unexalpha.c: Remove system prototypes from C sources!
12677
12678 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12679
12680         * eval.c: Remove references to M-x edit-options in DEFUNs for
12681         `defvar' and `defconst'.
12682
12683 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12684
12685         * config.h.in: Remove SMART_INCLUDE hackery.
12686
12687         PostgreSQL hacking:
12688         * config.h.in: Don't use SMART_INCLUDE.
12689
12690         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12691         * inline.c: Simply #include "postgresql.h"
12692         * postgresql.c:
12693         - Don't use SMART_INCLUDE
12694         - Use simply "const".
12695         - Use standard doc string conventions.
12696         - Use correct type for result of PQstatus.
12697
12698 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12699
12700         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12701
12702         C++ compilation changes.
12703         * config.h.in (EXTERN_C): Define.
12704         * config.h.in (not): This is also a C++ keyword.
12705         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12706         * cm.c: Use EXTERN_C.
12707         * redisplay-tty.c: Use EXTERN_C.
12708         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12709
12710 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12711
12712         * general.c: Remove duplicate definition for Qfunction.
12713
12714 2000-07-08  Ben Wing  <ben@xemacs.org>
12715
12716         * device-msw.c (msprinter_init_device):
12717         * device-msw.c (sync_printer_with_devmode):
12718         * device-msw.c (handle_devmode_changes):
12719         * device-msw.c (print_dialog_worker):
12720         * device-msw.c (Fmsprinter_apply_settings):
12721         * device-msw.c (hash_devmode):
12722         * device-msw.c (Fmsprinter_settings_despecialize):
12723         use Qmswindows_tstr, not Qctext.
12724
12725         * vm-limit.c (check_memory_limits):
12726         avoid infinite loop printing warning messages.
12727
12728 2000-07-05  Craig Lanning  <lanning@scra.org>
12729
12730         * Makefile.in.in: Add support for including the Windows resources
12731         when building with the cygwin and mingw targets.
12732
12733         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12734         not set or not correct.
12735         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12736         (init_initial_directory): Don't try to use $PWD on the
12737         WIN32_NATIVE target.
12738
12739         * s\cygwin32.h:
12740         [[Add -mwindows to eliminate console window.]] not required --ben
12741         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12742         (MAIL_USE_POP): removed; now handled by configure.
12743
12744         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12745         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12746         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12747         (MAIL_USE_POP): removed; now handled by configure.
12748         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12749         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12750         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12751         constant string.
12752         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12753         up from <winsock.h> via systime.h.
12754         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12755         (getpagesize): from Dan Holmsand, added.
12756         Added #endif which was left dangling by Ben's mega patch; added
12757         comment to help prevent this in the future.
12758
12759         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12760
12761 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12762
12763         * console-msw.h (struct mswindows_device): Removed unnecessary
12764         cached device geometry values.
12765         Added update_tick and an accessor macro.
12766         (Lisp_Devmode): Added lrecord declaration.
12767         (struct msprinter_device): Contain devmode as a Lisp object.
12768         Added mswindows_get_selected_frame_hwnd();
12769
12770         * console.h (struct console_methods): Indentation nitpicking.
12771
12772         * device-msw.c (mswindows_init_device): Do not initialize geometry
12773         cache. Initialize update tick.
12774         (mswindows_device_system_metrics): Ask the device for its geometry.
12775         (global_free_2_maybe):
12776         (devmode_to_hglobal):
12777         (handle_printer_changes):
12778         (ensure_not_printing):
12779         (print_dialog_worker):
12780         (Fmsprinter_print_setup_dialog):
12781         (Fmsprinter_print_dialog):
12782         (plist_get_margin):
12783         (plist_set_margin):
12784         (Fmsprinter_page_setup_dialog): Added functions.
12785         (sync_printer_with_devmode):
12786         (handle_devmode_changes):
12787         (Fmsprinter_get_settings):
12788         (Fmsprinter_select_settings):
12789         (Fmsprinter_apply_settings):
12790         (allocate_devmode):
12791         (Fmsprinter_settings_copy):
12792         (Fmsprinter_settings_despecialize):
12793         (print_devmode):
12794         (finalize_devmode):
12795         (equal_devmode):
12796         (hash_devmode): Added functions
12797         (syms_of_device_mswindows): Init devmode lrecord class.
12798
12799         * device.h: Added an exfun for find-device.
12800
12801         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12802         geometry; although, recreate the device compatible DC.
12803
12804         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12805         (msprinter_init_frame_3):
12806         (msprinter_frame_property):
12807         (msprinter_internal_frame_property_p):
12808         (msprinter_frame_properties):
12809         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12810         print job properties (will move to device settings).
12811
12812         * lisp.h: Added symbols.
12813
12814         * general.c (syms_of_general): Declared them.
12815
12816         * hash.c (string_hash): Added.
12817
12818         * lrecord.h (lrecord_type): Added devmode lrecord type.
12819
12820 2000-07-02  Mike Sperber <mike@xemacs.org>
12821
12822         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12823         FreeBSD 4.0.
12824
12825 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12826
12827         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12828         integer.
12829
12830 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12831
12832         * data.c (Fstring_to_number): Don't recognize floating point if
12833         base is not 10.
12834
12835 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12836
12837         * glyphs-widget.c (tab_control_query_geometry):
12838         (widget_query_geometry):
12839         (button_query_geometry):
12840         * glyphs.c (text_query_geometry):
12841         Enforce type correctness.
12842
12843 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12844
12845         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12846         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12847
12848 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12849
12850         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12851         conflicts with gcc's fixincluded version of FOO.h.
12852
12853         * glyphs.h (image_instance_geometry): Remove trailing `,'
12854
12855 2000-06-08  Mike Alexander  <mta@arbortext.com>
12856
12857         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12858         (shove_thread): Don't write the same output twice
12859         (make_ntpipe_output_stream): Increase priority of shove thread
12860         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12861         chance to run
12862         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12863         it.
12864
12865 2000-06-12  Ben Wing  <ben@xemacs.org>
12866
12867         * s\mingw32.h (sigset):
12868         * s\windowsnt.h (sigset):
12869         rename msw_ to mswindows_ for consistency with general convention.
12870
12871 2000-06-12  Ben Wing  <ben@xemacs.org>
12872
12873         * console-msw.c:
12874         * console-msw.c (mswindows_get_console_hwnd):
12875         * console-msw.c (mswindows_ensure_console_allocated):
12876         * console-msw.c (mswindows_hide_console):
12877         * console-msw.c (mswindows_show_console):
12878         * console-msw.c (mswindows_ensure_console_buffered):
12879         * console-msw.c (mswindows_output_console_string):
12880         * console-msw.c (mswindows_windows9x_p):
12881         * console-msw.h:
12882         * device-msw.c (mswindows_get_workspace_coords):
12883         * device-msw.c (mswindows_device_system_metrics):
12884         * dialog-msw.c (mswindows_popup_dialog_box):
12885         * event-msw.c (mswindows_wnd_proc):
12886         * frame-msw.c (mswindows_size_frame_internal):
12887         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12888         * menubar-msw.c (displayable_menu_item):
12889         * menubar-msw.c (mswindows_char_is_accelerator):
12890         * nt.c:
12891         * nt.c (mswindows_sigset):
12892         * nt.c (mswindows_sigrelse):
12893         * nt.c (mswindows_sigpause):
12894         * nt.c (mswindows_raise):
12895         * nt.c (timer_proc):
12896         * ntproc.c:
12897         * ntproc.c (find_child_console):
12898         * ntproc.c (sys_kill):
12899         * print.c:
12900         * print.c (std_handle_out_external):
12901         * process-nt.c (find_child_console):
12902         * process-nt.c (send_signal_the_95_way):
12903         * process-nt.c (ensure_console_window_exists):
12904         * process-nt.c (nt_create_process):
12905         * syssignal.h:
12906         rename msw_ to mswindows_ for consistency with general convention.
12907
12908         * emacs.c:
12909         * dumper.c:
12910         include nt.h, not syswindows.h.
12911
12912         * nt.c (mswindows_fstat):
12913         * nt.c (mswindows_stat):
12914         prefix mswindows_ instead of attempting to directly override the
12915         library functions.  fix declarations.
12916
12917         * nt.h:
12918         include syswindows.h.  move some sysdep.h stuff here.
12919
12920         * ntheap.h:
12921         include syswindows.h, not <windows.h>.
12922
12923         * ntplay.c:
12924         clean up headers.
12925
12926         * sysdep.c:
12927         clean up headers.
12928
12929         * sysdep.c (sys_fstat):
12930         * sysdep.c (sys_stat):
12931         call mswindows versions when appropriate.
12932
12933         * sysdep.h:
12934         move mswin decls to nt.h.
12935
12936         * syswindows.h:
12937         add long comment describing appropriate use of the various windows
12938         headers.
12939
12940 2000-06-11  Ben Wing  <ben@xemacs.org>
12941
12942         * device-x.c: Correct doc string for sixth arg of x-get-resource.
12943
12944 2000-06-10  Ben Wing  <ben@xemacs.org>
12945
12946         * Makefile.in.in (release):
12947         Correction to make sure xemacs.exe always dumped when correct.
12948
12949         * alloca.c:
12950         * balloon_help.c:
12951         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12952
12953         * buffer.c (set_buffer_internal):
12954         [[[[2]]]]: Remove HAVE_FEP code.
12955
12956         * buffer.c (init_initial_directory):
12957         [3].
12958
12959         * bytecode.c:
12960         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12961         individual files.
12962
12963         * callproc.c:
12964         * callproc.c (call_process_cleanup):
12965         * callproc.c (Fold_call_process_internal):
12966         * callproc.c (child_setup):
12967         * callproc.c (getenv_internal):
12968         * callproc.c (init_callproc):
12969         * callproc.c (vars_of_callproc):
12970         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12971         __CYGWIN32__ -> CYGWIN.
12972         DOS_NT -> WIN32_NATIVE.
12973         Remove MSDOS support/references, converting to WIN32_NATIVE
12974           where correct.
12975         __MINGW32__ -> MINGW.
12976         Fix windows.h includes.
12977         Remove bogus HAVE_NTGUI.
12978
12979         * config.h.in:
12980         [2].
12981
12982         * console-msw.c:
12983         mswindows_message_outputted added for use in allowing startup
12984         errors on the console to be seen.
12985
12986         * console-msw.c (msw_ensure_console_allocated):
12987         * console-msw.c (msw_output_console_string):
12988         * console-msw.c (DHEADER):
12989         * console-msw.c (DOPAQUE_DATA):
12990         * console-msw.c (DEVENT):
12991         * console-msw.c (DCONS):
12992         * console-msw.c (DCONSCDR):
12993         * console-msw.c (DSTRING):
12994         * console-msw.c (DVECTOR):
12995         * console-msw.c (DSYMBOL):
12996         * console-msw.c (DSYMNAME):
12997         Fix warnings.
12998
12999         * console-stream.c (stream_init_console):
13000         Fix text/binary problems.
13001
13002         * device-msw.c:
13003         * device-msw.c (mswindows_finish_init_device):
13004         * device-msw.c (mswindows_delete_device):
13005         [1].
13006
13007         * device.c (handle_asynch_device_change):
13008         [3].
13009
13010         * dgif_lib.c:
13011         * dgif_lib.c (DGifOpenFileName):
13012         * dgif_lib.c (DGifOpenFileHandle):
13013         * dgif_lib.c (DGifGetLine):
13014         * dgif_lib.c (DGifGetPixel):
13015         Added config.h/lisp.h, fix up includes.
13016         [1].
13017
13018         * dired-msw.c:
13019         [4].
13020
13021         * dired.c:
13022         * dired.c (file_name_completion):
13023         * dired.c (Ffile_attributes):
13024         * dired.c (syms_of_dired):
13025         [1].
13026
13027         * dumper.c:
13028         * dumper.c (pdump_file_unmap):
13029         * dumper.c (pdump_load):
13030         [1].
13031
13032         * editfns.c:
13033         * editfns.c (Ftemp_directory):
13034         * editfns.c (user_login_name):
13035         * editfns.c (Fuser_real_login_name):
13036         * editfns.c (get_home_directory):
13037         [1].
13038
13039         * elhash.c (finish_marking_weak_hash_tables):
13040         [[[[5]]]]: Fix GCC warnings.
13041
13042         * emacs.c:
13043         * emacs.c (mswindows_handle_hardware_exceptions):
13044         * emacs.c (make_arg_list_1):
13045         * emacs.c (main_1):
13046         * emacs.c (Fkill_emacs):
13047         * emacs.c (Fdump_emacs):
13048         [1].
13049         Fix problems with nested crashes, add long comment.
13050
13051         * event-Xt.c (init_event_Xt_late):
13052         [1].
13053
13054         * event-msw.c:
13055         * event-msw.c (mswindows_dde_callback):
13056         * event-msw.c (mswindows_handle_sticky_modifiers):
13057         * event-msw.c (mswindows_wnd_proc):
13058         [1].
13059         [5].
13060
13061         * events.c (character_to_event):
13062         [1].
13063
13064         * fileio.c:
13065         * fileio.c (Ffile_name_directory):
13066         * fileio.c (Ffile_name_nondirectory):
13067         * fileio.c (directory_file_name):
13068         * fileio.c (Fexpand_file_name):
13069         * fileio.c (Fsubstitute_in_file_name):
13070         * fileio.c (Ffile_name_absolute_p):
13071         * fileio.c (check_executable):
13072         * fileio.c (Ffile_readable_p):
13073         * fileio.c (Ffile_accessible_directory_p):
13074         * fileio.c (Ffile_modes):
13075         * fileio.c (Funix_sync):
13076         * fileio.c (vars_of_fileio):
13077         [1]. [4].
13078
13079         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13080
13081         Expand getdefdir defn.
13082         Fix bogus rename() comment.
13083
13084         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13085         to use standard XEmacs include files, e.g. sysfile.h, rather
13086         than system-specific includes.
13087
13088         * fns.c:
13089         * fns.c (Fsubseq):
13090         [5]. [6].
13091
13092         * frame.c (vars_of_frame):
13093         [1].
13094
13095         * getloadavg.c:
13096         * getloadavg.c (getloadavg):
13097         [1]. [6].
13098         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13099         (We don't use it elsewhere in the code; just add a comment.)
13100
13101         * gif_io.c:
13102         [6].
13103         Add config.h.
13104
13105         * glyphs-msw.c:
13106         * glyphs-msw.c (mswindows_resource_instantiate):
13107         [1].
13108
13109         * glyphs-x.c (x_native_layout_instantiate):
13110         [5].
13111
13112         * gui-msw.c (Fmswindows_shell_execute):
13113         [1].
13114
13115         * insdel.c:
13116         [4].
13117
13118         * lisp.h:
13119         [4]. [5].
13120
13121         * lread.c (locate_file_in_directory_mapper):
13122         [1].
13123
13124         * lstream.c:
13125         [4].
13126
13127         * mem-limits.h:
13128         * mem-limits.h (get_lim_data):
13129         [1].
13130
13131         * menubar-msw.c:
13132         [4].
13133
13134         * ndir.h:
13135         [1].
13136
13137         * nt.c:
13138         * nt.c (getwd):
13139         * nt.c (closedir):
13140         * nt.c (rva_to_section):
13141         * nt.c (mswindows_executable_type):
13142         [1]. [6].
13143         Fix closedir() defn.
13144
13145         * nt.h:
13146         [[[[8]]]]: *_OK defs moved to sysfile.h.
13147
13148         * ntproc.c:
13149         [6]. [7].
13150
13151         * objects-x.c:
13152         [4].
13153
13154         * print.c:
13155         * print.c (std_handle_out_external):
13156         [1]. [4].
13157
13158         * process-nt.c:
13159         * process-nt.c (nt_create_process):
13160         [6].
13161         try to fix process quoting somewhat.
13162
13163         * process-unix.c (unix_create_process):
13164         [1].
13165
13166         * process.c:
13167         * process.c (vars_of_process):
13168         Add Vnull_device.
13169
13170         * process.h:
13171         [1].
13172
13173         * realpath.c:
13174         * realpath.c (xrealpath):
13175         [1].
13176
13177         * redisplay-tty.c (init_tty_for_redisplay):
13178         [3].
13179
13180         * redisplay.c:
13181         [4]. [6].
13182
13183         * scrollbar-msw.c:
13184         [4].
13185
13186         * sheap.c:
13187         * sheap.c (more_static_core):
13188         * sheap.c (report_sheap_usage):
13189         [5]. [6].
13190
13191         * signal.c:
13192         * signal.c (alarm_signal):
13193         [1]. [6].
13194
13195         * sound.c:
13196         [6].
13197
13198         * strftime.c:
13199         * strftime.c (zone_name):
13200         [1]. [5].
13201
13202         * symsinit.h (init_sunpro):
13203         [1].
13204
13205         * syscommctrl.h:
13206         commctrl.h not in Cygwin b20.1.
13207
13208         * sysdep.c:
13209         * sysdep.c (endif):
13210         * sysdep.c (sys_subshell):
13211         * sysdep.c (init_baud_rate):
13212         * sysdep.c (emacs_get_tty):
13213         * sysdep.c (emacs_set_tty):
13214         * sysdep.c (tty_init_sys_modes_on_device):
13215         * sysdep.c (init_system_name):
13216         * sysdep.c (sys_open):
13217         * sysdep.c (interruptible_open):
13218         * sysdep.c (sys_fopen):
13219         * sysdep.c (sys_mkdir):
13220         * sysdep.c (sys_rename):
13221         * sysdep.c (get_process_times_1):
13222         [1]. [6].
13223
13224         * sysdep.h:
13225         [1].
13226
13227         * sysdir.h:
13228         * sysdir.h (DIRENTRY_NONEMPTY):
13229         [1]. [6].
13230
13231         * sysdll.c (dll_init):
13232         * sysdll.h:
13233         [1].
13234
13235         * sysfile.h:
13236         [1]. [6]. [8].
13237         added text/binary defs.
13238
13239         * sysfloat.h:
13240         [1].
13241
13242         * sysproc.h:
13243         * sysproc.h (EDESTADDRREQ):
13244         * sysproc.h (poll_fds_for_input):
13245         [1]. [6].
13246
13247         * syspwd.h:
13248         [6].
13249
13250         * syssignal.h:
13251         [1].
13252
13253         * systime.h:
13254         [1]. [6].
13255
13256         * systty.h:
13257         [1].
13258
13259         * syswindows.h:
13260         [1].
13261         Always define WIN32_LEAN_AND_MEAN.
13262
13263         * unexcw.c (unexec):
13264         [5].
13265
13266         * unexec.c:
13267         * unexec.c (copy_text_and_data):
13268         * unexec.c (adjust_lnnoptrs):
13269         [1].
13270
13271         * unexnt.c:
13272         * unexnt.c (_start):
13273         [1].
13274
13275 2000-06-07  Ben Wing  <ben@xemacs.org>
13276
13277         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13278         was used only as a model.  We've long since extracted any useful
13279         logic or code out of this. (I just did an exhaustive search.)
13280
13281         * s\msdos.h: Removed.
13282
13283         * s\windows95.h: Removed.
13284
13285 2000-06-10  Ben Wing  <ben@xemacs.org>
13286
13287         * s\cygwin32.h:
13288         [1]. [5].
13289         Don't use extern with fun defs.
13290
13291         * s\mingw32.h:
13292         [1]. [7].
13293         Remove nt\inc include.
13294         Remove getdisk, getdefdir. (The former is unused, the latter
13295         expanded in fileio.h.)
13296
13297         * s\windowsnt.h:
13298         * s\windowsnt.h (WIN32_NATIVE):
13299         * s\windowsnt.h (HAVE_STRCASECMP):
13300         [1]. [7].
13301         Add long comment about preprocessor changes.
13302         Remove getdisk, getdefdir. (The former is unused, the latter
13303         expanded in fileio.h.)
13304
13305 2000-06-10  Ben Wing  <ben@xemacs.org>
13306
13307         * m\arm.h:
13308         * m\delta.h:
13309         * m\intel386.h:
13310         * m\sequent.h:
13311         * m\template.h:
13312         * m\windowsnt.h:
13313         [1].
13314         Remove bogus/unused NO_SOCK_SIGIO.
13315
13316 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13317
13318         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13319         not an Emchar.
13320
13321 2000-06-04  Mike Sperber <mike@xemacs.org>
13322
13323         * casetab.c (set_case_table): For `set-standard-case-table',
13324         actually deposit the new case tables where the rest of XEmacs can
13325         see them.
13326
13327 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13328
13329         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13330
13331 2000-06-05  Ben Wing  <ben@xemacs.org>
13332
13333         * callproc.c (child_setup): Don't do close_load_descs() under
13334         MS Windows.  Put in a comment explaining why.
13335
13336 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13337
13338         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13339         Toolkit shell" which breaks `kill-compilation' on Windows NT
13340         native, retaining STDERR handling improvements.
13341
13342 2000-06-01  Andreas Jaeger  <aj@suse.de>
13343
13344         * s/s390.h: Support for S390, based on a patch by Martin
13345         Schwidefsky <schwidefsky@de.ibm.com>.
13346
13347 2000-05-30  Andy Piper  <andy@xemacs.org>
13348
13349         * window.c (allocate_window):
13350         (make_dummy_parent):
13351         (Fset_window_configuration): use new hashtable type.
13352
13353         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13354         (struct image_instantiator_methods):
13355         (struct Lisp_Image_Instance): make instance geometry signed.
13356
13357         * glyphs.c (instantiate_image_instantiator):
13358         (image_instance_query_geometry):
13359         (image_instance_layout):
13360         (image_instance_layout):
13361         (query_string_geometry):
13362         (text_query_geometry):
13363         (image_instantiate):
13364         (image_instantiate):
13365         (cache_subwindow_instance_in_frame_maybe):
13366         (subwindow_query_geometry): make instance geometry signed.
13367
13368         * glyphs-widget.c (widget_query_geometry):
13369         (widget_layout):
13370         (button_query_geometry):
13371         (tree_view_query_geometry):
13372         (tab_control_query_geometry):
13373         (layout_query_geometry):
13374         (layout_layout):
13375         (native_layout_layout): make instance geometry signed.
13376
13377 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13378
13379         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13380         constant.
13381
13382         * general.c (syms_of_general): Add Qfull_assoc symbol.
13383
13384         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13385         correctly.
13386         (decode_weak_list_type): Decode full-assoc type.
13387         (encode_weak_list_type): Encode full-assoc type.
13388         (Fmake_weak_list): Update doc string.
13389
13390 2000-05-30  Andy Piper  <andy@xemacs.org>
13391
13392         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13393
13394         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13395         (decode_hash_table_weakness): ditto.
13396         (Fhash_table_weakness): ditto.
13397         (Fhash_table_type): ditto.
13398         (finish_marking_weak_hash_tables): ditto.
13399         (hash_table_weakness_validate): ditto.
13400         (syms_of_elhash): ditto.
13401
13402 2000-05-28  Martin Buchholz <martin@xemacs.org>
13403
13404         * XEmacs 21.2.34 is released.
13405
13406 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13407
13408         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13409         start cache.
13410         (updating_line_start_cache): Gone.
13411         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13412         generic code to force a minimum of 1 line laid out in the
13413         CMOTION_DISP case.
13414
13415 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13416
13417         * glyphs.c (instantiate_image_instantiator): Check for initialized
13418         height & width no longer special cases IMAGE_NOTHING.
13419         (nothing_instantiate): Set height and width of instance.
13420
13421 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13422
13423         * unexelf.c (unexec): Search for ".data" section.
13424         Initialize new_data2_offset from old_data_index.
13425         Remove redundant check for ElfW.
13426
13427 2000-05-23  Andy Piper  <andy@xemacs.org>
13428
13429         * glyphs.c (get_image_instantiator_governing_domain): allow more
13430         specific domains as the governing domain rather than expecting an
13431         exact match. This fixes problems with layouts.
13432
13433 2000-05-22  Andy Piper  <andy@xemacs.org>
13434
13435         * redisplay-output.c (compare_runes): check for non-images
13436
13437         * glyphs.c (set_glyph_dirty_p): ditto.
13438         (update_glyph_cachel_data): ditto.
13439
13440         * glyphs-widget.c (layout_post_instantiate): ditto.
13441         (layout_post_instantiate): ditto.
13442
13443         * event-msw.c (mswindows_wnd_proc): warning removal.
13444
13445 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13446
13447         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13448
13449         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13450
13451         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13452
13453         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13454         (mswindows_executable_type): mingw32 now has enough headers for
13455         this to work.
13456
13457 2000-05-20  Andy Piper  <andy@xemacs.org>
13458
13459         * console-msw.c (mswindows_output_last_error): ; -> ,
13460
13461 2000-05-12  Andy Piper  <andy@xemacs.org>
13462
13463         * console-msw.c (FROB): compare ints with ints.
13464
13465 2000-05-11  Andy Piper  <andy@xemacs.org>
13466
13467         * glyphs-x.c (x_finalize_image_instance): make minimal build
13468         happy.
13469
13470 2000-05-20  Ben Wing  <ben@xemacs.org>
13471
13472         * event-Xt.c:
13473         * event-Xt.c (vars_of_event_Xt):
13474         move modifier-keys-are-sticky to event-stream.c.
13475
13476         * event-msw.c:
13477         * event-msw.c (mswindows_enqueue_mouse_button_event):
13478         * event-msw.c (key_needs_default_processing_p):
13479         * event-msw.c (XEMSW_LCONTROL):
13480         * event-msw.c (mswindows_handle_sticky_modifiers):
13481         * event-msw.c (FROB):
13482         * event-msw.c (clear_sticky_modifiers):
13483         * event-msw.c (output_modifier_keyboard_state):
13484         * event-msw.c (output_alt_keyboard_state):
13485         * event-msw.c (mswindows_wnd_proc):
13486         * event-msw.c (mswindows_modifier_state):
13487         * event-msw.c (emacs_mswindows_handle_magic_event):
13488         implement sticky modifiers.
13489
13490         * event-stream.c:
13491         * event-stream.c (vars_of_event_stream):
13492         move modifier-keys-are-sticky here.
13493
13494         * lisp.h:
13495         add CHECK_FUNCTION.
13496
13497         * rangetab.c:
13498         implement map-range-table.
13499
13500
13501 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13502
13503         * redisplay-tty.c (reset_tty_modes):
13504         (tty_redisplay_shutdown): Adjust argument type to
13505         tty_frame_output_end.
13506
13507 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13508
13509         * eval.c (Fbacktrace): Don't output a line with only right
13510         parenthesis.
13511
13512 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13513
13514         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13515         (Fpq_reset_poll): Ditto.
13516
13517 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13518
13519         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13520
13521 2000-05-16  Ben Wing  <ben@xemacs.org>
13522
13523         * buffer.c:
13524         * buffer.c (dfc_convert_to/from_internal_format):
13525         * buffer.c (reinit_vars_of_buffer):
13526         Fix conversion functions to allow reentrancy.
13527
13528         * console-msw.c:
13529         * console-msw.c (mswindows_output_last_error):
13530         New fun, generally useful -- output a human-readable
13531         version of GetLastError() on the console.
13532
13533         * console-msw.h:
13534         * console-msw.h (struct mswindows_frame):
13535         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13536
13537         * console-stream.c (stream_output_begin):
13538         * console-stream.c (stream_output_end):
13539         * console-stream.c (stream_output_vertical_divider):
13540         * console-stream.c (stream_clear_region):
13541         * console-stream.c (stream_flash):
13542         * console-stream.c (console_type_create_stream):
13543         Delete blank stream methods, not needed.
13544
13545         * console.h (struct console_methods):
13546         Split begin/end methods into window and frame.
13547
13548         * event-msw.c:
13549         * event-msw.c (mswindows_handle_paint):
13550         * event-msw.c (output_alt_keyboard_state):
13551         * event-msw.c (mswindows_wnd_proc):
13552         * event-msw.c (vars_of_event_mswindows):
13553         Comment about problems with ignored-expose.
13554         Define mswindows-debug-events; not really implemented.
13555
13556         * frame-msw.c (mswindows_init_frame_1):
13557         random cleanups.
13558
13559         * glyphs-msw.c:
13560         * glyphs-msw.c (begin_defer_window_pos):
13561         * glyphs-msw.c (mswindows_unmap_subwindow):
13562         * glyphs-msw.c (mswindows_map_subwindow):
13563         * glyphs-msw.c (mswindows_resize_subwindow):
13564         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13565
13566         * glyphs.c (make_image_instance_1):
13567         Fix crash.
13568
13569         * gutter.c (Fredisplay_gutter_area):
13570         Use new begin/end methods.
13571
13572         * lisp.h (Dynarr_new2):
13573         New creation fun.
13574
13575         * redisplay-msw.c:
13576         * redisplay-msw.c (mswindows_frame_output_begin):
13577         * redisplay-msw.c (mswindows_frame_output_end):
13578         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13579         New begin/end methods -- handle DeferWindowPos.
13580
13581         * redisplay-output.c (redisplay_move_cursor):
13582         * redisplay-output.c (redraw_cursor_in_window):
13583         * redisplay-output.c (redisplay_update_line):
13584         * redisplay-output.c (redisplay_output_window):
13585         New begin/end methods.
13586
13587         * redisplay-tty.c:
13588         * redisplay-tty.c (tty_frame_output_begin):
13589         * redisplay-tty.c (tty_frame_output_end):
13590         * redisplay-tty.c (console_type_create_redisplay_tty):
13591         New begin/end methods.
13592
13593         * redisplay-x.c:
13594         * redisplay-x.c (x_window_output_begin):
13595         * redisplay-x.c (x_window_output_end):
13596         * redisplay-x.c (console_type_create_redisplay_x):
13597         New begin/end methods.
13598
13599         * redisplay.c (redisplay_frame):
13600         * redisplay.c (Fredisplay_echo_area):
13601         New begin/end methods.
13602         use MAYBE_DEVMETH for clear_frame; it may not exist.
13603
13604         * window.h (WINDOW_XFRAME):
13605         WINDOW_XFOO macros -- get locale and decode struct pointer.
13606
13607
13608 2000-05-12  Ben Wing  <ben@xemacs.org>
13609
13610         * emacs.c:
13611         * emacs.c (ensure_no_quitting_from_now_on):
13612         * emacs.c (fatal_error_signal):
13613         * emacs.c (mswindows_handle_hardware_exceptions):
13614         * emacs.c (main):
13615         * emacs.c (Fkill_emacs):
13616         * emacs.c (shut_down_emacs):
13617         * emacs.c (assert_failed):
13618         various improvements in fatal error handling.
13619
13620         * eval.c:
13621         move preparing_for_armageddon to emacs.c.
13622
13623         * lisp.h:
13624         declare fatal_error_in_progress.
13625
13626         * print.c:
13627         * print.c (std_handle_out_external):
13628         * print.c (std_handle_out_va):
13629         * print.c (stderr_out):
13630         * print.c (stdout_out):
13631         use console under mswin when no standard output.
13632         don't do code conversion during fatal error.
13633
13634         * scrollbar.c (Fscrollbar_page_up):
13635         * scrollbar.c (Fscrollbar_page_down):
13636         fix missing else.  reindent.
13637
13638 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13639
13640         Emergency fix.
13641
13642         * glyphs.h (GLYPH_CACHEL_DESCENT):
13643         (GLYPH_CACHEL_DESCENT):
13644         (GLYPH_CACHEL_DESCENT):
13645         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13646         used in case these are inline functions.
13647         Use more absurd values to error check.
13648
13649         include window.h for error check functions.
13650
13651 2000-05-11  Ben Wing  <ben@xemacs.org>
13652
13653         * cmdloop.c (Freally_early_error_handler):
13654         Display message box under windows; otherwise, message will disappear
13655         before it can be viewed.
13656
13657         * console-msw.c:
13658         * console-msw.c (Fmswindows_message_box):
13659         * console-msw.c (FROB):
13660         * console-msw.c (syms_of_console_mswindows):
13661         Define new fun `mswindows-message-box'.
13662         #### I will merge this into `popup-dialog-box'; just give me
13663         a bit of time.
13664
13665         * general.c:
13666         * general.c (syms_of_general):
13667         Some new symbols used in `mswindows-message-box'.
13668
13669         * glyphs.c:
13670         * glyphs.c (Fset_image_instance_property):
13671         put warning in this fun.
13672
13673         * glyphs.h:
13674         * glyphs.h (GLYPH_CACHEL_WIDTH):
13675         * glyphs.h (GLYPH_CACHEL_ASCENT):
13676         * glyphs.h (GLYPH_CACHEL):
13677         * glyphs.h (GLYPH_CACHEL_GLYPH):
13678         define error-checking versions to try to catch a bug i've seen --
13679         redisplay gets in an infinite loop because the glyph width of the
13680         continuation glyph is 65535.
13681
13682         * lisp.h:
13683         Extern message-box stuff.
13684
13685         * window.c (allocate_window):
13686         * window.c (make_dummy_parent):
13687         * window.c (Fset_window_configuration):
13688         Use EQUAL not EQ for subwindow caches to make them work a bit
13689         better. (Something is still very broken.)
13690
13691
13692 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13693
13694         * glyphs.c (image_instantiate): Suppress gcc warnings.
13695         (Fmake_image_instance): Fix doc string.
13696         * specifier.c (Fmake_specifier): Ditto.
13697
13698 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13699
13700         * paths.h.in (PATH_LOCK): Removed.
13701         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13702         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13703
13704 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13705
13706         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13707         Document (featurep '(and xemacs 21.02)).
13708
13709 2000-05-09  Ben Wing  <ben@xemacs.org>
13710
13711         * buffer.c (complex_vars_of_buffer):
13712         update modeline-format doc.
13713
13714         * device.h:
13715         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13716
13717         * emacs.c:
13718         timeline of all released versions of Emacs, for use in creating
13719         authorship comments and in synching up.
13720
13721         * glyphs-widget.c (image_instantiator_buttons):
13722         * glyphs-widget.c (image_instantiator_edit_fields):
13723         * glyphs-widget.c (image_instantiator_combo_box):
13724         * glyphs-widget.c (image_instantiator_scrollbar):
13725         * glyphs-widget.c (image_instantiator_progress_guage):
13726         * glyphs-widget.c (image_instantiator_tree_view):
13727         * glyphs-widget.c (image_instantiator_tab_control):
13728         * glyphs-widget.c (image_instantiator_labels):
13729         * glyphs-widget.c (image_instantiator_layout):
13730         * glyphs-widget.c (image_instantiator_native_layout):
13731         rename decode_domain method to governing_domain.
13732
13733         * glyphs.c:
13734         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13735         * glyphs.c (add_entry_to_device_ii_format_list):
13736         make sure we don't put an entry more than once into the list.
13737         * glyphs.c (check_instance_cache_mapper):
13738         *************************************************************
13739         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13740         HAVE BEEN GETTING.
13741         *************************************************************
13742         * glyphs.c (get_image_instantiator_governing_domain):
13743         clean up, expand on new concept of governing domain.
13744         * glyphs.c (instantiate_image_instantiator):
13745         * glyphs.c (allocate_image_instance):
13746         use governing_domain instead of cache_domain in naming.
13747         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13748         * glyphs.c (make_image_instance_1):
13749         * glyphs.c (Fmake_image_instance):
13750         allow for any domain (not just device), and process the
13751         governing domain correctly.  very big doc fix.
13752         * glyphs.c (Fimage_instance_domain):
13753         new primitive, to retrieve the governing domain of an image instance.
13754         * glyphs.c (image_instantiate):
13755         use new governing_domain stuff.  this fixes a crash you could get
13756         by instantiating certain widget glyphs in frame locales. (should
13757         signal an error instead of crashing.)
13758         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13759         * glyphs.c (Fglyphp): clean up doc.
13760         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13761         * glyphs.c (syms_of_glyphs):
13762         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13763         * glyphs.c (image_instantiator_format_create): add some comments about
13764         bogus code.
13765         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13766         for current-display-table. (Apparently Hrjove implemented in 1998 a
13767         design I wrote up in 1996, but didn't update the doc string.)
13768
13769         * glyphs.h: clean up a doc string.
13770         * glyphs.h (governing_domain):
13771         * glyphs.h (struct image_instantiator_methods):
13772         changes for governing_domain stuff.
13773
13774         * gutter.c:
13775         * gutter.c (Fgutter_specifier_p):
13776         * gutter.c (Fgutter_size_specifier_p):
13777         * gutter.c (Fgutter_visible_specifier_p):
13778         * objects.c:
13779         * objects.c (Fcolor_specifier_p):
13780         * objects.c (Ffont_specifier_p):
13781         * objects.c (Fface_boolean_specifier_p):
13782         doc strings moved to make-*-specifier.
13783
13784         * redisplay.c (add_disp_table_entry_runes_1):
13785         * redisplay.c (generate_fstring_runes):
13786         * redisplay.c (screen):
13787         add random comments and doc strings.
13788
13789         * specifier.c:
13790         * specifier.c (Fmake_specifier):
13791         major overhaul of this doc string.
13792
13793         * specifier.c (Fvalid_specifier_domain_p):
13794         comment about the bogosity of image instances being domains.
13795         * specifier.c (decode_domain):
13796         now non-static, used in glyphs.c.
13797         * specifier.c (specifier_instance):
13798         comment about the bogosity of image instances being domains.
13799         * specifier.c (Fgeneric_specifier_p):
13800         move doc string to make-generic-specifier.
13801         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13802         rebackslashify.
13803
13804         * specifier.h:
13805         * specifier.h (DOMAIN_FRAME):
13806         * specifier.h (DOMAIN_LIVE_P):
13807         * specifier.h (DOMAIN_XDEVICE):
13808         rebackslashify.
13809         add comments about problems with these macros.
13810         prototype for decode_domain.
13811
13812         * toolbar.c:
13813         * toolbar.c (Ftoolbar_specifier_p):
13814         move doc string to `make-toolbar-specifier'.
13815
13816         * window.c (window_unmap_subwindows_cache_mapper):
13817         *************************************************************
13818         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13819         HAVE BEEN GETTING.
13820         *************************************************************
13821
13822 2000-05-09  Andy Piper  <andy@xemacs.org>
13823
13824         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13825
13826         * window.c (Fset_window_configuration): reset the frame subwindow
13827         cache and re-initialize the window subwindow caches.
13828
13829         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13830
13831 2000-05-09  Ben Wing  <ben@xemacs.org>
13832
13833         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13834         DWORD.
13835
13836 2000-04-26  Mike Woolley  <mike@bulsara.com>
13837
13838         * ntheap.c: Changed recreate_heap to limit the amount reserved
13839         for the heap to that which is actually available. Also now
13840         displays a message box (with some dignostics) in the event that
13841         it still can't start.
13842
13843 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13844
13845         * callproc.c (Fold_call_process_internal): GCPRO path
13846
13847 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13848
13849         Patch by Bill Perry.
13850
13851         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13852         back data instead of #ifdef.
13853         (Fscrollbar_page_down): ditto.
13854
13855 2000-05-07  Ben Wing  <ben@xemacs.org>
13856
13857         * buffer.h:
13858         Kludge for defining Qmswindows_tstr.
13859
13860         * nt.c:
13861         * nt.c (open_input_file):
13862         * nt.c (open_output_file):
13863         * nt.c (rva_to_section):
13864         * nt.c (mswindows_executable_type):
13865         Move all memory-mapped-file routines here (some were in unexnt.c,
13866         which is bad because they are used by process-nt.c, and unexnt
13867         won't be around when portable dumping).  Synched the above routines
13868         with FSF 20.6.
13869
13870         * nt.h:
13871         Removed ifdef'd out bogus code.
13872         Fixed some prototypes.
13873
13874         * nt.h (file_data):
13875         * nt.h (OFFSET_TO_RVA):
13876         * nt.h (RVA_TO_OFFSET):
13877         * nt.h (RVA_TO_PTR):
13878         Moved the memory-mapped-file structures, macros and prototypes
13879         here, to parallel nt.c.  ntheap.h should really be removed
13880         entirely, and it's a non-portable-dumper specific file.
13881
13882         * ntheap.h (round_to_next):
13883         Moved the memory-mapped-file structures, macros and prototypes
13884         to nt.h.
13885
13886         * ntproc.c (compare_env):
13887         Moved rva_to_section and mswindows_executable_type to nt.c.
13888         Moved compare_env to process-nt.c.
13889         ntproc.c will die, one day.
13890
13891         * ntproc.c (sys_spawnve):
13892         Account for win32_ -> mswindows_.
13893
13894         * process-nt.c:
13895         * process-nt.c (struct nt_process_data):
13896         * process-nt.c (ensure_console_window_exists):
13897         * process-nt.c (compare_env):
13898         * process-nt.c (nt_create_process):
13899         * process-nt.c (nt_kill_process_by_pid):
13900         * process-nt.c (syms_of_process_nt):
13901         * process-nt.c (vars_of_process_nt):
13902         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13903         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13904         changes).  Eliminate our old `nt-quote-process-args' mechanism.
13905         Synch up nt_create_process with FSF 20.6 sys_spawnve.
13906         Move compare_env here from ntproc.c.
13907
13908         * process.c (Fprocess_send_region):
13909         Takes an optional fourth argument, BUFFER, which should fix some
13910         problems with call-process.
13911
13912         * syscommctrl.h:
13913         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13914
13915         * syswindows.h:
13916         Move ICC_BAR_CLASSES to syscommctrl.h.
13917         Add preliminary macros for MSWindows/Mule.  More to come.
13918
13919         * unexnt.c:
13920         * unexnt.c (unexec):
13921         open_output_file moved to nt.c.
13922
13923
13924 2000-05-05  Andy Piper  <andy@xemacs.org>
13925
13926         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13927         instance from the frame cache also since GC may catch up too late
13928         to make frame deletion sane.
13929
13930 2000-05-04  Andy Piper  <andy@xemacs.org>
13931
13932         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13933         (x_finalize_image_instance): ungcpro on deletion.
13934
13935         * glyphs.c (image_instantiator_format_create): give pointers a
13936         query geometry method so that the geometry is at least set.
13937
13938         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13939         initialize layouts if using widgets.
13940
13941 2000-05-03  Andy Piper  <andy@xemacs.org>
13942
13943         * nt.c: remove bogus reference to sysmmsystem.h
13944
13945         * gui-x.c (popup_selection_callback): fix no selection abort.
13946
13947 2000-05-02  Andy Piper  <andy@xemacs.org>
13948
13949         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13950         (mswindows_widget_instantiate): ditto.
13951
13952         * glyphs-widget.c (initialize_widget_image_instance): initialize
13953         children correctly.
13954         (widget_instantiate): cope with children and items in the same
13955         instance.
13956
13957         * glyphs.c (mark_image_instance): cope with children as a first
13958         class member.
13959         (image_instance_equal): ditto.
13960         (image_instance_hash): ditto.
13961         (image_instance_changed): ditto.
13962
13963 2000-04-30  Andy Piper  <andy@xemacs.org>
13964
13965         * glyphs.c (subwindow_query_geometry): new function. Return some
13966         defaults.
13967         (subwindow_instantiate): don't assign dimensions if none have been
13968         given.
13969         (image_instantiator_format_create): add subwindow_query_geometry.
13970         (print_image_instance): cope with layouts as widgets.
13971
13972 2000-04-29  Andy Piper  <andy@xemacs.org>
13973
13974         * frame.c (delete_frame_internal): call
13975         free_frame_subwindow_instance_cache so that all subwindows are
13976         finalized before their parent.
13977         (mark_frame): remove subwindow_cachels.
13978         (Fmake_frame): remove subwindow_cachel manipulation.
13979         (allocate_frame_core): subwindow_instance_cache is a weak list.
13980         (delete_frame_internal): set subwindow_instance_cache to nil.
13981
13982         * glyphs-msw.c (mswindows_finalize_image_instance): make double
13983         finalization safe.
13984         (mswindows_finalize_image_instance): use the device
13985         not the domain as the domain may have died already.
13986
13987         * glyphs-x.c (x_finalize_image_instance): ditto.
13988         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13989         HEIGHT.
13990
13991         * redisplay-output.c (redisplay_unmap_subwindows): update for
13992         subwindow instance cache as a weak list.
13993         (redisplay_unmap_subwindows_maybe): ditto.
13994         (redisplay_unmap_subwindows_except_us): ditto.
13995
13996         * glyphs.c (unmap_subwindow): error checking will check the domain
13997         so don't deal with it here. Don't use cachels anymore.
13998         (map_subwindow): ditto.
13999         (update_subwindow_cachel_data): remove old accessor names.
14000         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14001         (Fresize_subwindow): don't update cachel.
14002         (mark_subwindow_cachels):
14003         (update_subwindow_cachel_data):
14004         (add_subwindow_cachel):
14005         (get_subwindow_cachel_index):
14006         (update_subwindow_cachel):
14007         (reset_subwindow_cachels):
14008         (mark_subwindow_cachels_as_not_updated): deleted.
14009         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14010         subwindow instance to the frame cache.
14011         (find_matching_subwindow): update for subwindow instance cache as
14012         a weak list.
14013         (update_widget_instances): ditto.
14014         (image_instance_type_to_mask):inlined.
14015         (free_frame_subwindow_instance_cache): new function. finalize all
14016         subwindows that are instantiated.
14017
14018         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14019         of cachel information.
14020         (IMAGE_INSTANCE_DISPLAY_X):
14021         (IMAGE_INSTANCE_DISPLAY_Y):
14022         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14023         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14024         (XIMAGE_INSTANCE_DISPLAY_X):
14025         (XIMAGE_INSTANCE_DISPLAY_Y):
14026         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14027         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14028         remove subwindow_cachel structure and function references.
14029         (image_instance_type_to_mask): inline from glyphs.c
14030
14031         * redisplay.c (redisplay_frame): remove subwindow_cachel
14032         references.
14033
14034         * frame.h (struct frame): remove subwindow_cachels.
14035         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14036
14037         * frameslots.h: add subwindow_instance_cache.
14038
14039         * window.c (replace_window): check subwindow cache of replacement.
14040         (window_unmap_subwindows_cache_mapper):
14041         (window_unmap_subwindows): new functions. Unmap all subwindows
14042         cached on this window.
14043         (mark_window_as_deleted): unmap all subwindows.
14044
14045 2000-04-27  Andy Piper  <andy@xemacs.org>
14046
14047         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14048
14049         * glyphs-widget.c (widget_layout): return something.
14050         (layout_layout): return something. Fail if not initialized.
14051         (layout_query_geometry): ditto.
14052         (image_instantiator_native_layout): new function. Initialized the
14053         native layout type.
14054         (widget_instantiate): don't do layout stuff here.
14055
14056         * glyphs.c (instantiate_image_instantiator): reorded calling or
14057         instantiate and post_instantiate with layout in between.
14058         (image_instance_layout): be more selective about deciding whether
14059         the layout has been done or not.
14060
14061         * glyphs.h (struct image_instantiator_methods): return a value
14062         from layout_method.
14063
14064 2000-04-26  Andy Piper  <andy@xemacs.org>
14065
14066         * glyphs.c (allocate_image_instance): make initial width and
14067         height unspecified. Set initialized to 0.
14068
14069         * syscommctrl.h new file. Encapsulates commctrl.h.
14070
14071         * syswindows.h new file. Encapsulates windows.h.
14072
14073         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14074         * nt.c: ditto.
14075         * console-msw.h: ditto.
14076
14077         * redisplay-tty.c (tty_output_display_block): remove layout references.
14078
14079         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14080         window handle rather than just the frame.
14081
14082         * glyphs.c (mark_image_instance): remove layout references.
14083         (print_image_instance): ditto.
14084         (image_instance_equal): ditto.
14085         (image_instance_hash): ditto.
14086         (decode_image_instance_type): ditto.
14087         (encode_image_instance_type): ditto.
14088         (image_instantiate): ditto.
14089         (allocate_glyph): ditto.
14090         (Fimage_instance_height): ditto.
14091         (Fimage_instance_width): ditto.
14092         (update_subwindow): ditto.
14093
14094         * redisplay-x.c (x_output_display_block): recode for layouts as
14095         widgets.
14096
14097         * redisplay-output.c (redisplay_output_layout): recode for layouts
14098         as widgets.
14099         (compare_runes): remove layout references.
14100
14101         * redisplay-msw.c (mswindows_output_display_block): recode for
14102         layouts as widgets.
14103
14104         * glyphs-widget.c (image_instantiator_layout): remove
14105         layout_possible_dest_types.
14106         (layout_possible_dest_types): deleted.
14107
14108         * glyphs.h (image_instance_type): remove layout references.
14109         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14110         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14111         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14112
14113 2000-04-25  Andy Piper  <andy@xemacs.org>
14114
14115         * glyphs-widget.c (image_instantiator_buttons):
14116         (image_instantiator_edit_fields):
14117         (image_instantiator_combo_box):
14118         (image_instantiator_scrollbar):
14119         (image_instantiator_progress_guage):
14120         (image_instantiator_tree_view):
14121         (image_instantiator_tab_control):
14122         (image_instantiator_labels):
14123         (image_instantiator_layout): call default post_instantiate method.
14124         (widget_post_instantiate): new function. Simply lays out the
14125         widgets.
14126
14127         * glyphs.h (struct image_instantiator_methods): add
14128         post_instantiate method.
14129
14130         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14131         method calls.
14132
14133 2000-04-23  Andy Piper  <andy@xemacs.org>
14134
14135         * glyphs.h (struct image_instantiator_methods): add
14136         decode_domain_method.
14137         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14138         derived from the domain.
14139         (IMAGE_INSTANCE_FRAME): new accessor.
14140         (XIMAGE_INSTANCE_FRAME): ditto.
14141
14142         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14143         instead of _SUBWINDOW_FRAME.
14144         (finalize_image_instance): ditto.
14145         (Fimage_instance_foreground): ditto.
14146         (Fimage_instance_background): ditto.
14147         (image_instantiate): ditto.
14148         (update_subwindow_cachel): ditto.
14149         (update_subwindow): ditto.
14150         (unmap_subwindow): ditto.
14151         (map_subwindow): ditto
14152         (subwindow_instantiate): ditto.
14153         * glyphs-msw.c (mswindows_update_widget): ditto.
14154         (mswindows_progress_gauge_instantiate): ditto.
14155         (mswindows_tab_control_update): ditto.
14156         * glyphs-x.c (x_update_widget): ditto.
14157         (x_widget_instantiate): ditto.
14158         (x_tab_control_instantiate): ditto.
14159         (x_tab_control_update): ditto.
14160         * event-msw.c (mswindows_wnd_proc): ditto
14161
14162         * glyphs-widget.c (image_instantiator_layout): use
14163         subwindow_decode_domain.
14164         (image_instantiator_buttons): ditto.
14165         (image_instantiator_edit_fields): ditto.
14166         (image_instantiator_combo_box): ditto.
14167         (image_instantiator_scrollbar): ditto.
14168         (image_instantiator_progress_guage): ditto.
14169         (image_instantiator_tree_view): ditto.
14170         (image_instantiator_tab_control): ditto.
14171         (image_instantiator_labels): ditto.
14172         (image_instantiator_layout): ditto.
14173
14174         * glyphs.c: add instance error checking to many functions.
14175         (instantiate_image_instantiator): decode device from cache_domain.
14176         (image_instantiate): partially rewrite by using
14177         decode_image_instantiator_domain to determine what domain the
14178         instance needs to be cached in.
14179         (decode_image_instantiator_domain): new function. Determine what
14180         domain the image needs to be cached in.
14181         (check_window_subwindow_cache): new error checking function.
14182         (check_instance_cache_mapper): ditto.
14183         (check_image_instance_structure): ditto.
14184         (subwindow_decode_domain): new function. Encodes a window as a
14185         subwindow's cache domain.
14186         (image_instantiator_format_create): use it for text and
14187         subwindows.
14188
14189 2000-04-21  Andy Piper  <andy@xemacs.org>
14190
14191         * glyphs.c (image_instance_device): new function.
14192         (image_instance_frame): new function.
14193         (image_instance_window): new function.
14194         (image_instance_live_p): new function.
14195
14196         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14197         cache to nil.
14198
14199         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14200         (IMAGE_INSTANCE_DOMAIN): new accessor.
14201         (XIMAGE_INSTANCE_DOMAIN): ditto.
14202
14203         * glyphs-x.c (x_finalize_image_instance): device->domain.
14204
14205         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14206         (mswindows_finalize_image_instance): ditto.
14207
14208         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14209         (gif_instantiate): ditto.
14210         (png_instantiate): ditto.
14211         (tiff_instantiate): ditto.
14212
14213         * glyphs.c (instantiate_image_instantiator): use domain rather
14214         than device.
14215         (mark_image_instance): device -> domain.
14216         (print_image_instance): ditto.
14217         (finalize_image_instance): ditto.
14218         (image_instance_equal): ditto.
14219         (allocate_image_instance): ditto.
14220         (Fcolorize_image_instance): ditto.
14221         (query_string_geometry): ditto.
14222         (image_instantiate): ditto
14223         (query_string_font): ditto.
14224         (image_instantiate): ditto.
14225         (update_subwindow): ditto.
14226         (unmap_subwindow): ditto.
14227         (map_subwindow): ditto.
14228         (subwindow_instantiate): ditto.
14229
14230         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14231         (DOMAIN_FRAME): ditto.
14232         (DOMAIN_WINDOW): ditto.
14233         (DOMAIN_LIVE_P): ditto.
14234         (XDOMAIN_DEVICE): ditto.
14235         (XDOMAIN_FRAME): ditto.
14236         (XDOMAIN_WINDOW): ditto.
14237
14238         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14239         a valid specifier domain.
14240
14241 2000-04-19  Andy Piper  <andy@xemacs.org>
14242
14243         * glyphs-widget.c (syms_of_glyphs_widget): remove
14244         widget-callback-current-channel.
14245         (vars_of_glyphs_widget): ditto.
14246         * glyphs.h: ditto
14247
14248         * gui.c (get_gui_callback): revert to previous behaviour.
14249
14250 2000-04-18  Andy Piper  <andy@xemacs.org>
14251
14252         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14253         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14254         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14255
14256         * glyphs.c (image_instance_equal): add margin_width.
14257         (image_instance_hash): ditto.
14258
14259         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14260         (layout_query_geometry): ditto.
14261         (layout_layout): ditto.
14262         (syms_of_glyphs_widget): add margin-width.
14263         (image_instantiator_layout): allow margin-width.
14264
14265         * glyphs.c (update_widget_instances): make a normal function.
14266         (syms_of_glyphs): remove Qupdate_widget_instances.
14267         * glyphs.h: ditto.
14268
14269         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14270         so that we don't corrupt ideas about the last event or
14271         command. Remove widget-callback-current-channel fiddling.
14272         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14273
14274 2000-05-01  Martin Buchholz <martin@xemacs.org>
14275
14276         * XEmacs 21.2.33 is released.
14277
14278 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14279
14280         * make-src-depend: Allow dots in header file name.
14281
14282 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14283
14284         * mule-charset.h (struct charset_lookup): Add
14285         next_allocated_1_byte_leading_byte and
14286         next_allocated_2_byte_leading_byte.
14287         * mule-charset.c: Move above two variables so that those values
14288         will be dumped.
14289
14290 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14291
14292         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14293         when string length is zero.
14294         (find_charsets_in_emchar_string): Ditto.
14295
14296 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14297
14298         * lisp.h: extern Qdialog and Qmenubar.
14299
14300         * gui-x.c: added events.h.
14301                 also fixed typo which made the file uncompilable.
14302
14303         * general.c: Added Qmenubar and Qdialog
14304
14305 2000-04-28  Ben Wing  <ben@xemacs.org>
14306
14307         * frame-msw.c (mswindows_init_frame_1):
14308         * frame-msw.c (mswindows_mark_frame):
14309         * event-msw.c (mswindows_enqueue_dispatch_event):
14310         * console-msw.h:
14311         * console-msw.h (struct mswindows_frame):
14312         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14313         there are now three hash tables for callbacks.
14314         mswindows_enqueue_dispatch_event is no longer static.
14315
14316         * dialog-x.c (maybe_run_dbox_text_callback):
14317         * dialog-x.c (dbox_descriptor_to_widget_value):
14318         switch to new cons3 form for callbacks.
14319
14320         * glyphs-msw.c (mswindows_register_gui_item):
14321         * glyphs-msw.c (mswindows_widget_instantiate):
14322         * glyphs-msw.c (add_tree_item):
14323         * glyphs-msw.c (add_tab_item):
14324         new image instance parameter, so it can be passed to callback-ex.
14325         respect :callback-ex as well as :callback.
14326
14327         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14328         add :callback-ex.
14329
14330         * glyphs.c (print_image_instance):
14331         prettify, e.g. now prints widget type.
14332
14333         * gui-x.h:
14334         certain funs have new image instance parameter.
14335
14336         * gui.c:
14337         * gui.c (get_gui_callback):
14338         * gui.c (gui_item_add_keyval_pair):
14339         * gui.c (gui_item_init):
14340         * gui.c (gui_add_item_keywords_to_plist):
14341         * gui.c (mark_gui_item):
14342         * gui.c (gui_item_hash):
14343         * gui.c (gui_item_equal):
14344         * gui.c (copy_gui_item):
14345         * gui.c (syms_of_gui):
14346         recognize callback-ex in a number of places.
14347         also, fix the annoying "can't get out of yes-no dialog" bug.
14348
14349         * gui.h:
14350         * gui.h (struct Lisp_Gui_Item):
14351         recognize callback-ex in a number of places.
14352
14353         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14354         new parameter in button_item_to_widget_value.
14355
14356         * glyphs-x.c (x_update_widget):
14357         * glyphs-x.c (x_button_instantiate):
14358         * glyphs-x.c (x_button_update):
14359         * glyphs-x.c (x_progress_gauge_instantiate):
14360         * glyphs-x.c (x_edit_field_instantiate):
14361         * glyphs-x.c (x_combo_box_instantiate):
14362         * glyphs-x.c (x_tab_control_instantiate):
14363         * glyphs-x.c (x_label_instantiate):
14364         new image instance parameter in various places.
14365
14366         * event-Xt.c:
14367         * event-Xt.c (enqueue_Xt_dispatch_event):
14368         this fun gets exported.
14369
14370         * gui-msw.c:
14371         * gui-msw.c (mswindows_handle_gui_wm_command):
14372         handle both :callback and :callback-ex, and generate our own
14373         event because it's one of the callback-ex arguments.
14374
14375         * gui-x.c:
14376         * gui-x.c (popup_selection_callback):
14377         handle both :callback and :callback-ex, and generate our own
14378         event because it's one of the callback-ex arguments.
14379         * gui-x.c (button_item_to_widget_value):
14380         * gui-x.c (gui_items_to_widget_values_1):
14381         * gui-x.c (gui_item_children_to_widget_values):
14382         * gui-x.c (gui_items_to_widget_values):
14383         new image instance parameter in various places.
14384
14385         * fns.c (Freplace_list):
14386         fix small typo in doc string.
14387
14388         * lisp.h:
14389         declare enqueue_Xt_dispatch_event.
14390
14391 2000-04-28  Ben Wing  <ben@xemacs.org>
14392
14393         * buffer.c:
14394         * buffer.c (Frecord_buffer):
14395         * buffer.c (syms_of_buffer):
14396         delete record-buffer-hook.
14397
14398         * fns.c:
14399         * fns.c (Freplace_list):
14400         * fns.c (syms_of_fns):
14401         new primitive replace-list.
14402
14403         * frameslots.h:
14404         slot for old buffer-alist.
14405
14406         * lisp.h:
14407         exfun replace-list.
14408
14409         * redisplay.c:
14410         * redisplay.c (redisplay_frame):
14411         * redisplay.c (syms_of_redisplay):
14412         * redisplay.c (vars_of_redisplay):
14413         new hook buffer-list-changed-hook.
14414         call it.
14415
14416 2000-04-27  Ben Wing  <ben@xemacs.org>
14417
14418         * extents.h: extern in_modeline_generation.
14419
14420         * redisplay.c (generate_formatted_string_db): set
14421         in_modeline_generation.
14422
14423         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14424         flags if in modeline generation.  otherwise frame-modified-tick
14425         is ticked far too often.
14426         Declare in_modeline_generation.
14427
14428 2000-04-26  Ben Wing  <ben@xemacs.org>
14429
14430         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14431         option.
14432         (vars_of_emacs): add quick-build as an error-checking option.
14433         A bit kludgy, but there doesn't seem much point in creating
14434         a real var for this.
14435
14436         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14437
14438 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14439
14440         * redisplay.h (struct display_line): Add a new variable,
14441         line_continuation.
14442
14443         * redisplay.c (create_text_block): Set dl->line_continuation if
14444         the line continues.
14445         (create_string_text_block): Ditto.
14446         (regenerate_window_incrementally): Use line_continuation instead
14447         of searching continuation glyph.
14448         (add_margin_runes): Call add_glyph_rune.
14449         (add_glyph_rune): Handle margin glyph.
14450
14451 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14452
14453         * filelock.c (fill_in_lock_file_name):
14454         ANSIfy.
14455         Check for IS_ANY_SEP instead of '/'.
14456         (lock_file_1):
14457         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14458         Never check errno without first seeing that system call failed.
14459         (unlock_file): Add GCPRO.
14460         (Flock_buffer): Fix docstring.
14461         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14462
14463 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14464
14465         * sysdep.c (get_pty_max_bytes):
14466         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14467         strings longer than 252 bytes.
14468
14469         * md5.c: Unconditionally include ANSI header <limits.h>
14470
14471         * glyphs-x.c (convert_EImage_to_XImage):
14472         * lisp-union.h (union Lisp_Object):
14473         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14474
14475 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14476
14477         * filelock.c (current_lock_owner): Remove unused variable o, p.
14478
14479 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14480
14481         * callint.c: Remove multiply defined symbol Qlet
14482         (syms_of_callint): ditto.
14483
14484 2000-04-14  Andy Piper  <andy@xemacs.org>
14485
14486         * general.c (syms_of_general): add last-command, this-command, let
14487         and funcall.
14488
14489         * lisp.h: declare various symbols.
14490
14491         * glyphs.h: declare Qwidget_callback_current_channel;
14492
14493         * glyphs-widget.c (syms_of_glyphs_widget): add
14494         Qgui_callback_current_channel.
14495         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14496
14497         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14498         widget-callback-current-channel when invoking the interactive
14499         arg. Also bind last-command and next-command when invoking the
14500         widget updates.
14501         * gui-x.c (popup_selection_callback): ditto.
14502
14503         * gui.c (get_gui_callback): massage args so that we are always
14504         calling eval. This allows us to add our own variable bindings
14505         outside.
14506
14507         * glyphs-x.c (x_button_instantiate): use
14508         gui_items_to_widget_values since this is GC safe.
14509         (x_progress_gauge_instantiate): ditto.
14510         (x_edit_field_instantiate): ditto.
14511         (x_label_instantiate): ditto.
14512
14513         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14514         (emacs_Xt_event_widget_focus_out): new function
14515         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14516         focus.
14517         (emacs_Xt_event_add_widget_actions): new function. add focus
14518         functions as actions.
14519         (init_event_Xt_late): use it.
14520
14521 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14522
14523         * event-stream.c (Fdispatch_event): Doc fix.
14524
14525 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14526
14527         * postgresql.c: Remove all references to PQsetenv*.
14528
14529         * postgresql.h: Remove references to PGsetenvHandler object.
14530         * lrecord.h (lrecord_type): Ditto.
14531
14532 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14533
14534         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14535         real_heigh and real_width members, and accessor macros for these.
14536
14537         * glyphs-msw.c (init_image_instance_geometry): New function.
14538         (init_image_instance_from_dibitmap): Use it.
14539         (mswindows_resource_instantiate): Use it.
14540         (init_image_instance_from_xbm_inline): Use it.
14541         (mswindows_initialize_image_instance_mask): Use real bitmap
14542         geometry.
14543         (mswindows_create_resized_bitmap): Ditto.
14544         (mswindows_create_resized_mask): Ditto.
14545
14546         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14547         and bitmap to their surface size.
14548
14549 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14550
14551         * process-unix.c (unix_send_process): Guard against process MIA
14552         after Faccept_process_output.
14553
14554 2000-04-11  Ben Wing  <ben@xemacs.org>
14555
14556         * eval.c (unbind_to_hairy): fix brokenness introduced by
14557         nanosecond speed improvements.
14558
14559 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14560
14561         * sunplay.c (init_device): To play sounds correctly, the device
14562         apparently needs to be initialized at least once by XEmacs.  Make
14563         it so.
14564
14565 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14566
14567         * redisplay.c (add_margin_runes): Add text image glyph
14568           handling.
14569
14570 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14571
14572         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14573         gcc is newer than 2.5.
14574
14575 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14576
14577         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14578
14579         * fns.c (size_bit_vector):
14580         * alloc.c (size_vector):
14581         (make_vector_internal):
14582         (make_bit_vector_internal):
14583         (sweep_bit_vectors_1):
14584         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14585
14586 2000-04-06  Andy Piper  <andy@xemacs.org>
14587
14588         * gmalloc.c (malloc): undo previous change.
14589         (malloc): ditto.
14590         (free): ditto.
14591         (realloc): ditto.
14592
14593 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14594
14595         * line-number.c (buffer_line_number): Revert to former version.
14596
14597 2000-04-06  Andy Piper  <andy@xemacs.org>
14598
14599         * gmalloc.c (malloc): add error checking.
14600         (malloc): ditto.
14601         (free): ditto.
14602         (realloc): ditto.
14603
14604         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14605         button_item_to_widget_value arg.
14606
14607         * glyphs-x.c (x_button_instantiate): add extra
14608         button_item_to_widget_value arg.
14609         (x_progress_gauge_instantiate): ditto.
14610         (x_edit_field_instantiate): ditto.
14611         (x_label_instantiate): ditto.
14612
14613         * gui-x.c (gui_items_to_widget_values_1): add extra
14614         button_item_to_widget_value arg.
14615         (button_item_to_widget_value): add extra menu_item_p arg.
14616
14617         * gui-x.h: change signature of button_item_to_widget_value.
14618
14619         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14620         button_item_to_widget_value arg.
14621
14622 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14623
14624         * buffer.h (struct buffer): auto_save_modified should be long.
14625
14626 2000-04-05  Andy Piper  <andy@xemacs.org>
14627
14628         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14629         type.
14630         (button_query_geometry): give a little more room so that athena
14631         buttons fit.
14632
14633 2000-04-05  Andy Piper  <andy@xemacs.org>
14634
14635         * faces.c (complex_vars_of_faces): The widget face should inherit
14636         the font of the gui-element face.
14637
14638 2000-04-04  Andy Piper  <andy@xemacs.org>
14639
14640         * glyphs-x.c (x_button_update): new function. unconditionally
14641         update a button's state when the instance is dirty.
14642         (image_instantiator_format_create_glyphs_x): add x_button_update.
14643         (x_widget_instantiate): remove old resize cruft.
14644
14645 2000-04-02  Andy Piper  <andy@xemacs.org>
14646
14647         * frame.c (change_frame_size_1): The introduction of gutters means
14648         that we need to allow 0 as a potential frame dimension.
14649
14650 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14651
14652         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14653         image glyph if allow_cursor.
14654         (add_hscroll_rune): Don't allow cursor to border glyph.
14655         (create_text_block): Ditto.
14656
14657         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14658         text not in buffer.
14659         (redisplay_output_layout): Call ensure_face_cachel_complete for
14660         text image glyph.
14661
14662
14663 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14664
14665         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14666
14667         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14668         not in buffer
14669
14670         * redisplay-tty.c (tty_output_display_block): Delete the routine
14671         for text image glyph
14672         * redisplay-x.c (x_output_display_block): ditto
14673         * redisplay-msw.c (mswindows_output_display_block): ditto
14674
14675 2000-02-02  Mike Alexander  <mta@arbortext.com>
14676
14677         Note: Some of these were committed by accident as part of other
14678         patches.
14679
14680         * regex.c (regex_compile): Avoid compiler warnings.
14681
14682         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14683
14684         * nt.h: Declare term_ntproc correctly.
14685
14686         * nt.c: Remove incorrect declaration of get_home_directory which
14687         is declared correctly in lisp.h.
14688
14689         * keymap.c (get_keyelt): Avoid compiler warnings.
14690         (raw_lookup_key_mapper): Avoid compiler warnings.
14691
14692         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14693
14694         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14695
14696         * filemode.c (mode_string): Avoid compiler warnings.
14697
14698         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14699         avoid warning.
14700
14701         * events-mod.h: Undef some things that winuser.h defines differently.
14702
14703         * data.c (Faset): Avoid compiler warnings.
14704
14705         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14706
14707 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14708
14709         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14710         Fall through to simple beep on error.
14711         Replace "extern" by real header file.
14712
14713         * linuxplay.c: Use nativesound.h
14714         (play_sound_data): Return error code. Be less verbose on error.
14715
14716         * sunplay.c: Use nativesound.h
14717         (play_sound_data): Return error code. Be less verbose on error.
14718
14719         * ntplay.c: Use nativesound.h
14720         (play_sound_data): Return fake error code
14721
14722         * sgiplay.c: Use nativesound.h
14723         (play_sound_data): Return error code
14724
14725         * hpplay.c: Use nativesound.h, partially implement
14726         new error code. Break compilation until finished.
14727         (play_sound_data): error code.
14728
14729         * nativesound.h (play_sound_file):
14730           (play_sound_data): Prototype in new header.
14731
14732 2000-03-31  Andy Piper  <andy@xemacs.org>
14733
14734         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14735         for toggle and radio buttons.
14736         (image_instantiator_buttons): use it.
14737
14738 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14739
14740         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14741         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14742         found. Scrollbar event probably belonged to some old config.
14743
14744 2000-03-31  Andy Piper  <andy@xemacs.org>
14745
14746         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14747         than 1.
14748         (initialize_widget_image_instance): default layout to
14749         LAYOUT_HORIZONTAL rather than 0.
14750         (widget_instantiate): reverse the item list at the end rather than
14751         every iteration.
14752         (layout_layout): re-code for the border text at the front of the
14753         item list rather than at the end.
14754         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14755         provided by the user.
14756         (widget_query_geometry): comment.
14757
14758 2000-03-30  Andy Piper  <andy@xemacs.org>
14759
14760         * glyphs-widget.c (image_instantiator_layout): allow standard
14761         widget keywords in layouts.
14762
14763         * gutter.c (output_gutter): cope with nil gutter contents.
14764
14765         * frame.c (Fset_frame_properties): add gutter docs.
14766
14767 2000-03-29  Andy Piper  <andy@xemacs.org>
14768
14769         * toolbar-msw.c (TBSTYLE_FLAT): add.
14770         (mswindows_output_toolbar): minor fiddling.
14771
14772 2000-03-29  Andy Piper  <andy@xemacs.org>
14773
14774         * gutter.c (output_gutter): force gutter size recalculation if
14775         what we are trying to display won't fit.
14776         (update_gutter_geometry): new function. A per-gutter version of
14777         update_frame_gutter_geometry.
14778         (update_frame_gutter_geometry): use it.
14779         (redraw_exposed_gutter): add extra debugging output.
14780
14781 2000-03-28  Mike Alexander  <mta@arbortext.com>
14782
14783         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14784         (pdump_file_unmap): Implement it on Windows
14785         (pdump_file_get): Save alocated handles for pdump_file_unmap
14786
14787 2000-03-28  Andy Piper  <andy@xemacs.org>
14788
14789         * gui.c (get_gui_callback): treat Quit specially.
14790
14791 2000-03-27  Andy Piper  <andy@xemacs.org>
14792
14793         * glyphs.c (image_instantiate): be careful to check in the same
14794         way we assigned.
14795
14796 2000-03-27  Didier Verna  <didier@xemacs.org>
14797
14798         * config.h.in: define the proper SMART_INCLUDE macro.
14799         handle renaming of `foo_h_path' to `foo_h_file'.
14800
14801         * database.c: ditto.
14802
14803         * emacs.c: ditto.
14804
14805         * linuxplay.c: ditto.
14806
14807         * terminfo.c: ditto.
14808
14809         * tooltalk.h: ditto.
14810
14811 2000-03-27  Andy Piper  <andy@xemacs.org>
14812
14813         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14814         gets updated whenever the face might have changed.
14815
14816 2000-03-26  Mike Alexander  <mta@arbortext.com>
14817
14818         * dumper.c (pdump_resource_free): Fix the comment.
14819
14820 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14821
14822         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14823
14824 2000-03-22  Mike Alexander  <mta@arbortext.com>
14825
14826         * dumper.c: Include Windows headers on Windows
14827         (pdump_resource_free): Add a body to the function
14828         (pdump_load): exe_name -> exe_path and add some comments.
14829
14830 2000-03-25  Mike Alexander  <mta@arbortext.com>
14831
14832         * gui.c (copy_gui_item_tree): Return a value in all cases
14833
14834 2000-03-21  Didier Verna  <didier@xemacs.org>
14835
14836         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14837         lwlib/config.h.in.
14838         (SMART_INCLUDE): new macro.
14839         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14840         the proper location.
14841
14842         * postgresql.c: use it.
14843
14844         * inline.c: ditto.
14845
14846 2000-03-24  Andy Piper  <andy@xemacs.org>
14847
14848         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14849         do this.
14850
14851 2000-03-24  Andy Piper  <andy@xemacs.org>
14852
14853         * redisplay-output.c (compare_runes): use image_instance_changed
14854         to detect changes. Do not depend on glyphs_changed, only depend on
14855         dirtiness.
14856          (redisplay_output_layout): add debug messages.
14857         (compare_runes): ditto.
14858
14859         * glyphs.h: declare new functions.
14860         (struct Lisp_Image_Instance): remove percent and associated
14861         accessors.
14862
14863         * gui.h: declare new copying functions.
14864
14865         * gui.c (copy_gui_item_tree): new function.
14866         (copy_gui_item): new function.
14867         (gui_item_id_hash): revert to standard hash.
14868         (gui_item_hash): ditto.
14869         (gui_item_hash_internal): deleted.
14870         (mark_gui_item): mark value.
14871         (gui_item_add_keyval_pair): add value.
14872         (gui_item_init): ditto.
14873         (gui_add_item_keywords_to_plist): ditto.
14874         (gui_item_equal): ditto.
14875         (syms_of_gui): add Q_value.
14876
14877         * glyphs-x.c (x_progress_gauge_update): use pending items and
14878         value for setting the state.
14879         (x_update_widget): don't set items from pending here.
14880
14881         * glyphs-widget.c (update_widget): update items here.
14882         (progress_gauge_set_property): use items for storing value. Put
14883         new value in pending items.
14884
14885         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14886         items for new value. Convert percent -> value.
14887         (mswindows_tab_control_update): don't update items here.
14888
14889         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14890         (update_subwindow): ditto.
14891         (image_instance_changed): new function. Compare hash values and
14892         past and present widget items.
14893         (image_instantiate): We more careful about where we instantiate
14894         things.
14895         (image_instantiate): add error checking.
14896
14897         * gutter.c (syms_of_gutter): use -hook.
14898
14899 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
14900
14901         * console-tty.c (Fset_console_tty_input_coding_system): Use
14902         Qkeyboard.
14903         (Fset_console_tty_output_coding_system): Use Qterminal.
14904         (tty_init_console): Use Qkeyboard and Qterminal.
14905
14906 2000-03-21  Ben Wing  <ben@xemacs.org>
14907
14908         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14909         From Mike Alexander <mta@arbortext.com>.
14910
14911 2000-03-21  Ben Wing  <ben@xemacs.org>
14912
14913         * event-msw.c (mswindows_need_event): Horrible kludge to fix
14914         process brokenness.  Proper implementation to come.
14915         * callproc.c:
14916         Rename call-process-internal to old-call-process-internal.
14917         New impl. in process.el.
14918
14919 2000-03-21  Martin Buchholz  <martin@xemacs.org>
14920
14921         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14922
14923 2000-03-20  Andy Piper  <andy@xemacs.org>
14924
14925         * glyphs.c (full_list_hash): make hashes of the same elements in
14926         different orders return different values.
14927
14928 2000-03-20  Martin Buchholz <martin@xemacs.org>
14929
14930         * XEmacs 21.2.32 is released.
14931
14932 2000-03-20  Martin Buchholz  <martin@xemacs.org>
14933
14934         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14935         (DFC_MALLOC_USE_CONVERTED_DATA):
14936         Add aliasing-safe casts to allow use with char* or unsigned char*
14937         lvalues.
14938
14939         * eldap.c (Fldap_open):
14940         (Fldap_search_basic):
14941         (Fldap_add):
14942         (Fldap_modify):
14943         Make C++-compilable.
14944         Make sure GCPRO'ed variables are initialized.
14945         Use temp variables to avoid repeated calls to Flength.
14946
14947 2000-03-16  Martin Buchholz  <martin@xemacs.org>
14948
14949         * sysfile.h:
14950         Make sure PATH_MAX is always defined.
14951         Include limits.h for PATH_MAX.
14952         Deprecate use of MAXPATHLEN.
14953
14954 2000-03-10  Martin Buchholz  <martin@xemacs.org>
14955
14956         * emacs.c: Add reinit_vars_of_fileio.
14957         * symsinit.h: Add reinit_vars_of_fileio.
14958         * fileio.c (reinit_vars_of_fileio): New.
14959         * fileio.c (Fmake_temp_name):
14960         Initialize temp_name random number from microseconds to make
14961         collisions even less likely.  Initialize always at process startup
14962         time.  (make-temp-name) used to return the same file name twice in
14963         a row when PDUMP.
14964         Random stylistic fiddling.
14965         Comment fixes.
14966
14967 2000-03-20  Andy Piper  <andy@xemacs.org>
14968
14969         * glyphs.c (image_instantiate): allow text glyphs to be
14970         instantiated in the minibuffer window.
14971
14972 2000-03-19  Andy Piper  <andy@xemacs.org>
14973
14974         * glyphs.c (image_instance_hash): be careful about which items we
14975         hash on.
14976
14977         * glyphs-widget.c (tab_control_set_property): record into pending
14978         items rather than the actual items.
14979
14980         * glyphs-x.c (x_update_widget): use pending items to update with.
14981
14982         * glyphs-msw.c (mswindows_tab_control_update): use pending items
14983         to update with.
14984
14985         * glyphs.c (mark_image_instance): mark pending items.
14986
14987         * window.c (Fset_window_configuration): record the buffer.
14988         (Fselect_window): totally revert previous change which breaks many
14989         things.
14990
14991 2000-03-18  Andy Piper  <andy@xemacs.org>
14992
14993         * glyphs-msw.c (mswindows_tab_control_update): force selected
14994         item.
14995
14996         * glyphs.c (image_instantiate): don't allow the minibuffer as a
14997         window domain cache, otherwise we get inconsistencies at
14998         startup. There is something fishy at startup which can lead to the
14999         minibuffer being the selected window when the gutter content is
15000         instantiated.
15001
15002         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15003         gcpros.
15004         (parse_gui_item_tree_children): ditto.
15005         (parse_gui_item_tree_item): ditto.
15006
15007         * glyphs.c (Fupdate_widget_instances): return something.
15008
15009 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15010
15011         * window.c (Fselect_window): Undo 2000-03-17 change.
15012
15013 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15014
15015         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15016         against v7.0 libraries.  Insta-coredump city until the postgres
15017         folks fix it.
15018
15019 2000-03-17  Andy Piper  <andy@xemacs.org>
15020
15021         * faces.c (complex_vars_of_faces): don't give the widget face an
15022         inherited background pixmap.
15023
15024         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15025         selected item.
15026
15027         * event-stream.c (Fdispatch_non_command_events): return something.
15028
15029         * gutter.c (output_gutter): use widget face.
15030         (clear_gutter): ditto.
15031
15032         * NEWS: adjust again.
15033
15034         * window.c (Fselect_window): make sure this runs to completion to
15035         avoid oddities with Fset_window_configuration.
15036         (Fcurrent_window_configuration): in general do not save the
15037         minibuffer as the selected window.
15038
15039         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15040
15041 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15042
15043         * emacs.c (Frunning_temacs_p): Revert previous patch.
15044         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15045
15046 2000-03-16  Andy Piper  <andy@xemacs.org>
15047
15048         * glyphs-x.c (x_tab_control_update): if no widget values then
15049         return.
15050
15051         * NEWS: update for new features.
15052
15053         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15054         synthetic event to the native system.
15055         (reinit_vars_of_event_Xt): set force_event_pending to
15056         emacs_Xt_force_event_pending.
15057
15058         * events.h (struct event_stream): add force_event_pending.
15059
15060         * specifier.c (recompute_one_cached_specifier_in_window): add
15061         comment.
15062
15063         * redisplay.c (redisplay_frame): don't call
15064         update_frame_subwindows. Reset subwindow cachels when
15065         subwindows_changed, removing this was an optimization too far.
15066
15067         * redisplay-output.c (compare_runes): reorganize so that we catch
15068         glyph changes when we want them. Set optimize_output when this
15069         would help layouts.
15070         (redisplay_output_layout): remove frame_really_changed, use
15071         optimize_output instead.
15072
15073         * redisplay-msw.c (mswindows_output_display_block): reset
15074         optimize_output after outputting a glyph.
15075         * redisplay-x.c (x_output_display_block): ditto.
15076         * redisplay-tty.c (tty_output_display_block): ditto.
15077
15078         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15079         functions.
15080         (gutter_specs_changed): do specific gutter positions.
15081         (top_gutter_specs_changed): new function. Only update the
15082         specified gutter specs.
15083         (bottom_gutter_specs_changed): ditto.
15084         (left_gutter_specs_changed): ditto.
15085         (right_gutter_specs_changed): ditto.
15086
15087         * gui.c (gui_item_hash_internal): new function, does a real hash.
15088         (gui_item_id_hash): use it.
15089         (gui_item_hash): hash the eval'ed gui_item.
15090
15091         * gui-x.c (popup_selection_callback): send an eval event to call
15092         Fupdate_widget_instances.
15093
15094         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15095         to call Fupdate_widget_instances.
15096
15097         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15098         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15099
15100         * glyphs.c: (update_frame_subwindows): deleted.
15101         (Fupdate_widget_instances): new function for updating the dirty
15102         state of widgets that might have changed.
15103         (syms_of_glyphs): add Qupdate_widget_instances.
15104         (full_list_hash): hash a list completely.
15105         (image_instance_hash): use it for items and properties.
15106
15107         * frame-msw.c (mswindows_size_frame_internal): remove unused
15108         variable.
15109
15110         * faces.h (struct face_cachel): fix comment.
15111
15112         * event-stream.c (Fdispatch_non_command_events): new
15113         function. Process non-command events, forcing an event cycle
15114         beforehand.
15115         (syms_of_event_stream): declare.
15116         (event_stream_force_event_pending): new function. Force an event
15117         on the native event queue so that an event cycle will occur next
15118         time we check.
15119
15120         * event-msw.c:
15121         (struct ntpipe_shove_stream):
15122         (mswindows_enqueue_dispatch_event):
15123         (mswindows_dequeue_dispatch_event):
15124         (mswindows_cancel_dispatch_event):
15125         (mswindows_pump_outstanding_events):
15126         (mswindows_drain_windows_queue):
15127         (mswindows_handle_paint):
15128         (mswindows_wnd_proc):
15129         (mswindows_key_to_emacs_keysym):
15130         (get_process_input_waitable):
15131         (emacs_mswindows_delete_stream_pair): re-indent file.
15132         (mswindows_need_event): do not process further fds if the windows
15133         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15134         fixes the 100% cpu problem.
15135         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15136
15137 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15138
15139         * alloc.h: New.
15140         * dumper.h: New.
15141         * dumper.c: New.
15142
15143         * emacs.c: Moved dump file searching to dumper.c.
15144         (Frunning_temacs_p): Fixed.
15145
15146         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15147         last_lrecord_type_index_assigned.
15148
15149 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15150
15151         * symsinit.h: Added reinit parameter to init_console_stream
15152         declaration.
15153
15154         * lisp.h: Added file parameter to pdump_load declaration.
15155
15156         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15157         support.  Added dump file searching.
15158
15159         * config.h.in: Added EMACS_PROGNAME.
15160
15161         * console-stream.c (init_console_stream): Fix reinitialisation
15162         when running from temacs.
15163
15164         * alloc.c (pdump): Add id support.
15165         (pdump_load): Add file parameter and signature/id support.
15166
15167         * Makefile.in.in: Add full pdump support.
15168
15169 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15170
15171         * postgresql.c: Update documentation to reflect latest code
15172         status.
15173         (print_result): Show tuple counts in printed representation when
15174         appropriate.
15175         (Fpq_put_nbytes): MULE-ize.
15176         (Fpq_get_line_async): Ditto.
15177
15178 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15179
15180         * postgresql.c (Fpq_lo_import): Fix return value.
15181         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15182
15183 2000-03-13  Ben Wing  <ben@xemacs.org>
15184
15185         * alloc.c (pdump_load):
15186         Fix compile warning under mswin.
15187
15188 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15189
15190         * postgresql.c: Mule-ization, bug fixes.
15191         Use PG_CODING to encapsulate coding system name changes.
15192         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15193         (pg-coding-system): Create.
15194
15195         (Fpq_conn_defaults): Mule-ize.
15196         (Fpq_connectdb): Mule-ize & bug fix.
15197         (Fpq_connect_start): Mule-ize.
15198         (Fpq_set_client_encoding): Mule-ize.
15199         (Fpq_finish): Document `DEAD' connection status.
15200         (Fpq_clear): Ditto.
15201         (Fpq_pgconn): Mule-ize.
15202         (Fpq_exec): Mule-ize & bug fix.
15203         (Fpq_send_query): Ditto.
15204         (Fpq_get_result): Ditto.
15205         (Fpq_res_status): Mule-ize.
15206         (Fpq_result_error_message): Mule-ize.
15207         (Fpq_ntuples): fix comments.
15208         (Fpq_fname): Mule-ize.
15209         (Fpq_fnumber): Mule-ize.
15210         (Fpq_ftype): fix comments.
15211         (Fpq_get_value): Mule-ize.
15212         (Fpq_cmd_status): Ditto.
15213         (Fpq_cmd_tuples): Ditto.
15214         (Fpq_oid_value): Ditto.
15215         (Fpq_notifies): Ditto.
15216         (Fpq_lo_import): Ditto.
15217         (Fpq_lo_export): Ditto.
15218         (Fpq_get_line): Ditto.
15219         (Fpq_put_line): Mule-ize and bug fix.
15220         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15221
15222 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15223
15224         * postgresql.c (vars_of_postgresql): Mule-ize.
15225         (Fpq_conn_defaults): Ditto.
15226
15227 2000-03-12  Ben Wing  <ben@xemacs.org>
15228
15229         * alloc.c (Fmake_byte_code):
15230         * alloc.c (debug_string_purity_print):
15231         * alloc.c (pdump_backtrace):
15232         * alloc.c (pdump_get_indirect_count):
15233         * alloc.c (pdump_register_sub):
15234         * alloc.c (pdump_register_object):
15235         * alloc.c (pdump_register_struct):
15236         * alloc.c (pdump_dump_data):
15237         * alloc.c (pdump_reloc_one):
15238         Minor cleanups.
15239
15240         * console-msw.c:
15241         * console-msw.c (GetConsoleHwnd):
15242         * console-msw.c (msw_hide_console):
15243         * console-msw.c (msw_show_console):
15244         * console-msw.c (msw_ensure_console_buffered):
15245         * console-msw.c (msw_output_console_string):
15246         * console-msw.c (console_type_create_mswindows):
15247
15248         a) Added functions to manipulate the console window for use with
15249         shell support.
15250
15251         b) Added support for writing text to the console, which is now
15252         used under Windows when xemacs is not being run non-interactively,
15253         to write text that would otherwise be destined for stdout because
15254         under these circumstances, text written to stdout tends to
15255         disappear and not be seen.
15256
15257         * console-msw.h:
15258         * event-Xt.c:
15259         * event-Xt.c (x_event_to_emacs_event):
15260         * event-Xt.c (describe_event_window):
15261         * events-mod.h (XEMACS_MOD_CONTROL):
15262         * events.c:
15263         * events.c (Fmake_event):
15264         * events.c (character_to_event):
15265         * events.c (event_to_character):
15266         * events.c (format_event_object):
15267         * events.c (Fevent_modifiers):
15268         * events.h:
15269         * events.h (struct key_data):
15270         * events.h (struct button_data):
15271         * events.h (struct misc_user_data):
15272         * frame-x.c (Fcde_start_drag_internal):
15273         * frame-x.c (Foffix_start_drag_internal):
15274         * gpmevent.c (Freceive_gpm_event):
15275         * keymap.c:
15276         * keymap.c (bucky_sym_to_bucky_bit):
15277         * keymap.c (control_meta_superify):
15278         * keymap.c (make_key_description):
15279         * keymap.c (keymap_lookup_directly):
15280         * keymap.c (create_bucky_submap):
15281         * keymap.c (keymap_store):
15282         * keymap.c (define_key_check_and_coerce_keysym):
15283         * keymap.c (define_key_parser):
15284         * keymap.c (define_key_alternate_name):
15285         * keymap.c (Fdefine_key):
15286         * keymap.c (raw_lookup_key_mapper):
15287         * keymap.c (struct map_keymap_unsorted_closure):
15288         * keymap.c (map_keymap_unsorted_mapper):
15289         * keymap.c (map_keymap_sort_predicate):
15290         * keymap.c (map_keymap_sorted):
15291         * keymap.c (accessible_keymaps_mapper_1):
15292         * keymap.c (where_is_recursive_mapper):
15293         * keymap.c (describe_map_mapper):
15294         * keymap.c (describe_map_sort_predicate):
15295         * keymap.c (describe_map):
15296         * keymap.c (complex_vars_of_keymap):
15297         And a number of other files, the key modifier preprocessor
15298         constants that xemacs uses have names that conflict with constants
15299         defined under MS Windows for other purposes, so they were renamed
15300         to begin with the prefix XEMACS_. The variables that hold such
15301         modifiers were changed to consistently be of type int to fix
15302         various compile warnings.
15303
15304         * console.c (complex_vars_of_console):
15305         * device.c:
15306         * device-msw.c:
15307         * device-msw.c (mswindows_finish_init_device):
15308         * device-msw.c (msw_get_workspace_coords):
15309         * device-msw.c (mswindows_device_system_metrics):
15310         and various other files, added support for a new
15311         device property called offset-workspace which returns the position
15312         of the upper left corner of the workspace area and goes along with
15313         the existing size-workspace property.
15314
15315         * dialog-msw.c:
15316         * dialog-msw.c (push_bufbyte_string_as_unicode):
15317         * dialog-msw.c (mswindows_popup_dialog_box):
15318         Added support for XEmacs-style accelerator specifications in
15319         button text.  Note: I didn't add support for this under X Windows,
15320         and somebody needs to do this.
15321
15322         * dialog.c:
15323         * dialog.c (Fpopup_dialog_box):
15324         Documented the support for accelerators that was just mentioned.
15325
15326         editfns.c (get_home_directory): Changed behavior under Windows
15327         when HOME not defined; former behavior was irretrievably broken.
15328
15329         * emacs.c:
15330         * emacs.c (main_1):
15331         * emacs.c (main):
15332         * minibuf.c (clear_echo_area_internal):
15333         * minibuf.c (echo_area_append):
15334         * print.c:
15335         * print.c (std_handle_out_external):
15336         * print.c (std_handle_out_va):
15337         * print.c (fatal):
15338         * print.c (write_string_to_stdio_stream):
15339         * print.c (output_string):
15340         * print.c (debug_print):
15341         * print.c (debug_backtrace):
15342         * print.c (debug_short_backtrace):
15343         Cleaned up the code that prints text to stdout so that this can be
15344         changed to output into a console window instead under MS Windows,
15345         as described above.
15346
15347         * eval.c:
15348         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15349         * eval.c (internal_catch):
15350         * eval.c (unwind_to_catch):
15351         * eval.c (throw_or_bomb_out):
15352         * eval.c (condition_case_1):
15353         * eval.c (signal_1):
15354         * eval.c (check_error_state_sanity):
15355         * eval.c (call_with_suspended_errors_1):
15356         * eval.c (call_with_suspended_errors):
15357         * eval.c (reinit_vars_of_eval):
15358         Added code to catch throw loops and check for a pesky bug that may
15359         be gone now.
15360
15361         * event-msw.c:
15362         * event-msw.c (key_needs_default_processing_p):
15363         * event-msw.c (mswindows_wnd_proc):
15364         * event-msw.c (mswindows_modifier_state):
15365         * event-msw.c (emacs_mswindows_quit_p):
15366         * event-msw.c (vars_of_event_mswindows):
15367         a) Added support for using the alt key to select menu items as is
15368         standard under MS Windows.  This is controlled using the variable
15369         menu-accelerator-enabled, just like under X Windows.  There is an
15370         option on the options menu to turn this support on.  I really
15371         think that it should be on by default under Windows, but I'm not
15372         going to make this change yet.
15373
15374         b)  Added support for dynamic display size changes under Windows.
15375
15376         * event-stream.c:
15377         * event-stream.c (maybe_echo_keys):
15378         * event-stream.c (Fnext_event):
15379         * event-stream.c (command_builder_find_leaf):
15380         * event-stream.c (lookup_command_event):
15381         * event-stream.c (execute_command_event):
15382         * event-stream.c (pre_command_hook):
15383         * event-stream.c (post_command_hook):
15384         * event-stream.c (syms_of_event_stream):
15385         * event-stream.c (vars_of_event_stream):
15386         * event-stream.c (complex_vars_of_event_stream):
15387         * events.h (struct command_builder):
15388
15389         a) Tried to clean up a little bit the horribly written x-specific
15390         accelerator code that crept into this file.  I moved this code
15391         into menubar-x.c where it belongs. I also needed to move the
15392         command builder structure into the file events.h because it is
15393         accessed directly by this accelerator code.  What I didn't do, but
15394         which should be done at some point, is to properly abstract this
15395         code using device methods instead of the kludgy way that it
15396         currently hooks into the event code.
15397
15398         b) Added the lisp variables this-command-properties and
15399         last-command- properties, which should be used to synchronize two
15400         adjacent commands in preference to playing games with the variable
15401         this-command, which is typically what happens.
15402
15403         c) Added some slightly nasty code to hook into the lisp support
15404         for shifted- motion-key selection.  This is actually necessary for
15405         somewhat complicated reasons, which are described in
15406         simple.el. (NB: I think the proper thing would be to have the code
15407         that calls the pre and post command hooks also call out to generic
15408         lisp functions in simple.el, where all built-in stuff could be
15409         added.  I will think about this more.)
15410
15411         * event-unixoid.c (poll_fds_for_input):
15412         * lread.c (readchar):
15413         * redisplay-tty.c (tty_clear_frame):
15414         * redisplay-x.c (x_get_gc):
15415         * signal.c (interrupt_signal):
15416         And a whole bunch of other files: fixed up places that printed
15417         directly to stderr to instead call the function stderr_out so that
15418         the changes I made under Windows work correctly.
15419
15420         * filemode.c (mode_string):
15421         Warning fixes.
15422
15423         * frame-msw.c:
15424         * frame-msw.c (mswindows_size_frame_internal):
15425         Fixed the computation of frame size and position to keep the frame
15426         within the workspace area, rather than within the physical
15427         dimensions of the screen, so that the frame doesn't overlap window
15428         manager decorations, such as the start menu and toolbar, typically
15429         at the bottom of the screen.
15430
15431         * frame.c (vars_of_frame):
15432         Changed the default frame title format under MS Windows to consist
15433         of buffername-XEmacs, which is standard under MS Windows.  I think
15434         it might be a good idea to change this everywhere because I think
15435         it is superior to the current frame title format, but this is the
15436         kind of change that is likely to cause some people to get annoyed,
15437         so I'm not making it.
15438
15439         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15440
15441         * gui-msw.c (mswindows_handle_gui_wm_command):
15442         Fixed compile warnings.
15443
15444         * gui-x.c:
15445         * gui-x.c (strdup_and_add_accel):
15446         * gui-x.c (button_item_to_widget_value):
15447         * gui-x.h:
15448         Added code to automatically put an accelerator onto the beginning
15449         of menu items that don't have one as is now the standard, and is
15450         described more later.  Also fixed things so that the menu item
15451         name can be an evaluated expression, again a new standard.
15452
15453         * gui.c:
15454         * gui.c (gui_item_add_keyval_pair):
15455         * gui.c (make_gui_item_from_keywords_internal):
15456         * gui.c (gui_add_item_keywords_to_plist):
15457         * gui.c (gui_item_accelerator):
15458         * gui.c (gui_name_accelerator):
15459         * gui.c (gui_item_included_p):
15460         * gui.c (gui_item_display_flush_left):
15461         * gui.c (gui_item_display_flush_right):
15462         * gui.c (parse_gui_item_tree_item):
15463         * gui.c (parse_gui_item_tree_children):
15464         * gui.c (parse_gui_item_tree_list):
15465         Mule-ized.  Cleanup.  GCPRO addition.
15466
15467         * line-number.c (buffer_line_number):
15468         * lisp.h:
15469         * lisp.h (EMACS_INT_MAX):
15470         Added the manifest constant EMACS_INT_MIN corresponding to the
15471         existing constant EMACS_INT_MAX.  This is partially to fix compile
15472         warnings under Windows, and partly for cleanliness.
15473
15474         * menubar-msw.c:
15475         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15476         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15477         * menubar-msw.c (displayable_menu_item):
15478         * menubar-msw.c (populate_menu_add_item):
15479         * menubar-msw.c (populate_or_checksum_helper):
15480         * menubar-msw.c (populate_menu):
15481         * menubar-msw.c (update_frame_menubar_maybe):
15482         * menubar-msw.c (prune_menubar):
15483         * menubar-msw.c (msw_char_is_accelerator):
15484         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15485         * menubar-msw.c (mswindows_handle_wm_command):
15486         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15487         * menubar-msw.c (mswindows_handle_wm_initmenu):
15488         * menubar-msw.c (mswindows_update_frame_menubars):
15489         * menubar-msw.c (mswindows_free_frame_menubars):
15490         * menubar-msw.c (mswindows_popup_menu):
15491         Fixed a bug in handling accelerators where an extra character
15492         would be displayed in the menu item.  Also generalized the
15493         function displayable_menu_item because it is now used by the
15494         dialog box code as well.  And finally, added code in the functions
15495         that create the menubar to extract a list of accelerators for the
15496         top level menubar, which is used in the event code to determine
15497         whether a particular alt-key combination should be used to invoke
15498         a menu item, or should be passed through to access the standard
15499         XEmacs keymap binding for this key combination.
15500
15501         Much needed GCPROing.
15502
15503         * menubar-x.c:
15504         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15505         * menubar-x.c (menu_item_descriptor_to_widget_value):
15506         * menubar-x.c (restore_in_menu_callback):
15507         * menubar-x.c (x_popup_menu):
15508         * menubar-x.c (menu_move_up):
15509         * menubar-x.c (menu_move_down):
15510         * menubar-x.c (menu_move_left):
15511         * menubar-x.c (menu_move_right):
15512         * menubar-x.c (menu_select_item):
15513         * menubar-x.c (command_builder_operate_menu_accelerator):
15514         * menubar-x.c (menu_accelerator_junk_on_error):
15515         * menubar-x.c (command_builder_find_menu_accelerator):
15516         * menubar-x.c (Faccelerate_menu):
15517         * menubar.h:
15518         Moved a whole bunch of code here that was previously in
15519         event-stream.c as described above.  There is also code connected
15520         to the new standard of adding an accelerator to the beginning of
15521         menu items that don't have one as described above and below.
15522
15523         * menubar.c:
15524         * menubar.c (menu_parse_submenu_keywords):
15525         * menubar.c (Fmenu_find_real_submenu):
15526         * menubar.c (Fnormalize_menu_item_name):
15527         * menubar.c (syms_of_menubar):
15528         * menubar.c (vars_of_menubar):
15529         * menubar.c (complex_vars_of_menubar):
15530
15531         a) Cleaned up a bunch of documentation and improved it.
15532
15533         b) XEmacs now automatically adds an accelerator onto the beginning
15534         of any menu items that don't have one.  I did this because there
15535         will inevitably be some menu items on the main menubar that don't
15536         have accelerators on them because the package that adds that
15537         particular menu item hasn't yet been fixed up to have accelerators
15538         in them and it looked rather strange to have some items with and
15539         some items without accelerators, especially since even in items
15540         without accelerators, you can, at least under windows, still
15541         access the item through an accelerator corresponding to the first
15542         character in the item's name.  If people don't like this behavior,
15543         I can add a variable to turn it off optionally, but I'm not sure
15544         this is a good idea because we really do need to have accelerators
15545         on all of the menu items, and if a package doesn't like the
15546         accelerators being put on the first character, then it should put
15547         the accelerators where they belong.
15548
15549         c) I made a behavior change, which is that the descriptor that
15550         specifies the text of the menu item, which formerly was just a
15551         string, can now also be an evaluated expression.  This makes this
15552         descriptor parallel with all of the others, which could also be
15553         evaluated expressions.  This also obviates the need for the
15554         keyword :label, which was previously listed in the documentation
15555         as unimplemented, and which was for the same purpose.
15556
15557         d) GCPROing.
15558
15559         * ntproc.c:
15560         * ntproc.c (new_child):
15561         * ntproc.c (sys_spawnve):
15562         * ntproc.c (find_child_console):
15563         * ntproc.c (sys_kill):
15564         Fixed compile warnings.  By the way, this file should really go
15565         away entirely, and this will happen as soon as Kirill makes his
15566         final round of process cleanups, which affect the function
15567         call-process.
15568
15569         * process-nt.c:
15570         * process-nt.c (struct nt_process_data):
15571         * process-nt.c (find_process_from_pid):
15572         * process-nt.c (send_signal_the_nt_way):
15573         * process-nt.c (enable_child_signals):
15574         * process-nt.c (find_child_console):
15575         * process-nt.c (send_signal_the_95_way):
15576         * process-nt.c (nt_finalize_process_data):
15577         * process-nt.c (ensure_console_window_exists):
15578         * process-nt.c (nt_create_process):
15579         * process-nt.c (nt_kill_child_process):
15580         * process-nt.c (nt_kill_process_by_pid):
15581         * process-nt.c (nt_open_network_stream):
15582         * process-nt.c (vars_of_process_nt):
15583         Copied over code from Emacs 20.5 to correctly send signals to sub-
15584         processes under Windows 95.  Also added code to automatically
15585         create and hide console window when a sub-process is created under
15586         Windows 95, which obviates the need for the separate runemacs.exe
15587         executable, and finally implemented some variables that were
15588         implemented in Emacs 20.5, but previously not in XEmacs.  These
15589         include mswindows- start-process-share-console and
15590         mswindows-start-process-inherit-error-mode. (Both of these only
15591         apply to Windows 95.)
15592
15593         * regex.c (regex_compile): Fixed a compile warning.
15594
15595         * select-msw.c:
15596         * select-msw.c (mswindows_own_selection):
15597         * select-msw.c (mswindows_get_foreign_selection):
15598         * select-msw.c (mswindows_disown_selection):
15599         * select-msw.c (console_type_create_select_mswindows):
15600         * select-msw.c (syms_of_select_mswindows):
15601         Cleaned up the file and implemented the device method
15602         selection_exists_p, which had accidentally been left out.  Also
15603         removed four lisp functions that were remnants from before the
15604         time when the selection code was properly device abstracted.
15605         These functions are no longer needed because there are generic
15606         equivalents, and because they were added recently and don't exist
15607         in FSF Emacs, I don't think there's any problem with just deleting
15608         them.
15609
15610         * sysdep.c:
15611         * sysdep.c (sys_subshell):
15612         Fixed a compile warning, although in this case there's probably
15613         something wrong with this code, and it ought to be looked into
15614         more thoroughly by somebody who understands it.
15615
15616         * window.c:
15617         * window.c (Fwindow_text_area_height):
15618         * window.c (Fwindow_width):
15619         * window.c (Fwindow_full_width):
15620         * window.c (Fwindow_pixel_width):
15621         * window.c (debug_print_window):
15622         * window.c (syms_of_window):
15623         Added functions window-text-area-height and window-full-width,
15624         which are functions for returning various width and height
15625         characteristics of a window. (One of these functions is necessary
15626         for making the file dialog box work correctly, and the other one
15627         was added for completeness.)  Also added a table to the
15628         documentation for window-height which describes the entire scheme
15629         for accessing width and height characteristics of a window.
15630
15631 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15632
15633         * nt.c (fstat): Added a comment for another problem with
15634         non-encapsulated [f]stat(), reported by Adrian Aichner
15635         <aichner@ecf.teradyne.com>.
15636
15637 2000-03-11  Andy Piper  <andy@xemacs.org>
15638
15639         * window.c (make_dummy_parent): initialize subwindow instance
15640         cache.
15641         (Fset_window_configuration): zero extent_modiff.
15642
15643 2000-03-10  Andy Piper  <andy@xemacs.org>
15644
15645         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15646         more changes can be triggered.
15647         (Fredisplay_frame): ditto.
15648         (Fredraw_device): ditto.
15649         (Fredisplay_device): ditto.
15650         (redisplay_frame): make non-static.
15651         (redisplay_frame): call update_frame_gutter_geometry outside of
15652         display proper.
15653
15654         * gutter.h: declare update_frame_gutter_geometry.
15655
15656         * redisplay.h: declare redisplay_frame.
15657
15658         * gutter.c (update_frame_gutter_geometry): move geometry changes
15659         in update_frame_gutters here. Geometry changes can only occur
15660         outside of redisplay.
15661         (update_frame_gutters): remove geometry change code.
15662         (Fredisplay_gutter_area): make sure that we are in display when we
15663         update and that we have flushed any size changes.
15664
15665 2000-03-11  Andy Piper  <andy@xemacs.org>
15666
15667         * alloc.c (pdump_dump_data): remove i & count shadows.
15668
15669 2000-02-27  Mike Alexander  <mta@arbortext.com>
15670
15671         * sysdep.h: Declare pdump_read_file
15672
15673         * sysdep.c (pdump_read_file): New function
15674
15675         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15676         dump data
15677
15678 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15679
15680         * lrecord.h: add `lrecord_type_pgsetenv'.
15681
15682 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15683
15684         * symsinit.h: declare (vars|syms)_of* functions.
15685         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15686
15687 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15688
15689         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15690
15691         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15692         GCCs.
15693
15694         * emacs.c (main_1): Call postgres initialization code.
15695
15696         * postgresql.h: New file.  PostgreSQL RDBMS support.
15697         * postgresql.c: New file.
15698
15699 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15700
15701         * redisplay-output.c (redisplay_output_display_block): Disable
15702         redundant code.
15703
15704 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15705
15706         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15707         (Fcanna_henkan_next): Ditto.
15708         (Fcanna_bunsetu_henkou): Ditto.
15709         (Fcanna_henkan_kakutei): Ditto.
15710         (Fcanna_henkan_end): Ditto.
15711         (Fcanna_henkan_quit): Ditto.
15712         (Fcanna_henkan_next): Set retun value correctly.
15713         (c2mu): Use unsigned char instead of signed char.
15714
15715 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15716
15717         * emacs.c (main_1): Always call syms_of_gui.
15718         * inline.c: include gui.h
15719
15720 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15721
15722         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15723         converted to Lisp_Object.
15724         (Qtop_bottom): New variable.
15725         (syms_of_redisplay): Initialize it.
15726         * redisplay.h (Vvisible_bell): Ditto.
15727         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15728         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15729         only flash top and bottom.
15730
15731 2000-03-08  Andy Piper  <andy@xemacs.org>
15732
15733         * buffer.c (Frename_buffer): record new buffer name the right way.
15734
15735 2000-03-08  Andy Piper  <andy@xemacs.org>
15736
15737         * glyphs.c (update_subwindow): increase hash depth so that widget
15738         items get picked up properly.
15739
15740         * redisplay-output.c (compare_runes): increase hash depth so that
15741         widget items get picked up properly.
15742
15743 2000-03-08  Andy Piper  <andy@xemacs.org>
15744
15745         * gutter.c (output_gutter): add some debug.
15746
15747         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15748         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15749         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15750
15751         * redisplay-output.c (compare_runes): use display_hash to
15752         determine if glyphs really are not the same.
15753
15754         * glyphs.c (update_subwindow): check display_hash to see if
15755         anything really needs to be updated. If not then do
15756         nothing. Record the display_hash after updating.
15757         (image_instance_equal): compare the image_instance face also.
15758
15759 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15760
15761         * redisplay.h: Fix comment style.
15762
15763 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15764
15765         * consle-msw.h (struct mswindows_frame):
15766         Added new member paint_pending to indicate whether a WM_PAINT
15767         magic event has been queued for this frame.
15768
15769         * event-msw.c (mswindows_drain_windows_queue):
15770         Don't queue a WM_PAINT magic event if one is already queued.
15771         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15772
15773         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15774
15775 2000-03-07  Didier Verna  <didier@xemacs.org>
15776
15777         * dired.c: #include `regex.h' after `sysfile.h'.
15778
15779 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15780
15781         * sound.c (init_nas_sound): Fix compiler warning.
15782
15783         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15784         (FREE_STRUCT_P):
15785         (MARK_STRUCT_AS_FREE):
15786         (MARK_STRUCT_AS_NOT_FREE):
15787         Make `gcc -fstrict-aliasing' work properly.
15788
15789 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15790
15791         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15792         (mswindows_delete_device): Call CoUnnitialize().
15793
15794         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15795
15796 2000-02-25    <CraigL@DyCon.com>
15797
15798         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15799         <errno.h>.
15800
15801         * sysdep.c: This extern declaration for environ prevents MinGW
15802         from finding the variable in CRTDLL.DLL.
15803
15804         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15805         windows headers.
15806         (SHGFI_EXETYPE): ..
15807         (WM_MOUSEWHEEL): ..
15808         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15809         definitions.
15810         (MMRESULT): Removed, now defined in cygwin's windows headers.
15811         (TIMECAPS): ..
15812         (uid_t,gid_t,pid_t,ssize_t): ..
15813         (_timeb): Removed, MinGW defines both _timeb and timeb.
15814         (HAVE_H_ERRNO): Added.
15815         (HAVE_TZNAME): Added, configure is not detecting this.
15816
15817 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15818
15819         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15820         * syntax.c (syntax_match): Use it.
15821
15822         * cmds.c: Import auto-fill-chars from FSF Emacs.
15823         (Vauto_fill_chars): New variables.
15824         (internal_self_insert): Check Vauto_fill_chars.
15825         (vars_of_cmds):
15826         Declare auto-fill-chars as a Lisp variable and initialize it.
15827
15828 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15829
15830         * fileio.c (Fmake_symbolic_link):
15831         (Ffile_symlink_p):
15832         Run handlers even if local machine doesn't have symlinks.
15833
15834 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15835
15836         * event-msw.c (mswindows_drain_windows_queue):
15837         Don't generate paint magic events for non-XEmacs frames.
15838
15839 2000-03-05  Andy Piper  <andy@xemacs.org>
15840
15841         * redisplay.c (redisplay_frame): generate_displayable_area and
15842         friends assumes that we are not in GC, we therefore have to make
15843         sure that this doesn't happen.
15844
15845         * gutter.c (calculate_gutter_size): generate_displayable_area
15846         assumes that we are not in GC, we therefore have to make sure that
15847         this doesn't happen.
15848
15849 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15850
15851         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15852
15853 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15854
15855         * redisplay.c (regenerate_window): Make sure we set a sane value
15856         for end_pos even if we jump out of the loop.
15857         (regenerate_window): Answer Ben's question :-).
15858         (start_end_of_last_line): Add may_error argument.
15859         (start_of_last_line):
15860         (end_of_last_line): Pass may_error = 0.
15861         (end_of_last_line_may_error): New function.
15862         (pixel_to_glyph_translation): Use it, so we don't crash in
15863         event_to_glyph.
15864
15865 2000-03-04  Andy Piper  <andy@xemacs.org>
15866
15867         * window.h (struct window): add gutter_extent_modiff.
15868
15869         * window.c (allocate_window): zero out gutter_extent_modiff.
15870
15871         * redisplay.h: declare sync_display_line_structs.
15872
15873         * redisplay.c (add_glyph_rune): add a better comment.
15874
15875         * redisplay-output.c (sync_display_line_structs): made non-static.
15876         (compare_runes): remove unneccesary glyph cachel access.
15877
15878         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15879
15880         * gutter.c (output_gutter): don't output the gutter if extent
15881         changes only involve extents in buffers. use 4 sets of display
15882         lines.
15883         (gutter_extent_signal_changed_region_maybe): new function. Mark
15884         extents in gutters as changed.
15885         (update_frame_gutters): use 4 sets of display lines.
15886         (reset_gutter_display_lines): ditto.
15887         (free_frame_gutters): ditto.
15888         (redraw_exposed_gutter): force output of gutters.
15889
15890         * frame.h (struct frame): add 4 sets of gutter display lines.
15891
15892         * extents.c: (extent_changed_for_redisplay): signal changes to
15893         extents in strings in the gutter as well as extents in buffers.
15894
15895 2000-03-02  Andy Piper  <andy@xemacs.org>
15896
15897         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15898
15899         * frame.c (Fmake_frame): make sure the gutters get initialized
15900         after the frame is visible.
15901         (set_frame_selected_window): re-arrange compilation macros a
15902         little.
15903         (change_frame_size_1): mark gutters changed.
15904
15905         * device.c (Fset_device_class): mark gutters changed.
15906
15907 2000-03-01  Andy Piper  <andy@xemacs.org>
15908
15909         * window.c (window_top_frame_gutter_height): deleted.
15910         (window_bottom_frame_gutter_height): ditto.
15911         (window_left_frame_gutter_height): ditto.
15912         (window_right_frame_gutter_height): ditto.
15913         (window_top_gutter_height): don't use them.
15914         (window_bottom_gutter_height): ditto.
15915         (window_left_gutter_width): ditto.
15916         (window_right_gutter_width): ditto.
15917         (Fsplit_window): ditto.
15918         (Fwindow_pixel_edges): don't use border dimensions here.
15919
15920         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15921         (update_scrollbar_instance): ditto.
15922
15923         * redisplay.c (generate_modeline): don't take gutters into account.
15924         (generate_modeline): ditto.
15925         (redisplay_frame): small gutter display optimization.
15926
15927         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15928
15929         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15930         gutters into account.
15931
15932         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15933         for window position and type.
15934
15935         * gutter.c (get_gutter_coords): fix for frame gutters.
15936         (update_frame_gutters): update frame geometry if the gutters have
15937         changed.
15938         (init_frame_gutters): record current gutter geometries.
15939
15940         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15941         var.
15942         (mswindows_widget_instantiate): ditto.
15943
15944         * frame.h (struct frame): add current_gutter_bounds.
15945
15946         * frame.c (change_frame_size_1): position window and minibuffer
15947         appropriately taking into account the frame gutters.
15948
15949         * frame-x.c: (x_initialize_frame_size): take into account the
15950         frame gutters.
15951
15952 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15953
15954         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
15955
15956 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15957
15958         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15959
15960 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15961
15962         * file-coding.c (reset_decoding_stream): Clear previous
15963         detection state when autodetect.
15964
15965 2000-02-29  Didier Verna  <didier@xemacs.org>
15966
15967         * extents.c (set_extent_glyph_1): don't require extents to be
15968         attached.
15969
15970 2000-02-27  Andy Piper  <andy@xemacs.org>
15971
15972         * gutter.c (Fset_default_gutter_position): don't default left and
15973         right gutter visibility to t.
15974         (Fset_default_gutter_position): run
15975         default-gutter-position-changed-hook.
15976         (syms_of_gutter): add default-gutter-position-changed-hook.
15977
15978 2000-02-26  Andy Piper  <andy@xemacs.org>
15979
15980         * specifier.c (Fmake_specifier): add gutter references.
15981
15982         * gutter.h (RAW_WINDOW_GUTTER): new macro.
15983
15984         * lisp.h: declare Fvalid_plist_p.
15985
15986         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15987         as changed.
15988         (default_gutter_visible_p_changed_in_window): invalidate gutter as
15989         well as its visibility so that it gets reconstructed.
15990         (construct_window_gutter_spec): new function. Construct a string
15991         to be displayed in the gutter from a plist of strings. Take care
15992         to only use elements that are declared as visible.
15993         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15994         WINDOW_GUTTER.
15995         (gutter_validate): allow plists of strings in the specifier.
15996         (gutter_specs_changed): construct the real_gutter from the gutter
15997         specs using construct_window_gutter_spec.
15998         (gutter_visible_validate): gutter-visible is a new specifier type.
15999         (Fgutter_visible_specifier_p): new function for the new specifier.
16000         (syms_of_gutter): declare gutter-visible and
16001         Fgutter_visible_specifier_p.
16002         (specifier_type_create_gutter): intitalize new gutter-visible
16003         specifier.
16004         (reinit_specifier_type_create_gutter): ditto.
16005         (specifier_vars_of_gutter): use new specifier type for gutter
16006         visibility.
16007         (init_frame_gutters): construct real_gutter correctly.
16008         (Fgutter_specifier_p): beef up documentation.
16009         (Fgutter_size_specifier_p): ditto.
16010
16011         * winslots.h: add real_gutter slots.
16012
16013 2000-02-25  Andy Piper  <andy@xemacs.org>
16014
16015         * device-msw.c: Be kind to older cygwin versions. From Raymond
16016         Toy <toy@rtp.ericsson.se>.
16017
16018         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16019         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16020
16021 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16022
16023         * elhash.c (MARK_OBJ): Practice macro hygiene.
16024
16025 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16026
16027         * miscplay.c: s/__inline__/inline/g;
16028         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16029         (get_device_compdc): INLINE ==> static inline
16030         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16031         find -name '*.h' | \
16032         xargs global-replace \
16033         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16034
16035 2000-02-25  Andy Piper  <andy@xemacs.org>
16036
16037         * window.c (window_top_frame_gutter_height): new function.
16038         (window_top_window_gutter_height): ditto.
16039         (window_top_gutter_height): use them.
16040         (window_bottom_frame_gutter_height): new function.
16041         (window_bottom_window_gutter_height): ditto.
16042         (window_bottom_gutter_height): use them.
16043         (window_left_window_gutter_width): new function.
16044         (window_left_frame_gutter_width): ditto.
16045         (window_left_gutter_width): use them.
16046         (window_right_window_gutter_width): new function.
16047         (window_right_frame_gutter_width): ditto.
16048         (window_right_gutter_width): use them.
16049         (window_pixel_height): new function. calulate window pixel height
16050         with frame gutter involvement.
16051         (Fsplit_window): calculate new sizes taking frame gutters into
16052         account.
16053         (window_char_height_to_pixel_height): don't include frame gutters.
16054         (window_char_height): use window_pixel_height.
16055         (window_pixheight): rename from window_pixel_height.
16056         (change_window_height): use it.
16057         (window_pixel_height_to_char_height): don't include frame gutters.
16058         (window_char_width_to_pixel_width): ditto.
16059
16060 2000-02-25  Andy Piper  <andy@xemacs.org>
16061
16062         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16063         if it is.
16064
16065 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16066
16067         * alloc.c (staticpro):
16068         (staticpro_nodump):
16069         (dumpstruct):
16070         (dumpopaque):
16071         (pdump_wire):
16072         (pdump_wire_list):
16073         (compact_string_chars):
16074         (pdump_dump_wired):
16075         Convert:  if (foo) abort();  ==>  assert (! foo);
16076
16077         * eldap.c (Fldap_search_basic):
16078         (Fldap_add):
16079         (Fldap_modify):
16080         (Fldap_delete):
16081         Fix compiler warnings, and possible crashes if (random) return
16082         value were to be used.
16083
16084 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16085
16086         * device-msw.c: Workaround ResetDC failure.
16087
16088         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16089         applying a devmode.
16090
16091         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16092         (mswindows_text_width): Do not start printer page.
16093
16094         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16095
16096         * glyphs-msw.c: Added image methods to msprinter console and
16097         msprinter-specific image instantiation.
16098
16099 2000-02-20  Mike Alexander  <mta@arbortext.com>
16100
16101         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16102         to avoid crashes when selection-sets-clipboard is on
16103         (mswindows_own_selection): ditto
16104
16105 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16106
16107         * glyphs-msw.c:
16108         * redisplay-msw.c (get_frame_dc):
16109         (get_frame_compdc):
16110         * console-msw.h:
16111         * device-msw.c (mswindows_init_device):
16112         (mswindows_delete_device):
16113         (msprinter_init_device):
16114         (msprinter_delete_device):
16115         * frame-msw.c (mswindows_init_frame_1):
16116         (mswindows_delete_frame):
16117         (msprinter_init_frame_3):
16118         (msprinter_delete_frame): Move compatible DC to device object from
16119         frame object, for both mswindows and msprinter. Only one at a time
16120         is needed, it is a real waste to have one per frame!
16121
16122 2000-02-23  Andy Piper  <andy@xemacs.org>
16123
16124         * glyphs.c: add dynamic width and height elements.
16125         (image_instance_equal): ditto.
16126
16127         * glyphs-widget.c (widget_query_geometry): calculate width and
16128         height dynamically if required.
16129         (initialize_widget_image_instance): initialize dynamic dimensions.
16130         (widget_instantiate): pick-up dynamic dimensions.
16131
16132         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16133         dynamic determination. Add appropriate macros.
16134
16135         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16136         dimensions safe.
16137         (WINDOW_GUTTER_SIZE): ditto.
16138         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16139
16140         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16141         inline.
16142         (get_frame_dc): ditto.
16143
16144         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16145         here.
16146
16147 2000-02-23  Martin Buchholz <martin@xemacs.org>
16148
16149         * XEmacs 21.2.31 is released.
16150
16151 2000-02-22  Ben Wing <ben@xemacs.org>
16152
16153         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16154
16155 2000-02-22  Andy Piper  <andy@xemacs.org>
16156
16157         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16158
16159 2000-02-21  Mike Sperber <mike@xemacs.org>
16160
16161         * .dbxrc:
16162         * .gdbinit:
16163         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16164         variables.
16165
16166 2000-02-21  Mike Sperber <mike@xemacs.org>
16167
16168         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16169
16170 2000-02-21  Martin Buchholz <martin@xemacs.org>
16171
16172         * XEmacs 21.2.30 is released.
16173
16174 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16175
16176         Performance hacking.
16177         * *.c (syms_of_*):
16178         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16179         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16180         * emacs.c (main_1):
16181         * lisp.h (DEFUN):
16182         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16183         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16184         * symeval.h (DEFVAR_SYMVAL_FWD):
16185         * symbols.c (guts_of_unbound_marker):
16186         Make all c_readonly objects also lisp_readonly and marked for life.
16187         * lrecord.h (struct lrecord_implementation):
16188         Document flags better.
16189         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16190         * lrecord.h (DECLARE_LRECORD):
16191         * lrecord.h (XSETRECORD):
16192         * lrecord.h (RECORDP):
16193         * lrecord.h (RECORD_TYPEP):
16194         * lrecord.h (RECORD_MARKER): New.
16195         * lrecord.h (error_check_*):
16196         * lrecord.h (CONCHECK_NONRECORD):
16197         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16198         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16199         * lrecord.h (set_lheader_implementation):
16200         * lrecord.h (enum lrecord_type): New.
16201         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16202         * alloc.c (disksave_object_finalization_1):
16203         * alloc.c (mark_object):
16204         * alloc.c (lrecord_type_index):
16205         * alloc.c (tick_lcrecord_stats):
16206         * alloc.c (Fgarbage_collect):
16207         * alloc.c (init_alloc_once_early):
16208         * alloc.c (pdump_load):
16209         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16210         * alloc.c (lrecord_type_index): Delete.
16211         Make lisp object type indexes be constant.
16212           Makes (byte-compile) 5% faster.
16213         Put all marker functions into their own array.
16214           Makes (garbage-collect) 5% faster.
16215         Optimize SYMBOL_VALUE_MAGIC_P.
16216           Makes (byte-compile) 2-3% faster.
16217         * config.h.in (gc_checking_assert): New.
16218         * alloc.c: Use gc_checking_assert().
16219         * .dbxrc: Make compatible with new object type implementation.
16220         * .gdbinit: Make compatible with new object type implementation.
16221         * alloc.c: Delete all symbols defined only for debugging, such as
16222         Lisp_Type_Vector and lrecord_charset.
16223
16224 2000-02-21  Andy Piper  <andy@xemacs.org>
16225
16226         * gui-msw.c (Fmswindows_shell_execute): fix file location
16227         problems.
16228
16229         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16230         unshowing so that set_window_buffer doesn't undo
16231         kill_buffer_hook's hard work.
16232
16233         * glyphs-widget.c (tab_control_query_geometry): don't count the
16234         first item when calculating geometry.
16235
16236         * glyphs.c (map_subwindow): remove redundant code.
16237         (update_frame_subwindows): be more circumspect about when to
16238         update subwindows.
16239
16240         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16241         when items haven't changed. Update faces if faces have changed as
16242         well as just the widget face.
16243         (x_tab_control_update): Update faces if faces have changed as well
16244         as just the widget face.
16245
16246 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16247
16248         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16249         registration.
16250         (build_syscolor_string): Use mswindows_color_to_string to try to
16251         get a named color.
16252         (mswindows_device_system_metrics): Reverse the foreground and
16253         background colors so that they match the documentation.
16254
16255         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16256         they match the default Windows palette.
16257         (mswindows_color_to_string): New function.
16258
16259 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16260
16261         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16262
16263 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16264
16265         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16266         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16267
16268         * symbols.c (init_symbols_once_early): Removed obsolete
16269         DATA_SEG_BITS related kludge.
16270         (defvar_magic): Ditto.
16271
16272         * malloc.c: Removed obsolete DATA_SEG_BITS
16273         * ralloc.c: Ditto.
16274         * mem-limits.h: Ditto.
16275
16276         * Makefile.in.in: Removed obsolete HAVE_SHM
16277         * emacs.c: Ditto.
16278
16279 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16280
16281         *  device-msw.c (mswindows_delete_device): Free DDE string
16282         handles.
16283
16284 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16285
16286         * keymap.c (get_keyelt):
16287         * unexnt.c (unexec):
16288         * vm-limit.c (memory_warnings):
16289         * ntheap.c (recreate_heap):
16290         * ntheap.h (UNINIT_PTR):
16291         * select-msw.c (Fmswindows_get_clipboard):
16292         (Fmswindows_set_clipboard):
16293         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16294         * objects-msw.c:
16295         * menubar-msw.c (displayable_menu_item):
16296         * glyphs-msw.c:
16297         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16298         * sysdep.c (sys_subshell):
16299         * process-nt.c (nt_create_process):
16300         * nt.c (normalize_filename):
16301         (dostounix_filename):
16302         (unixtodos_filename):
16303         * ntproc.c (win32_executable_type):
16304         * ntplay.c (play_sound_data_1):
16305         (play_sound_file):
16306         * editfns.c (get_home_directory):
16307         * event-msw.c (struct winsock_stream):
16308         (mswindows_dde_callback):
16309         * device-msw.c (msprinter_init_device):
16310         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16311
16312         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16313         mswindows_clear_toolbar were swapped!
16314
16315         * objects-msw.c:(colormap_t):
16316         (fontmap_t):
16317         * emacs.c (struct standard_args): Fixed const jumble.
16318
16319         * glyphs-widget.c (update_widget): Fixed comparison notation.
16320
16321         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16322
16323         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16324         __declspec(noreturn) syntax.
16325
16326 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16327
16328         * eldap.c (Fldap_open):
16329         (Fldap_search_basic):
16330         (Fldap_add):
16331         (Fldap_modify):
16332         Use new coding system conversion macros.
16333
16334 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16335
16336         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16337
16338 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16339
16340         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16341         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16342
16343         * eldap.c (Qadd, Qreplace): New constant symbols
16344         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16345         interruptions by XEmacs signals
16346         Remove unnecessary calls to slow_down_interrupts and
16347         speed_up_interrupts
16348         (Fldap_search_basic): Renamed from Fldap_search_internal
16349         Added new optional parameter VERBOSE that triggers the
16350         display of progress messages
16351         Remove unnecessary calls to slow_down_interrupts and
16352         speed_up_interrupts
16353         LDAP result code analysis rewritten
16354         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16355         (syms_of_eldap): Define the new symbols and functions
16356
16357
16358 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16359
16360         * realpath.c: Determine PATH_MAX maximally portably.
16361
16362         * insdel.c (bytecount_to_charcount): Optimize.
16363         The function used to be optimized for entirely ASCII sequences.
16364         Now it is optimized for successive characters from the same
16365         charset.  This also wins big for _mostly_ ASCII sequences.
16366
16367         * fileio.c (Ffile_truename): convert return from realpath() using
16368         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16369         - Rewrite GCPROing slightly.
16370
16371         * sysdep.c (sys_open): Do filename conversion, like all other
16372         sys_* functions.  Fixes bug:
16373         (let ((file-name-coding-system 'iso-8859-2))
16374            (write-region x y latin2-name))
16375         ==> writes filename using internal encoding.
16376
16377 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16378
16379         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16380         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16381         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16382         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16383         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16384         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16385         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16386         (CONST_IF_NOT_DEBUG): Delete.
16387         * alloc.c (this_one_is_unmarkable): Delete.
16388         (mark_object): Don't check for this_one_is_unmarkable. Use the
16389         c_readonly flag instead.
16390         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16391
16392 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16393
16394         * event-msw.c (mswindows_drain_windows_queue):
16395         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16396         away redundant repaint events.
16397
16398 2000-02-17  Andy Piper  <andy@xemacs.org>
16399
16400         * redisplay.h: declare mark_redisplay_structs.
16401
16402         * redisplay.c (redisplay_window):
16403         (redisplay_frame): don't check subwindows_state_changed.
16404         (mark_redisplay): mark gutters here.
16405
16406         * glyphs.c: (instantiate_image_instantiator): always layout if we
16407         haven't done so already.
16408         (allocate_image_instance): don't mark as dirty.
16409         (update_subwindow): bind inhibit_quit.
16410
16411         * gutter.c (mark_gutters): new function.
16412
16413         * glyphs-x.c (x_update_widget): Always resize to get round a
16414         widget bug.
16415
16416         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16417         breaking absolutely everything.
16418
16419         * gutter.h: declare mark_gutters.
16420
16421 2000-02-16  Martin Buchholz <martin@xemacs.org>
16422
16423         * XEmacs 21.2.29 is released.
16424
16425 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16426
16427         * fns.c (size_bit_vector): Fix computation of the size.
16428
16429 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16430
16431         * *.[ch]: Change CONST to const globally.
16432         find -name '*.[ch]' | \
16433         xargs global-replace \
16434         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16435         - Remove vestigial references to CONST_IS_LOSING
16436
16437 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16438
16439         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16440         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16441         events instead of dispatching them directly.
16442         (mswindows_handle_paint): New function to do repainting.
16443         (mswindows_wnd_proc):
16444         (emacs_mswindows_handle_magic_event): Call above function.
16445
16446 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16447
16448         * objects-msw.c (mswindows_create_font_variant): Return the new
16449         font handle.
16450         (initialize_font_instance): Get font metrics from the underlined
16451         variant of the font to cope with the case where the underlined
16452         font has a bigger descent.
16453
16454 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16455
16456         * gui.c (gui_item_accelerator): Return the first underlined
16457         character in item name.
16458
16459 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16460
16461         * lisp.h: Added Qprinter.
16462
16463         * general.c (syms_of_general): Initialized it.
16464
16465         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16466         (get_frame_dc):
16467         (get_frame_compdc): Made inline.
16468
16469         * console.h (struct console_methods): Added eject_page method.
16470
16471         * frame.h: Added FRAME_DISPLAY_P and friends.
16472         Aligned backslahes in many macros in more readable fashion.
16473         Added page_number to struct frame, and an accessor macro
16474         for it.
16475
16476         * defice.h: Added DEVICE_DISPLAY_P and friends.
16477
16478         * device.c (Fdevice_printer_p): Used these.
16479
16480         * frame.c (allocate_frame_core): Initialize page number.
16481         (Fprint_job_page_number):
16482         (Fprint_job_eject_page): Implemented.
16483
16484         * frame-msw.c (msprinter_eject_page): Added method.
16485         (msprinter_start_page): Added.
16486
16487         * window.c (Fwindow_truncated_p): Fixed docstring.
16488         (Fwindow_last_line_visible_height): Implemented.
16489
16490 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16491
16492         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16493
16494 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16495
16496         * syntax.c (scan_words): Always advance at least one character.
16497
16498 2000-02-13  Andy Piper  <andy@xemacs.org>
16499
16500         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16501         to make sure the glyph is in the cachels.
16502
16503         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16504         global image instance flag.
16505         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16506         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16507
16508         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16509         (Fset_image_instance_property): mark layout as changed.
16510         (invalidate_glyph_geometry_maybe): mark layout as changed.
16511         (glyph_width): use new NEEDS_LAYOUT macro.
16512         (glyph_ascent): ditto.
16513         (glyph_descent): ditto.
16514         (glyph_height): ditto.
16515         (image_instance_layout): mark layout as clean after laying out.
16516         (update_subwindow): don't mark layout as clean here.
16517
16518         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16519         should no longer be needed.
16520
16521         * glyphs-x.c (x_update_widget): sanitize asserts.
16522         (x_finalize_image_instance): sanitize assignment to widgets.
16523
16524         * glyphs-widget.c (widget_instantiate): don't need to clear the
16525         layout flag here.
16526
16527 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16528
16529         * sysdep.c (getcwd): Use standard prototype.
16530         * sysdep.h (getcwd): Use standard prototype.
16531
16532         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16533         (sequence, start, end).
16534         Remove redundant type checking.
16535         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16536         view of `caller-protects') to avoid a crash where the real fix was
16537         found elsewhere.
16538
16539 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16540
16541         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16542
16543         * s/sol2.h: Remove feature macro initialization.
16544
16545         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16546         (vector_hash): New.  Code from internal_hash.
16547         * lrecord.h:
16548         Fix up allocation subsystem comments.
16549
16550         * config.h.in: Add __EXTENSIONS__ for Solaris.
16551
16552         * systime.h (EMACS_GETTIMEOFDAY): New.
16553         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16554         Remove Solaris-specific code.
16555         Use void* for the (ignored) second arg for gettimeofday().
16556
16557         * elhash.c (hash_table_hash): Implement it, finally.
16558         * elhash.c:  Use hashcode_t.
16559
16560         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16561         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16562
16563         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16564         * fns.c (size_bit_vector):
16565         * alloc.c (size_vector):
16566         (make_vector_internal):
16567         (make_bit_vector_internal):
16568         (sweep_bit_vectors_1):
16569         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16570
16571 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16572
16573         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16574         Include strings.h to avoid warnings for bzero and strcasecmp.
16575
16576 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16577
16578         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16579         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16580
16581         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16582         sequence.
16583
16584 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16585
16586         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16587         use a value field instead.
16588         (symbol_value_forward_forward): Use value field.
16589         (DEFVAR_SYMVAL_FWD): Use value field.
16590         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16591         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16592         (DEFVAR_CONST_INT): Ditto.
16593         (DEFVAR_BOOL): Ditto.
16594         (DEFVAR_CONST_BOOL): Ditto.
16595         (DEFVAR_INT_MAGIC): Ditto.
16596         (DEFVAR_BOOL_MAGIC): Ditto.
16597
16598         * symbols.c (guts_of_unbound_marker): Use value field.
16599         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16600         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16601
16602         * lisp.h: Declare dumpopaque and noninteractive1.
16603
16604         * alloc.c (dumpopaque): Added.
16605         (pdump_dump_opaquevec): Added.
16606         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16607         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16608         noninteractive.
16609
16610 2000-02-10  Andy Piper  <andy@xemacs.org>
16611
16612         * glyphs.c (image_instance_layout): if the size changes, mark it
16613         as such.
16614
16615         * redisplay-output.c (redisplay_output_layout): Update the
16616         subwindow here.
16617         (redisplay_output_subwindow): ditto.
16618
16619         * glyphs.c (update_subwindow): make sure we reset flags for
16620         layouts as well as everything else.
16621
16622         * glyphs-widget.c (layout_layout): don't need to set the instances
16623         dimensions here.
16624
16625 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16626
16627         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16628         not HAVE_DLOPEN, which is a lower-level thing.
16629
16630         * .cvsignore: Ignore gmon.out
16631
16632 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16633
16634         * .cvsignore: Ignore portable dumper xemacs.dmp file
16635
16636 2000-02-09  Andy Piper  <andy@xemacs.org>
16637
16638         * redisplay-output.c (redisplay_output_layout): be more clever
16639         about when we output based on the changed flags.
16640
16641         * glyphs.h (struct image_instantiator_methods): add update_method.
16642         (struct Lisp_Image_Instance): add changed flags. Declare new
16643         macros for manipulating them.
16644
16645         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16646         (image_instance_parent_glyph): find an image_instance's parent
16647         glyph or image_instance.
16648         (image_instance_layout): mark the size as changed.
16649         (set_image_instance_dirty_p): new function. mark an image
16650         instance, plus all of its parents, as dirty.
16651         (Fset_image_instance_property): use it.
16652         (Fglyph_animated_timeout_handler): use it.
16653         (update_subwindow): call update_widget and device methods for
16654         update_subwindow. Mark all changed flags as clean.
16655         (Fresize_subwindow): mark size as changed.
16656
16657         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16658         failures.
16659         (x_update_subwindow): only resize subwindows here.
16660         (x_update_widget): new function. Update all changed properties of
16661         a widget.
16662         (x_resize_subwindow): deleted.
16663         (x_widget_set_property): deleted.
16664         (x_progress_gauge_set_property): deleted.
16665         (x_progress_gauge_update): new function. Implement recorded
16666         changes.
16667         (x_tab_control_update): ditto.
16668         (x_tab_control_set_property): deleted.
16669         (console_type_create_glyphs_x): declare new functions.
16670         (image_instantiator_format_create_glyphs_x): ditto.
16671
16672         * glyphs-widget.c (widget_set_property): mark text changed.
16673         (update_widget): new function. Update properties of a widget.
16674         (widget_instantiate): for layouts make sure we set their
16675         children's parent correctly.
16676         (tab_control_set_property): new function. Record changes that will
16677         take place under redisplay's control.
16678         (progress_gauge_set_property): ditto.
16679         (image_instantiator_progress_guage): declare new functions.
16680         (image_instantiator_tab_control): ditto.
16681
16682         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16683         now.
16684         (mswindows_update_widget): new function. Update all properties on
16685         a widget that have changed.
16686         (mswindows_button_update): new function. Update a button's set
16687         state.
16688         (mswindows_tab_control_update): new function. Update the items in
16689         a tab.
16690         (mswindows_tab_control_set_property): deleted.
16691         (mswindows_progress_gauge_update): new function. Update the
16692         progress gauge's progress.
16693         (mswindows_widget_set_property): deleted. This is all done
16694         asynchronously now.
16695         (mswindows_progress_gauge_set_property): ditto.
16696         (console_type_create_glyphs_mswindows): declare new methods.
16697         (image_instantiator_format_create_glyphs_mswindows): ditto.
16698
16699         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16700         (msprinter_set_frame_properties): ditto.
16701
16702         * console.h (struct console_methods): Add update_widget_method.
16703
16704 2000-02-09  Andy Piper  <andy@xemacs.org>
16705
16706         * gui-msw.c (Fmswindows_shell_execute): Make
16707         mswindows-shell-execute industrial strength.
16708
16709 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16710
16711         * lrecord.h: Make macro argument `props' match member function `plist'.
16712         * fns.c (Fget):
16713         * fns.c (Fput):
16714         * fns.c (Fremprop):
16715         * fns.c (Fobject_plist):
16716         * alloc.c:
16717         * symbols.c:
16718         Object property list frobbing cleanup.
16719         - Allow any lisp object (compared with `eq'), not just symbols, as
16720           keys in object plists.
16721         - Move symbol plist frobbing into symbols.c, where it belongs.
16722         - Move string plist frobbing into alloc.c, where it belongs.
16723         - Everything's an lrecord now, so no need to test for symbolp, etc.
16724         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16725
16726         * extents.c: Reorder code to remove declarations.
16727
16728         * frame.h (store_in_alist): Remove useless declaration.
16729
16730 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16731
16732         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16733         * config.h.in: Add HAVE_XCONVERTCASE.
16734
16735 2000-02-07  Andy Piper  <andy@xemacs.org>
16736
16737         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16738         it breaks many things.
16739
16740 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16741
16742         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16743         actually can start a common comment type.
16744         * src/syntax.h (SYNTAX_END_P): ditto for end.
16745
16746 2000-02-07  Martin Buchholz <martin@xemacs.org>
16747
16748         * XEmacs 21.2.28 is released.
16749
16750 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16751
16752         * event-Xt.c (x_keysym_to_character): New.
16753         (maybe_define_x_key_as_self_inserting_character): New.
16754         (x_has_keysym): New.
16755         Auto-define all keys on the keyboard as self-insert-key.
16756
16757 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16758
16759         * menubar.c (vars_of_menubar): A small code simplification.
16760
16761         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16762
16763         * ExternalShell.c:
16764         * ExternalClient.c:
16765         * EmacsShell-sub.c:
16766         * EmacsManager.c:
16767         * EmacsFrame.c:
16768         Use consistent style for specifying X resources.
16769
16770         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16771         This makes (dontusethis-set-symbol-value-handler) actually usable.
16772
16773         * lrecord.h (lrecord_decription_type):
16774         * alloc.c (pdump_register_sub):
16775         (pdump_dump_data):
16776         (pdump_reloc_one):
16777         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16778         Comply with XEmacs coding style.
16779         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16780         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16781
16782         * keymap.c (Faccessible_keymaps):
16783         Make (accessible-keymaps map "\C-h") do the Right Thing.
16784         Make (accessible-keymaps map []) do the Right Thing.
16785         Make (accessible-keymaps map "") do the Right Thing.
16786         (check_keymap_definition_loop): New function.
16787         (keymap_store_internal): Keep luser from shooting self in foot,
16788           via (define-key ctl-x-4-map "p" global-map).
16789         Remove fullness slot from struct Lisp_Keymap, since hash tables
16790         are now reliable.
16791         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16792
16793 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16794
16795         * redisplay.c (init_redisplay): Fix small memory leak.
16796         * elhash.h:
16797         * elhash.c (pdump_reorganize_hash_table):
16798         Rename from reorganize_hash_table. Change prototype.
16799         Reuse the original memory for hentries.  Save 100k.
16800         * alloc.c (PDUMP_READ): new macro.
16801         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16802         * alloc.c: No need to #ifndef before #undef.
16803
16804         * print.c: Allow debug_print() to print readably by modifying
16805         debug_print_readably.  Use consistent variable names.
16806
16807         * .dbxrc: Try to get things to work even if stopped in a function
16808         without source available by explicitly specifying source files.
16809 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16810
16811         * unexnt.c (_start): Removed bogus code which caused loading heap
16812         from differrent executable file.
16813         Removed bogus assignment to _fmode, which caused inconsistencies.
16814
16815 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16816
16817         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16818         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16819         Do not preliminary `#define signal sigset'.
16820
16821         * systime.h: Do not prototype environ on windows nt and cygwin,
16822         this conflicts with system header.
16823
16824         * syssignal.h: Use correct define for WINDOWSNT
16825
16826         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16827         with system header.
16828
16829         * sysdep.c (near start of file): Fixed commentary and rearranged
16830         ifdefs in readable order.
16831         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16832         (start_of_text):
16833         (end_of_text):
16834         (end_of_data): Do not compile in if using PDUMP.
16835
16836         * symsinit.h: Prototyped vars_of_nt().
16837
16838         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16839         (find_child_console): Use it.
16840         (sys_kill): Use it.
16841
16842         * ntheap.h: Do not extern os_subtype.
16843
16844         * ntheap.c (cache_system_info): Do not cache unneeded:
16845         nt_major_version, nt_minor_version and os_subtype.
16846         (recreate_heap): Do not compile in when PDUMPing.
16847
16848         * nt.c (geteuid and friends): Use the new varibale
16849         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16850         (init_user_info): Removed the above mentioned hackery.
16851         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16852         stat has been fixed in the C runtime.
16853         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16854
16855         * file-coding.c (struct file_coding_dump): Do not define
16856         ucs_to_mule_table in the struct if not MULE.
16857         (struct struct lrecord_description fcd_description_1): Do not dump
16858         the above.
16859
16860         * emacs.c (main_1): Call vars_of_nt().
16861         (right before Fdump_emacs_data): Don't need lastfile if using both
16862         portabe dumper and system malloc.
16863
16864         * alloc.c (Fmemory_limit): Conditionalized out.
16865         (pdump): Use OPEN_BINARY for the portable dump file.
16866         (pdump_load): Ditto.
16867
16868 2000-02-02  Mike Alexander  <mta@arbortext.com>
16869
16870         * nt.c (convert_time): Set tm_isdst before calling mktime and
16871         avoid calling it at all if the compiler supports 64 bit integers.
16872         Also initialize utc_base_ft before using it.
16873
16874 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16875
16876         * frame.c (change_frame_size_1): Take f->internal_border_width
16877         into consideration when calculating the width of the frame.
16878
16879 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16880
16881         * window.c (frame_min_height):
16882         (frame_size_valid_p):
16883         (frame_pixsize_valid_p): Added.
16884         (check_frame_size): Generalized.
16885
16886         * window.h: Prototyped the above.
16887
16888         * lisp.h:
16889         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16890         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16891         Deleted Vwin32_* and Vbinary_process_* unused variables.
16892
16893         * device-msw.c (msprinter_init_device): Do not get printer font
16894         list; Added DEVMODE functions.
16895
16896         * frame-msw.c: Added lots of printer code.
16897
16898         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16899         general.c.
16900
16901         * console-msw.h: Added more msprinter device private slots.
16902
16903 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16904
16905         * event-msw.c (key_needs_default_processing_p): Added.
16906         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16907
16908 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16909
16910         * glyphs.c (image_instance_layout): Mark image instance as clean
16911         after layout.
16912         (glyph_dirty_p): Removed redundant function.
16913         (invalidate_glyph_geometry_maybe): Added.
16914         (update_glyph_cachel_data): Call it.
16915
16916         * glyphs.h: Prototyped it.
16917
16918         * redisplay.c (add_glyph_rune): Call it.
16919         (redisplay_window): Reset glyphs cachels when frame faces have
16920         changed, thus forcing recomputation of built-in border glyphs.
16921
16922 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16923
16924         * Makefile.in.in: Make portable dumper and purify play well together.
16925         Add imperfect, but better than nothing, support for pdump.
16926         Remove xemacs.dmp when temacs is re-generated.
16927         Don't ignore errors when dumping xemacs.
16928
16929         * symbols.c (maybe_call_magic_handler): Remove one magic number.
16930
16931 2000-01-28  Andy Piper  <andy@xemacs.org>
16932
16933         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16934         (setup_normal_frame): ditto.
16935         (setup_frame_without_minibuffer): ditto.
16936         (setup_minibuffer_frame): ditto.
16937         (delete_frame_internal): ditto.
16938         (Fmake_frame_invisible): ditto.
16939         (Ficonify_frame): ditto.
16940
16941         * window.h: change Fset_window_buffer signature.
16942
16943         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16944         (Fset_window_buffer): allow recording of buffer if the window is
16945         the selected window.
16946         (window_loop): Use new Fset_window signature.
16947
16948 2000-01-23  Daniel Pittman  <daniel@danann.net>
16949
16950         * config.h.in: Added template for `HAVE_ATHENA_3D'
16951
16952 2000-01-29  Andy Piper  <andy@xemacs.org>
16953
16954         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16955
16956         * gutter.c (output_gutter): Don't output if the window isn't live.
16957
16958 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16959
16960         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16961         of 01/12/00: Moved SetFocus back here where it belongs.
16962
16963 2000-01-23  Andy Piper  <andy@xemacs.org>
16964
16965         * s/cygwin32.h: declare printer things.
16966
16967 2000-01-26  Andy Piper  <andy@xemacs.org>
16968
16969         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16970         Alexander.
16971
16972 2000-01-24  Andy Piper  <andy@xemacs.org>
16973
16974         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16975         (mswindows_button_instantiate): Make sure glyph is a pixmap.
16976
16977         * glyphs-widget.c (widget_instantiate): Avoid shadows.
16978
16979         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16980
16981         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16982
16983         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16984         (mswindows_output_display_block): Avoid local shadows.
16985
16986         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16987         (mswindows_enqueue_mouse_button_event): ditto.
16988         (mswindows_handle_gui_wm_command): remove declaration.
16989
16990         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16991         warnings.
16992
16993         * console-msw.h: Avoid shadows.
16994         (mswindows_get_toolbar_button_text):
16995         (emacs_mswindows_create_stream_pair):
16996         (emacs_mswindows_delete_stream_pair):
16997         (mswindows_handle_toolbar_wm_command): declare.
16998
16999         * device-msw.c (build_syscolor_string): Avoid shadows.
17000
17001 2000-01-23  Andy Piper  <andy@xemacs.org>
17002
17003         * glyphs-widget.c (widget_instantiate): reverse the items for
17004         layouts so that children are in the expected order.
17005
17006 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17007
17008         * ralloc.c: safe_bcopy ==> memmove
17009         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17010         * s/msdos.h: Remove BCOPY macros.
17011         * insdel.c (gap_right): Remove BCOPY conditional code.
17012         * insdel.c (gap_left): Remove BCOPY conditional code.
17013         XEmacs demands a working ANSI C compiler - hence memmove.
17014
17015         * regex.c (regex_compile): Remove accidental use of trigraphs.
17016
17017 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17018
17019         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17020         event timestamp.
17021
17022 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17023
17024         * event-msw.c (mswindows_drain_windows_queue): Added the
17025         parameter.
17026         (mswindows_need_event): Commented the call to
17027         mswindows_drain_windows_queue().
17028         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17029         only.
17030
17031         * console-msw.h: Moved a few function prototypes here from
17032         event-msw.c.
17033
17034         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17035         parameter from unsigned short to unsigned long.
17036         (Fmswindows_shell_execute): Added return value.
17037
17038 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17039
17040         * sysdep.c (init_system_name):
17041           process-unix.c (unix_canonicalized_host_name):
17042         Don't call freeaddrinfo() if getaddrinfo() fails.
17043
17044         * process-unix.c (unix_open_unix_network_stream):
17045         Moved the code to get a port # into address loop.
17046
17047 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17048
17049         * buffer.c (reinit_vars_of_buffer):
17050         The right place to initialize conversion_in_dynarr and
17051         conversion_out_dynarr.
17052
17053         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17054
17055         * process-unix.c (unix_canonicalize_host_name): Muleize.
17056         (unix_open_network_stream): Muleize.
17057
17058         * buffer.h: Fix up prototypes for ralloc.c functions.
17059
17060 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17061         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17062         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17063                 instead of gethostbyname()
17064         * process-unix.c: In unix_canonicalize_host_name() and
17065                 unix_open_network_stream(), add code to use getaddrinfo()
17066                 instead of gethostbyname().
17067
17068 2000-01-27  Daniel Pittman <daniel@danann.net>
17069
17070         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17071         libs when built with flat Athena.
17072
17073 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17074
17075         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17076         Use coding standards for function prototypes.
17077
17078 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17079
17080         * dialog-msw.c (push_lisp_string_as_unicode):
17081         * doc.c (unparesseuxify_doc_string):
17082         * dired.c (Fuser_name_completion_1):
17083         * dired.c (Fuser_name_all_completions):
17084         * dired.c (free_user_cache):
17085         * dired.c (user_name_completion):
17086         * console-x.c (get_display_arg_connection):
17087         * minibuf.c (clear_echo_area_internal):
17088         * minibuf.c (echo_area_append):
17089         * eldap.c (Fldap_open):
17090         * eldap.c (Fldap_search_internal):
17091         * frame-x.c (x_set_frame_text_value):
17092         * frame-x.c (x_set_frame_properties):
17093         * frame-x.c (x_create_widgets):
17094         * redisplay-tty.c (term_get_fkeys_1):
17095         * objects-x.c (x_parse_nearest_color):
17096         * objects-x.c (x_valid_color_name_p):
17097         * objects-x.c (x_initialize_font_instance):
17098         * objects-x.c (x_list_fonts):
17099         * objects-x.c (x_find_charset_font):
17100         * tooltalk.c (Fadd_tooltalk_message_arg):
17101         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17102         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17103         * process-unix.c (unix_create_process):
17104         * ntproc.c (sys_spawnve):
17105         * sound.c (Fplay_sound_file):
17106         * sound.c (Fplay_sound):
17107         * buffer.c (init_initial_directory):
17108         * buffer.c (init_buffer):
17109         * editfns.c (init_editfns):
17110         * editfns.c (Ftemp_directory):
17111         * editfns.c (Fuser_full_name):
17112         * editfns.c (uncache_home_directory):
17113         * editfns.c (get_home_directory):
17114         * editfns.c (Fuser_home_directory):
17115         * editfns.c (Fformat_time_string):
17116         * editfns.c (Fcurrent_time_string):
17117         * gui-x.c (button_item_to_widget_value):
17118         * database.c (Fopen_database):
17119         * event-Xt.c (x_to_emacs_keysym):
17120         * event-Xt.c (x_event_to_emacs_event):
17121         * event-Xt.c (describe_event_window):
17122         * event-msw.c (mswindows_wnd_proc):
17123         * glyphs-eimage.c (jpeg_instantiate):
17124         * glyphs-eimage.c (gif_instantiate):
17125         * glyphs-eimage.c (png_instantiate):
17126         * glyphs-eimage.c (tiff_instantiate):
17127         * glyphs-x.c (xbm_instantiate_1):
17128         * glyphs-x.c (x_xbm_instantiate):
17129         * glyphs-x.c (x_xface_instantiate):
17130         * glyphs-x.c (autodetect_instantiate):
17131         * glyphs-x.c (cursor_font_instantiate):
17132         * glyphs-x.c (x_widget_instantiate):
17133         * glyphs-x.c (x_widget_set_property):
17134         * glyphs-x.c (x_widget_property):
17135         * glyphs-x.c (BUILD_GLYPH_INST):
17136         * print.c (write_string_to_stdio_stream):
17137         * print.c (output_string):
17138         * print.c (Falternate_debugging_output):
17139         * print.c (Fexternal_debugging_output):
17140         * glyphs-msw.c (extract_xpm_color_names):
17141         * glyphs-msw.c (mswindows_xpm_instantiate):
17142         * glyphs-msw.c (bmp_instantiate):
17143         * glyphs-msw.c (resource_name_to_resource):
17144         * glyphs-msw.c (mswindows_resource_instantiate):
17145         * glyphs-msw.c (xbm_instantiate_1):
17146         * glyphs-msw.c (mswindows_xbm_instantiate):
17147         * glyphs-msw.c (mswindows_xface_instantiate):
17148         * glyphs-msw.c (mswindows_widget_instantiate):
17149         * glyphs-msw.c (add_tree_item):
17150         * glyphs-msw.c (add_tab_item):
17151         * glyphs-msw.c (mswindows_combo_box_instantiate):
17152         * glyphs-msw.c (mswindows_widget_property):
17153         * glyphs-msw.c (mswindows_combo_box_property):
17154         * glyphs-msw.c (mswindows_widget_set_property):
17155         * console.c (stuff_buffered_input):
17156         * objects-msw.c (mswindows_initialize_color_instance):
17157         * objects-msw.c (mswindows_valid_color_name_p):
17158         * objects-msw.c (mswindows_list_fonts):
17159         * objects-msw.c (mswindows_font_instance_truename):
17160         * bytecode.c (optimize_compiled_function):
17161         * select-x.c (symbol_to_x_atom):
17162         * select-x.c (x_atom_to_symbol):
17163         * select-x.c (hack_motif_clipboard_selection):
17164         * select-x.c (selection_data_to_lisp_data):
17165         * select-x.c (lisp_data_to_selection_data):
17166         * select-x.c (Fx_get_cutbuffer_internal):
17167         * select-x.c (Fx_store_cutbuffer_internal):
17168         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17169         * buffer.h (TO_INTERNAL_FORMAT): New function.
17170         * emacs.c (make_arg_list_1):
17171         * emacs.c (make_argc_argv):
17172         * emacs.c (main_1):
17173         * emacs.c (Fdump_emacs):
17174         * emacs.c (split_string_by_emchar_1):
17175         * file-coding.h:
17176         * lisp.h:
17177         * lstream.h:
17178         * symsinit.h:
17179         * device-x.c (x_init_device):
17180         * device-x.c (Fx_valid_keysym_name_p):
17181         * device-x.c (Fx_get_font_path):
17182         * device-x.c (Fx_set_font_path):
17183         * glyphs.c (bitmap_to_lisp_data):
17184         * glyphs.c (pixmap_to_lisp_data):
17185         * alloc.c (make_ext_string): Use coding system arguments.  Update
17186         all callers.
17187         * alloc.c (build_string):
17188         * callproc.c (child_setup):
17189         * callproc.c (init_callproc):
17190         * fileio.c (lisp_strerror):
17191         * fileio.c (directory_file_name):
17192         * fileio.c (Fexpand_file_name):
17193         * fileio.c (Ffile_truename):
17194         * fileio.c (Fsysnetunam):
17195         * fileio.c (Fdo_auto_save):
17196         * sysdep.c (sys_readdir):
17197         * tests.c: New file.  Allow adding C tests.
17198         Replace GET_* macros with a more comprehensible and flexible
17199         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17200         Modify all calls.
17201         Any coding system can be used to do format conversion.
17202         Eliminate enum external_data_format.
17203         Eliminate convert_to_external_format.
17204         Eliminate convert_to_internal_format.
17205         Make sure file-name, keyboard, terminal, and ctext are always
17206         defined as coding systems or aliases.  Make
17207         file-name-coding-system, terminal-coding-system, and
17208         keyboard-coding-system magical variables that are equivalent to
17209         defining the corresponding coding system aliases.
17210
17211         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17212         * file-coding.c (Fcoding_system_alias_p): New function.
17213         * file-coding.c (Fcoding_system_aliasee): New function.
17214         * file-coding.c (append_suffix_to_symbol): New function.
17215         * file-coding.c (dangling_coding_system_alias_p): New function.
17216         * file-coding.c (Ffind_coding_system):
17217         * file-coding.c (Fcopy_coding_system):
17218         * file-coding.c (encode_coding_no_conversion):
17219         * file-coding.c (syms_of_file_coding):
17220         * file-coding.c (vars_of_file_coding):
17221         Rewrite coding system alias code.
17222         Allow nested aliases, like symbolic links.
17223         Allow redefinition of coding system aliases.
17224         Prevent existence of dangling coding system aliases.
17225
17226         * dired.c (Fuser_name_completion_1):
17227         * dired.c (Fuser_name_all_completions):
17228         A crash would happen if user did QUIT in the middle of building
17229         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17230
17231         * lisp.h:
17232         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17233
17234         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17235         an unsigned char *.  Update all callers.
17236
17237 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17238
17239         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17240
17241 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17242
17243         * elhash.c (hentry_description): Use more portable definition.
17244         (resize_hash_table): Initialize new hentries using
17245         xnew_array_and_zero, thereby simplifying the code.
17246
17247         * mule-charset.c (make_charset): Make sure entire object is
17248         initialized, to avoid Purify warnings.
17249
17250         * alloc.c (resize_string): Fix unlikely crash with big strings.
17251
17252 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17253
17254         * realpath.c (xrealpath):
17255         Don't call getwd().
17256
17257 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17258
17259         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17260
17261 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17262
17263         * unexelfsgi.c (unexec): Change the way we decide which segment
17264         should be extended.
17265
17266         Assumption that .bss section should be outside the PT_LOADable
17267         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17268         it's present) is inside the 'data' segment. This would fail the
17269         test which was used to find a segment to grow and cover new
17270         heap. Instead of this assumption, I created another one - on IRIX
17271         the segment to grow should start below .bss and it's address
17272         should extent above the end of .bss. Once this segment is
17273         identified, it's grown to accommodate the new heap and new
17274         zero-length .bss section is added at the end of .data2.
17275
17276 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17277
17278         * eval.c (Feval): Wrong number of arguments should use original
17279         function, not the indirect_function version of it.
17280
17281 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17282
17283         * glyphs-x.c (x_button_instantiate): Don't add image if
17284         it is not a pixmap.
17285         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17286         is relative.
17287
17288 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17289
17290         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17291         declaration.
17292         (DEFVAR_INT_MAGIC): Ditto.
17293         (DEFVAR_BOOL_MAGIC): Ditto.
17294         * glyphs.h: Reindent backslash.
17295
17296 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17297
17298         * glyphs-widget.c (layout_query_geometry):
17299         (layout_layout): Use correct types for gheight, gwidth.
17300
17301 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17302
17303         * EmacsManager.c (QueryGeometry): Purified.
17304
17305 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17306
17307         * alloc.c (make_float): Make sure entire object is initialized, to
17308         avoid Purify warnings.
17309         (pdump_register_sub): Remove useless assignment.
17310         (pdump): Use xmalloc, not malloc.
17311         (pdump_load): Use xmalloc, not malloc.
17312
17313 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17314
17315         * callproc.c:
17316         * dired-msw.c:
17317         * fileio.c:
17318         * process-nt.c:
17319         * redisplay-msw.c:
17320         * sysdep.c: Removed redundant #include <windows.h>
17321
17322 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17323
17324         * frame.c (delete_frame_internal): Do not delete device when its
17325         implementation so declares.
17326         (delete_frame_internal): Set device selected frame to nil when
17327         last frame goes away.
17328
17329         * device-msw.c (msprinter_device_system_metrics): Implemented.
17330         (mswindows_device_system_metrics): Added 'device-dpi property.
17331
17332         * device.c: (Fdevice_printer_p): Added.
17333         Added 'offset-workspace device metric.
17334
17335         * console.h (device_metrics): Declared DM_offset_workspace.
17336
17337 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17338
17339         * fileio.c (Ffile_truename): Remove pointless and confusing
17340         initialization of elen.
17341
17342         * glyphs-widget.c: Compiler warning fixes.
17343
17344 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17345
17346         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17347         instead of a Lisp_Object as argument to make it consistent with
17348         the other LIVE_P macros.
17349         (CHECK_LIVE_PROCESS): New macro.
17350
17351         * process.c: Declare Qprocess_live_p.
17352         (Fprocess_live_p): New function.
17353         (create_process): Use PROCESS_LIVE_P.
17354         (read_process_output): Ditto.
17355         (set_process_filter): Ditto.
17356         (Fdelete_process): Ditto.
17357         (kill_buffer_processes): Ditto
17358         (process_send_signal): Use CHECK_LIVE_PROCESS.
17359         (Fprocess_input_coding_system): Check whether process is still
17360         alive (fix PR#1061).
17361         (Fprocess_output_coding_system): Ditto.
17362         (Fprocess_coding_system): Ditto.
17363         (Fset_process_input_coding_system): Ditto.
17364         (Fset_process_output_coding_system): Ditto.
17365
17366 2000-01-23  Andy Piper  <andy@xemacs.org>
17367
17368         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17369         layout and widget.
17370
17371         * glyphs.c (mark_image_instance): take into account changed
17372         image_instance format.
17373         (image_instance_equal): ditto.
17374         (image_instance_hash): ditto.
17375
17376         * glyphs-widget.c (widget_instantiate): Incorporate layout
17377         instantiation here. Delay layout of the layout until later.
17378         (layout_instantiate): deleted.
17379         (layout_query_geometry): new function. get the geometry of a
17380         layout.
17381         (layout_layout): layout a layout dynamically.
17382         (image_instantiator_widget): New function - splitting up
17383         image_instantiator_format_create_glyphs_widget for netwinder
17384         compilation.
17385         (image_instantiator_buttons):
17386         (image_instantiator_edit_fields):
17387         (image_instantiator_combo_box):
17388         (image_instantiator_scrollbar):
17389         (image_instantiator_progress_guage):
17390         (image_instantiator_tree_view):
17391         (image_instantiator_tab_control):
17392         (image_instantiator_labels):
17393         (image_instantiator_layout): ditto.
17394         (image_instantiator_format_create_glyphs_widget): Call preceding
17395         functions.
17396
17397 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17398
17399         * process.c (Fset_process_coding_system):
17400         * device-x.c (Fx_keysym_hash_table):
17401         Docstring fixes.
17402
17403         * lstream.c (Lstream_write): Return documented value, not 0.
17404
17405         * fileio.c (directory_file_name):
17406         (Fsubstitute_in_file_name):
17407         (Fsubstitute_insert_file_contents_internal):
17408         (Fwrite_region_internal):
17409         * emacs.c:
17410         * sysdep.c:
17411         * getloadavg.c:
17412         * systty.h:
17413         Remove vestigial APOLLO-conditional code.
17414
17415 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17416
17417         * getpagesize.h: Add guard macros.
17418         * libsst.h: Add guard macros.
17419         * libst.h: Add guard macros.
17420         * line-number.h: Add guard macros.
17421         * ndir.h: Add guard macros.
17422         * sysfloat.h: Add guard macros.
17423         * sysfile.h: Add guard macros.
17424         * sysproc.h: Add guard macros.
17425         * syswait.h: Add guard macros.
17426         * xintrinsic.h: Add guard macros.
17427         * xintrinsicp.h: Add guard macros.
17428         * xmmanager.h: Add guard macros.
17429         * xmmanagerp.h: Add guard macros.
17430         * xmprimitive.h: Add guard macros.
17431         * xmu.h: Add guard macros.
17432         * gpmevent.h: Add copyright statement. Add guard macros.
17433         * miscplay.h: Add guard macros.
17434         * *.h: Use consistent C-standards-approved guard macro names.
17435
17436         * opaque.c (make_opaque): Switch parameter order.
17437         * opaque.h (make_opaque): Switch parameter order.
17438         Update all callers.
17439         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17440
17441         * config.h.in (type_checking_assert): Added.
17442         (bufpos_checking_assert): Added.
17443
17444 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17445
17446         * alloc.c: Harmless pdump changes.
17447         - Use countof().
17448         - spell alignment correctly.
17449         * sysdep.c: Use countof()
17450
17451 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17452
17453         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17454         initially_selected_for_input() console method, default to 0.
17455         (semi_canonicalize_console_connection): Try to delegate to
17456         canonicalize_console_connection if no such console method.
17457         (canonicalize_console_connection): Vice versa.
17458         (print_console): Do not print nil connection.
17459
17460         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17461         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17462         (XDEVIMPF_FRAMELESS_OK): Added.
17463         (CONSOLE_INHERITS_METHOD): Added.
17464
17465         * console-msw.c (mswindows_canonicalize_console_connection):
17466         Added.
17467         (mswindows_canonicalize_device_connection): Added.
17468
17469         * console-msw.h (struct msprinter_device): Added this struct and
17470         accessor macros.
17471         (mswindows_device): Made fontlist a lisp object.
17472
17473         * device.c (semi_canonicalize_device_connection):  Try to delegate
17474         to canonicalize_device_connection if no such console method.
17475         (canonicalize_device_connection): Vice versa.
17476         (print_device): Do not print nil connection.
17477
17478         * device-msw.c (mswindows_init_device): Call InitCommonControls
17479         when have widgets.
17480         (mswindows_delete_device): Removed fontlist deallocation.
17481         (mswindows_mark_device): Added.
17482
17483         * events.c (event_equal): Added abort() at unreached code.
17484         (event_hash): Ditto.
17485
17486         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17487         fallback tags of Windows devices.
17488
17489         * general.c (syms_of_general): Initialized Qmsprinter.
17490
17491         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17492         of fallback tags of Windows devices.
17493
17494         * lisp.h: Declared Qmsprinter.
17495
17496         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17497         of strings.
17498         (mswindows_list_fonts): Ditto.
17499         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17500         that it can be used by both mswindows and msprinter devices.
17501         (initialize_font_instance): Added.
17502         (mswindows_initialize_font_instance): Use it.
17503         (msprinter_initialize_font_instance): Added.
17504
17505         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17506         and implementation flags check.
17507         (redisplay_without_hooks): Changed the call to the above.
17508         (Fredraw_device): Ditto.
17509         (Fredisplay_device): Ditto.
17510
17511         * redisplay-msw.c (get_frame_dc): Implemented.
17512         (get_frame_compdc): Implemented.
17513         (many functions): Use the two functions above to get device
17514         contexts, ether for a window or a printer.
17515
17516 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17517
17518         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17519         initialization here.
17520         (init_symbols_once_early): Call it.
17521         * emacs.c (main_1): Call it.
17522         * symsinit.h: Declare it.
17523
17524 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17525
17526         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17527         Lisp_Object.
17528         (pdump_backtrace): Ditto.
17529         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17530         (pdump_get_entry): Abort if trying to register a null pointer.
17531         (pdump_dump_data): Cleanup types when relocating.
17532         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17533         (pdump_dump_rtables): Remove bad casts.
17534         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17535         Lisp_Object instead of a EMACS_INT for the hashtable
17536         reorganization.
17537
17538 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17539
17540         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17541
17542         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17543
17544         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17545
17546         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17547
17548 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17549
17550         * faces.h (FACE_STRIKETHRU_P): Added.
17551
17552         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17553         of font variants.
17554
17555         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17556         (mswindows_set_dc_font): New function, aware of font variants,
17557         separated from mswindows_update_dc.
17558
17559         * objects-msw.h (struct mswindows_font_instance_data): Added
17560         definition.
17561
17562         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17563         cached fonts and the data structure.
17564         (mswindows_initialize_font_instance): Added creation of font data
17565         structure.
17566         (mswindows_print_font_instance): Print at least something.
17567         (mswindows_create_font_variant): Implemented.
17568         (mswindows_get_hfont): Implemented.
17569
17570 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17571
17572         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17573         prototyping problem with msvc.
17574
17575         * emacs.c (main_1): added syms_of_gui_mswindows() call
17576
17577         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17578         syms_of_gui_mswindows() function
17579
17580         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17581
17582 2000-01-18  Martin Buchholz <martin@xemacs.org>
17583
17584         * XEmacs 21.2.27 is released.
17585
17586 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17587
17588         * glyphs-eimage.c (struct tiff_error_struct):
17589         (tiff_error_func):
17590         (tiff_warning_func):
17591         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17592
17593         * unexmips.c:
17594         * unexhp9k3.c:
17595         * unexfreebsd.c:
17596         * unexec.c: Remove vestigial Lucid C code.
17597         * unexalpha.c:
17598         * unexaix.c:
17599         * termcap.c:
17600         * libsst.c: Ansify.
17601         Remove declarations of errno and strerror().
17602
17603         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17604
17605         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17606
17607 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17608
17609         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17610         Optimize.
17611
17612 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17613
17614         * md5.c:
17615         * file-coding.c:
17616         * file-coding.h:
17617         Change enum eol_type to eol_type_t.
17618
17619 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17620
17621         * gui.c (get_gui_callback): Check cons before accessing car.
17622
17623 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17624
17625         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17626         (XSETSPECIFIER_TYPE): Ditto.
17627
17628 2000-01-17  Didier Verna  <didier@xemacs.org>
17629
17630         * redisplay.c (generate_fstring_runes): compute string size in
17631         characters, not bytes.
17632
17633 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17634
17635         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17636
17637 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17638
17639         * print.c (print_error_message): Call print_prepare().
17640
17641 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17642
17643         * .dbxrc: Renamed from dbxrc.
17644
17645         * events.c (event_to_character):
17646         Use `assert (foo)' instead of `if (!foo) abort()'
17647
17648         * .gdbinit (xtype): Add documentation.
17649         * .gdbinit (check-temacs): New function.
17650         * .gdbinit (check-xemacs): New function.
17651         * dbxrc (check-xemacs): New function.
17652         * dbxrc (check-xemacs): New function.
17653
17654 2000-01-14  Andy Piper  <andy@xemacs.org>
17655
17656         * glyphs-widget.c (widget_query_geometry): Make sure that we
17657         calculate default dimensions correctly.
17658
17659 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17660
17661         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17662
17663         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17664         pdump_wire'd variable.
17665
17666         * emacs.c: (main_1): Conditionalized calls to
17667         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17668
17669 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17670
17671         * window.c (Fset_window_configuration):
17672         * sysdep.c (_start):
17673         * input-method-motif.c (res):
17674         * event-Xt.c (Xt_process_to_emacs_event):
17675         Simple compiler warning fixes.
17676
17677         * bytecode.c (funcall_compiled_function): Use the original
17678         function symbol on the backtrace list in preference to the
17679         compiled_function object in error messages.
17680
17681 2000-01-13  Andy Piper  <andy@xemacs.org>
17682
17683         * glyphs-x.c (update_widget_face): Make sure we update the widget
17684         background as well as foreground.
17685
17686 2000-01-13  Andy Piper  <andy@xemacs.org>
17687
17688         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17689         fields to subwindow.
17690         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17691         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17692         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17693         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17694
17695         * glyphs-widget.c (check_valid_tab_orientation): new function.
17696         (initialize_widget_image_instance): zero orientation and
17697         justification.
17698         (widget_instantiate): pick up orientation.
17699         (tab_control_query_geometry): return appropriate values for
17700         vertical tabs.
17701
17702         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17703         appropriate creation flags for left, right and bottom tabs.
17704
17705         * s/cygwin32.h: add tab definitions.
17706
17707 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17708
17709         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17710         frame upon hiding a subwindow.
17711         (mswindows_button_instantiate): Changed the push button style to
17712         BS_PUSHBUTTON.
17713         (mswindows_button_instantiate): Removed button BS_NOTIFY
17714         style.
17715         (mswindows_button_instantiate): Removed redundant check for
17716         a disabled gui item.
17717         (mswindows_button_instantiate): Made use of WS_TABSTOP
17718         consistent: "operable" controls (edit, button, tree, scroll) have
17719         this style, "display-only" ones (static, progress gauge) do
17720         not. This style is currently ignored by XEmacs though. Also,
17721         removed the WS_EX_CONTROLPARENT style - it is not for children,
17722         it is for their parents!
17723         (mswindows_edit_field_instantiate): Ditto.
17724         (mswindows_progress_gauge_instantiate): Ditto.
17725         (mswindows_tree_view_instantiate): Ditto.
17726         (mswindows_tab_control_instantiate): Ditto.
17727         (mswindows_scrollbar_instantiate): Ditto.
17728         (mswindows_combo_box_instantiate): Ditto.
17729         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17730         style to the "clip" window.
17731         (mswindows_button_instantiate): Removed compilation warning by
17732         equally typing terms of the ?: operator.
17733
17734 2000-01-12  Didier Verna  <didier@xemacs.org>
17735
17736         * redisplay.c (generate_fstring_runes): new parameter holding the
17737         last modeline-format extent.
17738         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17739         extent, fill the glyph block with it.
17740         (generate_fstring_runes): handle these parameters.
17741         (generate_formatted_string_db): ditto.
17742
17743         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17744         glyphs'extents in the modeline.
17745
17746 1999-01-11  Mike Woolley  <mike@bulsara.com>
17747
17748         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17749         256Mb, as a workaround for the non-starting problem many people
17750         have experienced.
17751
17752 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17753
17754         * console-tty.c (Fset_console_tty_output_coding_system):
17755         Force redrawing tty frame.
17756
17757 2000-01-10  Didier Verna  <didier@xemacs.org>
17758
17759         * redisplay.c (generate_fstring_runes): fix size computation bug.
17760
17761 2000-01-09  William M. Perry <wmperry@aventail.com>
17762
17763         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17764
17765 2000-01-09  Andy Piper  <andy@xemacs.org>
17766
17767         * glyphs-msw.c: index -> i to avoid shadows.
17768         (xbm_create_bitmap_from_data): make static.
17769         (check_valid_string_or_int): deleted.
17770         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17771
17772         * glyphs-x.c (x_update_subwindow): remove unused args.
17773
17774         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17775         back pointer - this is done in allocate_image_instance.
17776         (query_string_font): return Qnil to make the compiler happy.
17777         (unmap_subwindow): set to ~0 to make the compiler happy.
17778         (glyph_query_geometry): comment out until used.
17779         (glyph_layout): ditto.
17780
17781 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17782
17783         * insdel.c (signal_after_change): Remove extraneous unbind_to().