Merge chise-0_23-1-r21-4-18.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
4         (Kamo).
5
6 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * concord.c: Add EXFUN for Fconcord_object_get.
9         (Vconcord_genre_object_hash_table): New variable.
10         (concord_genre_cache_get_object): New function.
11         (concord_genre_cache_put_object): New function.
12         (Fconcord_make_object): Use object cache; put object-ID into `=id'
13         feature.
14         (Fconcord_object_put): Call `concord_index_sync' after
15         `concord_index_strid_put_obj'.
16         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
17
18 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
19
20         * concord.c (Fconcord_decode_object): Do GCPRO for
21         Fconcord_make_object.
22         (func_for_each_object): Likewise; do GCPRO for
23         for_each_object_closure->function.
24         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
25         for_each_object_closure->function, for_each_object_closure->genre,
26         for_each_object_closure->ds and for_each_object_closure->ret.
27         (concord_object_validate): Do GCPRO for Fconcord_make_object.
28
29 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
30
31         * concord.c: Add EXFUNs for Fconcord_decode_object and
32         Fconcord_object_put.
33         (Fconcord_make_object): Change order of arguments.
34         (Fconcord_decode_object): Modify for Fconcord_make_object.
35         (func_for_each_object): Likewise.
36         (concord_object_validate): Likewise.
37         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
38
39 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
40
41         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
42
43 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * concord.c (Fconcord_decode_object): Try to use readable print
46         form as a key of Concord-index.
47         (Fconcord_object_get): Try to use readable print form as an ID of
48         Concord-object.
49         (Fconcord_object_put): Try to use readable print form as an ID of
50         Concord-object and a feature value.
51         (Fconcord_object_spec): Try to use readable print form as an ID of
52         Concord-object.
53
54 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
55
56         * concord.c (print_concord_object): Support readable form.
57
58 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
59
60         * emacs.c (main_1): Call `structure_type_create_concord' when
61         HAVE_CONCORD is defined.
62
63         * symsinit.h (structure_type_create_concord): New prototype.
64
65         * concord.c (Qconcord_object): New variable.
66         (Qgenre): Likewise.
67         (Q_id): Likewise.
68         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
69         for directory.
70         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
71         char*> for genre-name.
72         (Fconcord_feature_list): Likewise.
73         (Fconcord_make_object): Likewise.
74         (Fconcord_decode_object): Likewise; use <char*> instead of
75         <unsigned char*> for feature_name and strid.
76         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
77         c_obj and feature_name.
78         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
79         char*> for c_value.
80         (struct closure_for_object_spec): Use <char*> instead of <unsigned
81         char*> for member `object_id'.
82         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
83         char*> for feature-name.
84         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
85         for c_obj.
86         (func_for_each_object): Cast to avoid warnings.
87         (Fconcord_foreach_object_in_feature): Use <char*> instead of
88         <unsigned char*> for genre_name and feature_name.
89         (concord_name_validate): New function.
90         (concord_object_validate): Likewise.
91         (concord_object_instantiate): Likewise.
92         (syms_of_concord): Add new builtin symbols `concord-object',
93         `genre' and `=id'.
94         (structure_type_create_concord): New function.
95
96 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
97
98         * concord.c (Vconcord_ds_hash_table): New variable.
99         (Vconcord_genre_hash_table): New variable.
100         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
101         (Fconcord_ds_directory): New function.
102         (Fconcord_assign_genre): New function.
103         (Fconcord_genre_directory): New function.
104         (Fconcord_genre_ds): New function.
105         (Fconcord_feature_list): Allow to omit `ds'.
106         (Fconcord_make_object): Likewise.
107         (Fconcord_decode_object): Likewise.
108         (Fconcord_foreach_object_in_feature): Likewise.
109         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
110         Fconcord_assign_genre, Fconcord_genre_directory and
111         Fconcord_genre_ds.
112         (vars_of_concord): Setup Vconcord_ds_hash_table and
113         Vconcord_genre_hash_table.
114
115 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
116
117         * concord.c (struct closure_for_each_object): Add new member
118         `ret'.
119         (func_for_each_object): Setup the return value to
120         `for_each_object_closure->ret'.
121         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
122         returns the value instead of Qt.
123
124 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
125
126         * concord.c: New file.
127
128 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
129
130         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
131         `lrecord_type_concord_object'.
132
133 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
134
135         * symsinit.h (syms_of_concord): New prototype.
136         (vars_of_concord): New prototype.
137
138         * emacs.c (main_1): Setup symbols and variable about concord if
139         HAVE_CONCORD is defined.
140
141         * config.h.in (HAVE_CONCORD): New macro.
142
143 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * chartab.c (Fput_char_attribute): For each character relation
146         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
147
148 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
149
150         * chartab.c (Fput_char_attribute): Use
151         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
152         calling `put_char_composition'.
153
154 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * chartab.c (Q_halfwidth_of): New variable.
157         (put_char_composition): Return `<-halfwidth' instead of
158         `=decomposition' for compatibility mapping to single character
159         tagged `narrow'.
160         (Fput_char_attribute): Convert char-specs in value of
161         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
162         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
163         for `<-halfwidth'.
164         (syms_of_chartab): Add new symbol `<-halfwidth'.
165
166 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
167
168         * chartab.c (put_char_composition): Return
169         `<-formed@{isolated|initial|medial|final}' for compatibility
170         mapping to single character tagged
171         `{isolated|initial|medial|final}'.
172
173 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
174
175         * chartab.c (Q_compat_of): Deleted.
176         (put_char_composition): Return `<-FOO' for compatibility mapping
177         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
178         of `symbol_name (XSYMBOL(...))'.
179         (Fput_char_attribute): Convert char-specs in value of
180         `{<-|->}font[^*]*' to characters and put reverse links.
181         (Fsave_char_attribute_table): Don't refer Q_compat_of.
182         (syms_of_chartab): Delete builtin symbol `<-compat'.
183
184 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
185
186         * chartab.c (Q_circled_of): New variable.
187         (put_char_composition): Return `<-circled' instead of
188         `=decomposition' for compatibility mapping to single character
189         tagged `circle'.
190         (Fput_char_attribute): Convert char-specs in value of
191         `{<-|->}circled[^*]*' to characters and put reverse links.
192         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
193         for `<-circled'.
194         (syms_of_chartab): Add new symbol `<-circled'.
195
196 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
197
198         * chartab.c (Qto_decomposition_at_circled): New variable.
199         (put_char_composition): Return `=>decomposition@circled' instead
200         of `=decomposition' for compatibility decomposition mapping tagged
201         `circle'.
202         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
203
204 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
205
206         * chartab.c (Q_subscript_of): New variable.
207         (put_char_composition): Return `<-subscript' instead of
208         `=decomposition' for compatibility mapping to single character
209         tagged `sub'.
210         (Fput_char_attribute): Convert char-specs in value of
211         `{<-|->}subscript[^*]*' to characters and put reverse links.
212         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
213         for `<-subscript'.
214         (syms_of_chartab): Add new symbol `<-subscript'.
215
216 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
217
218         * chartab.c (Q_superscript_of): New variable.
219         (put_char_composition): Return `<-superscript' instead of
220         `=decomposition' for compatibility mapping to single character
221         tagged `super'.
222         (Fput_char_attribute): Convert char-specs in value of
223         `{<-|->}superscript[^*]*' to characters and put reverse links.
224         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
225         for `<-superscript'.
226         (syms_of_chartab): Add new symbol `<-superscript'.
227
228 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
229
230         * chartab.c (Qto_decomposition_at_compat): Deleted.
231         (Qto_decomposition_at_superscript): New variable.
232         (put_char_composition): Use `=>decomposition@superscript' instead
233         of `=decomposition' for compatibility decomposition mapping tagged
234         `super'.
235         (Fput_char_attribute): Fix condition about `put_char_composition'.
236         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
237         add news symbol `=>decomposition@superscript'.
238
239 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
240
241         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
242         for compatibility decomposition mapping tagged FOO.
243         (Fput_char_attribute): Modify for `put_char_composition'.
244
245 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
246
247         * chartab.c (Qto_decomposition_at_compat): New variable.
248         (Q_compat_of): Renamed from `Q_compatibility_of'.
249         (put_char_composition): Rename `Q_compatibility_of' to
250         `Q_compat_of'; return `=>decomposition@compat' for compatibility
251         decomposition mapping.
252         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
253         `Q_compat_of'.
254         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
255         `<-compatibility' to `<-compat'.
256
257 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
258
259         * chartab.c (Q_compatibility_of): New variable.
260         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
261         object is proved to be a cons cell; return `<-compatibility' if
262         the first element of argument `value' is `compat'.
263         (Fput_char_attribute): Eliminate the first value if
264         `put_char_composition' returns `<-compatibility'.
265         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
266         for `<-compatibility'.
267         (syms_of_chartab): Add new symbol `<-compatibility'.
268
269 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
270
271         * chartab.c (Q_canonical): New variable.
272         (put_char_composition): Return a feature name: return
273         `->canonical' if argument `value' specifies single character.
274         (Fput_char_attribute): Use `put_char_composition' to determine
275         feature name for `=decomposition' or `->denotational'.
276         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
277         for `->canonical'.
278         (syms_of_chartab): Add new symbol `->canonical'.
279
280 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
281
282         * chartab.c (Qmap_decomposition): New variable.
283         (Fput_char_attribute): Convert `->decomposition' to
284         `=decomposition'.
285         (syms_of_chartab): Add new symbol `=decomposition'.
286
287 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
288
289         * chartab.c (Fget_range_char_table): Fix serious problem when
290         `range' is nil.
291
292 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
293
294         * chartab.c (char_table_get_db): Use `read_from_c_string'.
295
296 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
297
298         * lread.c (read_from_c_string): New function.
299
300         * lisp.h (read_from_c_string): New prototype.
301
302 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
303
304         * chartab.c (Fput_char_attribute): Convert char-specs in value of
305         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
306         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
307         for `{<-|->}Oracle-Bones[^*]*'.
308
309 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
310
311         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
312         (Kizu).
313
314 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
315
316         * text-coding.c (Qccs_priority_list): New variable in XEmacs
317         CHISE.
318         (Fmake_coding_system): Support new property `ccs-priority-list' in
319         XEmacs CHISE.
320         (Fcoding_system_property): Likewise.
321         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
322         Vdefault_coded_charset_priority_list in XEmacs CHISE.
323         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
324         XEmacs CHISE.
325         (complex_vars_of_file_coding): Define new coding-system-property
326         `ccs-priority-list' in XEmacs CHISE.
327
328         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
329
330 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
331
332         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
333         changed to normal function.
334         (encode_char_2): Likewise.
335
336         * mule-charset.c (decoding_table_put_char): Copied from
337         char-ucs.h; changed to normal function.
338         (encode_char_2): Likewise.
339
340 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
341
342         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
343         New extern.
344         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
345         (encode_char_2_search_children): New inline function.
346         (encode_char_2): Refer
347         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
348         and use `encode_char_2_search_children'.
349
350 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
351
352         * mule-charset.c
353         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
354         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
355         (vars_of_mule_charset): Add new variable
356         `display-coded-charset-priority-use-inheritance' and
357         `display-coded-charset-priority-use-hierarchy-order'.
358
359 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
360
361         * char-ucs.h (Q_subsumptive): New extern.
362         (Q_denotational): Likewise.
363         (encode_char_2): Search children specified by `->subsumptive' and
364         `->denotational'.
365
366 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
367
368         * mule-charset.c (complex_vars_of_mule_charset): Modify the
369         X-registry of `ucs-bmp'.
370
371 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
372
373         * chartab.c (char-variants): Refer `->subsumptive',
374         `->denotational' and `->identical' as same as `->ucs-unified'.
375
376 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
377
378         * chartab.c (Fput_char_attribute): Convert char-specs in value of
379         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
380         links.
381
382 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
383
384         * text-coding.c: Add EXFUN for `Fregexp_quote'.
385         (decode_add_er_char): Fix problem about infinite loop when a CCS
386         specified in `coded-charset-entity-reference-alist' is not
387         existed.
388
389 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
390
391         * mule-charset.c (syms_of_mule_charset): Rename
392         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
393
394 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
395
396         * fns.c (simplify_char_spec): Don't allocate new character-object
397         if specified char_spec does not have any CCS-features.
398
399         * chartab.h: Add EXFUN for Fdefine_char.
400
401         * chartab.c: Delete EXFUN for Fdefine_char.
402
403 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * fns.c (simplify_char_spec): Use Fdefine_char instead of
406         Ffind_char for char-spec.
407
408 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
409
410         * lisp-disunion.h (XCHARVAL): Fix condition about
411         SIZEOF_EMACS_INT.
412
413 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
414
415         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
416         <int> for `code'.
417         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
418         point; use <Emchar> instead of <int> for character-id.
419
420 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
421
422         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
423         (make_char): Likewise.
424         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
425         environment.
426         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
427         instead of <int> as the type of return value; use <Lisp_Object>
428         instead of <Emchar> as the type of argument.
429         (XCHARVAL[macro version]): Cast the result into <Emchar>.
430
431         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
432         syntaxcode> instead of <int>.
433
434 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
435
436         * chartab.c (put_char_composition): Use DECODE_CHAR to get
437         character corresponding with UCS code point.
438         (Fput_char_attribute): Likewise.
439
440         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
441         character in the UCS decoding-table if the char-id is not equal to
442         the UCS code point.
443
444 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
445
446         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
447         for aliases; write `description'; write
448         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
449         not 0.
450
451 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
452
453         * chartab.c (Fsave_char_attribute_table): Don't use
454         `save_charset_properties'.
455
456         * mule-charset.c (Fsave_charset_properties): Renamed from
457         `save_charset_properties' and changed to Lisp function again;
458         write property `type' as `CCS'; write properties `final-byte' and
459         `mother' if they exists.
460         (syms_of_mule_charset): Revive builtin function
461         `save-charset-properties' when HAVE_LIBCHISE is defined.
462
463 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
464
465         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
466         instead of Vexec_directory.
467         (char_attribute_system_db_file): Likewise.
468
469 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
470
471         * chartab.c (Fsave_char_attribute_table): Use
472         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
473         defined.
474
475         * mule-charset.c (save_charset_properties): Renamed from
476         `Fsave_charset_properties'; changed to non-Lisp function.
477         (syms_of_mule_charset): Abolish builtin function
478         `save-charset-properties'.
479
480 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
481
482         * mule-charset.c (Fsave_charset_properties): New function when
483         HAVE_LIBCHISE is defined.
484         (syms_of_mule_charset): Add new builtin function
485         `save-charset-properties' when HAVE_LIBCHISE is defined.
486
487 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
488
489         * chartab.c (Fput_char_attribute): Convert char-specs in value of
490         `{<-|->}ancient[^*]*' to characters and put reverse links.
491         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
492         for `{<-|->}ancient[^*]*'.
493
494 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
495
496         * chartab.c (Fput_char_attribute): Convert char-specs in value of
497         `{<-|->}original[^*]*' to characters and put reverse links.
498         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
499         for `{<-|->}original[^*]*'.
500
501 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
502
503         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
504
505 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
506
507         * mule-charset.c (Qsystem_char_id): New variable.
508
509         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
510         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
511
512 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
513
514         * chartab.c (Fput_char_attribute): When processing a reference of
515         a character, put into the end of the reversed reference of each
516         target character.
517
518 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
519
520         * chartab.c (Q_same): Deleted.
521         (Q_same_of): Deleted.
522         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
523         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
524         for `{<-|->}same'.
525         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
526
527 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
528
529         * chartab.c (Q_vulgar): Deleted.
530         (Q_vulgar_of): Deleted.
531         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
532         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
533         for `{<-|->}vulgar'.
534         (syms_of_chartab): Don't define `{<-|->}vulgar'.
535
536 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
537
538         * chartab.c (Fput_char_attribute): Convert char-specs in value of
539         `{<-|->}wrong[^*]*' to characters and put reverse links.
540         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
541         for `{<-|->}wrong[^*]*'.
542
543 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
544
545         * chartab.c (Q_vulgar): New variable.
546         (Q_vulgar_of): New variable.
547         (Fput_char_attribute): Convert char-specs in value of
548         `{->|<-}vulgar' to characters and put reverse links.
549         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
550         for `{->|<-}vulgar'.
551         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
552
553 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
554
555         * text-coding.c (decode_add_er_char): Must to quote prefix string
556         as regexp.
557
558 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
559
560         * mule-charset.c (put_char_ccs_code_point): Store characters of
561         =ucs whose code_points >= 0xF0000.
562
563 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
564
565         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
566         CHISE.
567         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
568         CHISE.
569         (complex_vars_of_mule_charset): Add new coded-charset
570         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
571         builtin characters over 0xEFFFF.
572
573         * chartab.c (syms_of_chartab): Don't define symbol
574         `system-char-id' in every case.
575
576         * char-ucs.h (Qsystem_char_id): New extern variable.
577         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
578
579 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
580
581         * text-coding.c (char_encode_utf8): Try to use entity-references
582         for U-000F0000 ...  U-0010FFFF.
583
584 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
585
586         * text-coding.c (ER_BUF_SIZE): New macro.
587         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
588         `er_buf'.
589         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
590         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
591
592 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
593
594         * chartab.c (find_char_feature_in_family): New function.
595         (Fchar_feature): Use `find_char_feature_in_family' with
596         `->identical', `<-subsumptive' and `<-denotational'.
597
598 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
599
600         * text-coding.c (char_encode_as_entity_reference): Allow prefix
601         within 8 characters; fix infinite loop.
602
603 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
604
605         * chartab.c (Q_same): New variable.
606         (Q_same_of): New variable.
607         (Fput_char_attribute): Convert char-specs in value of
608         `{->|<-}same' to characters and put reverse links.
609         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
610         for `{->|<-}same'.
611         (syms_of_chartab): Add new symbols `{->|<-}same'.
612
613 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
614
615         * chartab.c (Q_component): New variable.
616         (Q_component_of): Likewise.
617         (Fput_char_attribute): Convert char-specs in value of
618         `{->|<-}ideographic-component-forms' to characters and put reverse
619         links.
620         (syms_of_chartab): Add new symbols
621         `{->|<-}ideographic-component-forms'.
622
623 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
624
625         * chartab.c (Q_identical): New variable.
626         (Q_identical_from): New variable.
627         (Fchar_feature): Regard `->identical' as a feature to find
628         ancestors.
629         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
630         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
631         for `{->|<-}identical'.
632         (syms_of_chartab): Add new symbols `{->|<-}identical'.
633
634 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
635
636         * char-ucs.h (encode_char_2): New inline function.
637         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
638
639 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
640
641         * chartab.c (Fput_char_attribute): Convert char-specs to
642         characters in value of `ideographic-structure'.
643         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
644         for `{<-|->}simplified(@...)'.
645         (Fdefine_char): Try to use predefined character's id.
646
647 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
648
649         * fns.c (simplify_char_spec): Try to convert builtin chars to
650         defined chars.
651
652 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
653
654         * chartab.c (Fput_char_attribute): Convert char-specs in value of
655         `<-simplified[^*]*' to characters and put reverse links.
656
657 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
658
659         * chartab.c (Q_subsumptive): Renamed from Q_unified.
660         (Q_subsumptive_from): Renamed from Q_unified_from.
661         (Fchar_feature): Use `Q_subsumptive_from' instead of
662         `Q_unified_from'.
663         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
664         `Q_unified'.
665         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
666         `<-unified' to `<-subsumptive'.
667
668 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
669
670         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
671         inheritance itself; fix typo; stop recursive search if cyclic
672         inheritance is found.
673
674 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
675
676         * chartab.c (Q_denotational): New variable.
677         (Q_denotational_from): New variable.
678         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
679         (put_char_attribute): New function.
680         (Fput_char_attribute): Use `put_char_attribute'; regard
681         `->denotational' and `<-denotational' as same as `->unified' and
682         `<-unified'.
683         (syms_of_chartab): Add new symbols `->denotational' and
684         `<-denotational'.
685
686 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
687
688         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
689         `Fget_char_attribute'.
690         (Fchar_variants): Likewise.
691         (get_char_table): Likewise.
692         (Fchar_feature): New function.
693         (put_char_composition): Use `Fchar_feature' instead of
694         `Fget_char_attribute'.
695         (Fput_char_attribute): Likewise; don't put the target character
696         into its `->unified' value.
697         (syms_of_chartab): Add new builtin function `char-feature'.
698
699 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
700
701         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
702         `Fget_char_attribute'.
703         (char_encode_utf8): Likewise.
704
705         * chartab.h: Add an EXFUN for `Fchar_feature'.
706
707 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
708
709         * chartab.c (Vnext_defined_char_id): New variable.
710         (Fput_char_attribute): Accept characters in `->unified'.
711         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
712         new characters which are not related with builtin char-id ranges.
713         (vars_of_chartab): Add new variable `next-defined-char-id'.
714
715 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
716
717         * chartab.c (Q_unified): New variable.
718         (Q_unified_from): New variable.
719         (Fput_char_attribute): Add code for `->unified'.
720         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
721         XEmacs CHISE.
722
723 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
724
725         * mule-charset.c (decode_ccs_conversion): New function.
726         (decode_defined_char): Use `decode_ccs_conversion'.
727         (decode_builtin_char): Likewise.
728
729 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
730
731         * char-ucs.h: Change some charset-ids of private coded-charsets.
732
733 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
734
735         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
736         (char_encode_as_entity_reference): Likewise.
737         (decode_coding_big5): Modify for `decode_defined_char' and
738         `DECODE_CHAR'.
739         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
740         avoid compiler warning.
741         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
742
743         * mule-charset.c (decode_defined_char): Add new argument
744         `without_inheritance'.
745         (Fdecode_char): Add new optional argument `without_inheritance'.
746         (Fdecode_builtin_char): Modify for `Fdecode_char'.
747
748         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
749         (simplify_char_spec): Likewise.
750
751         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
752         setting.
753
754         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
755         (map_char_table): Likewise.
756         (Fdefine_char): Use `Fdecode_char' without inheritance.
757         (Ffind_char): Modify for `Fdecode_char'.
758
759         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
760
761         * char-ucs.h (decode_defined_char): Add new argument
762         `without_inheritance'.
763         (DECODE_CHAR): Likewise.
764         (MAKE_CHAR): Modify for `DECODE_CHAR'.
765
766 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
767
768         * chartab.c (Vchise_system_db_directory): New variable.
769         (vars_of_chartab): Add new variable `chise-system-db-directory'.
770
771 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
772
773         * chartab.c: EXFUN `Fmount_char_attribute_table'.
774         (print_chartab_range): Don't define when `UTF2000' is defined.
775         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
776         `CHISE_DS_open'.
777
778 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
779
780         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
781         and optional argument `rehash' is specified, call
782         `open_chise_data_source_maybe' before
783         `chise_ds_foreach_char_feature_name' is called.
784
785 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
786
787         * chartab.c (char_attribute_list_reset_map_func): New function
788         when HAVE_LIBCHISE is defined.
789         (Fchar_attribute_list): Add new optional argument `rehash' when
790         HAVE_LIBCHISE is defined.
791         (open_chise_data_source_maybe): Use "chise-db" instead of
792         "char-db".
793         (char_attribute_system_db_file): Likewise.
794         (Fload_char_attribute_table): Use
795         `chise_feature_foreach_char_with_value' instead of
796         `chise_char_feature_value_iterate'.
797
798 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
799
800         * chartab.c (Vchise_db_directory): New variable.
801         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
802
803 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
804
805         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
806         instead of HAVE_CHISE to specify using with libchise.
807
808         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
809
810         * chartab.h: Don't use HAVE_CHISE_CLIENT.
811
812         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
813         defined or HAVE_LIBCHISE_LIBCHISE is defined.
814         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
815         is defined.
816         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
817         HAVE_CHISE to specify using with libchise.
818         (syms_of_chartab): Don't define symbol `system-char-id' when
819         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
820
821 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
822
823         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
824         specify CHISE DB support.
825         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
826         of `char_attribute_system_db_file' to check feature DB file.
827
828         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
829         HAVE_CHISE_CLIENT to specify CHISE DB support.
830
831         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
832         specify CHISE DB support.
833         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
834         not defined.
835         (Freset_char_attribute_table): Use `chise_feature_setup_db'
836         instead of `char_attribute_system_db_file' to check feature DB
837         file.
838
839 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
840
841         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
842         `HAVE_CHISE_CLIENT'.
843
844 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
845
846         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
847         (Fsave_charset_mapping_table): Don't use
848         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
849
850         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
851         (HAVE_LIBCHISE): New macro.
852
853         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
854
855         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
856         (Fsave_char_attribute_table): Don't use
857         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
858
859 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
860
861         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
862         defined.
863         (save_uint16_byte_table): Likewise.
864         (save_byte_table): Likewise.
865         (char_table_get_db): Use `chise_ds_load_char_feature_value'
866         instead of `chise_char_load_feature_value'.
867         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
868
869 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
870
871         * chartab.h (struct Lisp_Char_Table): Delete member
872         `feature_table' if CHISE is defined.
873
874         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
875         (Fcopy_char_table): Likewise.
876         (char_table_open_db_maybe): Likewise.
877         (char_table_close_db_maybe): Likewise.
878         (char_table_get_db): Likewise.
879         (Fmount_char_attribute_table): Likewise.
880         (Fload_char_attribute_table): Likewise.
881
882 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
883
884         * mule-charset.c (load_char_decoding_entry_maybe): Use
885         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
886         `chise_ccs_decode'.
887
888 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
889
890         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
891         instead of `chise_open_data_source'.
892         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
893         `chise_ds_close'.
894
895 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
896
897         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
898         instead of `chise_ds_open_feature_table'.
899         (char_table_close_db_maybe): Don't use `chise_ft_close'.
900
901 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
902
903         * mule-charset.c (Fsave_charset_mapping_table): Use
904         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
905         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
906         `chise_ccs_sync' instead of `chise_ccst_close'.
907         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
908
909         * chartab.c (open_chise_data_source_maybe): Modify for
910         `chise_open_data_source'.
911         (char_table_open_db_maybe): Modify for
912         `chise_ds_open_feature_table'.
913
914 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
915
916         * mule-charset.c (load_char_decoding_entry_maybe): Use
917         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
918         `chise_ccst_close'.
919
920 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
921
922         * mule-charset.c (Fsave_charset_mapping_table): Use
923         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
924         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
925         `chise_dt_put_char' and `chise_dt_close'.
926         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
927         `chise_ccs_decode' and `chise_ccst_close' instead of
928         `chise_ds_open_decoding_table', `chise_dt_get_char' and
929         `chise_dt_close'.
930
931         * chartab.c (char_table_get_db): Use
932         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
933         (load_char_attribute_table_map_func): Modify for
934         `chise_char_feature_value_iterate'.
935         (Fload_char_attribute_table): Use
936         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
937
938 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
939
940         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
941
942 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
943
944         * chartab.c (put_char_table): Modify for inherited coded-charsets
945         in XEmacs CHISE.
946
947 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
948
949         * chartab.c (Fput_char_table_map_function): Fixed.
950         (word_boundary_p): Don't check charset in XEmacs CHISE.
951
952 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
953
954         * mule-charset.c (Fsave_charset_mapping_table): Use
955         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
956         instead of `chise_open_decoding_table'; refer
957         `default_chise_data_source'; use `chise_dt_close' instead of
958         `chise_close_decoding_table'.
959         (load_char_decoding_entry_maybe): Likewise.
960
961         * chartab.c (default_chise_data_source): New variable when `CHISE'
962         is defined.
963         (Fcopy_char_table): `ct->ds' is deleted.
964         (open_chise_data_source_maybe): New function.
965         (Fclose_char_data_source): New function.
966         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
967         use `chise_ds_open_feature_table' instead of
968         `chise_open_feature_table'.
969         (char_table_close_db_maybe): Use `chise_ft_close' instead of
970         `chise_close_feature_table'; `cit->ds' is deleted.
971         (syms_of_chartab): Add new builtin function
972         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
973
974         * chartab.h (default_chise_data_source): New extern variable.
975         (open_chise_data_source_maybe): New prototype.
976         (struct Lisp_Char_Table): Delete `ds'.
977
978 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
979
980         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
981         `CHISE' is defined.
982
983 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
984
985         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
986         not defined; add code for non-libchise setting.
987         (char_table_close_db_maybe): Likewise.
988         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
989         defined.
990         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
991         even if `CHISE' is not defined.
992         (Freset_char_attribute_table): Likewise.
993         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
994         `char_table_close_db_maybe' even if `CHISE' is not defined; use
995         `char_table_get_db'.
996         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
997         `char_table_close_db_maybe' even if `CHISE' is not defined.
998
999 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1000
1001         * chartab.c (char_table_open_db_maybe): New function.
1002         (char_table_close_db_maybe): New function.
1003         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1004         (Freset_char_attribute_table): Likewise.
1005         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1006         `char_table_close_db_maybe'.
1007         (Fload_char_attribute_table): Likewise.
1008
1009 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1010
1011         * chartab.c: Don't include <chise.h> because it is included in
1012         chartab.h.
1013         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1014         defined.
1015         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1016         `CHISE' is defined.
1017         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1018         `CHISE' is defined.
1019         (Fclose_char_attribute_table): Close `ct->feature_table' and
1020         `ct->ds' when `CHISE' is defined.
1021         (Freset_char_attribute_table): Likewise.
1022         (load_char_attribute_maybe): Use `cit->ds' and
1023         `cit->feature_table' when `CHISE' is defined.
1024         (Fload_char_attribute_table): Likewise.
1025
1026         * chartab.h: Include <chise.h> when `CHISE' is defined.
1027         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1028         when `CHISE' is defined.
1029
1030 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1031
1032         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1033         is defined.
1034         (char_table_description): Likewise.
1035         (Fmake_char_table): Likewise.
1036         (Fcopy_char_table): Likewise.
1037         (Fmount_char_attribute_table): Likewise.
1038         (Fclose_char_attribute_table): Likewise.
1039         (Freset_char_attribute_table): Likewise.
1040         (load_char_attribute_maybe): Likewise.
1041         (Fload_char_attribute_table): Likewise.
1042
1043         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1044         defined.
1045
1046 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1047
1048         * chartab.c (load_char_attribute_table_map_func): New function
1049         when CHISE is defined.
1050         (Qload_char_attribute_table_map_function): Don't define when CHISE
1051         is defined.
1052         (Fload_char_attribute_table_map_function): Likewise.
1053         (Fload_char_attribute_table): Use libchise when `CHISE' is
1054         defined.
1055         (syms_of_chartab): Don't define
1056         `load-char-attribute-table-map-function' when CHISE is defined.
1057
1058 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1059
1060         * chartab.c: Include <chise.h> when `CHISE' is defined.
1061         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1062
1063 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1064
1065         * mule-charset.c (charset_code_point): Fix problem when searching
1066         in mother CCS fails with `defined_only' mode.
1067
1068 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1069
1070         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1071         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1072         (put_char_composition): Likewise.
1073         (Fput_char_attribute): Likewise.
1074         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1075
1076 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1077
1078         * chartab.c (Q_ucs): Deleted.
1079         (Fput_char_attribute): Don't refer `->ucs'.
1080         (Fdefine_char): Likewise.
1081         (Ffind_char): Likewise.
1082         (syms_of_chartab): Delete `->ucs'.
1083
1084 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1085
1086         * mule-charset.c (Qmap_cns11643_2): Renamed from
1087         `Qchinese_cns11643_2'.
1088         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1089         `chinese-cns11643-2'.
1090         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1091         `=cns11643-2'.
1092
1093 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1094
1095         * mule-charset.c (Qmap_cns11643_1): Renamed from
1096         `Qchinese_cns11643_1'.
1097         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1098         `chinese-cns11643-1'.
1099         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1100         `=cns11643-1'.
1101
1102 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1103
1104         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1105         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1106         `chinese-gb12345'.
1107         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1108         `=gb12345'.
1109
1110 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1111
1112         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1113         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1114         `chinese-gb2312'.
1115         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1116         `=gb2312'.
1117
1118 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1119
1120         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1121         (syms_of_mule_charset): Add new symbol `=big5' instead of
1122         `chinese-big5'.
1123         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1124
1125 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1126
1127         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1128         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1129         `korean-ksc5601'.
1130         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1131         `=ks-x1001'.
1132
1133 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1134
1135         * mule-charset.c (Qmap_jis_x0212): Renamed from
1136         `Qjapanese_jisx0212'.
1137         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1138         `japanese-jisx0212'.
1139         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1140         `=jis-x0212'.
1141
1142 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1143
1144         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1145         `Qjapanese_jisx0208'.
1146         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1147         of `japanese-jisx0208'.
1148         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1149         `=jis-x0208-1983'.
1150
1151 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1152
1153         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1154         `Qjapanese_jisx0208_1978'.
1155         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1156         of `japanese-jisx0208-1978'.
1157         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1158         `=jis-x0208-1978'.
1159
1160 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1161
1162         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1163         only for XEmacs CHISE.
1164
1165 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1166
1167         * char-ucs.h: Compact non-ISO-IR charset-ids.
1168         (LEADING_BYTE_UCS): Changed to -177.
1169         (LEADING_BYTE_CONTROL_1): Changed to -77.
1170         (LEADING_BYTE_UCS_BMP): Changed to -176.
1171         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1172
1173 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1174
1175         * mule-charset.c (Qiso_ir): New variable.
1176         (Fmake_charset): Recognise new property `iso-ir'.
1177         (syms_of_mule_charset): Add new symbol `iso-ir'.
1178
1179 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1180
1181         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1182         n to -n; charset-id of non ISO-IR sets are changed to positive
1183         numbers.
1184
1185 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1186
1187         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1188         for &MCS-XXXXXXXX; values.
1189
1190 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1191
1192         * mule.c (Vxemacs_chise_version): Renamed from
1193         `Vutf_2000_version'.
1194         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1195         `utf-2000-version' as an alias for `xemacs-chise-version'.
1196
1197 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1198
1199         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1200         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1201         defined.
1202
1203         * config.h.in (CHISE): New macro.
1204
1205 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1206
1207         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1208         of `ucs'.
1209         (Qmap_ucs): New variable.
1210         (syms_of_mule_charset): Add new symbol `=ucs'.
1211         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1212
1213         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1214         (simplify_char_spec): Likewise.
1215
1216         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1217
1218         * char-ucs.h (Qmap_ucs): New extern variable.
1219
1220 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1221
1222         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1223         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1224         don't define it when UTF2000 is not defined.
1225         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1226         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1227         when UTF2000 is not defined.
1228         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1229         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1230
1231 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1232
1233         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1234
1235         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1236         (Qucs_gb): Deleted.
1237         (syms_of_mule_charset): Delete `ucs-gb'.
1238         (complex_vars_of_mule_charset): Likewise.
1239
1240 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1241
1242         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1243
1244         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1245         (Qucs_cns): Deleted.
1246         (syms_of_mule_charset): Delete `ucs-cns'.
1247         (complex_vars_of_mule_charset): Likewise.
1248
1249 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1250
1251         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1252
1253         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1254         (Qucs_jis): Deleted.
1255         (syms_of_mule_charset): Delete `ucs-jis'.
1256         (complex_vars_of_mule_charset): Likewise.
1257
1258 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1259
1260         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1261
1262         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1263         (Qucs_ks): Deleted.
1264         (syms_of_mule_charset): Delete `ucs-ks'.
1265         (complex_vars_of_mule_charset): Likewise.
1266
1267 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1268
1269         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1270         (Qideograph_daikanwa_2): Deleted.
1271         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1272         (complex_vars_of_mule_charset): Likewise.
1273
1274         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1275         (LEADING_BYTE_DAIKANWA_1): Deleted.
1276         (LEADING_BYTE_DAIKANWA_2): Deleted.
1277         (MIN_CHAR_DAIKANWA): Deleted.
1278         (MAX_CHAR_DAIKANWA): Deleted.
1279
1280 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1281
1282         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1283         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1284         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1285
1286         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1287         (Vcharset_ideograph_daikanwa): Deleted.
1288         (Qideograph_hanziku_{1..12}): Deleted.
1289         (Qideograph_daikanwa): Deleted.
1290         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1291         Vcharset_ideograph_daikanwa.
1292         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1293         `ideograph-hanziku-{1..12}'.
1294         (complex_vars_of_mule_charset): Likewise.
1295
1296 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1297
1298         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1299
1300         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1301         (Qideograph_gt_pj_{1..11}): Deleted.
1302         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1303         (complex_vars_of_mule_charset): Likewise.
1304
1305 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1306
1307         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1308         (Vcharset_ideograph_gt): Deleted.
1309         (Qucs_big5): Deleted.
1310         (Qideograph_gt): Deleted.
1311         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1312         `ideograph-gt'.
1313         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1314         and `ideograph-gt'.
1315
1316         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1317         (LEADING_BYTE_GT): Deleted.
1318         (MIN_CHAR_GT): Deleted.
1319         (MAX_CHAR_GT): Deleted.
1320
1321 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1322
1323         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1324
1325 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1326
1327         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1328         (save_uint16_byte_table): Likewise.
1329         (save_byte_table): Likewise; convert values by it.
1330         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1331         for `ideographic-structure'.
1332         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1333         as the filter for `ideographic-structure'.
1334
1335 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1336
1337         * chartab.c (put_char_composition): New function.
1338         (Fput_char_attribute): Use `put_char_composition'; use
1339         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1340
1341         * fns.c (simplify_char_spec): New function.
1342         (char_ref_simplify_spec): New function.
1343         (Fchar_refs_simplify_char_specs): New function.
1344         (syms_of_fns): Add new builtin function
1345         `char-refs-simplify-char-specs'.
1346
1347 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1348
1349         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1350         (Qideograph_cbeta): Deleted.
1351         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1352         (complex_vars_of_mule_charset): Likewise.
1353
1354         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1355         (MIN_CHAR_CBETA): Comment out.
1356         (MAX_CHAR_CBETA): Likewise.
1357
1358 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1359
1360         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1361         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1362         CHISE client feature.
1363
1364 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1365
1366         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1367
1368 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1369
1370         * mule-charset.c (charset_lookup_description_1): Use
1371         `NUM_LEADING_BYTES' in UTF-2000.
1372
1373 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1374
1375         * char-ucs.h (GC_CHARSETP): Deleted.
1376
1377 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1378
1379         * char-ucs.h (MAX_CHAR_GT): Updated.
1380
1381 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1382
1383         * text-coding.c: Sync with XEmacs 21.4.10.
1384
1385 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1386
1387         * mule-charset.c (Vcharset_china3_jef): Deleted.
1388         (Qchina3_jef): Deleted.
1389         (syms_of_mule_charset): Don't define `china3-jef'.
1390         (complex_vars_of_mule_charset): Likewise.
1391
1392         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1393         (MIN_CHAR_CHINA3_JEF): Comment out.
1394         (MAX_CHAR_CHINA3_JEF): Comment out.
1395
1396 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1397
1398         * mule-charset.c (Vcharset_ucs_gb): New variable.
1399         (Qucs_gb): New variable.
1400         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1401         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1402
1403         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1404
1405 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1406
1407         * mule-charset.c (charset_code_point): if a coded-charset has a
1408         final-byte, don't inherit the builtin range of the mother CCS.
1409
1410 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1411
1412         * mule-charset.c (charset_code_point): Fix problem about
1413         inheritance.
1414
1415 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1416
1417         * mule-charset.c (decode_builtin_char): Reorganized.
1418
1419 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1420
1421         * text-coding.c (char_encode_as_entity_reference): Modify for
1422         `charset_code_point'.
1423         (char_encode_shift_jis): Likewise.
1424         (char_encode_big5): Likewise.
1425         (char_encode_utf8): Likewise.
1426         (char_encode_iso2022): Likewise.
1427
1428         * mule-charset.c (charset_code_point): Add new argument
1429         `defined_only'.
1430         (Fencode_char): Add new optional argument `defined_only'.
1431
1432         * chartab.c (put_char_table): Modify for `charset_code_point'.
1433
1434         * char-ucs.h (charset_code_point): Add new argument
1435         `defined_only'.
1436         (encode_char_1): Modify for `charset_code_point'.
1437
1438 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1439
1440         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1441         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1442
1443 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1444
1445         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1446         (Qjis_x0208): Likewise.
1447         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1448         XCHARSET_FINAL(charset).
1449         (charset_code_point): Modify condition for final-byte based
1450         builtin-chars.
1451         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1452         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1453         in UTF-2000; specify `=jis-x0208' as the mother of
1454         `japanese-jisx0208-1978', `japanese-jisx0208' and
1455         `japanese-jisx0208-1990' in UTF-2000.
1456
1457 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1458
1459         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1460
1461 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1462
1463         * text-coding.c (decode_coding_utf16): Support UTF-16.
1464         (char_encode_utf16): Fixed.
1465
1466 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1467
1468         * text-coding.c (Qutf16): New variable in MULE.
1469         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1470         (Fcoding_system_type): Add `utf-16' in MULE.
1471         (struct detection_state): Add a structure for utf16 in MULE.
1472         (detect_coding_type): Setup st->utf16.mask in MULE.
1473         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1474         MULE.
1475         (reset_encoding_stream): Use `char_encode_utf16' and
1476         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1477         (detect_coding_utf16): New function [incomplete].
1478         (decode_coding_utf16): New function [support only UCS-2].
1479         (char_encode_utf16): New function.
1480         (char_finish_utf16): New function.
1481         (syms_of_file_coding): Add new symbol `utf-16'; setup
1482         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1483
1484         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1485         UTF-2000.
1486         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1487         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1488
1489 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1490
1491         * chartab.c (put_char_table): When a charset is specified as a
1492         range in UTF-2000, don't support builtin characters.
1493
1494 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1495
1496         * mule-charset.c (decode_defined_char): Don't refer external
1497         database if Qunbound or Qnil are found.
1498         (Fsave_charset_mapping_table): Don't define it if
1499         HAVE_CHISE_CLIENT is not defined.
1500         (Freset_charset_mapping_table): New function.
1501         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1502         found in external database.
1503         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1504         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1505         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1506
1507 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1508
1509         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1510         not.
1511
1512 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1513
1514         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1515         Q_lowercase, Q_uppercase in UTF-2000.
1516
1517         * chartab.c (get_char_table): Add special code for the standard
1518         case table to use character attribute `->downcase' and
1519         `->uppercase' for case operations in UTF-2000.
1520
1521         * casetab.c (Qflippedcase): New variable in UTF-2000.
1522         (Q_lowercase): Likewise.
1523         (Q_uppercase): Likewise.
1524         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1525         and `->uppercase' in UTF-2000.
1526         (complex_vars_of_casetab): Assign attribute name `downcase' to
1527         downcase and CANON table of Vstandard_case_table in UTF-2000;
1528         assign attribute name `flippedcase' to upcase and EQV table of
1529         Vstandard_case_table in UTF-2000.
1530
1531 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1532
1533         * text-coding.c (decode_add_er_char): Support isolated-chars.
1534         (char_encode_as_entity_reference): Likewise.
1535
1536 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1537
1538         * emacs.c (Vutf_2000_lisp_directory): New variable.
1539         (Vconfigure_utf_2000_lisp_directory): Likewise.
1540         (complex_vars_of_emacs): Add new variable
1541         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1542
1543 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1544
1545         * char-ucs.h (DECODE_CHAR): Delete special code for
1546         `chinese-big5-1' and `chinese-big5-2'.
1547
1548         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1549         (Qbig5_2): Likewise.
1550         (decode_defined_char): Support CONVERSION_BIG5_1 and
1551         CONVERSION_BIG5_2.
1552         (decode_builtin_char): Likewise.
1553         (charset_code_point): Likewise.
1554         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1555         'conversion in UTF-2000.
1556         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1557         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1558         `chinese-big5-2' as children of `chinese-big5'.
1559
1560         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1561         (CONVERSION_BIG5_2): New macro.
1562
1563 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1564
1565         * text-coding.c (char_encode_big5): Support entity-reference.
1566
1567 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1568
1569         * text-coding.c (char_encode_as_entity_reference): New function.
1570         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1571
1572 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1573
1574         * text-coding.c (decode_coding_big5): Support entity-reference
1575         decoding feature.
1576
1577 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1578
1579         * text-coding.c (allocate_coding_system): Initialize initial
1580         charsets for CODESYS_UTF8.
1581         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1582         charset-g2 for CODESYS_UTF8.
1583         (decode_coding_utf8): Use charset-g0.
1584         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1585         to force variants to map to UCS.
1586
1587 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1588
1589         * text-coding.c (Qutf_8_mcs): New variable.
1590         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1591         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1592         instead of `utf-8' in UTF-2000.
1593
1594 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1595
1596         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1597         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1598         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1599         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1600         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1601         CONVERSION_96x96x96x96 are introduced.
1602         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1603         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1604         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1605
1606         * char-ucs.h (CONVERSION_94): New macro.
1607         (CONVERSION_96): New macro.
1608         (CONVERSION_94x94): New macro.
1609         (CONVERSION_96x96): New macro.
1610         (CONVERSION_94x94x94): New macro.
1611         (CONVERSION_96x96x96): New macro.
1612         (CONVERSION_94x94x94x60): New macro.
1613         (CONVERSION_94x94x94x94): New macro.
1614         (CONVERSION_96x96x96x96): New macro.
1615
1616 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1617
1618         * chartab.c (Vcharacter_variant_table): Deleted.
1619         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1620         of `Vcharacter_variant_table'.
1621         (Fput_char_attribute): Likewise.
1622         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1623         (complex_vars_of_chartab): Likewise.
1624
1625 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1626
1627         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1628
1629         * fns.c (Qideographic_structure): New variable.
1630         (Qkeyword_char): New variable.
1631         (ids_format_unit): New function.
1632         (Fideographic_structure_to_ids): New function.
1633         (syms_of_fns): Add new symbols `ideographic-structure' and
1634         `:char'; add new builtin function `ideographic-structure-to-ids'.
1635
1636         * data.c (Fchar_ref_p): New function.
1637         (syms_of_data): Add new builtin function `char-ref-p'.
1638
1639         * chartab.h: Add an EXFUN for `Ffind_char'.
1640
1641 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1642
1643         * text-coding.c (Vcharacter_composition_table): Deleted.
1644         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1645         in every UTF-2000.
1646
1647         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1648         UTF-2000.
1649         (Vcharacter_composition_table): Deleted.
1650         (Fget_composite_char): Use the implementation for external-DB
1651         support in every UTF-2000.
1652         (Fput_char_attribute): Likewise.
1653         (char_attribute_system_db_file): Don't define if external-DB
1654         feature is not available.
1655         (Fsave_char_attribute_table): Likewise.
1656         (Fmount_char_attribute_table): Likewise.
1657         (Fclose_char_attribute_table): Likewise.
1658         (Freset_char_attribute_table): Likewise.
1659         (Fload_char_attribute_table): Likewise.
1660         (syms_of_chartab): Don't define `save-char-attribute-table',
1661         `mount-char-attribute-table', `reset-char-attribute-table',
1662         `close-char-attribute-table' and `load-char-attribute-table' if
1663         external-DB feature is not available.
1664         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1665
1666 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1667
1668         * text-coding.c (Qcomposition): Add extern if external-DB feature
1669         is supported.
1670         (Vcharacter_composition_table): Don't add extern if external-DB
1671         feature is supported.
1672         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1673         character composition rule if external-DB feature is supported.
1674
1675         * chartab.c (Vcharacter_composition_table): Don't define if
1676         external-DB feature is supported.
1677         (Qcomposition): New variable.
1678         (Fget_composite_char): New implementation for external-DB support.
1679         (Fput_char_attribute): Use `composition' property of each
1680         character instead of `Vcharacter_composition_table' to store
1681         character-composition rules if external-DB feature is supported.
1682         (syms_of_chartab): Add new symbol `composition'.
1683         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1684         external-DB feature is supported.
1685
1686 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1687
1688         * chartab.c (Vchar_db_stingy_mode): New variable.
1689         (load_char_attribute_maybe): Close database if
1690         Vchar_db_stingy_mode is not NIL.
1691         (Fload_char_attribute_table_map_function): Use
1692         `get_char_id_table_0' instead of `get_char_id_table'.
1693         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1694
1695         * chartab.h (get_char_id_table_0): New inline function.
1696         (get_char_id_table): Use `get_char_id_table_0'.
1697
1698 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1699
1700         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1701         and `COMPOSE_ADD_CHAR'.
1702         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1703
1704 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1705
1706         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1707         instead of `DECODE_ADD_UCS_CHAR'.
1708         (COMPOSE_ADD_CHAR): Likewise.
1709
1710 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1711
1712         * text-coding.c (decode_flush_er_chars): New inline function.
1713         (decode_add_er_char): New function.
1714         (decode_coding_utf8): Use `decode_flush_er_chars' and
1715         `decode_add_er_char'.
1716
1717 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1718
1719         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1720         done before `decode_output_utf8_partial_char'.
1721
1722         * mule-charset.c (complex_vars_of_mule_charset): Specify
1723         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1724         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1725
1726 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1727
1728         * mule-charset.c (decode_defined_char): New function; search
1729         mother.
1730         (decode_builtin_char): Don't search mother if
1731         XCHARSET_MAX_CODE(charset) == 0.
1732         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1733         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1734         (Fdecode_char): Use `decode_defined_char' instead of
1735         `DECODE_DEFINED_CHAR'.
1736         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1737         mother of `Vcharset_ucs_jis'.
1738
1739         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1740         instead of `DECODE_DEFINED_CHAR'.
1741
1742         * char-ucs.h (decode_defined_char): Renamed from
1743         `DECODE_DEFINED_CHAR'; changed to normal function.
1744         (DECODE_CHAR): Use `decode_defined_char' instead of
1745         `DECODE_DEFINED_CHAR'.
1746
1747         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1748
1749 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1750
1751         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1752
1753         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1754         variable.
1755         (Quse_entity_reference): New variable.
1756         (Qd): New variable.
1757         (Qx): New variable.
1758         (QX): New variable.
1759         (coding_system_description): Add description for
1760         `ccs_priority_list'.
1761         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1762         (allocate_coding_system): Initialize `ccs_priority_list' in
1763         UTF-2000.
1764         (Fmake_coding_system): Add description about
1765         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1766         (codesys).
1767         (Fcoding_system_property): Accept `disable-composition' and
1768         `use-entity-reference' in UTF-2000.
1769         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1770         in UTF-2000.
1771         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1772         (decode_coding_utf8): Decode entity-reference if
1773         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1774         (char_encode_utf8): Encode non-Unicode characters as
1775         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1776         (str->codesys).
1777         (syms_of_file_coding): Add new symbols `use-entity-reference',
1778         `d', `x', `X'.
1779         (vars_of_file_coding): Add new variable
1780         `coded-charset-entity-reference-alist'.
1781         (complex_vars_of_file_coding): Declare `disable-composition' and
1782         `use-entity-reference' to be coding-system-properties in UTF-2000.
1783
1784         * file-coding.h (struct Lisp_Coding_System): Add new member
1785         `use_entity_reference' and `ccs_priority_list'.
1786         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1787         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1788         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1789
1790 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1791
1792         * chartab.c (save_uint8_byte_table): Don't clear the table.
1793         (save_uint16_byte_table): Likewise.
1794         (save_byte_table): Likewise.
1795         (Fmount_char_attribute_table): New function.
1796         (syms_of_chartab): Add new builtin function
1797         `mount-char-attribute-table'.
1798
1799 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1800
1801         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1802         "w+" mode.
1803         (load_char_decoding_entry_maybe): Open database as read-only mode.
1804
1805         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1806         open database as "w+" mode.
1807         (load_char_attribute_maybe): Open database as read-only mode.
1808         (Fload_char_attribute_table): Likewise.
1809
1810 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1811
1812         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1813         (char_table_description): Delete member `db_file'.
1814         (Fmake_char_table): Don't refer `ct->db_file'.
1815         (Fcopy_char_table): Likewise.
1816         (Fsave_char_attribute_table): Likewise.
1817         (Fclose_char_attribute_table): Likewise.
1818         (Freset_char_attribute_table): Likewise.
1819         (load_char_attribute_maybe): Likewise.
1820         (Fload_char_attribute_table): Likewise.
1821
1822         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1823
1824 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1825
1826         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1827         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1828         `ct->db' is living.
1829         (load_char_attribute_maybe): Likewise.
1830         (Fload_char_attribute_table): Likewise.
1831
1832 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1833
1834         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1835         `ct->db_file' unconditionally.
1836
1837 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1838
1839         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1840         UTF-2000.
1841         (char_table_description): Add description for `db_file' and `db'
1842         in UTF-2000.
1843         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1844         UTF-2000.
1845         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1846         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1847         (Fclose_char_attribute_table): New function.
1848         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1849         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1850         and `cit->db'.
1851         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1852         (syms_of_chartab): Add new builtin function
1853         `Fclose_char_attribute_table'.
1854
1855 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1856
1857         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1858         `db' in UTF-2000.
1859         (load_char_attribute_maybe): Change interface.
1860         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1861
1862 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1863
1864         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1865
1866 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1867
1868         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1869         instead of `DECODE_CHAR' for mother; don't use special code for
1870         chinese-big5 to use code space of chinese-big5-1 and
1871         chinese-big5-2.
1872         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1873         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1874
1875         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1876         (MAX_CHAR_BIG5_CDP): Revival.
1877
1878 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1879
1880         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1881         the XLFD registry-encoding name of `chinese-big5'.
1882
1883 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1884
1885         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1886         (Qchinese_big5_cdp): Deleted.
1887         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1888         (complex_vars_of_mule_charset): Delete coded-charset
1889         `chinese-big5-cdp'.
1890
1891         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1892         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1893         `CHARSET_ID_OFFSET - n' for private CCS.
1894         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1895         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1896         of `MIN_LEADING_BYTE'.
1897         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1898         `(CHARSET_ID_OFFSET - 97)'.
1899         (MIN_CHAR_BIG5_CDP): Deleted.
1900         (MAX_CHAR_BIG5_CDP): Deleted.
1901
1902 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1903
1904         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1905
1906 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1907
1908         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1909         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1910         chartab.c].
1911
1912         * chartab.c (Vutf_2000_version): Moved to mule.c.
1913         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1914
1915 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1916
1917         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1918         when HAVE_CHISE_CLIENT is not defined.
1919
1920         * mule.c (vars_of_mule): Provide feature `chise' when
1921         HAVE_CHISE_CLIENT is defined.
1922
1923 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1924
1925         * config.h.in (UTF2000): Add comment.
1926         (HAVE_CHISE_CLIENT): New macro.
1927
1928 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1929
1930         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1931         CONSP.
1932         (Fput_char_attribute): Likewise.
1933         (char_attribute_system_db_file): Encode file-name of attribute.
1934         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1935         the initial value.
1936
1937 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1938
1939         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1940         (Fsave_charset_mapping_table): Use
1941         `char_attribute_system_db_file'.
1942         (load_char_decoding_entry_maybe): Likewise.
1943
1944         * chartab.h (Qsystem_char_id): New external variable.
1945         (char_attribute_system_db_file): New prototype.
1946
1947         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1948         (char_attribute_system_db_file): New function.
1949         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1950         (Freset_char_attribute_table): Likewise.
1951         (load_char_attribute_maybe): Likewise.
1952         (Fload_char_attribute_table): Likewise.
1953         (syms_of_chartab): Add new symbol `system-char-id'.
1954
1955 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1956
1957         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1958         `XCHARSET_GRAPHIC(ccs)'.
1959
1960 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1961
1962         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1963
1964 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1965
1966         * chartab.c (Q_ucs_variants): New variable.
1967         (syms_of_chartab): Add new symbol `->ucs-variants'.
1968         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1969         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1970         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1971
1972         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1973
1974         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1975         `HAVE_DATABASE' is defined.
1976         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1977         `HAVE_DATABASE' is defined.
1978
1979 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1980
1981         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1982         attribute-table.
1983         (Freset_char_attribute_table): New function.
1984         (syms_of_chartab): Add new builtin function
1985         `reset-char-attribute-table'.
1986
1987 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1988
1989         * chartab.c (load_char_attribute_maybe): Don't make directories.
1990
1991 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1992
1993         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1994
1995         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1996         for decoding-table.
1997
1998 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1999
2000         * mule-charset.c (Fsave_charset_mapping_table): Use
2001         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2002
2003         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2004         instead of `XCHARSET_CHARS'.
2005
2006 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2007
2008         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2009         (XCHARSET_BYTE_SIZE): Likewise.
2010
2011         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2012         mule-charset.c].
2013         (XCHARSET_BYTE_SIZE): Likewise.
2014
2015 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2016
2017         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2018         data-directory to store database.
2019         (Fsave_char_attribute_table): Likewise.
2020         (load_char_attribute_maybe): Likewise.
2021         (Fload_char_attribute_table): Likewise.
2022
2023 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2024
2025         * mule-charset.c (Fsave_charset_mapping_table): New function.
2026         (syms_of_mule_charset): Add new builtin function
2027         `save-charset-mapping-table'.
2028
2029 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2030
2031         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2032         (get_ccs_octet_table): New inline function.
2033         (put_ccs_octet_table): Likewise.
2034         (decoding_table_put_char): Use `get_ccs_octet_table' and
2035         `put_ccs_octet_table'.
2036         (decoding_table_remove_char): Use `decoding_table_put_char'.
2037         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2038
2039         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2040         into encoding_table.
2041         (make_charset): Use Qunbound instead Qnil as initial value of
2042         decoding_table.
2043
2044 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2045
2046         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2047         element is Qunloaded.
2048         (map_over_uint16_byte_table): Likewise.
2049         (map_over_byte_table): Likewise.
2050         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2051         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2052         database support, load encoding-table of the specified
2053         coded-charset if it is not loaded yet.
2054         (save_uint8_byte_table): New function of UTF-2000 with external
2055         database support.
2056         (save_uint16_byte_table): Likewise.
2057         (save_byte_table): Likewise.
2058         (Fput_char_attribute): Don't store value into external database
2059         even if the external database feature is supported in UTF-2000;
2060         set `attribute' as name of char-table if the external database
2061         feature is supported.
2062         (Fsave_char_attribute_table): New function in UTF-2000.
2063         (syms_of_chartab): Add new builtin function
2064         `save-char-attribute-table' in UTF-2000.
2065
2066 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2067
2068         * chartab.c (char_attribute_table_to_put): New variable in
2069         UTF-2000.
2070         (Qput_char_table_map_function): Likewise.
2071         (value_to_put): Likewise.
2072         (Fput_char_table_map_function): New function in UTF-2000.
2073         (put_char_table): Use `Fmap_char_attribute' for
2074         CHARTAB_RANGE_CHARSET in UTF-2000.
2075         (Fput_char_attribute): Store symbol instead of string in
2076         `XCHAR_TABLE_NAME (table)'.
2077         (load_char_attribute_maybe): Likewise.
2078         (syms_of_chartab): Add new symbol/function
2079         `put-char-table-map-function'.
2080
2081 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2082
2083         * database.h: Add new EXFUN for `Fmap_database'.
2084
2085         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2086         (syms_of_database): Likewise.
2087
2088         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2089         UTF-2000.
2090         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2091         (XCHAR_TABLE_UNLOADED): Likewise.
2092
2093         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2094         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2095         HAVE_DATABASE is defined.
2096         (char_attribute_table_to_load): New variable of UTF-2000 with
2097         external database support.
2098         (Qload_char_attribute_table_map_function): Likewise.
2099         (Fload_char_attribute_table_map_function): New function of
2100         UTF-2000 with external database support.
2101         (Fload_char_attribute_table): New function of UTF-2000.
2102         (Fmap_char_attribute): Call Fload_char_attribute_table if
2103         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2104         (syms_of_chartab): Add new symbol and function
2105         `load-char-attribute-table-map-function' in UTF-2000 with external
2106         database support; add new function `load-char-attribute-table' in
2107         UTF-2000.
2108
2109 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2110
2111         * chartab.h (load_char_attribute_maybe): New prototype for
2112         UTF-2000 with DATABASE support.
2113         (get_char_id_table): Use `load_char_attribute_maybe' if
2114         HAVE_DATABASE is defined.
2115
2116         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2117         with DATABASE support.
2118
2119 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2120
2121         * chartab.c (Fput_char_attribute): Use S-expression as key of
2122         external database.
2123
2124         * chartab.h (get_char_id_table): Use S-expression as key of
2125         external database.
2126
2127 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2128
2129         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2130         if an element is not loaded, load the corresponding attributes
2131         from an external database.
2132         (map_over_uint16_byte_table): Likewise.
2133         (map_over_byte_table): Likewise.
2134         (map_char_table): Modify for `map_over_uint8_byte_table',
2135         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2136         element is not loaded, load the corresponding attributes from an
2137         external database.
2138         (Fput_char_attribute): Change initial values to Qunloaded.
2139
2140         * chartab.h (get_char_id_table): If a character attribute is not
2141         loaded and the attribute value is not found in an external
2142         database, store Qunbound as the attribute value.
2143
2144 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2145
2146         * chartab.c (BT_UINT8_unloaded): New macro.
2147         (UINT8_VALUE_P): Accept Qunloaded.
2148         (UINT8_ENCODE): Likewise.
2149         (UINT8_DECODE): Likewise.
2150         (BT_UINT16_unloaded): New macro.
2151         (UINT16_VALUE_P): Accept Qunloaded.
2152         (UINT16_ENCODE): Likewise.
2153         (UINT16_DECODE): Likewise.
2154         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2155         BT_UINT16_unloaded.
2156         (mark_char_table): Mark `ct->name' in UTF-2000.
2157         (char_table_description): Add `name' in UTF-2000.
2158         (Fmake_char_table): Initialize `ct->name'.
2159         (Fcopy_char_table): Copy `ct->name'.
2160         (Fput_char_attribute): Store value into an external database if
2161         HAVE_DATABASE is defined.
2162
2163         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2164         UTF-2000.
2165         (CHAR_TABLE_NAME): New macro in UTF-2000.
2166         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2167         (get_char_id_table): Try to read an external database if Qunloaded
2168         is stored in a table.
2169
2170         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2171         Qunloaded.
2172
2173 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2174
2175         * database.h: Add EXFUN definitions for Fopen_database,
2176         Fput_database, Fget_database and Fclose_database.
2177
2178         * data.c (Qunloaded): New variable in UTF-2000.
2179
2180         * lisp.h (Qunloaded): New variable in UTF-2000.
2181
2182 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2183
2184         * mule-charset.c (put_char_ccs_code_point): Modify for
2185         `decoding_table_remove_char' and `decoding_table_put_char'.
2186         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2187
2188         * char-ucs.h (decoding_table_remove_char): Change arguments to
2189         hide decoding_table vector.
2190         (decoding_table_put_char): Likewise.
2191
2192 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2193
2194         * mule-charset.c (decoding_table_remove_char): Moved to
2195         char-ucs.h.
2196         (decoding_table_put_char): Likewise.
2197
2198         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2199         from mule-charset.c].
2200         (decoding_table_remove_char): New inline function [moved from
2201         mule-charset.c].
2202         (decoding_table_put_char): Likewise.
2203
2204 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2205
2206         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2207         extension.
2208
2209 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2210
2211         * mule-charset.c (decode_builtin_char): Support mother charsets.
2212
2213 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2214
2215         * mule-charset.c (Q94x94x60): New variable.
2216         (charset_code_point): Support conversion `94x94x60'.
2217         (Fmake_charset): Likewise.
2218         (syms_of_mule_charset): Add new symbol `94x94x60'.
2219
2220         * char-ucs.h (CONVERSION_94x94x60): New macro.
2221
2222 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2223
2224         * mule-charset.c (charset_code_point): Unify code about
2225         `code-offset'.
2226
2227 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2228
2229         * mule-charset.c (charset_code_point): Merge code about builtin
2230         characters into code about mother charsets; don't use
2231         `range_charset_code_point'.
2232         (range_charset_code_point): Deleted.
2233
2234 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2235
2236         * mule-charset.c (Qcode_offset): New variable.
2237         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2238         `max-code'; accept new property `code-offset'.
2239         (syms_of_mule_charset): Add new symbol `code-offset'.
2240
2241 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2242
2243         * mule-charset.c (range_charset_code_point): Fixed.
2244
2245 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2246
2247         * mule-charset.c (decode_builtin_char): Change semantics of
2248         code-offset of coded-charset.
2249         (charset_code_point): Likewise.
2250         (range_charset_code_point): Likewise.
2251         (complex_vars_of_mule_charset): Modify for the change.
2252
2253 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2254
2255         * mule-charset.c (Fencode_char): Reverse arguments.
2256
2257         * mule-charset.c (charset_code_point): Fixed.
2258
2259 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2260
2261         * mule-charset.c (Vcharset_mojikyo): Deleted.
2262         (Vcharset_mojikyo_2022_1): Deleted.
2263         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2264         (Qmin_code): New variable in UTF-2000.
2265         (Qmax_code): Likewise.
2266         (Qmother): Likewise.
2267         (Qconversion): Likewise.
2268         (Q94x60): Likewise.
2269         (Qmojikyo): Deleted.
2270         (Qmojikyo_2022_1): Deleted.
2271         (Qmojikyo_pj_{1..22}): Deleted.
2272         (mark_charset): Mark `cs->mother'.
2273         (charset_description): Add description for `mother'.
2274         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2275         new arguments `mother' and `conversion'; use
2276         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2277         (charset_code_point): Moved from char-ucs.h; support `mother'
2278         charset feature.
2279         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2280         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2281         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2282         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2283         allow 2 as the value of `graphic' in UTF-2000; add new properties
2284         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2285         require `final' in UTF-2000; modify for `make_charset'.
2286         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2287         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2288         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2289         (Fencode_char): New function.
2290         (syms_of_mule_charset): Add new builtin function `encode-char' in
2291         UTF-2000; add new symbols `min-code', `max-code', `mother',
2292         `conversion' and `94x60'; delete symbols `mojikyo',
2293         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2294         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2295         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2296         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2297
2298         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2299         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2300
2301         * char-ucs.h (Vcharset_mojikyo): Deleted.
2302         (Vcharset_mojikyo_2022_1): Deleted.
2303         (LEADING_BYTE_MOJIKYO): Deleted.
2304         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2305         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2306         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2307         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2308         add new member `mother'; add new member `conversion'.
2309         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2310         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2311         (CHARSET_MOTHER): New macro.
2312         (CHARSET_CONVERSION): New macro.
2313         (CONVERSION_IDENTICAL): New macro.
2314         (CONVERSION_94x60): New macro.
2315         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2316         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2317         (XCHARSET_MOTHER): New macro.
2318         (XCHARSET_CONVERSION): New macro.
2319         (MIN_CHAR_MOJIKYO): Deleted.
2320         (MAX_CHAR_MOJIKYO): Deleted.
2321         (DECODE_MOJIKYO_2022): Deleted.
2322         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2323         (charset_code_point): Changed to non-inline function.
2324         (encode_char_1): Use `charset_code_point'.
2325         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2326
2327 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2328
2329         * lread.c (read_compiled_function): Fix prototype.
2330         (read_vector): Likewise.
2331
2332 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2333
2334         * lrecord.h (struct lrecord_header): Delete `older'.
2335         (set_lheader_implementation): Delete code for `older'.
2336         (set_lheader_older_implementation): Deleted.
2337         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2338         (OLDER_RECORD_P): Deleted.
2339         (OLDER_RECORD_HEADER_P): Deleted.
2340         (alloc_older_lcrecord): Deleted.
2341         (alloc_older_lcrecord_type): Deleted.
2342
2343         * alloc.c (all_older_lcrecords): Deleted.
2344         (alloc_older_lcrecord): Deleted.
2345         (disksave_object_finalization_1): Delete code for older objects.
2346         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2347         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2348
2349 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2350
2351         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2352         instead of `make_older_vector'.
2353         (put_char_ccs_code_point): Likewise.
2354         (mark_charset): Mark `cs->decoding_table'.
2355         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2356
2357         * lisp.h (make_older_vector): Deleted.
2358         (make_vector_newer): Deleted.
2359
2360         * config.h.in (HAVE_GGC): Deleted.
2361
2362         * alloc.c (make_older_vector): Deleted.
2363         (make_vector_newer_1): Deleted.
2364         (make_vector_newer): Deleted.
2365
2366 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2367
2368         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2369         (Qideograph_daikanwa_2): New variable.
2370         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2371         (complex_vars_of_mule_charset): Add new coded-charset
2372         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2373         `LEADING_BYTE_DAIKANWA'.
2374
2375         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2376         (LEADING_BYTE_DAIKANWA_1): New macro.
2377         (LEADING_BYTE_DAIKANWA_2): New macro.
2378         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2379
2380 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2381
2382         * mule-charset.c (complex_vars_of_mule_charset): Change
2383         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2384         the second revised version.
2385
2386 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2387
2388         * mule-charset.c (Vcharset_ucs_smp): New variable.
2389         (Vcharset_ucs_sip): New variable.
2390         (Qucs_smp): New variable.
2391         (Qucs_sip): New variable.
2392         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2393         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2394         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2395         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2396         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2397         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2398
2399         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2400         (LEADING_BYTE_UCS_SIP): New macro.
2401         (MIN_CHAR_SMP): New macro.
2402         (MAX_CHAR_SMP): New macro.
2403         (MIN_CHAR_SIP): New macro.
2404         (MAX_CHAR_SIP): New macro.
2405
2406 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2407
2408         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2409         utf-2000.
2410
2411 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2412
2413         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2414         value; don't store value into `encoding_table' of `Lisp_Charset'.
2415         (mark_charset): `encoding_table' was deleted.
2416         (charset_description): Likewise.
2417         (make_charset): Likewise.
2418         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2419         `put_char_ccs_code_point'.
2420
2421         * chartab.h (Fput_char_attribute): New EXFUN.
2422
2423         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2424         is unified with normal symbol space.
2425         (Fget_char_attribute): Likewise.
2426         (Fput_char_attribute): Likewise; behavior of
2427         `put_char_ccs_code_point' is changed.
2428
2429         * char-ucs.h: Include "elhash.h".
2430         (Vchar_attribute_hash_table): New external variable.
2431         (struct Lisp_Charset): Delete `encoding_table'.
2432         (CHARSET_ENCODING_TABLE): New implementation; refer
2433         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2434         `Lisp_Charset'.
2435
2436 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2437
2438         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2439         (cs) == 0.
2440
2441 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2442
2443         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2444         `chinese-big5'.
2445
2446 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2447
2448         * chartab.c (uint8_byte_table_description): New constant.
2449         (uint8-byte-table): Use `uint8_byte_table_description'.
2450         (uint16_byte_table_description): New constant.
2451         (uint16-byte-table): Use `uint16_byte_table_description'.
2452
2453 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2454
2455         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2456         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2457
2458 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2459
2460         * mule-charset.c (Vcharset_ucs_ks): New variable.
2461         (Qucs_ks): New variable.
2462         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2463         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2464
2465         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2466
2467 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2468
2469         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2470         (Fdecode_char): Likewise.
2471
2472         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2473         chartab.h.
2474         (Fdefine_char): Modify for Fdecode_char.
2475         (Ffind_char): Likewise.
2476
2477         * mule-charset.c (Fdecode_char): Add new optional argument
2478         `defined-only'.
2479         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2480
2481 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2482
2483         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2484         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2485         (allocate_coding_system): Initialize initial-charsets of
2486         CODESYS_BIG5 in XEmacs UTF-2000.
2487         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2488         CODESYS_BIG5 in XEmacs UTF-2000.
2489         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2490         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2491
2492         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2493         variables.
2494         (Qideograph_hanziku_{1 .. 12}): Likewise.
2495         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2496         .. 12}'.
2497         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2498         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2499         `ideograph-hanziku-{1 .. 12}'.
2500
2501         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2502         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2503         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2504         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2505         (DECODE_DEFINED_CHAR): New inline function.
2506         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2507
2508 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2509
2510         * mule-charset.c (Vcharset_china3_jef): Renamed from
2511         `Vcharset_japanese_jef_china3'.
2512         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2513         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2514         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2515         (syms_of_mule_charset): Rename `china3-jef' from
2516         `japanese-jef-china3'.
2517         (complex_vars_of_mule_charset): Likewise; rename
2518         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2519
2520         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2521         `LEADING_BYTE_JEF_CHINA3'.
2522         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2523         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2524
2525 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2526
2527         * mule-charset.c (encode_builtin_char_1): Comment out special code
2528         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2529
2530         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2531         (MAX_CHAR_MOJIKYO_0): Comment out.
2532         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2533         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2534         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2535         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2536
2537 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2538
2539         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2540         (Qideograph_cbeta): New variable.
2541         (encode_builtin_char_1): Comment out special code for
2542         coded-charset `mojikyo' and `japanese-jef-china3'.
2543         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2544         (complex_vars_of_mule_charset): Add new coded-charset
2545         `ideograph-cbeta'.
2546
2547         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2548         (MIN_CHAR_CBETA): New macro.
2549         (MAX_CHAR_CBETA): New macro.
2550
2551 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2552
2553         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2554         (LEADING_BYTE_JEF_CHINA3): New macro.
2555         (MIN_CHAR_JEF_CHINA3): New macro.
2556         (MAX_CHAR_JEF_CHINA3): Likewise.
2557         (DECODE_CHAR): Fixed.
2558
2559 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2560
2561         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2562         (Qjapanese_jef_china3): New variable.
2563         (encode_builtin_char_1): Support `japanese-jef-china3'.
2564         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2565         (complex_vars_of_mule_charset): Add new coded-charset
2566         `japanese-jef-china3'.
2567
2568 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2569
2570         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2571         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2572         94^4, 96^3, 96^4, 128^n and 256^n set.
2573         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2574         (map_char_table): Likewise.
2575
2576 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2577
2578         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2579         UTF-2000.
2580
2581 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2582
2583         * chartab.h (get_char_id_table): New inline function.
2584
2585         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2586         function.
2587
2588 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2589
2590         * chartab.h (decode_char_table_range): New prototype in XEmacs
2591         UTF-2000.
2592         (put_char_id_table): New inline function in XEmacs UTF-2000.
2593
2594         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2595         function.
2596         (decode_char_table_range): Delete static declaration in XEmacs
2597         UTF-2000.
2598
2599 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2600
2601         * chartab.c (put_char_id_table): Use `put_char_table'.
2602
2603 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2604
2605         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2606         (map_over_uint16_byte_table): Likewise.
2607         (map_over_byte_table): Likewise.
2608         (map_char_table): Modify for `map_over_uint8_byte_table',
2609         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2610         UTF-2000.
2611
2612 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2613
2614         * chartab.c (struct map_char_table_for_charset_arg): New
2615         structure.
2616         (map_char_table_for_charset_fun): New function.
2617         (map_char_table): Use `map_char_table' for encoding_table of
2618         `range->charset'.
2619
2620 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2621
2622         * chartab.c (map_char_table): Check a character is found in
2623         range->charset instead of non default value is defined in
2624         char-table when range is CHARTAB_RANGE_ROW.
2625
2626 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2627
2628         * chartab.c (map_char_id_table): Deleted.
2629         (Fmap_char_attribute): Use `map_char_table' instead of
2630         `map_char_id_table'.
2631
2632 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2633
2634         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2635         UTF-2000.
2636         (update_syntax_table): Deleted in XEmacs UTF-2000.
2637
2638         * syntax.c (find_defun_start): Use `syntax_table' instead of
2639         `mirror_syntax_table' in XEmacs UTF-2000.
2640         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2641         UTF-2000.
2642         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2643         XEmacs UTF-2000.
2644         (Fmatching_paren): Likewise.
2645         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2646         in XEmacs UTF-2000.
2647         (find_start_of_comment): Likewise.
2648         (find_end_of_comment): Likewise.
2649         (Fforward_comment): Likewise.
2650         (scan_lists): Likewise.
2651         (char_quoted): Likewise.
2652         (Fbackward_prefix_chars): Likewise.
2653         (scan_sexps_forward): Likewise.
2654         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2655         (update_syntax_table): Likewise.
2656
2657         * search.c (skip_chars): Use `syntax_table' instead of
2658         `mirror_syntax_table' in XEmacs UTF-2000.
2659         (wordify): Likewise.
2660         (Freplace_match): Likewise.
2661
2662         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2663         `mirror_syntax_table' in XEmacs UTF-2000.
2664         (WORDCHAR_P_UNSAFE): Likewise.
2665         (re_match_2_internal): Likewise.
2666
2667         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2668         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2669
2670         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2671         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2672
2673         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2674         XEmacs UTF-2000.
2675
2676         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2677         UTF-2000.
2678         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2679         (char_table_description): Delete `mirror_table' in XEmacs
2680         UTF-2000.
2681         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2682         UTF-2000.
2683         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2684         (Fcopy_char_table): Likewise.
2685         (put_char_table): Don't call `update_syntax_table' in XEmacs
2686         UTF-2000.
2687
2688         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2689         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2690         (casify_region_internal): Likewise.
2691
2692         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2693
2694         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2695         `mirror_syntax_table' in XEmacs UTF-2000.
2696
2697         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2698         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2699         (Fexpand_abbrev): Likewise.
2700
2701 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2702
2703         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2704
2705 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2706
2707         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2708         (map_over_uint16_byte_table): Likewise.
2709         (map_over_byte_table): Likewise.
2710         (get_char_id_table): Refer `cit->default_value'.
2711         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2712         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2713         of character-id ranges.
2714         (mark_char_table): Mark `ct->default_value'.
2715         (char_table_description): Add `default_value'.
2716         (fill_char_table): Use `default_value'.
2717         (decode_char_table_range): Decode `nil' as
2718         `CHARTAB_RANGE_DEFAULT'.
2719         (get_char_id_table): Refer `cit->default_value'.
2720         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2721         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2722         temporary hack; check value of char-table is bound or not.
2723         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2724
2725         * chartab.h (struct Lisp_Char_Table): Add new member
2726         `default_value' in XEmacs UTF-2000.
2727         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2728         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2729         UTF-2000.
2730
2731 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2732
2733         * chartab.h (Lisp_Char_ID_Table): Deleted.
2734
2735         * chartab.c (char_table_description): Fix typo.
2736         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2737         `Lisp_Char_ID_Table'.
2738
2739 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2740
2741         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2742         `CHAR_ID_TABLE_P'.
2743
2744         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2745         `CHAR_ID_TABLE_P'.
2746
2747         * chartab.h (XCHAR_ID_TABLE): Deleted.
2748         (XSETCHAR_ID_TABLE): Deleted.
2749         (CHAR_ID_TABLE_P): Deleted.
2750
2751         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2752         `CHAR_ID_TABLE_P'.
2753         (Fget_composite_char): Likewise.
2754         (put_char_table): Likewise.
2755         (add_char_attribute_alist_mapper): Fixed.
2756         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2757         `CHAR_ID_TABLE_P'.
2758         (Fget_char_attribute): Likewise.
2759         (Fget_char_attribute): Likewise.
2760         (Fmap_char_attribute): Likewise.
2761
2762         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2763         `CHAR_ID_TABLE_P'.
2764         (encode_char_1): Likewise.
2765
2766 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2767
2768         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2769         `XCHAR_ID_TABLE'.
2770
2771         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2772         instead of `XCHAR_ID_TABLE'.
2773         (remove_char_ccs): Likewise.
2774
2775         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2776         `XCHAR_ID_TABLE'.
2777         (Fget_composite_char): Likewise.
2778         (Fchar_variants): Likewise.
2779         (put_char_table): Likewise.
2780         (add_char_attribute_alist_mapper): Likewise.
2781         (Fchar_attribute_alist): Likewise.
2782         (Fget_char_attribute): Likewise.
2783         (Fput_char_attribute): Likewise.
2784         (Fmap_char_attribute): Likewise.
2785         (Fmap_char_attribute): Likewise.
2786
2787         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2788         `XCHAR_ID_TABLE'.
2789         (encode_char_1): Likewise.
2790
2791 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2792
2793         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2794         `Lisp_Char_ID_Table'.
2795         (mark_char_id_table): Deleted.
2796         (print_char_id_table): Likewise.
2797         (char_id_table_equal): Likewise.
2798         (char_id_table_hash): Likewise.
2799         (char_id_table_description): Likewise.
2800         (char_id_table): Likewise.
2801         (make_char_id_table): Use `Fmake_char_table' and
2802         `fill_char_table'.
2803         (get_char_id_table): Use `Lisp_Char_Table' instead of
2804         `Lisp_Char_ID_Table'.
2805         (put_char_id_table): Likewise.
2806         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2807         `XCHAR_ID_TABLE'.
2808         (Fremove_char_attribute): Likewise.
2809         (syms_of_chartab): Don't define type `char-id-table'.
2810
2811         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2812         (char_id_table): Likewise.
2813         (GC_CHAR_ID_TABLE_P): Likewise.
2814         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2815         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2816         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2817         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2818         (get_char_id_table): Use `Lisp_Char_Table' instead of
2819         `Lisp_Char_ID_Table'.
2820         (put_char_id_table_0): Likewise.
2821         (put_char_id_table): Likewise.
2822
2823 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2824
2825         * chartab.h: Lisp_Byte_Table related codes are moved from
2826         chartab.h.
2827
2828         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2829
2830 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2831
2832         * chartab.h: Don't include "chartab.h".
2833         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2834         (Lisp_Char_ID_Table): Likewise.
2835         (char_id_table): Likewise.
2836         (XCHAR_ID_TABLE): Likewise.
2837         (XSETCHAR_ID_TABLE): Likewise.
2838         (CHAR_ID_TABLE_P): Likewise.
2839         (GC_CHAR_ID_TABLE_P): Likewise.
2840         (get_char_id_table): Likewise.
2841
2842         * char-ucs.h: Include "chartab.h".
2843         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2844         (Lisp_Char_ID_Table): Likewise.
2845         (char_id_table): Likewise.
2846         (XCHAR_ID_TABLE): Likewise.
2847         (XSETCHAR_ID_TABLE): Likewise.
2848         (CHAR_ID_TABLE_P): Likewise.
2849         (GC_CHAR_ID_TABLE_P): Likewise.
2850         (get_char_id_table): Likewise.
2851
2852 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2853
2854         * chartab.c (copy_uint8_byte_table): New function.
2855         (copy_uint16_byte_table): New function.
2856         (copy_byte_table): New function.
2857         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2858         characters to call.
2859         (map_over_uint16_byte_table): Likewise.
2860         (map_over_byte_table): Likewise.
2861         (get_byte_table): Move prototype to chartab.h.
2862         (put_byte_table): Likewise.
2863         (put_char_id_table_0): Moved to chartab.h.
2864         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2865         (char_table_entry_equal): Likewise.
2866         (char_table_entry_hash): Likewise.
2867         (char_table_entry_description): Likewise.
2868         (char_table_entry): Likewise.
2869         (make_char_table_entry): Likewise.
2870         (copy_char_table_entry): Likewise.
2871         (get_non_ascii_char_table_value): Likewise.
2872         (map_over_charset_ascii): Likewise.
2873         (map_over_charset_control_1): Likewise.
2874         (map_over_charset_row): Likewise.
2875         (map_over_other_charset): Likewise.
2876         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2877         (print_char_table): Likewise.
2878         (char_table_equal): Likewise.
2879         (char_table_hash): Likewise.
2880         (char_table_description): Likewise.
2881         (fill_char_table): Likewise.
2882         (Fcopy_char_table): Likewise.
2883         (get_char_table): Likewise.
2884         (Fget_range_char_table): Likewise.
2885         (put_char_table): Likewise.
2886         (map_char_table): Likewise.
2887         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2888         UTF-2000.
2889
2890 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2891
2892         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2893         `Vauto_fill_chars' in XEmacs UTF-2000.
2894
2895         * chartab.h (get_byte_table): New prototype [moved from
2896         chartab.c].
2897         (put_byte_table): Likewise [moved from chartab.c].
2898         (put_char_id_table_0): New inline function [moved from chartab.c].
2899         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2900         (Lisp_Char_Table_Entry): Likewise.
2901         (char_table_entry): Likewise.
2902         (XCHAR_TABLE_ENTRY): Likewise.
2903         (XSETCHAR_TABLE_ENTRY): Likewise.
2904         (CHAR_TABLE_ENTRYP): Likewise.
2905         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2906         (NUM_ASCII_CHARS): Likewise.
2907         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2908         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2909
2910 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2911
2912         * chartab.c (get_char_id_table): Change interface.
2913         (put_char_id_table_0): New function.
2914         (put_char_id_table): Change interface; new implementation.
2915         (Fget_composite_char): Modify for interface change of
2916         `get_char_id_table'.
2917         (Fchar_variants): Likewise.
2918         (add_char_attribute_alist_mapper): Likewise.
2919         (Fchar_attribute_alist): Likewise.
2920         (Fget_char_attribute): Likewise.
2921         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2922         as same as character as the first argument like `put-char-table';
2923         modify for interface change of `put_char_id_table'.
2924         (Fremove_char_attribute): Modify for interface change of
2925         `put_char_id_table'.
2926
2927 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2928
2929         * text-coding.c: Sync up with XEmacs 21.2.41.
2930         (COMPOSE_ADD_CHAR): Modify for interface change of
2931         `get_char_id_table'.
2932
2933         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2934         change of `put_char_id_table'.
2935         (remove_char_ccs): Likewise.
2936
2937         * chartab.h (put_char_id_table): Change interface.
2938
2939         * char-ucs.h (get_char_id_table): Change interface.
2940         (charset_code_point): Modify for interface change of
2941         `get_char_id_table'.
2942         (encode_char_1): Likewise.
2943
2944 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2945
2946         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2947         argument `ccs'.
2948         (map_over_uint16_byte_table): Likewise.
2949         (map_over_byte_table): Likewise.
2950         (map_char_id_table): Add new argument `range' like
2951         `map_char_table'.
2952         (Fmap_char_attribute): Add new argument `range' like
2953         `Fmap_char_table'.
2954
2955 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2956
2957         * chartab.c (map_over_uint8_byte_table): Change interface of
2958         mapping function to use struct chartab_range instead of Emchar.
2959         (map_over_uint16_byte_table): Likewise.
2960         (map_over_byte_table): Likewise.
2961         (map_char_id_table): Likewise.
2962         (struct slow_map_char_id_table_arg): Deleted.
2963         (slow_map_char_id_table_fun): Deleted.
2964         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2965         function `slow_map_char_table_fun' instead of struct
2966         `slow_map_char_id_table_arg' and function
2967         `slow_map_char_id_table_fun'.
2968
2969 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2970
2971         * mule-charset.c: Move char-it-table related codes to chartab.c.
2972         (Vutf_2000_version): Moved to chartab.c.
2973         (Fdefine_char): Likewise.
2974         (Ffind_char): Likewise.
2975         (syms_of_mule_charset): Move types `uint8-byte-table',
2976         `uint16-byte-table', `byte-table' and `char-id-table' to
2977         chartab.c; move functions `char_attribute_list,
2978         `find_char_attribute_table, `char_attribute_alist,
2979         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2980         `map_char_attribute, `define_char, `find_char, `char_variants and
2981         `get_composite_char to chartab.c; move symbols `=>ucs',
2982         `->decomposition', `compat', `isolated', `initial', `medial',
2983         `final', `vertical', `noBreak', `fraction', `super', `sub',
2984         `circle', `square', `wide', `narrow', `small' and `font' to
2985         chartab.c.
2986         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2987         setting codes for `Vcharacter_composition_table' and
2988         `Vcharacter_variant_table' to chartab.c.
2989         (complex_vars_of_mule_charset): Move setting code for
2990         `Vchar_attribute_hash_table' to chartab.c.
2991
2992         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2993         (make_char_id_table): New prototype.
2994         (put_char_id_table): Likewise.
2995         (Fget_char_attribute): Likewise.
2996
2997         * chartab.c: Move char-id-table related code from mule-charset.c.
2998         (Vutf_2000_version): Moved from mule-charset.c.
2999
3000         * char-ucs.h (Qucs): New external variable.
3001         (put_char_ccs_code_point): New prototype.
3002         (remove_char_ccs): Likewise.
3003
3004 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3005
3006         * mule-charset.c (Vcharset_ucs_jis): New variable.
3007         (Qucs_jis): Likewise.
3008         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3009         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3010
3011         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3012
3013 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3014
3015         * mule-charset.c (map_over_uint8_byte_table): New function.
3016         (map_over_uint16_byte_table): Likewise.
3017         (map_over_byte_table): Likewise.
3018         (map_char_id_table): Likewise.
3019         (slow_map_char_id_table_fun): Likewise.
3020         (Fmap_char_attribute): Likewise.
3021         (syms_of_mule_charset): Add new function `map-char-attribute'.
3022
3023 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3024
3025         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3026         (syms_of_mule_charset): Add new function `find-char'.
3027
3028 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3029
3030         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3031         XEmacs UTF-2000.
3032         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3033         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3034         XEmacs UTF-2000.
3035         (complex_vars_of_mule_charset): Add new coded-charset
3036         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3037         `ideograph-gt-pj-*'.
3038
3039         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3040
3041 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3042
3043         * mule-charset.c (encode_builtin_char_1): Purge codes about
3044         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3045         {MIN|MAX}_CHAR_HEBREW.
3046         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3047         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3048
3049         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3050         (MAX_CHAR_GREEK): Purged.
3051         (MIN_CHAR_CYRILLIC): Purged.
3052         (MAX_CHAR_CYRILLIC): Purged.
3053         (MIN_CHAR_HEBREW): Commented out.
3054         (MAX_CHAR_HEBREW): Likewise.
3055
3056 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3057
3058         * mule-charset.c (Qto_ucs): New variable.
3059         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3060         (Fdefine_char): Likewise.
3061         (syms_of_mule_charset): Add new symbol `=>ucs'.
3062
3063 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3064
3065         * mule-charset.c (Fdecode_char): Fixed.
3066
3067 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3068
3069         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3070         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3071         "tcvn5712-1".
3072
3073 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3074
3075         * mule-charset.c (Vcharset_ucs_big5): New variable.
3076         (Qucs_big5): Likewise.
3077         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3078         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3079
3080         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3081
3082 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3083
3084         * mule-charset.c (decode_builtin_char): Check Big5 code range
3085         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3086
3087 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3088
3089         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3090         (Qchinese_gb12345): Likewise.
3091         (Fdecode_builtin_char): Fixed.
3092         (syms_of_mule_charset): Add `chinese-gb12345'.
3093         (complex_vars_of_mule_charset): Add coded-charset
3094         `chinese-gb12345'.
3095
3096         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3097         (LEADING_BYTE_CHINESE_GB12345): New macro.
3098
3099 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3100
3101         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3102         and `latin-viscii-upper' for `latin-viscii'.
3103
3104 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3105
3106         * mule-charset.c (Fdecode_builtin_char): Comment out
3107         regularization code for ISO-IR GR representation.
3108
3109 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3110
3111         * mule-charset.c (decode_builtin_char): New function; renamed from
3112         `make_builtin_char'; return -1 instead of signal.
3113         (Fdecode_builtin_char): Use `decode_builtin_char'.
3114
3115         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3116         `make_builtin_char'.
3117         (DECODE_CHAR): Use `decode_builtin_char' instead of
3118         `make_builtin_char'; use mapping table of `chinese-big5' for
3119         `chinese-big5-{1,2}'.
3120
3121 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3122
3123         * text-coding.c (char_encode_big5): New function.
3124         (char_finish_big5): Likewise.
3125         (reset_encoding_stream): Use `char_encode_big5' and
3126         `char_finish_big5' for CODESYS_BIG5.
3127         (mule_encode): Don't use `encode_coding_big5'.
3128         (encode_coding_big5): Deleted.
3129
3130 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3131
3132         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3133         0x81- in XEmacs UTF-2000.
3134         (detect_coding_big5): Likewise.
3135
3136 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3137
3138         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3139         generate character-id if the CCS property does not have
3140         corresponding predefined character.
3141         (make_builtin_char): Return -1 if corresponding predefined
3142         character is not found.
3143         (Fdecode_char): Return nil if corresponding character is not
3144         found.
3145         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3146         don't map to builtin ucs space.
3147
3148 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3149
3150         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3151         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3152
3153 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3154
3155         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3156         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3157         (Qideograph_gt): Likewise.
3158         (Qideograph_gt_pj_{1..11}): Likewise.
3159         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3160         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3161         `ideograph-gt-pj-11'.
3162         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3163         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3164         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3165
3166         * char-ucs.h (LEADING_BYTE_GT): New macro.
3167         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3168         (MIN_CHAR_GT): Likewise.
3169         (MAX_CHAR_GT): Likewise.
3170
3171 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3172
3173         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3174         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3175
3176         * doprnt.c (unsigned_int_converters): Add `c'.
3177         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3178
3179         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3180         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3181         `MIN_CHAR_MOJIKYO'.
3182         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3183         (MAX_CHAR_MOJIKYO_0): New macro.
3184         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3185
3186 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3187
3188         * mule-charset.c (Fdefine_char): Delete cemented out code.
3189         (encode_builtin_char_1): Modify for new allocation of builtin
3190         Mojikyo characters.
3191
3192         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3193
3194 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3195
3196         * mule-charset.c (Vcharset_ucs_cns): New variable.
3197         (Qucs_cns): New variable.
3198         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3199         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3200
3201 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3202
3203         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3204
3205 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3206
3207         * search.c (search_buffer): Make `charset_base_code' as
3208         character-id >> 6 to eliminate the corresponding last byte in
3209         UTF-8 representation [I'm not sure it is right thing].
3210         (boyer_moore): Likewise.
3211
3212 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3213
3214         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3215         representation in MULE.
3216
3217 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3218
3219         * text-coding.c (Fmake_coding_system): Use
3220         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3221         `EXTERNAL_PROPERTY_LIST_LOOP'.
3222
3223 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3224
3225         * text-coding.c (decode_output_utf8_partial_char): New function.
3226         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3227
3228 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3229
3230         * text-coding.c (decode_coding_utf8): Output original byte
3231         sequence if it is broken; change order of conditions.
3232
3233         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3234         of conditions.
3235
3236         * mb-multibyte.h (BYTE_ASCII_P):
3237         Use bit ops for char-signedness safety.
3238         (BYTE_C0_P): Use bit ops for char-signedness safety.
3239         (BYTE_C1_P): Use bit ops for char-signedness safety.
3240
3241         * character.h: (XCHAR_OR_CHAR_INT):
3242         Always use inline function.
3243         Remove redundant type checking assert() - XINT will abort quite
3244         nicely.
3245
3246 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3247
3248         * text-coding.c: (Fencode_shift_jis_char):
3249         (Fencode_big5_char):
3250         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3251         Replace 0 with '\0' when working with bytes.
3252         Replace initial "(" with "\(" in docstrings.
3253
3254         (Fmake_coding_system):
3255         When type is ccl and value is vector, register it with a proper
3256         symbol.  And checks whether the given ccl program is valid.
3257         (mule_decode): When calling ccl_driver, if src indicates
3258         NULL pointer, set an empty string instead.
3259         (mule_encode): Likewise.
3260
3261         (detect_eol_type):
3262         (detect_coding_sjis):
3263         (decode_coding_sjis):
3264         (detect_coding_big5):
3265         (decode_coding_big5):
3266         (detect_coding_ucs4):
3267         (decode_coding_ucs4):
3268         (detect_coding_utf8):
3269         (decode_coding_utf8):
3270         (detect_coding_iso2022):
3271         (decode_coding_iso2022):
3272         (decode_coding_no_conversion):
3273         (mule_decode):
3274         Make all detecting and decoding functions take an Extbyte * arg.
3275         (text_encode_generic):
3276         (encode_coding_big5):
3277         (encode_coding_no_conversion):
3278         (mule_encode):
3279         Make all encoding functions take a Bufbyte * arg.
3280         Use size_t instead of unsigned int for memory sizes.
3281         Only cast to unsigned char whenever dereferencing Extbyte *.
3282
3283         (struct lrecord_description fcd_description_1): Use countof.
3284         (complex_vars_of_file_coding):
3285         Use countof instead of sizeof.
3286         Use CHECK_NATNUM instead of CHECK_INT.
3287
3288 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3289
3290         * mule-charset.c (Fget_char_attribute): Add new optional argument
3291         `default-value'.
3292         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3293         (remove_char_ccs): Likewise.
3294
3295 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3296
3297         * text-coding.c (char_encode_shift_jis): New implementation in
3298         UTF-2000.
3299         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3300         ...)'.
3301
3302         * mule-charset.c (Vcharset_chinese_big5): New variable in
3303         UTF-2000.
3304         (Qchinese_big5): New variable in UTF-2000.
3305         (BIG5_SAME_ROW): New macro in UTF-2000.
3306         (make_builtin_char): Use builtin characters of
3307         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3308         characters of `Vcharset_chinese_big5'.
3309         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3310         (complex_vars_of_mule_charset): Add new coded-charset
3311         `chinese-big5' in UTF-2000.
3312
3313         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3314         (Vcharset_chinese_big5): New external variable declaration.
3315         (Vcharset_japanese_jisx0208_1990): Likewise.
3316
3317 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3318
3319         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3320         function.
3321         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3322
3323 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3324
3325         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3326         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3327         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3328         `mojikyo-pj-*'.
3329
3330 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3331
3332         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3333
3334 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3335
3336         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3337         to 0.17.
3338
3339 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3340
3341         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3342         for `CHARSET_BY_ATTRIBUTES'.
3343         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3344         `CHARSET_BY_ATTRIBUTES'.
3345
3346         * text-coding.c (struct decoding_stream): Rename member `CH' to
3347         `CPOS'.
3348         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3349         (decode_coding_sjis): Likewise.
3350         (decode_coding_big5): Likewise.
3351         (decode_coding_ucs4): Likewise.
3352         (decode_coding_utf8): Likewise.
3353         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3354         `CHARSET_BY_ATTRIBUTES'.
3355         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3356         `str->counter'; decode 3, 4 bytes sets.
3357         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3358         sets.
3359         (decode_coding_no_conversion): Use `str->cpos' instead of
3360         `str->ch'.
3361
3362         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3363         (Qmojikyo_2022_1): New variable.
3364         (make_charset): Don't use `CHARSET_TYPE_*'.
3365         (range_charset_code_point): Support coded-charset
3366         `mojikyo-2022-1'.
3367         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3368         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3369         `CHARSET_BY_ATTRIBUTES'.
3370         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3371         `CHARSET_BY_ATTRIBUTES'.
3372         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3373         (complex_vars_of_mule_charset): Add new coded-charset
3374         `mojikyo-2022-1'.
3375
3376         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3377         interface; changed to inline function.
3378
3379         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3380         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3381         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3382         (CHARSET_TYPE_94): Deleted.
3383         (CHARSET_TYPE_94X94): Deleted.
3384         (CHARSET_TYPE_96): Deleted.
3385         (CHARSET_TYPE_96X96): Deleted.
3386         (CHARSET_TYPE_128): Deleted.
3387         (CHARSET_TYPE_128X128): Deleted.
3388         (CHARSET_TYPE_256): Deleted.
3389         (CHARSET_TYPE_256X256): Deleted.
3390         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3391         to inline function.
3392         (DECODE_MOJIKYO_2022): New inline function.
3393         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3394         `Vcharset_mojikyo_2022_1'.
3395
3396 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3397
3398         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3399         instead of `EQ'.
3400         (put_byte_table): Likewise.
3401         (char_id_table_equal): Use `get_byte_table' [new implementation].
3402
3403 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3404
3405         * mule-charset.c: Include <limits.h> in UTF-2000.
3406         (BT_UINT8_MIN): New macro in UTF-2000.
3407         (BT_UINT8_MAX): New macro in UTF-2000.
3408         (BT_UINT8_t): New macro in UTF-2000.
3409         (BT_UINT8_nil): New macro in UTF-2000.
3410         (BT_UINT8_unbound): New macro in UTF-2000.
3411         (INT_UINT8_P): New inline function in UTF-2000.
3412         (UINT8_VALUE_P): New inline function in UTF-2000.
3413         (UINT8_ENCODE): New inline function in UTF-2000.
3414         (UINT8_DECODE): New inline function in UTF-2000.
3415         (mark_uint8_byte_table): New function in UTF-2000.
3416         (print_uint8_byte_table): New function in UTF-2000.
3417         (uint8_byte_table_equal): New function in UTF-2000.
3418         (uint8_byte_table_hash): New function in UTF-2000.
3419         (make_uint8_byte_table): New function in UTF-2000.
3420         (uint8_byte_table_same_value_p): New function in UTF-2000.
3421         (BT_UINT16_MIN): New macro in UTF-2000.
3422         (BT_UINT16_MAX): New macro in UTF-2000.
3423         (BT_UINT16_t): New macro in UTF-2000.
3424         (BT_UINT16_nil): New macro in UTF-2000.
3425         (BT_UINT16_unbound): New macro in UTF-2000.
3426         (INT_UINT16_P): New inline function in UTF-2000.
3427         (UINT16_VALUE_P): New inline function in UTF-2000.
3428         (UINT16_ENCODE): New inline function in UTF-2000.
3429         (UINT16_DECODE): New inline function in UTF-2000.
3430         (UINT8_TO_UINT16): New inline function in UTF-2000.
3431         (mark_uint16_byte_table): New function in UTF-2000.
3432         (print_uint16_byte_table): New function in UTF-2000.
3433         (uint16_byte_table_equal): New function in UTF-2000.
3434         (uint16_byte_table_hash): New function in UTF-2000.
3435         (make_uint16_byte_table): New function in UTF-2000.
3436         (uint16_byte_table_same_value_p): New function in UTF-2000.
3437         (print_byte_table): New function in UTF-2000.
3438         (byte-table): Use `print_byte_table' as printer.
3439         (make_byte_table): Delete second argument `older'.
3440         (byte_table_same_value_p): New function in UTF-2000.
3441         (copy_byte_table): Deleted.
3442         (get_byte_table): New function in UTF-2000.
3443         (put_byte_table): New function in UTF-2000.
3444         (print_char_id_table): New function in UTF-2000.
3445         (char-id-table): Use `print_char_id_table' as printer.
3446         (make_char_id_table): Delete second argument `older'.
3447         (get_char_id_table): Use `get_byte_table [new implementation].
3448         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3449         implementation].
3450         (Ffind_char_attribute_table): New function in UTF-2000.
3451         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3452         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3453         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3454         (syms_of_mule_charset): Add new function
3455         `find-char-attribute-table' in UTF-2000.
3456
3457         * lrecord.h (enum lrecord_type): Add
3458         `lrecord_type_uint16_byte_table' and
3459         `lrecord_type_uint8_byte_table'.
3460
3461         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3462         (Lisp_Uint8_Byte_Table): New type.
3463         (XUINT8_BYTE_TABLE): New macro.
3464         (XSETUINT8_BYTE_TABLE): New macro.
3465         (UINT8_BYTE_TABLE_P): New macro.
3466         (GC_UINT8_BYTE_TABLE_P): New macro.
3467         (struct Lisp_Uint16_Byte_Table): New structure.
3468         (Lisp_Uint16_Byte_Table): New type.
3469         (XUINT16_BYTE_TABLE): New macro.
3470         (XSETUINT16_BYTE_TABLE): New macro.
3471         (UINT16_BYTE_TABLE_P): New macro.
3472         (GC_UINT16_BYTE_TABLE_P): New macro.
3473
3474 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3475
3476         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3477         (Vcharacter_ideographic_strokes_table): Deleted.
3478         (Vcharacter_total_strokes_table): Deleted.
3479         (Vcharacter_morohashi_daikanwa_table): Deleted.
3480         (Vcharacter_decomposition_table): Deleted.
3481         (Qname): Deleted because it is duplicated.
3482         (Qideographic_radical): Deleted.
3483         (Qideographic_strokes): Deleted.
3484         (Qtotal_strokes): Deleted.
3485         (Qmorohashi_daikanwa): Deleted.
3486         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3487         `ideographic-radical', `ideographic-strokes', `total-strokes',
3488         `morohashi-daikanwa' and `->decomposition'.
3489         (Fget_char_attribute): Likewise.
3490         (Fput_char_attribute): Likewise; use `make-vector' instead of
3491         `make_older_vector' for `->decomposition' value.
3492         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3493         `ideograph-daikanwa'.
3494         (syms_of_mule_charset): Delete builtin symbols `name',
3495         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3496         `morohashi-daikanwa'.
3497         (vars_of_mule_charset): Don't setup
3498         `Vcharacter_ideographic_radical_table',
3499         `Vcharacter_ideographic_strokes_table',
3500         `Vcharacter_total_strokes_table',
3501         `Vcharacter_morohashi_daikanwa_table' and
3502         `Vcharacter_decomposition_table'.
3503
3504 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3505
3506         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3507         `make_older_vector', `make_vector_newer_1' and
3508         `make_vector_newer'.
3509
3510         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3511         `make_older_vector' and `make_vector_newer'.
3512
3513         * config.h.in (HAVE_GGC): New macro.
3514
3515 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3516
3517         * mule-charset.c (struct char_attribute_list_closure): New
3518         structure in UTF-2000.
3519         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3520         (Fchar_attribute_list): Likewise.
3521         (Fset_charset_mapping_table): Use `make_vector_newer'.
3522         (Fdecode_builtin_char): New function in UTF-2000.
3523         (syms_of_mule_charset): Add new function `char-attribute-list' and
3524         `decode-builtin-char' in UTF-2000.
3525
3526         * lisp.h (make_vector_newer): New prototype.
3527
3528         * alloc.c (make_vector_newer_1): New function.
3529         (make_vector_newer): New function.
3530
3531 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3532
3533         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3534         50100)'.
3535
3536 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3537
3538         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3539         (Vcharacter_attribute_table): Deleted.
3540         (Vcharacter_name_table): Deleted.
3541         (put_char_attribute): Deleted.
3542         (remove_char_attribute): Deleted.
3543         (struct char_attribute_alist_closure): New structure.
3544         (add_char_attribute_alist_mapper): New function.
3545         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3546         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3547         (Fget_char_attribute): Likewise.
3548         (Fput_char_attribute): Likewise.
3549         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3550         of `remove_char_attribute'.
3551         (Fdefine_char): Return character.
3552         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3553         and `Vcharacter_name_table'.
3554         (complex_vars_of_mule_charset): Likewise
3555         `Vchar_attribute_hash_table'.
3556
3557 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3558
3559         * character.h (CHARC_CHARSET): New macro.
3560         (CHARC_CHARSET_ID): New macro.
3561         (CHARC_CODE_POINT): New macro.
3562         (CHARC_COLUMNS): New macro.
3563         (CHARC_TO_CHAR): New inline function.
3564         (CHARC_EQ): New inline function.
3565         (CHARC_ASCII_EQ): New inline function.
3566         (CHARC_IS_SPACE): New inline function.
3567         (ASCII_TO_CHARC): New inline function.
3568
3569         * char-ucs.h (encode_char_2): Deleted.
3570         (ENCODE_CHAR): Use `encode_char_1' again.
3571         (breakup_char_1): Likewise.
3572         (CHAR_TO_CHARC): New inline function.
3573
3574         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3575
3576 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3577
3578         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3579         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3580         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3581         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3582         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3583         `CHARC_IS_SPACE'.
3584         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3585
3586         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3587         `CHARC_CODE_POINT'.
3588         (x_output_display_block): Use `CHARC_CHARSET' and
3589         `CHARC_ASCII_EQ'.
3590
3591         * redisplay-tty.c (tty_output_display_block): Use
3592         `CHARC_ASCII_EQ'.
3593         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3594
3595         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3596
3597         * insdel.c (find_charsets_in_charc_string): Use
3598         `CHARC_CHARSET_ID'.
3599         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3600         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3601         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3602         (convert_charc_string_into_malloced_string): Likewise.
3603
3604 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3605
3606         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3607         instead of <Emchar_dynarr *> for buf; use
3608         `convert_bufbyte_string_into_charc_dynarr' instead of
3609         `convert_bufbyte_string_into_emchar_dynarr'; use
3610         `find_charsets_in_charc_string' instead of
3611         `find_charsets_in_emchar_string'.
3612
3613         * redisplay.h:
3614         - Include "character.h".
3615         (struct rune): New member `cglyph'; delete member `chr'.
3616
3617         * redisplay.c (redisplay_text_width_charc_string): New function;
3618         delete `redisplay_text_width_emchar_string'.
3619         (rtw_charc_dynarr): New variable; renamed from
3620         `rtw_emchar_dynarr'.
3621         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3622         `rtw_emchar_dynarr'; use
3623         `convert_bufbyte_string_into_charc_dynarr' instead of
3624         `convert_bufbyte_string_into_emchar_dynarr'; use
3625         `redisplay_text_width_charc_string' instead of
3626         `redisplay_text_width_emchar_string'.
3627         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3628         instead of `rtw_emchar_dynarr'; use
3629         `convert_bufbyte_string_into_charc_dynarr' instead of
3630         `convert_bufbyte_string_into_emchar_dynarr'.
3631         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3632         `redisplay_text_width_charc_string' instead of
3633         `redisplay_text_width_emchar_string'.
3634         (create_text_block): Modify for <struct rune> change.
3635         (generate_formatted_string_db): Likewise.
3636         (create_string_text_block): Likewise.
3637         (pixel_to_glyph_translation): Likewise.
3638
3639         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3640         instead of <const Emchar *>.
3641         (x_text_width): Likewise.
3642         (x_output_display_block): Use <Charc_dynarr *> instead
3643         <Emchar_dynarr *>; modify for <structure rune> change.
3644         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3645         *>.
3646
3647         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3648         <const Emchar *>; use `charc_string_displayed_columns' instead of
3649         `emchar_string_displayed_columns'.
3650         (tty_output_display_block): Use <Charc_dynarr *> instead of
3651         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3652         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3653         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3654         `tty_output_emchar_dynarr_dynarr'.
3655         (tty_output_charc_dynarr): New function; delete
3656         `tty_output_charc_dynarr'.
3657
3658         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3659         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3660         <Emchar_dynarr *> for buf; use
3661         `convert_bufbyte_string_into_charc_dynarr' instead of
3662         `convert_bufbyte_string_into_emchar_dynarr'.
3663
3664         * frame.c (title_string_charc_dynarr): New variable; renamed from
3665         `title_string_emchar_dynarr'.
3666         (generate_title_string): Use `title_string_charc_dynarr' instead
3667         of `title_string_emchar_dynarr'; use
3668         `convert_charc_string_into_malloced_string' instead of
3669         `convert_emchar_string_into_malloced_string'.
3670         (init_frame): Use `title_string_charc_dynarr' instead of
3671         `title_string_emchar_dynarr'.
3672
3673         * console.h:
3674         - Include "character.h".
3675         (struct console_methods): Use <const Charc *> instead of <const
3676         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3677         <Emchar_dynarr *> in output_string_method.
3678
3679         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3680         <Emchar_dynarr *>.
3681
3682         * console-stream.c (stream_text_width): Use <const Charc *>
3683         instead of <const Emchar *>.
3684
3685         * character.h (Charc_dynarr): New type.
3686
3687         * char-ucs.h (structure Charc): New structure; define new type
3688         `Charc'.
3689
3690         * char-lb.h (DECODE_CHAR): New inline function.
3691         (encode_char_1): New inline function.
3692         (ENCODE_CHAR): New macro.
3693         (structure Charc): New structure; define new type `Charc'.
3694
3695         * char-1byte.h (Vcharset_control_1): New macro.
3696         (Vcharset_latin_iso8859_1): New macro.
3697         (DECODE_CHAR): New inline function.
3698         (encode_char_1): New inline function.
3699         (ENCODE_CHAR): New macro.
3700         (structure Charc): New structure; define new type `Charc'.
3701
3702         * insdel.c (find_charsets_in_charc_string): New function; delete
3703         `find_charsets_in_emchar_string'.
3704         (charc_string_displayed_columns): New function; delete
3705         `emchar_string_displayed_columns'.
3706         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3707         `convert_bufbyte_string_into_emchar_dynarr'.
3708         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3709         `convert_charc_string_into_bufbyte_dynarr'.
3710         (convert_charc_string_into_malloced_string): New function; delete
3711         `convert_charc_string_into_malloced_string'.
3712
3713         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3714         `find_charsets_in_emchar_string'.
3715         (charc_string_displayed_columns): New prototype; delete
3716         `emchar_string_displayed_columns'.
3717         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3718         `convert_charc_string_into_bufbyte_dynarr'.
3719         (convert_charc_string_into_malloced_string): New prototype; delete
3720         `convert_charc_string_into_malloced_string'.
3721
3722 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3723
3724         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3725
3726 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3727
3728         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3729
3730         * char-ucs.h: Use <short> for <Charset_ID>.
3731
3732         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3733         <Charset_ID>.
3734
3735 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3736
3737         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3738         to 0.16.
3739
3740 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3741
3742         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3743         variable.
3744         (Qmorohashi_daikanwa): New variable.
3745         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3746         for `morohashi-daikanwa' attribute.
3747         (Fget_char_attribute): Likewise.
3748         (Fput_char_attribute): Likewise.
3749         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3750         has the same value of `ideograph-daikanwa'.
3751         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3752         (vars_of_mule_charset): Setup
3753         `Vcharacter_morohashi_daikanwa_table'.
3754
3755 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3756
3757         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3758         attributes.
3759         (add_charset_to_list_mapper): Add `key' instead of
3760         `XCHARSET_NAME (value)' to return aliases.
3761
3762 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3763
3764         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3765         variable.
3766         (Vcharacter_ideographic_strokes_table): New variable.
3767         (Qideographic_radical): New variable.
3768         (Qideographic_strokes): New variable.
3769         (Fchar_attribute_alist): Use
3770         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3771         attribute; use `Vcharacter_ideographic_strokes_table' for
3772         `ideographic-strokes' attribute.
3773         (Fget_char_attribute): Likewise.
3774         (Fput_char_attribute): Likewise.
3775         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3776         `ideographic-strokes'.
3777         (vars_of_mule_charset): Setup
3778         `Vcharacter_ideographic_radical_table' and
3779         `Vcharacter_ideographic_strokes_table'.
3780
3781 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3782
3783         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3784         (Qtotal_strokes): New variable.
3785         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3786         `total-strokes' attribute.
3787         (Fget_char_attribute): Likewise.
3788         (Fput_char_attribute): Likewise.
3789         (syms_of_mule_charset): Add new symbol `total-strokes'.
3790         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3791
3792 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3793
3794         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3795         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3796         are found.
3797         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3798         `->decomposition' attribute.
3799         (Fput_char_attribute): Likewise.
3800         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3801
3802 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3803
3804         * mule-charset.c (decoding_table_check_elements): New function.
3805         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3806
3807 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3808
3809         * mule-charset.c (Fset_charset_mapping_table): Use
3810         `put_char_ccs_code_point'.
3811
3812 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3813
3814         * mule-charset.c (decoding_table_put_char): New inline function.
3815         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3816
3817 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3818
3819         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3820         (XCHARSET_BYTE_SIZE): New macro.
3821         (decoding_table_remove_char): New inline function.
3822         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3823         `decoding_table_remove_char'.
3824         (remove_char_ccs): Use `decoding_table_remove_char'.
3825         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3826
3827 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3828
3829         * mule-charset.c (Vcharacter_name_table): New variable.
3830         (Qname): New variable.
3831         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3832         attribute.
3833         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3834         `Vcharacter_name_table' for `name' attribute.
3835         (Fremove_char_attribute): Use function `remove_char_ccs'.
3836         (put_char_ccs_code_point): New function.
3837         (remove_char_ccs): New function.
3838         (syms_of_mule_charset): Add new symbol `name'.
3839         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3840
3841 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3842
3843         * mule-charset.c (make_byte_table): Add new argument `older'.
3844         (make_char_id_table): Likewise.
3845         (copy_char_id_table): Comment out because it is not used.
3846         (put_char_id_table): Modify for `make_byte_table'.
3847         (Fput_char_attribute): Make encoding_table as older object;
3848         inherit older bit of `Vcharacter_composition_table'.
3849         (mark_charset): Don't mark `cs->encoding_table'.
3850         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3851         normal object; make `Vcharacter_composition_table' as an older
3852         object; delete staticpro for `Vcharacter_composition_table'; make
3853         `Vcharacter_variant_table' as a normal object.
3854
3855         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3856         (mark_object): Don't check older object in UTF-2000.
3857
3858         * lrecord.h (struct lrecord_header): Add new member `older' in
3859         UTF-2000.
3860         (set_lheader_implementation): Setup `SLI_header->older' in
3861         UTF-2000.
3862         (set_lheader_older_implementation): New macro in UTF-2000.
3863         (OLDER_RECORD_P): New macro in UTF-2000.
3864         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3865         (alloc_older_lcrecord): New prototype in UTF-2000.
3866         (alloc_older_lcrecord_type): New macro in UTF-2000.
3867
3868 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3869
3870         * mule-charset.c (byte_table_description): Use
3871         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3872         (char_id_table_description): Delete bogus `, 1'.
3873         (Fget_char_attribute): Refer encoding_table of each coded-charset
3874         to get value of coded-charset attribute of a character.
3875         (Fput_char_attribute): Use `make_older_vector' instead of
3876         `make_vector'; use encoding_table of each coded-charset to store
3877         value of coded-charset attribute of a character.
3878         (Fremove_char_attribute): Use encoding_table of each coded-charset
3879         to store value of coded-charset attribute of a character.
3880         (mark_charset): Mark `cs->encoding_table'; don't mark
3881         `cs->decoding_table'.
3882         (charset_description): Add description of new member
3883         `encoding_table'.
3884         (make_charset): Initialize `encoding_table'.
3885
3886         * char-ucs.h (struct Lisp_Charset): Add new member
3887         `encoding_table'.
3888         (CHARSET_ENCODING_TABLE): New macro.
3889         (XCHARSET_ENCODING_TABLE): New macro.
3890         (charset_code_point): New implementation.
3891         (encode_char_1): Likewise.
3892
3893         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3894         (disksave_object_finalization_1): Call finalizers of
3895         `all_older_lcrecords' in UTF-2000.
3896         (make_older_vector): New function in UTF-2000.
3897         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3898         UTF-2000.
3899
3900         * lisp.h (make_older_vector): New prototype in UTF-2000.
3901
3902 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3903
3904         * lrecord.h (enum lrecord_type): Rename
3905         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3906
3907         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3908         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3909         `get_char_code_table'.
3910
3911         * mule-charset.c (mark_char_id_table): Renamed from
3912         `mark_char_code_table'.
3913         (char_id_table_equal): Renamed from `char_code_table_equal'.
3914         (char_id_table_hash): Renamed from `char_code_table_hash'.
3915         (make_char_id_table): Renamed from `make_char_code_table'.
3916         (copy_char_id_table): Renamed from `copy_char_code_table'.
3917         (get_char_id_table): Renamed from `get_char_code_table'.
3918         (put_char_id_table): Renamed from `put_char_code_table'.
3919         (to_char_id): Renamed from `to_char_code'.
3920
3921         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3922         `Lisp_Char_Code_Table'.
3923         (char_id_table): Renamed from `char_code_table'.
3924         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3925         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3926         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3927         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3928         (get_char_id_table): Renamed from `get_char_code_table'.
3929
3930 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3931
3932         * lrecord.h (enum lrecord_type): Rename
3933         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3934
3935         * mule-charset.c (mark_byte_table): Renamed from
3936         `mark_char_byte_table'.
3937         (byte_table_equal): Renamed from `char_byte_table_equal'.
3938         (byte_table_hash): Renamed from `byte_table_hash'.
3939         (make_byte_table): Renamed from `make_byte_table'.
3940         (copy_byte_table): Renamed from `copy_char_byte_table'.
3941
3942         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3943         `Lisp_Char_Byte_Table'.
3944         (byte_table): Renamed from `char_byte_table'.
3945         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3946         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3947         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3948         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3949
3950 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3951
3952         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3953         (dfc_convert_to_internal_format): Likewise.
3954         
3955         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3956         * text-coding.c (Fcoding_system_alias_p): New function.
3957         * text-coding.c (Fcoding_system_aliasee): New function.
3958         * text-coding.c (append_suffix_to_symbol): New function.
3959         * text-coding.c (dangling_coding_system_alias_p): New function.
3960         * text-coding.c (Ffind_coding_system):
3961         * text-coding.c (Fcopy_coding_system):
3962         * text-coding.c (encode_coding_no_conversion):
3963         * text-coding.c (syms_of_file_coding):
3964         * text-coding.c (vars_of_file_coding):
3965         Rewrite coding system alias code.
3966         Allow nested aliases, like symbolic links.
3967         Allow redefinition of coding system aliases.
3968         Prevent existence of dangling coding system aliases.
3969         Eliminate convert_to_external_format.
3970         Eliminate convert_to_internal_format.
3971         
3972         * text-coding.c: Change enum eol_type to eol_type_t.
3973
3974 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3975
3976         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3977         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3978
3979         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3980         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3981
3982 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3983
3984         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3985         `ideograph-daikanwa'.
3986
3987         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3988         (Vcharset_ucs_bmp): Likewise.
3989         (Vcharset_mojikyo): Add new extern variable definition.
3990         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3991         (Vcharset_latin_iso8859_3): Likewise.
3992         (Vcharset_latin_iso8859_4): Likewise.
3993         (Vcharset_latin_iso8859_9): Likewise.
3994         (Vcharset_latin_viscii_lower): Likewise.
3995         (Vcharset_latin_viscii_upper): Likewise.
3996         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3997         `mojikyo' code-point is used to decode.
3998         (encode_char_2): New function [to convert `mojikyo' code-point to
3999         Mojikyo font encoding].
4000         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4001         (breakup_char_1): Likewise.
4002         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4003
4004 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4005
4006         * text-coding.c (Fmake_coding_system): Add document about
4007         `disable-composition' property.
4008
4009 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4010
4011         * text-coding.c (Qdisable_composition): New variable; delete
4012         `Qcomposite'.
4013         (Fmake_coding_system): Add new property `disable-composite';
4014         delete property `composite'.
4015         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4016         instead of `!CODING_SYSTEM_COMPOSITE'.
4017         (syms_of_file_coding): Add new symbol `disable-composition';
4018         delete symbol `composite'.
4019
4020         * file-coding.h (struct Lisp_Coding_System): Add
4021         `disable_composition'; delete `enable_composition'.
4022         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4023         `CODING_SYSTEM_COMPOSITE'.
4024         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4025         `XCODING_SYSTEM_COMPOSITE'.
4026
4027 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4028
4029         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4030         to 0.15.
4031
4032 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4033
4034         * text-coding.c (Qcomposite): New variable.
4035         (Fmake_coding_system): Add new property `composite'.
4036         (struct decoding_stream): Add `combined_char_count',
4037         `combined_chars' and `combining_table' in UTF-2000.
4038         (COMPOSE_FLUSH_CHARS): New macro.
4039         (COMPOSE_ADD_CHAR): New macro.
4040         (reset_decoding_stream): Reset `str->combined_char_count' and
4041         `str->combining_table' in UTF-2000.
4042         (decode_coding_iso2022): Modify for character-decomposition.
4043         (syms_of_file_coding): Add new symbol `composite'.
4044
4045 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4046
4047         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4048         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4049         of `Vcharacter_composition_table' if `->decomposition' property
4050         has only 1 element.
4051         (Qlatin_tcvn5712): New variable.
4052         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4053         (complex_vars_of_mule_charset): Add new coded-charset
4054         `latin-tcvn5712'.
4055
4056         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4057
4058 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4059
4060         * file-coding.h (struct Lisp_Coding_System): Add
4061         `enable_composition'.
4062         (CODING_SYSTEM_COMPOSITE): New macro.
4063         (XCODING_SYSTEM_COMPOSITE): New macro.
4064
4065 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4066
4067         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4068
4069 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4070
4071         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4072         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4073
4074 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4075
4076         * mule-charset.c (Vcharset_mojikyo): New variable.
4077         (Fdefine_char): Don't use coded-charset which does not have
4078         non-builtin character range to allocate character-id.
4079         (Qmojikyo): New variable.
4080         (syms_of_mule_charset): Add new symbol `mojikyo'.
4081         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4082
4083         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4084         (LEADING_BYTE_MOJIKYO): New macro.
4085         (MIN_CHAR_MOJIKYO): New macro.
4086         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4087         (MAX_CHAR_MOJIKYO): New macro.
4088
4089 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4090
4091         * mule-charset.c (remove_char_attribute): Fixed.
4092
4093 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4094
4095         * mule-charset.c (remove_char_attribute): New function.
4096         (Fremove_char_attribute): New function.
4097         (encode_builtin_char_1): Comment out builtin-support for
4098         greek-iso8859-7 and cyrillic-iso8859-5.
4099         (Fdecode_char): Check `code' is an integer.
4100         (syms_of_mule_charset): Add `remove-char-attribute'.
4101         (MIN_CHAR_GREEK): Deleted.
4102         (MAX_CHAR_GREEK): Likewise.
4103         (MIN_CHAR_CYRILLIC): Likewise.
4104         (MAX_CHAR_CYRILLIC): Likewise.
4105         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4106         MAX_CHAR_GREEK for `greek-iso8859-7'.
4107
4108         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4109         (MAX_CHAR_GREEK): Likewise.
4110         (MIN_CHAR_CYRILLIC): Likewise.
4111         (MAX_CHAR_CYRILLIC): Likewise.
4112
4113 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4114
4115         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4116         format is used without `ucs' property.
4117         (Fdecode_char): Fix problem with GR representation.
4118         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4119         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4120
4121 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4122
4123         * mule-charset.c (make_builtin_char): New function.
4124         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4125         (Fset_charset_mapping_table): Modify for new representation of
4126         code-point.
4127         (Fdecode_char): New function.
4128         (syms_of_mule_charset): Add new builtin function `decode-char' in
4129         UTF-2000.
4130
4131         * char-ucs.h (make_builtin_char): New prototype.
4132         (DECODE_CHAR): New inline function.
4133         (MAKE_CHAR): Use `DECODE_CHAR'.
4134
4135 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4136
4137         * text-coding.c (parse_charset_conversion_specs): Use
4138         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4139         `XCHARSET_TYPE'.
4140         (iso2022_designate): Likewise.
4141
4142         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4143         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4144
4145         * mule-charset.c (Vcharset_ucs): New variable.
4146         (print_charset): Change design; use `CHARSET_CHARS' and
4147         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4148         (make_charset): Change signature to specify `chars' and
4149         `dimension' instead of `type'.
4150         (range_charset_code_point): Modify for 256^n-set.
4151         (encode_builtin_char_1): Encode as `ucs' in default.
4152         (Fmake_charset): Modify for `make_charset'.
4153         (Fmake_reverse_direction_charset): Likewise.
4154         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4155         UTF-2000.
4156         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4157         for `make_charset'.
4158
4159         * char-ucs.h (Vcharset_ucs): New variable.
4160         (LEADING_BYTE_UCS): New macro.
4161         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4162         and `chars' to `unsigned short' from `unsigned int'.
4163         (CHARSET_TYPE): Deleted.
4164         (XCHARSET_TYPE): Deleted.
4165
4166 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4167
4168         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4169
4170         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4171         (ENCODE_CHAR): New macro.
4172
4173 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4174
4175         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4176         to 0.14 (Kawachi-Katakami).
4177
4178 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4179
4180         * text-coding.c (char_encode_shift_jis): Modify for
4181         `charset_code_point'.
4182         (char_encode_iso2022): Likewise.
4183
4184         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4185         (integer) instead of list of <Lisp_Object>s (integers) as the
4186         format of code-point of a coded-charset.
4187         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4188         (encode_builtin_char_1): New function; delete
4189         `split_builtin_char'.
4190         (charset_code_point): Return <int> instead of <Lisp_Object>.
4191         (Fsplit_char): Don't use `SPLIT_CHAR'.
4192
4193         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4194         prototype for `split_builtin_char'.
4195         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4196         (charset_code_point): Likewise.
4197         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4198         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4199
4200 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4201
4202         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4203         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4204
4205 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4206
4207         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4208
4209         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4210         (MAX_CHAR_OBS_94x94): Deleted.
4211
4212 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4213
4214         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4215
4216         * char-ucs.h (MAX_CHAR_BMP): New macro.
4217
4218 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4219
4220         * text-coding.c: Sync with r21-2-24.
4221
4222 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4223
4224         * file-coding.c: Modify for UTF-2000.
4225
4226 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4227
4228         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4229         to 0.13 (Takaida).
4230
4231 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4232
4233         * mule-charset.c (split_builtin_char): Delete builtin support for
4234         `katakana-jisx0201'.
4235         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4236         BMP area in builtin representation.
4237
4238         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4239         `Vcharset_katakana_jisx0201'.
4240
4241 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4242
4243         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4244         (Qisolated): New variable.
4245         (Qinitial): New variable.
4246         (Qmedial): New variable.
4247         (Qfinal): New variable.
4248         (Qvertical): New variable.
4249         (Qsmall): New variable.
4250         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4251         `Qvertical' and `Qsmall'.
4252         (Qmojikyo_pj_[1 .. 21]): New variable.
4253         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4254         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4255         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4256         .. 21]'.
4257
4258 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4259
4260         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4261         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4262         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4263
4264 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4265
4266         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4267         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4268         BMP.
4269         (Qjapanese_jisx0208_1990): New variable.
4270         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4271         (complex_vars_of_mule_charset): Add new coded-charset
4272         `japanese-jisx0208-1990'.
4273
4274         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4275         (MIN_CHAR_JIS_X0208_1990): New macro.
4276         (MAX_CHAR_JIS_X0208_1990): New macro.
4277
4278 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4279
4280         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4281         coded-charset is not found.
4282
4283 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4284
4285         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4286         (Fdefine_char): Use `Fmake_char'.
4287
4288 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4289
4290         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4291         (Vcharset_hiragana_jisx0208): Deleted.
4292         (Vcharset_katakana_jisx0208): Deleted.
4293         (Qideograph_daikanwa): New variable.
4294         (Qhiragana_jisx0208): Deleted.
4295         (Qkatakana_jisx0208): Deleted.
4296         (split_builtin_char): Split `ideograph-daikanwa'.
4297         (Fsplit_char): New implementation for UTF-2000.
4298         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4299         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4300         (complex_vars_of_mule_charset): Add new coded-charset
4301         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4302         `katakana-jisx0208'.
4303
4304         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4305         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4306         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4307         (MIN_CHAR_DAIKANWA): New macro.
4308         (MAX_CHAR_DAIKANWA): New macro.
4309
4310 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4311
4312         * data.c (Fstring_to_number): Don't recognize floating point if
4313         base is not 10.
4314
4315 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4316
4317         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4318
4319 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4320
4321         * mule-charset.c (Qsquare): New variable.
4322         (to_char_code): Add `Qsquare'.
4323         (syms_of_mule_charset): Add new symbol `square'.
4324
4325 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4326
4327         * mule-charset.c (Qcircle): New variable.
4328         (to_char_code): Add `Qcircle'.
4329         (syms_of_mule_charset): Add new symbol `circle'.
4330
4331 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4332
4333         * mule-charset.c (Qfont): New variable.
4334         (to_char_code): Add `Qfont'.
4335         (syms_of_mule_charset): Add new symbol `font'.
4336
4337 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4338
4339         * mule-charset.c (Qsub): New variable.
4340         (to_char_code): Add `Qsub'.
4341         (syms_of_mule_charset): Add new symbol `sub'.
4342
4343 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4344
4345         * mule-charset.c (Fput_char_attribute): Convert each element of
4346         VALUE to GL position if ATTRIBUTE is a GR-set,
4347
4348 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4349
4350         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4351         coded-charset is a GR-set.
4352
4353 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4354
4355         * mule-charset.c (Fput_char_attribute): Check each element of
4356         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4357
4358 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4359
4360         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4361         UTF-2000.
4362         (Qethiopic_ucs): New variable in UTF-2000.
4363         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4364         (complex_vars_of_mule_charset): Add new coded-charset
4365         `ethiopic-ucs' in UTF-2000.
4366
4367         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4368         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4369         9)'.
4370         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4371         10)'.
4372         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4373
4374 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4375
4376         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4377         `ascii'.
4378
4379 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4380
4381         * mule-charset.c (Vcharacter_variant_table): New variable.
4382         (Q_ucs): New variable.
4383         (Fchar_variants): New function.
4384         (Fput_char_attribute): Register `->ucs' value to
4385         `Vcharacter_variant_table'.
4386         (syms_of_mule_charset): Add new function `char-variants' and new
4387         symbol `->ucs'.
4388         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4389
4390 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4391
4392         * mule-charset.c (get_char_code_table): Allow negative character
4393         code.
4394         (put_char_code_table): Likewise.
4395         (Vcharacter_composition_table): New variable.
4396         (Q_decomposition): New variable.
4397         (Qwide): New variable.
4398         (Qnarrow): New variable.
4399         (Qcompat): New variable.
4400         (QnoBreak): New variable.
4401         (Qsuper): New variable.
4402         (Qfraction): New variable.
4403         (to_char_code): New function.
4404         (Fget_composite_char): New function.
4405         (Fput_char_attribute): Register `->decomposition' value to
4406         `Vcharacter_composition_table'.
4407         (syms_of_mule_charset): Add new function `get-composite-char', new
4408         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4409         `super' and `fraction'.
4410         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4411
4412 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4413
4414         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4415         character; copy the return value.
4416
4417 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4418
4419         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4420
4421         * mule-charset.c (range_charset_code_point): Must use make_int.
4422         (split_builtin_char): New function.
4423
4424 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4425
4426         * mule-charset.c (char_byte_table): Change name from
4427         "char-code-table" to "char-byte-table".
4428         (mark_char_code_table): New function.
4429         (char_code_table_equal): New function.
4430         (char_code_table_hash): New function.
4431         (char_code_table_description): New constant.
4432         (char_code_table): New type.
4433         (make_char_code_table): New function.
4434         (copy_char_code_table): New function.
4435         (get_char_code_table): Modify for `char_code_table' type.
4436         (put_char_code_table): Likewise.
4437         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4438         (Kashiwara).
4439
4440         * char-ucs.h (char_code_table): New type.
4441         (XCHAR_CODE_TABLE): New macro.
4442         (XSETCHAR_CODE_TABLE): New macro.
4443         (CHAR_CODE_TABLE_P): New macro.
4444         (GC_CHAR_CODE_TABLE_P): New macro.
4445         (struct Lisp_Char_Code_Table): New structure.
4446
4447 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4448
4449         * mule-charset.c (Fmake_charset): Setup byte_offset for
4450         {94|96}^n-set.
4451
4452 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4453
4454         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4455         character.
4456
4457 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4458
4459         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4460         is found.
4461
4462 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4463
4464         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4465         charset, it is regarded as a charset.
4466         (put_char_attribute): New function in UTF-2000.
4467         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4468         charset, mapping-table of the charset is modified.
4469         (Fdefine_char): New function in UTF-2000.
4470         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4471         `Fput_char_attribute'.
4472         (syms_of_mule_charset): Add new function `define-char' and new
4473         symbol `ucs' in UTF-2000.
4474         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4475
4476 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4477
4478         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4479         non-UTF-2000 configuration.
4480
4481 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4482
4483         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4484         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4485
4486         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4487         deleted.
4488         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4489         (Fset_charset_mapping_table): Likewise.
4490
4491         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4492         (CHARSET_ENCODING_TABLE): Delete.
4493         (XCHARSET_ENCODING_TABLE): Delete.
4494         (charset_code_point): New interface.
4495
4496 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4497
4498         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4499         instead of `charset_get_byte1' and `charset_get_byte2'.
4500
4501         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4502         (charset_get_byte2): Deleted.
4503
4504 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4505
4506         * char-ucs.h (SPLIT_CHAR): New inline function.
4507         (breakup_char_1): Use `SPLIT_CHAR'.
4508
4509         * mule-charset.c (range_charset_code_point): New function.
4510         (charset_code_point): New function.
4511
4512         * char-ucs.h (range_charset_code_point): New interface.
4513         (breakup_char_1): Use `range_charset_code_point'.
4514
4515 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4516
4517         * mule-charset.c (Fmake_charset): Delete unused local variable
4518         `code_offset'.
4519
4520         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4521         (breakup_char_1): Find a charset and code-point in
4522         `Vcharacter_attribute_table'.
4523
4524 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4525
4526         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4527         to 0.10 (Yao).
4528
4529 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4530
4531         * mule-charset.c (Vcharacter_attribute_table): New variable.
4532         (Fchar_attribute_alist): New function.
4533         (Fget_char_attribute): New function.
4534         (Fput_char_attribute): New function.
4535         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4536         too.
4537         (syms_of_mule_charset): Add new function `char-attribute-alist',
4538         `get-char-attribute' and `put-char-attribute'.
4539         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4540
4541 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4542
4543         * mule-charset.c (Fmake_charset): Just use
4544         `get_unallocated_leading_byte'.
4545
4546         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4547         sets; don't use final-byte based number for private sets.
4548
4549 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4550
4551         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4552         integer.
4553
4554 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4555
4556         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4557         to 0.9.
4558
4559 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4560
4561         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4562         of `CHAR_LEADING_BYTE' in UTF-2000.
4563
4564         * insdel.c (find_charsets_in_bufbyte_string): Use
4565         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4566         (find_charsets_in_emchar_string): Likewise.
4567
4568         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4569         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4570
4571         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4572         (CHAR_CHARSET_ID): New macro.
4573
4574 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4575
4576         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4577         charset-id - MIN_LEADING_BYTE.
4578         (put_char_table): Likewise.
4579
4580 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4581
4582         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4583         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4584         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4585         (CHARSET_ID_OFFSET): New macro.
4586         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4587         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4588         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4589         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4590         4).
4591         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4592         5).
4593         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4594         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4595         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4596         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4597         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4598
4599 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4600
4601         * mule-charset.c (next_allocated_leading_byte): New variable in
4602         UTF-2000.
4603         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4604         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4605         (get_unallocated_leading_byte): Simply use
4606         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4607         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4608         UTF-2000.
4609
4610         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4611         (MAX_LEADING_BYTE_PRIVATE): New macro.
4612         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4613         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4614
4615 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4616
4617         * mule-charset.c (Fmake_charset): Allocate final-byte based
4618         charset-id for 94-set, 96-set and 94x94-set.
4619
4620 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4621
4622         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4623         ambiguous `else'.
4624         (Fmake_charset): Likewise.
4625         (complex_vars_of_mule_charset): Modify the font registry of
4626         `ucs-bmp' not to match `Ethiopic-Unicode'.
4627
4628 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4629
4630         * mule-charset.c (complex_vars_of_mule_charset): Add font
4631         registory of `ucs-bmp'.
4632
4633 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4634
4635         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4636         coded-charsets in `default-coded-charset-priority-list' when
4637         breaking up a character.
4638
4639         * mule-charset.c (Vcharset_latin_viscii): New variable.
4640         (Qlatin_viscii): New variable.
4641         (make_charset): Don't use `decoding_table'.
4642         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4643         byte_offset.
4644         (Fset_charset_mapping_table): New implementation.
4645         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4646         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4647         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4648         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4649         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4650         charset `latin_viscii'.
4651
4652         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4653         (CHARSET_TYPE_94X94): Change to 1 from 2.
4654         (CHARSET_TYPE_96): Change to 2 from 1.
4655         (CHARSET_TYPE_128): New macro.
4656         (CHARSET_TYPE_128X128): Change to 5 from 4.
4657         (CHARSET_TYPE_256): New macro.
4658         (CHARSET_TYPE_256X256): Change to 7 from 5.
4659         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4660
4661 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4662
4663         * text-coding.c (char_encode_shift_jis): Refer
4664         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4665         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4666
4667         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4668         (char_byte_table_equal): New function in UTF-2000.
4669         (char_byte_table_hash): New function in UTF-2000.
4670         (char_byte_table_description): New constant in UTF-2000.
4671         (char_byte_table): New type in UTF-2000.
4672         (make_char_byte_table): New function in UTF-2000.
4673         (copy_char_byte_table): New function in UTF-2000.
4674         (make_char_code_table): New macro in UTF-2000.
4675         (get_char_code_table): New function in UTF-2000.
4676         (put_char_code_table): New function in UTF-2000.
4677         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4678         (charset_description): Add setting in UTF-2000.
4679         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4680         `CHARSET_TO_BYTE1_TABLE(cs)'.
4681         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4682         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4683         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4684         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4685         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4686         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4687         `CHARSET_TO_BYTE2_TABLE(cs)'.
4688
4689         * char-ucs.h (char_byte_table): New type.
4690         (XCHAR_BYTE_TABLE): New macro.
4691         (XSETCHAR_BYTE_TABLE): New macro.
4692         (CHAR_BYTE_TABLE_P): New macro.
4693         (GC_CHAR_BYTE_TABLE_P): New macro.
4694         (struct Lisp_Char_Byte_Table): New structure.
4695         (get_char_code_table): New interface.
4696         (Emchar_to_byte_table): Deleted.
4697         (get_byte_from_character_table): Deleted.
4698         (struct Lisp_Charset): Add `encoding_table'; delete
4699         `to_byte1_table' and `to_byte2_table'.
4700         (CHARSET_ENCODING_TABLE): New macro.
4701         (CHARSET_TO_BYTE1_TABLE): Deleted.
4702         (CHARSET_TO_BYTE2_TABLE): Deleted.
4703         (XCHARSET_ENCODING_TABLE): New macro.
4704         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4705         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4706
4707 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4708
4709         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4710         `vietnamese-viscii-*'.
4711
4712 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4713
4714         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4715         (Qvietnamese_viscii_upper): New variable.
4716         (Fdefine_charset_alias): New function.
4717         (syms_of_mule_charset): Add new function `define-charset-alias'.
4718         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4719         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4720         `latin-viscii-*'.
4721
4722 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4723
4724         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4725         (MAX_CHAR_OBS_94x94): New macro.
4726         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4727         for 94x94 sets.
4728
4729         * mule-charset.c (put_byte_from_character_table): Change unit size
4730         from 128 to 256.
4731         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4732         not defined.
4733         (Fmake_reverse_direction_charset): Modify dummy argument of
4734         `make_charset' for non-UTF-2000 environment.
4735
4736 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4737
4738         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4739
4740         * mule-charset.c (destroy_byte_from_character_table): New macro.
4741         (latin_jisx0201_to_ucs): Deleted.
4742         (latin_iso8859_2_to_ucs): Deleted.
4743         (latin_iso8859_3_to_ucs): Deleted.
4744         (latin_iso8859_4_to_ucs): Deleted.
4745         (latin_iso8859_9_to_ucs): Deleted.
4746         (latin_viscii_lower_to_ucs): Deleted.
4747         (latin_viscii_upper_to_ucs): Deleted.
4748         (mark_charset): Mark `cs->decoding_table'.
4749         (Fcharset_mapping_table): Fix DOC-string.
4750         (Fset_charset_mapping_table): New function.
4751         (syms_of_mule_charset): Add nwe function
4752         `set-charset-mapping-table'.
4753         (complex_vars_of_mule_charset): Don't setup and use
4754         `latin_*_to_ucs'.
4755
4756 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4757
4758         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4759         charset.
4760
4761 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4762
4763         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4764         (Vcharset_katakana_jisx0208): New variable.
4765         (Qhiragana_jisx0208): New variable.
4766         (Qkatakana_jisx0208): New variable.
4767         (make_charset): Add new argument `byte_offset'.
4768         (charset_get_byte1): Modify for new coded-charset definition; use
4769         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4770         `XCHARSET_BYTE_OFFSET'.
4771         (Fmake_charset): Modify for `make_charset'.
4772         (Fmake_reverse_direction_charset): Likewise.
4773         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4774         `katakana-jisx0208'.
4775         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4776         `.'  in font registry of charset `katakana-jisx0201',
4777         `latin-jisx0201', `vietnamese-viscii-lower' and
4778         `vietnamese-viscii-upper'; modify DOC-string of charset
4779         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4780         registry of charset `japanese-jisx0208' not to use font for JIS
4781         X0208:1990; add new charset `hiragana-jisx0208' and
4782         `katakana-jisx0208'.
4783
4784         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4785         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4786         (struct Lisp_Charset): Add `byte_offset'.
4787         (CHARSET_BYTE_OFFSET): New macro.
4788         (XCHARSET_UCS_MIN): New macro.
4789         (XCHARSET_UCS_MAX): New macro.
4790         (XCHARSET_CODE_OFFSET): New macro.
4791         (XCHARSET_BYTE_OFFSET): New macro.
4792         (MIN_CHAR_HIRAGANA): New macro.
4793         (MAX_CHAR_HIRAGANA): New macro.
4794         (MIN_CHAR_KATAKANA): New macro.
4795         (MAX_CHAR_KATAKANA): New macro.
4796         (MAKE_CHAR): Modify for new coded-charset definition; use
4797         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4798         `XCHARSET_BYTE_OFFSET'.
4799
4800 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4801
4802         * mule-charset.c (CHAR96): Deleted.
4803         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4804         <Lisp_Object>.
4805         (latin_iso8859_2_to_ucs): Likewise.
4806         (latin_iso8859_3_to_ucs): Likewise.
4807         (latin_iso8859_4_to_ucs): Likewise.
4808         (latin_iso8859_9_to_ucs): Likewise.
4809         (latin_viscii_lower_to_ucs): Likewise.
4810         (latin_viscii_upper_to_ucs): Likewise.
4811         (latin_tcvn5712_to_ucs): Commented out.
4812         (make_charset): Change type of argument `decoding_table' from
4813         <Emchar*> to <Lisp_Object> [vector of characters].
4814         (Fmake_charset): Modify for `make_charset'.
4815         (Fmake_reverse_direction_charset): Likewise.
4816         (Fcharset_mapping_table): New function in UTF-2000.
4817         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4818         UTF-2000.
4819         (complex_vars_of_mule_charset): Modify for type change of
4820         `*_to_ucs'; modify for `make_charset'.
4821
4822         * char-ucs.h (struct Lisp_Charset): Change type of
4823         `decoding_table' from <Emchar*> to <Lisp_Object>.
4824         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4825
4826 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4827
4828         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4829         error with non-UTF-2000-Mule.
4830
4831 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4832
4833         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4834         in lisp again].
4835         (Vcharset_chinese_cns11643_4): Likewise.
4836         (Vcharset_chinese_cns11643_5): Likewise.
4837         (Vcharset_chinese_cns11643_6): Likewise.
4838         (Vcharset_chinese_cns11643_7): Likewise.
4839         (Qchinese_cns11643_3): Likewise.
4840         (Qchinese_cns11643_4): Likewise.
4841         (Qchinese_cns11643_5): Likewise.
4842         (Qchinese_cns11643_6): Likewise.
4843         (Qchinese_cns11643_7): Likewise.
4844         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4845         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4846         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4847         (complex_vars_of_mule_charset): Likewise.
4848
4849 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4850
4851         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4852         96-set.
4853         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4854         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4855
4856 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4857
4858         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4859         0xFF60.
4860         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4861         (breakup_char_1): Likewise.
4862
4863         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4864         one of them includes the specified character.
4865
4866 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4867
4868         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4869
4870 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4871
4872         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4873
4874 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4875
4876         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4877         definition for non-UTF-2000 Mule.
4878         (latin_iso8859_3_to_ucs): Likewise.
4879         (latin_iso8859_4_to_ucs): Likewise.
4880         (latin_iso8859_9_to_ucs): Likewise.
4881         (latin_jisx0201_to_ucs): Likewise.
4882         (MIN_CHAR_THAI): Likewise.
4883         (MAX_CHAR_THAI): Likewise.
4884         (MIN_CHAR_GREEK): Likewise.
4885         (MAX_CHAR_GREEK): Likewise.
4886         (MIN_CHAR_HEBREW): Likewise.
4887         (MAX_CHAR_HEBREW): Likewise.
4888         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4889         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4890         (MIN_CHAR_CYRILLIC): Likewise.
4891         (MAX_CHAR_CYRILLIC): Likewise.
4892
4893 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4894
4895         * char-ucs.h (breakup_char_1): Use
4896         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4897         thai-tis620 and katakana-jisx0201 area.
4898
4899 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4900
4901         * char-ucs.h (breakup_char_1): Use
4902         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4903         area.
4904
4905         * text-coding.c (reset_encoding_stream): Fixed.
4906         (char_encode_ucs4): Delete `& 255'.
4907
4908         * char-ucs.h (breakup_char_1): Use
4909         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4910
4911 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4912
4913         * file-coding.c (Fmake_coding_system): Don't set up
4914         `codesys->fixed.size'.
4915         (encode_coding_no_conversion): Don't refer
4916         `str->codesys->fixed.size'.
4917
4918 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4919
4920         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4921         (latin_a_char_to_byte1): Deleted.
4922         (latin_a_char_to_byte2): Deleted.
4923
4924 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4925
4926         * mule-charset.c (make_charset): Add new argument `ucs_min',
4927         `ucs_max' and `code_offset'.
4928         (charset_get_byte1): New implementation [delete specific charset
4929         depended implementations].
4930         (Fmake_charset): Modify for `make_charset'.
4931         (Fmake_reverse_direction_charset): Likewise.
4932         (complex_vars_of_mule_charset): Likewise.
4933
4934         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4935         `code_offset'.
4936         (CHARSET_UCS_MIN): New macro.
4937         (CHARSET_UCS_MAX): New macro.
4938         (CHARSET_CODE_OFFSET): New macro.
4939         (MAKE_CHAR): Delete charset depended definitions [except
4940         katakana-jisx0201].
4941
4942 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4943
4944         * char-ucs.h (breakup_char_1): Use
4945         `Vdefault_coded_charset_priority_list' for C0-Controls,
4946         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4947
4948 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4949
4950         * char-ucs.h (charset_get_byte1): New function.
4951         (XCHARSET_GET_BYTE1): Deleted.
4952         (charset_get_byte2): New function.
4953         (XCHARSET_GET_BYTE2): Deleted.
4954         (Vdefault_coded_charset_priority_list): New external variable.
4955         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4956         `Vdefault_preferred_coded_charset_list'.
4957
4958         * mule-charset.c (charset_get_byte1): New function.
4959         (charset_get_byte2): New function.
4960         (Vdefault_coded_charset_priority_list): New variable.
4961         (vars_of_mule_charset): Add new variable
4962         `default-coded-charset-priority-list'.
4963
4964 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4965
4966         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4967         (XCHARSET_GET_BYTE2): New inline function.
4968         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4969         `XCHARSET_GET_BYTE2'.
4970
4971 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4972
4973         * mule-charset.c (make_charset): Initialize
4974         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4975         NULL if table is not defined.
4976
4977 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4978
4979         * text-coding.c (char_encode_shift_jis): Use
4980         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4981         `ucs_to_latin_jisx0201'.
4982
4983         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4984         (ucs_to_latin_iso8859_2): Deleted.
4985         (ucs_to_latin_iso8859_3): Deleted.
4986         (ucs_to_latin_iso8859_4): Deleted.
4987         (ucs_to_latin_iso8859_9): Deleted.
4988         (ucs_to_latin_viscii_lower): Deleted.
4989         (ucs_to_latin_viscii_upper): Deleted.
4990         (ucs_to_latin_tcvn5712): Deleted.
4991         (make_charset): Add new argument `decoding_table'; set up
4992         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4993         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4994         `decoding_table' is defined in UTF-2000.
4995         (Fmake_charset): Modify for `make_charset'.
4996         (Fmake_reverse_direction_charset): Likewise.
4997         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4998         and `GENERATE_96_SET'.
4999
5000         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5001         (ucs_to_latin_jisx0201): Deleted.
5002         (latin_iso8859_2_to_ucs): Deleted.
5003         (ucs_to_latin_iso8859_2): Deleted.
5004         (latin_iso8859_3_to_ucs): Deleted.
5005         (ucs_to_latin_iso8859_3): Deleted.
5006         (latin_iso8859_4_to_ucs): Deleted.
5007         (ucs_to_latin_iso8859_4): Deleted.
5008         (latin_iso8859_9_to_ucs): Deleted.
5009         (ucs_to_latin_iso8859_9): Deleted.
5010         (latin_viscii_lower_to_ucs): Deleted.
5011         (ucs_to_latin_viscii_lower): Deleted.
5012         (latin_viscii_upper_to_ucs): Deleted.
5013         (ucs_to_latin_viscii_upper): Deleted.
5014         (struct Lisp_Charset): Renamed `encoding_table' to
5015         `to_byte1_table'; add `to_byte2_table'.
5016         (CHARSET_DECODING_TABLE): New macro.
5017         (CHARSET_TO_BYTE1_TABLE): New macro.
5018         (CHARSET_TO_BYTE2_TABLE): New macro.
5019         (XCHARSET_DECODING_TABLE): New macro.
5020         (XCHARSET_TO_BYTE1_TABLE): New macro.
5021         (XCHARSET_TO_BYTE2_TABLE): New macro.
5022         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5023         tables.
5024         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5025         don't use `ucs_to_*' tables.
5026
5027 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5028
5029         * text-coding.c (Fmake_coding_system): Don't set up
5030         `codesys->fixed.size'.
5031         (encode_coding_no_conversion): Use `if' instead of `switch'.
5032
5033         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5034
5035 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5036
5037         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5038         (Fmake_charset): Modify for `make_charset'.
5039         (Fmake_reverse_direction_charset): Likewise.
5040         (complex_vars_of_mule_charset): Likewise.
5041
5042 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5043
5044         * text-coding.c (char_encode_shift_jis): Use table
5045         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5046
5047 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5048
5049         * text-coding.c (text_encode_generic): Use `if' instead of
5050         `switch'.
5051         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5052         decode JIS-Latin.
5053
5054 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5055
5056         * text-coding.c (encode_coding_sjis): Deleted.
5057         (char_encode_shift_jis): New function.
5058         (char_finish_shift_jis): New function.
5059         (reset_encoding_stream): Set up `encode_char' and `finish' for
5060         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5061         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5062         (char_encode_utf8): Treat `eol_type'.
5063
5064 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5065
5066         * file-coding.c (decode_coding_iso2022): Use
5067         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5068
5069 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5070
5071         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5072         to 0.7 (Hirano).
5073
5074 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5075
5076         * char-lb.h (CHAR_COLUMNS): New macro.
5077
5078 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5079
5080         * text-coding.c (char_encode_ucs4): New function.
5081         (char_finish_ucs4): New function.
5082         (encode_coding_ucs4): Deleted.
5083         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5084         (text_encode_generic): Delete local variable `charset' and `half'.
5085         (ucs_to_mule_table): Deleted.
5086         (mule_to_ucs_table): Deleted.
5087         (Fset_ucs_char): Deleted.
5088         (ucs_to_char): Deleted.
5089         (Fucs_char): Deleted.
5090         (Fset_char_ucs): Deleted.
5091         (Fchar_ucs): Deleted.
5092         (decode_ucs4): Deleted.
5093         (mule_char_to_ucs4): Deleted.
5094         (encode_ucs4): Deleted.
5095         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5096         (decode_coding_utf8): Likewise.
5097         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5098         (char_encode_iso2022): Fixed.
5099         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5100         `Fset_char_ucs' and `Fchar_ucs'.
5101         (complex_vars_of_file_coding): Don't initialize
5102         `ucs_to_mule_table'.
5103
5104         * objects-tty.c (tty_initialize_font_instance): Don't use
5105         `XCHARSET_COLUMNS'.
5106
5107         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5108         UTF-2000.
5109
5110         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5111         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5112
5113         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5114         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5115         (emchar_string_displayed_columns): Likewise.
5116
5117         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5118         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5119         (string_column_at_point): Likewise.
5120         (Fmove_to_column): Likewise.
5121
5122         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5123         `encoding_table' and `decoding_table'.
5124         (CHARSET_REP_BYTES): Deleted.
5125         (XCHARSET_REP_BYTES): Deleted.
5126         (XCHARSET_COLUMNS): Deleted.
5127         (CHAR_COLUMNS): New macro.
5128         (lookup_composite_char): Deleted unconditionally.
5129         (composite_char_string): Likewise.
5130
5131 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5132
5133         * char-ucs.h (Emchar_to_byte_table): New type.
5134         (get_byte_from_character_table): New function interface.
5135         (Vcharset_latin_jisx0201): New variable.
5136         (latin_jisx0201_to_ucs): New variable.
5137         (ucs_to_latin_jisx0201): New variable.
5138         (Vcharset_latin_iso8859_2): New variable.
5139         (latin_iso8859_2_to_ucs): New variable.
5140         (ucs_to_latin_iso8859_2): New variable.
5141         (Vcharset_latin_iso8859_3): New variable.
5142         (latin_iso8859_3_to_ucs): New variable.
5143         (ucs_to_latin_iso8859_3): New variable.
5144         (Vcharset_latin_iso8859_4): New variable.
5145         (latin_iso8859_4_to_ucs): New variable.
5146         (ucs_to_latin_iso8859_4): New variable.
5147         (Vcharset_latin_iso8859_9): New variable.
5148         (latin_iso8859_9_to_ucs): New variable.
5149         (ucs_to_latin_iso8859_9): New variable.
5150         (Vcharset_latin_viscii_lower): New variable.
5151         (latin_viscii_lower_to_ucs): New variable.
5152         (ucs_to_latin_viscii_lower): New variable.
5153         (Vcharset_latin_viscii_upper): New variable.
5154         (latin_viscii_upper_to_ucs): New variable.
5155         (ucs_to_latin_viscii_upper): New variable.
5156         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5157         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5158         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5159         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5160         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5161         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5162         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5163         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5164         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5165         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5166
5167         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5168         (Vcharset_latin_viscii_upper): New variable.
5169         (make_byte_from_character_table): New function.
5170         (put_byte_from_character_table): New function.
5171         (get_byte_from_character_table): New function.
5172         (CHAR96): New macro.
5173         (ucs_to_latin_jisx0201): New variable.
5174         (latin_jisx0201_to_ucs): New variable.
5175         (ucs_to_latin_iso8859_2): New variable.
5176         (latin_iso8859_2_to_ucs): New variable.
5177         (ucs_to_latin_iso8859_3): New variable.
5178         (latin_iso8859_3_to_ucs): New variable.
5179         (ucs_to_latin_iso8859_4): New variable.
5180         (latin_iso8859_4_to_ucs): New variable.
5181         (ucs_to_latin_iso8859_9): New variable.
5182         (latin_iso8859_9_to_ucs): New variable.
5183         (ucs_to_latin_viscii_lower): New variable.
5184         (latin_viscii_lower_to_ucs): New variable.
5185         (ucs_to_latin_viscii_upper): New variable.
5186         (latin_viscii_upper_to_ucs): New variable.
5187         (ucs_to_latin_tcvn5712): New variable.
5188         (latin_tcvn5712_to_ucs): New variable.
5189         (Qlatin_viscii_lower): New variable.
5190         (Qlatin_viscii_upper): New variable.
5191         (syms_of_mule_charset): Set up new symbol
5192         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5193         (complex_vars_of_mule_charset): Set up new charset
5194         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5195         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5196         `ucs_to_<CHARSET>' tables.
5197
5198 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5199
5200         * text-coding.c: New file.
5201
5202 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5203
5204         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5205
5206         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5207         (MAKE_CHAR): Modify for `ucs-bmp'.
5208         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5209         non-MULE characters of BMP.
5210
5211 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5212
5213         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5214         to 0.6.
5215
5216 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5217
5218         * lstream.h:
5219         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5220         - Include character.h for `CHAR_ASCII_P'.
5221
5222         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5223
5224         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5225         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5226
5227         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5228         (BYTE_C0_P): Likewise.
5229         (BYTE_C1_P): Likewise.
5230         (Lstream_get_emchar_1): Likewise.
5231         (Lstream_fput_emchar): Likewise.
5232         (Lstream_funget_emchar): Likewise.
5233         (copy_internal_to_external): Likewise.
5234         (copy_external_to_internal): Likewise.
5235
5236         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5237         (BYTE_C0_P): Likewise.
5238         (BYTE_C1_P): Likewise.
5239         (Lstream_get_emchar_1): Likewise.
5240         (Lstream_fput_emchar): Likewise.
5241         (Lstream_funget_emchar): Likewise.
5242         (copy_internal_to_external): Likewise.
5243         (copy_external_to_internal): Likewise.
5244
5245         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5246         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5247
5248         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5249         (BYTE_ASCII_P): Moved to mb-1byte.h.
5250
5251 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5252
5253         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5254
5255         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5256         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5257         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5258         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5259         (VALIDATE_CHARPTR_FORWARD): Likewise.
5260         (simple_charptr_emchar): Moved to mb-multibyte.h.
5261         (simple_set_charptr_emchar): Likewise.
5262         (simple_charptr_copy_char): Likewise.
5263         (non_ascii_charptr_emchar): Likewise.
5264         (non_ascii_set_charptr_emchar): Likewise.
5265         (non_ascii_charptr_copy_char): Likewise.
5266         (charptr_emchar): Moved to mb-*byte.h.
5267         (set_charptr_emchar): Likewise.
5268         (charptr_copy_char): Likewise.
5269
5270         * mb-1byte.h, mb-multibyte.h: New files.
5271
5272 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5273
5274         * mb-utf-8.h (MULTIBYTE): New macro.
5275         (MAX_EMCHAR_LEN): Moved from buffer.h.
5276         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5277
5278         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5279
5280         * mb-lb.h, multibyte.h: New files.
5281
5282         * char-1byte.h (Charset_ID): Moved from buffer.h.
5283         (MIN_LEADING_BYTE): Likewise.
5284         (LEADING_BYTE_ASCII): Likewise.
5285         (NUM_LEADING_BYTES): Likewise.
5286         (CHARSETP): Likewise.
5287         (CHARSET_BY_LEADING_BYTE): Likewise.
5288         (XCHARSET_LEADING_BYTE): Likewise.
5289         (XCHARSET_GRAPHIC): Likewise.
5290         (XCHARSET_COLUMNS): Likewise.
5291         (XCHARSET_DIMENSION): Likewise.
5292         (CHAR_CHARSET): Likewise.
5293         (CHAR_LEADING_BYTE): Likewise.
5294         (BREAKUP_CHAR): Likewise.
5295         (Vcharset_ascii): Likewise.
5296
5297         * buffer.h: Include multibyte.h unconditionally.
5298         (VALID_CHARPTR_P): Moved to multibyte.h.
5299         (ASSERT_VALID_CHARPTR): Likewise.
5300         (REAL_INC_CHARPTR): Likewise.
5301         (REAL_INC_CHARBYTIND): Likewise.
5302         (REAL_DEC_CHARPTR): Likewise.
5303         (INC_CHARPTR): Likewise.
5304         (INC_CHARBYTIND): Likewise.
5305         (DEC_CHARPTR): Likewise.
5306         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5307         (VALIDATE_CHARPTR_FORWARD): Likewise.
5308         (charptr_n_addr): Likewise.
5309         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5310         (simple_charptr_emchar): Moved to multibyte.h.
5311         (simple_set_charptr_emchar): Likewise.
5312         (simple_charptr_copy_char): Likewise.
5313         (non_ascii_charptr_emchar): Likewise.
5314         (non_ascii_set_charptr_emchar): Likewise.
5315         (non_ascii_charptr_copy_char): Likewise.
5316         (charptr_emchar): Likewise.
5317         (set_charptr_emchar): Likewise.
5318         (charptr_copy_char): Likewise.
5319         (charptr_emchar_n): Likewise.
5320         (Charset_ID): Moved to char-1byte.h.
5321         (Vcharset_ascii): Likewise.
5322         (CHAR_CHARSET): Likewise.
5323         (CHAR_LEADING_BYTE): Likewise.
5324         (LEADING_BYTE_ASCII): Likewise.
5325         (NUM_LEADING_BYTES): Likewise.
5326         (MIN_LEADING_BYTE): Likewise.
5327         (CHARSETP): Likewise.
5328         (CHARSET_BY_LEADING_BYTE): Likewise.
5329         (XCHARSET_LEADING_BYTE): Likewise.
5330         (XCHARSET_GRAPHIC): Likewise.
5331         (XCHARSET_COLUMNS): Likewise.
5332         (XCHARSET_DIMENSION): Likewise.
5333         (BREAKUP_CHAR): Likewise.
5334
5335 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5336
5337         * character.h: Add document about interface for characters.
5338
5339         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5340         (MAKE_CHAR): Delete comment about
5341         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5342         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5343         (BREAKUP_CHAR): Modify name of arguments.
5344         (CHAR_CHARSET): Modify name of argument.
5345
5346         * buffer.h: Delete document about Emchar accessors.
5347
5348 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5349
5350         * character.h (CHAR_INTP): Moved from buffer.h
5351         (CHAR_OR_CHAR_INTP): Likewise.
5352         (XCHAR_OR_CHAR_INT): Likewise.
5353         (CHECK_CHAR_COERCE_INT): Likewise.
5354
5355         * buffer.h (CHAR_INTP): Moved to character.h
5356         (CHAR_OR_CHAR_INTP): Likewise.
5357         (XCHAR_OR_CHAR_INT): Likewise.
5358         (CHECK_CHAR_COERCE_INT): Likewise.
5359
5360 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5361
5362         * character.h:
5363         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5364         - Include char-1byte.h, char-lb.h or char-ucs.h.
5365
5366         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5367
5368         * buffer.h: Include character unconditionally.
5369         (valid_char_p): Moved to char-*.h.
5370         (non_ascii_valid_char_p): Moved to char-lb.h.
5371
5372         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5373
5374 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5375
5376         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5377         in UTF-2000 because it is not ported yet and not to use
5378         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5379         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5380         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5381
5382         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5383         (CHAR_ASCII_P): Moved from character.h.
5384
5385         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5386         (CHAR_ASCII_P): Likewise.
5387         (CHAR_FIELD1_MASK): Deleted.
5388         (CHAR_FIELD2_MASK): Deleted.
5389         (CHAR_FIELD3_MASK): Deleted.
5390         (MAX_CHAR_BASIC_LATIN): New macro.
5391         (CHAR_FIELD1): Deleted.
5392         (CHAR_FIELD2_INTERNAL): Deleted.
5393         (CHAR_FIELD3_INTERNAL): Deleted.
5394         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5395         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5396         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5397         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5398         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5399         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5400         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5401         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5402         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5403         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5404         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5405         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5406         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5407         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5408         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5409         (MIN_CHAR_COMPOSITION): Deleted.
5410         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5411         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5412
5413 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5414
5415         * buffer.h: Include mb-utf-8.h in UTF-2000.
5416
5417         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5418
5419         * mb-utf-8.h: New file.
5420
5421 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5422
5423         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5424         instead of `int'.
5425
5426         * mule-charset.h, buffer.h (Charset_ID): New type.
5427
5428 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5429
5430         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5431         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5432         instead of `MULE_CHAR_PRIVATE_OFFSET',
5433         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5434         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5435         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5436
5437         * character.h (Vcharset_japanese_jisx0212): New variable
5438         definition.
5439
5440 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5441
5442         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5443         (charset_by_attributes): Delete array about direction.
5444         (latin_a_char_to_charset): New variable in UTF-2000.
5445         (latin_a_char_to_byte1): New variable in UTF-2000.
5446         (latin_a_char_to_byte2): New variable in UTF-2000.
5447         (Qucs_bmp): New variable.
5448         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5449         `Bufbyte'.
5450         (next_allocated_2_byte_leading_byte): Likewise.
5451         (non_ascii_set_charptr_emchar): Likewise.
5452         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5453         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5454         `charset_by_attributes'.
5455         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5456         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5457         and `CHARSET_BY_LEADING_BYTE'.
5458         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5459         `utf-2000-version' to `vars_of_mule_charset'.
5460         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5461         define `leading-code-private-11' in UTF-2000; move setting of
5462         `utf-2000-version' from `syms_of_mule_charset'.
5463         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5464         UTF-2000.
5465
5466         * character.h (Charset_ID): New type.
5467         (LEADING_BYTE_UCS_BMP): New macro.
5468         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5469         (CHARSET_ID_OFFSET_94): New macro.
5470         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5471         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5472         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5473         final-byte.
5474         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5475         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5476         (CHARSET_ID_OFFSET_96): New macro.
5477         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5478         CHARSET_ID_OFFSET_96 and final-byte.
5479         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5480         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5481         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5482         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5483         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5484         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5485         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5486         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5487         (LEADING_BYTE_THAI_TIS620): Likewise.
5488         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5489         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5490         (CHARSET_ID_OFFSET_94x94): New macro.
5491         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5492         CHARSET_ID_OFFSET_94x94 and final-byte.
5493         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5494         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5495         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5496         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5497         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5498         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5499         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5500         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5501         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5502         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5503         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5504         (CHARSET_TYPE_128X128): New macro.
5505         (CHARSET_TYPE_256X256): New macro.
5506         (XCHARSET_PRIVATE_P): Delete unconditionally.
5507         (charset_by_attributes): Delete array about direction.
5508         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5509         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5510         (MIN_CHAR_94): New macro.
5511         (MAX_CHAR_94): New macro.
5512         (MIN_CHAR_96): New macro.
5513         (MAX_CHAR_96): New macro.
5514         (MIN_CHAR_94x94): New macro.
5515         (MAX_CHAR_94x94): New macro.
5516         (MIN_CHAR_96x96): New macro.
5517         (MAX_CHAR_96x96): New macro.
5518         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5519         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5520         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5521         - 32)'.
5522         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5523         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5524         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5525         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5526         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5527         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5528         `XCHARSET_LEADING_BYTE' to make code-point.
5529         (latin_a_char_to_charset): New variable.
5530         (latin_a_char_to_byte1): New variable.
5531         (latin_a_char_to_byte2): New variable.
5532         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5533         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5534         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5535
5536         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5537         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5538         (find_charsets_in_emchar_string): Likewise.
5539         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5540
5541         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5542         `int'.
5543         (decode_coding_iso2022): Likewise.
5544
5545         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5546         of `unsigned char'.
5547
5548         * redisplay.c (redisplay_text_width_emchar_string): Use
5549         `Charset_ID' instead of `unsigned char'.
5550         (redisplay_frame_text_width_string): Likewise.
5551
5552         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5553         `unsigned char'.
5554
5555         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5556         instead of `unsigned char'.
5557         (face_cachel_charset_font_metric_info): Likewise.
5558
5559         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5560         (get_non_ascii_char_table_value): Likewise.
5561         (get_char_table): Likewise.
5562         (put_char_table): Likewise.
5563         (map_over_other_charset): Likewise.
5564         (map_char_table): Likewise.
5565
5566         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5567         instead of `unsigned char'.
5568
5569 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5570
5571         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5572         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5573
5574         * mule-charset.c (leading_code_private_11): Don't define in
5575         UTF-2000.
5576
5577         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5578         in UTF-2000 because it is not ported yet and not to use
5579         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5580
5581 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5582
5583         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5584
5585 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5586
5587         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5588         in UTF-2000.
5589
5590         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5591         of unsigned char to store leading-byte.
5592
5593         * chartab.c (get_non_ascii_char_table_value): Don't use
5594         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5595
5596         * file-coding.c (encode_coding_big5): Delete bogus implementation
5597         in UTF2000.
5598
5599         * character.h (LEADING_BYTE_*): Delete definition for
5600         non-UTF-2000.
5601         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5602         (LEADING_BYTE_PREFIX_P): Deleted.
5603         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5604         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5605         (BUFBYTE_LEADING_BYTE_P): Deleted.
5606         (CHARSET_PRIVATE_P): Deleted unconditionally.
5607         (rep_bytes_by_first_byte): Deleted unconditionally.
5608         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5609         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5610         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5611         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5612         (CHAR_FIELD2): Deleted.
5613         (CHAR_FIELD3): Deleted.
5614         (MAKE_CHAR): Delete definition for non-UTF-2000.
5615         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5616         (breakup_char_1): New implementation.
5617         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5618         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5619
5620 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5621
5622         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5623         condition.
5624
5625 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5626
5627         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5628         (CHARSET_PRIVATE_P): Likewise.
5629         (XCHARSET_PRIVATE_P): Likewise.
5630         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5631
5632         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5633         UTF2000.
5634         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5635
5636 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5637
5638         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5639         (NUM_LEADING_BYTES): Changed from 128 to 256.
5640         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5641         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5642         UTF2000.
5643         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5644
5645         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5646         UTF2000.
5647         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5648         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5649         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5650         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5651         (Qchinese_cns11643_3): New variable in UTF2000.
5652         (Qchinese_cns11643_4): New variable in UTF2000.
5653         (Qchinese_cns11643_5): New variable in UTF2000.
5654         (Qchinese_cns11643_6): New variable in UTF2000.
5655         (Qchinese_cns11643_7): New variable in UTF2000.
5656         (syms_of_mule_charset): Define `chinese-cns11643-3',
5657         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5658         and `chinese-cns11643-7' in UTF2000.
5659         (vars_of_mule_charset): Initialize
5660         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5661         + 1 in UTF2000.
5662         (complex_vars_of_mule_charset): Setup charset
5663         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5664         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5665
5666 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5667
5668         * mule-charset.c: Move setting for `leading-code-private-11' from
5669         `syms_of_mule_charset' to `vars_of_mule_charset'.
5670
5671 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5672
5673         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5674         and `NUM_LEADING_BYTES' in assert.
5675
5676 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5677
5678         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5679         instead of 128.
5680         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5681         `NUM_LEADING_BYTES' instead of 128.
5682
5683 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5684
5685         * mule-charset.h (charset_by_leading_byte): Use
5686         `NUM_LEADING_BYTES' instead of 128.
5687         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5688
5689         * mule-charset.c (charset_by_leading_byte): Use
5690         `NUM_LEADING_BYTES' instead of 128.
5691         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5692
5693         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5694         128.
5695
5696 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5697
5698         * mule-charset.c (syms_of_mule_charset): Update to
5699         0.4 (Shin-Imamiya).
5700
5701 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5702
5703         * file-coding.c (encode_coding_sjis): New implementation for
5704         UTF2000.  (decode_coding_sjis): Ditto.
5705
5706 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5707
5708         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5709         Don't define in UTF2000.
5710
5711         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5712         defined.
5713
5714         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5715         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5716         MULE.
5717
5718 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5719
5720         * config.h.in (CHAR_IS_UCS4): New macro.
5721
5722         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5723         conventional MULE representation.
5724         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5725
5726         * mule-charset.h: Reverted to original.
5727
5728         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5729         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5730         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5731
5732         * character.h: New file.
5733
5734         * file-coding.c (Fmake_coding_system): Set 1 to
5735         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5736         defined.
5737         (encode_coding_no_conversion): New implementation for UTF2000.
5738
5739         * file-coding.h (struct Lisp_Coding_System): Add new member
5740         `fixed.size'.
5741
5742 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5743
5744         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5745         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5746         (encode_coding_iso2022): New implementation for UTF2000.
5747
5748 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5749
5750         * mule-canna.c (c2mu): New implementation for UTF2000.
5751         (m2c): Likewise.
5752
5753 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5754
5755         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5756
5757 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5758
5759         * file-coding.c (reset_encoding_stream): Set 0 to
5760         `str->iso2022.current_char_boundary' in UTF2000.
5761         (encode_utf8): Don't define in UTF2000.
5762         (encode_coding_utf8): New implementation for UTF-8 representation
5763         of UTF2000.
5764         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5765
5766 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5767
5768         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5769
5770         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5771         UTF2000.
5772         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5773
5774         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5775
5776         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5777         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5778         as UTF-8 in UTF2000.
5779         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5780         (non_ascii_valid_char_p): Don't define in UTF2000.
5781         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5782         (Lstream_get_emchar_1): Likewise.
5783         (utf-2000-version): New variable in UTF2000.
5784
5785         * lread.c (read_escape): Add new reader `u'.
5786
5787         * insdel.c (three_to_one_table): Don't define in UTF2000.
5788         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5789         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5790         UTF2000.
5791         (bytind_to_bufpos_func): Likewise.
5792         (buffer_mule_signal_inserted_region): Likewise.
5793         (vars_of_insdel): Don't initialize `three_to_one_table'.
5794         (init_buffer_text): Use `buf->text->mule_size' instead of
5795         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5796         UTF2000.
5797
5798         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5799         UTF-8 representation in UTF2000.
5800         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5801         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5802         (decode_coding_iso2022): Don't define local variable `lb' in
5803         UTF2000; don't use LEADING_BYTE in UTF2000; use
5804         `DECODE_ADD_UCS_CHAR' in UTF2000.
5805         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5806
5807         * config.h.in (UTF2000): New macro.
5808
5809         * buffer.h (struct buffer_text): Add new member `mule_size' and
5810         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5811         (valid_char_p): Return always 1 in UTF2000.
5812         (MAX_EMCHAR_LEN): 6 in UTF2000.
5813         (three_to_one_table): Don't define in UTF2000.
5814         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5815         UTF2000.
5816         (real_bytind_to_bufpos): Likewise.
5817
5818         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5819
5820 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5821
5822         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5823         representation change.
5824         (Vutf_2000_version): New variable.
5825         (leading_code_private_11): New variable.
5826         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5827         `leading-code-private-11'.
5828
5829         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5830         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5831         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5832         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5833         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5834         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5835         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5836         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5837         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5838         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5839         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5840         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5841         (MIN_CHAR_GREEK): New macro.
5842         (MAX_CHAR_GREEK): New macro.
5843         (MIN_CHAR_CYRILLIC): New macro.
5844         (MAX_CHAR_CYRILLIC): New macro.
5845         (MIN_CHAR_HEBREW): New macro.
5846         (MAX_CHAR_HEBREW): New macro.
5847         (MIN_CHAR_THAI): New macro.
5848         (MAX_CHAR_THAI): New macro.
5849         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5850         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5851         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5852         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5853         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5854         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5855         (CHAR_FIELD2): New inline function.
5856         (CHAR_FIELD3): New inline function.
5857         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5858         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5859         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5860         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5861         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5862         (MIN_CHAR_COMPOSITION): Likewise.
5863         (CHAR_LEADING_BYTE): Modified for character representation change.
5864         (MAKE_CHAR): Likewise.
5865
5866         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5867         (Vcharset_greek_iso8859_7): Likewise.
5868         (Vcharset_cyrillic_iso8859_5): Likewise.
5869         (Vcharset_hebrew_iso8859_8): Likewise.
5870         (Vcharset_thai_tis620): Likewise.
5871         (Vcharset_katakana_jisx0201): Likewise.
5872
5873 2005-12-03  Vin Shelton <acs@xemacs.org>
5874
5875         * XEmacs 21.4.18 is released
5876
5877 2005-11-27  Kean Johnston <kean@armory.com>
5878
5879         * redisplay-tty.c (set_tty_modes):
5880         (reset_tty_modes): disable auto-margins if the terminal supports
5881         them.
5882         (init_tty_for_redisplay): fix cursor shape.
5883
5884 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
5885
5886         * mule-ccl.c (ccl_driver): Calculate the charset and position code
5887         for control-1 characters properly, both when reading multibyte
5888         characters and writing them. 
5889
5890 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
5891
5892         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
5893         * select-x.c (x_reply_selection_request): Use it; fix the bug we
5894         were seeing with incremental selection transfer failing. 
5895
5896 2005-11-26  Vin Shelton  <acs@xemacs.org>
5897
5898         * callproc.c (Fold_call_process_internal): Create the buffer if it
5899         does not already exist.  The original patch came from Ben Wing in
5900         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
5901
5902 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
5903
5904         * callproc.c: Process-related docstring improvements spurred by
5905         Norbert Koch.
5906
5907 2005-11-25  Vin Shelton  <acs@xemacs.org>
5908
5909         * depend: Regenerated.
5910
5911 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
5912
5913         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
5914         says it clashes with a global with the same name.
5915
5916 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
5917
5918         * sysdll.c (dll_open): Under MacOS X return NULL under the
5919         filename is NULL.  Fixes problems finding local symbols under 10.4
5920         (Tiger)
5921
5922 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
5923         
5924         * config.h.in: New HAVE_U_INT*_T defines.
5925         
5926         * database.c: Only use u_int*_t typedefs if not already
5927         defined.
5928
5929 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
5930
5931         * src/process-unix.c (unix_open_network_stream): moved
5932           'portbuf' buffer out of an inner block as it is used in the
5933           entire function. With gcc4, the stack may get corrupted
5934           after leaving this block. This patches adjusts the size of
5935           the used buffer also; static '128' bytes are far too much
5936           currently and might not suffice for future architectures
5937           (e.g. for 512 bit ones ;)). Instead of, use only the really
5938           required space (max octets * ln(256)/ln(10) chars + space
5939           for '\0' and the sign)
5940
5941 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
5942
5943         * callproc.c: Include sysdir.h, so any necessary Mule processing
5944         is done on the current directory name before starting a new
5945         process.
5946
5947 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
5948
5949         * chartab.c (Fchar_table_p):
5950         (Fget_range_char_table):
5951         (Fput_char_table):
5952         (Fmap_char_table):
5953         Describe range representation and fix typo.
5954
5955 2005-02-12  Vin Shelton  <acs@xemacs.org>
5956
5957         * emacs.c (shut_down_emacs): Advise users to send email to the
5958         xemacs-beta list instead of crashes@xemacs.org.
5959
5960 2005-02-03  David Evers  <extsw@appliedgenerics.com>
5961
5962         * process-unix.c (unix_send_process): Flush the last chunk, even
5963         when the pipe is blocked.
5964
5965 2005-02-06  Vin Shelton <acs@xemacs.org>
5966
5967         * XEmacs 21.4.17 is released
5968
5969 2005-01-31  Ben Wing  <ben@xemacs.org>
5970
5971         * emacs.c:
5972         Define assert_failed() always.
5973         * lisp.h:
5974         Always define ABORT().
5975
5976 2005-01-25  Ben Wing  <ben@xemacs.org>
5977
5978         * Makefile.in.in:
5979         * Makefile.in.in (%.o):
5980         Don't compile executable as Windows (-mwindows) under Cygwin.
5981         Semi-recent changes to Cygwin's executable-startup handling make
5982         it impossible to access the TTY this way.
5983
5984         Don't use special linker file under Cygwin (cygwin.sc) except
5985         when non-PDUMP (even in this case it is highly questionable); you
5986         get errors like
5987
5988       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
5989    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
5990
5991 2005-01-29  Ben Wing  <ben@xemacs.org>
5992
5993         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5994
5995         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
5996
5997 2005-01-29  Ben Wing  <ben@xemacs.org>
5998
5999         * bytecode.c (optimize_compiled_function):
6000         * print.c (FROB):
6001         * print.c (long_to_string):
6002         Add casts to avoid warning.
6003         
6004         * glyphs-eimage.c:
6005         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6006         #### The better solution is to move the TIFF and JPEG code to
6007         different files.
6008         
6009         * glyphs-msw.c (mswindows_xbm_instantiate):
6010         Define __STDC__ to avoid problems with compface.h.
6011         
6012         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6013         * EmacsShell-sub.c:
6014         * EmacsShell-sub.c (ABORT):
6015         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6016         * EmacsShell-sub.c (RootGeometryManager):
6017         * EmacsShell.c:
6018         * EmacsShell.c (ABORT):
6019         * EmacsShell.c (EmacsShellUpdateSizeHints):
6020         * alloc.c (free_lcrecord):
6021         * alloca.c (i00afunc):
6022         * buffer.c (delete_from_buffer_alist):
6023         * buffer.c (MARKED_SLOT):
6024         * bytecode.c (execute_rare_opcode):
6025         * bytecode.c (optimize_byte_code):
6026         * bytecode.c (Ffetch_bytecode):
6027         * chartab.c (char_table_type_to_symbol):
6028         * chartab.c (Freset_char_table):
6029         * chartab.c (decode_char_table_range):
6030         * chartab.c (Fget_range_char_table):
6031         * chartab.c (check_valid_char_table_value):
6032         * chartab.c (map_char_table):
6033         * chartab.c (slow_map_char_table_fun):
6034         * chartab.c (chartab_instantiate):
6035         * cm.c (cmcheckmagic):
6036         * console-msw.c (DHEADER):
6037         * console.c (MARKED_SLOT):
6038         * data.c (finish_marking_weak_lists):
6039         * data.c (encode_weak_list_type):
6040         * debug.h (DASSERT):
6041         * device-gtk.c (gtk_init_device):
6042         * device-msw.c (mswindows_get_default_margin):
6043         * device-tty.c (tty_init_device):
6044         * device-x.c (get_device_from_display):
6045         * device-x.c (x_get_visual_depth):
6046         * doprnt.c (parse_doprnt_spec):
6047         * doprnt.c (get_doprnt_args):
6048         * dumper.c (pdump_get_indirect_count):
6049         * dumper.c (pdump_register_sub):
6050         * dumper.c (pdump_register_object):
6051         * dumper.c (pdump_register_struct):
6052         * dumper.c (pdump_dump_data):
6053         * dumper.c (pdump_reloc_one):
6054         * elhash.c (print_hash_table):
6055         * elhash.c (make_standard_lisp_hash_table):
6056         * elhash.c (hash_table_instantiate):
6057         * emacs.c:
6058         * emacs.c (Fforce_debugging_signal):
6059         * emacs.c (sort_args):
6060         * emacs.c (main):
6061         * emacs.c (assert_failed):
6062         * eval.c (throw_or_bomb_out):
6063         * eval.c (signal_1):
6064         * eval.c (Fsignal):
6065         * event-Xt.c:
6066         * event-Xt.c (emacs_Xt_mapping_action):
6067         * event-Xt.c (Xt_process_to_emacs_event):
6068         * event-msw.c:
6069         * event-stream.c (check_event_stream_ok):
6070         * event-stream.c (Fadd_timeout):
6071         * event-stream.c (Fadd_async_timeout):
6072         * event-stream.c (Fdiscard_input):
6073         * event-stream.c (execute_internal_event):
6074         * event-stream.c (Frecent_keys):
6075         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6076         * event-stream.c (lookup_command_event):
6077         * event-unixoid.c (poll_fds_for_input):
6078         * events.c:
6079         * events.c (mark_event):
6080         * events.c (event_equal):
6081         * events.c (event_hash):
6082         * events.c (Fmake_event):
6083         * events.c (Fdeallocate_event):
6084         * events.c (event_chain_find_previous):
6085         * events.c (event_to_character):
6086         * events.c (format_event_object):
6087         * events.c (Fevent_type):
6088         * events.c (event_pixel_translation):
6089         * events.c (Fevent_properties):
6090         * extents.c (extent_in_region_p):
6091         * extents.c (print_extent):
6092         * extents.c (process_extents_for_insertion_mapper):
6093         * extents.c (report_extent_modification_mapper):
6094         * extents.c (glyph_layout_to_symbol):
6095         * faces.c (face_validate):
6096         * file-coding.c (eol_type_to_symbol):
6097         * file-coding.c (subsidiary_coding_system):
6098         * file-coding.c (Fcoding_system_type):
6099         * file-coding.c (Fcoding_system_property):
6100         * file-coding.c (mule_decode):
6101         * file-coding.c (mule_encode):
6102         * file-coding.c (encode_coding_ucs4):
6103         * file-coding.c (encode_coding_utf8):
6104         * file-coding.c (parse_iso2022_esc):
6105         * file-coding.c (encode_coding_iso2022):
6106         * fileio.c:
6107         * fns.c (concat):
6108         * fns.c (Fsubseq):
6109         * fns.c (mapcar1):
6110         * fns.c (Fbase64_encode_region):
6111         * fns.c (Fbase64_encode_string):
6112         * fns.c (Fbase64_decode_region):
6113         * fns.c (Fbase64_decode_string):
6114         * font-lock.c (find_context):
6115         * font-lock.c (context_to_symbol):
6116         * frame-gtk.c (gtk_set_frame_pointer):
6117         * frame-gtk.c (gtk_update_frame_external_traits):
6118         * frame-x.c (x_wm_mark_shell_size_user_specified):
6119         * frame-x.c (x_wm_mark_shell_position_user_specified):
6120         * frame-x.c (x_wm_set_shell_iconic_p):
6121         * frame-x.c (x_wm_set_cell_size):
6122         * frame-x.c (x_wm_set_variable_size):
6123         * frame-x.c (x_wm_store_class_hints):
6124         * frame-x.c (x_wm_maybe_store_wm_command):
6125         * frame-x.c (x_initialize_frame_size):
6126         * frame-x.c (x_update_frame_external_traits):
6127         * frame.c:
6128         * frame.c (delete_frame_internal):
6129         * frame.c (mouse_pixel_position_1):
6130         * frame.c (change_frame_size_1):
6131         * free-hook.c (check_free):
6132         * free-hook.c (check_realloc):
6133         * free-hook.c (note_block_input):
6134         * free-hook.c (log_gcpro):
6135         * gccache-gtk.c (gc_cache_lookup):
6136         * glyphs-eimage.c (tiff_memory_write):
6137         * glyphs-gtk.c (gtk_finalize_image_instance):
6138         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6139         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6140         * glyphs-gtk.c (gtk_xpm_instantiate):
6141         * glyphs-gtk.c (gtk_unmap_subwindow):
6142         * glyphs-gtk.c (gtk_map_subwindow):
6143         * glyphs-gtk.c (gtk_button_redisplay):
6144         * glyphs-msw.c:
6145         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6146         * glyphs-x.c (init_image_instance_from_xbm_inline):
6147         * glyphs-x.c (extract_xpm_color_names):
6148         * glyphs-x.c (x_xpm_instantiate):
6149         * glyphs.c (get_image_instantiator_governing_domain):
6150         * glyphs.c (print_image_instance):
6151         * glyphs.c (image_instance_equal):
6152         * glyphs.c (image_instance_hash):
6153         * glyphs.c (encode_image_instance_type):
6154         * glyphs.c (make_image_instance_1):
6155         * glyphs.c (inherit_instantiate):
6156         * glyphs.c (image_instantiate):
6157         * glyphs.c (allocate_glyph):
6158         * glyphs.c (Fglyph_type):
6159         * glyphs.c (redisplay_subwindow):
6160         * glyphs.c (display_table_entry):
6161         * gtk-glue.c (xemacs_list_to_gtklist):
6162         * gtk-glue.c (xemacs_gtklist_to_list):
6163         * gtk-glue.c (xemacs_list_to_array):
6164         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6165         * gutter.c (gutter_was_visible):
6166         * gutter.c (get_gutter_coords):
6167         * input-method-xlib.c (get_XIM_input):
6168         * insdel.c (bufpos_to_bytind_func):
6169         * insdel.c (bytind_to_bufpos_func):
6170         * insdel.c (move_gap):
6171         * intl.c (x_get_composed_input):
6172         * keymap.c (keymap_lookup_directly):
6173         * keymap.c (keymap_delete_inverse_internal):
6174         * keymap.c (ensure_meta_prefix_char_keymapp):
6175         * keymap.c (accessible_keymaps_mapper_1):
6176         * keymap.c (where_is_recursive_mapper):
6177         * lisp.h:
6178         * lisp.h (ABORT):
6179         * lread.c (read_atom):
6180         * lstream.c (Lstream_delete):
6181         * lstream.c (make_lisp_buffer_stream_1):
6182         * macros.c (pop_kbd_macro_event):
6183         * malloc.c (malloc):
6184         * malloc.c (free):
6185         * marker.c (bi_marker_position):
6186         * marker.c (set_bi_marker_position):
6187         * menubar-gtk.c (menu_descriptor_to_widget_1):
6188         * menubar-msw.c (prune_menubar):
6189         * menubar-x.c (set_frame_menubar):
6190         * mule-charset.c (get_unallocated_leading_byte):
6191         * mule-charset.h (CHAR_LEADING_BYTE):
6192         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6193         * nt.c (init_environment):
6194         * nt.c (generate_inode_val):
6195         * ntproc.c (delete_child):
6196         * ntproc.c (_sys_read_ahead):
6197         * ntproc.c (create_child):
6198         * objects.c (color_instantiate):
6199         * objects.c (font_instantiate):
6200         * objects.c (face_boolean_instantiate):
6201         * print.c (printing_major_badness):
6202         * process-nt.c (nt_send_process):
6203         * process-unix.c (unix_send_process):
6204         * process.c (get_process):
6205         * ralloc.c (obtain):
6206         * ralloc.c (relinquish):
6207         * ralloc.c (relocate_blocs):
6208         * ralloc.c (resize_bloc):
6209         * ralloc.c (r_alloc_free):
6210         * ralloc.c (r_re_alloc):
6211         * ralloc.c (r_alloc_thaw):
6212         * ralloc.c (init_ralloc):
6213         * ralloc.c (Free_Addr_Block):
6214         * ralloc.c (r_alloc):
6215         * redisplay-gtk.c (gtk_output_display_block):
6216         * redisplay-msw.c (mswindows_output_display_block):
6217         * redisplay-output.c (get_next_display_block):
6218         * redisplay-output.c (get_cursor_size_and_location):
6219         * redisplay-output.c (redisplay_output_layout):
6220         * redisplay-output.c (redisplay_clear_region):
6221         * redisplay-tty.c (tty_output_display_block):
6222         * redisplay-x.c (x_output_display_block):
6223         * redisplay.c (add_propagation_runes):
6224         * redisplay.c (add_glyph_rune):
6225         * redisplay.c (create_text_block):
6226         * redisplay.c (add_margin_runes):
6227         * redisplay.c (create_left_glyph_block):
6228         * redisplay.c (create_right_glyph_block):
6229         * redisplay.c (create_string_text_block):
6230         * redisplay.c (regenerate_window):
6231         * redisplay.c (REGEN_INC_FIND_START_END):
6232         * redisplay.c (redisplay_frame):
6233         * redisplay.c (point_in_line_start_cache):
6234         * regex.c:
6235         * regex.c (ABORT):
6236         * regex.c (re_compile_fastmap):
6237         * regex.c (re_match_2_internal):
6238         * regex.c (regerror):
6239         * scrollbar-gtk.c (gtk_scrollbar_loop):
6240         * scrollbar-gtk.c (scrollbar_cb):
6241         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6242         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6243         * scrollbar-x.c (x_update_scrollbar_instance_status):
6244         * scrollbar-x.c (x_scrollbar_loop):
6245         * scrollbar-x.c (x_update_frame_scrollbars):
6246         * search.c (search_command):
6247         * search.c (Fmatch_data):
6248         * select-x.c (motif_clipboard_cb):
6249         * signal.c (interrupt_signal):
6250         * specifier.c (specifier_add_spec):
6251         * specifier.c (specifier_instance_from_inst_list):
6252         * specifier.c (specifier_instance):
6253         * specifier.h:
6254         * specifier.h (struct specifier_methods):
6255         * strftime.c (add_num_time_t):
6256         * sunplay.c (init_device):
6257         * symbols.c (Fsetplist):
6258         * symbols.c (do_symval_forwarding):
6259         * symbols.c (store_symval_forwarding):
6260         * symbols.c (Fset):
6261         * symbols.c (Fbuilt_in_variable_type):
6262         * symbols.c (decode_magic_handler_type):
6263         * symbols.c (handler_type_from_function_symbol):
6264         * syntax.c (update_syntax_cache):
6265         * sysdep.c (init_baud_rate):
6266         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6267         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6268         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6269         * toolbar.c (get_toolbar_coords):
6270         * ui-gtk.c (build_gtk_boxed):
6271         * ui-gtk.c (describe_gtk_arg):
6272         * ui-gtk.c (gtk_type_to_lisp):
6273         * ui-gtk.c (lisp_to_gtk_type):
6274         * ui-gtk.c (lisp_to_gtk_ret_type):
6275         * ui-gtk.c (lisp_to_flag):
6276         * unexnt.c (read_in_bss):
6277         * unexnt.c (map_in_heap):
6278         * window.c (real_window):
6279         * window.c (window_display_lines):
6280         * window.c (window_display_buffer):
6281         * window.c (set_window_display_buffer):
6282         * window.c (window_modeline_height):
6283         * window.c (unshow_buffer):
6284         * window.c (window_loop):
6285         * window.c (Fget_lru_window):
6286         * window.c (Fsplit_window):
6287         * window.c (Fset_window_configuration):
6288         * window.c (saved_window_index):
6289         * xgccache.c (gc_cache_lookup):
6290         abort() -> ABORT().  Eliminate preprocessor games with abort()
6291         since it creates huge problems in VC7, solvable only by including
6292         massive amounts of files in every compile (and not worth it).
6293
6294         * sysdep.c:
6295         * sysproc.h:
6296         Inclusion of process.h does not need to be before lisp.h any more.
6297         Move later and remove comment about abort().
6298
6299 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6300
6301         * regex.c (re_match_2_internal):
6302         Correctly initialize loop which clears uninitialized registers.
6303
6304 2005-01-28  Vin Shelton  <acs@xemacs.org>
6305
6306         * sheap.c (more_static_core): Applied Ben's version of the long
6307         string patch.
6308
6309 2005-01-24  Vin Shelton  <acs@xemacs.org>
6310
6311         * sheap.c (more_static_core): Reformatted printf string so
6312         gcc-3.3.3 will compile this on Cygwin.
6313
6314 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6315
6316         * console.c (function_key_map): Reference `key-binding'.
6317
6318         * keymap.c (Vkey_translation_map): Improve docstring.
6319
6320 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6321
6322         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6323         * window.c (window_loop): [fix] Take into account
6324         `allow-deletion-of-last-visible-frame' variable.
6325         * window.c (replace-buffer-in-windows): Ditto.
6326
6327 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6328
6329         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6330
6331 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6332
6333         * event-gtk.c: Recognise AltGr as a valid modifier.
6334
6335 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6336
6337         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6338
6339 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6340
6341         Fix backreference bug caught by test suite.
6342
6343         * regex.c (regex_compile):
6344         Make backref duplicate internal register.
6345
6346 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6347
6348         Documentation, code clarification, and warning suppression.
6349         
6350         * regex.c (regex_compile):
6351         Improve comments.
6352         (re_match_2_internal):
6353         Improve comments and avoid redundant braces.  [Most of the big hunk
6354         at l. 4710 is indentation; use diff -w to see the real changes.]
6355         (alt_match_null_string_p):
6356         (common_op_match_null_string_p):
6357         Avoid shadowing global on Mac OS X 10.4, at least.
6358
6359 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6360
6361         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6362         introduced with shy groups fix).  [Already applied, probably
6363         with the second "fix shy groups" patch of 2004-10-07.] 
6364
6365 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6366
6367         From Andrey Slusar <anrays@gmail.com>:
6368
6369         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6370
6371 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6372
6373         * Makefile (RECURSIVE_MAKE): Removed.
6374         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6375         handling parallel builds.
6376
6377 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6378
6379         * Makefile.in.in: Enable support for parallel builds.
6380
6381 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6382
6383         From Andrey Slusar <anrays@gmail.com>:
6384
6385         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6386         FreeBSD version is >= 199701 _and_ < 600006.
6387
6388 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6389
6390         * scrollbar.c (compute_scrollbar_instance_usage):
6391         Only call device method compute_scrollbar_instance_usage() if it
6392         is defined.
6393
6394 2004-12-05  Vin Shelton <acs@xemacs.org>
6395
6396         * XEmacs 21.4.16 is released
6397
6398 2004-12-04  Vin Shelton  <acs@xemacs.org>
6399
6400         * depend: Regenerated.
6401
6402 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6403
6404         * regex.c (re_match_2_internal): Map internal to external
6405         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6406         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6407
6408 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6409
6410         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6411         to fix a crash.  Also, check the buffer is live and it
6412         really exists in buffer_list.  If the buffer is not in the list,
6413         prepend it.
6414
6415 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6416
6417         Fix shy groups by implementing recording of all groups for
6418         repetition and backtracking.  Backport from 21.5.
6419         
6420         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6421         external_to_internal_register, external_to_internal_register_size,
6422         and update comments for re_nsub.
6423
6424         * regex.c (re_opcode_t): Update comments.
6425         (print_compiled_pattern): Ouput external_to_internal_register,
6426         external_to_internal_register_size, and re_ngroups for debugging.
6427         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6428         (regex_compile): Update header comment.
6429         Ensure that all groups are recorded so that repeat matches and
6430         backtracking work correctly.  Comment related warning for groups >
6431         255.
6432         (re_search_2): Construct map of API indexes (which count only
6433         nonshy groups) to internal register numbers, and keep it updated.
6434
6435 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6436
6437         * frame-gtk.c (gtk_make_frame_visible):
6438         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6439         show/hide.  This is what X uses and is prevents previously hidden
6440         widgets from suddenly reappearing.
6441         * gtk-xemacs.c (gtk_xemacs_paint):
6442         * gtk-xemacs.c (gtk_xemacs_draw):
6443         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6444         drawable.
6445         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6446         size and location changes so that they can be seen before the next
6447         idle event.  Without this rapid changes to scrollbar properties
6448         are not seen.
6449
6450 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6451
6452         * console-gtk.h:
6453         * console-gtk.h (struct gtk_frame):
6454         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6455           Add hash tables track tab_control callback data.
6456           Added #defines for GTK object data names.
6457           Declaration of gtk_widget_to_frame().
6458         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6459         * frame-gtk.c (gtk_widget_to_frame): New.
6460         * frame-gtk.c (gtk_create_widgets):
6461         * frame-gtk.c (allocate_gtk_frame_struct):
6462         * frame-gtk.c (gtk_mark_frame):
6463         Manage frame callbakc hash tables.
6464         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6465         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6466         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6467         of widget size.
6468         * glyphs-gtk.c (gtk_widget_query_geometry): New
6469         * glyphs-gtk.c (gtk_register_gui_item): New
6470         * glyphs-gtk.c (gtk_add_tab_item): New
6471         * glyphs-gtk.c (gtk_tab_control_callback): New
6472         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6473         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6474         Use correct list when loading item.
6475         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6476         Register new methods.
6477         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6478         default size, for widgets.
6479         * gui-x.c:  Improved comment.
6480         * menubar-gtk.c (__generic_button_callback): Use
6481         gtk_widget_to_frame instead of __get_channel.
6482         * scrollbar-gtk.c:
6483         * ui-gtk.c: Use symbolic names for GTK object data.
6484
6485 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6486
6487         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6488
6489 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6490
6491         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6492
6493 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6494
6495         * malloc.c (morecore): siz is a long because in some architectures
6496         (eg ia-64) an int cannot hold the address range.  Additional patch
6497         from the SuSe distribution.
6498
6499 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6500
6501         * emacs.c:
6502         * malloc.c: lim_data is a long because in some architectures
6503         (eg ia-64) an int cannot hold the address range.
6504         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6505         instead of ulimit() because ulimit() always returns -1.
6506
6507 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6508
6509         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6510
6511 2004-06-11  David Kastrup  <dak@gnu.org>
6512
6513         * search.c (match_limit): Don't flag an error if match-data
6514         exceeding the allocated search_regs.num_regs gets requested, just
6515         return Qnil.
6516
6517 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6518
6519         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6520         replace symbolic color entries with the real colors specified in
6521         xpm-color-symbols, before passing the XPM to gtk.
6522         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6523         instead of a GTK specific field, so that it is used in by generic
6524         code.
6525
6526 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6527
6528        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6529         coredump from deref of NULL ptr (ExtData)
6530
6531 2004-04-19  Jerry James  <james@xemacs.org>
6532
6533         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6534         VALBITS to compute the location of the sign bit.
6535         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6536         of VALBITS with EMACS_INT_MAX.
6537         * events.c (Fevent_timestamp): Ditto.
6538         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6539         compute the halfway point to timestamp wraparound.
6540         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6541         EMACS_INT_MIN instead of using VALBITS.
6542         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6543         incorrect number with VALBITS.
6544         * fns.c (Frandom): Correct number of integer bits in docstring.
6545         Use INT_VALBITS instead of VALBITS to compute the denominator.
6546         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6547         build random numbers.
6548
6549 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6550         * event-gtk.c:
6551         * event-gtk.c (gtk_event_to_emacs_event):
6552         * menubar-gtk.c:
6553         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6554         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6555         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6556         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6557         * menubar-gtk.c (__activate_menu):
6558         * menubar-gtk.c (convert_underscores):
6559         * menubar-gtk.c (remove_underscores):
6560         * menubar-gtk.c (menu_convert):
6561         * menubar-gtk.c (menu_descriptor_to_widget_1):
6562         * menubar-gtk.c (menu_descriptor_to_widget):
6563         * menubar-gtk.c (menu_can_reuse_widget):
6564         * menubar-gtk.c (menu_create_menubar):
6565         * menubar-gtk.c (gtk_popup_menu):
6566         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6567         Added support for Gtk menu bar and menu item mnemonics.
6568
6569 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6570
6571         * sysdll.c: (dll_function): Added support for finding symbols in
6572         Darwin shared libraries as well in Darwin bundles.
6573         * sysdll.c (image_for_address): New
6574         * sysdll.c (my_find_image): New
6575         * sysdll.c (search_linked_libs): New
6576
6577 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6578
6579         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6580         return to GTK requires a different API to marshalling data to use
6581         as GTK parameters.
6582         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6583
6584 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6585
6586         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6587
6588 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6589
6590         * glyphs.c (process_image_string_instantiator):
6591         (Fset_console_type_image_conversion_list):
6592         Stop GCC from warning about shadowing of `exp'.
6593
6594         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6595
6596 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6597
6598         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6599
6600 2004-02-03  Vin Shelton  <acs@xemacs.org>
6601
6602         * glyphs.c (image_instance_layout): Remove pointless assertion.
6603         * regex.c (regex_grow_registers): Return type is void.
6604
6605 2004-02-02  Vin Shelton <acs@xemacs.org>
6606
6607         * XEmacs 21.4.15 is released
6608
6609 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6610
6611         * device-x.c (x_error_handler): Don't call stderr_out
6612
6613 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6614
6615         * buffer.c (other-buffer): Clarify documentation of order of
6616         arguments for FSF Emacs.
6617
6618 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6619
6620         * window.c (Fdelete_window): Dirty the mirror structure _before_
6621         marking the window deleted.
6622
6623 2003-09-15  Jerry James  <james@xemacs.org>
6624
6625         * event-msw.c (debug_mswin_messages): Conditionally compile
6626         messages missing from the Cygwin headers.
6627
6628 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6629
6630         * data.c (eq_with_ebola_notice): Fix typo in comment.
6631         (Ftrue_list_p): Improve docstring.
6632
6633 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6634
6635         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6636
6637 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6638
6639         * search.c (trivial_regexp_p): Regexps containing "\{" are
6640         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6641         Stefan Monnier for suggesting a diagnosis.
6642
6643 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6644
6645         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6646
6647 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6648
6649         * search.c (Fsearch_forward):
6650         (Fsearch_backward):
6651         Document negative count.
6652
6653 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6654
6655         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6656
6657 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6658
6659         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6660
6661 2003-09-15  Vin Shelton  <acs@xemacs.org>
6662
6663         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6664         21.5.
6665
6666 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6667
6668         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6669         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6670         (re_match_2_internal): Use TRANSLATE instead of
6671         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6672         non-ASCII char case conversion.
6673
6674 2003-09-08  Mike Sperber  <mike@xemacs.org>
6675
6676         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6677         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6678
6679 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6680
6681        * .gdbinit (pobj): fix printing of symbol name.
6682
6683 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6684
6685         * frame-x.c (x_layout_widgets): When resizing is about to cause
6686         frame size slip, mark it for redisplay.
6687
6688 2003-08-18  Jerry James  <james@xemacs.org>
6689
6690         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6691
6692 2003-09-03  Vin Shelton <acs@xemacs.org>
6693
6694         * XEmacs 21.4.14 is released
6695
6696 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6697
6698         * config.h.in (REGEX_MALLOC): Make it configure'able.
6699
6700 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6701
6702         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6703         linking.
6704         * sysdll.c (dll_init):
6705         * sysdll.c (dll_open):
6706         * sysdll.c (dll_close):
6707         * sysdll.c (dll_function):
6708         * sysdll.c (dll_variable):
6709         * sysdll.c (dll_error):
6710         Add support for loading bundles using Darwin/MacOSX
6711         native API.
6712
6713 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6714
6715         * process.c (start-process-internal): Document coding systems.
6716
6717 2003-07-30  Jerry James  <james@xemacs.org>
6718
6719         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6720
6721 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6722
6723         * event-msw.c (mswindows_enqueue_mouse_button_event):
6724         * event-msw.c (mswindows_wnd_proc):
6725           enqueue button event when scrollwheel event isn't handled by 
6726           mswindows_handle_mousewheel_event, such as when the scrollbars
6727           are not showing.
6728
6729 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6730
6731         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6732
6733 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6734
6735         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6736
6737 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6738
6739         * regex.c (re_match_2_internal): Fix matching degenerate word
6740         boundaries.
6741
6742 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6743
6744         * XEmacs 21.4.13 is released
6745
6746 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6747
6748         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6749         * lisp.h (<inttypes.h>):
6750         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6751         the definition.
6752
6753 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6754
6755         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6756         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6757         Result: "temacs can only be run in -batch mode."
6758         Fix: Check xemacs executable candidate for directory-ness.
6759
6760 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6761
6762         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6763           they conflict with <sys/types.h>.
6764
6765 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6766
6767         * database.c: Berkeley DB wants __STDC__ to be defined.
6768
6769 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6770
6771         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6772
6773 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6774
6775         * process-unix.c (unix_send_process): Fix C++ compile error.
6776
6777 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6778
6779         * Added .dylib as an acceptable shared library file extension
6780         * to support MacOSX.
6781
6782 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6783
6784         * EmacsFrameP.h (EmacsFramePart):
6785         Kludge to allow compiling with Motif1, but linking with Motif2.
6786
6787 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6788
6789         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6790
6791
6792 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6793
6794         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6795
6796 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6797
6798         * sysdll.c: Included lisp.h to define needed alloca_array.
6799
6800 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6801
6802         Make XEmacs redisplay 10 times faster.
6803         If, that is, you're using a slow X connection and MoveOpaque.
6804         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6805         Use compress_motion = TRUE.
6806         * EmacsFrame.c (emacsFrameClassRec): 
6807         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6808         * EmacsManager.c (emacsManagerClassRec):
6809         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6810
6811 2003-01-30  Vin Shelton  <acs@xemacs.org>
6812
6813         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6814
6815 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6816
6817         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6818         Patch by Martin Buchholz.
6819
6820 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6821
6822         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6823         Thanks to icc for warning and Martin Buchholz for reporting.
6824
6825 2003-01-29  Vin Shelton <acs@xemacs.org>
6826
6827         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6828
6829         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6830         remember to multiply by the element size.
6831
6832 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
6833
6834         * XEmacs 21.4.12 "Portable Code" is released.
6835
6836 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
6837
6838         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6839         * s/cygwin.sc: new linker file.
6840
6841 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
6842
6843         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6844
6845         * redisplay-x.c (x_output_string): Use X11-specified types.
6846         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6847         * emacs.c (__free_hook): Use typeof with Intel compiler.
6848         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6849
6850 2003-01-08  Andy Piper  <andy@xemacs.org>
6851
6852         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6853         reserve size during unexec().
6854
6855 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
6856
6857         * process-unix.c (unix_create_process): Don't let outchannel block.
6858
6859 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
6860
6861         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6862         Needed for IsBadReadPtr().
6863
6864 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
6865
6866         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6867
6868 2002-12-14  Ben Wing  <ben@xemacs.org>
6869
6870         * callint.c: Declaration error.
6871         * dumper.c (pdump):
6872         * dumper.c (pdump_load): Warning fix.
6873         * process.c: GCPRO error.
6874         * glyphs.c (unmap_subwindow):
6875         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6876         * event-stream.c (maybe_kbd_translate): Wrong argument to
6877         character_to_event().
6878
6879         * alloc.c (garbage_collect_1):
6880         * emacs.c:
6881         * emacs.c (debug_can_access_memory):
6882         * emacs.c (fatal_error_signal):
6883         * emacs.c (mswindows_handle_hardware_exceptions):
6884         * emacs.c (main_1):
6885         * emacs.c (main):
6886         * emacs.c (assert_failed):
6887         * emacs.c (syms_of_emacs):
6888         * lisp.h:
6889         * print.c:
6890         * print.c (std_handle_out_va):
6891         * print.c (write_string_to_stdio_stream):
6892         * print.c (write_fmt_string):
6893         * print.c (printing_badness):
6894         * print.c (printing_major_badness):
6895         * print.c (print_internal):
6896         * print.c (debug_print_no_newline):
6897         * print.c (debug_backtrace):
6898         Be more defensive in handling bad values when printing.  Add code
6899         from trunk involving inhibit_non_essential_printing_operations.
6900         When going down or in debug_print(), don't do external conversion
6901         and such and try really, really hard when printing to avoid core
6902         dumping.  Add force-debugging-signal, debug_break().
6903
6904 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
6905
6906         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6907         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6908
6909 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
6910
6911         * database.c: Fix open_database. Berkeley DB API has changed in
6912         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6913
6914 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
6915
6916         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6917
6918 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
6919
6920         * event-Xt.c (Xt_timeout):
6921         (Xt_timeout_callback):
6922         (emacs_Xt_add_timeout):
6923         (emacs_Xt_remove_timeout):
6924         (Xt_timeout_to_emacs_event):
6925         Turn completed_timeouts from a stack into a queue.  Fixes
6926         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6927
6928 2002-11-07  Wolfram Gloger  <wg@malloc.de>
6929
6930         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6931         * emacs.c (main): Assert that mmap'd allocation is disabled.
6932
6933 2002-10-14  Andy Piper  <andy@xemacs.org>
6934
6935         * glyphs-widget.c (layout_query_geometry): add in fiddle
6936         factor. Include border text in width layout calculation.
6937         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6938
6939 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
6940
6941         * XEmacs 21.4.10 "Military Intelligence" is released.
6942
6943 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
6944
6945         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
6946         using the NAS private array SoundFileInfo that no longer exists in
6947         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
6948         and earlier.  This is broken for some versions between 1.5a and
6949         1.5f.
6950
6951 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
6952
6953         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
6954
6955         * emacs.c (shut_down_emacs): Improve crash message.
6956
6957 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
6958
6959         * file-coding.c (determine_real_coding_system): Check for coding
6960         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
6961         shebangs and Python PEP 263.
6962
6963 2002-10-08  Andy Piper  <andy@xemacs.org>
6964
6965         * glyphs-widget.c (layout_query_geometry): only resize dynamically
6966         if static sizes haven't been set.
6967
6968 2002-08-30  Mike Alexander  <mta@arbortext.com>
6969
6970         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
6971         to close a socket.
6972
6973 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
6974
6975         * callproc.c (child_setup): 21.4 doesn't have retry_close.
6976
6977 2002-09-20  Mike Sperber <mike@xemacs.org>
6978
6979         (This partially gets back my patch from 2002-07-20 without the
6980         bug.)
6981         * callproc.c (child_setup): Remove Ben's comment noting confusion
6982         over the file descriptors >= 3: close_process_descs() doesn't
6983         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
6984         * process-unix.c (unix_create_process): Call
6985         begin_dont_check_for_quit to inhibit unwanted interaction (and
6986         thus breaking of X event synchronicity) in the child.
6987
6988 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
6989
6990         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
6991         widget.
6992
6993 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
6994
6995         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
6996         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
6997         the xemacs process did not exit, but looped infinitely here.  This
6998         fixes that problem.
6999
7000 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7001
7002         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7003         (find_context): Improve comments.
7004
7005         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7006         (re_match_2): An XCHAR_TABLE operation was missing.
7007
7008         Many of the following changes were inspired by Andy Piper's (now
7009         obsolete) patch to make syntax-table text property lookup optional.
7010
7011         [Documentation]
7012
7013         * syntax.h (top level): Document semantics of syntax flags.
7014         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7015         * syntax.c, syntax.h (top level): Document syntax cache better in
7016         comments.
7017
7018         [Instrument syntax caching (temporary change)]
7019
7020         * syntax.h (enum syntax_cache_statistics_functions, struct
7021         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7022         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7023         * syntax.c (scan_words, Fforward_comment, scan_lists,
7024         Fbackward_prefix_characters):
7025         * font-lock.c (find_context):
7026         Use them to instrument syntax caching. 
7027         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7028         syntax_cache_statistics_function_names): New type and variables.
7029         * syntax.c (update_syntax_cache): Update and report statistics.
7030
7031         [Major syntax cache optimizations]
7032
7033         syntax.c (lookup_syntax_properties): Default off.
7034
7035         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7036         * syntax.c (update_syntax_cache):
7037         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7038
7039         [Minor syntax cache optimizations and code clarifications]
7040
7041         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7042         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7043         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7044         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7045         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7046         (Code clarification.)
7047
7048         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7049         scan_lists): Compute code from syncode, use Boolean macros instead
7050         of redundant masking operations.  (Code clarification; any decent
7051         compiler can do this optimization.)
7052
7053         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7054         for clarity.
7055
7056         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7057         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7058         use F*_single_property_change instead of F*_extent_change.
7059         Currently F*_single_property_change is _much_ less efficient.
7060
7061         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7062         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7063         syntax_cache.object properly, don't leave Qt or Qnil.
7064         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7065         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7066         tests for Qt or Qnil.
7067
7068 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7069
7070         * redisplay.c (point_in_line_start_cache): 
7071         * extents.c (print_extent_1):
7072         Fix warnings.
7073
7074         * extents.c (Fset_extent_property): Document `syntax-table' property.
7075
7076         * extents.h (Fnext_single_property_change): EXFUN it.
7077
7078 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7079
7080         * search.c (clear_unused_search_regs): New static function.
7081         (search_buffer): 
7082         (simple_search): 
7083         (boyer_moore):
7084         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7085         Minor clarifications in comments.
7086
7087         * regex.c (re_match_2_internal): Ensure no stale submatches.
7088
7089 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7090
7091         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7092
7093 2002-08-29  Jerry James  <james@xemacs.org>
7094
7095         * lisp.h: structrures -> structures.
7096
7097 2002-06-03  Andy Piper  <andy@xemacs.org>
7098
7099         * frame.c (frame_conversion_internal): add conversion appropriate
7100         for setting frame dimensions in pixels.
7101
7102         * console.h (struct console_methods): add device-specific widget
7103         layout functions.
7104
7105         * emacs.c (main_1): initialize glyph vars.
7106
7107         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7108         (handle_focus_event_2): new function. Allow focus to
7109         be set to a particular window and widget.
7110         (enqueue_focus_event): new function. Create a
7111         synthetic focus event.
7112         (emacs_Xt_handle_magic_event): call
7113         handle_focus_event_2.
7114
7115         * frame.c (Fset_frame_pixel_height): new function. Allow
7116         pixel-based sizing. Does the right thing on character-oriented
7117         displays.
7118         (Fset_frame_pixel_width): ditto.
7119         (Fset_frame_pixel_size): ditto.
7120         (syms_of_frame): declare.
7121
7122         * general-slots.h: add :vertically-justify and
7123         :horizontally-justify.
7124
7125         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7126         (mswindows_widget_border_width): new function.
7127         (mswindows_combo_box_instantiate): set border widths.
7128         (console_type_create_glyphs_mswindows): declare.
7129
7130         * glyphs-widget.c:
7131         (check_valid_justification): allow vertical and horizontal
7132         justification.
7133         (widget_border_width): new function. Call device methods.
7134         (widget_instance_border_width): ditto.
7135         (logical_unit_height): new function. Determine the height of a
7136         logical-unit. Logical units are intended to provide grid-like
7137         layout for subcontrols in a layout. If the layout is
7138         :vertically-justify top then subcontrols will be positioned on
7139         logical-unit boundaries, thus allowing adjacent subcontrols to
7140         line up.
7141         (widget_logical_unit_height): ditto for widgets.
7142         (redisplay_widget): misc cleanup.
7143         (widget_spacing): new function. Call device specific
7144         methods. Intended to be the default gap between adjacent widgets.
7145         (widget_query_geometry): use new spacing functions to determine
7146         appropriate geometry.
7147         (initialize_widget_image_instance): initialize horizontal and
7148         vertical justification.
7149         (widget_instantiate): use logica-units where appropriate for
7150         sizing large widgets.
7151         (button_query_geometry): use widget_instance_border_width.
7152         (tree_view_query_geometry): ditto.
7153         (tab_control_query_geometry): ditto.
7154         (edit_field_query_geometry): new function.
7155         (layout_update): pick up :justify, :horizontally-justify and
7156         :vertically-justify none of which worked previously. :justify is
7157         used as a fallback for both horizontal and vertical justification.
7158         (layout_query_geometry): use logical units to size appropriately.
7159         (layout_layout): ditto.
7160         (Fwidget_logical_to_character_width): new function. Allow users to
7161         convert from logical units to characters so that frame sizes can
7162         be set appropriately.
7163         (Fwidget_logical_to_character_height): ditto.
7164         (syms_of_glyphs_widget): declare.
7165         (image_instantiator_edit_fields): add edit_field_query_geometry.
7166         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7167         :horizontally-justify.
7168         (specifier_vars_of_glyphs_widget): new function. Declare
7169         Vwidget_border_width which is not yet used.
7170
7171         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7172         (x_widget_border_width): new function.
7173         (x_widget_instantiate): create a sensible name for widgets.
7174         (console_type_create_glyphs_x): declare x_widget_border_width.
7175
7176         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7177         (struct Lisp_Image_Instance): add :vertically-justify and
7178         :horizontally-justify.
7179         (LAYOUT_JUSTIFY_TOP): new.
7180         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7181         (ROUND_UP): new macro. Round argument up to next integral
7182         interval.
7183
7184         * redisplay-output.c (redisplay_output_layout): misc formatting.
7185
7186         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7187
7188 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7189
7190         * XEmacs 21.4.9 "Informed Management" is released.
7191
7192 2002-08-19  Andy Piper  <andy@xemacs.org>
7193
7194         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7195         win32 format.
7196
7197         * realpath.c (xrealpath): normalize drive spec also so that dir
7198         sep chars are not mixed on cygwin.
7199
7200 2002-08-06  Jerry James  <james@xemacs.org>
7201
7202         * window.c (Fsplit_window): Count only half of the divider width
7203         against the left window when splitting horizontally. 
7204
7205 2002-06-24  Andy Piper  <andy@xemacs.org>
7206
7207         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7208         toolbar was cleared.
7209
7210         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7211         function. Split out from mswindows_output_frame_toolbars.
7212         (mswindows_output_frame_toolbars): move clear pieces to
7213         mswindows_output_frame_toolbars.
7214
7215         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7216         out from gtk_output_frame_toolbars.
7217         (gtk_output_frame_toolbars): move clear pieces to
7218         gtk_clear_frame_toolbars.
7219
7220         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7221         the frame is cleared. How this ever worked before is a mystery.
7222         (x_output_frame_toolbars): Only output toolbars.
7223         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7224
7225         * gutter.c (update_gutter_geometry):
7226         Mark frame layout changed.
7227         (update_frame_gutter_geometry, update_frame_gutters):
7228         Respect frame_layout_changed.
7229
7230         * console.h (struct console_methods): add
7231         clear_frame_toolbars_method.
7232
7233         * redisplay.c (redisplay_frame): call
7234         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7235
7236         * toolbar.h: declare update_frame_toolbars_geometry.
7237
7238         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7239         out from update_frame_toolbars.  Call clear_frame_toolbars.
7240         (update_frame_toolbars): only output, do not change geometry.
7241
7242         * redisplay.c: add frame_layout_changed.
7243
7244         * redisplay.h: add frame_layout_changed.
7245         (CLASS_RESET_CHANGED_FLAGS): set it.
7246         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7247         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7248         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7249
7250         * device.h (struct device): add frame_layout_changed.
7251         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7252
7253         * frame.h (struct frame): add frame_layout_changed.
7254         (MARK_FRAME_LAYOUT_CHANGED): new.
7255
7256 2002-06-30  Mike Alexander  <mta@arbortext.com>
7257
7258         * event-msw.c (mswindows_need_event): Don't wait for a new message
7259         if the queue is not empty.  Suggested by Paul Moore.
7260
7261 2002-06-12  Andy Piper  <andy@xemacs.org>
7262
7263         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7264         for printing on accurately.
7265
7266 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7267
7268         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7269         WM_ACTIVATE message. Make sure that the frame is visible if the
7270         window is visible. This seemss to fix the problem where XEmacs
7271         appears to freeze after switching desktops with certain virtual
7272         window managers.
7273         (debug_output_mswin_message): Added code to output message
7274         parameters for WM_WINDOWPOSCHANGED, 
7275         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7276
7277 2002-05-25  Andy Piper  <andy@xemacs.org>
7278
7279         * select-x.c (vars_of_select_x): Fix docstring of
7280         x-selection-strict-motif-ownership
7281
7282 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7283
7284         * keymap.c (get_keymap):
7285         Add comment about do_autoload GCPROs own args.
7286
7287 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7288
7289         * bytecode.c (execute_optimized_program): check_opcode ifdef
7290         ERROR_CHECK_BYTE_CODE.
7291
7292 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7293
7294         Thanks to Ben Wing and Michael Sperber.
7295
7296         * eval.c (Fcommand_execute):
7297         (Feval):
7298         (Ffuncall):
7299         (Fmacroexpand_internal):
7300         (function_argcount):
7301         callint.c (Fcall_interactively):
7302         Add comment about do_autoload GCPROs own args.
7303
7304         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7305
7306         * eval.c (Ffuncall): Extra braces to placate GCC.
7307
7308 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7309
7310         * backtrace.h (grow_specpdl):
7311         (SPECPDL_RESERVE):
7312         * EmacsFrame.c (EmacsFrameSetValues):
7313         * eval.c (grow_specpdl):
7314         * ExternalShell.c (hack_event_masks_1):
7315         * glyphs-x.c (convert_EImage_to_XImage): 
7316         (x_finalize_image_instance):
7317         * ralloc.c (page_size):
7318         (r_alloc_sbrk):
7319         * xgccache.c (gc_cache_hash):
7320         Fix unsigned comparison warnings.
7321
7322 2002-07-29  Jerry James  <james@xemacs.org>
7323
7324         * lread.c (locate_file): Any nonnegative return value indicates
7325         success if MODE is nonnegative.
7326
7327 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7328
7329         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7330         argument. 
7331
7332 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7333
7334         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7335
7336         * dumper.c (pdump_get_indirect_count):
7337         (pdump_scan_by_alignment):
7338         (pdump_dump_root_struct_ptrs):
7339         (pdump_dump_rtables):
7340         (pdump_dump_root_objects):
7341         (pdump):
7342         * nas.c (WaveOpenDataForReading):
7343         * fns.c (print_bit_vector):
7344         * font-lock.c (SINGLE_SYNTAX_STYLE):
7345         * glyphs.c (check_for_ignored_expose):
7346         (find_matching_subwindow):
7347         * glyphs-eimage.c:
7348         * imgproc.c (get_histogram):
7349         * redisplay.c (point_in_line_start_cache):
7350         * redisplay-output.c (redisplay_unmap_subwindows):
7351         * symbols.c (defsymbol_massage_name_1):
7352         (defkeyword_massage_name):
7353         (deferror_massage_name_and_message):
7354         * redisplay-x.c (x_output_string): 
7355         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7356         * frame.h (struct frame):
7357         * filelock.c (current_lock_owner):
7358         * doprnt.c (emacs_doprnt_1):
7359         * lisp.h (struct Lisp_Bit_Vector):
7360         (DO_REALLOC):
7361         Fix warnings.
7362
7363 2002-02-13  Ben Wing  <ben@xemacs.org>
7364
7365         * event-stream.c (reset_key_echo):
7366         * event-stream.c (reset_this_command_keys):
7367         * event-stream.c (execute_command_event):
7368         If console is dead as a result of C-x 5 0, then post-command stuff
7369         needs to be careful and do only non-console-specific stuff.
7370
7371 2002-07-01  Mike Sperber <mike@xemacs.org>
7372
7373         * process-unix.c (unix_send_process): Mark coding_outstream as
7374         non-open upon SIGPIPE.
7375
7376         * event-stream.c (Fnext_event): Reorder switch cases to something
7377         that makes sense.
7378
7379 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7380
7381         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7382         Don't bogusly reinitialize ascii_character property.
7383
7384 2002-07-08  Mike Sperber <mike@xemacs.org>
7385
7386         * process.c (Fstart_process_internal): Do error checking before we
7387         fork off the child, so the child can't muck with the state of the
7388         parent.
7389
7390 2002-07-08  Mike Sperber <mike@xemacs.org>
7391
7392         * ralloc.c (init_ralloc): Allocate properly for pdump.
7393
7394 2002-06-12  Andy Piper  <andy@xemacs.org>
7395
7396         * glyphs.c (query_string_geometry): check the string.
7397
7398         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7399         widget names.
7400
7401 2002-06-17  Jerry James  <james@xemacs.org>
7402
7403         * sysdll.c: Remove RTLD_GLOBAL initialization.
7404         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7405
7406 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7407
7408         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7409
7410 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7411
7412         * sysdep.c (sys_rename): Make sys_rename work for the case where
7413         Windows rename sets errno to EACCES if target file exists.
7414
7415 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7416
7417         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7418         Fix detection of metric units to work on Win95
7419
7420 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7421
7422         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7423
7424 2002-04-25  Andy Piper  <andy@xemacs.org>
7425
7426         * redisplay.c (create_text_block): Remove extra comment trailer.
7427
7428 2002-04-24  Andy Piper  <andy@xemacs.org>
7429
7430         * redisplay.c (create_text_block): Don't actually add propagation
7431         data if the line ends after we have added a glyph.
7432
7433 2002-04-22  Andy Piper  <andy@xemacs.org>
7434
7435         * extents.c (extent_fragment_update): check for glyphs we have
7436         previously displayed.
7437         * extents.c (print_extent_1): warning removal.
7438         * extents.h: change prototype.
7439         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7440         widths correctly for wide glyphs.
7441         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7442         * redisplay.c (prop_type): add PROP_GLYPH.
7443         * redisplay.c (struct prop_block): add glyph type
7444         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7445         to the propagation data.
7446         * redisplay.c (create_text_block): if there is a glyph in the
7447         propagation data use it to salt extent_fragment_update.
7448         * redisplay.c (create_string_text_block): ditto.
7449
7450 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7451
7452         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7453         * redisplay-output.c (compare_runes): Compare them.
7454         * redisplay.c: Update copyright date.
7455         * redisplay.c (pos_data): Add need_baseline_computation field.
7456         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7457         need_baseline_computation; zero yoffset. Set max_pixmap_height
7458         for all pixmaps, not just automatically positioned ones.
7459         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7460         * redisplay.c (calculate_baseline): New, compute textual baseline.
7461         * redisplay.c (add_glyph_rune): Call them.
7462         * redisplay.c (create_text_block): Likewise.
7463         * redisplay.c (create_overlay_glyph_block): Likewise.
7464         * redisplay.c (add_margin_runes): Likewise.
7465         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7466
7467         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7468         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7469         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7470         * redisplay-msw.c (mswindows_output_string): Likewise.
7471         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7472         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7473         * redisplay-x.c (x_output_display_block): Likewise.
7474
7475 2002-03-28  Ben Wing  <ben@xemacs.org>
7476
7477         * redisplay.c: Fixed bug in redisplay
7478         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7479         and down of the lines, since they're bigger than the line
7480         size. (It was seen most obviously when there's a horizontal scroll
7481         bar, e.g. do C-h a glyph or something like that.) The problem was
7482         that the glyph-contrib-p setting on glyphs was ignored even if it
7483         was set properly, which it wasn't until now.
7484
7485 2002-04-24  Andy Piper  <andy@xemacs.org>
7486
7487         * lisp.h (Dynarr_end): Fix definition.
7488
7489 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7490
7491         * redisplay.c (mark_redisplay): Remove call to
7492         update_frame_window_mirror.
7493
7494 2001-11-15  Andy Piper  <andy@xemacs.org>
7495
7496         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7497         cygwin (again).
7498
7499 2002-02-13  Andy Piper  <andy@xemacs.org>
7500
7501         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7502         we did in fact enqueue the XM_MAPFRAME event.
7503
7504 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7505
7506         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7507         to fix problem switching between virtual desktops under virtuawin
7508         virtual window manager.
7509
7510 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7511
7512         * event-msw.c: Typo fix.
7513         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7514         magic XM_MAPFRAME event has been sent.
7515
7516 2001-11-23  Andy Piper  <andy@xemacs.org>
7517
7518         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7519
7520 2001-11-21  Andy Piper  <andy@xemacs.org>
7521
7522         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7523         mouse events outside the frame.
7524
7525 2002-03-20  Andy Piper  <andy@xemacs.org>
7526
7527         * menubar-msw.c (mswindows_popup_menu): warning removal.
7528         * dialog-msw.c (dialog_popped_down): ditto.
7529
7530 2001-12-11  Andy Piper  <andy@xemacs.org>
7531
7532         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7533         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7534         popup_up_p.
7535         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7536         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7537         * menubar-msw.c (mswindows_popup_menu): ditto.
7538
7539 2001-10-29  Andy Piper  <andy@xemacs.org>
7540
7541         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7542         cancels.
7543
7544 2002-01-03  Andy Piper  <andy@xemacs.org>
7545
7546         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7547         letters.
7548         (xrealpath): ditto.
7549
7550 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7551
7552         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7553         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7554         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7555         Detect and handle case where machine is set up for metric units
7556
7557 2002-04-02  Andy Piper  <andy@xemacs.org>
7558
7559         * dired-msw.c (mswindows_get_files): 
7560         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7561         completely handled by XEmacs. Suggested by Thomas Vogler
7562         <mail@thomas-vogler.de>.
7563
7564 2001-11-14  Andy Piper  <andy@xemacs.org>
7565
7566         * nt.c (REG_ROOT): change registry key to XEmacs.
7567
7568 2002-04-27  Andy Piper  <andy@xemacs.org>
7569
7570         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7571
7572 2002-04-26  Andy Piper  <andy@xemacs.org>
7573
7574         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7575         behavior.
7576
7577 2002-03-14  Mike Alexander  <mta@arbortext.com>
7578
7579         * event-msw.c (mswindows_unwait_process): New, remove process from
7580         wait list
7581         * process-nt.c (nt_finalize_process_data): Call
7582         mswindows_unwait_process
7583         * console-msw.h: Declare mswindows_unwait_process
7584
7585 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7586
7587         * editfns.c (Fdecode_time):
7588         (Fformat_time_string):
7589         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7590         (make_time): Warning elimination (change arg name).
7591
7592 2001-11-24  Andy Piper  <andy@xemacs.org>
7593
7594         * window.c (Fsplit_window): Doc return type.
7595
7596 2002-04-01  Andy Piper  <andy@xemacs.org>
7597
7598         * emacs.c (Fkill_emacs): Only output message box in interactive
7599         mode.
7600
7601 2002-04-26  Andy Piper  <andy@xemacs.org>
7602  
7603         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7604         cygwin.
7605
7606 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7607
7608         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7609         bit platform.
7610
7611 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7612
7613         * XEmacs 21.4.8 "Honest Recruiter" is released.
7614
7615 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7616
7617         Supersedes 2002-04-17 patch.
7618
7619         * process.h (PROCESS_LIVE_P): Use the process status as
7620         evidence of health, not the state of the input stream.
7621         (PROCESS_READABLE_P): Say if the process is readable
7622         from. (It may be dead nonetheless.)
7623         (CHECK_READABLE_PROCESS): Test for that condition.
7624
7625         * process.c (create_process): Use PROCESS_READABLE_P.
7626         (read_process_output, set_process_filter): Likewise.
7627
7628         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7629         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7630
7631         This code is #if 0'd, this is not the time to add new functions:
7632
7633         * process.c (Fprocess_readable_p): Report readability status.
7634         * process.c (Qprocess_readable_p): New, associated symbol...
7635         * process.c (syms_of_process): ... initialize it.
7636
7637 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7638
7639         * XEmacs 21.4.7 "Economic Science" is released.
7640
7641 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7642
7643         * process.h (PROCESS_LIVE_P): Use the process status as
7644         evidence of health, not the state of the input stream.
7645
7646 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7647
7648         * sysdep.c (sys_siglist): change "signum" to "signal"
7649
7650 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7651
7652         * s/darwin.h: New file.
7653         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7654         
7655 2002-04-23  Andreas Jaeger  <aj@suse.de>
7656
7657         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7658         which use lib64 for 64-bit libs.
7659         (START_FILES): Likewise.
7660
7661 2002-02-11  Mike Sperber  <mike@xemacs.org>
7662
7663         * device-x.c: 
7664         (x_IO_error_handler):
7665         (x_init_device): Temporarily keep device in static variable
7666         `device_being_initialized' so we can recover gracefully from
7667         internal XOpenDevice failure.  (XOpenDevice is documented to
7668         return NULL on failure, but sometimes calls the IO error handler
7669         instead.)
7670
7671 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7672
7673         * dired.c (Ffile_name_all_completions): Change documentation --
7674         remove reference to completion-ignored-extensions.
7675         * dired.c (vars_of_dired): Change documentation for
7676         completion-ignored-extensions -- remove reference to
7677         file-name-all-completions.
7678
7679 2002-03-06  Jerry James  <james@xemacs.org>
7680
7681         * emodules.c (emodules_load): Fix multiple loading of same module.
7682
7683 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7684         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7685         RTLD_LAZY to avoid incorrect symbol binding when using nested
7686         shared libraries on Solaris.
7687
7688 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7689
7690         * fileio.c (Ffind_file_name_handler): Improve docstring.
7691
7692 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7693
7694         * fns.c (Fmapconcat): Improve docstring.
7695
7696 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7697
7698         * device-gtk.c: Add prototype for
7699         emacs_gtk_selection_clear_event_handle.
7700         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7701         selection.  Setup signal handler for "selection_clear_event"
7702         (emacs_gtk_selection_clear_event_handle).
7703
7704         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7705         other applications owning the clipboard (based on
7706         x_handle_selection_clear).
7707
7708 2001-12-23  William M. Perry  <wmperry@gnu.org>
7709
7710         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7711         
7712 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7713
7714         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7715
7716 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7717
7718         * XEmacs 21.4.6 "Common Lisp" is released.
7719
7720 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7721
7722         * search.c (Freplace_match): Add missing sub-expression functionality.
7723
7724         * buffer.c (decode_buffer): Add a check for pointer type to
7725         decode_buffer, before gcc's CSE optimization reorders a
7726         dereference in front of the allow_string test.
7727
7728 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7729
7730         * window.c (window_loop): Fix bug that sometimes prevented
7731         window_loop() from iterating across multiple devices.  Also, at
7732         Ben's request, changed infloop-detecting code to abort() instead
7733         of silently terminating window_loop().
7734
7735 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7736
7737         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7738         * editfns.c (make_time): New function.
7739         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7740         * lisp.h (make_time): Prototype and comment it.
7741         * dired.c (wasteful_word_to_lisp): Deprecate.
7742         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7743
7744 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7745
7746         * fileio.c (auto_save_1): Use current coding system, not
7747         escape-quoted.
7748
7749 2001-11-13  Ben Wing  <ben@xemacs.org>
7750
7751         * window.c:
7752         * window.c (window_truncation_on):
7753         * window.c (syms_of_window):
7754         truncate-partial-width-windows should respect the buffer being
7755         displayed, like other redisplay vars.
7756
7757 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7758
7759         * event-stream.c (Fread_key_sequence): save current buffer.
7760
7761 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7762
7763         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7764
7765 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7766
7767         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7768
7769 2001-10-26  Mike Alexander  <mta@arbortext.com>
7770
7771         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7772
7773 2001-10-25  Andy Piper  <andy@xemacs.org>
7774
7775         * ChangeLog:
7776         * dialog-msw.c (handle_directory_proc): new function.
7777          (handle_directory_dialog_box): new fucntion.
7778          (handle_file_dialog_box): use new directory dialog support.
7779          (mswindows_make_dialog_box_internal): ditto.
7780         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7781         handling.
7782         (mswindows_find_frame): make global.
7783         * fileio.c (Fexpand_file_name): build fix.
7784         * general-slots.h: add Qdirectory.
7785         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7786         handling.
7787         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7788         cygwin not leaving win32 paths unchanged.
7789         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7790         cygwin runtime to do path conversion.
7791         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7792         (syms_of_win32): add new function.
7793         * window.c (window_loop): build fix.
7794
7795 2001-10-15  Andy Piper  <andy@xemacs.org>
7796
7797         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7798
7799 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7800
7801         * XEmacs 21.4.5 "Civil Service" is released.
7802
7803 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7804
7805         * glyphs-x.c: Force buffer-tab highlight update when moving the
7806         buffer, avoiding an ugly black border, used for keyboard focus
7807         indication, on a widget that can never have keyboard focus, the
7808         buffer tab.
7809
7810 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7811
7812         * process-unix.c (unix_open_multicast_group): Remove too much
7813         conversion between host and network byte order.
7814
7815 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7816
7817         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7818         before replacing them.
7819
7820         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7821         operation.
7822
7823         * src/window.c (undedicate_windows): Use it.
7824         * src/window.h: Add prototype.
7825
7826 2001-09-17  Ben Wing  <ben@xemacs.org>
7827
7828         * fileio.c (normalize_filename):
7829         * fileio.c (Fexpand_file_name):
7830         Fix various C++ compile errors in Andy's recent code.
7831         
7832         * callint.c (Fcall_interactively):
7833         * editfns.c (Ftemp_directory):
7834         * editfns.c (Fuser_full_name):
7835         * emacs.c (argmatch):
7836         * lread.c (locate_file_map_suffixes):
7837         * redisplay-x.c (x_ring_bell):
7838         Fix sign-compare warnings.
7839         
7840 2001-09-08  Andy Piper  <andy@xemacs.org>
7841
7842         * fileio.c (normalize_filename): copied from nt.c
7843         * (Ffile_name_directory): enable win32 paths under cygwin.
7844         * (Ffile_name_nondirectory): ditto.
7845         * (directory_file_name): ditto.
7846         * (Fexpand_file_name): ditto.
7847         * (Ffile_truename): ditto.
7848         * (Fsubstitute_in_file_name): ditto.
7849         * (Ffile_name_absolute_p): ditto.
7850         * (Ffile_readable_p): ditto.
7851
7852 2001-09-08  Andy Piper  <andy@xemacs.org>
7853
7854         * device-msw.c (mswindows_finish_init_device): remove dde
7855         initialization.
7856         * device-msw.c (mswindows_init_dde): factor out from
7857         mswindows_finish_init_device()
7858         * device-msw.c (init_mswindows_very_early): new function
7859         initialize but don't enable dde.
7860         * emacs.c (main_1): call init_mswindows_very_early.
7861         * event-msw.c:
7862         * event-msw.c (mswindows_dde_callback): only execute when we are
7863         ready.
7864         * symsinit.h: declare init_mswindows_very_early.
7865
7866 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7867
7868         [sjt: This has been in 21.5 for months with no complaints.]
7869
7870         * console.h (struct console_methods): Added flags member.
7871         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7872         (CONMETH_IMPL_FLAG):
7873         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7874         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7875
7876         * device.c (window_system_pixelated_geometry): Use the above macros.
7877
7878         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7879         implememntation flag.
7880         * device.h (DEVICE_DISPLAY_P): Use it.
7881
7882         * frame.c (delete_frame_internal): Use the above macro.
7883
7884         * redisplay.c (redisplay_device): Use it.
7885         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7886         (redisplay_frame): Ditto.
7887
7888         * device-msw.c (mswindows_device_implementation_flags): Removed.
7889         (msprinter_device_implementation_flags): Removed.
7890         (console_type_create_device_mswindows): Removed references to
7891         implementation_flags methods, set implementation flags here.
7892         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7893
7894         * device-gtk.c (gtk_device_implementation_flags): Removed method.
7895         (console_type_create_device_gtk): Removed method declaration.
7896         Added commented out statement which semantically matches the
7897         commented out statement in the above removed method.
7898
7899 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
7900
7901         The attached patch fixes a few warnings. 
7902
7903         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7904         * src/frame-gtk.c: guard against GNOME calls in GTK only
7905         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7906         * src/select-gtk.c: prototype lisp_to_time
7907
7908 2001-06-08  Ben Wing  <ben@xemacs.org>
7909
7910         ------ gc-in-window-procedure fixes ------
7911         
7912         * alloc.c:
7913         * alloc.c (struct post_gc_action):
7914         * alloc.c (register_post_gc_action):
7915         * alloc.c (run_post_gc_actions):
7916         * alloc.c (garbage_collect_1):
7917         Create "post-gc actions", to avoid those dreaded "GC during window
7918         procedure" problems.
7919
7920         * event-msw.c:
7921         Abort, clean and simple, when GC in window procedure.  We want
7922         to flush these puppies out.
7923
7924         * glyphs-msw.c:
7925         * glyphs-msw.c (finalize_destroy_window):
7926         * glyphs-msw.c (mswindows_finalize_image_instance):
7927         Use a post-gc action when destroying subwindows.
7928
7929         * lisp.h:
7930         Declare register_post_gc_action().
7931
7932         * scrollbar-msw.c:
7933         * scrollbar-msw.c (unshow_that_mofo):
7934         Use a post-gc action when unshowing scrollbar windows, if in gc.
7935
7936         * redisplay.c (mark_redisplay):
7937         Add comment about the utter evilness of what's going down here.
7938
7939         ------ cygwin setitimer fixes ------
7940         
7941         * Makefile.in.in (sheap_objs):
7942         * Makefile.in.in (profile_objs):
7943         * Makefile.in.in (objs):
7944         Compile profile.c only when HAVE_SETITIMER.
7945         
7946         * nt.c (mswindows_sigset):
7947         * nt.c (mswindows_sighold):
7948         * nt.c (mswindows_sigrelse):
7949         * nt.c (mswindows_sigpause):
7950         * nt.c (mswindows_raise):
7951         * nt.c (close_file_data):
7952         Style fixes.
7953         
7954         * nt.c:
7955         Move setitimer() emulation to win32.c, because Cygwin needs it too.
7956         
7957         * profile.c:
7958         * profile.c (Fstart_profiling):
7959         * profile.c (Fstop_profiling):
7960         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
7961         instead of just plain setitimer().
7962         
7963         * signal.c:
7964         * signal.c (set_one_shot_timer):
7965         * signal.c (alarm):
7966         Define qxe_setitimer() as an encapsulation around setitimer() --
7967         call setitimer() directly unless Cygwin or MS Win, in which case
7968         we use our simulated version in win32.c.
7969         
7970         * systime.h:
7971         * systime.h (struct itimerval):
7972         * systime.h (ITIMER_REAL):
7973         Prototype mswindows_setitimer() and qxe_setitimer().  Long
7974         comment about "qxe" and the policy regarding encapsulation.
7975
7976         * win32.c:
7977         * win32.c (setitimer_helper_proc):
7978         * win32.c (setitimer_helper_period):
7979         * win32.c (setitimer_helper):
7980         * win32.c (mswindows_setitimer):
7981         Move setitimer() emulation here, so Cygwin can use it.
7982         Rename a couple of functions and variables to be longer and more
7983         descriptive.  In setitimer_helper_proc(), send the signal
7984         using either mswindows_raise() or (on Cygwin) kill().  If for
7985         some reason we are still getting lockups, we'll change the kill()
7986         to directly invoke the signal handlers.
7987
7988         ------ windows shell fixes ------
7989         
7990         * callproc.c:
7991         * ntproc.c:
7992         Comments about how these two files must die.
7993
7994         * callproc.c (init_callproc):
7995         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
7996         not just COMSPEC. (more correct and closer to FSF.) Don't
7997         force a value for SHELL into the environment. (Comments added
7998         to explain why not.)
7999         
8000         * nt.c (init_user_info):
8001         Don't shove a fabricated SHELL into the environment.  See above.
8002
8003 2001-06-01  Ben Wing  <ben@xemacs.org>
8004
8005         * Makefile.in.in (ldflags):
8006         eliminate that pesky "defaulting to 00401000" warning.
8007         * nt.h:
8008         eliminate warnings.
8009
8010 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8011
8012         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8013         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8014
8015 2001-04-24  Jerry James <james@xemacs.org>
8016
8017         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8018         correct order.
8019
8020 2001-06-01  Ben Wing  <ben@xemacs.org>
8021
8022         * event-msw.c (debug_mswin_messages):
8023         conditionalize the messages that were causing compile errors.
8024         (if only macros could generate #ifdef statements ...)
8025
8026 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8027
8028         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8029
8030 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8031
8032         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8033
8034 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8035
8036         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8037         * process-unix.c (unix_canonicalize_host_name):
8038         sysdep.c (init_system_name):
8039         Use it to conditionally support IPv6 canonicalization.
8040
8041 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8042
8043         * event-msw.c:
8044         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8045
8046 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8047
8048         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8049         attempt is made to scroll when no scroll bar is available.
8050
8051 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8052
8053         * input-method-motif.c (XIM_delete_frame): New callback.
8054         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8055         got deleted from 21.4.3.)
8056
8057 2001-06-01  Ben Wing  <ben@xemacs.org>
8058
8059         * nt.c (mswindows_utime):
8060         * nt.c (close_file_data):
8061         fix off-by-one-indirection error.
8062
8063 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8064
8065         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8066         because set_file_times() now takes Lisp_Object path, instead of
8067         char*.
8068         * nt.c: Include buffer.h.
8069         * nt.c (convert_from_time_t): New.
8070         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8071         not set mtime correctly.
8072         * nt.h: Declare mswindows_utime().
8073         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8074         path, instead of char*.
8075         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8076
8077 2001-05-30  Ben Wing  <ben@xemacs.org>
8078
8079         For 21.4:
8080
8081         (Stephen, just take all event-msw.c patches.  This includes
8082         the "iconify" fix below.)
8083
8084         * event-msw.c:
8085         * event-msw.c (mswindows_dequeue_dispatch_event):
8086         * event-msw.c (assert):
8087         * event-msw.c (emacs_mswindows_quit_p):
8088         * event-msw.c (debug_mswin_messages):
8089         * event-msw.c (debug_output_mswin_message):
8090         * event-msw.c (vars_of_event_mswindows):
8091         Fix yet more problems with C-g handling.
8092         Implement debug-mswindows-events.
8093         
8094 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8095
8096         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8097         
8098 2001-05-23  Ben Wing  <ben@xemacs.org>
8099
8100         * event-msw.c (winsock_writer):
8101         * event-msw.c (winsock_closer):
8102         prior kludgy code was clobbering the buffer, thinking it was
8103         "unused" space to store an unneeded return value; instead, use
8104         the variable we've already got staring us in the face.
8105
8106 2001-05-17  Andy Piper  <andy@xemacs.org>
8107
8108         * sysfile.h: don't assume that file attributes are boolean
8109
8110 2001-05-23  Ben Wing  <ben@xemacs.org>
8111
8112         * device-msw.c (msprinter_init_device):
8113         signal an error rather than crash with an unavailable network
8114         printer (from Mike Alexander).
8115         
8116         * event-msw.c:
8117         * event-msw.c (struct winsock_stream):
8118         * event-msw.c (winsock_writer):
8119         * event-msw.c (winsock_closer):
8120         * event-msw.c (make_winsock_stream_1):
8121         cleanup headers.  fix (hopefully) an error with data corruption
8122         when sending to a network connection.
8123
8124         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8125         to handle the ~user prefix by (a) always assuming we're referencing
8126         ourselves and not even verifying the user -- hence any file with
8127         a tilde as its first char is invalid! (b) if there wasn't a slash
8128         following the filename, the pointer was set *past* the end of
8129         file and we started reading from uninitialized memory.  Now we
8130         simply treat these as files, always.
8131
8132         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8133         
8134 2001-05-19  Ben Wing  <ben@xemacs.org>
8135
8136         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8137
8138         * process-nt.c:
8139         * process-nt.c (vars_of_process_nt):
8140         remove unused mswindows-quote-process-args.  rec for 21.4.
8141         
8142 2001-05-12  Ben Wing  <ben@xemacs.org>
8143
8144         * event-msw.c (mswindows_dde_callback):
8145         * event-msw.c (mswindows_wnd_proc):
8146         eliminate cygwin warnings.
8147
8148 2001-05-06  Ben Wing  <ben@xemacs.org>
8149
8150         * console-msw.h:
8151         * device-msw.c:
8152         * device-msw.c (print_dialog_worker):
8153         * device-msw.c (mswindows_handle_print_dialog_box):
8154         * device-msw.c (syms_of_device_mswindows):
8155         * dialog-msw.c (mswindows_make_dialog_box_internal):
8156         * general-slots.h:
8157         implement printing the selection when it's selected.
8158
8159 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8160
8161         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8162
8163 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8164
8165         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8166         EMACS_INT is signed.
8167
8168 2001-04-15  Michael Lausch  <mla@1012surf.net>
8169
8170         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8171         gtk_widget_request_size() to give scrollbar >0 width for
8172         GTK >1.2.8.
8173
8174 2001-05-30  William M. Perry  <wmperry@gnu.org>
8175
8176         * event-gtk.c: Check for buttons as modifier keys.
8177
8178 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8179
8180         * s\mingw32.h:
8181         Properly find MinGW's <process.h> inside Cygwin's restructured
8182         include directories.  Don't try to include <cygwin/version.h>
8183         since we are dropping support for MinGW in versions of Cygwin
8184         earlier than b21.
8185         * nt.c:
8186         Drop support for MinGW in versions of Cygwin before b21.
8187         * sysdep.c:
8188         Properly find MinGW's <process.h> inside Cygwin's restructured
8189         include directories.
8190         * syswindows.h:
8191         Drop support for MinGW in versions of Cygwin before b21.
8192         * unexcw.c:
8193         Even though a.out.h is no longer detected by configure, allow
8194         MinGW to use it until we figure out how to do the job with Win32.
8195
8196 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8197
8198         * syntax.c (find_start_of_comment):
8199         Fix `unbalanced parentheses' bug when dealing with mixed comment
8200         styles in c++/java/etc. mode
8201
8202 2001-05-29  Mike Alexander  <mta@arbortext.com>
8203
8204         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8205         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8206
8207 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8208
8209         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8210
8211 2001-03-31  Mike Sperber <mike@xemacs.org>
8212
8213         * search.c (Freplace_match): Support FSF-style specification of
8214         match subexpression when applied to a buffer.
8215
8216 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8217
8218         * event-stream.c (is_scrollbar_event): add missing semicolon
8219
8220 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8221
8222         * Makefile.in.in: Use TAR macro instead of hardcoding
8223           tar.  Allows use of GNU tar instead of system tar
8224
8225 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8226
8227         * event-stream.c (is_scrollbar_event): add missing semicolon
8228
8229 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8230
8231         * XEmacs 21.4.3 "Academic Rigor" is released.
8232
8233 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8234
8235         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8236
8237 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8238
8239         * buffer.c (Vcase_fold_search): Remove obsolete
8240           comment about non ASCII case-fold-search.  This
8241           bug has been fixed by case-table changes.
8242
8243 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8244
8245         * event-msw.c: Restore include of events-mod.h.
8246
8247 2001-04-22   zhaoway  <zw@debian.org>
8248
8249         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8250         !HAVE_SCROLLBARS.
8251
8252 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8253
8254         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8255
8256 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8257
8258         * mule-charset.c (Fmake_charset): Add missing else.
8259
8260 2001-04-23  Ben Wing  <ben@xemacs.org>
8261
8262         * event-msw.c (FAKE_MOD_QUIT):
8263         * event-msw.c (mswindows_dequeue_dispatch_event):
8264         * event-msw.c (mswindows_wnd_proc):
8265         * event-msw.c (emacs_mswindows_quit_p):
8266         Get critical quit working.
8267
8268 2001-05-05  Ben Wing  <ben@xemacs.org>
8269
8270         * console-msw.h:
8271         * device-msw.c:
8272         * device-msw.c (mswindows_get_default_margin):
8273         * frame-msw.c (mswindows_size_frame_internal):
8274         * frame-msw.c (msprinter_init_frame_1):
8275         * frame-msw.c (vars_of_frame_mswindows):
8276         Change top/bottom margin defaults to 0.5 inches.
8277
8278 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8279
8280         Fix link error with gcc 3.0 on Linux.
8281         * terminfo.c (UP): Remove.
8282         * terminfo.c (BC): Remove.
8283         * terminfo.c (PC): Remove.
8284         They weren't used, and in any case, these symbols should be
8285         defined in the *library*.
8286
8287 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8288
8289         * s/aix4.h: Fix crash with xlc -O3.
8290         Improve comment explaining how -O3 works.
8291
8292 2001-04-15  Ben Wing  <ben@xemacs.org>
8293
8294         * event-stream.c:
8295         * event-stream.c (Fnext_event):
8296         * event-stream.c (is_scrollbar_event):
8297         * event-stream.c (execute_command_event):
8298         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8299         crash' problem.  His fix introduces other problems.  We filter
8300         out scrollbar events specifically, making them somewhat invisible
8301         to command-building, and not appearing in `this-command-keys'.
8302         More work is still needed (see comments in event-stream.c), but
8303         this fixes all the major problems.
8304
8305 2001-04-20  Ben Wing  <ben@xemacs.org>
8306
8307         * .cvsignore: Added stuff for Windows.
8308
8309 2001-04-28  Ben Wing  <ben@xemacs.org>
8310
8311         * buffer.c (Ferase_buffer):
8312         * editfns.c (buffer_insert1):
8313         * editfns.c (Finsert_before_markers):
8314         * editfns.c (Finsert_string):
8315         * editfns.c (Finsert_char):
8316         * editfns.c (Fdelete_region):
8317         * editfns.c (Fwiden):
8318         * editfns.c (Fnarrow_to_region):
8319         remove bogus lines setting zmacs_region_stays to 0.
8320         
8321 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8322
8323         * process-unix.c (unix_open_network_stream): If connect() fails
8324         invalidate file descriptor after closing it.
8325
8326 2001-03-08  Mike Alexander  <mta@arbortext.com>
8327
8328         * event-msw.c (mswindows_need_event_in_modal_loop):
8329         Don't dispatch a message if we didn't get one.
8330         (mswindows_need_event):
8331         Terminate the correct process when one exits instead of the first
8332         one on Vprocess_list and look for process termination when in
8333         mswindows_protect_modal_loop.
8334
8335 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8336
8337         * XEmacs 21.4.1 "Copyleft" is released.
8338
8339 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8340
8341         * input-method-motif.c (XIM_delete_frame): New callback.
8342         (XIM_init_frame): Register it.
8343
8344 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8345
8346         * XEmacs 21.4.0 "Solid Vapor" is released.
8347
8348 2001-04-15  Ben Wing  <ben@xemacs.org>
8349
8350         * cmdloop.c (call_command_loop):
8351         Fix braino in bit-rotting code.
8352         
8353 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8354
8355         * extents.c (Fset_extent_endpoints): Force creation of extent info
8356         in buffer_or_string.
8357
8358         * extents.c (process_extents_for_insertion_mapper): Correctly
8359         check for open-open zero-length extents.
8360
8361 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8362
8363         * lisp.h: New typedefs Memory_count, Element_count.
8364         * regex.c:
8365         * regex.h:
8366         Sign-compare warning elimination: several unsigned -> signed.
8367         Based on work by Ben Wing <ben@xemacs.org>.
8368
8369 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8370
8371         * XEmacs 21.2.47 "Zephir" is released.
8372
8373 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8374
8375         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8376
8377 2001-04-03  Mike Sperber <mike@xemacs.org>
8378
8379         * search.c: Revert previous patch due because of release.
8380
8381 2001-03-30  Ben Wing  <ben@xemacs.org>
8382
8383         * s\cygwin32.h:
8384         Add missing killpg prototype.
8385
8386         * elhash.c:
8387         Add a comment about fixing problems when a new entry is added
8388         while mapping.
8389
8390         * frame-msw.c (mswindows_init_frame_1):
8391         Fix compile warnings.
8392
8393         * menubar.c (vars_of_menubar):
8394         Provide `menu-accelerator-support' to indicate that we properly
8395         support %_ in menu specifications, so that package code can
8396         conditionalize on this (and remove %_ from menu specifications
8397         on older versions).
8398
8399         * event-msw.c:
8400         * scrollbar-msw.c:
8401         * scrollbar-msw.c (can_scroll):
8402         * scrollbar-msw.h:
8403         Fix handling of mouse wheel under Windows to follow standards --
8404         now scrolls window under pointer, not selected window.
8405
8406 2001-03-31  Mike Sperber <mike@xemacs.org>
8407
8408         * search.c (Freplace_match): Support FSF-style specification of
8409         match subexpression when applied to a buffer.
8410
8411 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8412
8413         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8414         function to modify KEYMAP, so map over a copy of the hash table.
8415
8416 2001-03-21  Martin Buchholz <martin@xemacs.org>
8417
8418         * XEmacs 21.2.46 "Urania" is released.
8419
8420 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8421
8422         * realpath.c (xrealpath): Make file-truename work with symlinks to
8423         /cygdrive paths on cygwin. Always lowercase drive-letters on
8424         native windows.
8425         (cygwin_readlink): Don't try to find canonical filename unless
8426         file exists.
8427
8428 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8429
8430         * ChangeLog: Log GTK merge.
8431
8432         * dumper.c:
8433         * select-x.c:
8434         * specifier.c:
8435         * symeval.h:
8436         Revert gratuitous whitespace changes from GTK merge.
8437
8438         * emacs.c: Document end of complex #ifdef @ l. 1495.
8439
8440
8441 2001-03-12  Andy Piper  <andy@xemacs.org>
8442
8443         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8444         have to do likewise.
8445
8446 2001-03-12  Andy Piper  <andy@xemacs.org>
8447
8448         * sysdep.c: we only support mingw now.
8449
8450 2001-03-09  Andy Piper  <andy@xemacs.org>
8451
8452         * unexcw.c (copy_executable_and_dump_data_section): making approx
8453         overrun a warning only.
8454
8455 2001-03-10  William M. Perry  <wmperry@aventail.com>
8456
8457         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8458         satisfy Stephen's identical-after-cpp plea.
8459
8460 2001-03-02  Ben Wing  <ben@xemacs.org>
8461
8462         * cmds.c:
8463         * cmds.c (Fforward_char):
8464         * syntax.c:
8465         * window.c:
8466
8467         Augment documentation of the most common motion commands to make
8468         note of the shifted-motion support.
8469         
8470 2001-03-02  Ben Wing  <ben@xemacs.org>
8471
8472         * nt.c (mswindows_fstat):
8473         * nt.c (mswindows_stat):
8474         * search.c (boyer_moore):
8475         Fix compile warnings under Windows.
8476         
8477         * sysdep.c (sys_readdir):
8478         Fix buggy filename-conversion code under Mule.
8479
8480 2001-03-09  William M. Perry  <wmperry@aventail.com>
8481
8482         * Makefile.in.in:
8483         * config.h.in:
8484         * console.c:
8485         * console.h:
8486         * device.c:
8487         * device.h:
8488         * dragdrop.c:
8489         * emacs.c:
8490         * event-stream.c:
8491         * events.c:
8492         * events.h:
8493         * faces.c:
8494         * frame.h:
8495         * general-slots.h:
8496         * glyphs.c:
8497         * gutter.c:
8498         * inline.c:
8499         * lisp.h:
8500         * lrecord.h:
8501         * make-src-depend:
8502         * redisplay-output.c:
8503         * redisplay.c:
8504         * symsinit.h:
8505         * sysfile.h:
8506         * toolbar.c:
8507         * window.c:
8508         The Great GTK Merge.
8509
8510         * ChangeLog.GTK:
8511         * console-gtk.c:
8512         * console-gtk.h:
8513         * device-gtk.c:
8514         * emacs-marshals.c:
8515         * emacs-widget-accessors.c:
8516         * event-gtk.c:
8517         * frame-gtk.c:
8518         * gccache-gtk.c:
8519         * gccache-gtk.h:
8520         * glade.c:
8521         * glyphs-gtk.c:
8522         * glyphs-gtk.h:
8523         * gtk-glue.c:
8524         * gtk-xemacs.c:
8525         * gtk-xemacs.h:
8526         * gui-gtk.c:
8527         * gui-gtk.h:
8528         * menubar-gtk.c:
8529         * native-gtk-toolbar.c:
8530         * objects-gtk.c:
8531         * objects-gtk.h:
8532         * redisplay-gtk.c:
8533         * scrollbar-gtk.c:
8534         * scrollbar-gtk.h:
8535         * select-gtk.c:
8536         * toolbar-gtk.c:
8537         * ui-byhand.c:
8538         * ui-gtk.c:
8539         * ui-gtk.h:
8540         The Great GTK Merge: new files.
8541
8542 2001-02-26  Ben Wing  <ben@xemacs.org>
8543
8544         Reapplied Lstream change.
8545
8546 2001-02-26  Ben Wing  <ben@xemacs.org>
8547
8548         Undid the last change, since it is more controversial than I
8549         thought.  It should be back in at some point soon.
8550         
8551 2001-02-25  Ben Wing  <ben@xemacs.org>
8552
8553         * buffer.c:
8554         * callproc.c (Fold_call_process_internal):
8555         * event-msw.c (ntpipe_slurp_reader):
8556         * event-msw.c (ntpipe_shove_writer):
8557         * event-msw.c (winsock_reader):
8558         * event-msw.c (winsock_writer):
8559         * file-coding.c:
8560         * file-coding.c (detect_eol_type):
8561         * file-coding.c (detect_coding_type):
8562         * file-coding.c (determine_real_coding_system):
8563         * file-coding.c (Fdetect_coding_region):
8564         * file-coding.c (decoding_reader):
8565         * file-coding.c (decoding_writer):
8566         * file-coding.c (mule_decode):
8567         * file-coding.c (Fdecode_coding_region):
8568         * file-coding.c (encoding_reader):
8569         * file-coding.c (encoding_writer):
8570         * file-coding.c (mule_encode):
8571         * file-coding.c (Fencode_coding_region):
8572         * file-coding.c (detect_coding_sjis):
8573         * file-coding.c (decode_coding_sjis):
8574         * file-coding.c (encode_coding_sjis):
8575         * file-coding.c (detect_coding_big5):
8576         * file-coding.c (decode_coding_big5):
8577         * file-coding.c (encode_coding_big5):
8578         * file-coding.c (detect_coding_ucs4):
8579         * file-coding.c (decode_coding_ucs4):
8580         * file-coding.c (encode_coding_ucs4):
8581         * file-coding.c (detect_coding_utf8):
8582         * file-coding.c (decode_coding_utf8):
8583         * file-coding.c (encode_coding_utf8):
8584         * file-coding.c (detect_coding_iso2022):
8585         * file-coding.c (decode_coding_iso2022):
8586         * file-coding.c (encode_coding_iso2022):
8587         * file-coding.c (decode_coding_no_conversion):
8588         * file-coding.c (encode_coding_no_conversion):
8589         * glyphs-x.c (write_lisp_string_to_temp_file):
8590         * gpmevent.c (tty_get_foreign_selection):
8591         * lisp.h:
8592         * lstream.c:
8593         * lstream.c (Lstream_flush_out):
8594         * lstream.c (Lstream_adding):
8595         * lstream.c (Lstream_write_1):
8596         * lstream.c (Lstream_write):
8597         * lstream.c (Lstream_raw_read):
8598         * lstream.c (Lstream_read_more):
8599         * lstream.c (Lstream_read):
8600         * lstream.c (Lstream_unread):
8601         * lstream.c (Lstream_fputc):
8602         * lstream.c (stdio_reader):
8603         * lstream.c (stdio_writer):
8604         * lstream.c (filedesc_reader):
8605         * lstream.c (filedesc_writer):
8606         * lstream.c (lisp_string_reader):
8607         * lstream.c (struct fixed_buffer_stream):
8608         * lstream.c (make_fixed_buffer_input_stream):
8609         * lstream.c (make_fixed_buffer_output_stream):
8610         * lstream.c (fixed_buffer_reader):
8611         * lstream.c (fixed_buffer_writer):
8612         * lstream.c (struct resizing_buffer_stream):
8613         * lstream.c (resizing_buffer_writer):
8614         * lstream.c (dynarr_writer):
8615         * lstream.c (lisp_buffer_reader):
8616         * lstream.c (lisp_buffer_writer):
8617         * lstream.h:
8618         * lstream.h (lstream_implementation):
8619         * lstream.h (struct lstream):
8620         * md5.c (Fmd5):
8621         * process-nt.c (nt_send_process):
8622         * process-unix.c (unix_send_process):
8623         
8624         Correct Lstream lossage due to mixing of signed and unsigned
8625         quantities.  All Lstream uses of size_t and ssize_t are now a
8626         single signed data type Lstream_data_count.  This fixes problems
8627         under Windows with sending large quantities of data to a process,
8628         and may well fix other subtle bugs.
8629
8630 2001-02-23  Martin Buchholz <martin@xemacs.org>
8631
8632         * XEmacs 21.2.45 "Thelxepeia" is released.
8633
8634 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8635
8636         * lisp-union.h (XSETINT): 
8637         (XSETCHAR):
8638         (XSETOBJ): 
8639         Reverse previous change of 2001-02-06.
8640
8641 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8642
8643         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8644         buffers.
8645         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8646         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8647         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8648         * regex.c (POS_AS_IN_BUFFER): removed
8649         * regex.c (re_search_2):
8650         * regex.c (re_match_2):
8651         Don't use an offset of 1 when calculating buffer positions, since
8652         `BI_BUF_BEGV' does it already.
8653
8654 2001-02-18  Wim Dumon  <wim@easics.be>
8655
8656         * insdel.c (prepare_to_modify_buffer): Also check for
8657         supersession when clash-detection is enabled. 
8658
8659 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8660
8661         * regex.c (re_match_2_internal):
8662         Convert temp characters from 'const unsigned char' to 're_char'.
8663         Fix crashing bug with extended characters under mule.
8664         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8665         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8666         font-lock, pdump, and new syntax-table code.
8667         * syntax.c (find_start_of_comment):
8668         (find_end_of_comment):
8669         (forward-comment):
8670         Fix crashing bugs involving moving beyond end of buffer.
8671         * syntax.c (find_start_of_comment):
8672         Fixed logic to allow proper detection of cases where the same
8673         character is used to end both a two-char comment start and a
8674         two-char comment end sequence. Fixes `(forward-comment -1)'.
8675         * syntax.c (find_start_of_comment):
8676         Return position just past last comment-end character for all cases
8677         (previously was only done for two-char comment-end sequences).
8678         * syntax.c (forward-comment):
8679         Take value returned from `find_end_of_comment', rather than
8680         incrementing it.
8681         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8682         Properly deal with BUFFERP (syntax_cache.object)
8683
8684 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8685
8686         * alloc.c (Fgarbage_collect): 
8687         * alloc.c (make_bit_vector_from_byte_vector):
8688         -Wsign-compare-correctness.
8689
8690 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8691
8692         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8693         (XSETCHAR): Likewise.
8694         (XSETOBJ): Likewise.
8695
8696 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8697
8698         * mule-canna.c (canna-func-delete_previous): 
8699         Rename to canna-func-delete-previous.
8700
8701 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8702
8703         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8704
8705 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8706
8707         * font-lock.c (find_context): Fix C++ compile errors introduced by
8708         recent patch
8709
8710 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8711
8712         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8713         pragma, but earlier ones barf on the same pragma.
8714
8715 2001-02-06  Mike Sperber <mike@xemacs.org>
8716
8717         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8718         `configure-mule-lisp-directory'.
8719
8720 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8721
8722         Make sure dump-id.c is compiled in the same way as other .c's.
8723         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8724         * dump-id.h: Remove.
8725         * emacs.c: Move dump-id.h into dumper.h.
8726         * dumper.h: Move dump-id.h into dumper.h.
8727         * Makefile.in.in:
8728         Use standard .c.o rule for building dump-id.o.
8729         Remove preprocessor flags from link command.
8730         Add dump-id.o to ${otherobjs} if PDUMP.
8731
8732 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8733
8734         Port FSF 20.7 syntax table improvements.
8735         * syntax.c.
8736         * syntax.h.
8737
8738         Fixups for new syntax table stuff.
8739         * dired.c: Include syntax.c.
8740         (Fdirectory_files): Initialize regex_match_object and
8741         regex_emacs_buffer.
8742         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8743         and Fget_char_property.
8744
8745         Use ported FSF 20.7 syntax table improvements.
8746         * font-lock.c.
8747         * regex.c.
8748         * search.c.
8749         
8750 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8751
8752         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8753         Unixware's enum boolean from sys/types.h.
8754
8755 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8756
8757         Fix support for building with latest Purify.
8758         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8759         (PURIFY_FLAGS): Likewise.
8760
8761 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8762
8763         * fileio.c (lisp_string_set_file_times): New.
8764         * fileio.c (Fcopy_file): Use it.
8765         Fixes bug:
8766         (copy-file filename non-ascii-filename t t)
8767         ==> No such file or directory, non-ascii-filename
8768
8769 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8770
8771         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8772         USHRT_MAX seems clearer than ~0 anyways.
8773
8774 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8775
8776         dumper improvements.  Inspired by Olivier.
8777         * dumper.c (pdump_max_align): New.
8778         * dumper.c (pdump_add_entry): Use pdump_max_align.
8779         * dumper.c (pdump_get_entry_list): Likewise.
8780         * dumper.c (pdump_scan_by_alignment): Likewise.
8781         Don't iterate through unnecessary alignments.
8782         * dumper.c (pdump_file_get): No need to align result of malloc().
8783         * dumper.c (pdump_mallocadr): Remove.  
8784         The result of malloc() is guaranteed to be maximally aligned.
8785         * dumper.c: s/elmt/elt/g;
8786         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8787         * dumper.c (pdump_alert_undump_object): Likewise.
8788         * dumper.c (pdump_align_table): 
8789         Don't support alignments > 64.
8790         Store ALIGNOF's, not shift counts, in table.
8791
8792 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8793
8794         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8795         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8796         * systime.h: Use HAVE_UTIME.
8797         * sysdep.c (struct utimbuf): Remove.
8798         * sysdep.c (set_file_times): Prefer utime() to utimes().
8799         * config.h.in (HAVE_UTIME): New.
8800         * config.h.in (HAVE_UTIME_H): Remove.
8801         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8802
8803 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8804
8805         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8806
8807 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8808
8809         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8810
8811 2001-02-08  Martin Buchholz <martin@xemacs.org>
8812
8813         * XEmacs 21.2.44 "Thalia" is released.
8814
8815 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8816
8817         Fixes crashes in kill-emacs on some systems.
8818         * process-unix.c (unix_kill_child_process):
8819         It's OK for kill() to fail with ESRCH.
8820
8821 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8822
8823         Contortions to make .gdbinit tricks work on most systems.
8824         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8825         * alloc.c (dbg_valmask): Make non-const.
8826         * alloc.c (dbg_typemask): Make non-const.
8827         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8828         * alloc.c (dbg_valbits): Make non-const.
8829         * alloc.c (dbg_gctypebits): Make non-const.
8830         * .gdbinit (decode_object): Make it work with AIX cc.
8831
8832 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8833
8834         * elhash.c (make_general_lisp_hash_table):
8835         Use simpler and more efficient calloc to clear entries.
8836
8837 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8838
8839         * window.c (window_scroll): Work around an AIX C compiler bug.
8840         Fixes 'scroll-up' does nothing problem with xlC.
8841
8842 2001-02-05  Martin Buchholz  <martin@xemacs.org>
8843
8844         * .gdbinit: Remove obsolete comment.
8845
8846 2001-01-31  Mike Alexander  <mta@arbortext.com>
8847
8848         * select.c (Fown_selection_internal): Set owned_p for device
8849         method correctly.
8850
8851 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8852
8853         Port to g++ 2.97.
8854         "not" cannot be used as a macro name as it is an operator in C++
8855         * config.h.in: Stop #defining `not'.
8856         * chartab.c (check_category_char): not ==> not_p
8857         * chartab.h: Likewise.
8858         * regex.c (re_match_2_internal): Likewise.
8859
8860 2001-02-02  Martin Buchholz  <martin@xemacs.org>
8861
8862         * lisp-disunion.h: Fix up comments.
8863
8864 2001-01-31  Martin Buchholz  <martin@xemacs.org>
8865
8866         * keymap.c (define_key_check_and_coerce_keysym):
8867         (syms_of_keymap):
8868         Support mouse-6 and mouse-7 bindings in the obvious way.
8869
8870 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8871
8872         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8873
8874 2001-01-30  Martin Buchholz  <martin@xemacs.org>
8875
8876         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8877         Previous patch missed DEFVAR_INT_MAGIC.
8878         Make sure future DEFVAR_foo use correct types.
8879         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8880         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8881         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8882         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8883         * (DEFVAR_INT): Likewise.
8884         * redisplay.c (vertical_clip): Should be of type Fixnum.
8885         * redisplay.c (horizontal_clip): Likewise.
8886         * lisp.h (dump_add_opaque_int): New.
8887         (dump_add_opaque_fixnum): New.
8888
8889 2001-01-29  Andy Piper  <andy@xemacs.org>
8890
8891         * glyphs-widget.c (check_valid_int_or_function): allow symbols
8892         since they can be eval'ed
8893
8894 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8895
8896         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8897         Oops, XEmacs redefines `class'.  Use `typename' instead.
8898
8899 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8900
8901         * dumper.c: Fix C++ compile errors.
8902
8903 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8904
8905         * tparam.c: Use correct prototypes.
8906
8907 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8908
8909         * sysproc.h: #include util.h for NetBSD's openpty.
8910
8911 2001-01-27  Martin Buchholz  <martin@xemacs.org>
8912
8913         More 64-bit correctness.
8914         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8915         Use a typedef `fixnum' for the type used for DEFVAR_INT.
8916         Fix up comments.
8917         This finally finishes the 64-bit SGI port.
8918         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8919         * symbols.c: Fix up comments and type casts.
8920         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8921         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8922         * symeval.h (Fixnum): New type.
8923         * symeval.h (symbol_value_type): Fix up comment.
8924
8925         * commands.h:
8926         * nt.c:
8927         * emacs.c:
8928         * data.c:
8929         * redisplay.c:
8930         * abbrev.c:
8931         * dired-msw.c:
8932         * event-Xt.c:
8933         * eldap.c:
8934         * window.c:
8935         * sound.c:
8936         * event-stream.c:
8937         * eval.c:
8938         * buffer.c:
8939         * mule-canna.c: A million DEFVAR_INTs here...
8940         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8941         * extents.c:
8942         * cmdloop.c:
8943         * lisp.h:
8944         * select-x.c:
8945         * console-x.h:
8946         * event-msw.c:
8947         * mule-wnnfns.c:
8948         * hpplay.c:
8949         * ralloc.c:
8950         * alloc.c:
8951         * keymap.c:
8952         * profile.c:
8953         s/int/Fixnum/g in DEFVAR_INT declarations.
8954
8955 2001-01-26  Martin Buchholz  <martin@xemacs.org>
8956
8957         Port pdump to SGI alignment-sensitive environment.
8958         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
8959         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
8960         properly aligned.
8961         Define and use aligned reading and writing macros.
8962         Use buffered stdio instead of posix i/o for faster dumping.
8963         Eliminate kludgy 256 byte space for header.
8964         Read and write from dump file using structs for alignment safety.
8965         * dumper.c (pdump_align_stream): New.
8966         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
8967         * dumper.c (PDUMP_READ_ALIGNED): New.
8968         * dumper.c (PDUMP_WRITE_ALIGNED): New.
8969         * dumper.c (pdump_static_Lisp_Object): New struct.
8970         * dumper.c (pdump_static_pointer): New struct.
8971         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
8972         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
8973         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
8974         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
8975
8976         * dumper.c (pdump_backtrace):
8977         * dumper.c (pdump_get_indirect_count):
8978         * dumper.c (pdump_register_object):
8979         * dumper.c (pdump_register_struct):
8980         * dumper.c (pdump_reloc_one):
8981         * dumper.c (pdump_scan_by_alignment):
8982         * dumper.c (pdump_dump_from_root_struct_ptrs):
8983         * dumper.c (pdump_dump_opaques):
8984         * dumper.c (pdump_dump_rtables):
8985         * dumper.c (pdump_dump_from_root_objects):
8986         * dumper.c (pdump):
8987         * dumper.c (pdump_load_finish):
8988         Use aligned reading and writing.
8989
8990         * dumper.c (pdump_free): Make static.
8991         * dumper.c (pdump_hFile): Likewise.
8992         * dumper.c (pdump_hMap): Likewise.
8993
8994 2001-01-26  Martin Buchholz <martin@xemacs.org>
8995
8996         * XEmacs 21.2.43 "Terspichore" is released.
8997
8998 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8999
9000         Type fiddling for window_config.saved_windows_count
9001         * window.c (struct window_config): 
9002         Make saved_windows_count member unsigned.
9003         * window.c (sizeof_window_config_for_n_windows): 
9004         Make parameter unsigned.
9005         * window.c (mark_window_config):
9006         * window.c (window_config_equal):
9007         * window.c (free_window_configuration):
9008         * window.c (Fset_window_configuration):
9009         * window.c (count_windows):
9010         * window.c (Fcurrent_window_configuration):
9011         * window.c (reinit_vars_of_window):
9012         Update all callers and users.
9013
9014 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9015
9016         Alignment correctness for flexible arrays.
9017         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9018         Make alignment-correct. Add interesting comments.
9019         * alloc.c (size_vector):
9020         * alloc.c (make_vector_internal):
9021         * alloc.c (make_bit_vector_internal):
9022         * alloc.c (sweep_bit_vectors_1):
9023         * fns.c (size_bit_vector):
9024         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9025         * window.c (sizeof_window_config_for_n_windows): 
9026         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9027
9028 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9029
9030         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9031
9032 2001-01-23  Andy Piper  <andy@xemacs.org>
9033
9034         * select.c (Fown_selection_internal): pass owned_p
9035
9036         * select-msw.c (mswindows_own_selection): New Signature.
9037
9038         * console.h (struct console_methods): add owned_p to
9039         _own_selection.
9040
9041         * select-x.c (x_own_selection): pass owned_p
9042         (hack_motif_clipboard_selection): use owned_p
9043         (vars_of_select_x): new variable -
9044         x_selection_strict_motif_ownership.
9045
9046 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9047
9048         * specifier.h (specifier_data_offset): Remove pointless parens.
9049         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9050
9051 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9052
9053         Make Lisp_Object sizeof methods be alignment-correct.
9054         pdump must restore objects to the same alignment as the C compiler
9055         assumes.  It really matters on SGIs.
9056         * lstream.c (aligned_sizeof_lstream): New.
9057         (sizeof_lstream): Use aligned_sizeof_lstream.
9058         (Lstream_new): Likewise.
9059         * opaque.c (aligned_sizeof_opaque): New.
9060         (sizeof_opaque): Use aligned_sizeof_opaque.
9061         (make_opaque): Likewise.
9062         * specifier.c (aligned_sizeof_specifier): New.
9063         (sizeof_specifier): Use aligned_sizeof_specifier.
9064         (make_specifier_internal): Likewise.
9065
9066 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9067
9068         * lstream.h (struct lstream): Use max_align_t for trailing data.
9069         * specifier.h (struct Lisp_Specifier): Likewise.
9070
9071 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9072
9073         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9074         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9075         (CCL_SUSPEND): Likewise.
9076         (CCL_INVALID_CMD): Likewise.
9077         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9078         (ccl_driver): Likewise.
9079         (CCL_WRITE_CHAR): Macro hygiene.
9080         (CCL_WRITE_STRING): Macro hygiene.
9081
9082 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9083
9084         Port "portable" dumper to SunOS 4 and HP-UX.
9085         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9086         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9087         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9088
9089 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9090
9091         * lisp.h (ALIGNOF): A better definition for C++.
9092
9093 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9094
9095         Macro hygiene.
9096         Fix printf warnings: int format, long int arg.
9097         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9098         (PUSH_FAILURE_POINT): Use correct printf formats.
9099         (POP_FAILURE_POINT): Use correct printf formats.  
9100         Use do {...} while (0)
9101
9102 2001-01-20  Martin Buchholz <martin@xemacs.org>
9103
9104         * XEmacs 21.2.42 "Poseidon" is released.
9105
9106 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9107
9108         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9109
9110 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9111
9112         De-kludgify FIXED_TYPE free list frobbing.
9113         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9114         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9115         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9116         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9117         * alloc.c (LRECORD_FREE_P): New.
9118         * alloc.c (MARK_LRECORD_AS_FREE): New.
9119         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9120         * alloc.c (STRUCT_FREE_P): Deleted.
9121         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9122         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9123         * alloc.c (STRING_CHARS_FREE_P): New.
9124         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9125         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9126         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9127         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9128         * alloc.c (resize_string): Use new definitions.
9129         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9130         * alloc.c (verify_string_chars_integrity): Use new definitions.
9131         * alloc.c (compact_string_chars): Use new definitions.
9132         * alloc.c: Update monster comments.
9133         * lrecord.h (lrecord_type): Add some new lrecord types for
9134         alloc.c's use.
9135
9136 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9137
9138         Improve alignment hackery.
9139         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9140         (max_align_t): Moved from opaque.h - general purpose.
9141         (ALIGN_PTR): Use size_t, not long.
9142         * opaque.h (max_align_t): Move to lisp.h.
9143
9144 2001-01-18  Norbert Koch  <nk@LF.net>
9145
9146         * gui.h: Fix and add prototypes to fix build problems.
9147
9148 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9149
9150         temacs is going away, so `dump-temacs' is now a bad name.
9151         * .dbxrc (dump-temacs): Rename to `dmp'.
9152         * .gdbinit (dump-temacs): Rename to `dmp'.
9153
9154 2001-01-17  Andy Piper  <andy@xemacs.org>
9155
9156         * glyphs.c (print_image_instance): comment to make martin happy.
9157
9158         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9159         change.
9160
9161         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9162         activation.
9163         (mswindows_tab_control_redisplay): warning suppression.
9164
9165         * glyphs-widget.c (widget_update): re-write to cope with updated
9166         items.
9167         (widget_instantiate): use new gui_item functions.
9168         (tab_control_update): deleted.
9169         (progress_gauge_update): deleted.
9170         (image_instantiator_progress_guage): take out update reference.
9171         (image_instantiator_tree_view): ditto.
9172         (image_instantiator_tab_control): ditto.
9173
9174         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9175         Right the new way.
9176         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9177         return whether anything was changed.
9178         (update_gui_item_keywords): as it sounds.
9179
9180         * gui.h: declare widget_gui_parse_item_keywords.
9181
9182         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9183         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9184
9185 2001-01-17  Martin Buchholz <martin@xemacs.org>
9186
9187         * XEmacs 21.2.41 "Polyhymnia" is released.
9188
9189 2001-01-16  Didier Verna  <didier@xemacs.org>
9190
9191         * glyphs.c (image_instantiate): don't use fallbacks when
9192         instantiating a face's background pixmap by inheritance.
9193
9194 2001-01-14  Mike Sperber <mike@xemacs.org>
9195
9196         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9197         Conditionalize accordingly.
9198
9199 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9200
9201         * dumper.c (pdump_file_get): Fix a compiler warning.
9202
9203 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9204
9205         Make Purify happy when pdumping.
9206         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9207         iniitalizing all bits of new lisp object memory.
9208         * symbols.c (Fmake_local_variable): Likewise.
9209         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9210         * symbols.c (Fdefvaralias): Likewise.
9211         * mule-charset.c (vars_of_mule_charset): Likewise.
9212
9213 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9214         Add the `-nd' flag when running pre-dump operations under the debugger.
9215         * .dbxrc (run-temacs): Add `-nd'.
9216         * .dbxrc (update-elc): Likewise.
9217         * .dbxrc (dump-temacs): Likewise.
9218         * .gdbinit (run-temacs): Likewise.
9219         * .gdbinit (check-temacs): Likewise.
9220         * .gdbinit (update-elc): Likewise.
9221         * .gdbinit (dump-temacs): Likewise.
9222
9223 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9224
9225         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9226         export OBJECT_MODE=64
9227         configure --pdump --use-union-type=no
9228         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9229         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9230
9231         * miscplay.c (sndcnv8U_2mono):
9232         Avoid two uses of `++' in the same expression.
9233         Suppresses a GCC warning.
9234
9235 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9236
9237         Make sure future compilers don't miscompile alloc.c.
9238         * alloc.c:
9239         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9240         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9241
9242 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9243
9244         * dumper.c: A little post-pdump-rename comment fixup.
9245
9246 2001-01-09  Jerry James  <james@eecs.ku.edu>
9247
9248         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9249
9250 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9251
9252         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9253         script:
9254         #!/bin/sh
9255         replace_symbol () {
9256           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9257         }
9258
9259         replace_symbol pdump_wire_lists pdump_weak_object_chains
9260         replace_symbol pdump_wire_list dump_add_weak_object_chain
9261
9262         replace_symbol pdump_wires pdump_root_objects
9263         replace_symbol pdump_wire dump_add_root_object
9264
9265         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9266         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9267
9268         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9269         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9270         replace_symbol dumpstructinfo pdump_root_struct_ptr
9271         replace_symbol dumpstruct dump_add_root_struct_ptr
9272
9273         replace_symbol dumpopaque dump_add_opaque
9274         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9275         replace_symbol dumpopaqueinfos pdump_opaques
9276         replace_symbol dumpopaqueinfo pdump_opaque
9277
9278         replace_symbol nb_structdump nb_root_struct_ptrs
9279         replace_symbol nb_opaquedump nb_opaques
9280
9281         replace_symbol align_table pdump_align_table
9282         replace_symbol dump_header pdump_header
9283
9284         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9285         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9286
9287
9288 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9289
9290         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9291         optimizing bytecount_to_charcount().
9292
9293 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9294
9295         * config.h.in:
9296         (HAVE_DLFCN_H): Removed.
9297         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9298
9299 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9300
9301         Portable dumper maintainability improvements.
9302         * alloc.c (staticpro):
9303         * alloc.c (staticpro_nodump):
9304         * alloc.c (garbage_collect_1):
9305         * alloc.c (reinit_alloc_once_early):
9306         * alloc.c (init_alloc_once_early):
9307         * alloc.c: Move dumper functions to alloc.c.
9308         * dumper.c (pdump_backtrace):
9309         * dumper.c (pdump_dump_structs):
9310         * dumper.c (pdump_dump_opaques):
9311         * dumper.c (pdump_dump_rtables):
9312         * dumper.c (pdump_dump_wired):
9313         * dumper.c (pdump):
9314         * dumper.c (pdump_load_check):
9315         * dumper.c (pdump_load_finish):
9316         * dumper.c (pdump_file_unmap):
9317         * dumper.c (pdump_file_get):
9318         * dumper.c (pdump_resource_free):
9319         * dumper.c (pdump_resource_get):
9320         * dumper.c (pdump_file_free):
9321         * dumper.c (pdump_file_try):
9322         * dumper.c (pdump_load):
9323         Remove fixed size limits on staticpro(), staticpro_nodump(),
9324         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9325         Remove custom code for dumping lrecord_implementations_table - use
9326         dumpopaque instead.
9327         Remove (most of the) custom code for dumping staticpros - dump it
9328         like any other dynarr.
9329
9330         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9331         * dumper.c: Moved functions from alloc.c.
9332         * alloc.c (dumpstruct): Moved to dumper.c.
9333         * alloc.c (dumpopaque): Likewise.
9334         * alloc.c (pdump_wire): Likewise.
9335         * alloc.c (pdump_wire_list): Likewise.
9336
9337         * lisp.h (Dynarr_sizeof): New.
9338         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9339         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9340         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9341
9342         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9343         * lisp.h (dumpopaque): ditto.
9344         * lisp.h (pdump_wire): ditto.
9345         * lisp.h (pdump_wire_list): ditto.
9346
9347 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9348
9349         * make-src-depend (PrintPatternDeps):
9350         Use `sort' to make output independent of perl version.
9351
9352 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9353
9354         Port to Netbsd 1.5.
9355         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9356         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9357
9358 2001-01-03  Didier Verna  <didier@xemacs.org>
9359
9360         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9361         that `focus_frame' is alive before thinking of calling
9362         `redisplay_redraw_cursor' on it.
9363
9364 2001-01-08  Martin Buchholz <martin@xemacs.org>
9365
9366         * XEmacs 21.2.40 is released.
9367
9368 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9369
9370         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9371
9372 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9373
9374         * alloc.c (dbg_valmask): Make const.
9375         * alloc.c (dbg_typemask): Make const.
9376         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9377         * alloc.c (dbg_valbits): Make const.
9378         * alloc.c (dbg_gctypebits): Make const.
9379
9380 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9381
9382         * redisplay-x.c (x_bevel_area):
9383         redisplay.h (struct rune):
9384         Typo fixes in comments.
9385
9386 2001-01-05  Andy Piper  <andy@xemacs.org>
9387
9388         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9389         adjustment.
9390
9391         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9392
9393 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9394
9395         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9396
9397         * mule-ccl.c (stack_idx_of_map_multiple):
9398         Non const global data must not be initialized!
9399         Found by MIYASHITA Hisashi.
9400
9401 2001-01-02  Andy Piper  <andy@xemacs.org>
9402
9403         * frame.c (change_frame_size): make sure frame size is always
9404         marked as changed.
9405
9406         * glyphs.c (image_instance_layout): minor code reuse.
9407
9408         * window.c (Fcurrent_window_configuration): revert previous
9409         change.
9410
9411 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9412
9413         * glyphs.h:
9414         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9415
9416 2000-12-31  Andy Piper  <andy@xemacs.org>
9417
9418         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9419         when widget gets unmapped.
9420
9421         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9422         function. Make sure widgets losing focus don't just drop it.
9423         (handle_focus_event_1): record the widget with focus.
9424
9425 2000-12-31  Andy Piper  <andy@xemacs.org>
9426
9427         * window.c (allocate_window): use
9428         make_image_instance_cache_hash_table.
9429         (make_dummy_parent): ditto.
9430         (Fset_window_configuration): ditto.
9431
9432         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9433
9434         * glyphs.c (process_image_string_instantiator): use
9435         INSTANTIATOR_TYPE.
9436         (get_image_instantiator_governing_domain): ditto.
9437         (normalize_image_instantiator): ditto.
9438         (instantiate_image_instantiator): ditto.
9439         (make_image_instance_1): ditto.
9440         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9441         (instantiator_eq_equal): new function for use with instance hash
9442         tables.
9443         (instantiator_eq_hash): ditto.
9444         (make_image_instance_cache_hash_table): create a suitable hash
9445         table for storing image instances.
9446
9447         * elhash.h (hash_table_weakness): new internal weakness type
9448         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9449         declare new functions.
9450
9451         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9452         another weakness type for glyphs.
9453         (make_standard_lisp_hash_table): new function split out from
9454         make_general_lisp_hash_table.
9455         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9456         (hash_table_instantiate): ditto.
9457         (Fmake_hash_table): ditto.
9458
9459 2000-12-31  Martin Buchholz <martin@xemacs.org>
9460
9461         * XEmacs 21.2.39 is released.
9462
9463 2000-12-29  Andy Piper  <andy@xemacs.org>
9464
9465         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9466
9467         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9468         the frame has changed so that we pick up geometry changes such as
9469         menubar visibility.
9470
9471 2000-12-28  Andy Piper  <andy@xemacs.org>
9472
9473         * lastfile.c (my_ebss): make a char array so we can pad the
9474         bss. Fixes cygwin unexec.
9475
9476         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9477
9478 2000-12-26  Andy Piper  <andy@xemacs.org>
9479
9480         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9481         comments and try and be more precise about a non-/SIGIO world.
9482         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9483         SIGIO.
9484
9485         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9486         we don't normalize to zero width or height.
9487
9488 2000-12-24  Andy Piper  <andy@xemacs.org>
9489
9490         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9491
9492 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9493
9494         * s/sco5.h: SCO 5 has pty support.
9495
9496 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9497
9498         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9499         input-method-xlib.c contains whole contents of input-method-xfs.c,
9500         so we can use input-method-xlib.c's code for USE_XFONTSET
9501         using #ifdefs.
9502         * input-method-xfs.c: removed.
9503
9504 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9505
9506         * file-coding.h (enum coding_category_type): reorder enumerators to
9507         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9508         (now one greater than largest real coding_category_type enumerator).
9509         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9510         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9511         Fcoding_category_list, Fset_coding_priority_list,
9512         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9513         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9514
9515 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9516
9517         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9518         * redisplay-output.c (redisplay_output_window): Clear top of window
9519         when face is changed.
9520         * redisplay-x.c (x_redraw_exposed_window): Call
9521         redisplay_clear_top_of_window.
9522         * redisplay.h: Publish redisplay_clear_top_of_window.
9523
9524 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9525
9526         * buffer.c (Fkill_buffer): Map over all devices.
9527         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9528         (list_windows): New function.
9529         (list_all_windows): Ditto.
9530         (Freplace_buffer_in_windows): Use them.
9531
9532 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9533
9534         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9535         (Fopen_database): Use `db_create' instead of `db_open'.
9536         (syms_of_database): Initialize Qqueue.
9537
9538 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9539
9540         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9541         buffer_local_face_property.
9542         * buffer.h (struct buffer): New member buffer_local_face_property.
9543         * window.c (Fset_window_buffer):  Mark window's face as changed
9544         when buffer has buffer local face.
9545         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9546         * objects.c (color_after_change): Set buffer_local_face_property
9547         when locale of face specifier is buffer.
9548         * objects.c (font_after_change): Ditto.
9549         * objects.c (face_boolean_after_change): Ditto.
9550         * glyphs.c (image_after_change): Ditto.
9551
9552 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9553
9554         * nt.c (mswindows_fstat): Report file permissions, volume serial
9555         number, etc. Code adapted from FSF Emacs 20.7.
9556
9557 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9558
9559         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9560         of stat when we don't have symbolic links, to make sure
9561         mswindows_stat is called on mswindows.
9562
9563 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9564
9565         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9566
9567 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9568
9569         * doprnt.c (emacs_doprnt_1): More printing fixes.
9570         Make printing of numbers compatible with libc and FSF Emacs.
9571         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9572         Use the system printf to do most of the hard work of formatting,
9573         instead of doprnt_1().
9574         Calculate memory to allocate for format string.
9575         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9576         (doprnt_1): Cleaner code and documentation.
9577
9578 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9579
9580         * Makefile.in.in: Use the loop variable to install headers.
9581
9582 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9583
9584         * window.c (Fsplit_window): Don't invalidate face cache.
9585
9586 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9587
9588         * minibuf.c (Fall_completions): Undo the previous change
9589         which removed checking elements start with space.
9590
9591 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9592
9593         * mule-canna.c: Didier suppression.
9594
9595 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9596
9597         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9598         (warning suppression).  Add English comment translations.
9599
9600 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9601
9602         * unexelfsgi.c (unexec): Better test for mmap failure.
9603
9604 2000-12-05  Martin Buchholz <martin@xemacs.org>
9605
9606         * XEmacs 21.2.38 is released.
9607
9608 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9609
9610         * redisplay.c (bar-cursor): Make a user variable.
9611
9612         * symsinit.h: Add init_postgresql_from_environment.
9613
9614 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9615
9616         * regex.c: Convert to clean C.
9617
9618 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9619
9620         * realpath.c:
9621         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9622         initialization.
9623         (sys_readlink): renamed to system_readlink to avoid conflict with
9624         the other sys_readlink.
9625
9626 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9627
9628         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9629
9630 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9631
9632         * postgresql.c (init_postgresql_from_environment): new function.
9633         (vars_of_postgresql): Move code initializing Lisp variables out and
9634         into init_postgresql_from_environment.
9635         emacs.c (main_1): Call init_postgresql_from_environment if and only
9636         if running a dumped XEmacs.
9637
9638 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9639
9640         * buffer.c: Make find-file-compare-truenames default to true on
9641         windows.
9642
9643         * realpath.c (win32_abs_start):
9644         (cygwin_readlink):
9645         (win32_readlink): New functions.
9646         (xrealpath): Return really real filenames on windows.
9647
9648         * fileio.c (Ffile_truename): Make file-truename work on windows.
9649
9650 2000-11-29  Didier Verna  <didier@xemacs.org>
9651
9652         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9653         * faces.c (update_face_cachel_data): use it.
9654         * faces.c (add_face_cachel): use it. Complete background pixmap
9655         frobbing in face cache if `update_face_cachel_data' has not done so.
9656
9657 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9658
9659         * search.c (string_match_1): Don't set last_thing_searched
9660         when search failed.
9661
9662 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9663
9664         * buffer.c: Include casetab.h
9665         (common_init_complex_vars_of_buffer): Use new case-table object.
9666         * buffer.h: Include casetab.h
9667         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9668         (DOWNCASE_TABLE_OF): Ditto.
9669         * bufslots.h: Remove char-tables and add case-table.
9670         * casetab.c: Include casetab.h
9671         (CASE_TABLE_P): Removed.
9672         (mark_case_table): New function.
9673         (allocate_case_table): New function.
9674         (Fcase_table_p): Use new case-table.
9675         (case_table_char): New function.
9676         (Fget_case_table): Ditto.
9677         (Fput_case_table): Ditto.
9678         (Fput_case_table_pair): Ditto.
9679         (Fcopy_case_table): Ditto.
9680         (Fcurrent_case_table): Return case-table.
9681         (Fstandard_case_table): Return case-table.
9682         (Fset_case_table): Fix doc-string.
9683         (set_case_table): Use case-table
9684         (syms_of_casetab): DEFSUBR new functions.
9685         (complex_vars_of_casetab): Set up standard case-table.
9686         * casetab.h: New file.
9687         * editfns.c: Include casetab.h
9688         (Fcompare_buffer_substrings): Use case-table.
9689         * inline.c: Include casetab.h
9690         * lisp.h: Remove bogus extern.
9691         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9692         * search.c: Include casetab.h
9693         (TRANSLATE_ASCII): Removed.
9694         (TRANSLATE): Unconditionally translate character.
9695         (looking_at_1): Use case-table.
9696         (string_match_1): Ditto.
9697         (fast_string_match): Ditto.
9698         (search_command): Ditto.
9699         (search_buffer): Separate boyer_moore.  Check whether
9700         boyer_moore is possible.
9701         (simple_search): New function.
9702         (boyer_moore): Separated from search_buffer. Translate char.
9703
9704 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9705
9706         * regex.c (RE_TR_ASCII): Removed.
9707         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9708         (PATFETCH): Call PATFETCH_RAW.
9709         (PATFETCH_RAW): Fetch Emchar.
9710         (PATUNFETCH): Decrement charptr.
9711         (GET_BUFFER_SPACE): Rename b to buf_end.
9712         (BUF_PUSH): Ditto.
9713         (BUF_PUSH_2): Ditto.
9714         (BUF_PUSH_3): Ditto.
9715         (EXTEND_BUFFER): Ditto.
9716         (SET_LIST_BIT): Ditto.
9717         (regex_compile): Ditto.  Translate non ASCII char.
9718         (compile_range): Ditto.
9719         (re_search_2): Ditto.
9720         (re_match_2_internal): Compare Emchar.
9721         (bcmp_translate): Ditto.
9722
9723 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9724
9725         * lisp.h (basic char/int typedefs):  comment improvement.
9726
9727 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9728
9729         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9730         unstomp inhibit_site_lisp.  Improve comments.
9731
9732 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9733
9734         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9735
9736 2000-11-28  Andy Piper  <andy@xemacs.org>
9737
9738         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9739         clipped display for windows in the gutter also.
9740         (redisplay_display_boxes_in_window_p): change semantics of return
9741         codes to be more intuitive.
9742
9743         * gutter.h: declare display_boxes_in_gutter_p.
9744
9745         * gutter.c (display_boxes_in_gutter_p): new function for
9746         redisplay.
9747
9748 2000-11-22  Andy Piper  <andy@xemacs.org>
9749
9750         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9751         autodetect domain.
9752
9753 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9754
9755         * callproc.c (Fold_call_process_internal):
9756         * gpm.c (Freceive_gpm_event):
9757         (tty_get_foreign_selection): Might be just warning supression.
9758         * fileio.c (Fwrite_region_internal):
9759         (Fset_visited_file_modtime):
9760         * keymap.c (event_matches_key_specifier_p):
9761         Initialize GCPROed variable.
9762
9763         * menubar-x.c (command_builder_find_menu_accelerator):
9764         Initialize before use.
9765
9766 2000-11-23  Andy Piper  <andy@xemacs.org>
9767
9768         * unexcw.c (unexec): make the resulting executable executable.
9769
9770 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9771
9772         * doc.c (get_doc_string):
9773         Use size_t, not int, for result of XSTRING_LENGTH.
9774
9775         * cmds.c (Fdelete_char):
9776         * cmds.c (Fpoint_at_eol):
9777         * cmds.c (Fself_insert_command):
9778         Use EMACS_INT, not int, for result of XINT.
9779         Someday, someone will want to insert more than 2**31 identical characters.
9780
9781         * cmds.c (Fdelete_char):
9782         * cmds.c (Fdelete_backward_char):
9783         * syntax.c (Fforward_word):
9784         * syntax.c (Fforward_comment):
9785         Make COUNT argument optional, for consistency with forward-char et al.
9786
9787 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9788
9789         * lisp.h:
9790         * print.c (long_to_string):
9791         Return a useful value: the pointer at end of data written.
9792
9793         * doprnt.c:
9794         Use `static const char * const' for constant strings.
9795         (union printf_arg): Delete `i', `ui' members.
9796         (get_doprnt_args):
9797         (emacs_doprnt_1):
9798         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9799         Do all printf-ing via the `l' specifier.
9800         Use EMACS_INT instead of int.
9801         Optimize.
9802
9803 2000-11-20  Didier Verna  <didier@xemacs.org>
9804
9805         * faces.c (update_face_cachel_data): don't frob the background
9806         pixmap when the window is being created. The face is needed but
9807         does not exist yet.
9808
9809 2000-11-20  Andy Piper  <andy@xemacs.org>
9810
9811         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9812         messing with a debug environment.
9813
9814 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9815
9816         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9817
9818 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9819
9820         * casetab.c (Fcase_table_p): Fix compile error and crash.
9821
9822 2000-11-18  Philip Aston  <philipa@mail.com>
9823
9824         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9825
9826 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9827
9828         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9829         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9830
9831 2000-11-17  Martin Buchholz  <martin@xemacs.org>
9832
9833         * config.h.in: Define HAVE_ELF_H if elf.h exists.
9834         * unexelf.c: Use HAVE_ELF_H.
9835         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9836         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9837         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9838         Greg Harrington <greg_harrington@hotmail.com> provided a machine
9839         for testing.
9840         So this is an unexelfsgi.c from a different line of development.
9841
9842 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9843
9844         * regex.c (RE_TR_ASCII): New function.
9845         (RE_TRANSLATE): Call it.
9846
9847 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9848
9849         * buffer.h (TRT_TABLE_OF): Remove assert.
9850         (IN_TRT_TABLE_DOMAIN): Removed.
9851
9852 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9853
9854         * free-hook.c (log_gcpro):
9855         (show_gcprohist): Add support for GCPRO5.
9856
9857 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
9858
9859         * emacs.c (main_1): Improve -sd error message when --pdump=no.
9860
9861 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
9862
9863         * symeval.h: Declare flush_all_buffer_local_cache.
9864
9865         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9866         (flush_buffer_local_cache): Added.
9867         (flush_all_buffer_local_cache): Added.
9868
9869         * lrecord.h: Remove unused XD_LO_RESET_NIL.
9870
9871         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9872         (pdump_dump_data): Ditto.
9873         (pdump_reloc_one): Ditto.
9874         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
9875         before dumping.
9876
9877
9878 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9879
9880         * buffer.c: Remove if 0'ed entry.
9881         * buffer.h: Rewrite TRT to use char-table.
9882         * bufslots.h: Remove mirror tables.
9883         * casetab.c: Remove mirror tables.
9884         (CASE_TABLE_P): New macro.
9885         (Fcase_table_p): Element of a case table is string or char-table.
9886         (make_mirror_trt_table): Removed.
9887         (set_case_table): Setup char-table from strings for backward
9888         compatibility.
9889         * dired.c (Fdirectory_files):
9890         * dired-msw.c: (mswindows_get_files):
9891         * lisp.h: Change prototype of re_pattern_buffer.
9892         * regex.c: (RE_TRANSLATE): New macro.
9893         (TRANSLATE_P): Ditto.
9894         Change translate to type RE_TRANSLATE_TYPE.
9895         * regex.h: Define RE_TRANSLATE_TYPE
9896         * search.c (TRANSLATE): New macro.
9897         (TRANSLATE_ASCII): New macro.
9898         Translate table is changed to Lisp_Object.
9899         (signal_failure): Inhibit return.
9900
9901 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9902
9903         * device-msw.c:
9904         * eldap.c:
9905         * event-Xt.c:
9906         * event-stream.c:
9907         * print.c:
9908         Do UNGCPRO before return.
9909
9910 2000-11-14  Martin Buchholz <martin@xemacs.org>
9911
9912         * XEmacs 21.2.37 is released.
9913
9914 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9915
9916         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9917         Add comments about discarded return value.
9918
9919 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9920
9921         * callint.c:
9922         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
9923
9924 2000-10-27  Andy Piper  <andy@xemacs.org>
9925
9926         * gutter.c (Fset_default_gutter_position): default left and right
9927         gutters to visible.
9928         (calculate_gutter_size): calculate resonable heuristic for left
9929         and right gutter sizes.
9930         (specifier_vars_of_gutter): change left and right gutter sizes to
9931         autodetect.
9932         (calculate_gutter_size_from_display_lines): new function.
9933         (output_gutter): check for resizing on left and right gutters.
9934         (clear_gutter): don't special case top and left gutters.
9935         (specifier_vars_of_gutter): use new signature for
9936         set_specifier_caching.
9937
9938         * glyphs-x.c (x_redisplay_widget): spelling fix.
9939         * glyphs.c (specifier_vars_of_glyphs):
9940         * menubar.c (specifier_vars_of_menubar):
9941         * redisplay.c (specifier_vars_of_redisplay):
9942         * toolbar.c (specifier_vars_of_toolbar):
9943         * window.c (specifier_vars_of_window):
9944         * scrollbar.c (specifier_vars_of_scrollbar):
9945         (complex_vars_of_scrollbar): use new signature for
9946         set_specifier_caching.
9947
9948         * specifier.c (set_specifier_caching): include recompute flag.
9949         (recompute_one_cached_specifier_in_window): always recompute if
9950         flag set.
9951         (recompute_one_cached_specifier_in_frame): ditto.
9952
9953         * specifier.h (struct specifier_caching): add recompute flag.
9954
9955 2000-10-24  Andy Piper  <andy@xemacs.org>
9956
9957         * unexcw.c (copy_executable_and_dump_data_section): add new
9958         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
9959         5.0 happy.
9960
9961 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9962
9963         * console-x.h (x_device): New member modifier_release_time.
9964         * event-Xt.c (x_handle_sticky_modifiers):
9965         Bound interval modifier keys are sticky.
9966         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
9967         * events.h: extern it.
9968
9969 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9970
9971         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
9972
9973 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9974
9975         * event-stream.c (execute_command_event): Preserve current_events
9976         and the like when event is misc-user-event.
9977         Inhibit quit during the call to maybe_echo_keys.
9978
9979 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9980
9981         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
9982         symlink when buffer is killed.
9983         (inhibit_clash_detection): New variable.
9984
9985 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9986
9987         * console.c (Fset_input_method): Trigger redisplay on tty.
9988
9989 2000-11-07  Martin Buchholz  <martin@xemacs.org>
9990
9991         * process.c (Fprocess_status): Revert to previous behavior:
9992         (process-status "nosuchprocess") ==> nil
9993
9994 2000-11-06  Martin Buchholz  <martin@xemacs.org>
9995
9996         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
9997         Work around another GCC 2.95.2 optimizer bug.
9998
9999 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10000
10001         * process.c (Fget_process): Use LIST_LOOP_2.
10002         (kill_buffer_processes): Use LIST_LOOP_2.
10003
10004         * minibuf.c (Fall_completions):
10005         Delete old non-functional code for FSF fourth argument.
10006
10007         * frame.c (frame_matches_frame_spec):
10008         Renamed from `frame_matches_frametype'.  Update all callers.
10009         (device_matches_device_spec):
10010         Renamed from 'device_matches_console_spec'.  Update all callers.
10011
10012         * doc.c (Fsubstitute_command_keys):
10013         Remove buffer overflow crash.  Small code cleanups.
10014
10015         * casetab.c (check_case_table): Simpler code.
10016
10017         * window.c (Freplace_buffer_in_windows):
10018         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10019         (and similar implementation) as Fdelete_windows_on.
10020         Update all callers.
10021
10022         * alloc.c (Fmake_list):
10023         * alloc.c (make_vector):
10024         * alloc.c (Fmake_vector):
10025         * alloc.c (make_bit_vector):
10026         * alloc.c (Fmake_bit_vector):
10027         * alloc.c (Fbit_vector):
10028         * alloc.c (Fmake_string):
10029         * alloc.c (Fpurecopy):
10030         * alloc.c (Fmemory_limit):
10031         * buffer.c:
10032         * buffer.c (Fget_buffer):
10033         * buffer.c (Fkill_buffer):
10034         * buffer.c (complex_vars_of_buffer):
10035         * bytecode.c (Fcompiled_function_stack_depth):
10036         * callint.c (Fprefix_numeric_value):
10037         * event-stream.c:
10038         * event-stream.c (Fread_key_sequence):
10039         * casetab.c:
10040         * casetab.c (Fcase_table_p):
10041         * casetab.c (check_case_table):
10042         * casetab.c (Fset_case_table):
10043         * casetab.c (Fset_standard_case_table):
10044         * chartab.c:
10045         * chartab.c (Fchar_table_type):
10046         * chartab.c (Freset_char_table):
10047         * chartab.c (Fget_char_table):
10048         * chartab.c (Fget_range_char_table):
10049         * chartab.c (Fput_char_table):
10050         * chartab.c (Fmap_char_table):
10051         * chartab.c (Fcategory_table_p):
10052         * chartab.c (Fcheck_category_at):
10053         * chartab.c (Fchar_in_category_p):
10054         * chartab.c (Fcategory_table):
10055         * chartab.c (Fcopy_category_table):
10056         * chartab.c (Fset_category_table):
10057         * chartab.c (Fcategory_designator_p):
10058         * chartab.c (Fcategory_table_value_p):
10059         * cmds.c (Fdelete_char):
10060         * cmds.c (Fdelete_backward_char):
10061         * cmds.c (Fself_insert_command):
10062         * cmds.c (Fself_insert_internal):
10063         * console.c (Fvalid_console_type_p):
10064         * console.c (Fcdfw_console):
10065         * console.c (Fconsole_type):
10066         * console.c (Fconsole_name):
10067         * console.c (Fconsole_device_list):
10068         * console.c (Fconsole_on_window_system_p):
10069         * data.c:
10070         * data.c (Feq):
10071         * data.c (Fold_eq):
10072         * data.c (Fsubr_interactive):
10073         * data.c (Fchar_to_int):
10074         * data.c (Fint_to_char):
10075         * data.c (Fsetcar):
10076         * data.c (Fsetcdr):
10077         * data.c (Fnumber_to_string):
10078         * data.c (Fstring_to_number):
10079         * data.c (Frem):
10080         * database.c (mark_database):
10081         * database.c (finalize_database):
10082         * database.c (Fdatabase_live_p):
10083         * database.c (Fdatabasep):
10084         * device-x.c (Fx_get_resource):
10085         * device.c (Fdfw_device):
10086         * dired.c:
10087         * dired.c (Ffile_name_completion):
10088         * dired.c (Ffile_name_all_completions):
10089         * dired.c (Fuser_name_completion):
10090         * dired.c (Fuser_name_completion_1):
10091         * dired.c (Fuser_name_all_completions):
10092         * doc.c (Fdocumentation):
10093         * doc.c (Fdocumentation_property):
10094         * doc.c (Fsubstitute_command_keys):
10095         * editfns.c:
10096         * editfns.c (Fchar_to_string):
10097         * editfns.c (Fstring_to_char):
10098         * editfns.c (Ftemp_directory):
10099         * editfns.c (Finsert_char):
10100         * editfns.c (Fbuffer_substring_no_properties):
10101         * editfns.c (Fnarrow_to_region):
10102         * editfns.c (Fchar_equal):
10103         * editfns.c (Fchar_Equal):
10104         * editfns.c (Ftranspose_regions):
10105         * emacs.c (Fdump_emacs):
10106         * eval.c (Fthrow):
10107         * eval.c (Fcommand_execute):
10108         * eval.c (Fautoload):
10109         * eval.c (Fbacktrace):
10110         * eval.c (Fbacktrace_frame):
10111         * events.c:
10112         * events.c (Fcopy_event):
10113         * events.c (Fcharacter_to_event):
10114         * events.c (Fevent_button):
10115         * events.c (Fevent_process):
10116         * extents.c:
10117         * extents.c (Fnext_extent_change):
10118         * extents.c (Fextent_property):
10119         * faces.c (Ffacep):
10120         * faces.c (Fmake_face):
10121         * file-coding.c:
10122         * file-coding.c (Fencode_shift_jis_char):
10123         * file-coding.c (Fencode_big5_char):
10124         * fileio.c (Ffile_name_directory):
10125         * fileio.c (Ffile_name_nondirectory):
10126         * fileio.c (Ffile_name_as_directory):
10127         * fileio.c (Fdirectory_file_name):
10128         * fileio.c (Ffile_truename):
10129         * fileio.c (Fsubstitute_in_file_name):
10130         * fileio.c (Ffile_modes):
10131         * fileio.c (Fset_file_modes):
10132         * fileio.c (Fset_default_file_modes):
10133         * fileio.c (Fverify_visited_file_modtime):
10134         * floatfns.c (Facos):
10135         * floatfns.c (Fasin):
10136         * floatfns.c (Fatan):
10137         * floatfns.c (Fcos):
10138         * floatfns.c (Fsin):
10139         * floatfns.c (Ftan):
10140         * floatfns.c (Fbessel_j0):
10141         * floatfns.c (Fbessel_j1):
10142         * floatfns.c (Fbessel_jn):
10143         * floatfns.c (Fbessel_y0):
10144         * floatfns.c (Fbessel_y1):
10145         * floatfns.c (Fbessel_yn):
10146         * floatfns.c (Ferf):
10147         * floatfns.c (Ferfc):
10148         * floatfns.c (Flog_gamma):
10149         * floatfns.c (Fexp):
10150         * floatfns.c (Fexpt):
10151         * floatfns.c (Flog):
10152         * floatfns.c (Flog10):
10153         * floatfns.c (Fsqrt):
10154         * floatfns.c (Fcube_root):
10155         * floatfns.c (Facosh):
10156         * floatfns.c (Fasinh):
10157         * floatfns.c (Fatanh):
10158         * floatfns.c (Fcosh):
10159         * floatfns.c (Fsinh):
10160         * floatfns.c (Ftanh):
10161         * floatfns.c (Fabs):
10162         * floatfns.c (Ffloat):
10163         * floatfns.c (Flogb):
10164         * floatfns.c (Fceiling):
10165         * floatfns.c (Ffloor):
10166         * floatfns.c (Fround):
10167         * floatfns.c (Ftruncate):
10168         * floatfns.c (Ffceiling):
10169         * floatfns.c (Fffloor):
10170         * floatfns.c (Ffround):
10171         * floatfns.c (Fftruncate):
10172         * fns.c (Fstring_equal):
10173         * fns.c (Fstring_lessp):
10174         * fns.c (concat2):
10175         * fns.c (concat3):
10176         * fns.c (vconcat2):
10177         * fns.c (vconcat3):
10178         * fns.c (Fsubstring):
10179         * fns.c (Fassoc):
10180         * fns.c (Fold_assoc):
10181         * fns.c (assoc_no_quit):
10182         * fns.c (Fassq):
10183         * fns.c (Fold_assq):
10184         * fns.c (assq_no_quit):
10185         * fns.c (Frassoc):
10186         * fns.c (Fold_rassoc):
10187         * fns.c (Frassq):
10188         * fns.c (Fold_rassq):
10189         * fns.c (rassq_no_quit):
10190         * fns.c (Fremassoc):
10191         * fns.c (remassoc_no_quit):
10192         * fns.c (Fremassq):
10193         * fns.c (remassq_no_quit):
10194         * fns.c (Fremrassoc):
10195         * fns.c (Fremrassq):
10196         * fns.c (remrassq_no_quit):
10197         * fns.c (Fsort):
10198         * fns.c (Fplist_get):
10199         * fns.c (Fplist_put):
10200         * fns.c (Fplist_remprop):
10201         * fns.c (Fplist_member):
10202         * fns.c (Flax_plist_get):
10203         * fns.c (Flax_plist_put):
10204         * fns.c (Flax_plist_remprop):
10205         * fns.c (Flax_plist_member):
10206         * fns.c (Fequal):
10207         * fns.c (Fold_equal):
10208         * fns.c (Frequire):
10209         * fns.c (Fbase64_encode_region):
10210         * fns.c (Fbase64_encode_string):
10211         * fns.c (Fbase64_decode_region):
10212         * frame.c:
10213         * frame.c (frame_matches_frame_spec):
10214         * frame.c (device_matches_device_spec):
10215         * frame.c (next_frame):
10216         * frame.c (previous_frame):
10217         * frame.c (Fnext_frame):
10218         * frame.c (Fprevious_frame):
10219         * frame.c (Fframe_property):
10220         * frame.c (Fset_frame_height):
10221         * frame.c (Fset_frame_size):
10222         * frame.h:
10223         * glyphs.c:
10224         * glyphs.c (if):
10225         * glyphs.c (decode_error_behavior_flag):
10226         * glyphs.c (Fmake_image_instance):
10227         * indent.c (Findent_to):
10228         * intl.c (Fignore_defer_gettext):
10229         * keymap.c (Fkeymapp):
10230         * keymap.c (Flookup_key):
10231         * lread.c:
10232         * lread.c (Fload_internal):
10233         * lread.c (Feval_buffer):
10234         * lread.c (Feval_region):
10235         * macros.c (Fexecute_kbd_macro):
10236         * marker.c (set_marker_internal):
10237         * marker.c (Fset_marker):
10238         * marker.c (set_marker_restricted):
10239         * marker.c (Fcopy_marker):
10240         * marker.c (noseeum_copy_marker):
10241         * menubar.c:
10242         * menubar.c (Fpopup_menu):
10243         * minibuf.c:
10244         * mule-charset.c (Fcharset_name):
10245         * mule-charset.c (Fchar_charset):
10246         * mule-charset.c (Fchar_octet):
10247         * mule-charset.c (Fsplit_char):
10248         * mule-wnnfns.c (Fwnn_open):
10249         * mule-wnnfns.c (Fwnn_dict_comment):
10250         * mule-wnnfns.c (Fwnn_quit_henkan):
10251         * mule-wnnfns.c (Fwnn_word_toroku):
10252         * mule-wnnfns.c (Fwnn_word_sakujo):
10253         * mule-wnnfns.c (Fwnn_word_use):
10254         * mule-wnnfns.c (Fwnn_hindo_set):
10255         * objects.c:
10256         * objects.c (Fmake_color_instance):
10257         * objects.c (Fmake_font_instance):
10258         * print.c (Fwrite_char):
10259         * process.c:
10260         * process.c (mark_process):
10261         * process.c (print_process):
10262         * process.c (get_process_from_usid):
10263         * process.c (Fprocessp):
10264         * process.c (Fprocess_live_p):
10265         * process.c (Fget_process):
10266         * process.c (Fget_buffer_process):
10267         * process.c (get_process):
10268         * process.c (Fprocess_id):
10269         * process.c (Fprocess_name):
10270         * process.c (Fprocess_command):
10271         * process.c (init_process_io_handles):
10272         * process.c (start_process_unwind):
10273         * process.c (Fstart_process_internal):
10274         * process.c (Fopen_multicast_group_internal):
10275         * process.c (Fset_process_window_size):
10276         * process.c (read_process_output):
10277         * process.c (send_process):
10278         * process.c (Fprocess_tty_name):
10279         * process.c (Fset_process_buffer):
10280         * process.c (Fprocess_buffer):
10281         * process.c (Fprocess_mark):
10282         * process.c (set_process_filter):
10283         * process.c (Fset_process_filter):
10284         * process.c (Fprocess_filter):
10285         * process.c (Fprocess_send_region):
10286         * process.c (Fprocess_send_string):
10287         * process.c (exec_sentinel):
10288         * process.c (Fset_process_sentinel):
10289         * process.c (Fprocess_sentinel):
10290         * process.c (status_notify):
10291         * process.c (Fprocess_status):
10292         * process.c (Fprocess_exit_status):
10293         * process.c (process_send_signal):
10294         * process.c (Fprocess_send_eof):
10295         * process.c (deactivate_process):
10296         * process.c (remove_process):
10297         * process.c (Fdelete_process):
10298         * process.c (kill_buffer_processes):
10299         * process.c (Fprocess_kill_without_query):
10300         * process.c (Fprocess_kill_without_query_p):
10301         * rangetab.c:
10302         * rangetab.c (Fget_range_table):
10303         * rangetab.c (Fput_range_table):
10304         * rangetab.c (Fremove_range_table):
10305         * rangetab.c (Fclear_range_table):
10306         * search.c:
10307         * search.c (Fskip_chars_forward):
10308         * search.c (Fskip_chars_backward):
10309         * search.c (Fskip_syntax_forward):
10310         * search.c (Fskip_syntax_backward):
10311         * search.c (search_command):
10312         * search.c (Freplace_match):
10313         * search.c (Fregexp_quote):
10314         * select.c (Fown_selection_internal):
10315         * select.c (Fselection_owner_p):
10316         * select.c (Fselection_exists_p):
10317         * select.c (Fget_selection_internal):
10318         * specifier.c:
10319         * symbols.c:
10320         * symbols.c (Fintern):
10321         * symbols.c (Fintern_soft):
10322         * symbols.c (Funintern):
10323         * symbols.c (Fapropos_internal):
10324         * symbols.c (Fset_default):
10325         * syntax.c:
10326         * syntax.c (Fsyntax_table_p):
10327         * syntax.c (Fcopy_syntax_table):
10328         * syntax.c (Fset_syntax_table):
10329         * syntax.c (Fchar_syntax):
10330         * syntax.c (syntax_match):
10331         * syntax.c (Fmatching_paren):
10332         * syntax.c (Fforward_word):
10333         * syntax.c (scan_lists):
10334         * syntax.c (Fscan_lists):
10335         * syntax.c (Fscan_sexps):
10336         * syntax.c (Fparse_partial_sexp):
10337         * toolbar.c (Fcheck_toolbar_button_syntax):
10338         * tooltalk.doc:
10339         * window.c:
10340         * window.c (Fwindowp):
10341         * window.c (Fwindow_live_p):
10342         * window.c (Fwindow_point):
10343         * window.c (Fdelete_window):
10344         * window.c (Fnext_window):
10345         * window.c (Fprevious_window):
10346         * window.c (Fother_window):
10347         * window.c (window_loop):
10348         * window.c (Fget_lru_window):
10349         * window.c (Fsplit_window):
10350         * window.c (Fenlarge_window):
10351         * window.c (Fenlarge_window_pixels):
10352         * window.c (Fshrink_window):
10353         * window.c (Fshrink_window_pixels):
10354         * window.c (change_window_height):
10355         * window.c (Fwindow_configuration_p):
10356         * window.c (Fcurrent_window_configuration):
10357         * window.h:
10358         * casefiddle.c (casify_object):
10359         * casefiddle.c (Fupcase):
10360         * casefiddle.c (Fdowncase):
10361         * casefiddle.c (Fcapitalize):
10362         * casefiddle.c (Fupcase_initials):
10363         * casefiddle.c (casify_region_internal):
10364         * casefiddle.c (casify_region):
10365         * casefiddle.c (Fupcase_region):
10366         * casefiddle.c (Fdowncase_region):
10367         * casefiddle.c (Fcapitalize_region):
10368         * casefiddle.c (Fupcase_initials_region):
10369         * casefiddle.c (Fupcase_word):
10370         * casefiddle.c (Fdowncase_word):
10371         * casefiddle.c (Fcapitalize_word):
10372         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10373         Replace 0 with '\0' when working with bytes.
10374         Replace initial "(" with "\(" in docstrings.
10375
10376 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10377
10378         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10379
10380         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10381
10382 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10383
10384         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10385
10386 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10387
10388         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10389         correctly.
10390
10391 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10392
10393         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10394         (inhibit_auto_save_session): New variable.
10395         (vars_of_fileio): Declare and initialize them.
10396         * fileio.c (Fdo_auto_save): Don't create session file if
10397         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10398
10399 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10400
10401         * sgiplay.c (play_internal): C++ compilability.
10402         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10403         * callproc.c (Fold_call_process_internal):
10404         Remove unused vars `env', `first'.
10405         * scrollbar.c (update_scrollbar_instance):
10406         #### unused var `current_window'.
10407         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10408         etc. within #ifdef NOT_YET.
10409         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10410         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10411         * specifier.c (specifier_instance):
10412         #### unused var `tag'.
10413         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10414
10415 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10416
10417         * fns.c (Fbutlast):
10418         * fns.c (list_sort):
10419         * fns.c (Ffillarray):
10420         * fns.c (bytecode_nconc2):
10421         * fns.c (Fnconc):
10422         * fns.c (mapcar1):
10423         * fns.c (Fmapconcat):
10424         Be pedantically 64-bit correct.  For the time when someone will
10425         want to have a list with length > 2**32.
10426
10427         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10428         Work around MIPSpro compiler bug.
10429
10430         * process-unix.c (unix_kill_child_process): Add snarky comment.
10431         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10432
10433         * config.h.in: Oops, _getpt ==> _getpty
10434
10435 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10436
10437         * config.h.in:
10438         * regex.c:
10439         Use void*, not char*, as return type of alloca().
10440
10441         * alloc.c (free_marker): Side effect inside assert expression!
10442
10443 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10444
10445         * mule-charset.c (Fset_charset_ccl_program): To check
10446         if the given ccl program is valid, use setup_ccl_program()
10447         instead of CHECK_VECTOR().
10448         (Fmake_charset): Likewise.
10449
10450 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10451
10452         * faces.c (get_extent_fragment_face_cache_index):
10453         Fix cachel.merged_faces memory leak.
10454
10455 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10456
10457         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10458         Reset MSB of octets obtained by DECODE_SJIS
10459         because of the incompatibility with Emacs.
10460         (ccl_driver)<CCL_ENCODE_SJIS>:
10461         Set MSB of octets before passing them to
10462         ENCODE_SJIS because of the incompatibility
10463         with Emacs.
10464
10465 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10466
10467         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10468         (DECLARE_LRECORD): Undo the last change.
10469         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10470
10471 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10472
10473         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10474         the implementation to lrecord_implementations_table.
10475
10476 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10477
10478         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10479         initial value of `lrecord_type_##c_name' and
10480         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10481         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10482         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10483         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10484         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10485
10486 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10487
10488         * miscplay.c (sndcnv8S_2mono):
10489         (sndcnv2monounsigned):
10490         (sndcnvULaw_2linear):
10491         (sndcnv16swap):
10492         Remove implementation-defined behavior.
10493
10494 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10495
10496         * input-method-xlib.c: Warning suppression.
10497
10498 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10499
10500         * mule-ccl.c: Sync up with Emacs 21.0.90.
10501         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10502         Do nothing.
10503         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10504         Likewise.
10505         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10506         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10507         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10508         leading char belongs to official 2-dimensional charset.
10509         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10510         write the given character as is.  Otherwise,
10511         if it is a multibyte char, convert it by
10512         non_ascii_set_charptr_emchar, then write it.
10513         (CCL_WRITE_STRING): Likewise.
10514         (ccl_get_compiled_code): New function.
10515         (setup_ccl_program): When ccl_prog is invalid,
10516         return -1.
10517         (Fregister_code_conversion_map): New function.
10518         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10519
10520         * mule-ccl.h: Sync up with Emacs 21.0.90.
10521         (Fregister_ccl_program): export it.
10522
10523         * redisplay-msw.c (separate_textual_runs):
10524         If ccl program is not valid, don't do ccl conversion.
10525
10526         * redisplay-x.c (separate_textual_runs): Ditto.
10527
10528         * file-coding.c (Fmake_coding_system):
10529         When type is ccl and value is vector, register it
10530         with a proper symbol.  And checks whether the
10531         given ccl program is valid.
10532         (mule_decode): When calling ccl_driver, if src indicates
10533         NULL pointer, set an empty string instead.
10534         (mule_encode): Likewise.
10535
10536 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10537
10538         The following large batch of changes gets us back to a state of
10539         C++ compilability.  Extbyte is now a char, which means that
10540         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10541
10542         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10543
10544         * sound.c (Fplay_sound): Type correctness.
10545
10546         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10547         (x_get_window_property): Type correctness.
10548         (receive_incremental_selection): unsigned char ==> Extbyte
10549         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10550         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10551         (Fx_store_cutbuffer_internal): Type correctness.
10552
10553         * process-unix.c (try_to_initialize_subtty): Type correctness.
10554
10555         * objects-x.c (x_print_color_instance): Type correctness.
10556         (x_print_font_instance): Type correctness.
10557         (x_list_fonts): SExtbyte ==> Extbyte.
10558         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10559         (x_find_charset_font): SExtbyte ==> Extbyte.
10560         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10561         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10562         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10563         Use bufbyte_strcmp.
10564
10565         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10566         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10567         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10568         (BYTE_C0_P): Use bit ops for char-signedness safety.
10569         (BYTE_C1_P): Use bit ops for char-signedness safety.
10570         (CHARSET_BY_LEADING_BYTE):
10571         (CHARSET_BY_ATTRIBUTES):
10572         Always use inline function.
10573         Use type_checking_assert.
10574         Hide chlook.
10575
10576         * mule-charset.c (non_ascii_charptr_copy_char):
10577         Modify to work with both ASCII and non-ASCII characters.
10578         Improve docs and variable names.
10579         Replace over-clever fall-through switch with a simple loop.
10580         (Lstream_get_emchar_1):
10581         Replace over-clever fall-through switch with a simple loop.
10582
10583         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10584         Warning suppression.
10585
10586         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10587         the return value of Lstream_getc, which could be EOF as well.
10588
10589         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10590
10591         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10592         APIs can be used on Extbytes without casts.  Risky!
10593         (SExtbyte): Remove.
10594         (UExtbyte): Remove.
10595
10596         * input-method-xlib.c (XIM_init_device):
10597         Use Xlib.h instead of IntrinsicP.h.
10598         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10599         which will break in X11R7.
10600         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10601         to call XRegisterIMInstantiateCallback with correct types.
10602
10603         * gui-x.c (button_item_to_widget_value): Type correctness.
10604
10605         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10606
10607         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10608         (xbm_instantiate_1): Type correctness.
10609         (BUILD_GLYPH_INST):  Type correctness.
10610
10611         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10612
10613         * file-coding.c:
10614         (decode_coding_sjis):
10615         (decode_coding_big5):
10616         (decode_coding_ucs4):
10617         (decode_coding_utf8):
10618         (decode_coding_iso2022):
10619         (decode_coding_no_conversion):
10620         Make all decoding functions take an Extbyte * arg.
10621         (encode_coding_sjis):
10622         (encode_coding_big5):
10623         (encode_coding_ucs4):
10624         (encode_coding_utf8):
10625         (encode_coding_iso2022):
10626         (encode_coding_no_conversion):
10627         Make all encoding functions take a Bufbyte * arg.
10628         Use size_t instead of unsigned int for memory sizes.
10629         Only cast to unsigned char whenever dereferencing Extbyte *.
10630
10631         * doc.c (unparesseuxify_doc_string): Type correctness.
10632
10633         * console-x.c (split_up_display_spec):
10634         Rewrite without using details of internal string representation.
10635         (x_semi_canonicalize_device_connection): Type correctness.
10636
10637         * config.h.in:
10638         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10639         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10640         (HAVE_XFREE386): Removed.
10641
10642         * buffer.h (DEC_CHARPTR): `const' correctness.
10643         (bufbyte_strcmp): New.
10644         (bufbyte_memcmp): New.
10645
10646         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10647
10648         * buffer.h (XCHAR_OR_CHAR_INT):
10649         Always use inline function.
10650         Remove redundant type checking assert() - XINT will abort quite nicely.
10651
10652 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10653
10654         * search.c (Freplace_match): Set newtext to an empty string.
10655
10656 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10657
10658         * s/decosf1-3.h: Remove #include of stropts.h
10659         * s/ptx.h: Remove #include of stropts.h
10660         * s/usg5-4.h: Remove #include of stropts.h
10661         * sysproc.h:
10662         * config.h.in:
10663         Use stropts.h, not sys/stropts.h.
10664         Use strtio.h, not sys/strtio.h.
10665
10666 2000-10-04  Martin Buchholz <martin@xemacs.org>
10667
10668         * XEmacs 21.2.36 is released.
10669
10670 2000-09-21  Andy Piper  <andy@xemacs.org>
10671
10672         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10673         changes still involve copying the widget tree.
10674         (update_widget_face): make sure a change is register in the widget
10675         tree. Call update_tab_widget_face appropriately.
10676         (update_tab_widget_face): ditto.
10677         (x_tab_control_redisplay): make sure non-structural changes still
10678         involve copying the widget tree.
10679
10680 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10681
10682         * lread.c (locate_file): Check the path element is non-nil.
10683
10684 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10685
10686         * lisp.h: Warning suppression for SCO compilers.
10687
10688         * redisplay-tty.c (reset_tty_modes): Fix crash.
10689         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10690
10691 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10692
10693         Big signal/process handling overhaul.  Bugs fixed:
10694         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10695         M-x comint-kill-subjob should work for both values nil and t of
10696         process-connection-type. It was broken on most platforms.
10697         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10698         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10699         * process-unix.c: Signal/Process handling overhaul.
10700         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10701         (allocate_pty): Use all available modern methods of allocating
10702         ptys, falling back to old style BSD allocation as a last resort.
10703         Use allegedly more secure Unix98 pty allocation by default.
10704         (allocate_pty_the_old_fashioned_way): New. the last resort.
10705         (unix_create_process): Push ptem, ldterm, ttcompat where
10706         available.  Autoconfiscate.
10707         (try_to_initialize_subtty): New.
10708         (unix_kill_child_process): Proper signal handling for ptys on most
10709         platforms, using special knowledge of AIX, BSD, etc...
10710         (unix_create_process): Always disconnect_controlling_terminal() for
10711         subprocesses, whether using ptys or not.
10712         * process.h: Remove old getpt-dependent PTY code.
10713         * process.c (Fprocess_send_signal): New, obvious generic function.
10714         (decode_signal): New.
10715         (Finterrupt_process):
10716         (Fkill_process):
10717         (Fquit_process):
10718         (Fstop_process):
10719         (Fcontinue_process):
10720         (Fsignal_process): Use decode_signal.
10721         (process_send_signal):
10722         Many docstring corrections.
10723         Allow any signal to be sent to a process object.
10724         * config.h.in: Add symbols for big signal/process overhaul.
10725         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10726         * sysproc.h: Include process-related headers, where available:
10727         sys/stropts.h sys/strtio.h pty.h libutil.h
10728         * s/irix4-0.h:
10729         * s/irix5-0.h:
10730         * s/cygwin32.h:
10731         * s/gnu.h:
10732         * s/linux.h:
10733         * s/hpux.h:
10734         * s/aix3-1.h:
10735         Remove old S&M pty stuff.
10736         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10737         * systty.h: Simplify cpp hackery, improve comments.
10738         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10739
10740         * editfns.c (Fformat_time_string):
10741         Be a little more paranoid with the return value of ctime.
10742
10743         * fileio.c (check_executable):
10744         (check_writable):
10745         Use symbolic constants X_OK, W_OK.
10746
10747         * console-x.c (split_up_display_spec): Fix a warning.
10748
10749 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10750
10751         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10752         * ntproc.c (sys_spawnve): make_string ==> build_string
10753         Small clarity improvements.
10754
10755 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10756
10757         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10758
10759         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10760
10761         * config.h.in (HAVE_STRCASECMP): Remove.
10762
10763 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10764
10765         * redisplay-output.c (redisplay_output_pixmap):
10766         Cleaner and possibly more 64-bit correct code.
10767
10768 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10769
10770         * dumper.c (pdump_load_finish): move restoration of
10771         `noninteractive1' to emacs.c (main_1).
10772         * emacs.c (main_1): protect LISP-visible command-line flags
10773         from pdump_load().
10774
10775 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10776
10777         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10778         DUMP_TARGET instead of literal program names.
10779
10780 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10781
10782         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10783
10784 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10785
10786         * *: Spelling mega-patch
10787
10788 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10789
10790         * fns.c (bad_bad_turtle):
10791         Delete "Eek!" comment, since we fixed the bug to which it refers.
10792
10793 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10794
10795         * alloca.c: Replace REGISTER with register.
10796
10797 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10798
10799         * file-coding.c (ucs_to_char): Use countof.
10800
10801 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10802
10803         * file-coding.c: (ucs_to_char):
10804         (complex_vars_of_file_coding):
10805         Use countof instead of sizeof.
10806         Use CHECK_NATNUM instead of CHECK_INT.
10807
10808         * sysdep.c (strcasecmp): Remove.
10809         * device-x.c (ascii_strcasecmp): New.
10810         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10811         Avoid using non-standard non-portable strcasecmp.
10812
10813 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10814
10815         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10816         * font-lock.c: remove reference to emacsfns.h.
10817         * search.c: small doc improvement.
10818         * event-Xt.c: correct file names in comments.
10819         * console-x.h Correct file names in comments.
10820         * frame.c: Correct file names in comments.
10821         * event-stream.c: remove Energize from comments.
10822
10823 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10824
10825         * symeval.h (DEFERROR_STANDARD):
10826         (DEFERROR):
10827         (DEFSYMBOL):
10828         (DEFSYMBOL_NO_DUMP):
10829         (DEFSYMBOL_MULTIWORD_PREDICATE):
10830         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10831         (DEFKEYWORD):
10832         The construct &##name is not sensible C.
10833         Fixes compilation errors with Unixware native compiler.
10834
10835 2000-09-14  Martin Buchholz  <martin@xemacs.org>
10836
10837         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10838         (next_frame_internal): Removed.  We now just have next_frame.
10839         (next_frame):
10840         Write a simpler and cleaner one-pass algorithm.
10841         Remove called_from_delete_device arg and #ifdefed-out code.
10842         (previous_frame):
10843         Renamed from prev_frame.  Update callers.
10844         Cleaned up to have an analogous implementation to next_frame.
10845         (other_visible_frames_internal): Remove the
10846         called_from_delete_device bogus arg, and hence, remove this
10847         function.  Just use other_visible_frames().
10848
10849         * window.c (Fnext_window):
10850         Prettify docstring.
10851         Since next_frame() is guaranteed to return a frame, remove check
10852         for nil inserted in previous patch.
10853         (Fprevious_window):
10854         Prettify docstring.
10855         Make code look more like Fnext_window.
10856         (window_loop):
10857         Respect the `console' arg when iterating through windows.
10858         Fixes bug: (get-buffer-window buffer t device) not respecting
10859         the `device' arg.
10860         This function needs more work, as others have pointed out.
10861
10862         * frame.h: Rename prev_frame to previous_frame.
10863         device_matches_console_spec no longer takes a `frame' arg.
10864
10865         * s/gnu.h:
10866         * s/linux.h:
10867         * s/hpux.h:
10868         Use EMACS_BLOCK_SIGNAL instead of sigblock.
10869         From "Golubev I. N." <gin@mo.msk.ru>.
10870
10871         * make-src-depend: Fix typo.
10872
10873 2000-09-13  Martin Buchholz  <martin@xemacs.org>
10874
10875         * window.c (Fnext_window):
10876         next_frame() might return nil, not a frame.
10877         Fixes this crash:
10878         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10879
10880         * frame.c (next_frame_internal):
10881         We've passed a frame if we've passed its device.
10882         Fixes this crash:
10883         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10884 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10885
10886 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10887
10888         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10889         Allow option to suppress accelerators in menu/dialog items.
10890         (populate_or_checksum_helper): Pass dialog title through above.
10891
10892 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10893
10894         * event-msw.c (mswindows_key_to_emacs_keysym):
10895         Add "pause" key, fix "menu" key.
10896
10897 2000-09-09  Martin Buchholz  <martin@xemacs.org>
10898
10899         * eval.c (reinit_vars_of_eval):
10900         Increase max_lisp_eval_depth to 1000,
10901         required for thai-xtis.el to byte-compile under some circumstances.
10902
10903 2000-09-04  Martin Buchholz  <martin@xemacs.org>
10904
10905         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10906         From Kenichi Handa.
10907
10908 2000-09-01  Martin Buchholz  <martin@xemacs.org>
10909
10910         * make-src-depend: Make the generated Makefiles smaller.
10911
10912         * s/hpux.h (SETUP_SLAVE_PTY):
10913         Provide a %d in the format string for the errno argument.
10914
10915         * editfns.c (Ftemp_directory):
10916         Warning fix.
10917         Avoid buffer overrun on very long file name.
10918
10919         * input-method-xlib.c (XIM_init_device):
10920         6th parameter of XRegisterIMInstantiateCallback has different
10921         pointer types on different OSes, so simply cast to (void *).
10922
10923         * unexhp9k800.c: Warning fixes.  Fiddly changes.
10924
10925         * sysdll.c (dll_open):
10926         shl_load will hang hard if passed a NULL filename.
10927         Simply return NULL for compatibility with dlopen.
10928         * sysdll.c: Conform to XEmacs coding standards.
10929
10930         * sysdep.c (get_pty_max_bytes):
10931         Support pty input lines longer than 512 bytes on HP-UX 10.20.
10932
10933 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10934
10935         * tooltalk.c: Add #include <syssignal.h>
10936
10937 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
10938
10939         * s/hpux.h: Don't use undefined function sigunblock().
10940
10941 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10942
10943         * config.h.in: Add HAVE_BALLOON_HELP.
10944         * emacs.c: Use HAVE_BALLOON_HELP.
10945         * Makefile.in.in (x_objs):
10946         Make Balloon Help conditional on finding shape.h.
10947
10948 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
10949
10950         * syntax.c (regex_emacs_buffer_p): New variable.
10951         * syntax.h (regex_emacs_buffer_p): extern.
10952         * search.c (looking_at_1):
10953         (string_match_1):
10954         (fast_string_match):
10955         (search_buffer): Set regex_emacs_buffer_p.
10956         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
10957         when before_dot, at_dot, after_dot.
10958
10959 2000-08-23  Andy Piper  <andy@xemacs.org>
10960
10961         * gui-x.c (popup_selection_callback): Only set action_occurred
10962         when we really have an image instance.
10963         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10964
10965 2000-08-23  Andy Piper  <andy@xemacs.org>
10966
10967         * gui-msw.c (mswindows_handle_gui_wm_command): set
10968         action_occurred.
10969         * gui-x.c (popup_selection_callback): ditto.
10970
10971         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
10972         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
10973         (struct Lisp_Image_Instance): add action_occurred flag.
10974
10975         * glyphs.c (redisplay_subwindow): use action_occurred flag.
10976         (image_instance_changed): ditto.
10977         (reset_frame_subwindow_instance_cache): only unmap windows - do
10978         not remove them from the cache also.
10979
10980         * glyphs-widget.c (tab_control_update): better debug.
10981         (progress_gauge_update): ditto.
10982         (layout_update): ditto.
10983         (layout_instantiate): ditto.
10984         (tab_control_order_only_changed): cope with null pending items.
10985
10986         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
10987         debug. Force selection of an item when an action occurred. Cope
10988         with null pending_items.
10989         (mswindows_progress_gauge_redisplay): better debug.
10990         * glyphs-x.c (x_tab_control_redisplay): ditto.
10991
10992         * redisplay.c (redisplay_frame): reset the frame cache if the
10993         frame is garbaged.
10994
10995         * window.c (Fset_window_configuration): potentially re-enable
10996         frame cache reset.
10997         (window_unmap_subwindows): need to finalize instances here since
10998         it is only used in mark_window_as_deleted.
10999
11000 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11001
11002         * nas.c (SndOpenDataForReading):
11003         nas.c (WaveOpenDataForReading):
11004         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11005         Somehow escaped from the 2000-08-14 patch.
11006
11007 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11008
11009         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11010         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11011
11012 2000-08-21  Andy Piper  <andy@xemacs.org>
11013
11014         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11015         window if it is not already displayed.
11016
11017         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11018         it is not already displayed.
11019
11020         * window.c (Fset_window_configuration): don't reset the frame
11021         cache.
11022
11023         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11024         instances from the frame cache if we are actually finalizing them.
11025         (reset_frame_subwindow_instance_cache): reset frame cache only
11026         after unmapping everything.
11027         (map_subwindow): set displayed flag after mapping.
11028
11029 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11030
11031         * data.c (indirect_function):
11032         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11033
11034         * eval.c (function_argcount):
11035         Use original function when signaling errors.
11036
11037 2000-08-18  Andy Piper  <andy@xemacs.org>
11038
11039         * frame.c (delete_frame_internal): use new
11040         free_frame_subwindow_instances name.
11041
11042         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11043         (add_tab_item): make return type correct.
11044         (mswindows_tab_control_instantiate): assert index of tab.
11045         (mswindows_tab_control_redisplay): Re-code to use
11046         gui_item_equal_sans_selected and gui_item_list_find_selected.
11047
11048         * glyphs-widget.c (tab_control_update): Correct comment.
11049
11050         * window.c (window_unmap_subwindows): use new
11051         unmap_subwindow_instance_cache_mapper.
11052         (window_unmap_subwindows_cache_mapper): deleted.
11053         (Fset_window_configuration): comparisons should now be with
11054         EQ. Preserve the subwindow instance cache across configuration
11055         changes.
11056         (allocate_window): ditto.
11057         (make_dummy_parent): ditto.
11058
11059         * glyphs.c (free_frame_subwindow_instances): rename from
11060         free_frame_subwindow_instance_cache. finalize all instances rather
11061         than just those in the display cache.
11062         (finalize_all_subwindow_instances): walk windows unmapping and
11063         finalizing subwindows.
11064         (unmap_subwindow_instance_cache_mapper): moved from
11065         window.c. Allow finalization as well as unmapping.
11066
11067         * gui.c (gui_item_list_find_selected): new function.
11068
11069         * gui.h (gui_item_list_find_selected): declare.
11070
11071         * glyphs-x.c (x_tab_control_redisplay): pick tab
11072         explicitly. Re-code to use gui_item_equal_sans_selected and
11073         gui_item_list_find_selected.
11074
11075         * glyphs-x.h: add lwlib-utils.h
11076
11077         * buffer.c (Frecord_buffer): undo previous change.
11078
11079 2000-08-09  Vin Shelton  <acs@xemacs.org>
11080
11081         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11082         possible.  Create temporary files more securely.  The patch was
11083         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11084         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11085         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11086         for details.
11087
11088 2000-08-07  Ben Wing  <ben@xemacs.org>
11089
11090         * getloadavg.c: remove duplicate (and windows-breaking)
11091         includes of fcntl.h and sys/file.h.
11092
11093         * nt.c: remove duplicate getloadavg() definition.
11094
11095         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11096         encodings.
11097
11098 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11099
11100         * eval.c (function_argcount): If function needs to be autoloaded
11101         actually use the loaded definition.
11102         GCPRO function.
11103
11104 2000-08-05  Ben Wing  <ben@xemacs.org>
11105
11106         * getloadavg.c: add prototype for getloadavg().  remove
11107         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11108         of the code).  remove duplicate header includes.
11109
11110         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11111
11112         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11113         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11114         useful load average.
11115
11116         * alloc.c (reinit_alloc_once_early): removed references to
11117         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11118         the lisp vars are the only things referencing the malloc_sbrk_*
11119         vars, and they were already if 0'd out.  these vars only exist
11120         in the older malloc.c, which is basically unused, and they're
11121         only for informational purposes.
11122
11123         * m\*.h: removed useless VIRT_ADDR_VARIES.
11124
11125         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11126
11127 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11128
11129         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11130         color if the image is a mono pixmap.
11131
11132 2000-07-30  Ben Wing  <ben@xemacs.org>
11133
11134         * Makefile.in.in (release):
11135         Remove stray @.
11136
11137         * buffer.c (directory_is_current_directory):
11138         * dired-msw.c (mswindows_get_files):
11139         * dired.c:
11140         * dired.c (Fdirectory_files):
11141         * dired.c (file_name_completion_stat):
11142         * dired.c (Ffile_attributes):
11143         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11144         preprocessor tricks, to avoid problems on some machines
11145         (e.g. SCO).
11146
11147         * callproc.c (egetenv): GC docs.
11148
11149         * console-msw.h:
11150         * console-msw.h (struct mswindows_dialog_id):
11151         * lrecord.h (lrecord_type):
11152         New object for use with MSW dialogs.
11153
11154         * console.h (struct console_methods):
11155         New enable/disable frame methods, for proper modal dialogs.
11156
11157         * device-msw.c (msprinter_default_printer): Fix to follow
11158         proper Mule conventions.
11159
11160         * device-msw.c:
11161         * device-msw.c (signal_open_printer_error):
11162         * device-msw.c (msprinter_init_device):
11163         * device-msw.c (ensure_not_printing):
11164         * device-msw.c (plist_get_margin):
11165         * device-msw.c (Fmsprinter_select_settings):
11166         * device-msw.c (finalize_devmode):
11167         * device-msw.c (Fmsprinter_settings_despecialize):
11168         * device-msw.c (signal_enum_priner_error):
11169         * extents.c (decode_extent):
11170         * extents.c (decode_map_extents_flags):
11171         * extents.c (decode_extent_at_flag):
11172         * extents.c (Fextent_at):
11173         * extents.c (Fextents_at):
11174         * extents.c (symbol_to_glyph_layout):
11175         [[[[2]]]] Use structured errors.
11176
11177         * dialog-msw.c:
11178         * dialog-msw.c (mswindows_is_dialog_msg):
11179         * dialog-msw.c (mark_mswindows_dialog_id):
11180         * dialog-msw.c (dialog_proc):
11181         * dialog-msw.c (handle_question_dialog_box):
11182         * dialog-msw.c (syms_of_dialog_mswindows):
11183         Define new object to clean up marking; use it as a dialog identifier.
11184         Call new delete-dialog-box-hook.
11185
11186         * dialog-x.c (dbox_selection_callback):
11187         * dialog-x.c (dbox_descriptor_to_widget_value):
11188         * dialog-x.c (x_make_dialog_box_internal):
11189         Call new delete-dialog-box-hook.
11190         Return an id.
11191
11192         * dialog.c:
11193         * dialog.c (syms_of_dialog):
11194         * dialog.c (vars_of_dialog):
11195         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11196
11197         * eval.c:
11198         * eval.c (signal_call_debugger):
11199         when noninteractive, output stack traces on the console instead
11200         of in a (never-seen) buffer.
11201
11202         * eval.c (signal_type_error):
11203         * eval.c (invalid_argument_2):
11204         * lisp.h:
11205         new funs for use w/structured errors.
11206
11207         * event-Xt.c:
11208         * event-Xt.c (x_to_emacs_keysym):
11209         * event-Xt.c (describe_event):
11210         * event-Xt.c (emacs_Xt_event_handler):
11211         * event-Xt.c (vars_of_event_Xt):
11212         * event-msw.c:
11213         * event-msw.c (mswindows_wnd_proc):
11214         * event-msw.c (vars_of_event_mswindows):
11215         rename {x,mswindows}-debug-events to debug-{}-events for
11216         consistency with other debug-foo variables.
11217
11218         * event-stream.c:
11219         document next-event more clearly.
11220
11221         * fileio.c (Ffile_name_directory):
11222         * fileio.c (Ffile_name_nondirectory):
11223         * fileio.c (Funhandled_file_name_directory):
11224         * fileio.c (file_name_as_directory):
11225         * fileio.c (Ffile_name_as_directory):
11226         * fileio.c (directory_file_name):
11227         * fileio.c (Fdirectory_file_name):
11228         * fileio.c (Fmake_temp_name):
11229         * fileio.c (Ffile_truename):
11230         * fileio.c (Fsubstitute_in_file_name):
11231         * fileio.c (expand_and_dir_to_file):
11232         * fileio.c (barf_or_query_if_file_exists):
11233         * fileio.c (check_executable):
11234         * fileio.c (Ffile_exists_p):
11235         * fileio.c (Ffile_writable_p):
11236         * fileio.c (Ffile_directory_p):
11237         * fileio.c (Ffile_regular_p):
11238         * fileio.c (Ffile_modes):
11239         * fileio.c (Ffile_newer_than_file_p):
11240         * fileio.c (Fverify_visited_file_modtime):
11241         * fileio.c (Fset_visited_file_modtime):
11242         * fileio.c (auto_save_1):
11243         (1). (2).
11244         fix up gcpro's.
11245
11246         * frame-msw.c:
11247         * frame-msw.c (mswindows_init_frame_1):
11248         * frame-msw.c (mswindows_enable_frame):
11249         * frame-msw.c (error_frame_unsizable):
11250         * frame-msw.c (msprinter_init_frame_1):
11251         * frame-msw.c (msprinter_init_frame_3):
11252         * frame-msw.c (console_type_create_frame_mswindows):
11253         (2).
11254         implement new enable/disable frame methods.
11255
11256         * frame-x.c:
11257         * frame-x.c (x_enable_frame):
11258         * frame-x.c (console_type_create_frame_x):
11259         implement new enable/disable frame methods.
11260
11261         * frame.c:
11262         * frame.c (Fdisable_frame):
11263         * frame.c (syms_of_frame):
11264         * frame.h (struct frame):
11265         implement new enable/disable frame methods/functions.
11266
11267         * general-slots.h:
11268         add initial-focus.
11269
11270         * glyphs-msw.c (mswindows_widget_instantiate):
11271         comment that initial-focus should be implemented.
11272
11273         * glyphs-widget.c:
11274         * glyphs-widget.c (check_valid_instantiator):
11275         * glyphs-widget.c (check_valid_orientation):
11276         * glyphs-widget.c (check_valid_tab_orientation):
11277         * glyphs-widget.c (check_valid_justification):
11278         * glyphs-widget.c (check_valid_border):
11279         * glyphs-widget.c (check_valid_callback):
11280         * glyphs-widget.c (check_valid_int_or_function):
11281         * glyphs-widget.c (check_valid_string_or_vector):
11282         * glyphs-widget.c (check_valid_item_list_1):
11283         * glyphs-widget.c (widget_validate):
11284         * glyphs-widget.c (combo_box_validate):
11285         * glyphs-widget.c (widget_instantiate):
11286         * glyphs-widget.c (syms_of_glyphs_widget):
11287         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11288         * glyphs-widget.c (image_instantiator_combo_box):
11289         * glyphs-widget.c (image_instantiator_scrollbar):
11290         * glyphs-widget.c (image_instantiator_tab_control):
11291         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11292         (2).
11293         support (unimplemented) keyword initial-focus.
11294         reindent long macros.
11295
11296         * glyphs-x.c (x_redisplay_widget):
11297         * glyphs-x.c (x_button_instantiate):
11298         * glyphs-x.c (x_button_redisplay):
11299         * glyphs-x.c (x_progress_gauge_instantiate):
11300         * glyphs-x.c (x_edit_field_instantiate):
11301         * glyphs-x.c (x_combo_box_instantiate):
11302         * glyphs-x.c (x_tab_control_instantiate):
11303         * glyphs-x.c (x_label_instantiate):
11304         * gui-x.c:
11305         * gui-x.c (button_item_to_widget_value):
11306         * gui-x.c (gui_items_to_widget_values_1):
11307         * gui-x.c (gui_item_children_to_widget_values):
11308         * gui-x.c (gui_items_to_widget_values):
11309         * gui-x.h:
11310         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11311         add new flag to gui-parsing routines to indicate whether
11312         accelerator specs should be supported.
11313
11314         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11315
11316         * glyphs.h (struct Lisp_Image_Instance):
11317         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11318         add initial-focus flag.
11319
11320         * gui.c:
11321         * gui.c (syms_of_gui):
11322         * gui.c (vars_of_gui):
11323         clean up menu-no-selection-hook.
11324
11325         * gui.h:
11326         support delete-dialog-box-hook.
11327
11328         * lread.c (Fload_internal):
11329         * lread.c (locate_file_in_directory_mapper):
11330         (1).
11331
11332         * lrecord.h:
11333         * lrecord.h (struct toolbar_button):
11334         * lrecord.h (syms_of_toolbar):
11335         document how to create a new object.
11336
11337         * menubar-msw.c (mswindows_char_is_accelerator):
11338         may be called on frames w/o menus.
11339
11340         * menubar.c (vars_of_menubar):
11341         clean up :filter docs.
11342
11343         * nt.c (readdir):
11344         * ntproc.c:
11345         (1).
11346
11347         * process-nt.c:
11348         * process-nt.c (validate_signal_number):
11349         * process-nt.c (signal_cannot_launch):
11350         * process-nt.c (nt_create_process):
11351         * process-nt.c (nt_send_process):
11352         * process-nt.c (nt_kill_child_process):
11353         * process-nt.c (nt_open_network_stream):
11354         * process-nt.c (syms_of_process_nt):
11355         (2).
11356         delete quote-handling.  call new lisp code that does it better.
11357
11358         * process-unix.c (connect_to_file_descriptor):
11359         * process-unix.c (allocate_pty):
11360         * process-unix.c (unix_send_process):
11361         * process-unix.c (unix_kill_child_process):
11362         * process-unix.c (unix_open_network_stream):
11363         * process-unix.c (unix_open_multicast_group):
11364         (1). (2).
11365
11366         * process.c:
11367         * process.c (Fstart_process_internal):
11368         (2).  need to canonicalize process path even if absolute.
11369
11370         * select-msw.c (symbol_to_ms_cf):
11371         * select-msw.c (ms_cf_to_symbol):
11372         * select-msw.c (cf_is_autofreed):
11373         * select-msw.c (mswindows_destroy_selection):
11374         * select.c:
11375         * select.c (syms_of_select):
11376         * select.h:
11377         support dibv5, fix bugs. (from Mike Alexander)
11378
11379         * select.c (Fget_selection_internal):
11380         * select.c (select_convert_out):
11381
11382         * sysdep.c:
11383         * sysdep.c (xemacs_stat):
11384         renamed.
11385
11386         * sysdep.c (mkdir):
11387         * sysdep.c (rmdir):
11388         but keep original stat() here because we provide encapsulation
11389         around these funs.
11390
11391         * sysfile.h:
11392         * sysfile.h (fstat):
11393         remove stat garbage.
11394
11395         * syswindows.h:
11396         fix X/MSW conflict.
11397         don't include tchar.h.  it's inappropriate because it makes
11398         compile-time distinctions when we want runtime distinctions.
11399         (we provide our own tchar replacements)
11400
11401         * toolbar.c:
11402         use default object printer for toolbar-button.
11403
11404         * unexcw.c:
11405         make sure we don't encapsulate.
11406
11407         * window.c (vars_of_window):
11408         emphasize that temp-buffer-show-hook is obsolete.
11409
11410 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11411
11412         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11413         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11414
11415         * events.c (Fevent_timestamp_lessp):
11416         Not 64-bit clean.  Use EMACS_INT, not int.
11417
11418 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11419
11420         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11421         unsigned int and changed the last enum to
11422         lrecord_type_last_built_in_type.
11423         (lrecord_implementations_table): changed prototype to know how
11424         long the array is supposed to be.
11425         (lrecord_type_count): new unsigned int to keep track of the
11426         current number of lisp lrecord types.
11427         (DEFINE_EXTERNAL_LRECORD):
11428         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11429         dynamic-modules to declare new lisp types. They are the same
11430         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11431         int for each new type, and increment lrecord_type_count by 1.
11432
11433         * alloc.c (lrecord_implementations_table): Changed to reference
11434         lrecord_type_last_built_in_type for the size of the array.
11435         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11436
11437 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11438
11439         * glyphs.h (check_valid_item_list): Renamed from
11440         check_valid_item_list_1.
11441
11442 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11443
11444         * select.c (Qselect_coerce): New.
11445         * select.c (Vselection_coercion_alist): New.
11446         * select.c (syms_of_select): Declare.
11447         * select.c (get-selection-internal): Use it.
11448         Use the new select-coerce functionality.
11449
11450         * select.c (select_coerce): New.
11451         * select.h (select_coerce): Declare.
11452         New function to coerce one type of data into another.
11453
11454 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11455
11456         * callproc.c (Fcall_process_internal):
11457         (Fcall_process_internal):
11458         * process-unix.c (unix_create_process):
11459         Save and restore the value of errno, so that error messages are accurate.
11460
11461 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11462
11463         * elhash.c (print_hash_table):
11464         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11465         Prettify docstrings and indentation.
11466
11467 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11468
11469         * window.c (Fwindow_pixel_edges): Subtract frame border and
11470         gutter size.
11471
11472 2000-07-31  Andy Piper  <andy@xemacs.org>
11473
11474         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11475         will acknowledge the change.
11476
11477         * glyphs.h: declare tab_control_order_only_changed.
11478
11479         * glyphs-x.c (x_tab_control_redisplay): use
11480         tab_control_order_only_changed.
11481
11482         * glyphs-widget.c (tab_control_order_only_changed): new function.
11483
11484         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11485         tab_control_order_only_changed.
11486
11487         * gui.c (gui_item_equal_sans_selected): new function.
11488         (gui_item_equal): use it.
11489
11490         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11491         :properties in favor of :items..
11492
11493         * glyphs-widget.c (check_valid_item_list): rename from
11494         check_valid_item_list_1.
11495         (check_valid_item_list_1): renamed.
11496         (combo_box_validate): deprecate :properties in favor of :items.
11497         (widget_instantiate): ditto.
11498         (tab_control_update): ditto.
11499         (image_instantiator_combo_box): ditto.
11500         (image_instantiator_tree_view): ditto.
11501         (image_instantiator_tab_control): ditto.
11502         (layout_post_instantiate): remove dead code.
11503
11504         * print.c (debug_print_no_newline): only write to debugger if in
11505         WIN32_NATIVE.
11506
11507         * elhash.c (Fmake_hash_table): update doc string.
11508
11509         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11510         messages whilst in GC. This at least stops XEmacs crashing but has
11511         the potential for wierd behaviour.
11512
11513 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11514
11515         * config.h.in:
11516         Make existence of s&m files optional.
11517
11518         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11519         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11520         * s/gnu.h: Remove HAVE_GETLOADAVG.
11521         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11522         * s/sol2.h: Remove HAVE_GETLOADAVG.
11523         * lisp.h: Remove getloadavg() declaration.
11524         * fns.c:
11525         Include <sys/loadavg.h> if available.
11526         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11527         * config.h.in:  Group together getloadavg()-related macros.
11528         Use only configure-time tests to detect getloadavg().
11529
11530 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11531
11532         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11533
11534 2000-07-25  Andy Piper  <andy@xemacs.org>
11535
11536         * syswindows.h: add tchar.h for native builds.
11537
11538         * frame.c (syms_of_frame): remove set-glyph-image.
11539
11540         * general-slots.h: add Qset_glyph_image.
11541
11542         * glyphs-widget.c (layout_update): add domain arg to
11543         set-glyph-image.
11544         (syms_of_glyphs_widget): remove set-glyph-image.
11545
11546 2000-07-23  Ben Wing  <ben@xemacs.org>
11547
11548         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11549         Vpopup_frame_list.
11550
11551 2000-07-22  Andy Piper  <andy@xemacs.org>
11552
11553         * symsinit.h: add syms_of_win32().
11554
11555         * gui-msw.c (syms_of_gui_mswindows): remove
11556         Fmswindows_shell_execute.
11557         (Fmswindows_shell_execute): moved to win32.c.
11558
11559         * emacs.c (main_1): add syms_of_win32 ().
11560
11561         * win32.c (init_potentially_nonexistent_functions): rewrite in
11562         compiler-friendly terms.
11563         (Fmswindows_shell_execute): move here from gui-msw.c.
11564         (syms_of_win32): new.
11565
11566         * device-msw.c (Fmswindows_printer_list): clean up args to
11567         EnumPrinters.
11568         Don't include tchar under cygwin or mingw.
11569         (msprinter_default_printer): make cygwin-friendly.
11570
11571 2000-07-21  Andy Piper  <andy@xemacs.org>
11572
11573         * glyphs-widget.c (image_instantiator_tree_view): use tab
11574         control's update function.
11575         (layout_property): new function. Retrieve items.
11576
11577         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11578         function. Re-populate the tree view from the pending items.
11579
11580         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11581         is designated the parent if the domain is an image instance. This
11582         is needed so that dirtiness can be cascade up the hierarchy and
11583         thus for layout children to be redisplayed correctly.
11584         (allocate_image_instance): rename glyph -> parent.
11585
11586         * redisplay.h: change redisplay_output_layout signature.
11587
11588         * redisplay-msw.c (mswindows_output_display_block): use domain
11589         arg.
11590
11591         * redisplay-x.c (x_output_display_block): use domain arg.
11592
11593 2000-07-10  Andy Piper  <andy@xemacs.org>
11594
11595         * window.c (Fset_window_configuration): add comment.
11596
11597         * redisplay-output.c (compare_runes):
11598         (redisplay_output_subwindow): redisplay rather than update subwindow.
11599         (redisplay_output_layout): ditto.
11600
11601         * redisplay-msw.c (mswindows_frame_output_end):
11602         (mswindows_frame_output_end): make defer window pos optional.
11603
11604         * lisp.h: add Flast.
11605
11606         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11607         normalize method. Change update method to be for changed
11608         instantiators. Add redisplay method. Change signature of layout
11609         method.
11610         (struct Lisp_Image_Instance): add instantiator.
11611         (IMAGE_INSTANCE_INSTANTIATOR): new.
11612         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11613         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11614         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11615
11616         * glyphs.c:
11617         (find_instantiator_differences): new function.
11618         (Fset_instantiator_property): new convenience function.
11619         (check_image_instance_structure): strictly check for vector
11620         instantiators.
11621         (normalize_image_instantiator): make non-static.
11622         (instantiate_image_instantiator): pass on dest_mask and use new
11623         signatures for image_instance_layout and friends.
11624         (mark_image_instance): mark the instantiator. Mark the subwindow
11625         face not the widget face.
11626         (image_instance_equal): add instantiator.
11627         (image_instance_hash): ditto.
11628         (allocate_image_instance): ditto.
11629         (Fset_image_instance_property): removed.
11630         (Fimage_instance_file_name): ditto.
11631         (Fcolorize_image_instance): ditto.
11632         (image_instance_layout): add offsets to be set.
11633         (update_image_instance): new function. update an image instance
11634         from its changed instantiator.
11635         (inherit_normalize): add dest_mask.
11636         (xbm_normalize): ditto.
11637         (xface_normalize): ditto.
11638         (xpm_normalize): ditto.
11639         (text_update): set_property -> update.
11640         (image_instantiate): use the glyph identity as a hash key, not the
11641         instantiator.
11642         (glyph_width): use new image_instance_layout signature.
11643         (glyph_ascent): ditto.
11644         (glyph_descent): ditto.
11645         (glyph_height): ditto.
11646         (glyph_query_geometry): ressurrect.
11647         (glyph_layout): ditto.
11648         (redisplay_subwindow): update -> redisplay.
11649         (syms_of_glyphs): add Fset_instantiator_property.
11650         (image_instantiator_format_create): set_property -> update.
11651
11652         * glyphs-x.c:
11653         (autodetect_normalize): add dest_maks to signature.
11654         (x_redisplay_subwindow): update -> redisplay.
11655         (x_redisplay_widget): ditto.
11656         (x_button_redisplay): ditto.
11657         (x_progress_gauge_redisplay): ditto.
11658         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11659         stacking order.
11660         (console_type_create_glyphs_x): update -> redisplay.
11661         (image_instantiator_format_create_glyphs_x): ditto.
11662
11663         * glyphs-widget.c:
11664         (check_valid_instantiator): disallow glyphs in the instantiator,
11665         they must now be vectors.
11666         (check_valid_instantiator_list): ditto.
11667         (glyph_instantiator_to_glyph): use internal symbol rather than
11668         intern.
11669         (widget_update): renamed from widget_set_property. Call cascaded
11670         update methods.
11671         (redisplay_widget): renamed from update_widget.
11672         (widget_layout): image_instance_layout now takes position as well
11673         as size.
11674         (widget_normalize): ditto.
11675         (widget_instantiate): ditto.
11676         (tab_control_query_geometry) ditto.:
11677         (tab_control_update): renamed from tab_control_set_property.
11678         (progress_gauge_update): set_property -> update.
11679         (layout_normalize): rewrite so that child instantiators are
11680         normalized also.
11681         (layout_update): new function. Create glyphs from the normalized
11682         children and cope with any other layout keywords. We do not
11683         instantiate children here that will be take care of by
11684         redisplay_output_layout.
11685         (layout_instantiate): call layout_update and not much else.
11686         (layout_post_instantiate): not sure whether this is needed
11687         anymore.
11688         (layout_query_geometry): query glyph geometry rather than
11689         image_instance geometry.
11690         (layout_layout): set offsets from pass in parameters. Use glyph
11691         geometry and layout functions rather than image instance ones.
11692         (native_layout_layout): ditto.
11693         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11694         (image_instantiator_widget): set_property -> update.
11695         (image_instantiator_buttons): ditto.
11696         (image_instantiator_progress_guage): ditto.
11697         (image_instantiator_tab_control): ditto.
11698         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11699         (image_instantiator_layout): add update method.
11700
11701         * glyphs-msw.c (bmp_normalize):
11702         (mswindows_resource_normalize): add dest_mask so that it can be
11703         proprogated by layout_normalize.
11704         (begin_defer_window_pos): make optional because it may not be the
11705         right thing to do and it introduces differences with X.
11706         (mswindows_unmap_subwindow): ditto.
11707         (mswindows_map_subwindow): ditto.
11708         (mswindows_redisplay_subwindow): renamed from
11709         mswindows_update_subwindow.
11710         (mswindows_redisplay_widget): ditto.
11711         (mswindows_button_redisplay): renamed from
11712         mswindows_button_update. Update is now what the instantiation
11713         function does for a changed instantiator.
11714         (mswindows_progress_gauge_instantiate): set the progress value
11715         here if appropriate.
11716         (mswindows_tab_control_redisplay): cope with re-ordering of the
11717         members of the tab widget by simply selecting the new top
11718         widget. This makes things appear ok if you click on a tab.
11719         (mswindows_combo_box_instantiate): image_instance_layout now takes
11720         position as well as size.
11721         (mswindows_progress_gauge_redisplay): renamed from
11722         mswindows_progress_gauge_update.
11723         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11724         (image_instantiator_format_create_glyphs_mswindows): ditto.
11725
11726         * glyphs-eimage.c (jpeg_normalize):
11727         (gif_normalize):
11728         (png_normalize):
11729         (tiff_normalize): add dest_mask so that it can be proprogated by
11730         layout_normalize.
11731
11732         * elhash.c:
11733         (print_hash_table):
11734         (hash_table_weakness_validate):
11735         (decode_hash_table_weakness):
11736         (Fhash_table_weakness):
11737         (Fhash_table_type):
11738         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11739
11740         * console.h (struct console_methods): move update_* to
11741         redisplay_*.
11742
11743 2000-07-20  Ben Wing  <ben@xemacs.org>
11744
11745         * *.[ch] (XSETOBJ): remove unused middle argument.
11746         lisp-disunion.h: correct wrap_object() to one argument.
11747
11748 2000-07-15  Ben Wing  <ben@xemacs.org>
11749
11750         * s/cygwin32.h:
11751         * s/cygwin32.h (CYGWIN_CONV_PATH):
11752         Add missing logb prototype for v1.1.
11753         Use post-b20 names and alias to pre-b20 names when pre-b20.
11754
11755         * s/windowsnt.h: [5].
11756
11757 2000-07-15  Ben Wing  <ben@xemacs.org>
11758
11759         * Makefile.in.in (x_objs):
11760         * Makefile.in.in (sheap_objs):
11761         * Makefile.in.in (objs):
11762         added win32.o, cosmetic cleanups.
11763
11764         * alloc.c (Fmake_byte_code):
11765         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11766         etc. macros which declare their own args now.
11767
11768         * alloc.c (syms_of_alloc):
11769         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11770
11771         * buffer.c:
11772         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11773
11774         * buffer.c (Fget_file_buffer):
11775         Fixed GCPRO problem.
11776
11777         * buffer.c (get_truename_buffer):
11778         Fixed comment about GC checking.
11779
11780         * buffer.c (syms_of_buffer):
11781         Undeclared those dedicated frame funs.
11782         [2].
11783
11784         * buffer.h:
11785         Define convenience macros for internal/external conversions.
11786         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11787         and Qenvironment_variable_encoding for cleaner code.
11788
11789         * bufslots.h:
11790         Remove dedicated-frame; in lisp.
11791
11792         * bytecode.c (funcall_compiled_function):
11793         [1].
11794
11795         * bytecode.c (syms_of_bytecode):
11796         [2].
11797
11798         * console-msw.c:
11799         * console-msw.c (mswindows_show_console): Rewrote.
11800
11801         * console-msw.c (Fmswindows_debugging_output): New.
11802         Sends to OutputDebugString (special MSWin debugger interface).
11803
11804         * console-msw.c (Fmswindows_message_box):
11805         Fixed stupid bugs so it works when called from kill-emacs.
11806
11807         * console-msw.c (syms_of_console_mswindows):
11808         Declare Fmswindows_debugging_output.
11809
11810         * console-msw.h:
11811         New MSWin prototypes.
11812
11813         * console-msw.h (struct mswindows_frame):
11814         New entry last-click-mods for improved button-modifier support.
11815
11816         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11817         New struct entry `popup' with corresponding accessor.
11818
11819         * console-x.c:
11820         * console-x.c (split_up_display_spec):
11821         * console-x.c (get_display_arg_connection):
11822         * console-x.c (x_semi_canonicalize_console_connection):
11823         * console-x.c (x_canonicalize_device_connection):
11824         [[[6]]]: Change char to more specific type.
11825         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11826
11827         * console-x.c (x_semi_canonicalize_console_connection):
11828         * console-x.c (x_canonicalize_device_connection):
11829         [[[9]]]: Fix up error signalling to use new structured error system.
11830
11831         * console-x.h:
11832         [[[4]]]: Define codesys aliases:
11833         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11834         Qx_color_name_encoding, Qx_display_name_encoding.
11835
11836         * console.h (struct console_methods):
11837         New method make_dialog_box_internal supersedes older
11838         popup_dialog_box method.
11839
11840         * data.c:
11841         Define many new errors, part of new structured errors.
11842
11843         * data.c (init_errors_once_early):
11844         * data.c (syms_of_data):
11845         [2].
11846
11847         * device-msw.c (mswindows_init_device):
11848         [[[5]]]: Cleanup to support NT 3.51.
11849
11850         * device-msw.c (decode_devmode): Cleanup.
11851
11852         * device-msw.c (mswindows_handle_print_setup_dialog_box):
11853         * device-msw.c (mswindows_handle_print_dialog_box):
11854         * device-msw.c (mswindows_handle_page_setup_dialog_box):
11855         * device-msw.c (syms_of_device_mswindows):
11856         Delete the dialog box primitives recently introduced by Kirill and
11857         instead interface to general dialog box interface.
11858
11859         * device-x.c:
11860         * device-x.c (compute_x_app_name):
11861         * device-x.c (x_init_device):
11862         * device-x.c (Fx_valid_keysym_name_p):
11863         * device-x.c (Fx_set_font_path):
11864         [6].
11865         [7].
11866
11867         * device.h (wrap_device): New.
11868         First of its kind; meant to replace XSETDEVICE.
11869
11870         * dialog-msw.c: Many file-dialog symbols.
11871
11872         * dialog-msw.c (mswindows_register_popup_frame): New.
11873         * dialog-msw.c (mswindows_is_dialog_msg): New.
11874         For supporting kbd traversal in dialog boxes.
11875
11876         * dialog-msw.c (dialog_proc):
11877         Support hitting ESC in dialogs.
11878
11879         * dialog-msw.c (struct):
11880         Common dialog box errors.
11881
11882         * dialog-msw.c (handle_file_dialog_box): New.
11883         Add file dialog code.
11884
11885         * dialog-msw.c (handle_question_dialog_box):
11886         Redo existing code to support new question dialog syntax.
11887
11888         * dialog-msw.c (console_type_create_dialog_mswindows):
11889         We support new dialog console method.
11890
11891         * dialog-msw.c (syms_of_dialog_mswindows):
11892         * dialog-msw.c (vars_of_dialog_mswindows):
11893         New file dialog symbols, vars.
11894
11895         * dialog-x.c:
11896         * dialog-x.c (maybe_run_dbox_text_callback):
11897         * dialog-x.c (dbox_descriptor_to_widget_value):
11898         * dialog-x.c (x_make_dialog_box_internal):
11899         * dialog-x.c (console_type_create_dialog_x):
11900         Mule-ize entire file.
11901         Redo to support question dialog syntax.
11902         [6].
11903
11904         * dialog.c:
11905         * dialog.c (Fmake_dialog_box_internal):
11906         * dialog.c (syms_of_dialog):
11907         Kill old popup-dialog-box, replace with new primitive.
11908         Just call device method or signal error.
11909
11910         * eldap.c (Fldap_open):
11911         * eldap.c (Fldap_search_basic):
11912         * eldap.c (Fldap_add):
11913         * eldap.c (Fldap_modify):
11914         [1].
11915         [7].
11916
11917         * emacs.c:
11918         * emacs.c (make_arg_list_1):
11919         * emacs.c (make_arg_list):
11920         Mule-ize call to dll_init().
11921         [6].
11922         [8].
11923
11924         * emacs.c (make_argc_argv):
11925         * emacs.c (free_argc_argv):
11926         * emacs.c (init_cmdargs):
11927         * emacs.c (main_1):
11928         * emacs.c (Fkill_emacs):
11929         * emacs.c (Fdump_emacs):
11930         Update comments about what can be used in syms_* etc.
11931         Call init_win32() when necessary.
11932         Fix up MS Win dialog box in kill-buffer to actually work right.
11933         [7].
11934
11935         * eval.c:
11936         * eval.c (For):
11937         * eval.c (Fand):
11938         * eval.c (Fprogn):
11939         * eval.c (Fprog1):
11940         * eval.c (Fprog2):
11941         * eval.c (FletX):
11942         * eval.c (Flet):
11943         * eval.c (condition_case_3):
11944         * eval.c (Feval):
11945         * eval.c (function_argcount):
11946         * eval.c (funcall_lambda):
11947         [1].
11948
11949         * eval.c (type_error): New.
11950         * eval.c (maybe_type_error): New.
11951         * eval.c (continuable_type_error): New.
11952         * eval.c (maybe_continuable_type_error): New.
11953         * eval.c (type_error_with_frob): New.
11954         * eval.c (maybe_type_error_with_frob): New.
11955         * eval.c (continuable_type_error_with_frob): New.
11956         * eval.c (maybe_continuable_type_error_with_frob): New.
11957         New functions for use with structured errors.
11958
11959         * event-Xt.c:
11960         * event-Xt.c (x_event_to_emacs_event):
11961         Buttons are now modifiers too.
11962
11963         * event-Xt.c (emacs_Xt_current_event_timestamp):
11964         Implement new event method.
11965         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
11966
11967         * event-msw.c:
11968         * event-msw.c (ntpipe_shove_writer): [5].
11969         * event-msw.c (mswindows_enqueue_mouse_button_event):
11970         * event-msw.c (mswindows_drain_windows_queue):
11971         * event-msw.c (mswindows_wnd_proc): [7].
11972         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
11973         * event-msw.c (mswindows_modifier_state):
11974         Throughout: support new button modifiers.
11975
11976         * event-msw.c (emacs_mswindows_current_event_timestamp):
11977         Implement new event method.
11978         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
11979
11980         * event-stream.c:
11981         * event-stream.c (event_stream_current_event_timestamp): New.
11982         * event-stream.c (maybe_kbd_translate): New functionality.
11983         * event-stream.c (vars_of_event_stream):
11984         Document new kbd-translate-table functionality.
11985
11986         * event-stream.c (Fcurrent_event_timestamp): New.
11987         New primitive for use in fabricated events.
11988         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
11989
11990         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
11991
11992         * events.c:
11993         * events.c (Fmake_event):
11994         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
11995         [1].
11996         [9].
11997
11998         * events.c (format_event_object): fix gcc warnings.
11999
12000         * events.c (Fevent_timestamp): Document new primitives.
12001
12002         * events.c (TIMESTAMP_HALFSPACE): New.
12003
12004         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12005         comparing timestamps correctly (half-space algorithm).
12006
12007         * events.c (Fevent_modifier_bits): Doc fix.
12008
12009         * events.c (Fevent_modifiers): Major doc addition.
12010         * events.c (event_x_y_pixel_internal): Typo fix.
12011         * events.c (syms_of_events): Declare new primitives.
12012
12013         * events.h:
12014         Update long comment for button modifiers, timestamps.
12015
12016         * events.h (struct event_stream):
12017         New current_event_timestamp method.
12018
12019         * extents.c:
12020         * extents.c (extent_in_region_p):
12021         * extents.c (decode_extent):
12022         * extents.c (Fset_extent_parent):
12023         * extents.c (decode_map_extents_flags):
12024         Fix gcc warnings.
12025         [9].
12026
12027         * extents.c (struct extent_at_arg):
12028         * extents.c (decode_extent_at_flag):
12029         * extents.c (extent_at_mapper):
12030         * extents.c (extent_at_bytind):
12031         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12032         * extents.c (Fextents_at): New primitive. [9].
12033         * extents.c (symbol_to_glyph_layout): [9].
12034         Support new primitive `extents-at'.
12035
12036
12037         * extents.c (get_text_property_bytind):
12038         extent_at_bytind has another arg.
12039         [9].
12040
12041         * extents.c (syms_of_extents): New primitive.
12042
12043         * file-coding.c (Fmake_coding_system): [1].
12044         * file-coding.c (subsidiary_coding_system): fix gcc warning
12045         * file-coding.c (syms_of_file_coding): [2].
12046
12047         * fileio.c (Fexpand_file_name):
12048         * fileio.c (Fsysnetunam):
12049         * fileio.c (Ffile_exists_p):
12050         * fileio.c (Ffile_executable_p):
12051         * fileio.c (Fverify_visited_file_modtime):
12052         Clean up GCPROing.
12053
12054         * fileio.c (syms_of_fileio): [2].
12055
12056         * filelock.c (lock_file_1):
12057         * filelock.c (current_lock_owner):
12058         * filelock.c (lock_if_free):
12059         * filelock.c (lock_file):
12060         * filelock.c (unlock_file):
12061         Clean up GCPROing.
12062
12063         * fns.c (concat): Fix gcc warning.
12064
12065         * fns.c (Fmember):
12066         * fns.c (Fold_member):
12067         * fns.c (Fmemq):
12068         * fns.c (Fold_memq):
12069         * fns.c (memq_no_quit):
12070         * fns.c (Fassoc):
12071         * fns.c (Fold_assoc):
12072         * fns.c (Fassq):
12073         * fns.c (Fold_assq):
12074         * fns.c (assq_no_quit):
12075         * fns.c (Frassoc):
12076         * fns.c (Fold_rassoc):
12077         * fns.c (Frassq):
12078         * fns.c (Fold_rassq):
12079         * fns.c (rassq_no_quit):
12080         * fns.c (Fdelete):
12081         * fns.c (Fold_delete):
12082         * fns.c (Fdelq):
12083         * fns.c (Fold_delq):
12084         * fns.c (delq_no_quit):
12085         * fns.c (Fremassoc):
12086         * fns.c (Fremassq):
12087         * fns.c (remassq_no_quit):
12088         * fns.c (Fremrassoc):
12089         * fns.c (Fremrassq):
12090         * fns.c (remrassq_no_quit):
12091         * fns.c (Freverse):
12092         * fns.c (mapcar1):
12093         [1].
12094
12095         * frame-msw.c (mswindows_init_frame_1):
12096         * frame-msw.c (mswindows_delete_frame):
12097         Register popups with dialog code so keyboard traversing works.
12098
12099         * frame-tty.c (tty_raise_frame_no_select): [1].
12100
12101         * frame-x.c:
12102         * frame-x.c (x_set_frame_text_value):
12103         * frame-x.c (x_set_frame_properties):
12104         * frame-x.c (x_create_widgets):
12105         [7].
12106
12107         * frame.c:
12108         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12109
12110         * frame.h (wrap_frame): New.
12111         Macro like wrap_device.
12112
12113         * general.c:
12114         * general.c (SYMBOL):
12115         * general.c (syms_of_general):
12116         Major reorg.  This is now just a wrapper and symbols themselves
12117         are listed in general-slots.h.
12118
12119         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12120         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12121
12122         * glyphs-msw.c (mswindows_native_layout_instantiate):
12123         Add DS_CONTROL so keyboard traversal will work.
12124
12125         * glyphs-widget.c:
12126         * glyphs-widget.c (syms_of_glyphs_widget):
12127         Move some symbols to general-slots.h.
12128
12129         * glyphs-x.c:
12130         * glyphs-x.c (xbm_instantiate_1):
12131         * glyphs-x.c (x_xbm_instantiate):
12132         * glyphs-x.c (x_xface_instantiate):
12133         * glyphs-x.c (autodetect_instantiate):
12134         * glyphs-x.c (cursor_font_instantiate):
12135         * glyphs-x.c (x_update_widget):
12136         * glyphs-x.c (x_widget_instantiate):
12137         * glyphs.c (bitmap_to_lisp_data):
12138         * glyphs.c (pixmap_to_lisp_data):
12139         [7].
12140
12141         * glyphs.c (syms_of_glyphs):
12142         [2].
12143
12144         * gui-x.c:
12145         * gui-x.c (print_widget_value):
12146         * gui-x.c (menu_separator_style_and_to_external):
12147         * gui-x.c (add_accel_and_to_external):
12148         * gui-x.c (button_item_to_widget_value):
12149         * gui-x.c (gui_items_to_widget_values_1):
12150         * gui-x.c (gui_items_to_widget_values):
12151         * gui-x.c (syms_of_gui_x):
12152         * gui-x.c (vars_of_gui_x):
12153         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12154         [9].
12155
12156         * gui-x.h:
12157         Muleize, prototype changes matching gui-x.c.
12158
12159         * gui.c:
12160         * gui.c (separator_string_p):
12161         * gui.c (gui_item_add_keyval_pair):
12162         * gui.c (make_gui_item_from_keywords_internal):
12163         * gui.c (signal_too_long_error):
12164         * gui.c (parse_gui_item_tree_item):
12165         * gui.c (syms_of_gui):
12166         * gui.c (vars_of_gui):
12167         * gui.h:
12168         menu-no-selection-hook moved here (used by MSWin).
12169         Move some symbols to general-slots.h.
12170         [6].
12171         [9].
12172
12173         * insdel.c (get_buffer_pos_char):
12174         * insdel.c (get_buffer_range_char):
12175         Add GC comments.
12176
12177         * keymap.c (keymap_lookup_directly):
12178         * keymap.c (keymap_store):
12179         * keymap.c (ensure_meta_prefix_char_keymapp):
12180         * keymap.c (describe_map):
12181         * keymap.h:
12182         Support new button modifiers.
12183
12184         * lisp-disunion.h (wrap_object):
12185         * lisp-disunion.h (XSETOBJ):
12186         Rename make_obj to wrap_object.
12187
12188         * lisp-union.h:
12189         * lisp-union.h (make_int):
12190         * lisp-union.h (make_char):
12191         Support wrap_object.
12192
12193         * lisp.h:
12194         * lisp.h (LIST_LOOP):
12195         * lisp.h (EXTERNAL_LIST_LOOP):
12196         * lisp.h (LIST_LOOP_2):
12197         * lisp.h (EXTERNAL_LIST_LOOP_1):
12198         * lisp.h (EXTERNAL_LIST_LOOP_2):
12199         * lisp.h (EXTERNAL_LIST_LOOP_3):
12200         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12201         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12202         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12203         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12204         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12205         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12206         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12207         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12208         * lisp.h (struct Lisp_Symbol):
12209         * lisp.h (maybe_continuable_error_with_frob):
12210         Fix up section comments.
12211         Add new types for char to indicate usage.
12212         Delete symbols auto-generated from general-slots.h.
12213         Add prototypes for structured error functions.
12214         Add long comments describing looping macros and change interface
12215         so that lvalues are automatically declared.
12216         Add NO_DECLARE macro in case callers want to declare lvalues
12217         themselves.
12218
12219         * lread.c (read_syntax_error):
12220         * lread.c (continuable_read_syntax_error):
12221         * lread.c (read_structure):
12222         * lread.c (sequence_reader):
12223         * lread.c (read_list_conser):
12224         * lread.c (read_compiled_function):
12225         Rename syntax_error and continuable_syntax_error to avoid clash
12226         with same-named structured error functions.
12227
12228         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12229         * menubar-msw.c (populate_menu_add_item):
12230         * menubar-msw.c (populate_or_checksum_helper):
12231         [5].
12232         [9].
12233
12234         * menubar-x.c:
12235         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12236         Mule-ize whole file.
12237
12238         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12239
12240         * mule-charset.c (Fmake_charset):
12241         * mule-wnnfns.c (Fwnn_set_param):
12242         [1].
12243
12244         * ntproc.c (create_child):
12245         * ntproc.c (Fwin32_set_current_locale):
12246         Add comments portending doom.
12247
12248         * objects-msw.c:
12249         * objects-msw.c (old_font_enum_callback_2):
12250         * objects-msw.c (font_enum_callback_1):
12251         * objects-msw.c (mswindows_enumerate_fonts):
12252         [5].
12253
12254         * objects-x.c:
12255         * objects-x.c (allocate_nearest_color):
12256         * objects-x.c (x_parse_nearest_color):
12257         * objects-x.c (x_initialize_color_instance):
12258         * objects-x.c (x_print_color_instance):
12259         * objects-x.c (x_finalize_color_instance):
12260         * objects-x.c (x_valid_color_name_p):
12261         * objects-x.c (x_initialize_font_instance):
12262         * objects-x.c (x_print_font_instance):
12263         * objects-x.c (valid_x_font_name_p):
12264         * objects-x.c (truename_via_FONT_prop):
12265         * objects-x.c (truename_via_random_props):
12266         * objects-x.c (truename_via_XListFonts):
12267         * objects-x.c (x_font_truename):
12268         * objects-x.c (x_font_instance_truename):
12269         * objects-x.c (x_font_instance_properties):
12270         * objects-x.c (x_list_fonts):
12271         * objects-x.c (x_find_charset_font):
12272         Mule-ize entire file.
12273         [7].
12274
12275         * objects-x.h:
12276         Mule-verify.
12277
12278         * print.c:
12279         * print.c (std_handle_out_external):
12280         * print.c (debug_print_no_newline):
12281         * print.c (syms_of_print):
12282         Output to all debugger kinds in debug-print.
12283         Fix console-output code under MSWin to actually work.
12284
12285         * process-nt.c (send_signal):
12286         * process-nt.c (nt_create_process):
12287         Use newer Unicode macros.
12288
12289         * process-unix.c (unix_create_process):
12290         * process-unix.c (unix_canonicalize_host_name):
12291         * process-unix.c (unix_open_network_stream):
12292         [7].
12293
12294         * scrollbar-x.c:
12295         Mule-verify.
12296
12297         * search.c (syms_of_search):
12298         [2].
12299
12300         * select-msw.c (mswindows_destroy_selection):
12301         Use LIST_LOOP_2.
12302
12303         * select-x.c (symbol_to_x_atom):
12304         [7].
12305
12306         * select.c (syms_of_select):
12307         [2].
12308
12309         * sound.c (Fplay_sound_file):
12310         [7].
12311
12312         * specifier.c:
12313         * specifier.c (decode_specifier_type):
12314         * specifier.c (Fvalid_specifier_locale_type_p):
12315         * specifier.c (check_valid_locale_or_locale_type):
12316         * specifier.c (decode_locale):
12317         * specifier.c (decode_locale_type):
12318         * specifier.c (decode_locale_list):
12319         * specifier.c (check_valid_domain):
12320         * specifier.c (decode_specifier_tag_set):
12321         * specifier.c (Fcanonicalize_tag_set):
12322         * specifier.c (Fdefine_specifier_tag):
12323         * specifier.c (Fspecifier_tag_predicate):
12324         * specifier.c (check_valid_inst_list):
12325         * specifier.c (check_valid_spec_list):
12326         * specifier.c (decode_how_to_add_specification):
12327         * specifier.c (check_modifiable_specifier):
12328         * specifier.c (specifier_add_spec):
12329         * specifier.c (boolean_validate):
12330         * specifier.c (display_table_validate):
12331         [9].
12332
12333         * specifier.c (syms_of_specifier):
12334         Move some symbols to general-slots.h.
12335         [2].
12336
12337         * symbols.c:
12338         * symbols.c (Fmapatoms):
12339         * symbols.c (Fapropos_internal):
12340         Add GCPROs.
12341
12342         * symbols.c (set_default_buffer_slot_variable):
12343         * symbols.c (set_default_console_slot_variable):
12344         [1].
12345
12346         * symbols.c (defsymbol_massage_name_1):
12347         * symbols.c (defkeyword_massage_name):
12348         * symbols.c (deferror_1):
12349         * symbols.c (deferror):
12350         * symbols.c (deferror_massage_name_and_message):
12351         * symeval.h:
12352         * symeval.h (DEFSYMBOL):
12353         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12354
12355         * symbols.c (syms_of_symbols):
12356         [2].
12357
12358         * symsinit.h:
12359         * symsinit.h (init_win32): New.
12360         Also new is syms_of_dialog_mswindows.
12361
12362         * syswindows.h:
12363         Add new Unicode macros, missing Cygwin wide-char functions,
12364         convenience conversion macros for Qmswindows_tstr, macros for
12365         encapsulating required MSWin <-> Cygwin filename conversions,
12366         prototype for dynamically-extracted (not in NT 3.51) functions.
12367
12368         * toolbar-x.c:
12369         Mule-verify.
12370
12371         * tooltalk.c (Fadd_tooltalk_message_arg):
12372         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12373         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12374         [7].
12375
12376         * tooltalk.c (syms_of_tooltalk):
12377         [2].
12378
12379         * unexnt.c:
12380         * unexnt.c (unexec):
12381         Fix up headers, declaration of unexec() to be more standard.
12382
12383 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12384
12385         * offix.h: Revert change to guard macros - they're used in offix.c!
12386
12387 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12388
12389         * lisp.h: Defsubred Fdelete.
12390
12391         * console-msw.h:  (msprinter_default_printer): Added.
12392
12393         * console-msw.c (msprinter_canonicalize_console_connection):
12394         (msprinter_canonicalize_device_connection): Added.
12395
12396         * device-msw.c (msprinter_default_printer):
12397         (Fmswingows_get_default_printer):
12398         (signal_enum_priner_error):
12399         (Fmswingows_printer_list): Added.
12400
12401 2000-07-19  Martin Buchholz <martin@xemacs.org>
12402
12403         * XEmacs 21.2.35 is released.
12404
12405 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12406
12407         * select-x.c (x_handle_selection_request):
12408         Text selected in xemacs and pasted into xterm failed to appear.
12409         Spelling fixes and cosmetic changes.
12410
12411 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12412
12413         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12414         XEmacs frame (fix for doubling chars in dialog boxes).
12415
12416 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12417
12418         * select.c (select_convert_in, select_convert_out):
12419         Don't call intern() every time.
12420
12421         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12422         * select.c (vars_of_select): Initialise them.
12423
12424 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12425
12426         * select.c (selection-coercible-types): New.
12427
12428         * select.c (own-selection-internal):
12429         * select.c (get-selection-internal):
12430         MULE bug fix - these should default to COMPOUND_TEXT and not
12431         STRING for MULE. I think.
12432
12433         * select.c (select_convert_out): Use selection-coercible-types
12434         to find types that we can attempt to perform coercions on.
12435
12436 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12437
12438         * mule-wnnfns.c:
12439         * mule-canna.c:
12440         Add coding: cookie to identify encoding.
12441
12442         * mule-canna.c (CANNA_mode_keys): make static.
12443         Use proper prototypes, even for functions of no arguments.
12444         Remove external prototype for Fding().
12445
12446         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12447
12448         * select.c (syms_of_select): Add missing DEFSUBR.
12449
12450 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12451
12452         * select.c (get_selection_internal, own_selection_internal):
12453         Make the type default to STRING, rather than placing a nil type
12454         into Vselection_alist.
12455
12456 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12457
12458         * gpmevent.c (tty_selection_exists_p):
12459         * gpmevent.c (tty_own_selection):
12460         Updated parameter lists.
12461
12462 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12463
12464         * select.h (selection-alist): Removed declaration.
12465
12466         * select.h (get_local_selection):
12467         * select.c (get_local_selection):
12468         Made static.
12469
12470         * select.h (convert_selection): Removed declaration.
12471         * select.c (convert_selection): Removed.
12472         This function belongs in Lisp.
12473
12474         * select.h (select_convert_in): Declare.
12475         * select.h (select_convert_out): Declare.
12476         * select.c (select_convert_in): New.
12477         * select.c (select_convert_out): New.
12478         New conversion functions for other files to call.
12479
12480         * select.h (select_notify_buffer_kill): Declare.
12481         * select.c (select_notify_buffer_kill): New.
12482         New functions that get called from kill-buffer.
12483
12484         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12485         X-specific lisp code.
12486
12487         * select.h: Declare some of the lisp-visible functions for
12488         external use.
12489
12490         * select.c (clean_local_selection_data): Removed. This was
12491         a disgusting function, and previously should have been in
12492         select-x.c in any case. The functionality is now provided
12493         in select-convert-from-integer (select.el).
12494
12495         * select.c (available-selection-types): Fixed stupidity where
12496         INTEGER and ATOM got added twice. Also add STRING when we see an
12497         extent.
12498
12499         * select.c (get-selection-internal): Removed symbol stripping. No
12500         longer causes conversion when data comes from the internal cache.
12501
12502         * select.c (syms_of_select): Added new functions.
12503
12504         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12505         error checking - previously this called abort!
12506
12507         * select-x.c (x_own_selection): Changed comment.
12508
12509         * select-x.c (x_handle_selection_request): Use select_convert_out.
12510         Don't mess with selection-alist; it's an internal variable of select.c.
12511
12512         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12513
12514         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12515         rather than messing with selection-alist.
12516
12517         * select-msw.c (mswindows_get_foreign_selection):
12518         Use TO_INTERNAL_FORMAT rather than hacking.
12519
12520 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12521
12522         * process-unix.c (unix_open_multicast_group):
12523         (unix_open_multicast_group): Remove useless casts.
12524
12525 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12526
12527         * sound.c (Fplay_sound): Fix `unused variable' warning.
12528
12529         * emacs.c (main): Use correct type for _environ on SCO5.
12530
12531 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12532
12533         * console.h (own_selection_method):
12534         * console.h (selection_exists_p_method):
12535         * console.h (available_selection_types_method): New.
12536         * console.h (register_selection_data_type_method): New.
12537         * console.h (selection_data_type_name): New.
12538
12539         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12540         function & alist to track GlobalAlloc()'d handles that need
12541         releasing when the clipboard data gets replaced or emptied.
12542
12543         * event-msw.c (mswindows_wnd_proc): Call it.
12544
12545         * lisp.h, general.c (Qappend): New symbol representing a
12546         `how-to-add' mode.
12547
12548         * select.c (own-selection-internal):
12549         * select.c (selection-exists-p):
12550         * select.c (available-selection-types): New.
12551         * select.c (register-selection-data-type): New.
12552         * select.c (selection-data-type-name): New.  New functions to deal
12553         with device-specific selection data formats.
12554         * select.c (selection-converter-out-alist): Renamed.
12555         * select.c (selection-converter-in-alist): New.
12556         * select.c (selection-appender-alist): New.  Added new alists.
12557         * select.c (syms_of_select, vars_of_select): Added new symbols &
12558         variables.
12559         * select.c (get_local_selection): Split.
12560         * select.c: Removed spurious type checking - selections may now be
12561         of any type, not just strings.
12562         * select.c (own-selection-internal):
12563
12564         * select.h, select.c (convert_selection): New. Created
12565         convert_selection() function based on get_local_selection().
12566         * select.h, select.c (QCF_*): New symbols representing mswindows
12567         clipboard formats.
12568         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12569         symbols representing `how-to-add' modes.
12570
12571         * select-msw.c (x_sym_p): New.
12572         * select-msw.c (symbol_to_ms_cf): New.
12573         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12574         symbols & clipboard formats. Can also handle string names.
12575         * select-msw.c (mswindows_own_selection):
12576         * select-msw.c (mswindows_selection_exists_p):
12577         Added `data-type' parameter. Use it.
12578         * select-msw.c (mswindows_available_selection_types): New.
12579         * select-msw.c (mswindows_register_selection_data_type): New.
12580         * select-msw.c (mswindows_selection_data_type_name): New.
12581         * select-msw.c (mswindows_own_selection):
12582         * select-msw.c (mswindows_get_foreign_selection):
12583         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12584         * select-msw.c (console_create_select_mswindows): Added new methods.
12585         * select-msw.c (mswindows_destroy_selection): New.
12586         * select-msw.c (Vhandle_alist): New list.
12587         * select-msw.c (mswindows_own_selection):
12588
12589         * select-x.c (x_own_selection):
12590         * select-x.c (x_selection_exists_p):
12591         * select-x.c: Added some comments about maybe using new
12592         functionality.
12593         * select-x.c (x_own_selection):
12594
12595         * specifier.c: Remove definition of Qappend (now in general.c)
12596         * specifier.c (syms_of_specifier): Remove Qappend.
12597
12598 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12599
12600         * config.h.in: Add socklen_t.
12601
12602         * s/decosf4-0.h: No special compiler flags needed or desired.
12603         In particular, undefine _BSD for DEC OSF 4.0.
12604
12605 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12606
12607         * redisplay-msw.c (msprinter_frame_output_end): Added.
12608         (console_type_create_redisplay_mswindows): Referred the above.
12609
12610         * frame.c (setup_frame_without_minibuffer): Do not create a
12611         default minibuffer frame on a printer device.
12612
12613         * frame-msw.c (apply_dc_geometry): Added.
12614         (msprinter_start_page):
12615         (msprinter_init_frame_3):
12616         (msprinter_eject_page): Use it.
12617
12618         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12619         and removed residual duplex and orientation properties.
12620
12621 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12622
12623         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12624
12625         * unexalpha.c: Remove system prototypes from C sources!
12626
12627 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12628
12629         * eval.c: Remove references to M-x edit-options in DEFUNs for
12630         `defvar' and `defconst'.
12631
12632 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12633
12634         * config.h.in: Remove SMART_INCLUDE hackery.
12635
12636         PostgreSQL hacking:
12637         * config.h.in: Don't use SMART_INCLUDE.
12638
12639         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12640         * inline.c: Simply #include "postgresql.h"
12641         * postgresql.c:
12642         - Don't use SMART_INCLUDE
12643         - Use simply "const".
12644         - Use standard doc string conventions.
12645         - Use correct type for result of PQstatus.
12646
12647 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12648
12649         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12650
12651         C++ compilation changes.
12652         * config.h.in (EXTERN_C): Define.
12653         * config.h.in (not): This is also a C++ keyword.
12654         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12655         * cm.c: Use EXTERN_C.
12656         * redisplay-tty.c: Use EXTERN_C.
12657         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12658
12659 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12660
12661         * general.c: Remove duplicate definition for Qfunction.
12662
12663 2000-07-08  Ben Wing  <ben@xemacs.org>
12664
12665         * device-msw.c (msprinter_init_device):
12666         * device-msw.c (sync_printer_with_devmode):
12667         * device-msw.c (handle_devmode_changes):
12668         * device-msw.c (print_dialog_worker):
12669         * device-msw.c (Fmsprinter_apply_settings):
12670         * device-msw.c (hash_devmode):
12671         * device-msw.c (Fmsprinter_settings_despecialize):
12672         use Qmswindows_tstr, not Qctext.
12673
12674         * vm-limit.c (check_memory_limits):
12675         avoid infinite loop printing warning messages.
12676
12677 2000-07-05  Craig Lanning  <lanning@scra.org>
12678
12679         * Makefile.in.in: Add support for including the Windows resources
12680         when building with the cygwin and mingw targets.
12681
12682         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12683         not set or not correct.
12684         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12685         (init_initial_directory): Don't try to use $PWD on the
12686         WIN32_NATIVE target.
12687
12688         * s\cygwin32.h:
12689         [[Add -mwindows to eliminate console window.]] not required --ben
12690         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12691         (MAIL_USE_POP): removed; now handled by configure.
12692
12693         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12694         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12695         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12696         (MAIL_USE_POP): removed; now handled by configure.
12697         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12698         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12699         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12700         constant string.
12701         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12702         up from <winsock.h> via systime.h.
12703         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12704         (getpagesize): from Dan Holmsand, added.
12705         Added #endif which was left dangling by Ben's mega patch; added
12706         comment to help prevent this in the future.
12707
12708         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12709
12710 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12711
12712         * console-msw.h (struct mswindows_device): Removed unnecessary
12713         cached device geometry values.
12714         Added update_tick and an accessor macro.
12715         (Lisp_Devmode): Added lrecord declaration.
12716         (struct msprinter_device): Contain devmode as a Lisp object.
12717         Added mswindows_get_selected_frame_hwnd();
12718
12719         * console.h (struct console_methods): Indentation nitpicking.
12720
12721         * device-msw.c (mswindows_init_device): Do not initialize geometry
12722         cache. Initialize update tick.
12723         (mswindows_device_system_metrics): Ask the device for its geometry.
12724         (global_free_2_maybe):
12725         (devmode_to_hglobal):
12726         (handle_printer_changes):
12727         (ensure_not_printing):
12728         (print_dialog_worker):
12729         (Fmsprinter_print_setup_dialog):
12730         (Fmsprinter_print_dialog):
12731         (plist_get_margin):
12732         (plist_set_margin):
12733         (Fmsprinter_page_setup_dialog): Added functions.
12734         (sync_printer_with_devmode):
12735         (handle_devmode_changes):
12736         (Fmsprinter_get_settings):
12737         (Fmsprinter_select_settings):
12738         (Fmsprinter_apply_settings):
12739         (allocate_devmode):
12740         (Fmsprinter_settings_copy):
12741         (Fmsprinter_settings_despecialize):
12742         (print_devmode):
12743         (finalize_devmode):
12744         (equal_devmode):
12745         (hash_devmode): Added functions
12746         (syms_of_device_mswindows): Init devmode lrecord class.
12747
12748         * device.h: Added an exfun for find-device.
12749
12750         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12751         geometry; although, recreate the device compatible DC.
12752
12753         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12754         (msprinter_init_frame_3):
12755         (msprinter_frame_property):
12756         (msprinter_internal_frame_property_p):
12757         (msprinter_frame_properties):
12758         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12759         print job properties (will move to device settings).
12760
12761         * lisp.h: Added symbols.
12762
12763         * general.c (syms_of_general): Declared them.
12764
12765         * hash.c (string_hash): Added.
12766
12767         * lrecord.h (lrecord_type): Added devmode lrecord type.
12768
12769 2000-07-02  Mike Sperber <mike@xemacs.org>
12770
12771         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12772         FreeBSD 4.0.
12773
12774 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12775
12776         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12777         integer.
12778
12779 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12780
12781         * data.c (Fstring_to_number): Don't recognize floating point if
12782         base is not 10.
12783
12784 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12785
12786         * glyphs-widget.c (tab_control_query_geometry):
12787         (widget_query_geometry):
12788         (button_query_geometry):
12789         * glyphs.c (text_query_geometry):
12790         Enforce type correctness.
12791
12792 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12793
12794         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12795         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12796
12797 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12798
12799         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12800         conflicts with gcc's fixincluded version of FOO.h.
12801
12802         * glyphs.h (image_instance_geometry): Remove trailing `,'
12803
12804 2000-06-08  Mike Alexander  <mta@arbortext.com>
12805
12806         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12807         (shove_thread): Don't write the same output twice
12808         (make_ntpipe_output_stream): Increase priority of shove thread
12809         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12810         chance to run
12811         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12812         it.
12813
12814 2000-06-12  Ben Wing  <ben@xemacs.org>
12815
12816         * s\mingw32.h (sigset):
12817         * s\windowsnt.h (sigset):
12818         rename msw_ to mswindows_ for consistency with general convention.
12819
12820 2000-06-12  Ben Wing  <ben@xemacs.org>
12821
12822         * console-msw.c:
12823         * console-msw.c (mswindows_get_console_hwnd):
12824         * console-msw.c (mswindows_ensure_console_allocated):
12825         * console-msw.c (mswindows_hide_console):
12826         * console-msw.c (mswindows_show_console):
12827         * console-msw.c (mswindows_ensure_console_buffered):
12828         * console-msw.c (mswindows_output_console_string):
12829         * console-msw.c (mswindows_windows9x_p):
12830         * console-msw.h:
12831         * device-msw.c (mswindows_get_workspace_coords):
12832         * device-msw.c (mswindows_device_system_metrics):
12833         * dialog-msw.c (mswindows_popup_dialog_box):
12834         * event-msw.c (mswindows_wnd_proc):
12835         * frame-msw.c (mswindows_size_frame_internal):
12836         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12837         * menubar-msw.c (displayable_menu_item):
12838         * menubar-msw.c (mswindows_char_is_accelerator):
12839         * nt.c:
12840         * nt.c (mswindows_sigset):
12841         * nt.c (mswindows_sigrelse):
12842         * nt.c (mswindows_sigpause):
12843         * nt.c (mswindows_raise):
12844         * nt.c (timer_proc):
12845         * ntproc.c:
12846         * ntproc.c (find_child_console):
12847         * ntproc.c (sys_kill):
12848         * print.c:
12849         * print.c (std_handle_out_external):
12850         * process-nt.c (find_child_console):
12851         * process-nt.c (send_signal_the_95_way):
12852         * process-nt.c (ensure_console_window_exists):
12853         * process-nt.c (nt_create_process):
12854         * syssignal.h:
12855         rename msw_ to mswindows_ for consistency with general convention.
12856
12857         * emacs.c:
12858         * dumper.c:
12859         include nt.h, not syswindows.h.
12860
12861         * nt.c (mswindows_fstat):
12862         * nt.c (mswindows_stat):
12863         prefix mswindows_ instead of attempting to directly override the
12864         library functions.  fix declarations.
12865
12866         * nt.h:
12867         include syswindows.h.  move some sysdep.h stuff here.
12868
12869         * ntheap.h:
12870         include syswindows.h, not <windows.h>.
12871
12872         * ntplay.c:
12873         clean up headers.
12874
12875         * sysdep.c:
12876         clean up headers.
12877
12878         * sysdep.c (sys_fstat):
12879         * sysdep.c (sys_stat):
12880         call mswindows versions when appropriate.
12881
12882         * sysdep.h:
12883         move mswin decls to nt.h.
12884
12885         * syswindows.h:
12886         add long comment describing appropriate use of the various windows
12887         headers.
12888
12889 2000-06-11  Ben Wing  <ben@xemacs.org>
12890
12891         * device-x.c: Correct doc string for sixth arg of x-get-resource.
12892
12893 2000-06-10  Ben Wing  <ben@xemacs.org>
12894
12895         * Makefile.in.in (release):
12896         Correction to make sure xemacs.exe always dumped when correct.
12897
12898         * alloca.c:
12899         * balloon_help.c:
12900         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12901
12902         * buffer.c (set_buffer_internal):
12903         [[[[2]]]]: Remove HAVE_FEP code.
12904
12905         * buffer.c (init_initial_directory):
12906         [3].
12907
12908         * bytecode.c:
12909         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12910         individual files.
12911
12912         * callproc.c:
12913         * callproc.c (call_process_cleanup):
12914         * callproc.c (Fold_call_process_internal):
12915         * callproc.c (child_setup):
12916         * callproc.c (getenv_internal):
12917         * callproc.c (init_callproc):
12918         * callproc.c (vars_of_callproc):
12919         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12920         __CYGWIN32__ -> CYGWIN.
12921         DOS_NT -> WIN32_NATIVE.
12922         Remove MSDOS support/references, converting to WIN32_NATIVE
12923           where correct.
12924         __MINGW32__ -> MINGW.
12925         Fix windows.h includes.
12926         Remove bogus HAVE_NTGUI.
12927
12928         * config.h.in:
12929         [2].
12930
12931         * console-msw.c:
12932         mswindows_message_outputted added for use in allowing startup
12933         errors on the console to be seen.
12934
12935         * console-msw.c (msw_ensure_console_allocated):
12936         * console-msw.c (msw_output_console_string):
12937         * console-msw.c (DHEADER):
12938         * console-msw.c (DOPAQUE_DATA):
12939         * console-msw.c (DEVENT):
12940         * console-msw.c (DCONS):
12941         * console-msw.c (DCONSCDR):
12942         * console-msw.c (DSTRING):
12943         * console-msw.c (DVECTOR):
12944         * console-msw.c (DSYMBOL):
12945         * console-msw.c (DSYMNAME):
12946         Fix warnings.
12947
12948         * console-stream.c (stream_init_console):
12949         Fix text/binary problems.
12950
12951         * device-msw.c:
12952         * device-msw.c (mswindows_finish_init_device):
12953         * device-msw.c (mswindows_delete_device):
12954         [1].
12955
12956         * device.c (handle_asynch_device_change):
12957         [3].
12958
12959         * dgif_lib.c:
12960         * dgif_lib.c (DGifOpenFileName):
12961         * dgif_lib.c (DGifOpenFileHandle):
12962         * dgif_lib.c (DGifGetLine):
12963         * dgif_lib.c (DGifGetPixel):
12964         Added config.h/lisp.h, fix up includes.
12965         [1].
12966
12967         * dired-msw.c:
12968         [4].
12969
12970         * dired.c:
12971         * dired.c (file_name_completion):
12972         * dired.c (Ffile_attributes):
12973         * dired.c (syms_of_dired):
12974         [1].
12975
12976         * dumper.c:
12977         * dumper.c (pdump_file_unmap):
12978         * dumper.c (pdump_load):
12979         [1].
12980
12981         * editfns.c:
12982         * editfns.c (Ftemp_directory):
12983         * editfns.c (user_login_name):
12984         * editfns.c (Fuser_real_login_name):
12985         * editfns.c (get_home_directory):
12986         [1].
12987
12988         * elhash.c (finish_marking_weak_hash_tables):
12989         [[[[5]]]]: Fix GCC warnings.
12990
12991         * emacs.c:
12992         * emacs.c (mswindows_handle_hardware_exceptions):
12993         * emacs.c (make_arg_list_1):
12994         * emacs.c (main_1):
12995         * emacs.c (Fkill_emacs):
12996         * emacs.c (Fdump_emacs):
12997         [1].
12998         Fix problems with nested crashes, add long comment.
12999
13000         * event-Xt.c (init_event_Xt_late):
13001         [1].
13002
13003         * event-msw.c:
13004         * event-msw.c (mswindows_dde_callback):
13005         * event-msw.c (mswindows_handle_sticky_modifiers):
13006         * event-msw.c (mswindows_wnd_proc):
13007         [1].
13008         [5].
13009
13010         * events.c (character_to_event):
13011         [1].
13012
13013         * fileio.c:
13014         * fileio.c (Ffile_name_directory):
13015         * fileio.c (Ffile_name_nondirectory):
13016         * fileio.c (directory_file_name):
13017         * fileio.c (Fexpand_file_name):
13018         * fileio.c (Fsubstitute_in_file_name):
13019         * fileio.c (Ffile_name_absolute_p):
13020         * fileio.c (check_executable):
13021         * fileio.c (Ffile_readable_p):
13022         * fileio.c (Ffile_accessible_directory_p):
13023         * fileio.c (Ffile_modes):
13024         * fileio.c (Funix_sync):
13025         * fileio.c (vars_of_fileio):
13026         [1]. [4].
13027
13028         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13029
13030         Expand getdefdir defn.
13031         Fix bogus rename() comment.
13032
13033         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13034         to use standard XEmacs include files, e.g. sysfile.h, rather
13035         than system-specific includes.
13036
13037         * fns.c:
13038         * fns.c (Fsubseq):
13039         [5]. [6].
13040
13041         * frame.c (vars_of_frame):
13042         [1].
13043
13044         * getloadavg.c:
13045         * getloadavg.c (getloadavg):
13046         [1]. [6].
13047         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13048         (We don't use it elsewhere in the code; just add a comment.)
13049
13050         * gif_io.c:
13051         [6].
13052         Add config.h.
13053
13054         * glyphs-msw.c:
13055         * glyphs-msw.c (mswindows_resource_instantiate):
13056         [1].
13057
13058         * glyphs-x.c (x_native_layout_instantiate):
13059         [5].
13060
13061         * gui-msw.c (Fmswindows_shell_execute):
13062         [1].
13063
13064         * insdel.c:
13065         [4].
13066
13067         * lisp.h:
13068         [4]. [5].
13069
13070         * lread.c (locate_file_in_directory_mapper):
13071         [1].
13072
13073         * lstream.c:
13074         [4].
13075
13076         * mem-limits.h:
13077         * mem-limits.h (get_lim_data):
13078         [1].
13079
13080         * menubar-msw.c:
13081         [4].
13082
13083         * ndir.h:
13084         [1].
13085
13086         * nt.c:
13087         * nt.c (getwd):
13088         * nt.c (closedir):
13089         * nt.c (rva_to_section):
13090         * nt.c (mswindows_executable_type):
13091         [1]. [6].
13092         Fix closedir() defn.
13093
13094         * nt.h:
13095         [[[[8]]]]: *_OK defs moved to sysfile.h.
13096
13097         * ntproc.c:
13098         [6]. [7].
13099
13100         * objects-x.c:
13101         [4].
13102
13103         * print.c:
13104         * print.c (std_handle_out_external):
13105         [1]. [4].
13106
13107         * process-nt.c:
13108         * process-nt.c (nt_create_process):
13109         [6].
13110         try to fix process quoting somewhat.
13111
13112         * process-unix.c (unix_create_process):
13113         [1].
13114
13115         * process.c:
13116         * process.c (vars_of_process):
13117         Add Vnull_device.
13118
13119         * process.h:
13120         [1].
13121
13122         * realpath.c:
13123         * realpath.c (xrealpath):
13124         [1].
13125
13126         * redisplay-tty.c (init_tty_for_redisplay):
13127         [3].
13128
13129         * redisplay.c:
13130         [4]. [6].
13131
13132         * scrollbar-msw.c:
13133         [4].
13134
13135         * sheap.c:
13136         * sheap.c (more_static_core):
13137         * sheap.c (report_sheap_usage):
13138         [5]. [6].
13139
13140         * signal.c:
13141         * signal.c (alarm_signal):
13142         [1]. [6].
13143
13144         * sound.c:
13145         [6].
13146
13147         * strftime.c:
13148         * strftime.c (zone_name):
13149         [1]. [5].
13150
13151         * symsinit.h (init_sunpro):
13152         [1].
13153
13154         * syscommctrl.h:
13155         commctrl.h not in Cygwin b20.1.
13156
13157         * sysdep.c:
13158         * sysdep.c (endif):
13159         * sysdep.c (sys_subshell):
13160         * sysdep.c (init_baud_rate):
13161         * sysdep.c (emacs_get_tty):
13162         * sysdep.c (emacs_set_tty):
13163         * sysdep.c (tty_init_sys_modes_on_device):
13164         * sysdep.c (init_system_name):
13165         * sysdep.c (sys_open):
13166         * sysdep.c (interruptible_open):
13167         * sysdep.c (sys_fopen):
13168         * sysdep.c (sys_mkdir):
13169         * sysdep.c (sys_rename):
13170         * sysdep.c (get_process_times_1):
13171         [1]. [6].
13172
13173         * sysdep.h:
13174         [1].
13175
13176         * sysdir.h:
13177         * sysdir.h (DIRENTRY_NONEMPTY):
13178         [1]. [6].
13179
13180         * sysdll.c (dll_init):
13181         * sysdll.h:
13182         [1].
13183
13184         * sysfile.h:
13185         [1]. [6]. [8].
13186         added text/binary defs.
13187
13188         * sysfloat.h:
13189         [1].
13190
13191         * sysproc.h:
13192         * sysproc.h (EDESTADDRREQ):
13193         * sysproc.h (poll_fds_for_input):
13194         [1]. [6].
13195
13196         * syspwd.h:
13197         [6].
13198
13199         * syssignal.h:
13200         [1].
13201
13202         * systime.h:
13203         [1]. [6].
13204
13205         * systty.h:
13206         [1].
13207
13208         * syswindows.h:
13209         [1].
13210         Always define WIN32_LEAN_AND_MEAN.
13211
13212         * unexcw.c (unexec):
13213         [5].
13214
13215         * unexec.c:
13216         * unexec.c (copy_text_and_data):
13217         * unexec.c (adjust_lnnoptrs):
13218         [1].
13219
13220         * unexnt.c:
13221         * unexnt.c (_start):
13222         [1].
13223
13224 2000-06-07  Ben Wing  <ben@xemacs.org>
13225
13226         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13227         was used only as a model.  We've long since extracted any useful
13228         logic or code out of this. (I just did an exhaustive search.)
13229
13230         * s\msdos.h: Removed.
13231
13232         * s\windows95.h: Removed.
13233
13234 2000-06-10  Ben Wing  <ben@xemacs.org>
13235
13236         * s\cygwin32.h:
13237         [1]. [5].
13238         Don't use extern with fun defs.
13239
13240         * s\mingw32.h:
13241         [1]. [7].
13242         Remove nt\inc include.
13243         Remove getdisk, getdefdir. (The former is unused, the latter
13244         expanded in fileio.h.)
13245
13246         * s\windowsnt.h:
13247         * s\windowsnt.h (WIN32_NATIVE):
13248         * s\windowsnt.h (HAVE_STRCASECMP):
13249         [1]. [7].
13250         Add long comment about preprocessor changes.
13251         Remove getdisk, getdefdir. (The former is unused, the latter
13252         expanded in fileio.h.)
13253
13254 2000-06-10  Ben Wing  <ben@xemacs.org>
13255
13256         * m\arm.h:
13257         * m\delta.h:
13258         * m\intel386.h:
13259         * m\sequent.h:
13260         * m\template.h:
13261         * m\windowsnt.h:
13262         [1].
13263         Remove bogus/unused NO_SOCK_SIGIO.
13264
13265 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13266
13267         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13268         not an Emchar.
13269
13270 2000-06-04  Mike Sperber <mike@xemacs.org>
13271
13272         * casetab.c (set_case_table): For `set-standard-case-table',
13273         actually deposit the new case tables where the rest of XEmacs can
13274         see them.
13275
13276 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13277
13278         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13279
13280 2000-06-05  Ben Wing  <ben@xemacs.org>
13281
13282         * callproc.c (child_setup): Don't do close_load_descs() under
13283         MS Windows.  Put in a comment explaining why.
13284
13285 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13286
13287         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13288         Toolkit shell" which breaks `kill-compilation' on Windows NT
13289         native, retaining STDERR handling improvements.
13290
13291 2000-06-01  Andreas Jaeger  <aj@suse.de>
13292
13293         * s/s390.h: Support for S390, based on a patch by Martin
13294         Schwidefsky <schwidefsky@de.ibm.com>.
13295
13296 2000-05-30  Andy Piper  <andy@xemacs.org>
13297
13298         * window.c (allocate_window):
13299         (make_dummy_parent):
13300         (Fset_window_configuration): use new hashtable type.
13301
13302         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13303         (struct image_instantiator_methods):
13304         (struct Lisp_Image_Instance): make instance geometry signed.
13305
13306         * glyphs.c (instantiate_image_instantiator):
13307         (image_instance_query_geometry):
13308         (image_instance_layout):
13309         (image_instance_layout):
13310         (query_string_geometry):
13311         (text_query_geometry):
13312         (image_instantiate):
13313         (image_instantiate):
13314         (cache_subwindow_instance_in_frame_maybe):
13315         (subwindow_query_geometry): make instance geometry signed.
13316
13317         * glyphs-widget.c (widget_query_geometry):
13318         (widget_layout):
13319         (button_query_geometry):
13320         (tree_view_query_geometry):
13321         (tab_control_query_geometry):
13322         (layout_query_geometry):
13323         (layout_layout):
13324         (native_layout_layout): make instance geometry signed.
13325
13326 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13327
13328         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13329         constant.
13330
13331         * general.c (syms_of_general): Add Qfull_assoc symbol.
13332
13333         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13334         correctly.
13335         (decode_weak_list_type): Decode full-assoc type.
13336         (encode_weak_list_type): Encode full-assoc type.
13337         (Fmake_weak_list): Update doc string.
13338
13339 2000-05-30  Andy Piper  <andy@xemacs.org>
13340
13341         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13342
13343         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13344         (decode_hash_table_weakness): ditto.
13345         (Fhash_table_weakness): ditto.
13346         (Fhash_table_type): ditto.
13347         (finish_marking_weak_hash_tables): ditto.
13348         (hash_table_weakness_validate): ditto.
13349         (syms_of_elhash): ditto.
13350
13351 2000-05-28  Martin Buchholz <martin@xemacs.org>
13352
13353         * XEmacs 21.2.34 is released.
13354
13355 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13356
13357         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13358         start cache.
13359         (updating_line_start_cache): Gone.
13360         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13361         generic code to force a minimum of 1 line laid out in the
13362         CMOTION_DISP case.
13363
13364 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13365
13366         * glyphs.c (instantiate_image_instantiator): Check for initialized
13367         height & width no longer special cases IMAGE_NOTHING.
13368         (nothing_instantiate): Set height and width of instance.
13369
13370 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13371
13372         * unexelf.c (unexec): Search for ".data" section.
13373         Initialize new_data2_offset from old_data_index.
13374         Remove redundant check for ElfW.
13375
13376 2000-05-23  Andy Piper  <andy@xemacs.org>
13377
13378         * glyphs.c (get_image_instantiator_governing_domain): allow more
13379         specific domains as the governing domain rather than expecting an
13380         exact match. This fixes problems with layouts.
13381
13382 2000-05-22  Andy Piper  <andy@xemacs.org>
13383
13384         * redisplay-output.c (compare_runes): check for non-images
13385
13386         * glyphs.c (set_glyph_dirty_p): ditto.
13387         (update_glyph_cachel_data): ditto.
13388
13389         * glyphs-widget.c (layout_post_instantiate): ditto.
13390         (layout_post_instantiate): ditto.
13391
13392         * event-msw.c (mswindows_wnd_proc): warning removal.
13393
13394 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13395
13396         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13397
13398         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13399
13400         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13401
13402         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13403         (mswindows_executable_type): mingw32 now has enough headers for
13404         this to work.
13405
13406 2000-05-20  Andy Piper  <andy@xemacs.org>
13407
13408         * console-msw.c (mswindows_output_last_error): ; -> ,
13409
13410 2000-05-12  Andy Piper  <andy@xemacs.org>
13411
13412         * console-msw.c (FROB): compare ints with ints.
13413
13414 2000-05-11  Andy Piper  <andy@xemacs.org>
13415
13416         * glyphs-x.c (x_finalize_image_instance): make minimal build
13417         happy.
13418
13419 2000-05-20  Ben Wing  <ben@xemacs.org>
13420
13421         * event-Xt.c:
13422         * event-Xt.c (vars_of_event_Xt):
13423         move modifier-keys-are-sticky to event-stream.c.
13424
13425         * event-msw.c:
13426         * event-msw.c (mswindows_enqueue_mouse_button_event):
13427         * event-msw.c (key_needs_default_processing_p):
13428         * event-msw.c (XEMSW_LCONTROL):
13429         * event-msw.c (mswindows_handle_sticky_modifiers):
13430         * event-msw.c (FROB):
13431         * event-msw.c (clear_sticky_modifiers):
13432         * event-msw.c (output_modifier_keyboard_state):
13433         * event-msw.c (output_alt_keyboard_state):
13434         * event-msw.c (mswindows_wnd_proc):
13435         * event-msw.c (mswindows_modifier_state):
13436         * event-msw.c (emacs_mswindows_handle_magic_event):
13437         implement sticky modifiers.
13438
13439         * event-stream.c:
13440         * event-stream.c (vars_of_event_stream):
13441         move modifier-keys-are-sticky here.
13442
13443         * lisp.h:
13444         add CHECK_FUNCTION.
13445
13446         * rangetab.c:
13447         implement map-range-table.
13448
13449
13450 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13451
13452         * redisplay-tty.c (reset_tty_modes):
13453         (tty_redisplay_shutdown): Adjust argument type to
13454         tty_frame_output_end.
13455
13456 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13457
13458         * eval.c (Fbacktrace): Don't output a line with only right
13459         parenthesis.
13460
13461 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13462
13463         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13464         (Fpq_reset_poll): Ditto.
13465
13466 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13467
13468         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13469
13470 2000-05-16  Ben Wing  <ben@xemacs.org>
13471
13472         * buffer.c:
13473         * buffer.c (dfc_convert_to/from_internal_format):
13474         * buffer.c (reinit_vars_of_buffer):
13475         Fix conversion functions to allow reentrancy.
13476
13477         * console-msw.c:
13478         * console-msw.c (mswindows_output_last_error):
13479         New fun, generally useful -- output a human-readable
13480         version of GetLastError() on the console.
13481
13482         * console-msw.h:
13483         * console-msw.h (struct mswindows_frame):
13484         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13485
13486         * console-stream.c (stream_output_begin):
13487         * console-stream.c (stream_output_end):
13488         * console-stream.c (stream_output_vertical_divider):
13489         * console-stream.c (stream_clear_region):
13490         * console-stream.c (stream_flash):
13491         * console-stream.c (console_type_create_stream):
13492         Delete blank stream methods, not needed.
13493
13494         * console.h (struct console_methods):
13495         Split begin/end methods into window and frame.
13496
13497         * event-msw.c:
13498         * event-msw.c (mswindows_handle_paint):
13499         * event-msw.c (output_alt_keyboard_state):
13500         * event-msw.c (mswindows_wnd_proc):
13501         * event-msw.c (vars_of_event_mswindows):
13502         Comment about problems with ignored-expose.
13503         Define mswindows-debug-events; not really implemented.
13504
13505         * frame-msw.c (mswindows_init_frame_1):
13506         random cleanups.
13507
13508         * glyphs-msw.c:
13509         * glyphs-msw.c (begin_defer_window_pos):
13510         * glyphs-msw.c (mswindows_unmap_subwindow):
13511         * glyphs-msw.c (mswindows_map_subwindow):
13512         * glyphs-msw.c (mswindows_resize_subwindow):
13513         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13514
13515         * glyphs.c (make_image_instance_1):
13516         Fix crash.
13517
13518         * gutter.c (Fredisplay_gutter_area):
13519         Use new begin/end methods.
13520
13521         * lisp.h (Dynarr_new2):
13522         New creation fun.
13523
13524         * redisplay-msw.c:
13525         * redisplay-msw.c (mswindows_frame_output_begin):
13526         * redisplay-msw.c (mswindows_frame_output_end):
13527         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13528         New begin/end methods -- handle DeferWindowPos.
13529
13530         * redisplay-output.c (redisplay_move_cursor):
13531         * redisplay-output.c (redraw_cursor_in_window):
13532         * redisplay-output.c (redisplay_update_line):
13533         * redisplay-output.c (redisplay_output_window):
13534         New begin/end methods.
13535
13536         * redisplay-tty.c:
13537         * redisplay-tty.c (tty_frame_output_begin):
13538         * redisplay-tty.c (tty_frame_output_end):
13539         * redisplay-tty.c (console_type_create_redisplay_tty):
13540         New begin/end methods.
13541
13542         * redisplay-x.c:
13543         * redisplay-x.c (x_window_output_begin):
13544         * redisplay-x.c (x_window_output_end):
13545         * redisplay-x.c (console_type_create_redisplay_x):
13546         New begin/end methods.
13547
13548         * redisplay.c (redisplay_frame):
13549         * redisplay.c (Fredisplay_echo_area):
13550         New begin/end methods.
13551         use MAYBE_DEVMETH for clear_frame; it may not exist.
13552
13553         * window.h (WINDOW_XFRAME):
13554         WINDOW_XFOO macros -- get locale and decode struct pointer.
13555
13556
13557 2000-05-12  Ben Wing  <ben@xemacs.org>
13558
13559         * emacs.c:
13560         * emacs.c (ensure_no_quitting_from_now_on):
13561         * emacs.c (fatal_error_signal):
13562         * emacs.c (mswindows_handle_hardware_exceptions):
13563         * emacs.c (main):
13564         * emacs.c (Fkill_emacs):
13565         * emacs.c (shut_down_emacs):
13566         * emacs.c (assert_failed):
13567         various improvements in fatal error handling.
13568
13569         * eval.c:
13570         move preparing_for_armageddon to emacs.c.
13571
13572         * lisp.h:
13573         declare fatal_error_in_progress.
13574
13575         * print.c:
13576         * print.c (std_handle_out_external):
13577         * print.c (std_handle_out_va):
13578         * print.c (stderr_out):
13579         * print.c (stdout_out):
13580         use console under mswin when no standard output.
13581         don't do code conversion during fatal error.
13582
13583         * scrollbar.c (Fscrollbar_page_up):
13584         * scrollbar.c (Fscrollbar_page_down):
13585         fix missing else.  reindent.
13586
13587 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13588
13589         Emergency fix.
13590
13591         * glyphs.h (GLYPH_CACHEL_DESCENT):
13592         (GLYPH_CACHEL_DESCENT):
13593         (GLYPH_CACHEL_DESCENT):
13594         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13595         used in case these are inline functions.
13596         Use more absurd values to error check.
13597
13598         include window.h for error check functions.
13599
13600 2000-05-11  Ben Wing  <ben@xemacs.org>
13601
13602         * cmdloop.c (Freally_early_error_handler):
13603         Display message box under windows; otherwise, message will disappear
13604         before it can be viewed.
13605
13606         * console-msw.c:
13607         * console-msw.c (Fmswindows_message_box):
13608         * console-msw.c (FROB):
13609         * console-msw.c (syms_of_console_mswindows):
13610         Define new fun `mswindows-message-box'.
13611         #### I will merge this into `popup-dialog-box'; just give me
13612         a bit of time.
13613
13614         * general.c:
13615         * general.c (syms_of_general):
13616         Some new symbols used in `mswindows-message-box'.
13617
13618         * glyphs.c:
13619         * glyphs.c (Fset_image_instance_property):
13620         put warning in this fun.
13621
13622         * glyphs.h:
13623         * glyphs.h (GLYPH_CACHEL_WIDTH):
13624         * glyphs.h (GLYPH_CACHEL_ASCENT):
13625         * glyphs.h (GLYPH_CACHEL):
13626         * glyphs.h (GLYPH_CACHEL_GLYPH):
13627         define error-checking versions to try to catch a bug i've seen --
13628         redisplay gets in an infinite loop because the glyph width of the
13629         continuation glyph is 65535.
13630
13631         * lisp.h:
13632         Extern message-box stuff.
13633
13634         * window.c (allocate_window):
13635         * window.c (make_dummy_parent):
13636         * window.c (Fset_window_configuration):
13637         Use EQUAL not EQ for subwindow caches to make them work a bit
13638         better. (Something is still very broken.)
13639
13640
13641 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13642
13643         * glyphs.c (image_instantiate): Suppress gcc warnings.
13644         (Fmake_image_instance): Fix doc string.
13645         * specifier.c (Fmake_specifier): Ditto.
13646
13647 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13648
13649         * paths.h.in (PATH_LOCK): Removed.
13650         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13651         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13652
13653 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13654
13655         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13656         Document (featurep '(and xemacs 21.02)).
13657
13658 2000-05-09  Ben Wing  <ben@xemacs.org>
13659
13660         * buffer.c (complex_vars_of_buffer):
13661         update modeline-format doc.
13662
13663         * device.h:
13664         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13665
13666         * emacs.c:
13667         timeline of all released versions of Emacs, for use in creating
13668         authorship comments and in synching up.
13669
13670         * glyphs-widget.c (image_instantiator_buttons):
13671         * glyphs-widget.c (image_instantiator_edit_fields):
13672         * glyphs-widget.c (image_instantiator_combo_box):
13673         * glyphs-widget.c (image_instantiator_scrollbar):
13674         * glyphs-widget.c (image_instantiator_progress_guage):
13675         * glyphs-widget.c (image_instantiator_tree_view):
13676         * glyphs-widget.c (image_instantiator_tab_control):
13677         * glyphs-widget.c (image_instantiator_labels):
13678         * glyphs-widget.c (image_instantiator_layout):
13679         * glyphs-widget.c (image_instantiator_native_layout):
13680         rename decode_domain method to governing_domain.
13681
13682         * glyphs.c:
13683         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13684         * glyphs.c (add_entry_to_device_ii_format_list):
13685         make sure we don't put an entry more than once into the list.
13686         * glyphs.c (check_instance_cache_mapper):
13687         *************************************************************
13688         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13689         HAVE BEEN GETTING.
13690         *************************************************************
13691         * glyphs.c (get_image_instantiator_governing_domain):
13692         clean up, expand on new concept of governing domain.
13693         * glyphs.c (instantiate_image_instantiator):
13694         * glyphs.c (allocate_image_instance):
13695         use governing_domain instead of cache_domain in naming.
13696         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13697         * glyphs.c (make_image_instance_1):
13698         * glyphs.c (Fmake_image_instance):
13699         allow for any domain (not just device), and process the
13700         governing domain correctly.  very big doc fix.
13701         * glyphs.c (Fimage_instance_domain):
13702         new primitive, to retrieve the governing domain of an image instance.
13703         * glyphs.c (image_instantiate):
13704         use new governing_domain stuff.  this fixes a crash you could get
13705         by instantiating certain widget glyphs in frame locales. (should
13706         signal an error instead of crashing.)
13707         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13708         * glyphs.c (Fglyphp): clean up doc.
13709         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13710         * glyphs.c (syms_of_glyphs):
13711         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13712         * glyphs.c (image_instantiator_format_create): add some comments about
13713         bogus code.
13714         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13715         for current-display-table. (Apparently Hrjove implemented in 1998 a
13716         design I wrote up in 1996, but didn't update the doc string.)
13717
13718         * glyphs.h: clean up a doc string.
13719         * glyphs.h (governing_domain):
13720         * glyphs.h (struct image_instantiator_methods):
13721         changes for governing_domain stuff.
13722
13723         * gutter.c:
13724         * gutter.c (Fgutter_specifier_p):
13725         * gutter.c (Fgutter_size_specifier_p):
13726         * gutter.c (Fgutter_visible_specifier_p):
13727         * objects.c:
13728         * objects.c (Fcolor_specifier_p):
13729         * objects.c (Ffont_specifier_p):
13730         * objects.c (Fface_boolean_specifier_p):
13731         doc strings moved to make-*-specifier.
13732
13733         * redisplay.c (add_disp_table_entry_runes_1):
13734         * redisplay.c (generate_fstring_runes):
13735         * redisplay.c (screen):
13736         add random comments and doc strings.
13737
13738         * specifier.c:
13739         * specifier.c (Fmake_specifier):
13740         major overhaul of this doc string.
13741
13742         * specifier.c (Fvalid_specifier_domain_p):
13743         comment about the bogosity of image instances being domains.
13744         * specifier.c (decode_domain):
13745         now non-static, used in glyphs.c.
13746         * specifier.c (specifier_instance):
13747         comment about the bogosity of image instances being domains.
13748         * specifier.c (Fgeneric_specifier_p):
13749         move doc string to make-generic-specifier.
13750         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13751         rebackslashify.
13752
13753         * specifier.h:
13754         * specifier.h (DOMAIN_FRAME):
13755         * specifier.h (DOMAIN_LIVE_P):
13756         * specifier.h (DOMAIN_XDEVICE):
13757         rebackslashify.
13758         add comments about problems with these macros.
13759         prototype for decode_domain.
13760
13761         * toolbar.c:
13762         * toolbar.c (Ftoolbar_specifier_p):
13763         move doc string to `make-toolbar-specifier'.
13764
13765         * window.c (window_unmap_subwindows_cache_mapper):
13766         *************************************************************
13767         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13768         HAVE BEEN GETTING.
13769         *************************************************************
13770
13771 2000-05-09  Andy Piper  <andy@xemacs.org>
13772
13773         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13774
13775         * window.c (Fset_window_configuration): reset the frame subwindow
13776         cache and re-initialize the window subwindow caches.
13777
13778         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13779
13780 2000-05-09  Ben Wing  <ben@xemacs.org>
13781
13782         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13783         DWORD.
13784
13785 2000-04-26  Mike Woolley  <mike@bulsara.com>
13786
13787         * ntheap.c: Changed recreate_heap to limit the amount reserved
13788         for the heap to that which is actually available. Also now
13789         displays a message box (with some dignostics) in the event that
13790         it still can't start.
13791
13792 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13793
13794         * callproc.c (Fold_call_process_internal): GCPRO path
13795
13796 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13797
13798         Patch by Bill Perry.
13799
13800         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13801         back data instead of #ifdef.
13802         (Fscrollbar_page_down): ditto.
13803
13804 2000-05-07  Ben Wing  <ben@xemacs.org>
13805
13806         * buffer.h:
13807         Kludge for defining Qmswindows_tstr.
13808
13809         * nt.c:
13810         * nt.c (open_input_file):
13811         * nt.c (open_output_file):
13812         * nt.c (rva_to_section):
13813         * nt.c (mswindows_executable_type):
13814         Move all memory-mapped-file routines here (some were in unexnt.c,
13815         which is bad because they are used by process-nt.c, and unexnt
13816         won't be around when portable dumping).  Synched the above routines
13817         with FSF 20.6.
13818
13819         * nt.h:
13820         Removed ifdef'd out bogus code.
13821         Fixed some prototypes.
13822
13823         * nt.h (file_data):
13824         * nt.h (OFFSET_TO_RVA):
13825         * nt.h (RVA_TO_OFFSET):
13826         * nt.h (RVA_TO_PTR):
13827         Moved the memory-mapped-file structures, macros and prototypes
13828         here, to parallel nt.c.  ntheap.h should really be removed
13829         entirely, and it's a non-portable-dumper specific file.
13830
13831         * ntheap.h (round_to_next):
13832         Moved the memory-mapped-file structures, macros and prototypes
13833         to nt.h.
13834
13835         * ntproc.c (compare_env):
13836         Moved rva_to_section and mswindows_executable_type to nt.c.
13837         Moved compare_env to process-nt.c.
13838         ntproc.c will die, one day.
13839
13840         * ntproc.c (sys_spawnve):
13841         Account for win32_ -> mswindows_.
13842
13843         * process-nt.c:
13844         * process-nt.c (struct nt_process_data):
13845         * process-nt.c (ensure_console_window_exists):
13846         * process-nt.c (compare_env):
13847         * process-nt.c (nt_create_process):
13848         * process-nt.c (nt_kill_process_by_pid):
13849         * process-nt.c (syms_of_process_nt):
13850         * process-nt.c (vars_of_process_nt):
13851         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13852         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13853         changes).  Eliminate our old `nt-quote-process-args' mechanism.
13854         Synch up nt_create_process with FSF 20.6 sys_spawnve.
13855         Move compare_env here from ntproc.c.
13856
13857         * process.c (Fprocess_send_region):
13858         Takes an optional fourth argument, BUFFER, which should fix some
13859         problems with call-process.
13860
13861         * syscommctrl.h:
13862         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13863
13864         * syswindows.h:
13865         Move ICC_BAR_CLASSES to syscommctrl.h.
13866         Add preliminary macros for MSWindows/Mule.  More to come.
13867
13868         * unexnt.c:
13869         * unexnt.c (unexec):
13870         open_output_file moved to nt.c.
13871
13872
13873 2000-05-05  Andy Piper  <andy@xemacs.org>
13874
13875         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13876         instance from the frame cache also since GC may catch up too late
13877         to make frame deletion sane.
13878
13879 2000-05-04  Andy Piper  <andy@xemacs.org>
13880
13881         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13882         (x_finalize_image_instance): ungcpro on deletion.
13883
13884         * glyphs.c (image_instantiator_format_create): give pointers a
13885         query geometry method so that the geometry is at least set.
13886
13887         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13888         initialize layouts if using widgets.
13889
13890 2000-05-03  Andy Piper  <andy@xemacs.org>
13891
13892         * nt.c: remove bogus reference to sysmmsystem.h
13893
13894         * gui-x.c (popup_selection_callback): fix no selection abort.
13895
13896 2000-05-02  Andy Piper  <andy@xemacs.org>
13897
13898         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13899         (mswindows_widget_instantiate): ditto.
13900
13901         * glyphs-widget.c (initialize_widget_image_instance): initialize
13902         children correctly.
13903         (widget_instantiate): cope with children and items in the same
13904         instance.
13905
13906         * glyphs.c (mark_image_instance): cope with children as a first
13907         class member.
13908         (image_instance_equal): ditto.
13909         (image_instance_hash): ditto.
13910         (image_instance_changed): ditto.
13911
13912 2000-04-30  Andy Piper  <andy@xemacs.org>
13913
13914         * glyphs.c (subwindow_query_geometry): new function. Return some
13915         defaults.
13916         (subwindow_instantiate): don't assign dimensions if none have been
13917         given.
13918         (image_instantiator_format_create): add subwindow_query_geometry.
13919         (print_image_instance): cope with layouts as widgets.
13920
13921 2000-04-29  Andy Piper  <andy@xemacs.org>
13922
13923         * frame.c (delete_frame_internal): call
13924         free_frame_subwindow_instance_cache so that all subwindows are
13925         finalized before their parent.
13926         (mark_frame): remove subwindow_cachels.
13927         (Fmake_frame): remove subwindow_cachel manipulation.
13928         (allocate_frame_core): subwindow_instance_cache is a weak list.
13929         (delete_frame_internal): set subwindow_instance_cache to nil.
13930
13931         * glyphs-msw.c (mswindows_finalize_image_instance): make double
13932         finalization safe.
13933         (mswindows_finalize_image_instance): use the device
13934         not the domain as the domain may have died already.
13935
13936         * glyphs-x.c (x_finalize_image_instance): ditto.
13937         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13938         HEIGHT.
13939
13940         * redisplay-output.c (redisplay_unmap_subwindows): update for
13941         subwindow instance cache as a weak list.
13942         (redisplay_unmap_subwindows_maybe): ditto.
13943         (redisplay_unmap_subwindows_except_us): ditto.
13944
13945         * glyphs.c (unmap_subwindow): error checking will check the domain
13946         so don't deal with it here. Don't use cachels anymore.
13947         (map_subwindow): ditto.
13948         (update_subwindow_cachel_data): remove old accessor names.
13949         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
13950         (Fresize_subwindow): don't update cachel.
13951         (mark_subwindow_cachels):
13952         (update_subwindow_cachel_data):
13953         (add_subwindow_cachel):
13954         (get_subwindow_cachel_index):
13955         (update_subwindow_cachel):
13956         (reset_subwindow_cachels):
13957         (mark_subwindow_cachels_as_not_updated): deleted.
13958         (cache_subwindow_instance_in_frame_maybe): new function. Add a
13959         subwindow instance to the frame cache.
13960         (find_matching_subwindow): update for subwindow instance cache as
13961         a weak list.
13962         (update_widget_instances): ditto.
13963         (image_instance_type_to_mask):inlined.
13964         (free_frame_subwindow_instance_cache): new function. finalize all
13965         subwindows that are instantiated.
13966
13967         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
13968         of cachel information.
13969         (IMAGE_INSTANCE_DISPLAY_X):
13970         (IMAGE_INSTANCE_DISPLAY_Y):
13971         (IMAGE_INSTANCE_DISPLAY_WIDTH):
13972         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
13973         (XIMAGE_INSTANCE_DISPLAY_X):
13974         (XIMAGE_INSTANCE_DISPLAY_Y):
13975         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
13976         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
13977         remove subwindow_cachel structure and function references.
13978         (image_instance_type_to_mask): inline from glyphs.c
13979
13980         * redisplay.c (redisplay_frame): remove subwindow_cachel
13981         references.
13982
13983         * frame.h (struct frame): remove subwindow_cachels.
13984         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
13985
13986         * frameslots.h: add subwindow_instance_cache.
13987
13988         * window.c (replace_window): check subwindow cache of replacement.
13989         (window_unmap_subwindows_cache_mapper):
13990         (window_unmap_subwindows): new functions. Unmap all subwindows
13991         cached on this window.
13992         (mark_window_as_deleted): unmap all subwindows.
13993
13994 2000-04-27  Andy Piper  <andy@xemacs.org>
13995
13996         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
13997
13998         * glyphs-widget.c (widget_layout): return something.
13999         (layout_layout): return something. Fail if not initialized.
14000         (layout_query_geometry): ditto.
14001         (image_instantiator_native_layout): new function. Initialized the
14002         native layout type.
14003         (widget_instantiate): don't do layout stuff here.
14004
14005         * glyphs.c (instantiate_image_instantiator): reorded calling or
14006         instantiate and post_instantiate with layout in between.
14007         (image_instance_layout): be more selective about deciding whether
14008         the layout has been done or not.
14009
14010         * glyphs.h (struct image_instantiator_methods): return a value
14011         from layout_method.
14012
14013 2000-04-26  Andy Piper  <andy@xemacs.org>
14014
14015         * glyphs.c (allocate_image_instance): make initial width and
14016         height unspecified. Set initialized to 0.
14017
14018         * syscommctrl.h new file. Encapsulates commctrl.h.
14019
14020         * syswindows.h new file. Encapsulates windows.h.
14021
14022         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14023         * nt.c: ditto.
14024         * console-msw.h: ditto.
14025
14026         * redisplay-tty.c (tty_output_display_block): remove layout references.
14027
14028         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14029         window handle rather than just the frame.
14030
14031         * glyphs.c (mark_image_instance): remove layout references.
14032         (print_image_instance): ditto.
14033         (image_instance_equal): ditto.
14034         (image_instance_hash): ditto.
14035         (decode_image_instance_type): ditto.
14036         (encode_image_instance_type): ditto.
14037         (image_instantiate): ditto.
14038         (allocate_glyph): ditto.
14039         (Fimage_instance_height): ditto.
14040         (Fimage_instance_width): ditto.
14041         (update_subwindow): ditto.
14042
14043         * redisplay-x.c (x_output_display_block): recode for layouts as
14044         widgets.
14045
14046         * redisplay-output.c (redisplay_output_layout): recode for layouts
14047         as widgets.
14048         (compare_runes): remove layout references.
14049
14050         * redisplay-msw.c (mswindows_output_display_block): recode for
14051         layouts as widgets.
14052
14053         * glyphs-widget.c (image_instantiator_layout): remove
14054         layout_possible_dest_types.
14055         (layout_possible_dest_types): deleted.
14056
14057         * glyphs.h (image_instance_type): remove layout references.
14058         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14059         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14060         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14061
14062 2000-04-25  Andy Piper  <andy@xemacs.org>
14063
14064         * glyphs-widget.c (image_instantiator_buttons):
14065         (image_instantiator_edit_fields):
14066         (image_instantiator_combo_box):
14067         (image_instantiator_scrollbar):
14068         (image_instantiator_progress_guage):
14069         (image_instantiator_tree_view):
14070         (image_instantiator_tab_control):
14071         (image_instantiator_labels):
14072         (image_instantiator_layout): call default post_instantiate method.
14073         (widget_post_instantiate): new function. Simply lays out the
14074         widgets.
14075
14076         * glyphs.h (struct image_instantiator_methods): add
14077         post_instantiate method.
14078
14079         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14080         method calls.
14081
14082 2000-04-23  Andy Piper  <andy@xemacs.org>
14083
14084         * glyphs.h (struct image_instantiator_methods): add
14085         decode_domain_method.
14086         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14087         derived from the domain.
14088         (IMAGE_INSTANCE_FRAME): new accessor.
14089         (XIMAGE_INSTANCE_FRAME): ditto.
14090
14091         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14092         instead of _SUBWINDOW_FRAME.
14093         (finalize_image_instance): ditto.
14094         (Fimage_instance_foreground): ditto.
14095         (Fimage_instance_background): ditto.
14096         (image_instantiate): ditto.
14097         (update_subwindow_cachel): ditto.
14098         (update_subwindow): ditto.
14099         (unmap_subwindow): ditto.
14100         (map_subwindow): ditto
14101         (subwindow_instantiate): ditto.
14102         * glyphs-msw.c (mswindows_update_widget): ditto.
14103         (mswindows_progress_gauge_instantiate): ditto.
14104         (mswindows_tab_control_update): ditto.
14105         * glyphs-x.c (x_update_widget): ditto.
14106         (x_widget_instantiate): ditto.
14107         (x_tab_control_instantiate): ditto.
14108         (x_tab_control_update): ditto.
14109         * event-msw.c (mswindows_wnd_proc): ditto
14110
14111         * glyphs-widget.c (image_instantiator_layout): use
14112         subwindow_decode_domain.
14113         (image_instantiator_buttons): ditto.
14114         (image_instantiator_edit_fields): ditto.
14115         (image_instantiator_combo_box): ditto.
14116         (image_instantiator_scrollbar): ditto.
14117         (image_instantiator_progress_guage): ditto.
14118         (image_instantiator_tree_view): ditto.
14119         (image_instantiator_tab_control): ditto.
14120         (image_instantiator_labels): ditto.
14121         (image_instantiator_layout): ditto.
14122
14123         * glyphs.c: add instance error checking to many functions.
14124         (instantiate_image_instantiator): decode device from cache_domain.
14125         (image_instantiate): partially rewrite by using
14126         decode_image_instantiator_domain to determine what domain the
14127         instance needs to be cached in.
14128         (decode_image_instantiator_domain): new function. Determine what
14129         domain the image needs to be cached in.
14130         (check_window_subwindow_cache): new error checking function.
14131         (check_instance_cache_mapper): ditto.
14132         (check_image_instance_structure): ditto.
14133         (subwindow_decode_domain): new function. Encodes a window as a
14134         subwindow's cache domain.
14135         (image_instantiator_format_create): use it for text and
14136         subwindows.
14137
14138 2000-04-21  Andy Piper  <andy@xemacs.org>
14139
14140         * glyphs.c (image_instance_device): new function.
14141         (image_instance_frame): new function.
14142         (image_instance_window): new function.
14143         (image_instance_live_p): new function.
14144
14145         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14146         cache to nil.
14147
14148         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14149         (IMAGE_INSTANCE_DOMAIN): new accessor.
14150         (XIMAGE_INSTANCE_DOMAIN): ditto.
14151
14152         * glyphs-x.c (x_finalize_image_instance): device->domain.
14153
14154         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14155         (mswindows_finalize_image_instance): ditto.
14156
14157         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14158         (gif_instantiate): ditto.
14159         (png_instantiate): ditto.
14160         (tiff_instantiate): ditto.
14161
14162         * glyphs.c (instantiate_image_instantiator): use domain rather
14163         than device.
14164         (mark_image_instance): device -> domain.
14165         (print_image_instance): ditto.
14166         (finalize_image_instance): ditto.
14167         (image_instance_equal): ditto.
14168         (allocate_image_instance): ditto.
14169         (Fcolorize_image_instance): ditto.
14170         (query_string_geometry): ditto.
14171         (image_instantiate): ditto
14172         (query_string_font): ditto.
14173         (image_instantiate): ditto.
14174         (update_subwindow): ditto.
14175         (unmap_subwindow): ditto.
14176         (map_subwindow): ditto.
14177         (subwindow_instantiate): ditto.
14178
14179         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14180         (DOMAIN_FRAME): ditto.
14181         (DOMAIN_WINDOW): ditto.
14182         (DOMAIN_LIVE_P): ditto.
14183         (XDOMAIN_DEVICE): ditto.
14184         (XDOMAIN_FRAME): ditto.
14185         (XDOMAIN_WINDOW): ditto.
14186
14187         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14188         a valid specifier domain.
14189
14190 2000-04-19  Andy Piper  <andy@xemacs.org>
14191
14192         * glyphs-widget.c (syms_of_glyphs_widget): remove
14193         widget-callback-current-channel.
14194         (vars_of_glyphs_widget): ditto.
14195         * glyphs.h: ditto
14196
14197         * gui.c (get_gui_callback): revert to previous behaviour.
14198
14199 2000-04-18  Andy Piper  <andy@xemacs.org>
14200
14201         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14202         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14203         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14204
14205         * glyphs.c (image_instance_equal): add margin_width.
14206         (image_instance_hash): ditto.
14207
14208         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14209         (layout_query_geometry): ditto.
14210         (layout_layout): ditto.
14211         (syms_of_glyphs_widget): add margin-width.
14212         (image_instantiator_layout): allow margin-width.
14213
14214         * glyphs.c (update_widget_instances): make a normal function.
14215         (syms_of_glyphs): remove Qupdate_widget_instances.
14216         * glyphs.h: ditto.
14217
14218         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14219         so that we don't corrupt ideas about the last event or
14220         command. Remove widget-callback-current-channel fiddling.
14221         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14222
14223 2000-05-01  Martin Buchholz <martin@xemacs.org>
14224
14225         * XEmacs 21.2.33 is released.
14226
14227 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14228
14229         * make-src-depend: Allow dots in header file name.
14230
14231 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14232
14233         * mule-charset.h (struct charset_lookup): Add
14234         next_allocated_1_byte_leading_byte and
14235         next_allocated_2_byte_leading_byte.
14236         * mule-charset.c: Move above two variables so that those values
14237         will be dumped.
14238
14239 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14240
14241         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14242         when string length is zero.
14243         (find_charsets_in_emchar_string): Ditto.
14244
14245 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14246
14247         * lisp.h: extern Qdialog and Qmenubar.
14248
14249         * gui-x.c: added events.h.
14250                 also fixed typo which made the file uncompilable.
14251
14252         * general.c: Added Qmenubar and Qdialog
14253
14254 2000-04-28  Ben Wing  <ben@xemacs.org>
14255
14256         * frame-msw.c (mswindows_init_frame_1):
14257         * frame-msw.c (mswindows_mark_frame):
14258         * event-msw.c (mswindows_enqueue_dispatch_event):
14259         * console-msw.h:
14260         * console-msw.h (struct mswindows_frame):
14261         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14262         there are now three hash tables for callbacks.
14263         mswindows_enqueue_dispatch_event is no longer static.
14264
14265         * dialog-x.c (maybe_run_dbox_text_callback):
14266         * dialog-x.c (dbox_descriptor_to_widget_value):
14267         switch to new cons3 form for callbacks.
14268
14269         * glyphs-msw.c (mswindows_register_gui_item):
14270         * glyphs-msw.c (mswindows_widget_instantiate):
14271         * glyphs-msw.c (add_tree_item):
14272         * glyphs-msw.c (add_tab_item):
14273         new image instance parameter, so it can be passed to callback-ex.
14274         respect :callback-ex as well as :callback.
14275
14276         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14277         add :callback-ex.
14278
14279         * glyphs.c (print_image_instance):
14280         prettify, e.g. now prints widget type.
14281
14282         * gui-x.h:
14283         certain funs have new image instance parameter.
14284
14285         * gui.c:
14286         * gui.c (get_gui_callback):
14287         * gui.c (gui_item_add_keyval_pair):
14288         * gui.c (gui_item_init):
14289         * gui.c (gui_add_item_keywords_to_plist):
14290         * gui.c (mark_gui_item):
14291         * gui.c (gui_item_hash):
14292         * gui.c (gui_item_equal):
14293         * gui.c (copy_gui_item):
14294         * gui.c (syms_of_gui):
14295         recognize callback-ex in a number of places.
14296         also, fix the annoying "can't get out of yes-no dialog" bug.
14297
14298         * gui.h:
14299         * gui.h (struct Lisp_Gui_Item):
14300         recognize callback-ex in a number of places.
14301
14302         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14303         new parameter in button_item_to_widget_value.
14304
14305         * glyphs-x.c (x_update_widget):
14306         * glyphs-x.c (x_button_instantiate):
14307         * glyphs-x.c (x_button_update):
14308         * glyphs-x.c (x_progress_gauge_instantiate):
14309         * glyphs-x.c (x_edit_field_instantiate):
14310         * glyphs-x.c (x_combo_box_instantiate):
14311         * glyphs-x.c (x_tab_control_instantiate):
14312         * glyphs-x.c (x_label_instantiate):
14313         new image instance parameter in various places.
14314
14315         * event-Xt.c:
14316         * event-Xt.c (enqueue_Xt_dispatch_event):
14317         this fun gets exported.
14318
14319         * gui-msw.c:
14320         * gui-msw.c (mswindows_handle_gui_wm_command):
14321         handle both :callback and :callback-ex, and generate our own
14322         event because it's one of the callback-ex arguments.
14323
14324         * gui-x.c:
14325         * gui-x.c (popup_selection_callback):
14326         handle both :callback and :callback-ex, and generate our own
14327         event because it's one of the callback-ex arguments.
14328         * gui-x.c (button_item_to_widget_value):
14329         * gui-x.c (gui_items_to_widget_values_1):
14330         * gui-x.c (gui_item_children_to_widget_values):
14331         * gui-x.c (gui_items_to_widget_values):
14332         new image instance parameter in various places.
14333
14334         * fns.c (Freplace_list):
14335         fix small typo in doc string.
14336
14337         * lisp.h:
14338         declare enqueue_Xt_dispatch_event.
14339
14340 2000-04-28  Ben Wing  <ben@xemacs.org>
14341
14342         * buffer.c:
14343         * buffer.c (Frecord_buffer):
14344         * buffer.c (syms_of_buffer):
14345         delete record-buffer-hook.
14346
14347         * fns.c:
14348         * fns.c (Freplace_list):
14349         * fns.c (syms_of_fns):
14350         new primitive replace-list.
14351
14352         * frameslots.h:
14353         slot for old buffer-alist.
14354
14355         * lisp.h:
14356         exfun replace-list.
14357
14358         * redisplay.c:
14359         * redisplay.c (redisplay_frame):
14360         * redisplay.c (syms_of_redisplay):
14361         * redisplay.c (vars_of_redisplay):
14362         new hook buffer-list-changed-hook.
14363         call it.
14364
14365 2000-04-27  Ben Wing  <ben@xemacs.org>
14366
14367         * extents.h: extern in_modeline_generation.
14368
14369         * redisplay.c (generate_formatted_string_db): set
14370         in_modeline_generation.
14371
14372         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14373         flags if in modeline generation.  otherwise frame-modified-tick
14374         is ticked far too often.
14375         Declare in_modeline_generation.
14376
14377 2000-04-26  Ben Wing  <ben@xemacs.org>
14378
14379         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14380         option.
14381         (vars_of_emacs): add quick-build as an error-checking option.
14382         A bit kludgy, but there doesn't seem much point in creating
14383         a real var for this.
14384
14385         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14386
14387 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14388
14389         * redisplay.h (struct display_line): Add a new variable,
14390         line_continuation.
14391
14392         * redisplay.c (create_text_block): Set dl->line_continuation if
14393         the line continues.
14394         (create_string_text_block): Ditto.
14395         (regenerate_window_incrementally): Use line_continuation instead
14396         of searching continuation glyph.
14397         (add_margin_runes): Call add_glyph_rune.
14398         (add_glyph_rune): Handle margin glyph.
14399
14400 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14401
14402         * filelock.c (fill_in_lock_file_name):
14403         ANSIfy.
14404         Check for IS_ANY_SEP instead of '/'.
14405         (lock_file_1):
14406         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14407         Never check errno without first seeing that system call failed.
14408         (unlock_file): Add GCPRO.
14409         (Flock_buffer): Fix docstring.
14410         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14411
14412 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14413
14414         * sysdep.c (get_pty_max_bytes):
14415         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14416         strings longer than 252 bytes.
14417
14418         * md5.c: Unconditionally include ANSI header <limits.h>
14419
14420         * glyphs-x.c (convert_EImage_to_XImage):
14421         * lisp-union.h (union Lisp_Object):
14422         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14423
14424 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14425
14426         * filelock.c (current_lock_owner): Remove unused variable o, p.
14427
14428 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14429
14430         * callint.c: Remove multiply defined symbol Qlet
14431         (syms_of_callint): ditto.
14432
14433 2000-04-14  Andy Piper  <andy@xemacs.org>
14434
14435         * general.c (syms_of_general): add last-command, this-command, let
14436         and funcall.
14437
14438         * lisp.h: declare various symbols.
14439
14440         * glyphs.h: declare Qwidget_callback_current_channel;
14441
14442         * glyphs-widget.c (syms_of_glyphs_widget): add
14443         Qgui_callback_current_channel.
14444         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14445
14446         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14447         widget-callback-current-channel when invoking the interactive
14448         arg. Also bind last-command and next-command when invoking the
14449         widget updates.
14450         * gui-x.c (popup_selection_callback): ditto.
14451
14452         * gui.c (get_gui_callback): massage args so that we are always
14453         calling eval. This allows us to add our own variable bindings
14454         outside.
14455
14456         * glyphs-x.c (x_button_instantiate): use
14457         gui_items_to_widget_values since this is GC safe.
14458         (x_progress_gauge_instantiate): ditto.
14459         (x_edit_field_instantiate): ditto.
14460         (x_label_instantiate): ditto.
14461
14462         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14463         (emacs_Xt_event_widget_focus_out): new function
14464         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14465         focus.
14466         (emacs_Xt_event_add_widget_actions): new function. add focus
14467         functions as actions.
14468         (init_event_Xt_late): use it.
14469
14470 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14471
14472         * event-stream.c (Fdispatch_event): Doc fix.
14473
14474 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14475
14476         * postgresql.c: Remove all references to PQsetenv*.
14477
14478         * postgresql.h: Remove references to PGsetenvHandler object.
14479         * lrecord.h (lrecord_type): Ditto.
14480
14481 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14482
14483         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14484         real_heigh and real_width members, and accessor macros for these.
14485
14486         * glyphs-msw.c (init_image_instance_geometry): New function.
14487         (init_image_instance_from_dibitmap): Use it.
14488         (mswindows_resource_instantiate): Use it.
14489         (init_image_instance_from_xbm_inline): Use it.
14490         (mswindows_initialize_image_instance_mask): Use real bitmap
14491         geometry.
14492         (mswindows_create_resized_bitmap): Ditto.
14493         (mswindows_create_resized_mask): Ditto.
14494
14495         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14496         and bitmap to their surface size.
14497
14498 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14499
14500         * process-unix.c (unix_send_process): Guard against process MIA
14501         after Faccept_process_output.
14502
14503 2000-04-11  Ben Wing  <ben@xemacs.org>
14504
14505         * eval.c (unbind_to_hairy): fix brokenness introduced by
14506         nanosecond speed improvements.
14507
14508 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14509
14510         * sunplay.c (init_device): To play sounds correctly, the device
14511         apparently needs to be initialized at least once by XEmacs.  Make
14512         it so.
14513
14514 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14515
14516         * redisplay.c (add_margin_runes): Add text image glyph
14517           handling.
14518
14519 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14520
14521         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14522         gcc is newer than 2.5.
14523
14524 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14525
14526         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14527
14528         * fns.c (size_bit_vector):
14529         * alloc.c (size_vector):
14530         (make_vector_internal):
14531         (make_bit_vector_internal):
14532         (sweep_bit_vectors_1):
14533         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14534
14535 2000-04-06  Andy Piper  <andy@xemacs.org>
14536
14537         * gmalloc.c (malloc): undo previous change.
14538         (malloc): ditto.
14539         (free): ditto.
14540         (realloc): ditto.
14541
14542 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14543
14544         * line-number.c (buffer_line_number): Revert to former version.
14545
14546 2000-04-06  Andy Piper  <andy@xemacs.org>
14547
14548         * gmalloc.c (malloc): add error checking.
14549         (malloc): ditto.
14550         (free): ditto.
14551         (realloc): ditto.
14552
14553         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14554         button_item_to_widget_value arg.
14555
14556         * glyphs-x.c (x_button_instantiate): add extra
14557         button_item_to_widget_value arg.
14558         (x_progress_gauge_instantiate): ditto.
14559         (x_edit_field_instantiate): ditto.
14560         (x_label_instantiate): ditto.
14561
14562         * gui-x.c (gui_items_to_widget_values_1): add extra
14563         button_item_to_widget_value arg.
14564         (button_item_to_widget_value): add extra menu_item_p arg.
14565
14566         * gui-x.h: change signature of button_item_to_widget_value.
14567
14568         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14569         button_item_to_widget_value arg.
14570
14571 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14572
14573         * buffer.h (struct buffer): auto_save_modified should be long.
14574
14575 2000-04-05  Andy Piper  <andy@xemacs.org>
14576
14577         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14578         type.
14579         (button_query_geometry): give a little more room so that athena
14580         buttons fit.
14581
14582 2000-04-05  Andy Piper  <andy@xemacs.org>
14583
14584         * faces.c (complex_vars_of_faces): The widget face should inherit
14585         the font of the gui-element face.
14586
14587 2000-04-04  Andy Piper  <andy@xemacs.org>
14588
14589         * glyphs-x.c (x_button_update): new function. unconditionally
14590         update a button's state when the instance is dirty.
14591         (image_instantiator_format_create_glyphs_x): add x_button_update.
14592         (x_widget_instantiate): remove old resize cruft.
14593
14594 2000-04-02  Andy Piper  <andy@xemacs.org>
14595
14596         * frame.c (change_frame_size_1): The introduction of gutters means
14597         that we need to allow 0 as a potential frame dimension.
14598
14599 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14600
14601         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14602         image glyph if allow_cursor.
14603         (add_hscroll_rune): Don't allow cursor to border glyph.
14604         (create_text_block): Ditto.
14605
14606         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14607         text not in buffer.
14608         (redisplay_output_layout): Call ensure_face_cachel_complete for
14609         text image glyph.
14610
14611
14612 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14613
14614         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14615
14616         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14617         not in buffer
14618
14619         * redisplay-tty.c (tty_output_display_block): Delete the routine
14620         for text image glyph
14621         * redisplay-x.c (x_output_display_block): ditto
14622         * redisplay-msw.c (mswindows_output_display_block): ditto
14623
14624 2000-02-02  Mike Alexander  <mta@arbortext.com>
14625
14626         Note: Some of these were committed by accident as part of other
14627         patches.
14628
14629         * regex.c (regex_compile): Avoid compiler warnings.
14630
14631         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14632
14633         * nt.h: Declare term_ntproc correctly.
14634
14635         * nt.c: Remove incorrect declaration of get_home_directory which
14636         is declared correctly in lisp.h.
14637
14638         * keymap.c (get_keyelt): Avoid compiler warnings.
14639         (raw_lookup_key_mapper): Avoid compiler warnings.
14640
14641         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14642
14643         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14644
14645         * filemode.c (mode_string): Avoid compiler warnings.
14646
14647         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14648         avoid warning.
14649
14650         * events-mod.h: Undef some things that winuser.h defines differently.
14651
14652         * data.c (Faset): Avoid compiler warnings.
14653
14654         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14655
14656 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14657
14658         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14659         Fall through to simple beep on error.
14660         Replace "extern" by real header file.
14661
14662         * linuxplay.c: Use nativesound.h
14663         (play_sound_data): Return error code. Be less verbose on error.
14664
14665         * sunplay.c: Use nativesound.h
14666         (play_sound_data): Return error code. Be less verbose on error.
14667
14668         * ntplay.c: Use nativesound.h
14669         (play_sound_data): Return fake error code
14670
14671         * sgiplay.c: Use nativesound.h
14672         (play_sound_data): Return error code
14673
14674         * hpplay.c: Use nativesound.h, partially implement
14675         new error code. Break compilation until finished.
14676         (play_sound_data): error code.
14677
14678         * nativesound.h (play_sound_file):
14679           (play_sound_data): Prototype in new header.
14680
14681 2000-03-31  Andy Piper  <andy@xemacs.org>
14682
14683         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14684         for toggle and radio buttons.
14685         (image_instantiator_buttons): use it.
14686
14687 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14688
14689         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14690         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14691         found. Scrollbar event probably belonged to some old config.
14692
14693 2000-03-31  Andy Piper  <andy@xemacs.org>
14694
14695         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14696         than 1.
14697         (initialize_widget_image_instance): default layout to
14698         LAYOUT_HORIZONTAL rather than 0.
14699         (widget_instantiate): reverse the item list at the end rather than
14700         every iteration.
14701         (layout_layout): re-code for the border text at the front of the
14702         item list rather than at the end.
14703         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14704         provided by the user.
14705         (widget_query_geometry): comment.
14706
14707 2000-03-30  Andy Piper  <andy@xemacs.org>
14708
14709         * glyphs-widget.c (image_instantiator_layout): allow standard
14710         widget keywords in layouts.
14711
14712         * gutter.c (output_gutter): cope with nil gutter contents.
14713
14714         * frame.c (Fset_frame_properties): add gutter docs.
14715
14716 2000-03-29  Andy Piper  <andy@xemacs.org>
14717
14718         * toolbar-msw.c (TBSTYLE_FLAT): add.
14719         (mswindows_output_toolbar): minor fiddling.
14720
14721 2000-03-29  Andy Piper  <andy@xemacs.org>
14722
14723         * gutter.c (output_gutter): force gutter size recalculation if
14724         what we are trying to display won't fit.
14725         (update_gutter_geometry): new function. A per-gutter version of
14726         update_frame_gutter_geometry.
14727         (update_frame_gutter_geometry): use it.
14728         (redraw_exposed_gutter): add extra debugging output.
14729
14730 2000-03-28  Mike Alexander  <mta@arbortext.com>
14731
14732         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14733         (pdump_file_unmap): Implement it on Windows
14734         (pdump_file_get): Save alocated handles for pdump_file_unmap
14735
14736 2000-03-28  Andy Piper  <andy@xemacs.org>
14737
14738         * gui.c (get_gui_callback): treat Quit specially.
14739
14740 2000-03-27  Andy Piper  <andy@xemacs.org>
14741
14742         * glyphs.c (image_instantiate): be careful to check in the same
14743         way we assigned.
14744
14745 2000-03-27  Didier Verna  <didier@xemacs.org>
14746
14747         * config.h.in: define the proper SMART_INCLUDE macro.
14748         handle renaming of `foo_h_path' to `foo_h_file'.
14749
14750         * database.c: ditto.
14751
14752         * emacs.c: ditto.
14753
14754         * linuxplay.c: ditto.
14755
14756         * terminfo.c: ditto.
14757
14758         * tooltalk.h: ditto.
14759
14760 2000-03-27  Andy Piper  <andy@xemacs.org>
14761
14762         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14763         gets updated whenever the face might have changed.
14764
14765 2000-03-26  Mike Alexander  <mta@arbortext.com>
14766
14767         * dumper.c (pdump_resource_free): Fix the comment.
14768
14769 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14770
14771         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14772
14773 2000-03-22  Mike Alexander  <mta@arbortext.com>
14774
14775         * dumper.c: Include Windows headers on Windows
14776         (pdump_resource_free): Add a body to the function
14777         (pdump_load): exe_name -> exe_path and add some comments.
14778
14779 2000-03-25  Mike Alexander  <mta@arbortext.com>
14780
14781         * gui.c (copy_gui_item_tree): Return a value in all cases
14782
14783 2000-03-21  Didier Verna  <didier@xemacs.org>
14784
14785         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14786         lwlib/config.h.in.
14787         (SMART_INCLUDE): new macro.
14788         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14789         the proper location.
14790
14791         * postgresql.c: use it.
14792
14793         * inline.c: ditto.
14794
14795 2000-03-24  Andy Piper  <andy@xemacs.org>
14796
14797         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14798         do this.
14799
14800 2000-03-24  Andy Piper  <andy@xemacs.org>
14801
14802         * redisplay-output.c (compare_runes): use image_instance_changed
14803         to detect changes. Do not depend on glyphs_changed, only depend on
14804         dirtiness.
14805          (redisplay_output_layout): add debug messages.
14806         (compare_runes): ditto.
14807
14808         * glyphs.h: declare new functions.
14809         (struct Lisp_Image_Instance): remove percent and associated
14810         accessors.
14811
14812         * gui.h: declare new copying functions.
14813
14814         * gui.c (copy_gui_item_tree): new function.
14815         (copy_gui_item): new function.
14816         (gui_item_id_hash): revert to standard hash.
14817         (gui_item_hash): ditto.
14818         (gui_item_hash_internal): deleted.
14819         (mark_gui_item): mark value.
14820         (gui_item_add_keyval_pair): add value.
14821         (gui_item_init): ditto.
14822         (gui_add_item_keywords_to_plist): ditto.
14823         (gui_item_equal): ditto.
14824         (syms_of_gui): add Q_value.
14825
14826         * glyphs-x.c (x_progress_gauge_update): use pending items and
14827         value for setting the state.
14828         (x_update_widget): don't set items from pending here.
14829
14830         * glyphs-widget.c (update_widget): update items here.
14831         (progress_gauge_set_property): use items for storing value. Put
14832         new value in pending items.
14833
14834         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14835         items for new value. Convert percent -> value.
14836         (mswindows_tab_control_update): don't update items here.
14837
14838         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14839         (update_subwindow): ditto.
14840         (image_instance_changed): new function. Compare hash values and
14841         past and present widget items.
14842         (image_instantiate): We more careful about where we instantiate
14843         things.
14844         (image_instantiate): add error checking.
14845
14846         * gutter.c (syms_of_gutter): use -hook.
14847
14848 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
14849
14850         * console-tty.c (Fset_console_tty_input_coding_system): Use
14851         Qkeyboard.
14852         (Fset_console_tty_output_coding_system): Use Qterminal.
14853         (tty_init_console): Use Qkeyboard and Qterminal.
14854
14855 2000-03-21  Ben Wing  <ben@xemacs.org>
14856
14857         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14858         From Mike Alexander <mta@arbortext.com>.
14859
14860 2000-03-21  Ben Wing  <ben@xemacs.org>
14861
14862         * event-msw.c (mswindows_need_event): Horrible kludge to fix
14863         process brokenness.  Proper implementation to come.
14864         * callproc.c:
14865         Rename call-process-internal to old-call-process-internal.
14866         New impl. in process.el.
14867
14868 2000-03-21  Martin Buchholz  <martin@xemacs.org>
14869
14870         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14871
14872 2000-03-20  Andy Piper  <andy@xemacs.org>
14873
14874         * glyphs.c (full_list_hash): make hashes of the same elements in
14875         different orders return different values.
14876
14877 2000-03-20  Martin Buchholz <martin@xemacs.org>
14878
14879         * XEmacs 21.2.32 is released.
14880
14881 2000-03-20  Martin Buchholz  <martin@xemacs.org>
14882
14883         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14884         (DFC_MALLOC_USE_CONVERTED_DATA):
14885         Add aliasing-safe casts to allow use with char* or unsigned char*
14886         lvalues.
14887
14888         * eldap.c (Fldap_open):
14889         (Fldap_search_basic):
14890         (Fldap_add):
14891         (Fldap_modify):
14892         Make C++-compilable.
14893         Make sure GCPRO'ed variables are initialized.
14894         Use temp variables to avoid repeated calls to Flength.
14895
14896 2000-03-16  Martin Buchholz  <martin@xemacs.org>
14897
14898         * sysfile.h:
14899         Make sure PATH_MAX is always defined.
14900         Include limits.h for PATH_MAX.
14901         Deprecate use of MAXPATHLEN.
14902
14903 2000-03-10  Martin Buchholz  <martin@xemacs.org>
14904
14905         * emacs.c: Add reinit_vars_of_fileio.
14906         * symsinit.h: Add reinit_vars_of_fileio.
14907         * fileio.c (reinit_vars_of_fileio): New.
14908         * fileio.c (Fmake_temp_name):
14909         Initialize temp_name random number from microseconds to make
14910         collisions even less likely.  Initialize always at process startup
14911         time.  (make-temp-name) used to return the same file name twice in
14912         a row when PDUMP.
14913         Random stylistic fiddling.
14914         Comment fixes.
14915
14916 2000-03-20  Andy Piper  <andy@xemacs.org>
14917
14918         * glyphs.c (image_instantiate): allow text glyphs to be
14919         instantiated in the minibuffer window.
14920
14921 2000-03-19  Andy Piper  <andy@xemacs.org>
14922
14923         * glyphs.c (image_instance_hash): be careful about which items we
14924         hash on.
14925
14926         * glyphs-widget.c (tab_control_set_property): record into pending
14927         items rather than the actual items.
14928
14929         * glyphs-x.c (x_update_widget): use pending items to update with.
14930
14931         * glyphs-msw.c (mswindows_tab_control_update): use pending items
14932         to update with.
14933
14934         * glyphs.c (mark_image_instance): mark pending items.
14935
14936         * window.c (Fset_window_configuration): record the buffer.
14937         (Fselect_window): totally revert previous change which breaks many
14938         things.
14939
14940 2000-03-18  Andy Piper  <andy@xemacs.org>
14941
14942         * glyphs-msw.c (mswindows_tab_control_update): force selected
14943         item.
14944
14945         * glyphs.c (image_instantiate): don't allow the minibuffer as a
14946         window domain cache, otherwise we get inconsistencies at
14947         startup. There is something fishy at startup which can lead to the
14948         minibuffer being the selected window when the gutter content is
14949         instantiated.
14950
14951         * gui.c (parse_gui_item_tree_list): add probably unnecessary
14952         gcpros.
14953         (parse_gui_item_tree_children): ditto.
14954         (parse_gui_item_tree_item): ditto.
14955
14956         * glyphs.c (Fupdate_widget_instances): return something.
14957
14958 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
14959
14960         * window.c (Fselect_window): Undo 2000-03-17 change.
14961
14962 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
14963
14964         * postgresql.c (Fpq_setenv): Remove this turkey when linking
14965         against v7.0 libraries.  Insta-coredump city until the postgres
14966         folks fix it.
14967
14968 2000-03-17  Andy Piper  <andy@xemacs.org>
14969
14970         * faces.c (complex_vars_of_faces): don't give the widget face an
14971         inherited background pixmap.
14972
14973         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
14974         selected item.
14975
14976         * event-stream.c (Fdispatch_non_command_events): return something.
14977
14978         * gutter.c (output_gutter): use widget face.
14979         (clear_gutter): ditto.
14980
14981         * NEWS: adjust again.
14982
14983         * window.c (Fselect_window): make sure this runs to completion to
14984         avoid oddities with Fset_window_configuration.
14985         (Fcurrent_window_configuration): in general do not save the
14986         minibuffer as the selected window.
14987
14988         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
14989
14990 2000-03-16  Olivier Galibert  <galibert@pobox.com>
14991
14992         * emacs.c (Frunning_temacs_p): Revert previous patch.
14993         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
14994
14995 2000-03-16  Andy Piper  <andy@xemacs.org>
14996
14997         * glyphs-x.c (x_tab_control_update): if no widget values then
14998         return.
14999
15000         * NEWS: update for new features.
15001
15002         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15003         synthetic event to the native system.
15004         (reinit_vars_of_event_Xt): set force_event_pending to
15005         emacs_Xt_force_event_pending.
15006
15007         * events.h (struct event_stream): add force_event_pending.
15008
15009         * specifier.c (recompute_one_cached_specifier_in_window): add
15010         comment.
15011
15012         * redisplay.c (redisplay_frame): don't call
15013         update_frame_subwindows. Reset subwindow cachels when
15014         subwindows_changed, removing this was an optimization too far.
15015
15016         * redisplay-output.c (compare_runes): reorganize so that we catch
15017         glyph changes when we want them. Set optimize_output when this
15018         would help layouts.
15019         (redisplay_output_layout): remove frame_really_changed, use
15020         optimize_output instead.
15021
15022         * redisplay-msw.c (mswindows_output_display_block): reset
15023         optimize_output after outputting a glyph.
15024         * redisplay-x.c (x_output_display_block): ditto.
15025         * redisplay-tty.c (tty_output_display_block): ditto.
15026
15027         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15028         functions.
15029         (gutter_specs_changed): do specific gutter positions.
15030         (top_gutter_specs_changed): new function. Only update the
15031         specified gutter specs.
15032         (bottom_gutter_specs_changed): ditto.
15033         (left_gutter_specs_changed): ditto.
15034         (right_gutter_specs_changed): ditto.
15035
15036         * gui.c (gui_item_hash_internal): new function, does a real hash.
15037         (gui_item_id_hash): use it.
15038         (gui_item_hash): hash the eval'ed gui_item.
15039
15040         * gui-x.c (popup_selection_callback): send an eval event to call
15041         Fupdate_widget_instances.
15042
15043         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15044         to call Fupdate_widget_instances.
15045
15046         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15047         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15048
15049         * glyphs.c: (update_frame_subwindows): deleted.
15050         (Fupdate_widget_instances): new function for updating the dirty
15051         state of widgets that might have changed.
15052         (syms_of_glyphs): add Qupdate_widget_instances.
15053         (full_list_hash): hash a list completely.
15054         (image_instance_hash): use it for items and properties.
15055
15056         * frame-msw.c (mswindows_size_frame_internal): remove unused
15057         variable.
15058
15059         * faces.h (struct face_cachel): fix comment.
15060
15061         * event-stream.c (Fdispatch_non_command_events): new
15062         function. Process non-command events, forcing an event cycle
15063         beforehand.
15064         (syms_of_event_stream): declare.
15065         (event_stream_force_event_pending): new function. Force an event
15066         on the native event queue so that an event cycle will occur next
15067         time we check.
15068
15069         * event-msw.c:
15070         (struct ntpipe_shove_stream):
15071         (mswindows_enqueue_dispatch_event):
15072         (mswindows_dequeue_dispatch_event):
15073         (mswindows_cancel_dispatch_event):
15074         (mswindows_pump_outstanding_events):
15075         (mswindows_drain_windows_queue):
15076         (mswindows_handle_paint):
15077         (mswindows_wnd_proc):
15078         (mswindows_key_to_emacs_keysym):
15079         (get_process_input_waitable):
15080         (emacs_mswindows_delete_stream_pair): re-indent file.
15081         (mswindows_need_event): do not process further fds if the windows
15082         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15083         fixes the 100% cpu problem.
15084         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15085
15086 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15087
15088         * alloc.h: New.
15089         * dumper.h: New.
15090         * dumper.c: New.
15091
15092         * emacs.c: Moved dump file searching to dumper.c.
15093         (Frunning_temacs_p): Fixed.
15094
15095         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15096         last_lrecord_type_index_assigned.
15097
15098 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15099
15100         * symsinit.h: Added reinit parameter to init_console_stream
15101         declaration.
15102
15103         * lisp.h: Added file parameter to pdump_load declaration.
15104
15105         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15106         support.  Added dump file searching.
15107
15108         * config.h.in: Added EMACS_PROGNAME.
15109
15110         * console-stream.c (init_console_stream): Fix reinitialisation
15111         when running from temacs.
15112
15113         * alloc.c (pdump): Add id support.
15114         (pdump_load): Add file parameter and signature/id support.
15115
15116         * Makefile.in.in: Add full pdump support.
15117
15118 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15119
15120         * postgresql.c: Update documentation to reflect latest code
15121         status.
15122         (print_result): Show tuple counts in printed representation when
15123         appropriate.
15124         (Fpq_put_nbytes): MULE-ize.
15125         (Fpq_get_line_async): Ditto.
15126
15127 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15128
15129         * postgresql.c (Fpq_lo_import): Fix return value.
15130         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15131
15132 2000-03-13  Ben Wing  <ben@xemacs.org>
15133
15134         * alloc.c (pdump_load):
15135         Fix compile warning under mswin.
15136
15137 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15138
15139         * postgresql.c: Mule-ization, bug fixes.
15140         Use PG_CODING to encapsulate coding system name changes.
15141         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15142         (pg-coding-system): Create.
15143
15144         (Fpq_conn_defaults): Mule-ize.
15145         (Fpq_connectdb): Mule-ize & bug fix.
15146         (Fpq_connect_start): Mule-ize.
15147         (Fpq_set_client_encoding): Mule-ize.
15148         (Fpq_finish): Document `DEAD' connection status.
15149         (Fpq_clear): Ditto.
15150         (Fpq_pgconn): Mule-ize.
15151         (Fpq_exec): Mule-ize & bug fix.
15152         (Fpq_send_query): Ditto.
15153         (Fpq_get_result): Ditto.
15154         (Fpq_res_status): Mule-ize.
15155         (Fpq_result_error_message): Mule-ize.
15156         (Fpq_ntuples): fix comments.
15157         (Fpq_fname): Mule-ize.
15158         (Fpq_fnumber): Mule-ize.
15159         (Fpq_ftype): fix comments.
15160         (Fpq_get_value): Mule-ize.
15161         (Fpq_cmd_status): Ditto.
15162         (Fpq_cmd_tuples): Ditto.
15163         (Fpq_oid_value): Ditto.
15164         (Fpq_notifies): Ditto.
15165         (Fpq_lo_import): Ditto.
15166         (Fpq_lo_export): Ditto.
15167         (Fpq_get_line): Ditto.
15168         (Fpq_put_line): Mule-ize and bug fix.
15169         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15170
15171 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15172
15173         * postgresql.c (vars_of_postgresql): Mule-ize.
15174         (Fpq_conn_defaults): Ditto.
15175
15176 2000-03-12  Ben Wing  <ben@xemacs.org>
15177
15178         * alloc.c (Fmake_byte_code):
15179         * alloc.c (debug_string_purity_print):
15180         * alloc.c (pdump_backtrace):
15181         * alloc.c (pdump_get_indirect_count):
15182         * alloc.c (pdump_register_sub):
15183         * alloc.c (pdump_register_object):
15184         * alloc.c (pdump_register_struct):
15185         * alloc.c (pdump_dump_data):
15186         * alloc.c (pdump_reloc_one):
15187         Minor cleanups.
15188
15189         * console-msw.c:
15190         * console-msw.c (GetConsoleHwnd):
15191         * console-msw.c (msw_hide_console):
15192         * console-msw.c (msw_show_console):
15193         * console-msw.c (msw_ensure_console_buffered):
15194         * console-msw.c (msw_output_console_string):
15195         * console-msw.c (console_type_create_mswindows):
15196
15197         a) Added functions to manipulate the console window for use with
15198         shell support.
15199
15200         b) Added support for writing text to the console, which is now
15201         used under Windows when xemacs is not being run non-interactively,
15202         to write text that would otherwise be destined for stdout because
15203         under these circumstances, text written to stdout tends to
15204         disappear and not be seen.
15205
15206         * console-msw.h:
15207         * event-Xt.c:
15208         * event-Xt.c (x_event_to_emacs_event):
15209         * event-Xt.c (describe_event_window):
15210         * events-mod.h (XEMACS_MOD_CONTROL):
15211         * events.c:
15212         * events.c (Fmake_event):
15213         * events.c (character_to_event):
15214         * events.c (event_to_character):
15215         * events.c (format_event_object):
15216         * events.c (Fevent_modifiers):
15217         * events.h:
15218         * events.h (struct key_data):
15219         * events.h (struct button_data):
15220         * events.h (struct misc_user_data):
15221         * frame-x.c (Fcde_start_drag_internal):
15222         * frame-x.c (Foffix_start_drag_internal):
15223         * gpmevent.c (Freceive_gpm_event):
15224         * keymap.c:
15225         * keymap.c (bucky_sym_to_bucky_bit):
15226         * keymap.c (control_meta_superify):
15227         * keymap.c (make_key_description):
15228         * keymap.c (keymap_lookup_directly):
15229         * keymap.c (create_bucky_submap):
15230         * keymap.c (keymap_store):
15231         * keymap.c (define_key_check_and_coerce_keysym):
15232         * keymap.c (define_key_parser):
15233         * keymap.c (define_key_alternate_name):
15234         * keymap.c (Fdefine_key):
15235         * keymap.c (raw_lookup_key_mapper):
15236         * keymap.c (struct map_keymap_unsorted_closure):
15237         * keymap.c (map_keymap_unsorted_mapper):
15238         * keymap.c (map_keymap_sort_predicate):
15239         * keymap.c (map_keymap_sorted):
15240         * keymap.c (accessible_keymaps_mapper_1):
15241         * keymap.c (where_is_recursive_mapper):
15242         * keymap.c (describe_map_mapper):
15243         * keymap.c (describe_map_sort_predicate):
15244         * keymap.c (describe_map):
15245         * keymap.c (complex_vars_of_keymap):
15246         And a number of other files, the key modifier preprocessor
15247         constants that xemacs uses have names that conflict with constants
15248         defined under MS Windows for other purposes, so they were renamed
15249         to begin with the prefix XEMACS_. The variables that hold such
15250         modifiers were changed to consistently be of type int to fix
15251         various compile warnings.
15252
15253         * console.c (complex_vars_of_console):
15254         * device.c:
15255         * device-msw.c:
15256         * device-msw.c (mswindows_finish_init_device):
15257         * device-msw.c (msw_get_workspace_coords):
15258         * device-msw.c (mswindows_device_system_metrics):
15259         and various other files, added support for a new
15260         device property called offset-workspace which returns the position
15261         of the upper left corner of the workspace area and goes along with
15262         the existing size-workspace property.
15263
15264         * dialog-msw.c:
15265         * dialog-msw.c (push_bufbyte_string_as_unicode):
15266         * dialog-msw.c (mswindows_popup_dialog_box):
15267         Added support for XEmacs-style accelerator specifications in
15268         button text.  Note: I didn't add support for this under X Windows,
15269         and somebody needs to do this.
15270
15271         * dialog.c:
15272         * dialog.c (Fpopup_dialog_box):
15273         Documented the support for accelerators that was just mentioned.
15274
15275         editfns.c (get_home_directory): Changed behavior under Windows
15276         when HOME not defined; former behavior was irretrievably broken.
15277
15278         * emacs.c:
15279         * emacs.c (main_1):
15280         * emacs.c (main):
15281         * minibuf.c (clear_echo_area_internal):
15282         * minibuf.c (echo_area_append):
15283         * print.c:
15284         * print.c (std_handle_out_external):
15285         * print.c (std_handle_out_va):
15286         * print.c (fatal):
15287         * print.c (write_string_to_stdio_stream):
15288         * print.c (output_string):
15289         * print.c (debug_print):
15290         * print.c (debug_backtrace):
15291         * print.c (debug_short_backtrace):
15292         Cleaned up the code that prints text to stdout so that this can be
15293         changed to output into a console window instead under MS Windows,
15294         as described above.
15295
15296         * eval.c:
15297         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15298         * eval.c (internal_catch):
15299         * eval.c (unwind_to_catch):
15300         * eval.c (throw_or_bomb_out):
15301         * eval.c (condition_case_1):
15302         * eval.c (signal_1):
15303         * eval.c (check_error_state_sanity):
15304         * eval.c (call_with_suspended_errors_1):
15305         * eval.c (call_with_suspended_errors):
15306         * eval.c (reinit_vars_of_eval):
15307         Added code to catch throw loops and check for a pesky bug that may
15308         be gone now.
15309
15310         * event-msw.c:
15311         * event-msw.c (key_needs_default_processing_p):
15312         * event-msw.c (mswindows_wnd_proc):
15313         * event-msw.c (mswindows_modifier_state):
15314         * event-msw.c (emacs_mswindows_quit_p):
15315         * event-msw.c (vars_of_event_mswindows):
15316         a) Added support for using the alt key to select menu items as is
15317         standard under MS Windows.  This is controlled using the variable
15318         menu-accelerator-enabled, just like under X Windows.  There is an
15319         option on the options menu to turn this support on.  I really
15320         think that it should be on by default under Windows, but I'm not
15321         going to make this change yet.
15322
15323         b)  Added support for dynamic display size changes under Windows.
15324
15325         * event-stream.c:
15326         * event-stream.c (maybe_echo_keys):
15327         * event-stream.c (Fnext_event):
15328         * event-stream.c (command_builder_find_leaf):
15329         * event-stream.c (lookup_command_event):
15330         * event-stream.c (execute_command_event):
15331         * event-stream.c (pre_command_hook):
15332         * event-stream.c (post_command_hook):
15333         * event-stream.c (syms_of_event_stream):
15334         * event-stream.c (vars_of_event_stream):
15335         * event-stream.c (complex_vars_of_event_stream):
15336         * events.h (struct command_builder):
15337
15338         a) Tried to clean up a little bit the horribly written x-specific
15339         accelerator code that crept into this file.  I moved this code
15340         into menubar-x.c where it belongs. I also needed to move the
15341         command builder structure into the file events.h because it is
15342         accessed directly by this accelerator code.  What I didn't do, but
15343         which should be done at some point, is to properly abstract this
15344         code using device methods instead of the kludgy way that it
15345         currently hooks into the event code.
15346
15347         b) Added the lisp variables this-command-properties and
15348         last-command- properties, which should be used to synchronize two
15349         adjacent commands in preference to playing games with the variable
15350         this-command, which is typically what happens.
15351
15352         c) Added some slightly nasty code to hook into the lisp support
15353         for shifted- motion-key selection.  This is actually necessary for
15354         somewhat complicated reasons, which are described in
15355         simple.el. (NB: I think the proper thing would be to have the code
15356         that calls the pre and post command hooks also call out to generic
15357         lisp functions in simple.el, where all built-in stuff could be
15358         added.  I will think about this more.)
15359
15360         * event-unixoid.c (poll_fds_for_input):
15361         * lread.c (readchar):
15362         * redisplay-tty.c (tty_clear_frame):
15363         * redisplay-x.c (x_get_gc):
15364         * signal.c (interrupt_signal):
15365         And a whole bunch of other files: fixed up places that printed
15366         directly to stderr to instead call the function stderr_out so that
15367         the changes I made under Windows work correctly.
15368
15369         * filemode.c (mode_string):
15370         Warning fixes.
15371
15372         * frame-msw.c:
15373         * frame-msw.c (mswindows_size_frame_internal):
15374         Fixed the computation of frame size and position to keep the frame
15375         within the workspace area, rather than within the physical
15376         dimensions of the screen, so that the frame doesn't overlap window
15377         manager decorations, such as the start menu and toolbar, typically
15378         at the bottom of the screen.
15379
15380         * frame.c (vars_of_frame):
15381         Changed the default frame title format under MS Windows to consist
15382         of buffername-XEmacs, which is standard under MS Windows.  I think
15383         it might be a good idea to change this everywhere because I think
15384         it is superior to the current frame title format, but this is the
15385         kind of change that is likely to cause some people to get annoyed,
15386         so I'm not making it.
15387
15388         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15389
15390         * gui-msw.c (mswindows_handle_gui_wm_command):
15391         Fixed compile warnings.
15392
15393         * gui-x.c:
15394         * gui-x.c (strdup_and_add_accel):
15395         * gui-x.c (button_item_to_widget_value):
15396         * gui-x.h:
15397         Added code to automatically put an accelerator onto the beginning
15398         of menu items that don't have one as is now the standard, and is
15399         described more later.  Also fixed things so that the menu item
15400         name can be an evaluated expression, again a new standard.
15401
15402         * gui.c:
15403         * gui.c (gui_item_add_keyval_pair):
15404         * gui.c (make_gui_item_from_keywords_internal):
15405         * gui.c (gui_add_item_keywords_to_plist):
15406         * gui.c (gui_item_accelerator):
15407         * gui.c (gui_name_accelerator):
15408         * gui.c (gui_item_included_p):
15409         * gui.c (gui_item_display_flush_left):
15410         * gui.c (gui_item_display_flush_right):
15411         * gui.c (parse_gui_item_tree_item):
15412         * gui.c (parse_gui_item_tree_children):
15413         * gui.c (parse_gui_item_tree_list):
15414         Mule-ized.  Cleanup.  GCPRO addition.
15415
15416         * line-number.c (buffer_line_number):
15417         * lisp.h:
15418         * lisp.h (EMACS_INT_MAX):
15419         Added the manifest constant EMACS_INT_MIN corresponding to the
15420         existing constant EMACS_INT_MAX.  This is partially to fix compile
15421         warnings under Windows, and partly for cleanliness.
15422
15423         * menubar-msw.c:
15424         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15425         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15426         * menubar-msw.c (displayable_menu_item):
15427         * menubar-msw.c (populate_menu_add_item):
15428         * menubar-msw.c (populate_or_checksum_helper):
15429         * menubar-msw.c (populate_menu):
15430         * menubar-msw.c (update_frame_menubar_maybe):
15431         * menubar-msw.c (prune_menubar):
15432         * menubar-msw.c (msw_char_is_accelerator):
15433         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15434         * menubar-msw.c (mswindows_handle_wm_command):
15435         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15436         * menubar-msw.c (mswindows_handle_wm_initmenu):
15437         * menubar-msw.c (mswindows_update_frame_menubars):
15438         * menubar-msw.c (mswindows_free_frame_menubars):
15439         * menubar-msw.c (mswindows_popup_menu):
15440         Fixed a bug in handling accelerators where an extra character
15441         would be displayed in the menu item.  Also generalized the
15442         function displayable_menu_item because it is now used by the
15443         dialog box code as well.  And finally, added code in the functions
15444         that create the menubar to extract a list of accelerators for the
15445         top level menubar, which is used in the event code to determine
15446         whether a particular alt-key combination should be used to invoke
15447         a menu item, or should be passed through to access the standard
15448         XEmacs keymap binding for this key combination.
15449
15450         Much needed GCPROing.
15451
15452         * menubar-x.c:
15453         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15454         * menubar-x.c (menu_item_descriptor_to_widget_value):
15455         * menubar-x.c (restore_in_menu_callback):
15456         * menubar-x.c (x_popup_menu):
15457         * menubar-x.c (menu_move_up):
15458         * menubar-x.c (menu_move_down):
15459         * menubar-x.c (menu_move_left):
15460         * menubar-x.c (menu_move_right):
15461         * menubar-x.c (menu_select_item):
15462         * menubar-x.c (command_builder_operate_menu_accelerator):
15463         * menubar-x.c (menu_accelerator_junk_on_error):
15464         * menubar-x.c (command_builder_find_menu_accelerator):
15465         * menubar-x.c (Faccelerate_menu):
15466         * menubar.h:
15467         Moved a whole bunch of code here that was previously in
15468         event-stream.c as described above.  There is also code connected
15469         to the new standard of adding an accelerator to the beginning of
15470         menu items that don't have one as described above and below.
15471
15472         * menubar.c:
15473         * menubar.c (menu_parse_submenu_keywords):
15474         * menubar.c (Fmenu_find_real_submenu):
15475         * menubar.c (Fnormalize_menu_item_name):
15476         * menubar.c (syms_of_menubar):
15477         * menubar.c (vars_of_menubar):
15478         * menubar.c (complex_vars_of_menubar):
15479
15480         a) Cleaned up a bunch of documentation and improved it.
15481
15482         b) XEmacs now automatically adds an accelerator onto the beginning
15483         of any menu items that don't have one.  I did this because there
15484         will inevitably be some menu items on the main menubar that don't
15485         have accelerators on them because the package that adds that
15486         particular menu item hasn't yet been fixed up to have accelerators
15487         in them and it looked rather strange to have some items with and
15488         some items without accelerators, especially since even in items
15489         without accelerators, you can, at least under windows, still
15490         access the item through an accelerator corresponding to the first
15491         character in the item's name.  If people don't like this behavior,
15492         I can add a variable to turn it off optionally, but I'm not sure
15493         this is a good idea because we really do need to have accelerators
15494         on all of the menu items, and if a package doesn't like the
15495         accelerators being put on the first character, then it should put
15496         the accelerators where they belong.
15497
15498         c) I made a behavior change, which is that the descriptor that
15499         specifies the text of the menu item, which formerly was just a
15500         string, can now also be an evaluated expression.  This makes this
15501         descriptor parallel with all of the others, which could also be
15502         evaluated expressions.  This also obviates the need for the
15503         keyword :label, which was previously listed in the documentation
15504         as unimplemented, and which was for the same purpose.
15505
15506         d) GCPROing.
15507
15508         * ntproc.c:
15509         * ntproc.c (new_child):
15510         * ntproc.c (sys_spawnve):
15511         * ntproc.c (find_child_console):
15512         * ntproc.c (sys_kill):
15513         Fixed compile warnings.  By the way, this file should really go
15514         away entirely, and this will happen as soon as Kirill makes his
15515         final round of process cleanups, which affect the function
15516         call-process.
15517
15518         * process-nt.c:
15519         * process-nt.c (struct nt_process_data):
15520         * process-nt.c (find_process_from_pid):
15521         * process-nt.c (send_signal_the_nt_way):
15522         * process-nt.c (enable_child_signals):
15523         * process-nt.c (find_child_console):
15524         * process-nt.c (send_signal_the_95_way):
15525         * process-nt.c (nt_finalize_process_data):
15526         * process-nt.c (ensure_console_window_exists):
15527         * process-nt.c (nt_create_process):
15528         * process-nt.c (nt_kill_child_process):
15529         * process-nt.c (nt_kill_process_by_pid):
15530         * process-nt.c (nt_open_network_stream):
15531         * process-nt.c (vars_of_process_nt):
15532         Copied over code from Emacs 20.5 to correctly send signals to sub-
15533         processes under Windows 95.  Also added code to automatically
15534         create and hide console window when a sub-process is created under
15535         Windows 95, which obviates the need for the separate runemacs.exe
15536         executable, and finally implemented some variables that were
15537         implemented in Emacs 20.5, but previously not in XEmacs.  These
15538         include mswindows- start-process-share-console and
15539         mswindows-start-process-inherit-error-mode. (Both of these only
15540         apply to Windows 95.)
15541
15542         * regex.c (regex_compile): Fixed a compile warning.
15543
15544         * select-msw.c:
15545         * select-msw.c (mswindows_own_selection):
15546         * select-msw.c (mswindows_get_foreign_selection):
15547         * select-msw.c (mswindows_disown_selection):
15548         * select-msw.c (console_type_create_select_mswindows):
15549         * select-msw.c (syms_of_select_mswindows):
15550         Cleaned up the file and implemented the device method
15551         selection_exists_p, which had accidentally been left out.  Also
15552         removed four lisp functions that were remnants from before the
15553         time when the selection code was properly device abstracted.
15554         These functions are no longer needed because there are generic
15555         equivalents, and because they were added recently and don't exist
15556         in FSF Emacs, I don't think there's any problem with just deleting
15557         them.
15558
15559         * sysdep.c:
15560         * sysdep.c (sys_subshell):
15561         Fixed a compile warning, although in this case there's probably
15562         something wrong with this code, and it ought to be looked into
15563         more thoroughly by somebody who understands it.
15564
15565         * window.c:
15566         * window.c (Fwindow_text_area_height):
15567         * window.c (Fwindow_width):
15568         * window.c (Fwindow_full_width):
15569         * window.c (Fwindow_pixel_width):
15570         * window.c (debug_print_window):
15571         * window.c (syms_of_window):
15572         Added functions window-text-area-height and window-full-width,
15573         which are functions for returning various width and height
15574         characteristics of a window. (One of these functions is necessary
15575         for making the file dialog box work correctly, and the other one
15576         was added for completeness.)  Also added a table to the
15577         documentation for window-height which describes the entire scheme
15578         for accessing width and height characteristics of a window.
15579
15580 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15581
15582         * nt.c (fstat): Added a comment for another problem with
15583         non-encapsulated [f]stat(), reported by Adrian Aichner
15584         <aichner@ecf.teradyne.com>.
15585
15586 2000-03-11  Andy Piper  <andy@xemacs.org>
15587
15588         * window.c (make_dummy_parent): initialize subwindow instance
15589         cache.
15590         (Fset_window_configuration): zero extent_modiff.
15591
15592 2000-03-10  Andy Piper  <andy@xemacs.org>
15593
15594         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15595         more changes can be triggered.
15596         (Fredisplay_frame): ditto.
15597         (Fredraw_device): ditto.
15598         (Fredisplay_device): ditto.
15599         (redisplay_frame): make non-static.
15600         (redisplay_frame): call update_frame_gutter_geometry outside of
15601         display proper.
15602
15603         * gutter.h: declare update_frame_gutter_geometry.
15604
15605         * redisplay.h: declare redisplay_frame.
15606
15607         * gutter.c (update_frame_gutter_geometry): move geometry changes
15608         in update_frame_gutters here. Geometry changes can only occur
15609         outside of redisplay.
15610         (update_frame_gutters): remove geometry change code.
15611         (Fredisplay_gutter_area): make sure that we are in display when we
15612         update and that we have flushed any size changes.
15613
15614 2000-03-11  Andy Piper  <andy@xemacs.org>
15615
15616         * alloc.c (pdump_dump_data): remove i & count shadows.
15617
15618 2000-02-27  Mike Alexander  <mta@arbortext.com>
15619
15620         * sysdep.h: Declare pdump_read_file
15621
15622         * sysdep.c (pdump_read_file): New function
15623
15624         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15625         dump data
15626
15627 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15628
15629         * lrecord.h: add `lrecord_type_pgsetenv'.
15630
15631 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15632
15633         * symsinit.h: declare (vars|syms)_of* functions.
15634         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15635
15636 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15637
15638         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15639
15640         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15641         GCCs.
15642
15643         * emacs.c (main_1): Call postgres initialization code.
15644
15645         * postgresql.h: New file.  PostgreSQL RDBMS support.
15646         * postgresql.c: New file.
15647
15648 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15649
15650         * redisplay-output.c (redisplay_output_display_block): Disable
15651         redundant code.
15652
15653 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15654
15655         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15656         (Fcanna_henkan_next): Ditto.
15657         (Fcanna_bunsetu_henkou): Ditto.
15658         (Fcanna_henkan_kakutei): Ditto.
15659         (Fcanna_henkan_end): Ditto.
15660         (Fcanna_henkan_quit): Ditto.
15661         (Fcanna_henkan_next): Set retun value correctly.
15662         (c2mu): Use unsigned char instead of signed char.
15663
15664 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15665
15666         * emacs.c (main_1): Always call syms_of_gui.
15667         * inline.c: include gui.h
15668
15669 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15670
15671         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15672         converted to Lisp_Object.
15673         (Qtop_bottom): New variable.
15674         (syms_of_redisplay): Initialize it.
15675         * redisplay.h (Vvisible_bell): Ditto.
15676         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15677         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15678         only flash top and bottom.
15679
15680 2000-03-08  Andy Piper  <andy@xemacs.org>
15681
15682         * buffer.c (Frename_buffer): record new buffer name the right way.
15683
15684 2000-03-08  Andy Piper  <andy@xemacs.org>
15685
15686         * glyphs.c (update_subwindow): increase hash depth so that widget
15687         items get picked up properly.
15688
15689         * redisplay-output.c (compare_runes): increase hash depth so that
15690         widget items get picked up properly.
15691
15692 2000-03-08  Andy Piper  <andy@xemacs.org>
15693
15694         * gutter.c (output_gutter): add some debug.
15695
15696         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15697         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15698         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15699
15700         * redisplay-output.c (compare_runes): use display_hash to
15701         determine if glyphs really are not the same.
15702
15703         * glyphs.c (update_subwindow): check display_hash to see if
15704         anything really needs to be updated. If not then do
15705         nothing. Record the display_hash after updating.
15706         (image_instance_equal): compare the image_instance face also.
15707
15708 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15709
15710         * redisplay.h: Fix comment style.
15711
15712 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15713
15714         * consle-msw.h (struct mswindows_frame):
15715         Added new member paint_pending to indicate whether a WM_PAINT
15716         magic event has been queued for this frame.
15717
15718         * event-msw.c (mswindows_drain_windows_queue):
15719         Don't queue a WM_PAINT magic event if one is already queued.
15720         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15721
15722         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15723
15724 2000-03-07  Didier Verna  <didier@xemacs.org>
15725
15726         * dired.c: #include `regex.h' after `sysfile.h'.
15727
15728 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15729
15730         * sound.c (init_nas_sound): Fix compiler warning.
15731
15732         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15733         (FREE_STRUCT_P):
15734         (MARK_STRUCT_AS_FREE):
15735         (MARK_STRUCT_AS_NOT_FREE):
15736         Make `gcc -fstrict-aliasing' work properly.
15737
15738 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15739
15740         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15741         (mswindows_delete_device): Call CoUnnitialize().
15742
15743         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15744
15745 2000-02-25    <CraigL@DyCon.com>
15746
15747         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15748         <errno.h>.
15749
15750         * sysdep.c: This extern declaration for environ prevents MinGW
15751         from finding the variable in CRTDLL.DLL.
15752
15753         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15754         windows headers.
15755         (SHGFI_EXETYPE): ..
15756         (WM_MOUSEWHEEL): ..
15757         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15758         definitions.
15759         (MMRESULT): Removed, now defined in cygwin's windows headers.
15760         (TIMECAPS): ..
15761         (uid_t,gid_t,pid_t,ssize_t): ..
15762         (_timeb): Removed, MinGW defines both _timeb and timeb.
15763         (HAVE_H_ERRNO): Added.
15764         (HAVE_TZNAME): Added, configure is not detecting this.
15765
15766 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15767
15768         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15769         * syntax.c (syntax_match): Use it.
15770
15771         * cmds.c: Import auto-fill-chars from FSF Emacs.
15772         (Vauto_fill_chars): New variables.
15773         (internal_self_insert): Check Vauto_fill_chars.
15774         (vars_of_cmds):
15775         Declare auto-fill-chars as a Lisp variable and initialize it.
15776
15777 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15778
15779         * fileio.c (Fmake_symbolic_link):
15780         (Ffile_symlink_p):
15781         Run handlers even if local machine doesn't have symlinks.
15782
15783 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15784
15785         * event-msw.c (mswindows_drain_windows_queue):
15786         Don't generate paint magic events for non-XEmacs frames.
15787
15788 2000-03-05  Andy Piper  <andy@xemacs.org>
15789
15790         * redisplay.c (redisplay_frame): generate_displayable_area and
15791         friends assumes that we are not in GC, we therefore have to make
15792         sure that this doesn't happen.
15793
15794         * gutter.c (calculate_gutter_size): generate_displayable_area
15795         assumes that we are not in GC, we therefore have to make sure that
15796         this doesn't happen.
15797
15798 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15799
15800         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15801
15802 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15803
15804         * redisplay.c (regenerate_window): Make sure we set a sane value
15805         for end_pos even if we jump out of the loop.
15806         (regenerate_window): Answer Ben's question :-).
15807         (start_end_of_last_line): Add may_error argument.
15808         (start_of_last_line):
15809         (end_of_last_line): Pass may_error = 0.
15810         (end_of_last_line_may_error): New function.
15811         (pixel_to_glyph_translation): Use it, so we don't crash in
15812         event_to_glyph.
15813
15814 2000-03-04  Andy Piper  <andy@xemacs.org>
15815
15816         * window.h (struct window): add gutter_extent_modiff.
15817
15818         * window.c (allocate_window): zero out gutter_extent_modiff.
15819
15820         * redisplay.h: declare sync_display_line_structs.
15821
15822         * redisplay.c (add_glyph_rune): add a better comment.
15823
15824         * redisplay-output.c (sync_display_line_structs): made non-static.
15825         (compare_runes): remove unneccesary glyph cachel access.
15826
15827         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15828
15829         * gutter.c (output_gutter): don't output the gutter if extent
15830         changes only involve extents in buffers. use 4 sets of display
15831         lines.
15832         (gutter_extent_signal_changed_region_maybe): new function. Mark
15833         extents in gutters as changed.
15834         (update_frame_gutters): use 4 sets of display lines.
15835         (reset_gutter_display_lines): ditto.
15836         (free_frame_gutters): ditto.
15837         (redraw_exposed_gutter): force output of gutters.
15838
15839         * frame.h (struct frame): add 4 sets of gutter display lines.
15840
15841         * extents.c: (extent_changed_for_redisplay): signal changes to
15842         extents in strings in the gutter as well as extents in buffers.
15843
15844 2000-03-02  Andy Piper  <andy@xemacs.org>
15845
15846         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15847
15848         * frame.c (Fmake_frame): make sure the gutters get initialized
15849         after the frame is visible.
15850         (set_frame_selected_window): re-arrange compilation macros a
15851         little.
15852         (change_frame_size_1): mark gutters changed.
15853
15854         * device.c (Fset_device_class): mark gutters changed.
15855
15856 2000-03-01  Andy Piper  <andy@xemacs.org>
15857
15858         * window.c (window_top_frame_gutter_height): deleted.
15859         (window_bottom_frame_gutter_height): ditto.
15860         (window_left_frame_gutter_height): ditto.
15861         (window_right_frame_gutter_height): ditto.
15862         (window_top_gutter_height): don't use them.
15863         (window_bottom_gutter_height): ditto.
15864         (window_left_gutter_width): ditto.
15865         (window_right_gutter_width): ditto.
15866         (Fsplit_window): ditto.
15867         (Fwindow_pixel_edges): don't use border dimensions here.
15868
15869         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15870         (update_scrollbar_instance): ditto.
15871
15872         * redisplay.c (generate_modeline): don't take gutters into account.
15873         (generate_modeline): ditto.
15874         (redisplay_frame): small gutter display optimization.
15875
15876         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15877
15878         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15879         gutters into account.
15880
15881         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15882         for window position and type.
15883
15884         * gutter.c (get_gutter_coords): fix for frame gutters.
15885         (update_frame_gutters): update frame geometry if the gutters have
15886         changed.
15887         (init_frame_gutters): record current gutter geometries.
15888
15889         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15890         var.
15891         (mswindows_widget_instantiate): ditto.
15892
15893         * frame.h (struct frame): add current_gutter_bounds.
15894
15895         * frame.c (change_frame_size_1): position window and minibuffer
15896         appropriately taking into account the frame gutters.
15897
15898         * frame-x.c: (x_initialize_frame_size): take into account the
15899         frame gutters.
15900
15901 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15902
15903         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
15904
15905 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15906
15907         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15908
15909 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15910
15911         * file-coding.c (reset_decoding_stream): Clear previous
15912         detection state when autodetect.
15913
15914 2000-02-29  Didier Verna  <didier@xemacs.org>
15915
15916         * extents.c (set_extent_glyph_1): don't require extents to be
15917         attached.
15918
15919 2000-02-27  Andy Piper  <andy@xemacs.org>
15920
15921         * gutter.c (Fset_default_gutter_position): don't default left and
15922         right gutter visibility to t.
15923         (Fset_default_gutter_position): run
15924         default-gutter-position-changed-hook.
15925         (syms_of_gutter): add default-gutter-position-changed-hook.
15926
15927 2000-02-26  Andy Piper  <andy@xemacs.org>
15928
15929         * specifier.c (Fmake_specifier): add gutter references.
15930
15931         * gutter.h (RAW_WINDOW_GUTTER): new macro.
15932
15933         * lisp.h: declare Fvalid_plist_p.
15934
15935         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15936         as changed.
15937         (default_gutter_visible_p_changed_in_window): invalidate gutter as
15938         well as its visibility so that it gets reconstructed.
15939         (construct_window_gutter_spec): new function. Construct a string
15940         to be displayed in the gutter from a plist of strings. Take care
15941         to only use elements that are declared as visible.
15942         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15943         WINDOW_GUTTER.
15944         (gutter_validate): allow plists of strings in the specifier.
15945         (gutter_specs_changed): construct the real_gutter from the gutter
15946         specs using construct_window_gutter_spec.
15947         (gutter_visible_validate): gutter-visible is a new specifier type.
15948         (Fgutter_visible_specifier_p): new function for the new specifier.
15949         (syms_of_gutter): declare gutter-visible and
15950         Fgutter_visible_specifier_p.
15951         (specifier_type_create_gutter): intitalize new gutter-visible
15952         specifier.
15953         (reinit_specifier_type_create_gutter): ditto.
15954         (specifier_vars_of_gutter): use new specifier type for gutter
15955         visibility.
15956         (init_frame_gutters): construct real_gutter correctly.
15957         (Fgutter_specifier_p): beef up documentation.
15958         (Fgutter_size_specifier_p): ditto.
15959
15960         * winslots.h: add real_gutter slots.
15961
15962 2000-02-25  Andy Piper  <andy@xemacs.org>
15963
15964         * device-msw.c: Be kind to older cygwin versions. From Raymond
15965         Toy <toy@rtp.ericsson.se>.
15966
15967         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
15968         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
15969
15970 2000-02-25  Martin Buchholz  <martin@xemacs.org>
15971
15972         * elhash.c (MARK_OBJ): Practice macro hygiene.
15973
15974 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15975
15976         * miscplay.c: s/__inline__/inline/g;
15977         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
15978         (get_device_compdc): INLINE ==> static inline
15979         * *.[ch]: Change INLINE to INLINE_HEADER globally.
15980         find -name '*.h' | \
15981         xargs global-replace \
15982         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
15983
15984 2000-02-25  Andy Piper  <andy@xemacs.org>
15985
15986         * window.c (window_top_frame_gutter_height): new function.
15987         (window_top_window_gutter_height): ditto.
15988         (window_top_gutter_height): use them.
15989         (window_bottom_frame_gutter_height): new function.
15990         (window_bottom_window_gutter_height): ditto.
15991         (window_bottom_gutter_height): use them.
15992         (window_left_window_gutter_width): new function.
15993         (window_left_frame_gutter_width): ditto.
15994         (window_left_gutter_width): use them.
15995         (window_right_window_gutter_width): new function.
15996         (window_right_frame_gutter_width): ditto.
15997         (window_right_gutter_width): use them.
15998         (window_pixel_height): new function. calulate window pixel height
15999         with frame gutter involvement.
16000         (Fsplit_window): calculate new sizes taking frame gutters into
16001         account.
16002         (window_char_height_to_pixel_height): don't include frame gutters.
16003         (window_char_height): use window_pixel_height.
16004         (window_pixheight): rename from window_pixel_height.
16005         (change_window_height): use it.
16006         (window_pixel_height_to_char_height): don't include frame gutters.
16007         (window_char_width_to_pixel_width): ditto.
16008
16009 2000-02-25  Andy Piper  <andy@xemacs.org>
16010
16011         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16012         if it is.
16013
16014 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16015
16016         * alloc.c (staticpro):
16017         (staticpro_nodump):
16018         (dumpstruct):
16019         (dumpopaque):
16020         (pdump_wire):
16021         (pdump_wire_list):
16022         (compact_string_chars):
16023         (pdump_dump_wired):
16024         Convert:  if (foo) abort();  ==>  assert (! foo);
16025
16026         * eldap.c (Fldap_search_basic):
16027         (Fldap_add):
16028         (Fldap_modify):
16029         (Fldap_delete):
16030         Fix compiler warnings, and possible crashes if (random) return
16031         value were to be used.
16032
16033 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16034
16035         * device-msw.c: Workaround ResetDC failure.
16036
16037         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16038         applying a devmode.
16039
16040         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16041         (mswindows_text_width): Do not start printer page.
16042
16043         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16044
16045         * glyphs-msw.c: Added image methods to msprinter console and
16046         msprinter-specific image instantiation.
16047
16048 2000-02-20  Mike Alexander  <mta@arbortext.com>
16049
16050         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16051         to avoid crashes when selection-sets-clipboard is on
16052         (mswindows_own_selection): ditto
16053
16054 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16055
16056         * glyphs-msw.c:
16057         * redisplay-msw.c (get_frame_dc):
16058         (get_frame_compdc):
16059         * console-msw.h:
16060         * device-msw.c (mswindows_init_device):
16061         (mswindows_delete_device):
16062         (msprinter_init_device):
16063         (msprinter_delete_device):
16064         * frame-msw.c (mswindows_init_frame_1):
16065         (mswindows_delete_frame):
16066         (msprinter_init_frame_3):
16067         (msprinter_delete_frame): Move compatible DC to device object from
16068         frame object, for both mswindows and msprinter. Only one at a time
16069         is needed, it is a real waste to have one per frame!
16070
16071 2000-02-23  Andy Piper  <andy@xemacs.org>
16072
16073         * glyphs.c: add dynamic width and height elements.
16074         (image_instance_equal): ditto.
16075
16076         * glyphs-widget.c (widget_query_geometry): calculate width and
16077         height dynamically if required.
16078         (initialize_widget_image_instance): initialize dynamic dimensions.
16079         (widget_instantiate): pick-up dynamic dimensions.
16080
16081         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16082         dynamic determination. Add appropriate macros.
16083
16084         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16085         dimensions safe.
16086         (WINDOW_GUTTER_SIZE): ditto.
16087         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16088
16089         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16090         inline.
16091         (get_frame_dc): ditto.
16092
16093         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16094         here.
16095
16096 2000-02-23  Martin Buchholz <martin@xemacs.org>
16097
16098         * XEmacs 21.2.31 is released.
16099
16100 2000-02-22  Ben Wing <ben@xemacs.org>
16101
16102         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16103
16104 2000-02-22  Andy Piper  <andy@xemacs.org>
16105
16106         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16107
16108 2000-02-21  Mike Sperber <mike@xemacs.org>
16109
16110         * .dbxrc:
16111         * .gdbinit:
16112         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16113         variables.
16114
16115 2000-02-21  Mike Sperber <mike@xemacs.org>
16116
16117         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16118
16119 2000-02-21  Martin Buchholz <martin@xemacs.org>
16120
16121         * XEmacs 21.2.30 is released.
16122
16123 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16124
16125         Performance hacking.
16126         * *.c (syms_of_*):
16127         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16128         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16129         * emacs.c (main_1):
16130         * lisp.h (DEFUN):
16131         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16132         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16133         * symeval.h (DEFVAR_SYMVAL_FWD):
16134         * symbols.c (guts_of_unbound_marker):
16135         Make all c_readonly objects also lisp_readonly and marked for life.
16136         * lrecord.h (struct lrecord_implementation):
16137         Document flags better.
16138         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16139         * lrecord.h (DECLARE_LRECORD):
16140         * lrecord.h (XSETRECORD):
16141         * lrecord.h (RECORDP):
16142         * lrecord.h (RECORD_TYPEP):
16143         * lrecord.h (RECORD_MARKER): New.
16144         * lrecord.h (error_check_*):
16145         * lrecord.h (CONCHECK_NONRECORD):
16146         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16147         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16148         * lrecord.h (set_lheader_implementation):
16149         * lrecord.h (enum lrecord_type): New.
16150         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16151         * alloc.c (disksave_object_finalization_1):
16152         * alloc.c (mark_object):
16153         * alloc.c (lrecord_type_index):
16154         * alloc.c (tick_lcrecord_stats):
16155         * alloc.c (Fgarbage_collect):
16156         * alloc.c (init_alloc_once_early):
16157         * alloc.c (pdump_load):
16158         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16159         * alloc.c (lrecord_type_index): Delete.
16160         Make lisp object type indexes be constant.
16161           Makes (byte-compile) 5% faster.
16162         Put all marker functions into their own array.
16163           Makes (garbage-collect) 5% faster.
16164         Optimize SYMBOL_VALUE_MAGIC_P.
16165           Makes (byte-compile) 2-3% faster.
16166         * config.h.in (gc_checking_assert): New.
16167         * alloc.c: Use gc_checking_assert().
16168         * .dbxrc: Make compatible with new object type implementation.
16169         * .gdbinit: Make compatible with new object type implementation.
16170         * alloc.c: Delete all symbols defined only for debugging, such as
16171         Lisp_Type_Vector and lrecord_charset.
16172
16173 2000-02-21  Andy Piper  <andy@xemacs.org>
16174
16175         * gui-msw.c (Fmswindows_shell_execute): fix file location
16176         problems.
16177
16178         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16179         unshowing so that set_window_buffer doesn't undo
16180         kill_buffer_hook's hard work.
16181
16182         * glyphs-widget.c (tab_control_query_geometry): don't count the
16183         first item when calculating geometry.
16184
16185         * glyphs.c (map_subwindow): remove redundant code.
16186         (update_frame_subwindows): be more circumspect about when to
16187         update subwindows.
16188
16189         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16190         when items haven't changed. Update faces if faces have changed as
16191         well as just the widget face.
16192         (x_tab_control_update): Update faces if faces have changed as well
16193         as just the widget face.
16194
16195 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16196
16197         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16198         registration.
16199         (build_syscolor_string): Use mswindows_color_to_string to try to
16200         get a named color.
16201         (mswindows_device_system_metrics): Reverse the foreground and
16202         background colors so that they match the documentation.
16203
16204         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16205         they match the default Windows palette.
16206         (mswindows_color_to_string): New function.
16207
16208 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16209
16210         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16211
16212 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16213
16214         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16215         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16216
16217         * symbols.c (init_symbols_once_early): Removed obsolete
16218         DATA_SEG_BITS related kludge.
16219         (defvar_magic): Ditto.
16220
16221         * malloc.c: Removed obsolete DATA_SEG_BITS
16222         * ralloc.c: Ditto.
16223         * mem-limits.h: Ditto.
16224
16225         * Makefile.in.in: Removed obsolete HAVE_SHM
16226         * emacs.c: Ditto.
16227
16228 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16229
16230         *  device-msw.c (mswindows_delete_device): Free DDE string
16231         handles.
16232
16233 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16234
16235         * keymap.c (get_keyelt):
16236         * unexnt.c (unexec):
16237         * vm-limit.c (memory_warnings):
16238         * ntheap.c (recreate_heap):
16239         * ntheap.h (UNINIT_PTR):
16240         * select-msw.c (Fmswindows_get_clipboard):
16241         (Fmswindows_set_clipboard):
16242         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16243         * objects-msw.c:
16244         * menubar-msw.c (displayable_menu_item):
16245         * glyphs-msw.c:
16246         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16247         * sysdep.c (sys_subshell):
16248         * process-nt.c (nt_create_process):
16249         * nt.c (normalize_filename):
16250         (dostounix_filename):
16251         (unixtodos_filename):
16252         * ntproc.c (win32_executable_type):
16253         * ntplay.c (play_sound_data_1):
16254         (play_sound_file):
16255         * editfns.c (get_home_directory):
16256         * event-msw.c (struct winsock_stream):
16257         (mswindows_dde_callback):
16258         * device-msw.c (msprinter_init_device):
16259         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16260
16261         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16262         mswindows_clear_toolbar were swapped!
16263
16264         * objects-msw.c:(colormap_t):
16265         (fontmap_t):
16266         * emacs.c (struct standard_args): Fixed const jumble.
16267
16268         * glyphs-widget.c (update_widget): Fixed comparison notation.
16269
16270         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16271
16272         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16273         __declspec(noreturn) syntax.
16274
16275 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16276
16277         * eldap.c (Fldap_open):
16278         (Fldap_search_basic):
16279         (Fldap_add):
16280         (Fldap_modify):
16281         Use new coding system conversion macros.
16282
16283 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16284
16285         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16286
16287 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16288
16289         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16290         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16291
16292         * eldap.c (Qadd, Qreplace): New constant symbols
16293         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16294         interruptions by XEmacs signals
16295         Remove unnecessary calls to slow_down_interrupts and
16296         speed_up_interrupts
16297         (Fldap_search_basic): Renamed from Fldap_search_internal
16298         Added new optional parameter VERBOSE that triggers the
16299         display of progress messages
16300         Remove unnecessary calls to slow_down_interrupts and
16301         speed_up_interrupts
16302         LDAP result code analysis rewritten
16303         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16304         (syms_of_eldap): Define the new symbols and functions
16305
16306
16307 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16308
16309         * realpath.c: Determine PATH_MAX maximally portably.
16310
16311         * insdel.c (bytecount_to_charcount): Optimize.
16312         The function used to be optimized for entirely ASCII sequences.
16313         Now it is optimized for successive characters from the same
16314         charset.  This also wins big for _mostly_ ASCII sequences.
16315
16316         * fileio.c (Ffile_truename): convert return from realpath() using
16317         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16318         - Rewrite GCPROing slightly.
16319
16320         * sysdep.c (sys_open): Do filename conversion, like all other
16321         sys_* functions.  Fixes bug:
16322         (let ((file-name-coding-system 'iso-8859-2))
16323            (write-region x y latin2-name))
16324         ==> writes filename using internal encoding.
16325
16326 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16327
16328         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16329         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16330         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16331         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16332         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16333         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16334         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16335         (CONST_IF_NOT_DEBUG): Delete.
16336         * alloc.c (this_one_is_unmarkable): Delete.
16337         (mark_object): Don't check for this_one_is_unmarkable. Use the
16338         c_readonly flag instead.
16339         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16340
16341 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16342
16343         * event-msw.c (mswindows_drain_windows_queue):
16344         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16345         away redundant repaint events.
16346
16347 2000-02-17  Andy Piper  <andy@xemacs.org>
16348
16349         * redisplay.h: declare mark_redisplay_structs.
16350
16351         * redisplay.c (redisplay_window):
16352         (redisplay_frame): don't check subwindows_state_changed.
16353         (mark_redisplay): mark gutters here.
16354
16355         * glyphs.c: (instantiate_image_instantiator): always layout if we
16356         haven't done so already.
16357         (allocate_image_instance): don't mark as dirty.
16358         (update_subwindow): bind inhibit_quit.
16359
16360         * gutter.c (mark_gutters): new function.
16361
16362         * glyphs-x.c (x_update_widget): Always resize to get round a
16363         widget bug.
16364
16365         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16366         breaking absolutely everything.
16367
16368         * gutter.h: declare mark_gutters.
16369
16370 2000-02-16  Martin Buchholz <martin@xemacs.org>
16371
16372         * XEmacs 21.2.29 is released.
16373
16374 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16375
16376         * fns.c (size_bit_vector): Fix computation of the size.
16377
16378 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16379
16380         * *.[ch]: Change CONST to const globally.
16381         find -name '*.[ch]' | \
16382         xargs global-replace \
16383         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16384         - Remove vestigial references to CONST_IS_LOSING
16385
16386 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16387
16388         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16389         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16390         events instead of dispatching them directly.
16391         (mswindows_handle_paint): New function to do repainting.
16392         (mswindows_wnd_proc):
16393         (emacs_mswindows_handle_magic_event): Call above function.
16394
16395 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16396
16397         * objects-msw.c (mswindows_create_font_variant): Return the new
16398         font handle.
16399         (initialize_font_instance): Get font metrics from the underlined
16400         variant of the font to cope with the case where the underlined
16401         font has a bigger descent.
16402
16403 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16404
16405         * gui.c (gui_item_accelerator): Return the first underlined
16406         character in item name.
16407
16408 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16409
16410         * lisp.h: Added Qprinter.
16411
16412         * general.c (syms_of_general): Initialized it.
16413
16414         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16415         (get_frame_dc):
16416         (get_frame_compdc): Made inline.
16417
16418         * console.h (struct console_methods): Added eject_page method.
16419
16420         * frame.h: Added FRAME_DISPLAY_P and friends.
16421         Aligned backslahes in many macros in more readable fashion.
16422         Added page_number to struct frame, and an accessor macro
16423         for it.
16424
16425         * defice.h: Added DEVICE_DISPLAY_P and friends.
16426
16427         * device.c (Fdevice_printer_p): Used these.
16428
16429         * frame.c (allocate_frame_core): Initialize page number.
16430         (Fprint_job_page_number):
16431         (Fprint_job_eject_page): Implemented.
16432
16433         * frame-msw.c (msprinter_eject_page): Added method.
16434         (msprinter_start_page): Added.
16435
16436         * window.c (Fwindow_truncated_p): Fixed docstring.
16437         (Fwindow_last_line_visible_height): Implemented.
16438
16439 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16440
16441         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16442
16443 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16444
16445         * syntax.c (scan_words): Always advance at least one character.
16446
16447 2000-02-13  Andy Piper  <andy@xemacs.org>
16448
16449         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16450         to make sure the glyph is in the cachels.
16451
16452         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16453         global image instance flag.
16454         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16455         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16456
16457         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16458         (Fset_image_instance_property): mark layout as changed.
16459         (invalidate_glyph_geometry_maybe): mark layout as changed.
16460         (glyph_width): use new NEEDS_LAYOUT macro.
16461         (glyph_ascent): ditto.
16462         (glyph_descent): ditto.
16463         (glyph_height): ditto.
16464         (image_instance_layout): mark layout as clean after laying out.
16465         (update_subwindow): don't mark layout as clean here.
16466
16467         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16468         should no longer be needed.
16469
16470         * glyphs-x.c (x_update_widget): sanitize asserts.
16471         (x_finalize_image_instance): sanitize assignment to widgets.
16472
16473         * glyphs-widget.c (widget_instantiate): don't need to clear the
16474         layout flag here.
16475
16476 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16477
16478         * sysdep.c (getcwd): Use standard prototype.
16479         * sysdep.h (getcwd): Use standard prototype.
16480
16481         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16482         (sequence, start, end).
16483         Remove redundant type checking.
16484         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16485         view of `caller-protects') to avoid a crash where the real fix was
16486         found elsewhere.
16487
16488 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16489
16490         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16491
16492         * s/sol2.h: Remove feature macro initialization.
16493
16494         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16495         (vector_hash): New.  Code from internal_hash.
16496         * lrecord.h:
16497         Fix up allocation subsystem comments.
16498
16499         * config.h.in: Add __EXTENSIONS__ for Solaris.
16500
16501         * systime.h (EMACS_GETTIMEOFDAY): New.
16502         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16503         Remove Solaris-specific code.
16504         Use void* for the (ignored) second arg for gettimeofday().
16505
16506         * elhash.c (hash_table_hash): Implement it, finally.
16507         * elhash.c:  Use hashcode_t.
16508
16509         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16510         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16511
16512         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16513         * fns.c (size_bit_vector):
16514         * alloc.c (size_vector):
16515         (make_vector_internal):
16516         (make_bit_vector_internal):
16517         (sweep_bit_vectors_1):
16518         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16519
16520 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16521
16522         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16523         Include strings.h to avoid warnings for bzero and strcasecmp.
16524
16525 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16526
16527         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16528         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16529
16530         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16531         sequence.
16532
16533 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16534
16535         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16536         use a value field instead.
16537         (symbol_value_forward_forward): Use value field.
16538         (DEFVAR_SYMVAL_FWD): Use value field.
16539         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16540         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16541         (DEFVAR_CONST_INT): Ditto.
16542         (DEFVAR_BOOL): Ditto.
16543         (DEFVAR_CONST_BOOL): Ditto.
16544         (DEFVAR_INT_MAGIC): Ditto.
16545         (DEFVAR_BOOL_MAGIC): Ditto.
16546
16547         * symbols.c (guts_of_unbound_marker): Use value field.
16548         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16549         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16550
16551         * lisp.h: Declare dumpopaque and noninteractive1.
16552
16553         * alloc.c (dumpopaque): Added.
16554         (pdump_dump_opaquevec): Added.
16555         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16556         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16557         noninteractive.
16558
16559 2000-02-10  Andy Piper  <andy@xemacs.org>
16560
16561         * glyphs.c (image_instance_layout): if the size changes, mark it
16562         as such.
16563
16564         * redisplay-output.c (redisplay_output_layout): Update the
16565         subwindow here.
16566         (redisplay_output_subwindow): ditto.
16567
16568         * glyphs.c (update_subwindow): make sure we reset flags for
16569         layouts as well as everything else.
16570
16571         * glyphs-widget.c (layout_layout): don't need to set the instances
16572         dimensions here.
16573
16574 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16575
16576         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16577         not HAVE_DLOPEN, which is a lower-level thing.
16578
16579         * .cvsignore: Ignore gmon.out
16580
16581 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16582
16583         * .cvsignore: Ignore portable dumper xemacs.dmp file
16584
16585 2000-02-09  Andy Piper  <andy@xemacs.org>
16586
16587         * redisplay-output.c (redisplay_output_layout): be more clever
16588         about when we output based on the changed flags.
16589
16590         * glyphs.h (struct image_instantiator_methods): add update_method.
16591         (struct Lisp_Image_Instance): add changed flags. Declare new
16592         macros for manipulating them.
16593
16594         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16595         (image_instance_parent_glyph): find an image_instance's parent
16596         glyph or image_instance.
16597         (image_instance_layout): mark the size as changed.
16598         (set_image_instance_dirty_p): new function. mark an image
16599         instance, plus all of its parents, as dirty.
16600         (Fset_image_instance_property): use it.
16601         (Fglyph_animated_timeout_handler): use it.
16602         (update_subwindow): call update_widget and device methods for
16603         update_subwindow. Mark all changed flags as clean.
16604         (Fresize_subwindow): mark size as changed.
16605
16606         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16607         failures.
16608         (x_update_subwindow): only resize subwindows here.
16609         (x_update_widget): new function. Update all changed properties of
16610         a widget.
16611         (x_resize_subwindow): deleted.
16612         (x_widget_set_property): deleted.
16613         (x_progress_gauge_set_property): deleted.
16614         (x_progress_gauge_update): new function. Implement recorded
16615         changes.
16616         (x_tab_control_update): ditto.
16617         (x_tab_control_set_property): deleted.
16618         (console_type_create_glyphs_x): declare new functions.
16619         (image_instantiator_format_create_glyphs_x): ditto.
16620
16621         * glyphs-widget.c (widget_set_property): mark text changed.
16622         (update_widget): new function. Update properties of a widget.
16623         (widget_instantiate): for layouts make sure we set their
16624         children's parent correctly.
16625         (tab_control_set_property): new function. Record changes that will
16626         take place under redisplay's control.
16627         (progress_gauge_set_property): ditto.
16628         (image_instantiator_progress_guage): declare new functions.
16629         (image_instantiator_tab_control): ditto.
16630
16631         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16632         now.
16633         (mswindows_update_widget): new function. Update all properties on
16634         a widget that have changed.
16635         (mswindows_button_update): new function. Update a button's set
16636         state.
16637         (mswindows_tab_control_update): new function. Update the items in
16638         a tab.
16639         (mswindows_tab_control_set_property): deleted.
16640         (mswindows_progress_gauge_update): new function. Update the
16641         progress gauge's progress.
16642         (mswindows_widget_set_property): deleted. This is all done
16643         asynchronously now.
16644         (mswindows_progress_gauge_set_property): ditto.
16645         (console_type_create_glyphs_mswindows): declare new methods.
16646         (image_instantiator_format_create_glyphs_mswindows): ditto.
16647
16648         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16649         (msprinter_set_frame_properties): ditto.
16650
16651         * console.h (struct console_methods): Add update_widget_method.
16652
16653 2000-02-09  Andy Piper  <andy@xemacs.org>
16654
16655         * gui-msw.c (Fmswindows_shell_execute): Make
16656         mswindows-shell-execute industrial strength.
16657
16658 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16659
16660         * lrecord.h: Make macro argument `props' match member function `plist'.
16661         * fns.c (Fget):
16662         * fns.c (Fput):
16663         * fns.c (Fremprop):
16664         * fns.c (Fobject_plist):
16665         * alloc.c:
16666         * symbols.c:
16667         Object property list frobbing cleanup.
16668         - Allow any lisp object (compared with `eq'), not just symbols, as
16669           keys in object plists.
16670         - Move symbol plist frobbing into symbols.c, where it belongs.
16671         - Move string plist frobbing into alloc.c, where it belongs.
16672         - Everything's an lrecord now, so no need to test for symbolp, etc.
16673         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16674
16675         * extents.c: Reorder code to remove declarations.
16676
16677         * frame.h (store_in_alist): Remove useless declaration.
16678
16679 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16680
16681         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16682         * config.h.in: Add HAVE_XCONVERTCASE.
16683
16684 2000-02-07  Andy Piper  <andy@xemacs.org>
16685
16686         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16687         it breaks many things.
16688
16689 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16690
16691         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16692         actually can start a common comment type.
16693         * src/syntax.h (SYNTAX_END_P): ditto for end.
16694
16695 2000-02-07  Martin Buchholz <martin@xemacs.org>
16696
16697         * XEmacs 21.2.28 is released.
16698
16699 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16700
16701         * event-Xt.c (x_keysym_to_character): New.
16702         (maybe_define_x_key_as_self_inserting_character): New.
16703         (x_has_keysym): New.
16704         Auto-define all keys on the keyboard as self-insert-key.
16705
16706 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16707
16708         * menubar.c (vars_of_menubar): A small code simplification.
16709
16710         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16711
16712         * ExternalShell.c:
16713         * ExternalClient.c:
16714         * EmacsShell-sub.c:
16715         * EmacsManager.c:
16716         * EmacsFrame.c:
16717         Use consistent style for specifying X resources.
16718
16719         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16720         This makes (dontusethis-set-symbol-value-handler) actually usable.
16721
16722         * lrecord.h (lrecord_decription_type):
16723         * alloc.c (pdump_register_sub):
16724         (pdump_dump_data):
16725         (pdump_reloc_one):
16726         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16727         Comply with XEmacs coding style.
16728         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16729         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16730
16731         * keymap.c (Faccessible_keymaps):
16732         Make (accessible-keymaps map "\C-h") do the Right Thing.
16733         Make (accessible-keymaps map []) do the Right Thing.
16734         Make (accessible-keymaps map "") do the Right Thing.
16735         (check_keymap_definition_loop): New function.
16736         (keymap_store_internal): Keep luser from shooting self in foot,
16737           via (define-key ctl-x-4-map "p" global-map).
16738         Remove fullness slot from struct Lisp_Keymap, since hash tables
16739         are now reliable.
16740         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16741
16742 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16743
16744         * redisplay.c (init_redisplay): Fix small memory leak.
16745         * elhash.h:
16746         * elhash.c (pdump_reorganize_hash_table):
16747         Rename from reorganize_hash_table. Change prototype.
16748         Reuse the original memory for hentries.  Save 100k.
16749         * alloc.c (PDUMP_READ): new macro.
16750         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16751         * alloc.c: No need to #ifndef before #undef.
16752
16753         * print.c: Allow debug_print() to print readably by modifying
16754         debug_print_readably.  Use consistent variable names.
16755
16756         * .dbxrc: Try to get things to work even if stopped in a function
16757         without source available by explicitly specifying source files.
16758 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16759
16760         * unexnt.c (_start): Removed bogus code which caused loading heap
16761         from differrent executable file.
16762         Removed bogus assignment to _fmode, which caused inconsistencies.
16763
16764 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16765
16766         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16767         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16768         Do not preliminary `#define signal sigset'.
16769
16770         * systime.h: Do not prototype environ on windows nt and cygwin,
16771         this conflicts with system header.
16772
16773         * syssignal.h: Use correct define for WINDOWSNT
16774
16775         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16776         with system header.
16777
16778         * sysdep.c (near start of file): Fixed commentary and rearranged
16779         ifdefs in readable order.
16780         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16781         (start_of_text):
16782         (end_of_text):
16783         (end_of_data): Do not compile in if using PDUMP.
16784
16785         * symsinit.h: Prototyped vars_of_nt().
16786
16787         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16788         (find_child_console): Use it.
16789         (sys_kill): Use it.
16790
16791         * ntheap.h: Do not extern os_subtype.
16792
16793         * ntheap.c (cache_system_info): Do not cache unneeded:
16794         nt_major_version, nt_minor_version and os_subtype.
16795         (recreate_heap): Do not compile in when PDUMPing.
16796
16797         * nt.c (geteuid and friends): Use the new varibale
16798         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16799         (init_user_info): Removed the above mentioned hackery.
16800         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16801         stat has been fixed in the C runtime.
16802         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16803
16804         * file-coding.c (struct file_coding_dump): Do not define
16805         ucs_to_mule_table in the struct if not MULE.
16806         (struct struct lrecord_description fcd_description_1): Do not dump
16807         the above.
16808
16809         * emacs.c (main_1): Call vars_of_nt().
16810         (right before Fdump_emacs_data): Don't need lastfile if using both
16811         portabe dumper and system malloc.
16812
16813         * alloc.c (Fmemory_limit): Conditionalized out.
16814         (pdump): Use OPEN_BINARY for the portable dump file.
16815         (pdump_load): Ditto.
16816
16817 2000-02-02  Mike Alexander  <mta@arbortext.com>
16818
16819         * nt.c (convert_time): Set tm_isdst before calling mktime and
16820         avoid calling it at all if the compiler supports 64 bit integers.
16821         Also initialize utc_base_ft before using it.
16822
16823 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16824
16825         * frame.c (change_frame_size_1): Take f->internal_border_width
16826         into consideration when calculating the width of the frame.
16827
16828 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16829
16830         * window.c (frame_min_height):
16831         (frame_size_valid_p):
16832         (frame_pixsize_valid_p): Added.
16833         (check_frame_size): Generalized.
16834
16835         * window.h: Prototyped the above.
16836
16837         * lisp.h:
16838         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16839         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16840         Deleted Vwin32_* and Vbinary_process_* unused variables.
16841
16842         * device-msw.c (msprinter_init_device): Do not get printer font
16843         list; Added DEVMODE functions.
16844
16845         * frame-msw.c: Added lots of printer code.
16846
16847         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16848         general.c.
16849
16850         * console-msw.h: Added more msprinter device private slots.
16851
16852 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16853
16854         * event-msw.c (key_needs_default_processing_p): Added.
16855         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16856
16857 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16858
16859         * glyphs.c (image_instance_layout): Mark image instance as clean
16860         after layout.
16861         (glyph_dirty_p): Removed redundant function.
16862         (invalidate_glyph_geometry_maybe): Added.
16863         (update_glyph_cachel_data): Call it.
16864
16865         * glyphs.h: Prototyped it.
16866
16867         * redisplay.c (add_glyph_rune): Call it.
16868         (redisplay_window): Reset glyphs cachels when frame faces have
16869         changed, thus forcing recomputation of built-in border glyphs.
16870
16871 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16872
16873         * Makefile.in.in: Make portable dumper and purify play well together.
16874         Add imperfect, but better than nothing, support for pdump.
16875         Remove xemacs.dmp when temacs is re-generated.
16876         Don't ignore errors when dumping xemacs.
16877
16878         * symbols.c (maybe_call_magic_handler): Remove one magic number.
16879
16880 2000-01-28  Andy Piper  <andy@xemacs.org>
16881
16882         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16883         (setup_normal_frame): ditto.
16884         (setup_frame_without_minibuffer): ditto.
16885         (setup_minibuffer_frame): ditto.
16886         (delete_frame_internal): ditto.
16887         (Fmake_frame_invisible): ditto.
16888         (Ficonify_frame): ditto.
16889
16890         * window.h: change Fset_window_buffer signature.
16891
16892         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16893         (Fset_window_buffer): allow recording of buffer if the window is
16894         the selected window.
16895         (window_loop): Use new Fset_window signature.
16896
16897 2000-01-23  Daniel Pittman  <daniel@danann.net>
16898
16899         * config.h.in: Added template for `HAVE_ATHENA_3D'
16900
16901 2000-01-29  Andy Piper  <andy@xemacs.org>
16902
16903         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16904
16905         * gutter.c (output_gutter): Don't output if the window isn't live.
16906
16907 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16908
16909         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16910         of 01/12/00: Moved SetFocus back here where it belongs.
16911
16912 2000-01-23  Andy Piper  <andy@xemacs.org>
16913
16914         * s/cygwin32.h: declare printer things.
16915
16916 2000-01-26  Andy Piper  <andy@xemacs.org>
16917
16918         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16919         Alexander.
16920
16921 2000-01-24  Andy Piper  <andy@xemacs.org>
16922
16923         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16924         (mswindows_button_instantiate): Make sure glyph is a pixmap.
16925
16926         * glyphs-widget.c (widget_instantiate): Avoid shadows.
16927
16928         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16929
16930         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16931
16932         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16933         (mswindows_output_display_block): Avoid local shadows.
16934
16935         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16936         (mswindows_enqueue_mouse_button_event): ditto.
16937         (mswindows_handle_gui_wm_command): remove declaration.
16938
16939         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16940         warnings.
16941
16942         * console-msw.h: Avoid shadows.
16943         (mswindows_get_toolbar_button_text):
16944         (emacs_mswindows_create_stream_pair):
16945         (emacs_mswindows_delete_stream_pair):
16946         (mswindows_handle_toolbar_wm_command): declare.
16947
16948         * device-msw.c (build_syscolor_string): Avoid shadows.
16949
16950 2000-01-23  Andy Piper  <andy@xemacs.org>
16951
16952         * glyphs-widget.c (widget_instantiate): reverse the items for
16953         layouts so that children are in the expected order.
16954
16955 2000-01-28  Martin Buchholz  <martin@xemacs.org>
16956
16957         * ralloc.c: safe_bcopy ==> memmove
16958         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
16959         * s/msdos.h: Remove BCOPY macros.
16960         * insdel.c (gap_right): Remove BCOPY conditional code.
16961         * insdel.c (gap_left): Remove BCOPY conditional code.
16962         XEmacs demands a working ANSI C compiler - hence memmove.
16963
16964         * regex.c (regex_compile): Remove accidental use of trigraphs.
16965
16966 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16967
16968         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
16969         event timestamp.
16970
16971 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16972
16973         * event-msw.c (mswindows_drain_windows_queue): Added the
16974         parameter.
16975         (mswindows_need_event): Commented the call to
16976         mswindows_drain_windows_queue().
16977         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
16978         only.
16979
16980         * console-msw.h: Moved a few function prototypes here from
16981         event-msw.c.
16982
16983         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
16984         parameter from unsigned short to unsigned long.
16985         (Fmswindows_shell_execute): Added return value.
16986
16987 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16988
16989         * sysdep.c (init_system_name):
16990           process-unix.c (unix_canonicalized_host_name):
16991         Don't call freeaddrinfo() if getaddrinfo() fails.
16992
16993         * process-unix.c (unix_open_unix_network_stream):
16994         Moved the code to get a port # into address loop.
16995
16996 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16997
16998         * buffer.c (reinit_vars_of_buffer):
16999         The right place to initialize conversion_in_dynarr and
17000         conversion_out_dynarr.
17001
17002         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17003
17004         * process-unix.c (unix_canonicalize_host_name): Muleize.
17005         (unix_open_network_stream): Muleize.
17006
17007         * buffer.h: Fix up prototypes for ralloc.c functions.
17008
17009 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17010         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17011         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17012                 instead of gethostbyname()
17013         * process-unix.c: In unix_canonicalize_host_name() and
17014                 unix_open_network_stream(), add code to use getaddrinfo()
17015                 instead of gethostbyname().
17016
17017 2000-01-27  Daniel Pittman <daniel@danann.net>
17018
17019         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17020         libs when built with flat Athena.
17021
17022 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17023
17024         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17025         Use coding standards for function prototypes.
17026
17027 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17028
17029         * dialog-msw.c (push_lisp_string_as_unicode):
17030         * doc.c (unparesseuxify_doc_string):
17031         * dired.c (Fuser_name_completion_1):
17032         * dired.c (Fuser_name_all_completions):
17033         * dired.c (free_user_cache):
17034         * dired.c (user_name_completion):
17035         * console-x.c (get_display_arg_connection):
17036         * minibuf.c (clear_echo_area_internal):
17037         * minibuf.c (echo_area_append):
17038         * eldap.c (Fldap_open):
17039         * eldap.c (Fldap_search_internal):
17040         * frame-x.c (x_set_frame_text_value):
17041         * frame-x.c (x_set_frame_properties):
17042         * frame-x.c (x_create_widgets):
17043         * redisplay-tty.c (term_get_fkeys_1):
17044         * objects-x.c (x_parse_nearest_color):
17045         * objects-x.c (x_valid_color_name_p):
17046         * objects-x.c (x_initialize_font_instance):
17047         * objects-x.c (x_list_fonts):
17048         * objects-x.c (x_find_charset_font):
17049         * tooltalk.c (Fadd_tooltalk_message_arg):
17050         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17051         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17052         * process-unix.c (unix_create_process):
17053         * ntproc.c (sys_spawnve):
17054         * sound.c (Fplay_sound_file):
17055         * sound.c (Fplay_sound):
17056         * buffer.c (init_initial_directory):
17057         * buffer.c (init_buffer):
17058         * editfns.c (init_editfns):
17059         * editfns.c (Ftemp_directory):
17060         * editfns.c (Fuser_full_name):
17061         * editfns.c (uncache_home_directory):
17062         * editfns.c (get_home_directory):
17063         * editfns.c (Fuser_home_directory):
17064         * editfns.c (Fformat_time_string):
17065         * editfns.c (Fcurrent_time_string):
17066         * gui-x.c (button_item_to_widget_value):
17067         * database.c (Fopen_database):
17068         * event-Xt.c (x_to_emacs_keysym):
17069         * event-Xt.c (x_event_to_emacs_event):
17070         * event-Xt.c (describe_event_window):
17071         * event-msw.c (mswindows_wnd_proc):
17072         * glyphs-eimage.c (jpeg_instantiate):
17073         * glyphs-eimage.c (gif_instantiate):
17074         * glyphs-eimage.c (png_instantiate):
17075         * glyphs-eimage.c (tiff_instantiate):
17076         * glyphs-x.c (xbm_instantiate_1):
17077         * glyphs-x.c (x_xbm_instantiate):
17078         * glyphs-x.c (x_xface_instantiate):
17079         * glyphs-x.c (autodetect_instantiate):
17080         * glyphs-x.c (cursor_font_instantiate):
17081         * glyphs-x.c (x_widget_instantiate):
17082         * glyphs-x.c (x_widget_set_property):
17083         * glyphs-x.c (x_widget_property):
17084         * glyphs-x.c (BUILD_GLYPH_INST):
17085         * print.c (write_string_to_stdio_stream):
17086         * print.c (output_string):
17087         * print.c (Falternate_debugging_output):
17088         * print.c (Fexternal_debugging_output):
17089         * glyphs-msw.c (extract_xpm_color_names):
17090         * glyphs-msw.c (mswindows_xpm_instantiate):
17091         * glyphs-msw.c (bmp_instantiate):
17092         * glyphs-msw.c (resource_name_to_resource):
17093         * glyphs-msw.c (mswindows_resource_instantiate):
17094         * glyphs-msw.c (xbm_instantiate_1):
17095         * glyphs-msw.c (mswindows_xbm_instantiate):
17096         * glyphs-msw.c (mswindows_xface_instantiate):
17097         * glyphs-msw.c (mswindows_widget_instantiate):
17098         * glyphs-msw.c (add_tree_item):
17099         * glyphs-msw.c (add_tab_item):
17100         * glyphs-msw.c (mswindows_combo_box_instantiate):
17101         * glyphs-msw.c (mswindows_widget_property):
17102         * glyphs-msw.c (mswindows_combo_box_property):
17103         * glyphs-msw.c (mswindows_widget_set_property):
17104         * console.c (stuff_buffered_input):
17105         * objects-msw.c (mswindows_initialize_color_instance):
17106         * objects-msw.c (mswindows_valid_color_name_p):
17107         * objects-msw.c (mswindows_list_fonts):
17108         * objects-msw.c (mswindows_font_instance_truename):
17109         * bytecode.c (optimize_compiled_function):
17110         * select-x.c (symbol_to_x_atom):
17111         * select-x.c (x_atom_to_symbol):
17112         * select-x.c (hack_motif_clipboard_selection):
17113         * select-x.c (selection_data_to_lisp_data):
17114         * select-x.c (lisp_data_to_selection_data):
17115         * select-x.c (Fx_get_cutbuffer_internal):
17116         * select-x.c (Fx_store_cutbuffer_internal):
17117         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17118         * buffer.h (TO_INTERNAL_FORMAT): New function.
17119         * emacs.c (make_arg_list_1):
17120         * emacs.c (make_argc_argv):
17121         * emacs.c (main_1):
17122         * emacs.c (Fdump_emacs):
17123         * emacs.c (split_string_by_emchar_1):
17124         * file-coding.h:
17125         * lisp.h:
17126         * lstream.h:
17127         * symsinit.h:
17128         * device-x.c (x_init_device):
17129         * device-x.c (Fx_valid_keysym_name_p):
17130         * device-x.c (Fx_get_font_path):
17131         * device-x.c (Fx_set_font_path):
17132         * glyphs.c (bitmap_to_lisp_data):
17133         * glyphs.c (pixmap_to_lisp_data):
17134         * alloc.c (make_ext_string): Use coding system arguments.  Update
17135         all callers.
17136         * alloc.c (build_string):
17137         * callproc.c (child_setup):
17138         * callproc.c (init_callproc):
17139         * fileio.c (lisp_strerror):
17140         * fileio.c (directory_file_name):
17141         * fileio.c (Fexpand_file_name):
17142         * fileio.c (Ffile_truename):
17143         * fileio.c (Fsysnetunam):
17144         * fileio.c (Fdo_auto_save):
17145         * sysdep.c (sys_readdir):
17146         * tests.c: New file.  Allow adding C tests.
17147         Replace GET_* macros with a more comprehensible and flexible
17148         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17149         Modify all calls.
17150         Any coding system can be used to do format conversion.
17151         Eliminate enum external_data_format.
17152         Eliminate convert_to_external_format.
17153         Eliminate convert_to_internal_format.
17154         Make sure file-name, keyboard, terminal, and ctext are always
17155         defined as coding systems or aliases.  Make
17156         file-name-coding-system, terminal-coding-system, and
17157         keyboard-coding-system magical variables that are equivalent to
17158         defining the corresponding coding system aliases.
17159
17160         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17161         * file-coding.c (Fcoding_system_alias_p): New function.
17162         * file-coding.c (Fcoding_system_aliasee): New function.
17163         * file-coding.c (append_suffix_to_symbol): New function.
17164         * file-coding.c (dangling_coding_system_alias_p): New function.
17165         * file-coding.c (Ffind_coding_system):
17166         * file-coding.c (Fcopy_coding_system):
17167         * file-coding.c (encode_coding_no_conversion):
17168         * file-coding.c (syms_of_file_coding):
17169         * file-coding.c (vars_of_file_coding):
17170         Rewrite coding system alias code.
17171         Allow nested aliases, like symbolic links.
17172         Allow redefinition of coding system aliases.
17173         Prevent existence of dangling coding system aliases.
17174
17175         * dired.c (Fuser_name_completion_1):
17176         * dired.c (Fuser_name_all_completions):
17177         A crash would happen if user did QUIT in the middle of building
17178         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17179
17180         * lisp.h:
17181         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17182
17183         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17184         an unsigned char *.  Update all callers.
17185
17186 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17187
17188         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17189
17190 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17191
17192         * elhash.c (hentry_description): Use more portable definition.
17193         (resize_hash_table): Initialize new hentries using
17194         xnew_array_and_zero, thereby simplifying the code.
17195
17196         * mule-charset.c (make_charset): Make sure entire object is
17197         initialized, to avoid Purify warnings.
17198
17199         * alloc.c (resize_string): Fix unlikely crash with big strings.
17200
17201 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17202
17203         * realpath.c (xrealpath):
17204         Don't call getwd().
17205
17206 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17207
17208         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17209
17210 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17211
17212         * unexelfsgi.c (unexec): Change the way we decide which segment
17213         should be extended.
17214
17215         Assumption that .bss section should be outside the PT_LOADable
17216         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17217         it's present) is inside the 'data' segment. This would fail the
17218         test which was used to find a segment to grow and cover new
17219         heap. Instead of this assumption, I created another one - on IRIX
17220         the segment to grow should start below .bss and it's address
17221         should extent above the end of .bss. Once this segment is
17222         identified, it's grown to accommodate the new heap and new
17223         zero-length .bss section is added at the end of .data2.
17224
17225 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17226
17227         * eval.c (Feval): Wrong number of arguments should use original
17228         function, not the indirect_function version of it.
17229
17230 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17231
17232         * glyphs-x.c (x_button_instantiate): Don't add image if
17233         it is not a pixmap.
17234         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17235         is relative.
17236
17237 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17238
17239         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17240         declaration.
17241         (DEFVAR_INT_MAGIC): Ditto.
17242         (DEFVAR_BOOL_MAGIC): Ditto.
17243         * glyphs.h: Reindent backslash.
17244
17245 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17246
17247         * glyphs-widget.c (layout_query_geometry):
17248         (layout_layout): Use correct types for gheight, gwidth.
17249
17250 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17251
17252         * EmacsManager.c (QueryGeometry): Purified.
17253
17254 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17255
17256         * alloc.c (make_float): Make sure entire object is initialized, to
17257         avoid Purify warnings.
17258         (pdump_register_sub): Remove useless assignment.
17259         (pdump): Use xmalloc, not malloc.
17260         (pdump_load): Use xmalloc, not malloc.
17261
17262 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17263
17264         * callproc.c:
17265         * dired-msw.c:
17266         * fileio.c:
17267         * process-nt.c:
17268         * redisplay-msw.c:
17269         * sysdep.c: Removed redundant #include <windows.h>
17270
17271 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17272
17273         * frame.c (delete_frame_internal): Do not delete device when its
17274         implementation so declares.
17275         (delete_frame_internal): Set device selected frame to nil when
17276         last frame goes away.
17277
17278         * device-msw.c (msprinter_device_system_metrics): Implemented.
17279         (mswindows_device_system_metrics): Added 'device-dpi property.
17280
17281         * device.c: (Fdevice_printer_p): Added.
17282         Added 'offset-workspace device metric.
17283
17284         * console.h (device_metrics): Declared DM_offset_workspace.
17285
17286 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17287
17288         * fileio.c (Ffile_truename): Remove pointless and confusing
17289         initialization of elen.
17290
17291         * glyphs-widget.c: Compiler warning fixes.
17292
17293 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17294
17295         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17296         instead of a Lisp_Object as argument to make it consistent with
17297         the other LIVE_P macros.
17298         (CHECK_LIVE_PROCESS): New macro.
17299
17300         * process.c: Declare Qprocess_live_p.
17301         (Fprocess_live_p): New function.
17302         (create_process): Use PROCESS_LIVE_P.
17303         (read_process_output): Ditto.
17304         (set_process_filter): Ditto.
17305         (Fdelete_process): Ditto.
17306         (kill_buffer_processes): Ditto
17307         (process_send_signal): Use CHECK_LIVE_PROCESS.
17308         (Fprocess_input_coding_system): Check whether process is still
17309         alive (fix PR#1061).
17310         (Fprocess_output_coding_system): Ditto.
17311         (Fprocess_coding_system): Ditto.
17312         (Fset_process_input_coding_system): Ditto.
17313         (Fset_process_output_coding_system): Ditto.
17314
17315 2000-01-23  Andy Piper  <andy@xemacs.org>
17316
17317         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17318         layout and widget.
17319
17320         * glyphs.c (mark_image_instance): take into account changed
17321         image_instance format.
17322         (image_instance_equal): ditto.
17323         (image_instance_hash): ditto.
17324
17325         * glyphs-widget.c (widget_instantiate): Incorporate layout
17326         instantiation here. Delay layout of the layout until later.
17327         (layout_instantiate): deleted.
17328         (layout_query_geometry): new function. get the geometry of a
17329         layout.
17330         (layout_layout): layout a layout dynamically.
17331         (image_instantiator_widget): New function - splitting up
17332         image_instantiator_format_create_glyphs_widget for netwinder
17333         compilation.
17334         (image_instantiator_buttons):
17335         (image_instantiator_edit_fields):
17336         (image_instantiator_combo_box):
17337         (image_instantiator_scrollbar):
17338         (image_instantiator_progress_guage):
17339         (image_instantiator_tree_view):
17340         (image_instantiator_tab_control):
17341         (image_instantiator_labels):
17342         (image_instantiator_layout): ditto.
17343         (image_instantiator_format_create_glyphs_widget): Call preceding
17344         functions.
17345
17346 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17347
17348         * process.c (Fset_process_coding_system):
17349         * device-x.c (Fx_keysym_hash_table):
17350         Docstring fixes.
17351
17352         * lstream.c (Lstream_write): Return documented value, not 0.
17353
17354         * fileio.c (directory_file_name):
17355         (Fsubstitute_in_file_name):
17356         (Fsubstitute_insert_file_contents_internal):
17357         (Fwrite_region_internal):
17358         * emacs.c:
17359         * sysdep.c:
17360         * getloadavg.c:
17361         * systty.h:
17362         Remove vestigial APOLLO-conditional code.
17363
17364 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17365
17366         * getpagesize.h: Add guard macros.
17367         * libsst.h: Add guard macros.
17368         * libst.h: Add guard macros.
17369         * line-number.h: Add guard macros.
17370         * ndir.h: Add guard macros.
17371         * sysfloat.h: Add guard macros.
17372         * sysfile.h: Add guard macros.
17373         * sysproc.h: Add guard macros.
17374         * syswait.h: Add guard macros.
17375         * xintrinsic.h: Add guard macros.
17376         * xintrinsicp.h: Add guard macros.
17377         * xmmanager.h: Add guard macros.
17378         * xmmanagerp.h: Add guard macros.
17379         * xmprimitive.h: Add guard macros.
17380         * xmu.h: Add guard macros.
17381         * gpmevent.h: Add copyright statement. Add guard macros.
17382         * miscplay.h: Add guard macros.
17383         * *.h: Use consistent C-standards-approved guard macro names.
17384
17385         * opaque.c (make_opaque): Switch parameter order.
17386         * opaque.h (make_opaque): Switch parameter order.
17387         Update all callers.
17388         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17389
17390         * config.h.in (type_checking_assert): Added.
17391         (bufpos_checking_assert): Added.
17392
17393 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17394
17395         * alloc.c: Harmless pdump changes.
17396         - Use countof().
17397         - spell alignment correctly.
17398         * sysdep.c: Use countof()
17399
17400 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17401
17402         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17403         initially_selected_for_input() console method, default to 0.
17404         (semi_canonicalize_console_connection): Try to delegate to
17405         canonicalize_console_connection if no such console method.
17406         (canonicalize_console_connection): Vice versa.
17407         (print_console): Do not print nil connection.
17408
17409         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17410         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17411         (XDEVIMPF_FRAMELESS_OK): Added.
17412         (CONSOLE_INHERITS_METHOD): Added.
17413
17414         * console-msw.c (mswindows_canonicalize_console_connection):
17415         Added.
17416         (mswindows_canonicalize_device_connection): Added.
17417
17418         * console-msw.h (struct msprinter_device): Added this struct and
17419         accessor macros.
17420         (mswindows_device): Made fontlist a lisp object.
17421
17422         * device.c (semi_canonicalize_device_connection):  Try to delegate
17423         to canonicalize_device_connection if no such console method.
17424         (canonicalize_device_connection): Vice versa.
17425         (print_device): Do not print nil connection.
17426
17427         * device-msw.c (mswindows_init_device): Call InitCommonControls
17428         when have widgets.
17429         (mswindows_delete_device): Removed fontlist deallocation.
17430         (mswindows_mark_device): Added.
17431
17432         * events.c (event_equal): Added abort() at unreached code.
17433         (event_hash): Ditto.
17434
17435         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17436         fallback tags of Windows devices.
17437
17438         * general.c (syms_of_general): Initialized Qmsprinter.
17439
17440         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17441         of fallback tags of Windows devices.
17442
17443         * lisp.h: Declared Qmsprinter.
17444
17445         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17446         of strings.
17447         (mswindows_list_fonts): Ditto.
17448         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17449         that it can be used by both mswindows and msprinter devices.
17450         (initialize_font_instance): Added.
17451         (mswindows_initialize_font_instance): Use it.
17452         (msprinter_initialize_font_instance): Added.
17453
17454         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17455         and implementation flags check.
17456         (redisplay_without_hooks): Changed the call to the above.
17457         (Fredraw_device): Ditto.
17458         (Fredisplay_device): Ditto.
17459
17460         * redisplay-msw.c (get_frame_dc): Implemented.
17461         (get_frame_compdc): Implemented.
17462         (many functions): Use the two functions above to get device
17463         contexts, ether for a window or a printer.
17464
17465 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17466
17467         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17468         initialization here.
17469         (init_symbols_once_early): Call it.
17470         * emacs.c (main_1): Call it.
17471         * symsinit.h: Declare it.
17472
17473 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17474
17475         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17476         Lisp_Object.
17477         (pdump_backtrace): Ditto.
17478         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17479         (pdump_get_entry): Abort if trying to register a null pointer.
17480         (pdump_dump_data): Cleanup types when relocating.
17481         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17482         (pdump_dump_rtables): Remove bad casts.
17483         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17484         Lisp_Object instead of a EMACS_INT for the hashtable
17485         reorganization.
17486
17487 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17488
17489         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17490
17491         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17492
17493         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17494
17495         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17496
17497 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17498
17499         * faces.h (FACE_STRIKETHRU_P): Added.
17500
17501         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17502         of font variants.
17503
17504         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17505         (mswindows_set_dc_font): New function, aware of font variants,
17506         separated from mswindows_update_dc.
17507
17508         * objects-msw.h (struct mswindows_font_instance_data): Added
17509         definition.
17510
17511         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17512         cached fonts and the data structure.
17513         (mswindows_initialize_font_instance): Added creation of font data
17514         structure.
17515         (mswindows_print_font_instance): Print at least something.
17516         (mswindows_create_font_variant): Implemented.
17517         (mswindows_get_hfont): Implemented.
17518
17519 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17520
17521         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17522         prototyping problem with msvc.
17523
17524         * emacs.c (main_1): added syms_of_gui_mswindows() call
17525
17526         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17527         syms_of_gui_mswindows() function
17528
17529         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17530
17531 2000-01-18  Martin Buchholz <martin@xemacs.org>
17532
17533         * XEmacs 21.2.27 is released.
17534
17535 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17536
17537         * glyphs-eimage.c (struct tiff_error_struct):
17538         (tiff_error_func):
17539         (tiff_warning_func):
17540         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17541
17542         * unexmips.c:
17543         * unexhp9k3.c:
17544         * unexfreebsd.c:
17545         * unexec.c: Remove vestigial Lucid C code.
17546         * unexalpha.c:
17547         * unexaix.c:
17548         * termcap.c:
17549         * libsst.c: Ansify.
17550         Remove declarations of errno and strerror().
17551
17552         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17553
17554         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17555
17556 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17557
17558         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17559         Optimize.
17560
17561 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17562
17563         * md5.c:
17564         * file-coding.c:
17565         * file-coding.h:
17566         Change enum eol_type to eol_type_t.
17567
17568 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17569
17570         * gui.c (get_gui_callback): Check cons before accessing car.
17571
17572 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17573
17574         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17575         (XSETSPECIFIER_TYPE): Ditto.
17576
17577 2000-01-17  Didier Verna  <didier@xemacs.org>
17578
17579         * redisplay.c (generate_fstring_runes): compute string size in
17580         characters, not bytes.
17581
17582 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17583
17584         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17585
17586 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17587
17588         * print.c (print_error_message): Call print_prepare().
17589
17590 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17591
17592         * .dbxrc: Renamed from dbxrc.
17593
17594         * events.c (event_to_character):
17595         Use `assert (foo)' instead of `if (!foo) abort()'
17596
17597         * .gdbinit (xtype): Add documentation.
17598         * .gdbinit (check-temacs): New function.
17599         * .gdbinit (check-xemacs): New function.
17600         * dbxrc (check-xemacs): New function.
17601         * dbxrc (check-xemacs): New function.
17602
17603 2000-01-14  Andy Piper  <andy@xemacs.org>
17604
17605         * glyphs-widget.c (widget_query_geometry): Make sure that we
17606         calculate default dimensions correctly.
17607
17608 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17609
17610         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17611
17612         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17613         pdump_wire'd variable.
17614
17615         * emacs.c: (main_1): Conditionalized calls to
17616         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17617
17618 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17619
17620         * window.c (Fset_window_configuration):
17621         * sysdep.c (_start):
17622         * input-method-motif.c (res):
17623         * event-Xt.c (Xt_process_to_emacs_event):
17624         Simple compiler warning fixes.
17625
17626         * bytecode.c (funcall_compiled_function): Use the original
17627         function symbol on the backtrace list in preference to the
17628         compiled_function object in error messages.
17629
17630 2000-01-13  Andy Piper  <andy@xemacs.org>
17631
17632         * glyphs-x.c (update_widget_face): Make sure we update the widget
17633         background as well as foreground.
17634
17635 2000-01-13  Andy Piper  <andy@xemacs.org>
17636
17637         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17638         fields to subwindow.
17639         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17640         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17641         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17642         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17643
17644         * glyphs-widget.c (check_valid_tab_orientation): new function.
17645         (initialize_widget_image_instance): zero orientation and
17646         justification.
17647         (widget_instantiate): pick up orientation.
17648         (tab_control_query_geometry): return appropriate values for
17649         vertical tabs.
17650
17651         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17652         appropriate creation flags for left, right and bottom tabs.
17653
17654         * s/cygwin32.h: add tab definitions.
17655
17656 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17657
17658         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17659         frame upon hiding a subwindow.
17660         (mswindows_button_instantiate): Changed the push button style to
17661         BS_PUSHBUTTON.
17662         (mswindows_button_instantiate): Removed button BS_NOTIFY
17663         style.
17664         (mswindows_button_instantiate): Removed redundant check for
17665         a disabled gui item.
17666         (mswindows_button_instantiate): Made use of WS_TABSTOP
17667         consistent: "operable" controls (edit, button, tree, scroll) have
17668         this style, "display-only" ones (static, progress gauge) do
17669         not. This style is currently ignored by XEmacs though. Also,
17670         removed the WS_EX_CONTROLPARENT style - it is not for children,
17671         it is for their parents!
17672         (mswindows_edit_field_instantiate): Ditto.
17673         (mswindows_progress_gauge_instantiate): Ditto.
17674         (mswindows_tree_view_instantiate): Ditto.
17675         (mswindows_tab_control_instantiate): Ditto.
17676         (mswindows_scrollbar_instantiate): Ditto.
17677         (mswindows_combo_box_instantiate): Ditto.
17678         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17679         style to the "clip" window.
17680         (mswindows_button_instantiate): Removed compilation warning by
17681         equally typing terms of the ?: operator.
17682
17683 2000-01-12  Didier Verna  <didier@xemacs.org>
17684
17685         * redisplay.c (generate_fstring_runes): new parameter holding the
17686         last modeline-format extent.
17687         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17688         extent, fill the glyph block with it.
17689         (generate_fstring_runes): handle these parameters.
17690         (generate_formatted_string_db): ditto.
17691
17692         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17693         glyphs'extents in the modeline.
17694
17695 1999-01-11  Mike Woolley  <mike@bulsara.com>
17696
17697         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17698         256Mb, as a workaround for the non-starting problem many people
17699         have experienced.
17700
17701 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17702
17703         * console-tty.c (Fset_console_tty_output_coding_system):
17704         Force redrawing tty frame.
17705
17706 2000-01-10  Didier Verna  <didier@xemacs.org>
17707
17708         * redisplay.c (generate_fstring_runes): fix size computation bug.
17709
17710 2000-01-09  William M. Perry <wmperry@aventail.com>
17711
17712         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17713
17714 2000-01-09  Andy Piper  <andy@xemacs.org>
17715
17716         * glyphs-msw.c: index -> i to avoid shadows.
17717         (xbm_create_bitmap_from_data): make static.
17718         (check_valid_string_or_int): deleted.
17719         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17720
17721         * glyphs-x.c (x_update_subwindow): remove unused args.
17722
17723         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17724         back pointer - this is done in allocate_image_instance.
17725         (query_string_font): return Qnil to make the compiler happy.
17726         (unmap_subwindow): set to ~0 to make the compiler happy.
17727         (glyph_query_geometry): comment out until used.
17728         (glyph_layout): ditto.
17729
17730 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17731
17732         * insdel.c (signal_after_change): Remove extraneous unbind_to().