Sync up with r21-4-19.
[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 2006-01-28  Vin Shelton  <acs@xemacs.org>
5874
5875         * XEmacs 21.4.19 is released
5876
5877 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
5878
5879         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
5880
5881 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
5882
5883         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
5884         5000 to INT_MAX.
5885
5886 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
5887
5888         * database.c: Suppress compiler warning under Cygwin.
5889         * database.c: Removed __FreeBSD__ check, should be handled by
5890         HAVE_U_xxx_T defines.
5891
5892 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
5893
5894         * console.c (stuff_buffered_input): Compile body only if
5895         HAVE_TTY.
5896
5897 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
5898
5899         * callproc.c: #include sysdir.h, so that any appropriate Mule
5900         magic happens with the chdir() call when calling a subprocess. 
5901
5902 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
5903
5904         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
5905         * mule-ccl.c: Check that a character set exists before using it
5906         to create a character. 
5907
5908 2005-12-06  Vin Shelton  <acs@xemacs.org>
5909
5910         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
5911         to INT_MAX.
5912
5913 2005-12-03  Vin Shelton <acs@xemacs.org>
5914
5915         * XEmacs 21.4.18 is released
5916
5917 2005-11-27  Kean Johnston <kean@armory.com>
5918
5919         * redisplay-tty.c (set_tty_modes):
5920         (reset_tty_modes): disable auto-margins if the terminal supports
5921         them.
5922         (init_tty_for_redisplay): fix cursor shape.
5923
5924 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
5925
5926         * mule-ccl.c (ccl_driver): Calculate the charset and position code
5927         for control-1 characters properly, both when reading multibyte
5928         characters and writing them. 
5929
5930 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
5931
5932         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
5933         * select-x.c (x_reply_selection_request): Use it; fix the bug we
5934         were seeing with incremental selection transfer failing. 
5935
5936 2005-11-26  Vin Shelton  <acs@xemacs.org>
5937
5938         * callproc.c (Fold_call_process_internal): Create the buffer if it
5939         does not already exist.  The original patch came from Ben Wing in
5940         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
5941
5942 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
5943
5944         * callproc.c: Process-related docstring improvements spurred by
5945         Norbert Koch.
5946
5947 2005-11-25  Vin Shelton  <acs@xemacs.org>
5948
5949         * depend: Regenerated.
5950
5951 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
5952
5953         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
5954         says it clashes with a global with the same name.
5955
5956 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
5957
5958         * sysdll.c (dll_open): Under MacOS X return NULL under the
5959         filename is NULL.  Fixes problems finding local symbols under 10.4
5960         (Tiger)
5961
5962 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
5963         
5964         * config.h.in: New HAVE_U_INT*_T defines.
5965         
5966         * database.c: Only use u_int*_t typedefs if not already
5967         defined.
5968
5969 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
5970
5971         * src/process-unix.c (unix_open_network_stream): moved
5972           'portbuf' buffer out of an inner block as it is used in the
5973           entire function. With gcc4, the stack may get corrupted
5974           after leaving this block. This patches adjusts the size of
5975           the used buffer also; static '128' bytes are far too much
5976           currently and might not suffice for future architectures
5977           (e.g. for 512 bit ones ;)). Instead of, use only the really
5978           required space (max octets * ln(256)/ln(10) chars + space
5979           for '\0' and the sign)
5980
5981 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
5982
5983         * callproc.c: Include sysdir.h, so any necessary Mule processing
5984         is done on the current directory name before starting a new
5985         process.
5986
5987 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
5988
5989         * chartab.c (Fchar_table_p):
5990         (Fget_range_char_table):
5991         (Fput_char_table):
5992         (Fmap_char_table):
5993         Describe range representation and fix typo.
5994
5995 2005-02-12  Vin Shelton  <acs@xemacs.org>
5996
5997         * emacs.c (shut_down_emacs): Advise users to send email to the
5998         xemacs-beta list instead of crashes@xemacs.org.
5999
6000 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6001
6002         * process-unix.c (unix_send_process): Flush the last chunk, even
6003         when the pipe is blocked.
6004
6005 2005-02-06  Vin Shelton <acs@xemacs.org>
6006
6007         * XEmacs 21.4.17 is released
6008
6009 2005-01-31  Ben Wing  <ben@xemacs.org>
6010
6011         * emacs.c:
6012         Define assert_failed() always.
6013         * lisp.h:
6014         Always define ABORT().
6015
6016 2005-01-25  Ben Wing  <ben@xemacs.org>
6017
6018         * Makefile.in.in:
6019         * Makefile.in.in (%.o):
6020         Don't compile executable as Windows (-mwindows) under Cygwin.
6021         Semi-recent changes to Cygwin's executable-startup handling make
6022         it impossible to access the TTY this way.
6023
6024         Don't use special linker file under Cygwin (cygwin.sc) except
6025         when non-PDUMP (even in this case it is highly questionable); you
6026         get errors like
6027
6028       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6029    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6030
6031 2005-01-29  Ben Wing  <ben@xemacs.org>
6032
6033         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6034
6035         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6036
6037 2005-01-29  Ben Wing  <ben@xemacs.org>
6038
6039         * bytecode.c (optimize_compiled_function):
6040         * print.c (FROB):
6041         * print.c (long_to_string):
6042         Add casts to avoid warning.
6043         
6044         * glyphs-eimage.c:
6045         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6046         #### The better solution is to move the TIFF and JPEG code to
6047         different files.
6048         
6049         * glyphs-msw.c (mswindows_xbm_instantiate):
6050         Define __STDC__ to avoid problems with compface.h.
6051         
6052         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6053         * EmacsShell-sub.c:
6054         * EmacsShell-sub.c (ABORT):
6055         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6056         * EmacsShell-sub.c (RootGeometryManager):
6057         * EmacsShell.c:
6058         * EmacsShell.c (ABORT):
6059         * EmacsShell.c (EmacsShellUpdateSizeHints):
6060         * alloc.c (free_lcrecord):
6061         * alloca.c (i00afunc):
6062         * buffer.c (delete_from_buffer_alist):
6063         * buffer.c (MARKED_SLOT):
6064         * bytecode.c (execute_rare_opcode):
6065         * bytecode.c (optimize_byte_code):
6066         * bytecode.c (Ffetch_bytecode):
6067         * chartab.c (char_table_type_to_symbol):
6068         * chartab.c (Freset_char_table):
6069         * chartab.c (decode_char_table_range):
6070         * chartab.c (Fget_range_char_table):
6071         * chartab.c (check_valid_char_table_value):
6072         * chartab.c (map_char_table):
6073         * chartab.c (slow_map_char_table_fun):
6074         * chartab.c (chartab_instantiate):
6075         * cm.c (cmcheckmagic):
6076         * console-msw.c (DHEADER):
6077         * console.c (MARKED_SLOT):
6078         * data.c (finish_marking_weak_lists):
6079         * data.c (encode_weak_list_type):
6080         * debug.h (DASSERT):
6081         * device-gtk.c (gtk_init_device):
6082         * device-msw.c (mswindows_get_default_margin):
6083         * device-tty.c (tty_init_device):
6084         * device-x.c (get_device_from_display):
6085         * device-x.c (x_get_visual_depth):
6086         * doprnt.c (parse_doprnt_spec):
6087         * doprnt.c (get_doprnt_args):
6088         * dumper.c (pdump_get_indirect_count):
6089         * dumper.c (pdump_register_sub):
6090         * dumper.c (pdump_register_object):
6091         * dumper.c (pdump_register_struct):
6092         * dumper.c (pdump_dump_data):
6093         * dumper.c (pdump_reloc_one):
6094         * elhash.c (print_hash_table):
6095         * elhash.c (make_standard_lisp_hash_table):
6096         * elhash.c (hash_table_instantiate):
6097         * emacs.c:
6098         * emacs.c (Fforce_debugging_signal):
6099         * emacs.c (sort_args):
6100         * emacs.c (main):
6101         * emacs.c (assert_failed):
6102         * eval.c (throw_or_bomb_out):
6103         * eval.c (signal_1):
6104         * eval.c (Fsignal):
6105         * event-Xt.c:
6106         * event-Xt.c (emacs_Xt_mapping_action):
6107         * event-Xt.c (Xt_process_to_emacs_event):
6108         * event-msw.c:
6109         * event-stream.c (check_event_stream_ok):
6110         * event-stream.c (Fadd_timeout):
6111         * event-stream.c (Fadd_async_timeout):
6112         * event-stream.c (Fdiscard_input):
6113         * event-stream.c (execute_internal_event):
6114         * event-stream.c (Frecent_keys):
6115         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6116         * event-stream.c (lookup_command_event):
6117         * event-unixoid.c (poll_fds_for_input):
6118         * events.c:
6119         * events.c (mark_event):
6120         * events.c (event_equal):
6121         * events.c (event_hash):
6122         * events.c (Fmake_event):
6123         * events.c (Fdeallocate_event):
6124         * events.c (event_chain_find_previous):
6125         * events.c (event_to_character):
6126         * events.c (format_event_object):
6127         * events.c (Fevent_type):
6128         * events.c (event_pixel_translation):
6129         * events.c (Fevent_properties):
6130         * extents.c (extent_in_region_p):
6131         * extents.c (print_extent):
6132         * extents.c (process_extents_for_insertion_mapper):
6133         * extents.c (report_extent_modification_mapper):
6134         * extents.c (glyph_layout_to_symbol):
6135         * faces.c (face_validate):
6136         * file-coding.c (eol_type_to_symbol):
6137         * file-coding.c (subsidiary_coding_system):
6138         * file-coding.c (Fcoding_system_type):
6139         * file-coding.c (Fcoding_system_property):
6140         * file-coding.c (mule_decode):
6141         * file-coding.c (mule_encode):
6142         * file-coding.c (encode_coding_ucs4):
6143         * file-coding.c (encode_coding_utf8):
6144         * file-coding.c (parse_iso2022_esc):
6145         * file-coding.c (encode_coding_iso2022):
6146         * fileio.c:
6147         * fns.c (concat):
6148         * fns.c (Fsubseq):
6149         * fns.c (mapcar1):
6150         * fns.c (Fbase64_encode_region):
6151         * fns.c (Fbase64_encode_string):
6152         * fns.c (Fbase64_decode_region):
6153         * fns.c (Fbase64_decode_string):
6154         * font-lock.c (find_context):
6155         * font-lock.c (context_to_symbol):
6156         * frame-gtk.c (gtk_set_frame_pointer):
6157         * frame-gtk.c (gtk_update_frame_external_traits):
6158         * frame-x.c (x_wm_mark_shell_size_user_specified):
6159         * frame-x.c (x_wm_mark_shell_position_user_specified):
6160         * frame-x.c (x_wm_set_shell_iconic_p):
6161         * frame-x.c (x_wm_set_cell_size):
6162         * frame-x.c (x_wm_set_variable_size):
6163         * frame-x.c (x_wm_store_class_hints):
6164         * frame-x.c (x_wm_maybe_store_wm_command):
6165         * frame-x.c (x_initialize_frame_size):
6166         * frame-x.c (x_update_frame_external_traits):
6167         * frame.c:
6168         * frame.c (delete_frame_internal):
6169         * frame.c (mouse_pixel_position_1):
6170         * frame.c (change_frame_size_1):
6171         * free-hook.c (check_free):
6172         * free-hook.c (check_realloc):
6173         * free-hook.c (note_block_input):
6174         * free-hook.c (log_gcpro):
6175         * gccache-gtk.c (gc_cache_lookup):
6176         * glyphs-eimage.c (tiff_memory_write):
6177         * glyphs-gtk.c (gtk_finalize_image_instance):
6178         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6179         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6180         * glyphs-gtk.c (gtk_xpm_instantiate):
6181         * glyphs-gtk.c (gtk_unmap_subwindow):
6182         * glyphs-gtk.c (gtk_map_subwindow):
6183         * glyphs-gtk.c (gtk_button_redisplay):
6184         * glyphs-msw.c:
6185         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6186         * glyphs-x.c (init_image_instance_from_xbm_inline):
6187         * glyphs-x.c (extract_xpm_color_names):
6188         * glyphs-x.c (x_xpm_instantiate):
6189         * glyphs.c (get_image_instantiator_governing_domain):
6190         * glyphs.c (print_image_instance):
6191         * glyphs.c (image_instance_equal):
6192         * glyphs.c (image_instance_hash):
6193         * glyphs.c (encode_image_instance_type):
6194         * glyphs.c (make_image_instance_1):
6195         * glyphs.c (inherit_instantiate):
6196         * glyphs.c (image_instantiate):
6197         * glyphs.c (allocate_glyph):
6198         * glyphs.c (Fglyph_type):
6199         * glyphs.c (redisplay_subwindow):
6200         * glyphs.c (display_table_entry):
6201         * gtk-glue.c (xemacs_list_to_gtklist):
6202         * gtk-glue.c (xemacs_gtklist_to_list):
6203         * gtk-glue.c (xemacs_list_to_array):
6204         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6205         * gutter.c (gutter_was_visible):
6206         * gutter.c (get_gutter_coords):
6207         * input-method-xlib.c (get_XIM_input):
6208         * insdel.c (bufpos_to_bytind_func):
6209         * insdel.c (bytind_to_bufpos_func):
6210         * insdel.c (move_gap):
6211         * intl.c (x_get_composed_input):
6212         * keymap.c (keymap_lookup_directly):
6213         * keymap.c (keymap_delete_inverse_internal):
6214         * keymap.c (ensure_meta_prefix_char_keymapp):
6215         * keymap.c (accessible_keymaps_mapper_1):
6216         * keymap.c (where_is_recursive_mapper):
6217         * lisp.h:
6218         * lisp.h (ABORT):
6219         * lread.c (read_atom):
6220         * lstream.c (Lstream_delete):
6221         * lstream.c (make_lisp_buffer_stream_1):
6222         * macros.c (pop_kbd_macro_event):
6223         * malloc.c (malloc):
6224         * malloc.c (free):
6225         * marker.c (bi_marker_position):
6226         * marker.c (set_bi_marker_position):
6227         * menubar-gtk.c (menu_descriptor_to_widget_1):
6228         * menubar-msw.c (prune_menubar):
6229         * menubar-x.c (set_frame_menubar):
6230         * mule-charset.c (get_unallocated_leading_byte):
6231         * mule-charset.h (CHAR_LEADING_BYTE):
6232         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6233         * nt.c (init_environment):
6234         * nt.c (generate_inode_val):
6235         * ntproc.c (delete_child):
6236         * ntproc.c (_sys_read_ahead):
6237         * ntproc.c (create_child):
6238         * objects.c (color_instantiate):
6239         * objects.c (font_instantiate):
6240         * objects.c (face_boolean_instantiate):
6241         * print.c (printing_major_badness):
6242         * process-nt.c (nt_send_process):
6243         * process-unix.c (unix_send_process):
6244         * process.c (get_process):
6245         * ralloc.c (obtain):
6246         * ralloc.c (relinquish):
6247         * ralloc.c (relocate_blocs):
6248         * ralloc.c (resize_bloc):
6249         * ralloc.c (r_alloc_free):
6250         * ralloc.c (r_re_alloc):
6251         * ralloc.c (r_alloc_thaw):
6252         * ralloc.c (init_ralloc):
6253         * ralloc.c (Free_Addr_Block):
6254         * ralloc.c (r_alloc):
6255         * redisplay-gtk.c (gtk_output_display_block):
6256         * redisplay-msw.c (mswindows_output_display_block):
6257         * redisplay-output.c (get_next_display_block):
6258         * redisplay-output.c (get_cursor_size_and_location):
6259         * redisplay-output.c (redisplay_output_layout):
6260         * redisplay-output.c (redisplay_clear_region):
6261         * redisplay-tty.c (tty_output_display_block):
6262         * redisplay-x.c (x_output_display_block):
6263         * redisplay.c (add_propagation_runes):
6264         * redisplay.c (add_glyph_rune):
6265         * redisplay.c (create_text_block):
6266         * redisplay.c (add_margin_runes):
6267         * redisplay.c (create_left_glyph_block):
6268         * redisplay.c (create_right_glyph_block):
6269         * redisplay.c (create_string_text_block):
6270         * redisplay.c (regenerate_window):
6271         * redisplay.c (REGEN_INC_FIND_START_END):
6272         * redisplay.c (redisplay_frame):
6273         * redisplay.c (point_in_line_start_cache):
6274         * regex.c:
6275         * regex.c (ABORT):
6276         * regex.c (re_compile_fastmap):
6277         * regex.c (re_match_2_internal):
6278         * regex.c (regerror):
6279         * scrollbar-gtk.c (gtk_scrollbar_loop):
6280         * scrollbar-gtk.c (scrollbar_cb):
6281         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6282         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6283         * scrollbar-x.c (x_update_scrollbar_instance_status):
6284         * scrollbar-x.c (x_scrollbar_loop):
6285         * scrollbar-x.c (x_update_frame_scrollbars):
6286         * search.c (search_command):
6287         * search.c (Fmatch_data):
6288         * select-x.c (motif_clipboard_cb):
6289         * signal.c (interrupt_signal):
6290         * specifier.c (specifier_add_spec):
6291         * specifier.c (specifier_instance_from_inst_list):
6292         * specifier.c (specifier_instance):
6293         * specifier.h:
6294         * specifier.h (struct specifier_methods):
6295         * strftime.c (add_num_time_t):
6296         * sunplay.c (init_device):
6297         * symbols.c (Fsetplist):
6298         * symbols.c (do_symval_forwarding):
6299         * symbols.c (store_symval_forwarding):
6300         * symbols.c (Fset):
6301         * symbols.c (Fbuilt_in_variable_type):
6302         * symbols.c (decode_magic_handler_type):
6303         * symbols.c (handler_type_from_function_symbol):
6304         * syntax.c (update_syntax_cache):
6305         * sysdep.c (init_baud_rate):
6306         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6307         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6308         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6309         * toolbar.c (get_toolbar_coords):
6310         * ui-gtk.c (build_gtk_boxed):
6311         * ui-gtk.c (describe_gtk_arg):
6312         * ui-gtk.c (gtk_type_to_lisp):
6313         * ui-gtk.c (lisp_to_gtk_type):
6314         * ui-gtk.c (lisp_to_gtk_ret_type):
6315         * ui-gtk.c (lisp_to_flag):
6316         * unexnt.c (read_in_bss):
6317         * unexnt.c (map_in_heap):
6318         * window.c (real_window):
6319         * window.c (window_display_lines):
6320         * window.c (window_display_buffer):
6321         * window.c (set_window_display_buffer):
6322         * window.c (window_modeline_height):
6323         * window.c (unshow_buffer):
6324         * window.c (window_loop):
6325         * window.c (Fget_lru_window):
6326         * window.c (Fsplit_window):
6327         * window.c (Fset_window_configuration):
6328         * window.c (saved_window_index):
6329         * xgccache.c (gc_cache_lookup):
6330         abort() -> ABORT().  Eliminate preprocessor games with abort()
6331         since it creates huge problems in VC7, solvable only by including
6332         massive amounts of files in every compile (and not worth it).
6333
6334         * sysdep.c:
6335         * sysproc.h:
6336         Inclusion of process.h does not need to be before lisp.h any more.
6337         Move later and remove comment about abort().
6338
6339 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6340
6341         * regex.c (re_match_2_internal):
6342         Correctly initialize loop which clears uninitialized registers.
6343
6344 2005-01-28  Vin Shelton  <acs@xemacs.org>
6345
6346         * sheap.c (more_static_core): Applied Ben's version of the long
6347         string patch.
6348
6349 2005-01-24  Vin Shelton  <acs@xemacs.org>
6350
6351         * sheap.c (more_static_core): Reformatted printf string so
6352         gcc-3.3.3 will compile this on Cygwin.
6353
6354 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6355
6356         * console.c (function_key_map): Reference `key-binding'.
6357
6358         * keymap.c (Vkey_translation_map): Improve docstring.
6359
6360 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6361
6362         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6363         * window.c (window_loop): [fix] Take into account
6364         `allow-deletion-of-last-visible-frame' variable.
6365         * window.c (replace-buffer-in-windows): Ditto.
6366
6367 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6368
6369         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6370
6371 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6372
6373         * event-gtk.c: Recognise AltGr as a valid modifier.
6374
6375 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6376
6377         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6378
6379 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6380
6381         Fix backreference bug caught by test suite.
6382
6383         * regex.c (regex_compile):
6384         Make backref duplicate internal register.
6385
6386 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6387
6388         Documentation, code clarification, and warning suppression.
6389         
6390         * regex.c (regex_compile):
6391         Improve comments.
6392         (re_match_2_internal):
6393         Improve comments and avoid redundant braces.  [Most of the big hunk
6394         at l. 4710 is indentation; use diff -w to see the real changes.]
6395         (alt_match_null_string_p):
6396         (common_op_match_null_string_p):
6397         Avoid shadowing global on Mac OS X 10.4, at least.
6398
6399 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6400
6401         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6402         introduced with shy groups fix).  [Already applied, probably
6403         with the second "fix shy groups" patch of 2004-10-07.] 
6404
6405 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6406
6407         From Andrey Slusar <anrays@gmail.com>:
6408
6409         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6410
6411 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6412
6413         * Makefile (RECURSIVE_MAKE): Removed.
6414         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6415         handling parallel builds.
6416
6417 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6418
6419         * Makefile.in.in: Enable support for parallel builds.
6420
6421 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6422
6423         From Andrey Slusar <anrays@gmail.com>:
6424
6425         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6426         FreeBSD version is >= 199701 _and_ < 600006.
6427
6428 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6429
6430         * scrollbar.c (compute_scrollbar_instance_usage):
6431         Only call device method compute_scrollbar_instance_usage() if it
6432         is defined.
6433
6434 2004-12-05  Vin Shelton <acs@xemacs.org>
6435
6436         * XEmacs 21.4.16 is released
6437
6438 2004-12-04  Vin Shelton  <acs@xemacs.org>
6439
6440         * depend: Regenerated.
6441
6442 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6443
6444         * regex.c (re_match_2_internal): Map internal to external
6445         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6446         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6447
6448 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6449
6450         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6451         to fix a crash.  Also, check the buffer is live and it
6452         really exists in buffer_list.  If the buffer is not in the list,
6453         prepend it.
6454
6455 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6456
6457         Fix shy groups by implementing recording of all groups for
6458         repetition and backtracking.  Backport from 21.5.
6459         
6460         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6461         external_to_internal_register, external_to_internal_register_size,
6462         and update comments for re_nsub.
6463
6464         * regex.c (re_opcode_t): Update comments.
6465         (print_compiled_pattern): Ouput external_to_internal_register,
6466         external_to_internal_register_size, and re_ngroups for debugging.
6467         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6468         (regex_compile): Update header comment.
6469         Ensure that all groups are recorded so that repeat matches and
6470         backtracking work correctly.  Comment related warning for groups >
6471         255.
6472         (re_search_2): Construct map of API indexes (which count only
6473         nonshy groups) to internal register numbers, and keep it updated.
6474
6475 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6476
6477         * frame-gtk.c (gtk_make_frame_visible):
6478         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6479         show/hide.  This is what X uses and is prevents previously hidden
6480         widgets from suddenly reappearing.
6481         * gtk-xemacs.c (gtk_xemacs_paint):
6482         * gtk-xemacs.c (gtk_xemacs_draw):
6483         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6484         drawable.
6485         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6486         size and location changes so that they can be seen before the next
6487         idle event.  Without this rapid changes to scrollbar properties
6488         are not seen.
6489
6490 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6491
6492         * console-gtk.h:
6493         * console-gtk.h (struct gtk_frame):
6494         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6495           Add hash tables track tab_control callback data.
6496           Added #defines for GTK object data names.
6497           Declaration of gtk_widget_to_frame().
6498         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6499         * frame-gtk.c (gtk_widget_to_frame): New.
6500         * frame-gtk.c (gtk_create_widgets):
6501         * frame-gtk.c (allocate_gtk_frame_struct):
6502         * frame-gtk.c (gtk_mark_frame):
6503         Manage frame callbakc hash tables.
6504         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6505         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6506         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6507         of widget size.
6508         * glyphs-gtk.c (gtk_widget_query_geometry): New
6509         * glyphs-gtk.c (gtk_register_gui_item): New
6510         * glyphs-gtk.c (gtk_add_tab_item): New
6511         * glyphs-gtk.c (gtk_tab_control_callback): New
6512         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6513         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6514         Use correct list when loading item.
6515         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6516         Register new methods.
6517         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6518         default size, for widgets.
6519         * gui-x.c:  Improved comment.
6520         * menubar-gtk.c (__generic_button_callback): Use
6521         gtk_widget_to_frame instead of __get_channel.
6522         * scrollbar-gtk.c:
6523         * ui-gtk.c: Use symbolic names for GTK object data.
6524
6525 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6526
6527         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6528
6529 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6530
6531         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6532
6533 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6534
6535         * malloc.c (morecore): siz is a long because in some architectures
6536         (eg ia-64) an int cannot hold the address range.  Additional patch
6537         from the SuSe distribution.
6538
6539 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6540
6541         * emacs.c:
6542         * malloc.c: lim_data is a long because in some architectures
6543         (eg ia-64) an int cannot hold the address range.
6544         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6545         instead of ulimit() because ulimit() always returns -1.
6546
6547 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6548
6549         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6550
6551 2004-06-11  David Kastrup  <dak@gnu.org>
6552
6553         * search.c (match_limit): Don't flag an error if match-data
6554         exceeding the allocated search_regs.num_regs gets requested, just
6555         return Qnil.
6556
6557 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6558
6559         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6560         replace symbolic color entries with the real colors specified in
6561         xpm-color-symbols, before passing the XPM to gtk.
6562         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6563         instead of a GTK specific field, so that it is used in by generic
6564         code.
6565
6566 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6567
6568        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6569         coredump from deref of NULL ptr (ExtData)
6570
6571 2004-04-19  Jerry James  <james@xemacs.org>
6572
6573         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6574         VALBITS to compute the location of the sign bit.
6575         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6576         of VALBITS with EMACS_INT_MAX.
6577         * events.c (Fevent_timestamp): Ditto.
6578         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6579         compute the halfway point to timestamp wraparound.
6580         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6581         EMACS_INT_MIN instead of using VALBITS.
6582         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6583         incorrect number with VALBITS.
6584         * fns.c (Frandom): Correct number of integer bits in docstring.
6585         Use INT_VALBITS instead of VALBITS to compute the denominator.
6586         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6587         build random numbers.
6588
6589 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6590         * event-gtk.c:
6591         * event-gtk.c (gtk_event_to_emacs_event):
6592         * menubar-gtk.c:
6593         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6594         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6595         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6596         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6597         * menubar-gtk.c (__activate_menu):
6598         * menubar-gtk.c (convert_underscores):
6599         * menubar-gtk.c (remove_underscores):
6600         * menubar-gtk.c (menu_convert):
6601         * menubar-gtk.c (menu_descriptor_to_widget_1):
6602         * menubar-gtk.c (menu_descriptor_to_widget):
6603         * menubar-gtk.c (menu_can_reuse_widget):
6604         * menubar-gtk.c (menu_create_menubar):
6605         * menubar-gtk.c (gtk_popup_menu):
6606         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6607         Added support for Gtk menu bar and menu item mnemonics.
6608
6609 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6610
6611         * sysdll.c: (dll_function): Added support for finding symbols in
6612         Darwin shared libraries as well in Darwin bundles.
6613         * sysdll.c (image_for_address): New
6614         * sysdll.c (my_find_image): New
6615         * sysdll.c (search_linked_libs): New
6616
6617 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6618
6619         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6620         return to GTK requires a different API to marshalling data to use
6621         as GTK parameters.
6622         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6623
6624 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6625
6626         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6627
6628 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6629
6630         * glyphs.c (process_image_string_instantiator):
6631         (Fset_console_type_image_conversion_list):
6632         Stop GCC from warning about shadowing of `exp'.
6633
6634         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6635
6636 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6637
6638         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6639
6640 2004-02-03  Vin Shelton  <acs@xemacs.org>
6641
6642         * glyphs.c (image_instance_layout): Remove pointless assertion.
6643         * regex.c (regex_grow_registers): Return type is void.
6644
6645 2004-02-02  Vin Shelton <acs@xemacs.org>
6646
6647         * XEmacs 21.4.15 is released
6648
6649 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6650
6651         * device-x.c (x_error_handler): Don't call stderr_out
6652
6653 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6654
6655         * buffer.c (other-buffer): Clarify documentation of order of
6656         arguments for FSF Emacs.
6657
6658 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6659
6660         * window.c (Fdelete_window): Dirty the mirror structure _before_
6661         marking the window deleted.
6662
6663 2003-09-15  Jerry James  <james@xemacs.org>
6664
6665         * event-msw.c (debug_mswin_messages): Conditionally compile
6666         messages missing from the Cygwin headers.
6667
6668 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6669
6670         * data.c (eq_with_ebola_notice): Fix typo in comment.
6671         (Ftrue_list_p): Improve docstring.
6672
6673 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6674
6675         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6676
6677 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6678
6679         * search.c (trivial_regexp_p): Regexps containing "\{" are
6680         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6681         Stefan Monnier for suggesting a diagnosis.
6682
6683 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6684
6685         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6686
6687 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6688
6689         * search.c (Fsearch_forward):
6690         (Fsearch_backward):
6691         Document negative count.
6692
6693 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6694
6695         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6696
6697 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6698
6699         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6700
6701 2003-09-15  Vin Shelton  <acs@xemacs.org>
6702
6703         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6704         21.5.
6705
6706 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6707
6708         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6709         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6710         (re_match_2_internal): Use TRANSLATE instead of
6711         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6712         non-ASCII char case conversion.
6713
6714 2003-09-08  Mike Sperber  <mike@xemacs.org>
6715
6716         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6717         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6718
6719 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6720
6721        * .gdbinit (pobj): fix printing of symbol name.
6722
6723 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6724
6725         * frame-x.c (x_layout_widgets): When resizing is about to cause
6726         frame size slip, mark it for redisplay.
6727
6728 2003-08-18  Jerry James  <james@xemacs.org>
6729
6730         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6731
6732 2003-09-03  Vin Shelton <acs@xemacs.org>
6733
6734         * XEmacs 21.4.14 is released
6735
6736 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6737
6738         * config.h.in (REGEX_MALLOC): Make it configure'able.
6739
6740 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6741
6742         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6743         linking.
6744         * sysdll.c (dll_init):
6745         * sysdll.c (dll_open):
6746         * sysdll.c (dll_close):
6747         * sysdll.c (dll_function):
6748         * sysdll.c (dll_variable):
6749         * sysdll.c (dll_error):
6750         Add support for loading bundles using Darwin/MacOSX
6751         native API.
6752
6753 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6754
6755         * process.c (start-process-internal): Document coding systems.
6756
6757 2003-07-30  Jerry James  <james@xemacs.org>
6758
6759         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6760
6761 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6762
6763         * event-msw.c (mswindows_enqueue_mouse_button_event):
6764         * event-msw.c (mswindows_wnd_proc):
6765           enqueue button event when scrollwheel event isn't handled by 
6766           mswindows_handle_mousewheel_event, such as when the scrollbars
6767           are not showing.
6768
6769 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6770
6771         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6772
6773 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6774
6775         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6776
6777 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6778
6779         * regex.c (re_match_2_internal): Fix matching degenerate word
6780         boundaries.
6781
6782 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6783
6784         * XEmacs 21.4.13 is released
6785
6786 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6787
6788         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6789         * lisp.h (<inttypes.h>):
6790         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6791         the definition.
6792
6793 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6794
6795         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6796         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6797         Result: "temacs can only be run in -batch mode."
6798         Fix: Check xemacs executable candidate for directory-ness.
6799
6800 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6801
6802         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6803           they conflict with <sys/types.h>.
6804
6805 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6806
6807         * database.c: Berkeley DB wants __STDC__ to be defined.
6808
6809 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6810
6811         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6812
6813 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6814
6815         * process-unix.c (unix_send_process): Fix C++ compile error.
6816
6817 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6818
6819         * Added .dylib as an acceptable shared library file extension
6820         * to support MacOSX.
6821
6822 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6823
6824         * EmacsFrameP.h (EmacsFramePart):
6825         Kludge to allow compiling with Motif1, but linking with Motif2.
6826
6827 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6828
6829         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6830
6831
6832 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6833
6834         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6835
6836 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6837
6838         * sysdll.c: Included lisp.h to define needed alloca_array.
6839
6840 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6841
6842         Make XEmacs redisplay 10 times faster.
6843         If, that is, you're using a slow X connection and MoveOpaque.
6844         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6845         Use compress_motion = TRUE.
6846         * EmacsFrame.c (emacsFrameClassRec): 
6847         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6848         * EmacsManager.c (emacsManagerClassRec):
6849         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6850
6851 2003-01-30  Vin Shelton  <acs@xemacs.org>
6852
6853         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6854
6855 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6856
6857         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6858         Patch by Martin Buchholz.
6859
6860 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6861
6862         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6863         Thanks to icc for warning and Martin Buchholz for reporting.
6864
6865 2003-01-29  Vin Shelton <acs@xemacs.org>
6866
6867         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6868
6869         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6870         remember to multiply by the element size.
6871
6872 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
6873
6874         * XEmacs 21.4.12 "Portable Code" is released.
6875
6876 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
6877
6878         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6879         * s/cygwin.sc: new linker file.
6880
6881 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
6882
6883         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6884
6885         * redisplay-x.c (x_output_string): Use X11-specified types.
6886         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6887         * emacs.c (__free_hook): Use typeof with Intel compiler.
6888         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6889
6890 2003-01-08  Andy Piper  <andy@xemacs.org>
6891
6892         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6893         reserve size during unexec().
6894
6895 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
6896
6897         * process-unix.c (unix_create_process): Don't let outchannel block.
6898
6899 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
6900
6901         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6902         Needed for IsBadReadPtr().
6903
6904 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
6905
6906         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6907
6908 2002-12-14  Ben Wing  <ben@xemacs.org>
6909
6910         * callint.c: Declaration error.
6911         * dumper.c (pdump):
6912         * dumper.c (pdump_load): Warning fix.
6913         * process.c: GCPRO error.
6914         * glyphs.c (unmap_subwindow):
6915         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6916         * event-stream.c (maybe_kbd_translate): Wrong argument to
6917         character_to_event().
6918
6919         * alloc.c (garbage_collect_1):
6920         * emacs.c:
6921         * emacs.c (debug_can_access_memory):
6922         * emacs.c (fatal_error_signal):
6923         * emacs.c (mswindows_handle_hardware_exceptions):
6924         * emacs.c (main_1):
6925         * emacs.c (main):
6926         * emacs.c (assert_failed):
6927         * emacs.c (syms_of_emacs):
6928         * lisp.h:
6929         * print.c:
6930         * print.c (std_handle_out_va):
6931         * print.c (write_string_to_stdio_stream):
6932         * print.c (write_fmt_string):
6933         * print.c (printing_badness):
6934         * print.c (printing_major_badness):
6935         * print.c (print_internal):
6936         * print.c (debug_print_no_newline):
6937         * print.c (debug_backtrace):
6938         Be more defensive in handling bad values when printing.  Add code
6939         from trunk involving inhibit_non_essential_printing_operations.
6940         When going down or in debug_print(), don't do external conversion
6941         and such and try really, really hard when printing to avoid core
6942         dumping.  Add force-debugging-signal, debug_break().
6943
6944 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
6945
6946         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6947         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6948
6949 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
6950
6951         * database.c: Fix open_database. Berkeley DB API has changed in
6952         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6953
6954 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
6955
6956         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6957
6958 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
6959
6960         * event-Xt.c (Xt_timeout):
6961         (Xt_timeout_callback):
6962         (emacs_Xt_add_timeout):
6963         (emacs_Xt_remove_timeout):
6964         (Xt_timeout_to_emacs_event):
6965         Turn completed_timeouts from a stack into a queue.  Fixes
6966         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6967
6968 2002-11-07  Wolfram Gloger  <wg@malloc.de>
6969
6970         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6971         * emacs.c (main): Assert that mmap'd allocation is disabled.
6972
6973 2002-10-14  Andy Piper  <andy@xemacs.org>
6974
6975         * glyphs-widget.c (layout_query_geometry): add in fiddle
6976         factor. Include border text in width layout calculation.
6977         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6978
6979 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
6980
6981         * XEmacs 21.4.10 "Military Intelligence" is released.
6982
6983 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
6984
6985         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
6986         using the NAS private array SoundFileInfo that no longer exists in
6987         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
6988         and earlier.  This is broken for some versions between 1.5a and
6989         1.5f.
6990
6991 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
6992
6993         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
6994
6995         * emacs.c (shut_down_emacs): Improve crash message.
6996
6997 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
6998
6999         * file-coding.c (determine_real_coding_system): Check for coding
7000         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7001         shebangs and Python PEP 263.
7002
7003 2002-10-08  Andy Piper  <andy@xemacs.org>
7004
7005         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7006         if static sizes haven't been set.
7007
7008 2002-08-30  Mike Alexander  <mta@arbortext.com>
7009
7010         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7011         to close a socket.
7012
7013 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7014
7015         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7016
7017 2002-09-20  Mike Sperber <mike@xemacs.org>
7018
7019         (This partially gets back my patch from 2002-07-20 without the
7020         bug.)
7021         * callproc.c (child_setup): Remove Ben's comment noting confusion
7022         over the file descriptors >= 3: close_process_descs() doesn't
7023         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7024         * process-unix.c (unix_create_process): Call
7025         begin_dont_check_for_quit to inhibit unwanted interaction (and
7026         thus breaking of X event synchronicity) in the child.
7027
7028 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7029
7030         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7031         widget.
7032
7033 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7034
7035         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7036         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7037         the xemacs process did not exit, but looped infinitely here.  This
7038         fixes that problem.
7039
7040 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7041
7042         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7043         (find_context): Improve comments.
7044
7045         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7046         (re_match_2): An XCHAR_TABLE operation was missing.
7047
7048         Many of the following changes were inspired by Andy Piper's (now
7049         obsolete) patch to make syntax-table text property lookup optional.
7050
7051         [Documentation]
7052
7053         * syntax.h (top level): Document semantics of syntax flags.
7054         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7055         * syntax.c, syntax.h (top level): Document syntax cache better in
7056         comments.
7057
7058         [Instrument syntax caching (temporary change)]
7059
7060         * syntax.h (enum syntax_cache_statistics_functions, struct
7061         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7062         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7063         * syntax.c (scan_words, Fforward_comment, scan_lists,
7064         Fbackward_prefix_characters):
7065         * font-lock.c (find_context):
7066         Use them to instrument syntax caching. 
7067         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7068         syntax_cache_statistics_function_names): New type and variables.
7069         * syntax.c (update_syntax_cache): Update and report statistics.
7070
7071         [Major syntax cache optimizations]
7072
7073         syntax.c (lookup_syntax_properties): Default off.
7074
7075         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7076         * syntax.c (update_syntax_cache):
7077         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7078
7079         [Minor syntax cache optimizations and code clarifications]
7080
7081         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7082         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7083         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7084         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7085         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7086         (Code clarification.)
7087
7088         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7089         scan_lists): Compute code from syncode, use Boolean macros instead
7090         of redundant masking operations.  (Code clarification; any decent
7091         compiler can do this optimization.)
7092
7093         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7094         for clarity.
7095
7096         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7097         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7098         use F*_single_property_change instead of F*_extent_change.
7099         Currently F*_single_property_change is _much_ less efficient.
7100
7101         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7102         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7103         syntax_cache.object properly, don't leave Qt or Qnil.
7104         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7105         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7106         tests for Qt or Qnil.
7107
7108 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7109
7110         * redisplay.c (point_in_line_start_cache): 
7111         * extents.c (print_extent_1):
7112         Fix warnings.
7113
7114         * extents.c (Fset_extent_property): Document `syntax-table' property.
7115
7116         * extents.h (Fnext_single_property_change): EXFUN it.
7117
7118 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7119
7120         * search.c (clear_unused_search_regs): New static function.
7121         (search_buffer): 
7122         (simple_search): 
7123         (boyer_moore):
7124         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7125         Minor clarifications in comments.
7126
7127         * regex.c (re_match_2_internal): Ensure no stale submatches.
7128
7129 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7130
7131         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7132
7133 2002-08-29  Jerry James  <james@xemacs.org>
7134
7135         * lisp.h: structrures -> structures.
7136
7137 2002-06-03  Andy Piper  <andy@xemacs.org>
7138
7139         * frame.c (frame_conversion_internal): add conversion appropriate
7140         for setting frame dimensions in pixels.
7141
7142         * console.h (struct console_methods): add device-specific widget
7143         layout functions.
7144
7145         * emacs.c (main_1): initialize glyph vars.
7146
7147         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7148         (handle_focus_event_2): new function. Allow focus to
7149         be set to a particular window and widget.
7150         (enqueue_focus_event): new function. Create a
7151         synthetic focus event.
7152         (emacs_Xt_handle_magic_event): call
7153         handle_focus_event_2.
7154
7155         * frame.c (Fset_frame_pixel_height): new function. Allow
7156         pixel-based sizing. Does the right thing on character-oriented
7157         displays.
7158         (Fset_frame_pixel_width): ditto.
7159         (Fset_frame_pixel_size): ditto.
7160         (syms_of_frame): declare.
7161
7162         * general-slots.h: add :vertically-justify and
7163         :horizontally-justify.
7164
7165         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7166         (mswindows_widget_border_width): new function.
7167         (mswindows_combo_box_instantiate): set border widths.
7168         (console_type_create_glyphs_mswindows): declare.
7169
7170         * glyphs-widget.c:
7171         (check_valid_justification): allow vertical and horizontal
7172         justification.
7173         (widget_border_width): new function. Call device methods.
7174         (widget_instance_border_width): ditto.
7175         (logical_unit_height): new function. Determine the height of a
7176         logical-unit. Logical units are intended to provide grid-like
7177         layout for subcontrols in a layout. If the layout is
7178         :vertically-justify top then subcontrols will be positioned on
7179         logical-unit boundaries, thus allowing adjacent subcontrols to
7180         line up.
7181         (widget_logical_unit_height): ditto for widgets.
7182         (redisplay_widget): misc cleanup.
7183         (widget_spacing): new function. Call device specific
7184         methods. Intended to be the default gap between adjacent widgets.
7185         (widget_query_geometry): use new spacing functions to determine
7186         appropriate geometry.
7187         (initialize_widget_image_instance): initialize horizontal and
7188         vertical justification.
7189         (widget_instantiate): use logica-units where appropriate for
7190         sizing large widgets.
7191         (button_query_geometry): use widget_instance_border_width.
7192         (tree_view_query_geometry): ditto.
7193         (tab_control_query_geometry): ditto.
7194         (edit_field_query_geometry): new function.
7195         (layout_update): pick up :justify, :horizontally-justify and
7196         :vertically-justify none of which worked previously. :justify is
7197         used as a fallback for both horizontal and vertical justification.
7198         (layout_query_geometry): use logical units to size appropriately.
7199         (layout_layout): ditto.
7200         (Fwidget_logical_to_character_width): new function. Allow users to
7201         convert from logical units to characters so that frame sizes can
7202         be set appropriately.
7203         (Fwidget_logical_to_character_height): ditto.
7204         (syms_of_glyphs_widget): declare.
7205         (image_instantiator_edit_fields): add edit_field_query_geometry.
7206         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7207         :horizontally-justify.
7208         (specifier_vars_of_glyphs_widget): new function. Declare
7209         Vwidget_border_width which is not yet used.
7210
7211         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7212         (x_widget_border_width): new function.
7213         (x_widget_instantiate): create a sensible name for widgets.
7214         (console_type_create_glyphs_x): declare x_widget_border_width.
7215
7216         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7217         (struct Lisp_Image_Instance): add :vertically-justify and
7218         :horizontally-justify.
7219         (LAYOUT_JUSTIFY_TOP): new.
7220         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7221         (ROUND_UP): new macro. Round argument up to next integral
7222         interval.
7223
7224         * redisplay-output.c (redisplay_output_layout): misc formatting.
7225
7226         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7227
7228 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7229
7230         * XEmacs 21.4.9 "Informed Management" is released.
7231
7232 2002-08-19  Andy Piper  <andy@xemacs.org>
7233
7234         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7235         win32 format.
7236
7237         * realpath.c (xrealpath): normalize drive spec also so that dir
7238         sep chars are not mixed on cygwin.
7239
7240 2002-08-06  Jerry James  <james@xemacs.org>
7241
7242         * window.c (Fsplit_window): Count only half of the divider width
7243         against the left window when splitting horizontally. 
7244
7245 2002-06-24  Andy Piper  <andy@xemacs.org>
7246
7247         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7248         toolbar was cleared.
7249
7250         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7251         function. Split out from mswindows_output_frame_toolbars.
7252         (mswindows_output_frame_toolbars): move clear pieces to
7253         mswindows_output_frame_toolbars.
7254
7255         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7256         out from gtk_output_frame_toolbars.
7257         (gtk_output_frame_toolbars): move clear pieces to
7258         gtk_clear_frame_toolbars.
7259
7260         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7261         the frame is cleared. How this ever worked before is a mystery.
7262         (x_output_frame_toolbars): Only output toolbars.
7263         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7264
7265         * gutter.c (update_gutter_geometry):
7266         Mark frame layout changed.
7267         (update_frame_gutter_geometry, update_frame_gutters):
7268         Respect frame_layout_changed.
7269
7270         * console.h (struct console_methods): add
7271         clear_frame_toolbars_method.
7272
7273         * redisplay.c (redisplay_frame): call
7274         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7275
7276         * toolbar.h: declare update_frame_toolbars_geometry.
7277
7278         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7279         out from update_frame_toolbars.  Call clear_frame_toolbars.
7280         (update_frame_toolbars): only output, do not change geometry.
7281
7282         * redisplay.c: add frame_layout_changed.
7283
7284         * redisplay.h: add frame_layout_changed.
7285         (CLASS_RESET_CHANGED_FLAGS): set it.
7286         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7287         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7288         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7289
7290         * device.h (struct device): add frame_layout_changed.
7291         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7292
7293         * frame.h (struct frame): add frame_layout_changed.
7294         (MARK_FRAME_LAYOUT_CHANGED): new.
7295
7296 2002-06-30  Mike Alexander  <mta@arbortext.com>
7297
7298         * event-msw.c (mswindows_need_event): Don't wait for a new message
7299         if the queue is not empty.  Suggested by Paul Moore.
7300
7301 2002-06-12  Andy Piper  <andy@xemacs.org>
7302
7303         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7304         for printing on accurately.
7305
7306 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7307
7308         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7309         WM_ACTIVATE message. Make sure that the frame is visible if the
7310         window is visible. This seemss to fix the problem where XEmacs
7311         appears to freeze after switching desktops with certain virtual
7312         window managers.
7313         (debug_output_mswin_message): Added code to output message
7314         parameters for WM_WINDOWPOSCHANGED, 
7315         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7316
7317 2002-05-25  Andy Piper  <andy@xemacs.org>
7318
7319         * select-x.c (vars_of_select_x): Fix docstring of
7320         x-selection-strict-motif-ownership
7321
7322 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7323
7324         * keymap.c (get_keymap):
7325         Add comment about do_autoload GCPROs own args.
7326
7327 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7328
7329         * bytecode.c (execute_optimized_program): check_opcode ifdef
7330         ERROR_CHECK_BYTE_CODE.
7331
7332 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7333
7334         Thanks to Ben Wing and Michael Sperber.
7335
7336         * eval.c (Fcommand_execute):
7337         (Feval):
7338         (Ffuncall):
7339         (Fmacroexpand_internal):
7340         (function_argcount):
7341         callint.c (Fcall_interactively):
7342         Add comment about do_autoload GCPROs own args.
7343
7344         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7345
7346         * eval.c (Ffuncall): Extra braces to placate GCC.
7347
7348 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7349
7350         * backtrace.h (grow_specpdl):
7351         (SPECPDL_RESERVE):
7352         * EmacsFrame.c (EmacsFrameSetValues):
7353         * eval.c (grow_specpdl):
7354         * ExternalShell.c (hack_event_masks_1):
7355         * glyphs-x.c (convert_EImage_to_XImage): 
7356         (x_finalize_image_instance):
7357         * ralloc.c (page_size):
7358         (r_alloc_sbrk):
7359         * xgccache.c (gc_cache_hash):
7360         Fix unsigned comparison warnings.
7361
7362 2002-07-29  Jerry James  <james@xemacs.org>
7363
7364         * lread.c (locate_file): Any nonnegative return value indicates
7365         success if MODE is nonnegative.
7366
7367 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7368
7369         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7370         argument. 
7371
7372 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7373
7374         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7375
7376         * dumper.c (pdump_get_indirect_count):
7377         (pdump_scan_by_alignment):
7378         (pdump_dump_root_struct_ptrs):
7379         (pdump_dump_rtables):
7380         (pdump_dump_root_objects):
7381         (pdump):
7382         * nas.c (WaveOpenDataForReading):
7383         * fns.c (print_bit_vector):
7384         * font-lock.c (SINGLE_SYNTAX_STYLE):
7385         * glyphs.c (check_for_ignored_expose):
7386         (find_matching_subwindow):
7387         * glyphs-eimage.c:
7388         * imgproc.c (get_histogram):
7389         * redisplay.c (point_in_line_start_cache):
7390         * redisplay-output.c (redisplay_unmap_subwindows):
7391         * symbols.c (defsymbol_massage_name_1):
7392         (defkeyword_massage_name):
7393         (deferror_massage_name_and_message):
7394         * redisplay-x.c (x_output_string): 
7395         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7396         * frame.h (struct frame):
7397         * filelock.c (current_lock_owner):
7398         * doprnt.c (emacs_doprnt_1):
7399         * lisp.h (struct Lisp_Bit_Vector):
7400         (DO_REALLOC):
7401         Fix warnings.
7402
7403 2002-02-13  Ben Wing  <ben@xemacs.org>
7404
7405         * event-stream.c (reset_key_echo):
7406         * event-stream.c (reset_this_command_keys):
7407         * event-stream.c (execute_command_event):
7408         If console is dead as a result of C-x 5 0, then post-command stuff
7409         needs to be careful and do only non-console-specific stuff.
7410
7411 2002-07-01  Mike Sperber <mike@xemacs.org>
7412
7413         * process-unix.c (unix_send_process): Mark coding_outstream as
7414         non-open upon SIGPIPE.
7415
7416         * event-stream.c (Fnext_event): Reorder switch cases to something
7417         that makes sense.
7418
7419 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7420
7421         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7422         Don't bogusly reinitialize ascii_character property.
7423
7424 2002-07-08  Mike Sperber <mike@xemacs.org>
7425
7426         * process.c (Fstart_process_internal): Do error checking before we
7427         fork off the child, so the child can't muck with the state of the
7428         parent.
7429
7430 2002-07-08  Mike Sperber <mike@xemacs.org>
7431
7432         * ralloc.c (init_ralloc): Allocate properly for pdump.
7433
7434 2002-06-12  Andy Piper  <andy@xemacs.org>
7435
7436         * glyphs.c (query_string_geometry): check the string.
7437
7438         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7439         widget names.
7440
7441 2002-06-17  Jerry James  <james@xemacs.org>
7442
7443         * sysdll.c: Remove RTLD_GLOBAL initialization.
7444         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7445
7446 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7447
7448         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7449
7450 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7451
7452         * sysdep.c (sys_rename): Make sys_rename work for the case where
7453         Windows rename sets errno to EACCES if target file exists.
7454
7455 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7456
7457         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7458         Fix detection of metric units to work on Win95
7459
7460 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7461
7462         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7463
7464 2002-04-25  Andy Piper  <andy@xemacs.org>
7465
7466         * redisplay.c (create_text_block): Remove extra comment trailer.
7467
7468 2002-04-24  Andy Piper  <andy@xemacs.org>
7469
7470         * redisplay.c (create_text_block): Don't actually add propagation
7471         data if the line ends after we have added a glyph.
7472
7473 2002-04-22  Andy Piper  <andy@xemacs.org>
7474
7475         * extents.c (extent_fragment_update): check for glyphs we have
7476         previously displayed.
7477         * extents.c (print_extent_1): warning removal.
7478         * extents.h: change prototype.
7479         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7480         widths correctly for wide glyphs.
7481         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7482         * redisplay.c (prop_type): add PROP_GLYPH.
7483         * redisplay.c (struct prop_block): add glyph type
7484         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7485         to the propagation data.
7486         * redisplay.c (create_text_block): if there is a glyph in the
7487         propagation data use it to salt extent_fragment_update.
7488         * redisplay.c (create_string_text_block): ditto.
7489
7490 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7491
7492         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7493         * redisplay-output.c (compare_runes): Compare them.
7494         * redisplay.c: Update copyright date.
7495         * redisplay.c (pos_data): Add need_baseline_computation field.
7496         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7497         need_baseline_computation; zero yoffset. Set max_pixmap_height
7498         for all pixmaps, not just automatically positioned ones.
7499         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7500         * redisplay.c (calculate_baseline): New, compute textual baseline.
7501         * redisplay.c (add_glyph_rune): Call them.
7502         * redisplay.c (create_text_block): Likewise.
7503         * redisplay.c (create_overlay_glyph_block): Likewise.
7504         * redisplay.c (add_margin_runes): Likewise.
7505         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7506
7507         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7508         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7509         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7510         * redisplay-msw.c (mswindows_output_string): Likewise.
7511         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7512         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7513         * redisplay-x.c (x_output_display_block): Likewise.
7514
7515 2002-03-28  Ben Wing  <ben@xemacs.org>
7516
7517         * redisplay.c: Fixed bug in redisplay
7518         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7519         and down of the lines, since they're bigger than the line
7520         size. (It was seen most obviously when there's a horizontal scroll
7521         bar, e.g. do C-h a glyph or something like that.) The problem was
7522         that the glyph-contrib-p setting on glyphs was ignored even if it
7523         was set properly, which it wasn't until now.
7524
7525 2002-04-24  Andy Piper  <andy@xemacs.org>
7526
7527         * lisp.h (Dynarr_end): Fix definition.
7528
7529 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7530
7531         * redisplay.c (mark_redisplay): Remove call to
7532         update_frame_window_mirror.
7533
7534 2001-11-15  Andy Piper  <andy@xemacs.org>
7535
7536         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7537         cygwin (again).
7538
7539 2002-02-13  Andy Piper  <andy@xemacs.org>
7540
7541         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7542         we did in fact enqueue the XM_MAPFRAME event.
7543
7544 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7545
7546         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7547         to fix problem switching between virtual desktops under virtuawin
7548         virtual window manager.
7549
7550 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7551
7552         * event-msw.c: Typo fix.
7553         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7554         magic XM_MAPFRAME event has been sent.
7555
7556 2001-11-23  Andy Piper  <andy@xemacs.org>
7557
7558         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7559
7560 2001-11-21  Andy Piper  <andy@xemacs.org>
7561
7562         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7563         mouse events outside the frame.
7564
7565 2002-03-20  Andy Piper  <andy@xemacs.org>
7566
7567         * menubar-msw.c (mswindows_popup_menu): warning removal.
7568         * dialog-msw.c (dialog_popped_down): ditto.
7569
7570 2001-12-11  Andy Piper  <andy@xemacs.org>
7571
7572         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7573         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7574         popup_up_p.
7575         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7576         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7577         * menubar-msw.c (mswindows_popup_menu): ditto.
7578
7579 2001-10-29  Andy Piper  <andy@xemacs.org>
7580
7581         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7582         cancels.
7583
7584 2002-01-03  Andy Piper  <andy@xemacs.org>
7585
7586         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7587         letters.
7588         (xrealpath): ditto.
7589
7590 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7591
7592         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7593         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7594         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7595         Detect and handle case where machine is set up for metric units
7596
7597 2002-04-02  Andy Piper  <andy@xemacs.org>
7598
7599         * dired-msw.c (mswindows_get_files): 
7600         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7601         completely handled by XEmacs. Suggested by Thomas Vogler
7602         <mail@thomas-vogler.de>.
7603
7604 2001-11-14  Andy Piper  <andy@xemacs.org>
7605
7606         * nt.c (REG_ROOT): change registry key to XEmacs.
7607
7608 2002-04-27  Andy Piper  <andy@xemacs.org>
7609
7610         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7611
7612 2002-04-26  Andy Piper  <andy@xemacs.org>
7613
7614         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7615         behavior.
7616
7617 2002-03-14  Mike Alexander  <mta@arbortext.com>
7618
7619         * event-msw.c (mswindows_unwait_process): New, remove process from
7620         wait list
7621         * process-nt.c (nt_finalize_process_data): Call
7622         mswindows_unwait_process
7623         * console-msw.h: Declare mswindows_unwait_process
7624
7625 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7626
7627         * editfns.c (Fdecode_time):
7628         (Fformat_time_string):
7629         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7630         (make_time): Warning elimination (change arg name).
7631
7632 2001-11-24  Andy Piper  <andy@xemacs.org>
7633
7634         * window.c (Fsplit_window): Doc return type.
7635
7636 2002-04-01  Andy Piper  <andy@xemacs.org>
7637
7638         * emacs.c (Fkill_emacs): Only output message box in interactive
7639         mode.
7640
7641 2002-04-26  Andy Piper  <andy@xemacs.org>
7642  
7643         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7644         cygwin.
7645
7646 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7647
7648         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7649         bit platform.
7650
7651 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7652
7653         * XEmacs 21.4.8 "Honest Recruiter" is released.
7654
7655 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7656
7657         Supersedes 2002-04-17 patch.
7658
7659         * process.h (PROCESS_LIVE_P): Use the process status as
7660         evidence of health, not the state of the input stream.
7661         (PROCESS_READABLE_P): Say if the process is readable
7662         from. (It may be dead nonetheless.)
7663         (CHECK_READABLE_PROCESS): Test for that condition.
7664
7665         * process.c (create_process): Use PROCESS_READABLE_P.
7666         (read_process_output, set_process_filter): Likewise.
7667
7668         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7669         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7670
7671         This code is #if 0'd, this is not the time to add new functions:
7672
7673         * process.c (Fprocess_readable_p): Report readability status.
7674         * process.c (Qprocess_readable_p): New, associated symbol...
7675         * process.c (syms_of_process): ... initialize it.
7676
7677 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7678
7679         * XEmacs 21.4.7 "Economic Science" is released.
7680
7681 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7682
7683         * process.h (PROCESS_LIVE_P): Use the process status as
7684         evidence of health, not the state of the input stream.
7685
7686 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7687
7688         * sysdep.c (sys_siglist): change "signum" to "signal"
7689
7690 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7691
7692         * s/darwin.h: New file.
7693         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7694         
7695 2002-04-23  Andreas Jaeger  <aj@suse.de>
7696
7697         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7698         which use lib64 for 64-bit libs.
7699         (START_FILES): Likewise.
7700
7701 2002-02-11  Mike Sperber  <mike@xemacs.org>
7702
7703         * device-x.c: 
7704         (x_IO_error_handler):
7705         (x_init_device): Temporarily keep device in static variable
7706         `device_being_initialized' so we can recover gracefully from
7707         internal XOpenDevice failure.  (XOpenDevice is documented to
7708         return NULL on failure, but sometimes calls the IO error handler
7709         instead.)
7710
7711 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7712
7713         * dired.c (Ffile_name_all_completions): Change documentation --
7714         remove reference to completion-ignored-extensions.
7715         * dired.c (vars_of_dired): Change documentation for
7716         completion-ignored-extensions -- remove reference to
7717         file-name-all-completions.
7718
7719 2002-03-06  Jerry James  <james@xemacs.org>
7720
7721         * emodules.c (emodules_load): Fix multiple loading of same module.
7722
7723 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7724         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7725         RTLD_LAZY to avoid incorrect symbol binding when using nested
7726         shared libraries on Solaris.
7727
7728 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7729
7730         * fileio.c (Ffind_file_name_handler): Improve docstring.
7731
7732 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7733
7734         * fns.c (Fmapconcat): Improve docstring.
7735
7736 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7737
7738         * device-gtk.c: Add prototype for
7739         emacs_gtk_selection_clear_event_handle.
7740         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7741         selection.  Setup signal handler for "selection_clear_event"
7742         (emacs_gtk_selection_clear_event_handle).
7743
7744         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7745         other applications owning the clipboard (based on
7746         x_handle_selection_clear).
7747
7748 2001-12-23  William M. Perry  <wmperry@gnu.org>
7749
7750         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7751         
7752 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7753
7754         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7755
7756 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7757
7758         * XEmacs 21.4.6 "Common Lisp" is released.
7759
7760 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7761
7762         * search.c (Freplace_match): Add missing sub-expression functionality.
7763
7764         * buffer.c (decode_buffer): Add a check for pointer type to
7765         decode_buffer, before gcc's CSE optimization reorders a
7766         dereference in front of the allow_string test.
7767
7768 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7769
7770         * window.c (window_loop): Fix bug that sometimes prevented
7771         window_loop() from iterating across multiple devices.  Also, at
7772         Ben's request, changed infloop-detecting code to abort() instead
7773         of silently terminating window_loop().
7774
7775 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7776
7777         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7778         * editfns.c (make_time): New function.
7779         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7780         * lisp.h (make_time): Prototype and comment it.
7781         * dired.c (wasteful_word_to_lisp): Deprecate.
7782         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7783
7784 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7785
7786         * fileio.c (auto_save_1): Use current coding system, not
7787         escape-quoted.
7788
7789 2001-11-13  Ben Wing  <ben@xemacs.org>
7790
7791         * window.c:
7792         * window.c (window_truncation_on):
7793         * window.c (syms_of_window):
7794         truncate-partial-width-windows should respect the buffer being
7795         displayed, like other redisplay vars.
7796
7797 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7798
7799         * event-stream.c (Fread_key_sequence): save current buffer.
7800
7801 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7802
7803         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7804
7805 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7806
7807         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7808
7809 2001-10-26  Mike Alexander  <mta@arbortext.com>
7810
7811         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7812
7813 2001-10-25  Andy Piper  <andy@xemacs.org>
7814
7815         * ChangeLog:
7816         * dialog-msw.c (handle_directory_proc): new function.
7817          (handle_directory_dialog_box): new fucntion.
7818          (handle_file_dialog_box): use new directory dialog support.
7819          (mswindows_make_dialog_box_internal): ditto.
7820         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7821         handling.
7822         (mswindows_find_frame): make global.
7823         * fileio.c (Fexpand_file_name): build fix.
7824         * general-slots.h: add Qdirectory.
7825         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7826         handling.
7827         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7828         cygwin not leaving win32 paths unchanged.
7829         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7830         cygwin runtime to do path conversion.
7831         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7832         (syms_of_win32): add new function.
7833         * window.c (window_loop): build fix.
7834
7835 2001-10-15  Andy Piper  <andy@xemacs.org>
7836
7837         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7838
7839 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7840
7841         * XEmacs 21.4.5 "Civil Service" is released.
7842
7843 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7844
7845         * glyphs-x.c: Force buffer-tab highlight update when moving the
7846         buffer, avoiding an ugly black border, used for keyboard focus
7847         indication, on a widget that can never have keyboard focus, the
7848         buffer tab.
7849
7850 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7851
7852         * process-unix.c (unix_open_multicast_group): Remove too much
7853         conversion between host and network byte order.
7854
7855 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7856
7857         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7858         before replacing them.
7859
7860         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7861         operation.
7862
7863         * src/window.c (undedicate_windows): Use it.
7864         * src/window.h: Add prototype.
7865
7866 2001-09-17  Ben Wing  <ben@xemacs.org>
7867
7868         * fileio.c (normalize_filename):
7869         * fileio.c (Fexpand_file_name):
7870         Fix various C++ compile errors in Andy's recent code.
7871         
7872         * callint.c (Fcall_interactively):
7873         * editfns.c (Ftemp_directory):
7874         * editfns.c (Fuser_full_name):
7875         * emacs.c (argmatch):
7876         * lread.c (locate_file_map_suffixes):
7877         * redisplay-x.c (x_ring_bell):
7878         Fix sign-compare warnings.
7879         
7880 2001-09-08  Andy Piper  <andy@xemacs.org>
7881
7882         * fileio.c (normalize_filename): copied from nt.c
7883         * (Ffile_name_directory): enable win32 paths under cygwin.
7884         * (Ffile_name_nondirectory): ditto.
7885         * (directory_file_name): ditto.
7886         * (Fexpand_file_name): ditto.
7887         * (Ffile_truename): ditto.
7888         * (Fsubstitute_in_file_name): ditto.
7889         * (Ffile_name_absolute_p): ditto.
7890         * (Ffile_readable_p): ditto.
7891
7892 2001-09-08  Andy Piper  <andy@xemacs.org>
7893
7894         * device-msw.c (mswindows_finish_init_device): remove dde
7895         initialization.
7896         * device-msw.c (mswindows_init_dde): factor out from
7897         mswindows_finish_init_device()
7898         * device-msw.c (init_mswindows_very_early): new function
7899         initialize but don't enable dde.
7900         * emacs.c (main_1): call init_mswindows_very_early.
7901         * event-msw.c:
7902         * event-msw.c (mswindows_dde_callback): only execute when we are
7903         ready.
7904         * symsinit.h: declare init_mswindows_very_early.
7905
7906 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7907
7908         [sjt: This has been in 21.5 for months with no complaints.]
7909
7910         * console.h (struct console_methods): Added flags member.
7911         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7912         (CONMETH_IMPL_FLAG):
7913         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7914         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7915
7916         * device.c (window_system_pixelated_geometry): Use the above macros.
7917
7918         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7919         implememntation flag.
7920         * device.h (DEVICE_DISPLAY_P): Use it.
7921
7922         * frame.c (delete_frame_internal): Use the above macro.
7923
7924         * redisplay.c (redisplay_device): Use it.
7925         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7926         (redisplay_frame): Ditto.
7927
7928         * device-msw.c (mswindows_device_implementation_flags): Removed.
7929         (msprinter_device_implementation_flags): Removed.
7930         (console_type_create_device_mswindows): Removed references to
7931         implementation_flags methods, set implementation flags here.
7932         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7933
7934         * device-gtk.c (gtk_device_implementation_flags): Removed method.
7935         (console_type_create_device_gtk): Removed method declaration.
7936         Added commented out statement which semantically matches the
7937         commented out statement in the above removed method.
7938
7939 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
7940
7941         The attached patch fixes a few warnings. 
7942
7943         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7944         * src/frame-gtk.c: guard against GNOME calls in GTK only
7945         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7946         * src/select-gtk.c: prototype lisp_to_time
7947
7948 2001-06-08  Ben Wing  <ben@xemacs.org>
7949
7950         ------ gc-in-window-procedure fixes ------
7951         
7952         * alloc.c:
7953         * alloc.c (struct post_gc_action):
7954         * alloc.c (register_post_gc_action):
7955         * alloc.c (run_post_gc_actions):
7956         * alloc.c (garbage_collect_1):
7957         Create "post-gc actions", to avoid those dreaded "GC during window
7958         procedure" problems.
7959
7960         * event-msw.c:
7961         Abort, clean and simple, when GC in window procedure.  We want
7962         to flush these puppies out.
7963
7964         * glyphs-msw.c:
7965         * glyphs-msw.c (finalize_destroy_window):
7966         * glyphs-msw.c (mswindows_finalize_image_instance):
7967         Use a post-gc action when destroying subwindows.
7968
7969         * lisp.h:
7970         Declare register_post_gc_action().
7971
7972         * scrollbar-msw.c:
7973         * scrollbar-msw.c (unshow_that_mofo):
7974         Use a post-gc action when unshowing scrollbar windows, if in gc.
7975
7976         * redisplay.c (mark_redisplay):
7977         Add comment about the utter evilness of what's going down here.
7978
7979         ------ cygwin setitimer fixes ------
7980         
7981         * Makefile.in.in (sheap_objs):
7982         * Makefile.in.in (profile_objs):
7983         * Makefile.in.in (objs):
7984         Compile profile.c only when HAVE_SETITIMER.
7985         
7986         * nt.c (mswindows_sigset):
7987         * nt.c (mswindows_sighold):
7988         * nt.c (mswindows_sigrelse):
7989         * nt.c (mswindows_sigpause):
7990         * nt.c (mswindows_raise):
7991         * nt.c (close_file_data):
7992         Style fixes.
7993         
7994         * nt.c:
7995         Move setitimer() emulation to win32.c, because Cygwin needs it too.
7996         
7997         * profile.c:
7998         * profile.c (Fstart_profiling):
7999         * profile.c (Fstop_profiling):
8000         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8001         instead of just plain setitimer().
8002         
8003         * signal.c:
8004         * signal.c (set_one_shot_timer):
8005         * signal.c (alarm):
8006         Define qxe_setitimer() as an encapsulation around setitimer() --
8007         call setitimer() directly unless Cygwin or MS Win, in which case
8008         we use our simulated version in win32.c.
8009         
8010         * systime.h:
8011         * systime.h (struct itimerval):
8012         * systime.h (ITIMER_REAL):
8013         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8014         comment about "qxe" and the policy regarding encapsulation.
8015
8016         * win32.c:
8017         * win32.c (setitimer_helper_proc):
8018         * win32.c (setitimer_helper_period):
8019         * win32.c (setitimer_helper):
8020         * win32.c (mswindows_setitimer):
8021         Move setitimer() emulation here, so Cygwin can use it.
8022         Rename a couple of functions and variables to be longer and more
8023         descriptive.  In setitimer_helper_proc(), send the signal
8024         using either mswindows_raise() or (on Cygwin) kill().  If for
8025         some reason we are still getting lockups, we'll change the kill()
8026         to directly invoke the signal handlers.
8027
8028         ------ windows shell fixes ------
8029         
8030         * callproc.c:
8031         * ntproc.c:
8032         Comments about how these two files must die.
8033
8034         * callproc.c (init_callproc):
8035         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8036         not just COMSPEC. (more correct and closer to FSF.) Don't
8037         force a value for SHELL into the environment. (Comments added
8038         to explain why not.)
8039         
8040         * nt.c (init_user_info):
8041         Don't shove a fabricated SHELL into the environment.  See above.
8042
8043 2001-06-01  Ben Wing  <ben@xemacs.org>
8044
8045         * Makefile.in.in (ldflags):
8046         eliminate that pesky "defaulting to 00401000" warning.
8047         * nt.h:
8048         eliminate warnings.
8049
8050 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8051
8052         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8053         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8054
8055 2001-04-24  Jerry James <james@xemacs.org>
8056
8057         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8058         correct order.
8059
8060 2001-06-01  Ben Wing  <ben@xemacs.org>
8061
8062         * event-msw.c (debug_mswin_messages):
8063         conditionalize the messages that were causing compile errors.
8064         (if only macros could generate #ifdef statements ...)
8065
8066 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8067
8068         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8069
8070 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8071
8072         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8073
8074 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8075
8076         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8077         * process-unix.c (unix_canonicalize_host_name):
8078         sysdep.c (init_system_name):
8079         Use it to conditionally support IPv6 canonicalization.
8080
8081 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8082
8083         * event-msw.c:
8084         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8085
8086 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8087
8088         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8089         attempt is made to scroll when no scroll bar is available.
8090
8091 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8092
8093         * input-method-motif.c (XIM_delete_frame): New callback.
8094         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8095         got deleted from 21.4.3.)
8096
8097 2001-06-01  Ben Wing  <ben@xemacs.org>
8098
8099         * nt.c (mswindows_utime):
8100         * nt.c (close_file_data):
8101         fix off-by-one-indirection error.
8102
8103 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8104
8105         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8106         because set_file_times() now takes Lisp_Object path, instead of
8107         char*.
8108         * nt.c: Include buffer.h.
8109         * nt.c (convert_from_time_t): New.
8110         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8111         not set mtime correctly.
8112         * nt.h: Declare mswindows_utime().
8113         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8114         path, instead of char*.
8115         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8116
8117 2001-05-30  Ben Wing  <ben@xemacs.org>
8118
8119         For 21.4:
8120
8121         (Stephen, just take all event-msw.c patches.  This includes
8122         the "iconify" fix below.)
8123
8124         * event-msw.c:
8125         * event-msw.c (mswindows_dequeue_dispatch_event):
8126         * event-msw.c (assert):
8127         * event-msw.c (emacs_mswindows_quit_p):
8128         * event-msw.c (debug_mswin_messages):
8129         * event-msw.c (debug_output_mswin_message):
8130         * event-msw.c (vars_of_event_mswindows):
8131         Fix yet more problems with C-g handling.
8132         Implement debug-mswindows-events.
8133         
8134 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8135
8136         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8137         
8138 2001-05-23  Ben Wing  <ben@xemacs.org>
8139
8140         * event-msw.c (winsock_writer):
8141         * event-msw.c (winsock_closer):
8142         prior kludgy code was clobbering the buffer, thinking it was
8143         "unused" space to store an unneeded return value; instead, use
8144         the variable we've already got staring us in the face.
8145
8146 2001-05-17  Andy Piper  <andy@xemacs.org>
8147
8148         * sysfile.h: don't assume that file attributes are boolean
8149
8150 2001-05-23  Ben Wing  <ben@xemacs.org>
8151
8152         * device-msw.c (msprinter_init_device):
8153         signal an error rather than crash with an unavailable network
8154         printer (from Mike Alexander).
8155         
8156         * event-msw.c:
8157         * event-msw.c (struct winsock_stream):
8158         * event-msw.c (winsock_writer):
8159         * event-msw.c (winsock_closer):
8160         * event-msw.c (make_winsock_stream_1):
8161         cleanup headers.  fix (hopefully) an error with data corruption
8162         when sending to a network connection.
8163
8164         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8165         to handle the ~user prefix by (a) always assuming we're referencing
8166         ourselves and not even verifying the user -- hence any file with
8167         a tilde as its first char is invalid! (b) if there wasn't a slash
8168         following the filename, the pointer was set *past* the end of
8169         file and we started reading from uninitialized memory.  Now we
8170         simply treat these as files, always.
8171
8172         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8173         
8174 2001-05-19  Ben Wing  <ben@xemacs.org>
8175
8176         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8177
8178         * process-nt.c:
8179         * process-nt.c (vars_of_process_nt):
8180         remove unused mswindows-quote-process-args.  rec for 21.4.
8181         
8182 2001-05-12  Ben Wing  <ben@xemacs.org>
8183
8184         * event-msw.c (mswindows_dde_callback):
8185         * event-msw.c (mswindows_wnd_proc):
8186         eliminate cygwin warnings.
8187
8188 2001-05-06  Ben Wing  <ben@xemacs.org>
8189
8190         * console-msw.h:
8191         * device-msw.c:
8192         * device-msw.c (print_dialog_worker):
8193         * device-msw.c (mswindows_handle_print_dialog_box):
8194         * device-msw.c (syms_of_device_mswindows):
8195         * dialog-msw.c (mswindows_make_dialog_box_internal):
8196         * general-slots.h:
8197         implement printing the selection when it's selected.
8198
8199 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8200
8201         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8202
8203 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8204
8205         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8206         EMACS_INT is signed.
8207
8208 2001-04-15  Michael Lausch  <mla@1012surf.net>
8209
8210         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8211         gtk_widget_request_size() to give scrollbar >0 width for
8212         GTK >1.2.8.
8213
8214 2001-05-30  William M. Perry  <wmperry@gnu.org>
8215
8216         * event-gtk.c: Check for buttons as modifier keys.
8217
8218 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8219
8220         * s\mingw32.h:
8221         Properly find MinGW's <process.h> inside Cygwin's restructured
8222         include directories.  Don't try to include <cygwin/version.h>
8223         since we are dropping support for MinGW in versions of Cygwin
8224         earlier than b21.
8225         * nt.c:
8226         Drop support for MinGW in versions of Cygwin before b21.
8227         * sysdep.c:
8228         Properly find MinGW's <process.h> inside Cygwin's restructured
8229         include directories.
8230         * syswindows.h:
8231         Drop support for MinGW in versions of Cygwin before b21.
8232         * unexcw.c:
8233         Even though a.out.h is no longer detected by configure, allow
8234         MinGW to use it until we figure out how to do the job with Win32.
8235
8236 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8237
8238         * syntax.c (find_start_of_comment):
8239         Fix `unbalanced parentheses' bug when dealing with mixed comment
8240         styles in c++/java/etc. mode
8241
8242 2001-05-29  Mike Alexander  <mta@arbortext.com>
8243
8244         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8245         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8246
8247 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8248
8249         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8250
8251 2001-03-31  Mike Sperber <mike@xemacs.org>
8252
8253         * search.c (Freplace_match): Support FSF-style specification of
8254         match subexpression when applied to a buffer.
8255
8256 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8257
8258         * event-stream.c (is_scrollbar_event): add missing semicolon
8259
8260 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8261
8262         * Makefile.in.in: Use TAR macro instead of hardcoding
8263           tar.  Allows use of GNU tar instead of system tar
8264
8265 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8266
8267         * event-stream.c (is_scrollbar_event): add missing semicolon
8268
8269 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8270
8271         * XEmacs 21.4.3 "Academic Rigor" is released.
8272
8273 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8274
8275         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8276
8277 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8278
8279         * buffer.c (Vcase_fold_search): Remove obsolete
8280           comment about non ASCII case-fold-search.  This
8281           bug has been fixed by case-table changes.
8282
8283 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8284
8285         * event-msw.c: Restore include of events-mod.h.
8286
8287 2001-04-22   zhaoway  <zw@debian.org>
8288
8289         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8290         !HAVE_SCROLLBARS.
8291
8292 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8293
8294         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8295
8296 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8297
8298         * mule-charset.c (Fmake_charset): Add missing else.
8299
8300 2001-04-23  Ben Wing  <ben@xemacs.org>
8301
8302         * event-msw.c (FAKE_MOD_QUIT):
8303         * event-msw.c (mswindows_dequeue_dispatch_event):
8304         * event-msw.c (mswindows_wnd_proc):
8305         * event-msw.c (emacs_mswindows_quit_p):
8306         Get critical quit working.
8307
8308 2001-05-05  Ben Wing  <ben@xemacs.org>
8309
8310         * console-msw.h:
8311         * device-msw.c:
8312         * device-msw.c (mswindows_get_default_margin):
8313         * frame-msw.c (mswindows_size_frame_internal):
8314         * frame-msw.c (msprinter_init_frame_1):
8315         * frame-msw.c (vars_of_frame_mswindows):
8316         Change top/bottom margin defaults to 0.5 inches.
8317
8318 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8319
8320         Fix link error with gcc 3.0 on Linux.
8321         * terminfo.c (UP): Remove.
8322         * terminfo.c (BC): Remove.
8323         * terminfo.c (PC): Remove.
8324         They weren't used, and in any case, these symbols should be
8325         defined in the *library*.
8326
8327 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8328
8329         * s/aix4.h: Fix crash with xlc -O3.
8330         Improve comment explaining how -O3 works.
8331
8332 2001-04-15  Ben Wing  <ben@xemacs.org>
8333
8334         * event-stream.c:
8335         * event-stream.c (Fnext_event):
8336         * event-stream.c (is_scrollbar_event):
8337         * event-stream.c (execute_command_event):
8338         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8339         crash' problem.  His fix introduces other problems.  We filter
8340         out scrollbar events specifically, making them somewhat invisible
8341         to command-building, and not appearing in `this-command-keys'.
8342         More work is still needed (see comments in event-stream.c), but
8343         this fixes all the major problems.
8344
8345 2001-04-20  Ben Wing  <ben@xemacs.org>
8346
8347         * .cvsignore: Added stuff for Windows.
8348
8349 2001-04-28  Ben Wing  <ben@xemacs.org>
8350
8351         * buffer.c (Ferase_buffer):
8352         * editfns.c (buffer_insert1):
8353         * editfns.c (Finsert_before_markers):
8354         * editfns.c (Finsert_string):
8355         * editfns.c (Finsert_char):
8356         * editfns.c (Fdelete_region):
8357         * editfns.c (Fwiden):
8358         * editfns.c (Fnarrow_to_region):
8359         remove bogus lines setting zmacs_region_stays to 0.
8360         
8361 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8362
8363         * process-unix.c (unix_open_network_stream): If connect() fails
8364         invalidate file descriptor after closing it.
8365
8366 2001-03-08  Mike Alexander  <mta@arbortext.com>
8367
8368         * event-msw.c (mswindows_need_event_in_modal_loop):
8369         Don't dispatch a message if we didn't get one.
8370         (mswindows_need_event):
8371         Terminate the correct process when one exits instead of the first
8372         one on Vprocess_list and look for process termination when in
8373         mswindows_protect_modal_loop.
8374
8375 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8376
8377         * XEmacs 21.4.1 "Copyleft" is released.
8378
8379 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8380
8381         * input-method-motif.c (XIM_delete_frame): New callback.
8382         (XIM_init_frame): Register it.
8383
8384 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8385
8386         * XEmacs 21.4.0 "Solid Vapor" is released.
8387
8388 2001-04-15  Ben Wing  <ben@xemacs.org>
8389
8390         * cmdloop.c (call_command_loop):
8391         Fix braino in bit-rotting code.
8392         
8393 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8394
8395         * extents.c (Fset_extent_endpoints): Force creation of extent info
8396         in buffer_or_string.
8397
8398         * extents.c (process_extents_for_insertion_mapper): Correctly
8399         check for open-open zero-length extents.
8400
8401 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8402
8403         * lisp.h: New typedefs Memory_count, Element_count.
8404         * regex.c:
8405         * regex.h:
8406         Sign-compare warning elimination: several unsigned -> signed.
8407         Based on work by Ben Wing <ben@xemacs.org>.
8408
8409 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8410
8411         * XEmacs 21.2.47 "Zephir" is released.
8412
8413 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8414
8415         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8416
8417 2001-04-03  Mike Sperber <mike@xemacs.org>
8418
8419         * search.c: Revert previous patch due because of release.
8420
8421 2001-03-30  Ben Wing  <ben@xemacs.org>
8422
8423         * s\cygwin32.h:
8424         Add missing killpg prototype.
8425
8426         * elhash.c:
8427         Add a comment about fixing problems when a new entry is added
8428         while mapping.
8429
8430         * frame-msw.c (mswindows_init_frame_1):
8431         Fix compile warnings.
8432
8433         * menubar.c (vars_of_menubar):
8434         Provide `menu-accelerator-support' to indicate that we properly
8435         support %_ in menu specifications, so that package code can
8436         conditionalize on this (and remove %_ from menu specifications
8437         on older versions).
8438
8439         * event-msw.c:
8440         * scrollbar-msw.c:
8441         * scrollbar-msw.c (can_scroll):
8442         * scrollbar-msw.h:
8443         Fix handling of mouse wheel under Windows to follow standards --
8444         now scrolls window under pointer, not selected window.
8445
8446 2001-03-31  Mike Sperber <mike@xemacs.org>
8447
8448         * search.c (Freplace_match): Support FSF-style specification of
8449         match subexpression when applied to a buffer.
8450
8451 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8452
8453         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8454         function to modify KEYMAP, so map over a copy of the hash table.
8455
8456 2001-03-21  Martin Buchholz <martin@xemacs.org>
8457
8458         * XEmacs 21.2.46 "Urania" is released.
8459
8460 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8461
8462         * realpath.c (xrealpath): Make file-truename work with symlinks to
8463         /cygdrive paths on cygwin. Always lowercase drive-letters on
8464         native windows.
8465         (cygwin_readlink): Don't try to find canonical filename unless
8466         file exists.
8467
8468 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8469
8470         * ChangeLog: Log GTK merge.
8471
8472         * dumper.c:
8473         * select-x.c:
8474         * specifier.c:
8475         * symeval.h:
8476         Revert gratuitous whitespace changes from GTK merge.
8477
8478         * emacs.c: Document end of complex #ifdef @ l. 1495.
8479
8480
8481 2001-03-12  Andy Piper  <andy@xemacs.org>
8482
8483         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8484         have to do likewise.
8485
8486 2001-03-12  Andy Piper  <andy@xemacs.org>
8487
8488         * sysdep.c: we only support mingw now.
8489
8490 2001-03-09  Andy Piper  <andy@xemacs.org>
8491
8492         * unexcw.c (copy_executable_and_dump_data_section): making approx
8493         overrun a warning only.
8494
8495 2001-03-10  William M. Perry  <wmperry@aventail.com>
8496
8497         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8498         satisfy Stephen's identical-after-cpp plea.
8499
8500 2001-03-02  Ben Wing  <ben@xemacs.org>
8501
8502         * cmds.c:
8503         * cmds.c (Fforward_char):
8504         * syntax.c:
8505         * window.c:
8506
8507         Augment documentation of the most common motion commands to make
8508         note of the shifted-motion support.
8509         
8510 2001-03-02  Ben Wing  <ben@xemacs.org>
8511
8512         * nt.c (mswindows_fstat):
8513         * nt.c (mswindows_stat):
8514         * search.c (boyer_moore):
8515         Fix compile warnings under Windows.
8516         
8517         * sysdep.c (sys_readdir):
8518         Fix buggy filename-conversion code under Mule.
8519
8520 2001-03-09  William M. Perry  <wmperry@aventail.com>
8521
8522         * Makefile.in.in:
8523         * config.h.in:
8524         * console.c:
8525         * console.h:
8526         * device.c:
8527         * device.h:
8528         * dragdrop.c:
8529         * emacs.c:
8530         * event-stream.c:
8531         * events.c:
8532         * events.h:
8533         * faces.c:
8534         * frame.h:
8535         * general-slots.h:
8536         * glyphs.c:
8537         * gutter.c:
8538         * inline.c:
8539         * lisp.h:
8540         * lrecord.h:
8541         * make-src-depend:
8542         * redisplay-output.c:
8543         * redisplay.c:
8544         * symsinit.h:
8545         * sysfile.h:
8546         * toolbar.c:
8547         * window.c:
8548         The Great GTK Merge.
8549
8550         * ChangeLog.GTK:
8551         * console-gtk.c:
8552         * console-gtk.h:
8553         * device-gtk.c:
8554         * emacs-marshals.c:
8555         * emacs-widget-accessors.c:
8556         * event-gtk.c:
8557         * frame-gtk.c:
8558         * gccache-gtk.c:
8559         * gccache-gtk.h:
8560         * glade.c:
8561         * glyphs-gtk.c:
8562         * glyphs-gtk.h:
8563         * gtk-glue.c:
8564         * gtk-xemacs.c:
8565         * gtk-xemacs.h:
8566         * gui-gtk.c:
8567         * gui-gtk.h:
8568         * menubar-gtk.c:
8569         * native-gtk-toolbar.c:
8570         * objects-gtk.c:
8571         * objects-gtk.h:
8572         * redisplay-gtk.c:
8573         * scrollbar-gtk.c:
8574         * scrollbar-gtk.h:
8575         * select-gtk.c:
8576         * toolbar-gtk.c:
8577         * ui-byhand.c:
8578         * ui-gtk.c:
8579         * ui-gtk.h:
8580         The Great GTK Merge: new files.
8581
8582 2001-02-26  Ben Wing  <ben@xemacs.org>
8583
8584         Reapplied Lstream change.
8585
8586 2001-02-26  Ben Wing  <ben@xemacs.org>
8587
8588         Undid the last change, since it is more controversial than I
8589         thought.  It should be back in at some point soon.
8590         
8591 2001-02-25  Ben Wing  <ben@xemacs.org>
8592
8593         * buffer.c:
8594         * callproc.c (Fold_call_process_internal):
8595         * event-msw.c (ntpipe_slurp_reader):
8596         * event-msw.c (ntpipe_shove_writer):
8597         * event-msw.c (winsock_reader):
8598         * event-msw.c (winsock_writer):
8599         * file-coding.c:
8600         * file-coding.c (detect_eol_type):
8601         * file-coding.c (detect_coding_type):
8602         * file-coding.c (determine_real_coding_system):
8603         * file-coding.c (Fdetect_coding_region):
8604         * file-coding.c (decoding_reader):
8605         * file-coding.c (decoding_writer):
8606         * file-coding.c (mule_decode):
8607         * file-coding.c (Fdecode_coding_region):
8608         * file-coding.c (encoding_reader):
8609         * file-coding.c (encoding_writer):
8610         * file-coding.c (mule_encode):
8611         * file-coding.c (Fencode_coding_region):
8612         * file-coding.c (detect_coding_sjis):
8613         * file-coding.c (decode_coding_sjis):
8614         * file-coding.c (encode_coding_sjis):
8615         * file-coding.c (detect_coding_big5):
8616         * file-coding.c (decode_coding_big5):
8617         * file-coding.c (encode_coding_big5):
8618         * file-coding.c (detect_coding_ucs4):
8619         * file-coding.c (decode_coding_ucs4):
8620         * file-coding.c (encode_coding_ucs4):
8621         * file-coding.c (detect_coding_utf8):
8622         * file-coding.c (decode_coding_utf8):
8623         * file-coding.c (encode_coding_utf8):
8624         * file-coding.c (detect_coding_iso2022):
8625         * file-coding.c (decode_coding_iso2022):
8626         * file-coding.c (encode_coding_iso2022):
8627         * file-coding.c (decode_coding_no_conversion):
8628         * file-coding.c (encode_coding_no_conversion):
8629         * glyphs-x.c (write_lisp_string_to_temp_file):
8630         * gpmevent.c (tty_get_foreign_selection):
8631         * lisp.h:
8632         * lstream.c:
8633         * lstream.c (Lstream_flush_out):
8634         * lstream.c (Lstream_adding):
8635         * lstream.c (Lstream_write_1):
8636         * lstream.c (Lstream_write):
8637         * lstream.c (Lstream_raw_read):
8638         * lstream.c (Lstream_read_more):
8639         * lstream.c (Lstream_read):
8640         * lstream.c (Lstream_unread):
8641         * lstream.c (Lstream_fputc):
8642         * lstream.c (stdio_reader):
8643         * lstream.c (stdio_writer):
8644         * lstream.c (filedesc_reader):
8645         * lstream.c (filedesc_writer):
8646         * lstream.c (lisp_string_reader):
8647         * lstream.c (struct fixed_buffer_stream):
8648         * lstream.c (make_fixed_buffer_input_stream):
8649         * lstream.c (make_fixed_buffer_output_stream):
8650         * lstream.c (fixed_buffer_reader):
8651         * lstream.c (fixed_buffer_writer):
8652         * lstream.c (struct resizing_buffer_stream):
8653         * lstream.c (resizing_buffer_writer):
8654         * lstream.c (dynarr_writer):
8655         * lstream.c (lisp_buffer_reader):
8656         * lstream.c (lisp_buffer_writer):
8657         * lstream.h:
8658         * lstream.h (lstream_implementation):
8659         * lstream.h (struct lstream):
8660         * md5.c (Fmd5):
8661         * process-nt.c (nt_send_process):
8662         * process-unix.c (unix_send_process):
8663         
8664         Correct Lstream lossage due to mixing of signed and unsigned
8665         quantities.  All Lstream uses of size_t and ssize_t are now a
8666         single signed data type Lstream_data_count.  This fixes problems
8667         under Windows with sending large quantities of data to a process,
8668         and may well fix other subtle bugs.
8669
8670 2001-02-23  Martin Buchholz <martin@xemacs.org>
8671
8672         * XEmacs 21.2.45 "Thelxepeia" is released.
8673
8674 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8675
8676         * lisp-union.h (XSETINT): 
8677         (XSETCHAR):
8678         (XSETOBJ): 
8679         Reverse previous change of 2001-02-06.
8680
8681 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8682
8683         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8684         buffers.
8685         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8686         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8687         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8688         * regex.c (POS_AS_IN_BUFFER): removed
8689         * regex.c (re_search_2):
8690         * regex.c (re_match_2):
8691         Don't use an offset of 1 when calculating buffer positions, since
8692         `BI_BUF_BEGV' does it already.
8693
8694 2001-02-18  Wim Dumon  <wim@easics.be>
8695
8696         * insdel.c (prepare_to_modify_buffer): Also check for
8697         supersession when clash-detection is enabled. 
8698
8699 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8700
8701         * regex.c (re_match_2_internal):
8702         Convert temp characters from 'const unsigned char' to 're_char'.
8703         Fix crashing bug with extended characters under mule.
8704         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8705         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8706         font-lock, pdump, and new syntax-table code.
8707         * syntax.c (find_start_of_comment):
8708         (find_end_of_comment):
8709         (forward-comment):
8710         Fix crashing bugs involving moving beyond end of buffer.
8711         * syntax.c (find_start_of_comment):
8712         Fixed logic to allow proper detection of cases where the same
8713         character is used to end both a two-char comment start and a
8714         two-char comment end sequence. Fixes `(forward-comment -1)'.
8715         * syntax.c (find_start_of_comment):
8716         Return position just past last comment-end character for all cases
8717         (previously was only done for two-char comment-end sequences).
8718         * syntax.c (forward-comment):
8719         Take value returned from `find_end_of_comment', rather than
8720         incrementing it.
8721         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8722         Properly deal with BUFFERP (syntax_cache.object)
8723
8724 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8725
8726         * alloc.c (Fgarbage_collect): 
8727         * alloc.c (make_bit_vector_from_byte_vector):
8728         -Wsign-compare-correctness.
8729
8730 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8731
8732         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8733         (XSETCHAR): Likewise.
8734         (XSETOBJ): Likewise.
8735
8736 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8737
8738         * mule-canna.c (canna-func-delete_previous): 
8739         Rename to canna-func-delete-previous.
8740
8741 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8742
8743         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8744
8745 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8746
8747         * font-lock.c (find_context): Fix C++ compile errors introduced by
8748         recent patch
8749
8750 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8751
8752         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8753         pragma, but earlier ones barf on the same pragma.
8754
8755 2001-02-06  Mike Sperber <mike@xemacs.org>
8756
8757         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8758         `configure-mule-lisp-directory'.
8759
8760 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8761
8762         Make sure dump-id.c is compiled in the same way as other .c's.
8763         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8764         * dump-id.h: Remove.
8765         * emacs.c: Move dump-id.h into dumper.h.
8766         * dumper.h: Move dump-id.h into dumper.h.
8767         * Makefile.in.in:
8768         Use standard .c.o rule for building dump-id.o.
8769         Remove preprocessor flags from link command.
8770         Add dump-id.o to ${otherobjs} if PDUMP.
8771
8772 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8773
8774         Port FSF 20.7 syntax table improvements.
8775         * syntax.c.
8776         * syntax.h.
8777
8778         Fixups for new syntax table stuff.
8779         * dired.c: Include syntax.c.
8780         (Fdirectory_files): Initialize regex_match_object and
8781         regex_emacs_buffer.
8782         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8783         and Fget_char_property.
8784
8785         Use ported FSF 20.7 syntax table improvements.
8786         * font-lock.c.
8787         * regex.c.
8788         * search.c.
8789         
8790 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8791
8792         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8793         Unixware's enum boolean from sys/types.h.
8794
8795 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8796
8797         Fix support for building with latest Purify.
8798         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8799         (PURIFY_FLAGS): Likewise.
8800
8801 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8802
8803         * fileio.c (lisp_string_set_file_times): New.
8804         * fileio.c (Fcopy_file): Use it.
8805         Fixes bug:
8806         (copy-file filename non-ascii-filename t t)
8807         ==> No such file or directory, non-ascii-filename
8808
8809 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8810
8811         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8812         USHRT_MAX seems clearer than ~0 anyways.
8813
8814 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8815
8816         dumper improvements.  Inspired by Olivier.
8817         * dumper.c (pdump_max_align): New.
8818         * dumper.c (pdump_add_entry): Use pdump_max_align.
8819         * dumper.c (pdump_get_entry_list): Likewise.
8820         * dumper.c (pdump_scan_by_alignment): Likewise.
8821         Don't iterate through unnecessary alignments.
8822         * dumper.c (pdump_file_get): No need to align result of malloc().
8823         * dumper.c (pdump_mallocadr): Remove.  
8824         The result of malloc() is guaranteed to be maximally aligned.
8825         * dumper.c: s/elmt/elt/g;
8826         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8827         * dumper.c (pdump_alert_undump_object): Likewise.
8828         * dumper.c (pdump_align_table): 
8829         Don't support alignments > 64.
8830         Store ALIGNOF's, not shift counts, in table.
8831
8832 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8833
8834         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8835         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8836         * systime.h: Use HAVE_UTIME.
8837         * sysdep.c (struct utimbuf): Remove.
8838         * sysdep.c (set_file_times): Prefer utime() to utimes().
8839         * config.h.in (HAVE_UTIME): New.
8840         * config.h.in (HAVE_UTIME_H): Remove.
8841         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8842
8843 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8844
8845         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8846
8847 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8848
8849         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8850
8851 2001-02-08  Martin Buchholz <martin@xemacs.org>
8852
8853         * XEmacs 21.2.44 "Thalia" is released.
8854
8855 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8856
8857         Fixes crashes in kill-emacs on some systems.
8858         * process-unix.c (unix_kill_child_process):
8859         It's OK for kill() to fail with ESRCH.
8860
8861 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8862
8863         Contortions to make .gdbinit tricks work on most systems.
8864         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8865         * alloc.c (dbg_valmask): Make non-const.
8866         * alloc.c (dbg_typemask): Make non-const.
8867         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8868         * alloc.c (dbg_valbits): Make non-const.
8869         * alloc.c (dbg_gctypebits): Make non-const.
8870         * .gdbinit (decode_object): Make it work with AIX cc.
8871
8872 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8873
8874         * elhash.c (make_general_lisp_hash_table):
8875         Use simpler and more efficient calloc to clear entries.
8876
8877 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8878
8879         * window.c (window_scroll): Work around an AIX C compiler bug.
8880         Fixes 'scroll-up' does nothing problem with xlC.
8881
8882 2001-02-05  Martin Buchholz  <martin@xemacs.org>
8883
8884         * .gdbinit: Remove obsolete comment.
8885
8886 2001-01-31  Mike Alexander  <mta@arbortext.com>
8887
8888         * select.c (Fown_selection_internal): Set owned_p for device
8889         method correctly.
8890
8891 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8892
8893         Port to g++ 2.97.
8894         "not" cannot be used as a macro name as it is an operator in C++
8895         * config.h.in: Stop #defining `not'.
8896         * chartab.c (check_category_char): not ==> not_p
8897         * chartab.h: Likewise.
8898         * regex.c (re_match_2_internal): Likewise.
8899
8900 2001-02-02  Martin Buchholz  <martin@xemacs.org>
8901
8902         * lisp-disunion.h: Fix up comments.
8903
8904 2001-01-31  Martin Buchholz  <martin@xemacs.org>
8905
8906         * keymap.c (define_key_check_and_coerce_keysym):
8907         (syms_of_keymap):
8908         Support mouse-6 and mouse-7 bindings in the obvious way.
8909
8910 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8911
8912         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8913
8914 2001-01-30  Martin Buchholz  <martin@xemacs.org>
8915
8916         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8917         Previous patch missed DEFVAR_INT_MAGIC.
8918         Make sure future DEFVAR_foo use correct types.
8919         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8920         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8921         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8922         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8923         * (DEFVAR_INT): Likewise.
8924         * redisplay.c (vertical_clip): Should be of type Fixnum.
8925         * redisplay.c (horizontal_clip): Likewise.
8926         * lisp.h (dump_add_opaque_int): New.
8927         (dump_add_opaque_fixnum): New.
8928
8929 2001-01-29  Andy Piper  <andy@xemacs.org>
8930
8931         * glyphs-widget.c (check_valid_int_or_function): allow symbols
8932         since they can be eval'ed
8933
8934 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8935
8936         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8937         Oops, XEmacs redefines `class'.  Use `typename' instead.
8938
8939 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8940
8941         * dumper.c: Fix C++ compile errors.
8942
8943 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8944
8945         * tparam.c: Use correct prototypes.
8946
8947 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8948
8949         * sysproc.h: #include util.h for NetBSD's openpty.
8950
8951 2001-01-27  Martin Buchholz  <martin@xemacs.org>
8952
8953         More 64-bit correctness.
8954         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8955         Use a typedef `fixnum' for the type used for DEFVAR_INT.
8956         Fix up comments.
8957         This finally finishes the 64-bit SGI port.
8958         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8959         * symbols.c: Fix up comments and type casts.
8960         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8961         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8962         * symeval.h (Fixnum): New type.
8963         * symeval.h (symbol_value_type): Fix up comment.
8964
8965         * commands.h:
8966         * nt.c:
8967         * emacs.c:
8968         * data.c:
8969         * redisplay.c:
8970         * abbrev.c:
8971         * dired-msw.c:
8972         * event-Xt.c:
8973         * eldap.c:
8974         * window.c:
8975         * sound.c:
8976         * event-stream.c:
8977         * eval.c:
8978         * buffer.c:
8979         * mule-canna.c: A million DEFVAR_INTs here...
8980         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8981         * extents.c:
8982         * cmdloop.c:
8983         * lisp.h:
8984         * select-x.c:
8985         * console-x.h:
8986         * event-msw.c:
8987         * mule-wnnfns.c:
8988         * hpplay.c:
8989         * ralloc.c:
8990         * alloc.c:
8991         * keymap.c:
8992         * profile.c:
8993         s/int/Fixnum/g in DEFVAR_INT declarations.
8994
8995 2001-01-26  Martin Buchholz  <martin@xemacs.org>
8996
8997         Port pdump to SGI alignment-sensitive environment.
8998         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
8999         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9000         properly aligned.
9001         Define and use aligned reading and writing macros.
9002         Use buffered stdio instead of posix i/o for faster dumping.
9003         Eliminate kludgy 256 byte space for header.
9004         Read and write from dump file using structs for alignment safety.
9005         * dumper.c (pdump_align_stream): New.
9006         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9007         * dumper.c (PDUMP_READ_ALIGNED): New.
9008         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9009         * dumper.c (pdump_static_Lisp_Object): New struct.
9010         * dumper.c (pdump_static_pointer): New struct.
9011         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9012         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9013         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9014         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9015
9016         * dumper.c (pdump_backtrace):
9017         * dumper.c (pdump_get_indirect_count):
9018         * dumper.c (pdump_register_object):
9019         * dumper.c (pdump_register_struct):
9020         * dumper.c (pdump_reloc_one):
9021         * dumper.c (pdump_scan_by_alignment):
9022         * dumper.c (pdump_dump_from_root_struct_ptrs):
9023         * dumper.c (pdump_dump_opaques):
9024         * dumper.c (pdump_dump_rtables):
9025         * dumper.c (pdump_dump_from_root_objects):
9026         * dumper.c (pdump):
9027         * dumper.c (pdump_load_finish):
9028         Use aligned reading and writing.
9029
9030         * dumper.c (pdump_free): Make static.
9031         * dumper.c (pdump_hFile): Likewise.
9032         * dumper.c (pdump_hMap): Likewise.
9033
9034 2001-01-26  Martin Buchholz <martin@xemacs.org>
9035
9036         * XEmacs 21.2.43 "Terspichore" is released.
9037
9038 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9039
9040         Type fiddling for window_config.saved_windows_count
9041         * window.c (struct window_config): 
9042         Make saved_windows_count member unsigned.
9043         * window.c (sizeof_window_config_for_n_windows): 
9044         Make parameter unsigned.
9045         * window.c (mark_window_config):
9046         * window.c (window_config_equal):
9047         * window.c (free_window_configuration):
9048         * window.c (Fset_window_configuration):
9049         * window.c (count_windows):
9050         * window.c (Fcurrent_window_configuration):
9051         * window.c (reinit_vars_of_window):
9052         Update all callers and users.
9053
9054 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9055
9056         Alignment correctness for flexible arrays.
9057         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9058         Make alignment-correct. Add interesting comments.
9059         * alloc.c (size_vector):
9060         * alloc.c (make_vector_internal):
9061         * alloc.c (make_bit_vector_internal):
9062         * alloc.c (sweep_bit_vectors_1):
9063         * fns.c (size_bit_vector):
9064         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9065         * window.c (sizeof_window_config_for_n_windows): 
9066         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9067
9068 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9069
9070         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9071
9072 2001-01-23  Andy Piper  <andy@xemacs.org>
9073
9074         * select.c (Fown_selection_internal): pass owned_p
9075
9076         * select-msw.c (mswindows_own_selection): New Signature.
9077
9078         * console.h (struct console_methods): add owned_p to
9079         _own_selection.
9080
9081         * select-x.c (x_own_selection): pass owned_p
9082         (hack_motif_clipboard_selection): use owned_p
9083         (vars_of_select_x): new variable -
9084         x_selection_strict_motif_ownership.
9085
9086 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9087
9088         * specifier.h (specifier_data_offset): Remove pointless parens.
9089         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9090
9091 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9092
9093         Make Lisp_Object sizeof methods be alignment-correct.
9094         pdump must restore objects to the same alignment as the C compiler
9095         assumes.  It really matters on SGIs.
9096         * lstream.c (aligned_sizeof_lstream): New.
9097         (sizeof_lstream): Use aligned_sizeof_lstream.
9098         (Lstream_new): Likewise.
9099         * opaque.c (aligned_sizeof_opaque): New.
9100         (sizeof_opaque): Use aligned_sizeof_opaque.
9101         (make_opaque): Likewise.
9102         * specifier.c (aligned_sizeof_specifier): New.
9103         (sizeof_specifier): Use aligned_sizeof_specifier.
9104         (make_specifier_internal): Likewise.
9105
9106 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9107
9108         * lstream.h (struct lstream): Use max_align_t for trailing data.
9109         * specifier.h (struct Lisp_Specifier): Likewise.
9110
9111 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9112
9113         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9114         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9115         (CCL_SUSPEND): Likewise.
9116         (CCL_INVALID_CMD): Likewise.
9117         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9118         (ccl_driver): Likewise.
9119         (CCL_WRITE_CHAR): Macro hygiene.
9120         (CCL_WRITE_STRING): Macro hygiene.
9121
9122 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9123
9124         Port "portable" dumper to SunOS 4 and HP-UX.
9125         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9126         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9127         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9128
9129 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9130
9131         * lisp.h (ALIGNOF): A better definition for C++.
9132
9133 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9134
9135         Macro hygiene.
9136         Fix printf warnings: int format, long int arg.
9137         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9138         (PUSH_FAILURE_POINT): Use correct printf formats.
9139         (POP_FAILURE_POINT): Use correct printf formats.  
9140         Use do {...} while (0)
9141
9142 2001-01-20  Martin Buchholz <martin@xemacs.org>
9143
9144         * XEmacs 21.2.42 "Poseidon" is released.
9145
9146 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9147
9148         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9149
9150 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9151
9152         De-kludgify FIXED_TYPE free list frobbing.
9153         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9154         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9155         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9156         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9157         * alloc.c (LRECORD_FREE_P): New.
9158         * alloc.c (MARK_LRECORD_AS_FREE): New.
9159         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9160         * alloc.c (STRUCT_FREE_P): Deleted.
9161         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9162         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9163         * alloc.c (STRING_CHARS_FREE_P): New.
9164         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9165         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9166         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9167         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9168         * alloc.c (resize_string): Use new definitions.
9169         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9170         * alloc.c (verify_string_chars_integrity): Use new definitions.
9171         * alloc.c (compact_string_chars): Use new definitions.
9172         * alloc.c: Update monster comments.
9173         * lrecord.h (lrecord_type): Add some new lrecord types for
9174         alloc.c's use.
9175
9176 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9177
9178         Improve alignment hackery.
9179         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9180         (max_align_t): Moved from opaque.h - general purpose.
9181         (ALIGN_PTR): Use size_t, not long.
9182         * opaque.h (max_align_t): Move to lisp.h.
9183
9184 2001-01-18  Norbert Koch  <nk@LF.net>
9185
9186         * gui.h: Fix and add prototypes to fix build problems.
9187
9188 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9189
9190         temacs is going away, so `dump-temacs' is now a bad name.
9191         * .dbxrc (dump-temacs): Rename to `dmp'.
9192         * .gdbinit (dump-temacs): Rename to `dmp'.
9193
9194 2001-01-17  Andy Piper  <andy@xemacs.org>
9195
9196         * glyphs.c (print_image_instance): comment to make martin happy.
9197
9198         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9199         change.
9200
9201         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9202         activation.
9203         (mswindows_tab_control_redisplay): warning suppression.
9204
9205         * glyphs-widget.c (widget_update): re-write to cope with updated
9206         items.
9207         (widget_instantiate): use new gui_item functions.
9208         (tab_control_update): deleted.
9209         (progress_gauge_update): deleted.
9210         (image_instantiator_progress_guage): take out update reference.
9211         (image_instantiator_tree_view): ditto.
9212         (image_instantiator_tab_control): ditto.
9213
9214         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9215         Right the new way.
9216         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9217         return whether anything was changed.
9218         (update_gui_item_keywords): as it sounds.
9219
9220         * gui.h: declare widget_gui_parse_item_keywords.
9221
9222         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9223         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9224
9225 2001-01-17  Martin Buchholz <martin@xemacs.org>
9226
9227         * XEmacs 21.2.41 "Polyhymnia" is released.
9228
9229 2001-01-16  Didier Verna  <didier@xemacs.org>
9230
9231         * glyphs.c (image_instantiate): don't use fallbacks when
9232         instantiating a face's background pixmap by inheritance.
9233
9234 2001-01-14  Mike Sperber <mike@xemacs.org>
9235
9236         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9237         Conditionalize accordingly.
9238
9239 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9240
9241         * dumper.c (pdump_file_get): Fix a compiler warning.
9242
9243 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9244
9245         Make Purify happy when pdumping.
9246         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9247         iniitalizing all bits of new lisp object memory.
9248         * symbols.c (Fmake_local_variable): Likewise.
9249         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9250         * symbols.c (Fdefvaralias): Likewise.
9251         * mule-charset.c (vars_of_mule_charset): Likewise.
9252
9253 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9254         Add the `-nd' flag when running pre-dump operations under the debugger.
9255         * .dbxrc (run-temacs): Add `-nd'.
9256         * .dbxrc (update-elc): Likewise.
9257         * .dbxrc (dump-temacs): Likewise.
9258         * .gdbinit (run-temacs): Likewise.
9259         * .gdbinit (check-temacs): Likewise.
9260         * .gdbinit (update-elc): Likewise.
9261         * .gdbinit (dump-temacs): Likewise.
9262
9263 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9264
9265         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9266         export OBJECT_MODE=64
9267         configure --pdump --use-union-type=no
9268         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9269         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9270
9271         * miscplay.c (sndcnv8U_2mono):
9272         Avoid two uses of `++' in the same expression.
9273         Suppresses a GCC warning.
9274
9275 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9276
9277         Make sure future compilers don't miscompile alloc.c.
9278         * alloc.c:
9279         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9280         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9281
9282 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9283
9284         * dumper.c: A little post-pdump-rename comment fixup.
9285
9286 2001-01-09  Jerry James  <james@eecs.ku.edu>
9287
9288         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9289
9290 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9291
9292         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9293         script:
9294         #!/bin/sh
9295         replace_symbol () {
9296           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9297         }
9298
9299         replace_symbol pdump_wire_lists pdump_weak_object_chains
9300         replace_symbol pdump_wire_list dump_add_weak_object_chain
9301
9302         replace_symbol pdump_wires pdump_root_objects
9303         replace_symbol pdump_wire dump_add_root_object
9304
9305         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9306         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9307
9308         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9309         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9310         replace_symbol dumpstructinfo pdump_root_struct_ptr
9311         replace_symbol dumpstruct dump_add_root_struct_ptr
9312
9313         replace_symbol dumpopaque dump_add_opaque
9314         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9315         replace_symbol dumpopaqueinfos pdump_opaques
9316         replace_symbol dumpopaqueinfo pdump_opaque
9317
9318         replace_symbol nb_structdump nb_root_struct_ptrs
9319         replace_symbol nb_opaquedump nb_opaques
9320
9321         replace_symbol align_table pdump_align_table
9322         replace_symbol dump_header pdump_header
9323
9324         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9325         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9326
9327
9328 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9329
9330         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9331         optimizing bytecount_to_charcount().
9332
9333 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9334
9335         * config.h.in:
9336         (HAVE_DLFCN_H): Removed.
9337         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9338
9339 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9340
9341         Portable dumper maintainability improvements.
9342         * alloc.c (staticpro):
9343         * alloc.c (staticpro_nodump):
9344         * alloc.c (garbage_collect_1):
9345         * alloc.c (reinit_alloc_once_early):
9346         * alloc.c (init_alloc_once_early):
9347         * alloc.c: Move dumper functions to alloc.c.
9348         * dumper.c (pdump_backtrace):
9349         * dumper.c (pdump_dump_structs):
9350         * dumper.c (pdump_dump_opaques):
9351         * dumper.c (pdump_dump_rtables):
9352         * dumper.c (pdump_dump_wired):
9353         * dumper.c (pdump):
9354         * dumper.c (pdump_load_check):
9355         * dumper.c (pdump_load_finish):
9356         * dumper.c (pdump_file_unmap):
9357         * dumper.c (pdump_file_get):
9358         * dumper.c (pdump_resource_free):
9359         * dumper.c (pdump_resource_get):
9360         * dumper.c (pdump_file_free):
9361         * dumper.c (pdump_file_try):
9362         * dumper.c (pdump_load):
9363         Remove fixed size limits on staticpro(), staticpro_nodump(),
9364         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9365         Remove custom code for dumping lrecord_implementations_table - use
9366         dumpopaque instead.
9367         Remove (most of the) custom code for dumping staticpros - dump it
9368         like any other dynarr.
9369
9370         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9371         * dumper.c: Moved functions from alloc.c.
9372         * alloc.c (dumpstruct): Moved to dumper.c.
9373         * alloc.c (dumpopaque): Likewise.
9374         * alloc.c (pdump_wire): Likewise.
9375         * alloc.c (pdump_wire_list): Likewise.
9376
9377         * lisp.h (Dynarr_sizeof): New.
9378         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9379         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9380         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9381
9382         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9383         * lisp.h (dumpopaque): ditto.
9384         * lisp.h (pdump_wire): ditto.
9385         * lisp.h (pdump_wire_list): ditto.
9386
9387 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9388
9389         * make-src-depend (PrintPatternDeps):
9390         Use `sort' to make output independent of perl version.
9391
9392 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9393
9394         Port to Netbsd 1.5.
9395         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9396         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9397
9398 2001-01-03  Didier Verna  <didier@xemacs.org>
9399
9400         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9401         that `focus_frame' is alive before thinking of calling
9402         `redisplay_redraw_cursor' on it.
9403
9404 2001-01-08  Martin Buchholz <martin@xemacs.org>
9405
9406         * XEmacs 21.2.40 is released.
9407
9408 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9409
9410         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9411
9412 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9413
9414         * alloc.c (dbg_valmask): Make const.
9415         * alloc.c (dbg_typemask): Make const.
9416         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9417         * alloc.c (dbg_valbits): Make const.
9418         * alloc.c (dbg_gctypebits): Make const.
9419
9420 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9421
9422         * redisplay-x.c (x_bevel_area):
9423         redisplay.h (struct rune):
9424         Typo fixes in comments.
9425
9426 2001-01-05  Andy Piper  <andy@xemacs.org>
9427
9428         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9429         adjustment.
9430
9431         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9432
9433 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9434
9435         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9436
9437         * mule-ccl.c (stack_idx_of_map_multiple):
9438         Non const global data must not be initialized!
9439         Found by MIYASHITA Hisashi.
9440
9441 2001-01-02  Andy Piper  <andy@xemacs.org>
9442
9443         * frame.c (change_frame_size): make sure frame size is always
9444         marked as changed.
9445
9446         * glyphs.c (image_instance_layout): minor code reuse.
9447
9448         * window.c (Fcurrent_window_configuration): revert previous
9449         change.
9450
9451 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9452
9453         * glyphs.h:
9454         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9455
9456 2000-12-31  Andy Piper  <andy@xemacs.org>
9457
9458         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9459         when widget gets unmapped.
9460
9461         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9462         function. Make sure widgets losing focus don't just drop it.
9463         (handle_focus_event_1): record the widget with focus.
9464
9465 2000-12-31  Andy Piper  <andy@xemacs.org>
9466
9467         * window.c (allocate_window): use
9468         make_image_instance_cache_hash_table.
9469         (make_dummy_parent): ditto.
9470         (Fset_window_configuration): ditto.
9471
9472         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9473
9474         * glyphs.c (process_image_string_instantiator): use
9475         INSTANTIATOR_TYPE.
9476         (get_image_instantiator_governing_domain): ditto.
9477         (normalize_image_instantiator): ditto.
9478         (instantiate_image_instantiator): ditto.
9479         (make_image_instance_1): ditto.
9480         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9481         (instantiator_eq_equal): new function for use with instance hash
9482         tables.
9483         (instantiator_eq_hash): ditto.
9484         (make_image_instance_cache_hash_table): create a suitable hash
9485         table for storing image instances.
9486
9487         * elhash.h (hash_table_weakness): new internal weakness type
9488         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9489         declare new functions.
9490
9491         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9492         another weakness type for glyphs.
9493         (make_standard_lisp_hash_table): new function split out from
9494         make_general_lisp_hash_table.
9495         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9496         (hash_table_instantiate): ditto.
9497         (Fmake_hash_table): ditto.
9498
9499 2000-12-31  Martin Buchholz <martin@xemacs.org>
9500
9501         * XEmacs 21.2.39 is released.
9502
9503 2000-12-29  Andy Piper  <andy@xemacs.org>
9504
9505         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9506
9507         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9508         the frame has changed so that we pick up geometry changes such as
9509         menubar visibility.
9510
9511 2000-12-28  Andy Piper  <andy@xemacs.org>
9512
9513         * lastfile.c (my_ebss): make a char array so we can pad the
9514         bss. Fixes cygwin unexec.
9515
9516         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9517
9518 2000-12-26  Andy Piper  <andy@xemacs.org>
9519
9520         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9521         comments and try and be more precise about a non-/SIGIO world.
9522         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9523         SIGIO.
9524
9525         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9526         we don't normalize to zero width or height.
9527
9528 2000-12-24  Andy Piper  <andy@xemacs.org>
9529
9530         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9531
9532 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9533
9534         * s/sco5.h: SCO 5 has pty support.
9535
9536 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9537
9538         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9539         input-method-xlib.c contains whole contents of input-method-xfs.c,
9540         so we can use input-method-xlib.c's code for USE_XFONTSET
9541         using #ifdefs.
9542         * input-method-xfs.c: removed.
9543
9544 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9545
9546         * file-coding.h (enum coding_category_type): reorder enumerators to
9547         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9548         (now one greater than largest real coding_category_type enumerator).
9549         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9550         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9551         Fcoding_category_list, Fset_coding_priority_list,
9552         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9553         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9554
9555 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9556
9557         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9558         * redisplay-output.c (redisplay_output_window): Clear top of window
9559         when face is changed.
9560         * redisplay-x.c (x_redraw_exposed_window): Call
9561         redisplay_clear_top_of_window.
9562         * redisplay.h: Publish redisplay_clear_top_of_window.
9563
9564 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9565
9566         * buffer.c (Fkill_buffer): Map over all devices.
9567         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9568         (list_windows): New function.
9569         (list_all_windows): Ditto.
9570         (Freplace_buffer_in_windows): Use them.
9571
9572 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9573
9574         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9575         (Fopen_database): Use `db_create' instead of `db_open'.
9576         (syms_of_database): Initialize Qqueue.
9577
9578 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9579
9580         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9581         buffer_local_face_property.
9582         * buffer.h (struct buffer): New member buffer_local_face_property.
9583         * window.c (Fset_window_buffer):  Mark window's face as changed
9584         when buffer has buffer local face.
9585         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9586         * objects.c (color_after_change): Set buffer_local_face_property
9587         when locale of face specifier is buffer.
9588         * objects.c (font_after_change): Ditto.
9589         * objects.c (face_boolean_after_change): Ditto.
9590         * glyphs.c (image_after_change): Ditto.
9591
9592 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9593
9594         * nt.c (mswindows_fstat): Report file permissions, volume serial
9595         number, etc. Code adapted from FSF Emacs 20.7.
9596
9597 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9598
9599         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9600         of stat when we don't have symbolic links, to make sure
9601         mswindows_stat is called on mswindows.
9602
9603 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9604
9605         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9606
9607 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9608
9609         * doprnt.c (emacs_doprnt_1): More printing fixes.
9610         Make printing of numbers compatible with libc and FSF Emacs.
9611         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9612         Use the system printf to do most of the hard work of formatting,
9613         instead of doprnt_1().
9614         Calculate memory to allocate for format string.
9615         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9616         (doprnt_1): Cleaner code and documentation.
9617
9618 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9619
9620         * Makefile.in.in: Use the loop variable to install headers.
9621
9622 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9623
9624         * window.c (Fsplit_window): Don't invalidate face cache.
9625
9626 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9627
9628         * minibuf.c (Fall_completions): Undo the previous change
9629         which removed checking elements start with space.
9630
9631 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9632
9633         * mule-canna.c: Didier suppression.
9634
9635 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9636
9637         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9638         (warning suppression).  Add English comment translations.
9639
9640 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9641
9642         * unexelfsgi.c (unexec): Better test for mmap failure.
9643
9644 2000-12-05  Martin Buchholz <martin@xemacs.org>
9645
9646         * XEmacs 21.2.38 is released.
9647
9648 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9649
9650         * redisplay.c (bar-cursor): Make a user variable.
9651
9652         * symsinit.h: Add init_postgresql_from_environment.
9653
9654 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9655
9656         * regex.c: Convert to clean C.
9657
9658 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9659
9660         * realpath.c:
9661         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9662         initialization.
9663         (sys_readlink): renamed to system_readlink to avoid conflict with
9664         the other sys_readlink.
9665
9666 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9667
9668         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9669
9670 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9671
9672         * postgresql.c (init_postgresql_from_environment): new function.
9673         (vars_of_postgresql): Move code initializing Lisp variables out and
9674         into init_postgresql_from_environment.
9675         emacs.c (main_1): Call init_postgresql_from_environment if and only
9676         if running a dumped XEmacs.
9677
9678 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9679
9680         * buffer.c: Make find-file-compare-truenames default to true on
9681         windows.
9682
9683         * realpath.c (win32_abs_start):
9684         (cygwin_readlink):
9685         (win32_readlink): New functions.
9686         (xrealpath): Return really real filenames on windows.
9687
9688         * fileio.c (Ffile_truename): Make file-truename work on windows.
9689
9690 2000-11-29  Didier Verna  <didier@xemacs.org>
9691
9692         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9693         * faces.c (update_face_cachel_data): use it.
9694         * faces.c (add_face_cachel): use it. Complete background pixmap
9695         frobbing in face cache if `update_face_cachel_data' has not done so.
9696
9697 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9698
9699         * search.c (string_match_1): Don't set last_thing_searched
9700         when search failed.
9701
9702 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9703
9704         * buffer.c: Include casetab.h
9705         (common_init_complex_vars_of_buffer): Use new case-table object.
9706         * buffer.h: Include casetab.h
9707         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9708         (DOWNCASE_TABLE_OF): Ditto.
9709         * bufslots.h: Remove char-tables and add case-table.
9710         * casetab.c: Include casetab.h
9711         (CASE_TABLE_P): Removed.
9712         (mark_case_table): New function.
9713         (allocate_case_table): New function.
9714         (Fcase_table_p): Use new case-table.
9715         (case_table_char): New function.
9716         (Fget_case_table): Ditto.
9717         (Fput_case_table): Ditto.
9718         (Fput_case_table_pair): Ditto.
9719         (Fcopy_case_table): Ditto.
9720         (Fcurrent_case_table): Return case-table.
9721         (Fstandard_case_table): Return case-table.
9722         (Fset_case_table): Fix doc-string.
9723         (set_case_table): Use case-table
9724         (syms_of_casetab): DEFSUBR new functions.
9725         (complex_vars_of_casetab): Set up standard case-table.
9726         * casetab.h: New file.
9727         * editfns.c: Include casetab.h
9728         (Fcompare_buffer_substrings): Use case-table.
9729         * inline.c: Include casetab.h
9730         * lisp.h: Remove bogus extern.
9731         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9732         * search.c: Include casetab.h
9733         (TRANSLATE_ASCII): Removed.
9734         (TRANSLATE): Unconditionally translate character.
9735         (looking_at_1): Use case-table.
9736         (string_match_1): Ditto.
9737         (fast_string_match): Ditto.
9738         (search_command): Ditto.
9739         (search_buffer): Separate boyer_moore.  Check whether
9740         boyer_moore is possible.
9741         (simple_search): New function.
9742         (boyer_moore): Separated from search_buffer. Translate char.
9743
9744 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9745
9746         * regex.c (RE_TR_ASCII): Removed.
9747         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9748         (PATFETCH): Call PATFETCH_RAW.
9749         (PATFETCH_RAW): Fetch Emchar.
9750         (PATUNFETCH): Decrement charptr.
9751         (GET_BUFFER_SPACE): Rename b to buf_end.
9752         (BUF_PUSH): Ditto.
9753         (BUF_PUSH_2): Ditto.
9754         (BUF_PUSH_3): Ditto.
9755         (EXTEND_BUFFER): Ditto.
9756         (SET_LIST_BIT): Ditto.
9757         (regex_compile): Ditto.  Translate non ASCII char.
9758         (compile_range): Ditto.
9759         (re_search_2): Ditto.
9760         (re_match_2_internal): Compare Emchar.
9761         (bcmp_translate): Ditto.
9762
9763 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9764
9765         * lisp.h (basic char/int typedefs):  comment improvement.
9766
9767 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9768
9769         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9770         unstomp inhibit_site_lisp.  Improve comments.
9771
9772 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9773
9774         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9775
9776 2000-11-28  Andy Piper  <andy@xemacs.org>
9777
9778         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9779         clipped display for windows in the gutter also.
9780         (redisplay_display_boxes_in_window_p): change semantics of return
9781         codes to be more intuitive.
9782
9783         * gutter.h: declare display_boxes_in_gutter_p.
9784
9785         * gutter.c (display_boxes_in_gutter_p): new function for
9786         redisplay.
9787
9788 2000-11-22  Andy Piper  <andy@xemacs.org>
9789
9790         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9791         autodetect domain.
9792
9793 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9794
9795         * callproc.c (Fold_call_process_internal):
9796         * gpm.c (Freceive_gpm_event):
9797         (tty_get_foreign_selection): Might be just warning supression.
9798         * fileio.c (Fwrite_region_internal):
9799         (Fset_visited_file_modtime):
9800         * keymap.c (event_matches_key_specifier_p):
9801         Initialize GCPROed variable.
9802
9803         * menubar-x.c (command_builder_find_menu_accelerator):
9804         Initialize before use.
9805
9806 2000-11-23  Andy Piper  <andy@xemacs.org>
9807
9808         * unexcw.c (unexec): make the resulting executable executable.
9809
9810 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9811
9812         * doc.c (get_doc_string):
9813         Use size_t, not int, for result of XSTRING_LENGTH.
9814
9815         * cmds.c (Fdelete_char):
9816         * cmds.c (Fpoint_at_eol):
9817         * cmds.c (Fself_insert_command):
9818         Use EMACS_INT, not int, for result of XINT.
9819         Someday, someone will want to insert more than 2**31 identical characters.
9820
9821         * cmds.c (Fdelete_char):
9822         * cmds.c (Fdelete_backward_char):
9823         * syntax.c (Fforward_word):
9824         * syntax.c (Fforward_comment):
9825         Make COUNT argument optional, for consistency with forward-char et al.
9826
9827 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9828
9829         * lisp.h:
9830         * print.c (long_to_string):
9831         Return a useful value: the pointer at end of data written.
9832
9833         * doprnt.c:
9834         Use `static const char * const' for constant strings.
9835         (union printf_arg): Delete `i', `ui' members.
9836         (get_doprnt_args):
9837         (emacs_doprnt_1):
9838         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9839         Do all printf-ing via the `l' specifier.
9840         Use EMACS_INT instead of int.
9841         Optimize.
9842
9843 2000-11-20  Didier Verna  <didier@xemacs.org>
9844
9845         * faces.c (update_face_cachel_data): don't frob the background
9846         pixmap when the window is being created. The face is needed but
9847         does not exist yet.
9848
9849 2000-11-20  Andy Piper  <andy@xemacs.org>
9850
9851         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9852         messing with a debug environment.
9853
9854 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9855
9856         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9857
9858 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9859
9860         * casetab.c (Fcase_table_p): Fix compile error and crash.
9861
9862 2000-11-18  Philip Aston  <philipa@mail.com>
9863
9864         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9865
9866 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9867
9868         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9869         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9870
9871 2000-11-17  Martin Buchholz  <martin@xemacs.org>
9872
9873         * config.h.in: Define HAVE_ELF_H if elf.h exists.
9874         * unexelf.c: Use HAVE_ELF_H.
9875         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9876         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9877         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9878         Greg Harrington <greg_harrington@hotmail.com> provided a machine
9879         for testing.
9880         So this is an unexelfsgi.c from a different line of development.
9881
9882 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9883
9884         * regex.c (RE_TR_ASCII): New function.
9885         (RE_TRANSLATE): Call it.
9886
9887 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9888
9889         * buffer.h (TRT_TABLE_OF): Remove assert.
9890         (IN_TRT_TABLE_DOMAIN): Removed.
9891
9892 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9893
9894         * free-hook.c (log_gcpro):
9895         (show_gcprohist): Add support for GCPRO5.
9896
9897 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
9898
9899         * emacs.c (main_1): Improve -sd error message when --pdump=no.
9900
9901 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
9902
9903         * symeval.h: Declare flush_all_buffer_local_cache.
9904
9905         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9906         (flush_buffer_local_cache): Added.
9907         (flush_all_buffer_local_cache): Added.
9908
9909         * lrecord.h: Remove unused XD_LO_RESET_NIL.
9910
9911         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9912         (pdump_dump_data): Ditto.
9913         (pdump_reloc_one): Ditto.
9914         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
9915         before dumping.
9916
9917
9918 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9919
9920         * buffer.c: Remove if 0'ed entry.
9921         * buffer.h: Rewrite TRT to use char-table.
9922         * bufslots.h: Remove mirror tables.
9923         * casetab.c: Remove mirror tables.
9924         (CASE_TABLE_P): New macro.
9925         (Fcase_table_p): Element of a case table is string or char-table.
9926         (make_mirror_trt_table): Removed.
9927         (set_case_table): Setup char-table from strings for backward
9928         compatibility.
9929         * dired.c (Fdirectory_files):
9930         * dired-msw.c: (mswindows_get_files):
9931         * lisp.h: Change prototype of re_pattern_buffer.
9932         * regex.c: (RE_TRANSLATE): New macro.
9933         (TRANSLATE_P): Ditto.
9934         Change translate to type RE_TRANSLATE_TYPE.
9935         * regex.h: Define RE_TRANSLATE_TYPE
9936         * search.c (TRANSLATE): New macro.
9937         (TRANSLATE_ASCII): New macro.
9938         Translate table is changed to Lisp_Object.
9939         (signal_failure): Inhibit return.
9940
9941 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9942
9943         * device-msw.c:
9944         * eldap.c:
9945         * event-Xt.c:
9946         * event-stream.c:
9947         * print.c:
9948         Do UNGCPRO before return.
9949
9950 2000-11-14  Martin Buchholz <martin@xemacs.org>
9951
9952         * XEmacs 21.2.37 is released.
9953
9954 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9955
9956         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9957         Add comments about discarded return value.
9958
9959 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9960
9961         * callint.c:
9962         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
9963
9964 2000-10-27  Andy Piper  <andy@xemacs.org>
9965
9966         * gutter.c (Fset_default_gutter_position): default left and right
9967         gutters to visible.
9968         (calculate_gutter_size): calculate resonable heuristic for left
9969         and right gutter sizes.
9970         (specifier_vars_of_gutter): change left and right gutter sizes to
9971         autodetect.
9972         (calculate_gutter_size_from_display_lines): new function.
9973         (output_gutter): check for resizing on left and right gutters.
9974         (clear_gutter): don't special case top and left gutters.
9975         (specifier_vars_of_gutter): use new signature for
9976         set_specifier_caching.
9977
9978         * glyphs-x.c (x_redisplay_widget): spelling fix.
9979         * glyphs.c (specifier_vars_of_glyphs):
9980         * menubar.c (specifier_vars_of_menubar):
9981         * redisplay.c (specifier_vars_of_redisplay):
9982         * toolbar.c (specifier_vars_of_toolbar):
9983         * window.c (specifier_vars_of_window):
9984         * scrollbar.c (specifier_vars_of_scrollbar):
9985         (complex_vars_of_scrollbar): use new signature for
9986         set_specifier_caching.
9987
9988         * specifier.c (set_specifier_caching): include recompute flag.
9989         (recompute_one_cached_specifier_in_window): always recompute if
9990         flag set.
9991         (recompute_one_cached_specifier_in_frame): ditto.
9992
9993         * specifier.h (struct specifier_caching): add recompute flag.
9994
9995 2000-10-24  Andy Piper  <andy@xemacs.org>
9996
9997         * unexcw.c (copy_executable_and_dump_data_section): add new
9998         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
9999         5.0 happy.
10000
10001 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10002
10003         * console-x.h (x_device): New member modifier_release_time.
10004         * event-Xt.c (x_handle_sticky_modifiers):
10005         Bound interval modifier keys are sticky.
10006         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10007         * events.h: extern it.
10008
10009 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10010
10011         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10012
10013 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10014
10015         * event-stream.c (execute_command_event): Preserve current_events
10016         and the like when event is misc-user-event.
10017         Inhibit quit during the call to maybe_echo_keys.
10018
10019 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10020
10021         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10022         symlink when buffer is killed.
10023         (inhibit_clash_detection): New variable.
10024
10025 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10026
10027         * console.c (Fset_input_method): Trigger redisplay on tty.
10028
10029 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10030
10031         * process.c (Fprocess_status): Revert to previous behavior:
10032         (process-status "nosuchprocess") ==> nil
10033
10034 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10035
10036         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10037         Work around another GCC 2.95.2 optimizer bug.
10038
10039 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10040
10041         * process.c (Fget_process): Use LIST_LOOP_2.
10042         (kill_buffer_processes): Use LIST_LOOP_2.
10043
10044         * minibuf.c (Fall_completions):
10045         Delete old non-functional code for FSF fourth argument.
10046
10047         * frame.c (frame_matches_frame_spec):
10048         Renamed from `frame_matches_frametype'.  Update all callers.
10049         (device_matches_device_spec):
10050         Renamed from 'device_matches_console_spec'.  Update all callers.
10051
10052         * doc.c (Fsubstitute_command_keys):
10053         Remove buffer overflow crash.  Small code cleanups.
10054
10055         * casetab.c (check_case_table): Simpler code.
10056
10057         * window.c (Freplace_buffer_in_windows):
10058         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10059         (and similar implementation) as Fdelete_windows_on.
10060         Update all callers.
10061
10062         * alloc.c (Fmake_list):
10063         * alloc.c (make_vector):
10064         * alloc.c (Fmake_vector):
10065         * alloc.c (make_bit_vector):
10066         * alloc.c (Fmake_bit_vector):
10067         * alloc.c (Fbit_vector):
10068         * alloc.c (Fmake_string):
10069         * alloc.c (Fpurecopy):
10070         * alloc.c (Fmemory_limit):
10071         * buffer.c:
10072         * buffer.c (Fget_buffer):
10073         * buffer.c (Fkill_buffer):
10074         * buffer.c (complex_vars_of_buffer):
10075         * bytecode.c (Fcompiled_function_stack_depth):
10076         * callint.c (Fprefix_numeric_value):
10077         * event-stream.c:
10078         * event-stream.c (Fread_key_sequence):
10079         * casetab.c:
10080         * casetab.c (Fcase_table_p):
10081         * casetab.c (check_case_table):
10082         * casetab.c (Fset_case_table):
10083         * casetab.c (Fset_standard_case_table):
10084         * chartab.c:
10085         * chartab.c (Fchar_table_type):
10086         * chartab.c (Freset_char_table):
10087         * chartab.c (Fget_char_table):
10088         * chartab.c (Fget_range_char_table):
10089         * chartab.c (Fput_char_table):
10090         * chartab.c (Fmap_char_table):
10091         * chartab.c (Fcategory_table_p):
10092         * chartab.c (Fcheck_category_at):
10093         * chartab.c (Fchar_in_category_p):
10094         * chartab.c (Fcategory_table):
10095         * chartab.c (Fcopy_category_table):
10096         * chartab.c (Fset_category_table):
10097         * chartab.c (Fcategory_designator_p):
10098         * chartab.c (Fcategory_table_value_p):
10099         * cmds.c (Fdelete_char):
10100         * cmds.c (Fdelete_backward_char):
10101         * cmds.c (Fself_insert_command):
10102         * cmds.c (Fself_insert_internal):
10103         * console.c (Fvalid_console_type_p):
10104         * console.c (Fcdfw_console):
10105         * console.c (Fconsole_type):
10106         * console.c (Fconsole_name):
10107         * console.c (Fconsole_device_list):
10108         * console.c (Fconsole_on_window_system_p):
10109         * data.c:
10110         * data.c (Feq):
10111         * data.c (Fold_eq):
10112         * data.c (Fsubr_interactive):
10113         * data.c (Fchar_to_int):
10114         * data.c (Fint_to_char):
10115         * data.c (Fsetcar):
10116         * data.c (Fsetcdr):
10117         * data.c (Fnumber_to_string):
10118         * data.c (Fstring_to_number):
10119         * data.c (Frem):
10120         * database.c (mark_database):
10121         * database.c (finalize_database):
10122         * database.c (Fdatabase_live_p):
10123         * database.c (Fdatabasep):
10124         * device-x.c (Fx_get_resource):
10125         * device.c (Fdfw_device):
10126         * dired.c:
10127         * dired.c (Ffile_name_completion):
10128         * dired.c (Ffile_name_all_completions):
10129         * dired.c (Fuser_name_completion):
10130         * dired.c (Fuser_name_completion_1):
10131         * dired.c (Fuser_name_all_completions):
10132         * doc.c (Fdocumentation):
10133         * doc.c (Fdocumentation_property):
10134         * doc.c (Fsubstitute_command_keys):
10135         * editfns.c:
10136         * editfns.c (Fchar_to_string):
10137         * editfns.c (Fstring_to_char):
10138         * editfns.c (Ftemp_directory):
10139         * editfns.c (Finsert_char):
10140         * editfns.c (Fbuffer_substring_no_properties):
10141         * editfns.c (Fnarrow_to_region):
10142         * editfns.c (Fchar_equal):
10143         * editfns.c (Fchar_Equal):
10144         * editfns.c (Ftranspose_regions):
10145         * emacs.c (Fdump_emacs):
10146         * eval.c (Fthrow):
10147         * eval.c (Fcommand_execute):
10148         * eval.c (Fautoload):
10149         * eval.c (Fbacktrace):
10150         * eval.c (Fbacktrace_frame):
10151         * events.c:
10152         * events.c (Fcopy_event):
10153         * events.c (Fcharacter_to_event):
10154         * events.c (Fevent_button):
10155         * events.c (Fevent_process):
10156         * extents.c:
10157         * extents.c (Fnext_extent_change):
10158         * extents.c (Fextent_property):
10159         * faces.c (Ffacep):
10160         * faces.c (Fmake_face):
10161         * file-coding.c:
10162         * file-coding.c (Fencode_shift_jis_char):
10163         * file-coding.c (Fencode_big5_char):
10164         * fileio.c (Ffile_name_directory):
10165         * fileio.c (Ffile_name_nondirectory):
10166         * fileio.c (Ffile_name_as_directory):
10167         * fileio.c (Fdirectory_file_name):
10168         * fileio.c (Ffile_truename):
10169         * fileio.c (Fsubstitute_in_file_name):
10170         * fileio.c (Ffile_modes):
10171         * fileio.c (Fset_file_modes):
10172         * fileio.c (Fset_default_file_modes):
10173         * fileio.c (Fverify_visited_file_modtime):
10174         * floatfns.c (Facos):
10175         * floatfns.c (Fasin):
10176         * floatfns.c (Fatan):
10177         * floatfns.c (Fcos):
10178         * floatfns.c (Fsin):
10179         * floatfns.c (Ftan):
10180         * floatfns.c (Fbessel_j0):
10181         * floatfns.c (Fbessel_j1):
10182         * floatfns.c (Fbessel_jn):
10183         * floatfns.c (Fbessel_y0):
10184         * floatfns.c (Fbessel_y1):
10185         * floatfns.c (Fbessel_yn):
10186         * floatfns.c (Ferf):
10187         * floatfns.c (Ferfc):
10188         * floatfns.c (Flog_gamma):
10189         * floatfns.c (Fexp):
10190         * floatfns.c (Fexpt):
10191         * floatfns.c (Flog):
10192         * floatfns.c (Flog10):
10193         * floatfns.c (Fsqrt):
10194         * floatfns.c (Fcube_root):
10195         * floatfns.c (Facosh):
10196         * floatfns.c (Fasinh):
10197         * floatfns.c (Fatanh):
10198         * floatfns.c (Fcosh):
10199         * floatfns.c (Fsinh):
10200         * floatfns.c (Ftanh):
10201         * floatfns.c (Fabs):
10202         * floatfns.c (Ffloat):
10203         * floatfns.c (Flogb):
10204         * floatfns.c (Fceiling):
10205         * floatfns.c (Ffloor):
10206         * floatfns.c (Fround):
10207         * floatfns.c (Ftruncate):
10208         * floatfns.c (Ffceiling):
10209         * floatfns.c (Fffloor):
10210         * floatfns.c (Ffround):
10211         * floatfns.c (Fftruncate):
10212         * fns.c (Fstring_equal):
10213         * fns.c (Fstring_lessp):
10214         * fns.c (concat2):
10215         * fns.c (concat3):
10216         * fns.c (vconcat2):
10217         * fns.c (vconcat3):
10218         * fns.c (Fsubstring):
10219         * fns.c (Fassoc):
10220         * fns.c (Fold_assoc):
10221         * fns.c (assoc_no_quit):
10222         * fns.c (Fassq):
10223         * fns.c (Fold_assq):
10224         * fns.c (assq_no_quit):
10225         * fns.c (Frassoc):
10226         * fns.c (Fold_rassoc):
10227         * fns.c (Frassq):
10228         * fns.c (Fold_rassq):
10229         * fns.c (rassq_no_quit):
10230         * fns.c (Fremassoc):
10231         * fns.c (remassoc_no_quit):
10232         * fns.c (Fremassq):
10233         * fns.c (remassq_no_quit):
10234         * fns.c (Fremrassoc):
10235         * fns.c (Fremrassq):
10236         * fns.c (remrassq_no_quit):
10237         * fns.c (Fsort):
10238         * fns.c (Fplist_get):
10239         * fns.c (Fplist_put):
10240         * fns.c (Fplist_remprop):
10241         * fns.c (Fplist_member):
10242         * fns.c (Flax_plist_get):
10243         * fns.c (Flax_plist_put):
10244         * fns.c (Flax_plist_remprop):
10245         * fns.c (Flax_plist_member):
10246         * fns.c (Fequal):
10247         * fns.c (Fold_equal):
10248         * fns.c (Frequire):
10249         * fns.c (Fbase64_encode_region):
10250         * fns.c (Fbase64_encode_string):
10251         * fns.c (Fbase64_decode_region):
10252         * frame.c:
10253         * frame.c (frame_matches_frame_spec):
10254         * frame.c (device_matches_device_spec):
10255         * frame.c (next_frame):
10256         * frame.c (previous_frame):
10257         * frame.c (Fnext_frame):
10258         * frame.c (Fprevious_frame):
10259         * frame.c (Fframe_property):
10260         * frame.c (Fset_frame_height):
10261         * frame.c (Fset_frame_size):
10262         * frame.h:
10263         * glyphs.c:
10264         * glyphs.c (if):
10265         * glyphs.c (decode_error_behavior_flag):
10266         * glyphs.c (Fmake_image_instance):
10267         * indent.c (Findent_to):
10268         * intl.c (Fignore_defer_gettext):
10269         * keymap.c (Fkeymapp):
10270         * keymap.c (Flookup_key):
10271         * lread.c:
10272         * lread.c (Fload_internal):
10273         * lread.c (Feval_buffer):
10274         * lread.c (Feval_region):
10275         * macros.c (Fexecute_kbd_macro):
10276         * marker.c (set_marker_internal):
10277         * marker.c (Fset_marker):
10278         * marker.c (set_marker_restricted):
10279         * marker.c (Fcopy_marker):
10280         * marker.c (noseeum_copy_marker):
10281         * menubar.c:
10282         * menubar.c (Fpopup_menu):
10283         * minibuf.c:
10284         * mule-charset.c (Fcharset_name):
10285         * mule-charset.c (Fchar_charset):
10286         * mule-charset.c (Fchar_octet):
10287         * mule-charset.c (Fsplit_char):
10288         * mule-wnnfns.c (Fwnn_open):
10289         * mule-wnnfns.c (Fwnn_dict_comment):
10290         * mule-wnnfns.c (Fwnn_quit_henkan):
10291         * mule-wnnfns.c (Fwnn_word_toroku):
10292         * mule-wnnfns.c (Fwnn_word_sakujo):
10293         * mule-wnnfns.c (Fwnn_word_use):
10294         * mule-wnnfns.c (Fwnn_hindo_set):
10295         * objects.c:
10296         * objects.c (Fmake_color_instance):
10297         * objects.c (Fmake_font_instance):
10298         * print.c (Fwrite_char):
10299         * process.c:
10300         * process.c (mark_process):
10301         * process.c (print_process):
10302         * process.c (get_process_from_usid):
10303         * process.c (Fprocessp):
10304         * process.c (Fprocess_live_p):
10305         * process.c (Fget_process):
10306         * process.c (Fget_buffer_process):
10307         * process.c (get_process):
10308         * process.c (Fprocess_id):
10309         * process.c (Fprocess_name):
10310         * process.c (Fprocess_command):
10311         * process.c (init_process_io_handles):
10312         * process.c (start_process_unwind):
10313         * process.c (Fstart_process_internal):
10314         * process.c (Fopen_multicast_group_internal):
10315         * process.c (Fset_process_window_size):
10316         * process.c (read_process_output):
10317         * process.c (send_process):
10318         * process.c (Fprocess_tty_name):
10319         * process.c (Fset_process_buffer):
10320         * process.c (Fprocess_buffer):
10321         * process.c (Fprocess_mark):
10322         * process.c (set_process_filter):
10323         * process.c (Fset_process_filter):
10324         * process.c (Fprocess_filter):
10325         * process.c (Fprocess_send_region):
10326         * process.c (Fprocess_send_string):
10327         * process.c (exec_sentinel):
10328         * process.c (Fset_process_sentinel):
10329         * process.c (Fprocess_sentinel):
10330         * process.c (status_notify):
10331         * process.c (Fprocess_status):
10332         * process.c (Fprocess_exit_status):
10333         * process.c (process_send_signal):
10334         * process.c (Fprocess_send_eof):
10335         * process.c (deactivate_process):
10336         * process.c (remove_process):
10337         * process.c (Fdelete_process):
10338         * process.c (kill_buffer_processes):
10339         * process.c (Fprocess_kill_without_query):
10340         * process.c (Fprocess_kill_without_query_p):
10341         * rangetab.c:
10342         * rangetab.c (Fget_range_table):
10343         * rangetab.c (Fput_range_table):
10344         * rangetab.c (Fremove_range_table):
10345         * rangetab.c (Fclear_range_table):
10346         * search.c:
10347         * search.c (Fskip_chars_forward):
10348         * search.c (Fskip_chars_backward):
10349         * search.c (Fskip_syntax_forward):
10350         * search.c (Fskip_syntax_backward):
10351         * search.c (search_command):
10352         * search.c (Freplace_match):
10353         * search.c (Fregexp_quote):
10354         * select.c (Fown_selection_internal):
10355         * select.c (Fselection_owner_p):
10356         * select.c (Fselection_exists_p):
10357         * select.c (Fget_selection_internal):
10358         * specifier.c:
10359         * symbols.c:
10360         * symbols.c (Fintern):
10361         * symbols.c (Fintern_soft):
10362         * symbols.c (Funintern):
10363         * symbols.c (Fapropos_internal):
10364         * symbols.c (Fset_default):
10365         * syntax.c:
10366         * syntax.c (Fsyntax_table_p):
10367         * syntax.c (Fcopy_syntax_table):
10368         * syntax.c (Fset_syntax_table):
10369         * syntax.c (Fchar_syntax):
10370         * syntax.c (syntax_match):
10371         * syntax.c (Fmatching_paren):
10372         * syntax.c (Fforward_word):
10373         * syntax.c (scan_lists):
10374         * syntax.c (Fscan_lists):
10375         * syntax.c (Fscan_sexps):
10376         * syntax.c (Fparse_partial_sexp):
10377         * toolbar.c (Fcheck_toolbar_button_syntax):
10378         * tooltalk.doc:
10379         * window.c:
10380         * window.c (Fwindowp):
10381         * window.c (Fwindow_live_p):
10382         * window.c (Fwindow_point):
10383         * window.c (Fdelete_window):
10384         * window.c (Fnext_window):
10385         * window.c (Fprevious_window):
10386         * window.c (Fother_window):
10387         * window.c (window_loop):
10388         * window.c (Fget_lru_window):
10389         * window.c (Fsplit_window):
10390         * window.c (Fenlarge_window):
10391         * window.c (Fenlarge_window_pixels):
10392         * window.c (Fshrink_window):
10393         * window.c (Fshrink_window_pixels):
10394         * window.c (change_window_height):
10395         * window.c (Fwindow_configuration_p):
10396         * window.c (Fcurrent_window_configuration):
10397         * window.h:
10398         * casefiddle.c (casify_object):
10399         * casefiddle.c (Fupcase):
10400         * casefiddle.c (Fdowncase):
10401         * casefiddle.c (Fcapitalize):
10402         * casefiddle.c (Fupcase_initials):
10403         * casefiddle.c (casify_region_internal):
10404         * casefiddle.c (casify_region):
10405         * casefiddle.c (Fupcase_region):
10406         * casefiddle.c (Fdowncase_region):
10407         * casefiddle.c (Fcapitalize_region):
10408         * casefiddle.c (Fupcase_initials_region):
10409         * casefiddle.c (Fupcase_word):
10410         * casefiddle.c (Fdowncase_word):
10411         * casefiddle.c (Fcapitalize_word):
10412         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10413         Replace 0 with '\0' when working with bytes.
10414         Replace initial "(" with "\(" in docstrings.
10415
10416 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10417
10418         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10419
10420         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10421
10422 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10423
10424         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10425
10426 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10427
10428         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10429         correctly.
10430
10431 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10432
10433         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10434         (inhibit_auto_save_session): New variable.
10435         (vars_of_fileio): Declare and initialize them.
10436         * fileio.c (Fdo_auto_save): Don't create session file if
10437         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10438
10439 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10440
10441         * sgiplay.c (play_internal): C++ compilability.
10442         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10443         * callproc.c (Fold_call_process_internal):
10444         Remove unused vars `env', `first'.
10445         * scrollbar.c (update_scrollbar_instance):
10446         #### unused var `current_window'.
10447         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10448         etc. within #ifdef NOT_YET.
10449         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10450         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10451         * specifier.c (specifier_instance):
10452         #### unused var `tag'.
10453         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10454
10455 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10456
10457         * fns.c (Fbutlast):
10458         * fns.c (list_sort):
10459         * fns.c (Ffillarray):
10460         * fns.c (bytecode_nconc2):
10461         * fns.c (Fnconc):
10462         * fns.c (mapcar1):
10463         * fns.c (Fmapconcat):
10464         Be pedantically 64-bit correct.  For the time when someone will
10465         want to have a list with length > 2**32.
10466
10467         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10468         Work around MIPSpro compiler bug.
10469
10470         * process-unix.c (unix_kill_child_process): Add snarky comment.
10471         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10472
10473         * config.h.in: Oops, _getpt ==> _getpty
10474
10475 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10476
10477         * config.h.in:
10478         * regex.c:
10479         Use void*, not char*, as return type of alloca().
10480
10481         * alloc.c (free_marker): Side effect inside assert expression!
10482
10483 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10484
10485         * mule-charset.c (Fset_charset_ccl_program): To check
10486         if the given ccl program is valid, use setup_ccl_program()
10487         instead of CHECK_VECTOR().
10488         (Fmake_charset): Likewise.
10489
10490 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10491
10492         * faces.c (get_extent_fragment_face_cache_index):
10493         Fix cachel.merged_faces memory leak.
10494
10495 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10496
10497         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10498         Reset MSB of octets obtained by DECODE_SJIS
10499         because of the incompatibility with Emacs.
10500         (ccl_driver)<CCL_ENCODE_SJIS>:
10501         Set MSB of octets before passing them to
10502         ENCODE_SJIS because of the incompatibility
10503         with Emacs.
10504
10505 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10506
10507         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10508         (DECLARE_LRECORD): Undo the last change.
10509         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10510
10511 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10512
10513         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10514         the implementation to lrecord_implementations_table.
10515
10516 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10517
10518         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10519         initial value of `lrecord_type_##c_name' and
10520         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10521         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10522         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10523         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10524         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10525
10526 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10527
10528         * miscplay.c (sndcnv8S_2mono):
10529         (sndcnv2monounsigned):
10530         (sndcnvULaw_2linear):
10531         (sndcnv16swap):
10532         Remove implementation-defined behavior.
10533
10534 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10535
10536         * input-method-xlib.c: Warning suppression.
10537
10538 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10539
10540         * mule-ccl.c: Sync up with Emacs 21.0.90.
10541         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10542         Do nothing.
10543         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10544         Likewise.
10545         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10546         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10547         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10548         leading char belongs to official 2-dimensional charset.
10549         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10550         write the given character as is.  Otherwise,
10551         if it is a multibyte char, convert it by
10552         non_ascii_set_charptr_emchar, then write it.
10553         (CCL_WRITE_STRING): Likewise.
10554         (ccl_get_compiled_code): New function.
10555         (setup_ccl_program): When ccl_prog is invalid,
10556         return -1.
10557         (Fregister_code_conversion_map): New function.
10558         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10559
10560         * mule-ccl.h: Sync up with Emacs 21.0.90.
10561         (Fregister_ccl_program): export it.
10562
10563         * redisplay-msw.c (separate_textual_runs):
10564         If ccl program is not valid, don't do ccl conversion.
10565
10566         * redisplay-x.c (separate_textual_runs): Ditto.
10567
10568         * file-coding.c (Fmake_coding_system):
10569         When type is ccl and value is vector, register it
10570         with a proper symbol.  And checks whether the
10571         given ccl program is valid.
10572         (mule_decode): When calling ccl_driver, if src indicates
10573         NULL pointer, set an empty string instead.
10574         (mule_encode): Likewise.
10575
10576 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10577
10578         The following large batch of changes gets us back to a state of
10579         C++ compilability.  Extbyte is now a char, which means that
10580         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10581
10582         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10583
10584         * sound.c (Fplay_sound): Type correctness.
10585
10586         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10587         (x_get_window_property): Type correctness.
10588         (receive_incremental_selection): unsigned char ==> Extbyte
10589         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10590         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10591         (Fx_store_cutbuffer_internal): Type correctness.
10592
10593         * process-unix.c (try_to_initialize_subtty): Type correctness.
10594
10595         * objects-x.c (x_print_color_instance): Type correctness.
10596         (x_print_font_instance): Type correctness.
10597         (x_list_fonts): SExtbyte ==> Extbyte.
10598         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10599         (x_find_charset_font): SExtbyte ==> Extbyte.
10600         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10601         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10602         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10603         Use bufbyte_strcmp.
10604
10605         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10606         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10607         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10608         (BYTE_C0_P): Use bit ops for char-signedness safety.
10609         (BYTE_C1_P): Use bit ops for char-signedness safety.
10610         (CHARSET_BY_LEADING_BYTE):
10611         (CHARSET_BY_ATTRIBUTES):
10612         Always use inline function.
10613         Use type_checking_assert.
10614         Hide chlook.
10615
10616         * mule-charset.c (non_ascii_charptr_copy_char):
10617         Modify to work with both ASCII and non-ASCII characters.
10618         Improve docs and variable names.
10619         Replace over-clever fall-through switch with a simple loop.
10620         (Lstream_get_emchar_1):
10621         Replace over-clever fall-through switch with a simple loop.
10622
10623         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10624         Warning suppression.
10625
10626         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10627         the return value of Lstream_getc, which could be EOF as well.
10628
10629         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10630
10631         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10632         APIs can be used on Extbytes without casts.  Risky!
10633         (SExtbyte): Remove.
10634         (UExtbyte): Remove.
10635
10636         * input-method-xlib.c (XIM_init_device):
10637         Use Xlib.h instead of IntrinsicP.h.
10638         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10639         which will break in X11R7.
10640         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10641         to call XRegisterIMInstantiateCallback with correct types.
10642
10643         * gui-x.c (button_item_to_widget_value): Type correctness.
10644
10645         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10646
10647         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10648         (xbm_instantiate_1): Type correctness.
10649         (BUILD_GLYPH_INST):  Type correctness.
10650
10651         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10652
10653         * file-coding.c:
10654         (decode_coding_sjis):
10655         (decode_coding_big5):
10656         (decode_coding_ucs4):
10657         (decode_coding_utf8):
10658         (decode_coding_iso2022):
10659         (decode_coding_no_conversion):
10660         Make all decoding functions take an Extbyte * arg.
10661         (encode_coding_sjis):
10662         (encode_coding_big5):
10663         (encode_coding_ucs4):
10664         (encode_coding_utf8):
10665         (encode_coding_iso2022):
10666         (encode_coding_no_conversion):
10667         Make all encoding functions take a Bufbyte * arg.
10668         Use size_t instead of unsigned int for memory sizes.
10669         Only cast to unsigned char whenever dereferencing Extbyte *.
10670
10671         * doc.c (unparesseuxify_doc_string): Type correctness.
10672
10673         * console-x.c (split_up_display_spec):
10674         Rewrite without using details of internal string representation.
10675         (x_semi_canonicalize_device_connection): Type correctness.
10676
10677         * config.h.in:
10678         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10679         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10680         (HAVE_XFREE386): Removed.
10681
10682         * buffer.h (DEC_CHARPTR): `const' correctness.
10683         (bufbyte_strcmp): New.
10684         (bufbyte_memcmp): New.
10685
10686         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10687
10688         * buffer.h (XCHAR_OR_CHAR_INT):
10689         Always use inline function.
10690         Remove redundant type checking assert() - XINT will abort quite nicely.
10691
10692 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10693
10694         * search.c (Freplace_match): Set newtext to an empty string.
10695
10696 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10697
10698         * s/decosf1-3.h: Remove #include of stropts.h
10699         * s/ptx.h: Remove #include of stropts.h
10700         * s/usg5-4.h: Remove #include of stropts.h
10701         * sysproc.h:
10702         * config.h.in:
10703         Use stropts.h, not sys/stropts.h.
10704         Use strtio.h, not sys/strtio.h.
10705
10706 2000-10-04  Martin Buchholz <martin@xemacs.org>
10707
10708         * XEmacs 21.2.36 is released.
10709
10710 2000-09-21  Andy Piper  <andy@xemacs.org>
10711
10712         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10713         changes still involve copying the widget tree.
10714         (update_widget_face): make sure a change is register in the widget
10715         tree. Call update_tab_widget_face appropriately.
10716         (update_tab_widget_face): ditto.
10717         (x_tab_control_redisplay): make sure non-structural changes still
10718         involve copying the widget tree.
10719
10720 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10721
10722         * lread.c (locate_file): Check the path element is non-nil.
10723
10724 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10725
10726         * lisp.h: Warning suppression for SCO compilers.
10727
10728         * redisplay-tty.c (reset_tty_modes): Fix crash.
10729         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10730
10731 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10732
10733         Big signal/process handling overhaul.  Bugs fixed:
10734         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10735         M-x comint-kill-subjob should work for both values nil and t of
10736         process-connection-type. It was broken on most platforms.
10737         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10738         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10739         * process-unix.c: Signal/Process handling overhaul.
10740         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10741         (allocate_pty): Use all available modern methods of allocating
10742         ptys, falling back to old style BSD allocation as a last resort.
10743         Use allegedly more secure Unix98 pty allocation by default.
10744         (allocate_pty_the_old_fashioned_way): New. the last resort.
10745         (unix_create_process): Push ptem, ldterm, ttcompat where
10746         available.  Autoconfiscate.
10747         (try_to_initialize_subtty): New.
10748         (unix_kill_child_process): Proper signal handling for ptys on most
10749         platforms, using special knowledge of AIX, BSD, etc...
10750         (unix_create_process): Always disconnect_controlling_terminal() for
10751         subprocesses, whether using ptys or not.
10752         * process.h: Remove old getpt-dependent PTY code.
10753         * process.c (Fprocess_send_signal): New, obvious generic function.
10754         (decode_signal): New.
10755         (Finterrupt_process):
10756         (Fkill_process):
10757         (Fquit_process):
10758         (Fstop_process):
10759         (Fcontinue_process):
10760         (Fsignal_process): Use decode_signal.
10761         (process_send_signal):
10762         Many docstring corrections.
10763         Allow any signal to be sent to a process object.
10764         * config.h.in: Add symbols for big signal/process overhaul.
10765         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10766         * sysproc.h: Include process-related headers, where available:
10767         sys/stropts.h sys/strtio.h pty.h libutil.h
10768         * s/irix4-0.h:
10769         * s/irix5-0.h:
10770         * s/cygwin32.h:
10771         * s/gnu.h:
10772         * s/linux.h:
10773         * s/hpux.h:
10774         * s/aix3-1.h:
10775         Remove old S&M pty stuff.
10776         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10777         * systty.h: Simplify cpp hackery, improve comments.
10778         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10779
10780         * editfns.c (Fformat_time_string):
10781         Be a little more paranoid with the return value of ctime.
10782
10783         * fileio.c (check_executable):
10784         (check_writable):
10785         Use symbolic constants X_OK, W_OK.
10786
10787         * console-x.c (split_up_display_spec): Fix a warning.
10788
10789 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10790
10791         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10792         * ntproc.c (sys_spawnve): make_string ==> build_string
10793         Small clarity improvements.
10794
10795 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10796
10797         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10798
10799         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10800
10801         * config.h.in (HAVE_STRCASECMP): Remove.
10802
10803 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10804
10805         * redisplay-output.c (redisplay_output_pixmap):
10806         Cleaner and possibly more 64-bit correct code.
10807
10808 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10809
10810         * dumper.c (pdump_load_finish): move restoration of
10811         `noninteractive1' to emacs.c (main_1).
10812         * emacs.c (main_1): protect LISP-visible command-line flags
10813         from pdump_load().
10814
10815 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10816
10817         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10818         DUMP_TARGET instead of literal program names.
10819
10820 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10821
10822         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10823
10824 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10825
10826         * *: Spelling mega-patch
10827
10828 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10829
10830         * fns.c (bad_bad_turtle):
10831         Delete "Eek!" comment, since we fixed the bug to which it refers.
10832
10833 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10834
10835         * alloca.c: Replace REGISTER with register.
10836
10837 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10838
10839         * file-coding.c (ucs_to_char): Use countof.
10840
10841 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10842
10843         * file-coding.c: (ucs_to_char):
10844         (complex_vars_of_file_coding):
10845         Use countof instead of sizeof.
10846         Use CHECK_NATNUM instead of CHECK_INT.
10847
10848         * sysdep.c (strcasecmp): Remove.
10849         * device-x.c (ascii_strcasecmp): New.
10850         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10851         Avoid using non-standard non-portable strcasecmp.
10852
10853 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10854
10855         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10856         * font-lock.c: remove reference to emacsfns.h.
10857         * search.c: small doc improvement.
10858         * event-Xt.c: correct file names in comments.
10859         * console-x.h Correct file names in comments.
10860         * frame.c: Correct file names in comments.
10861         * event-stream.c: remove Energize from comments.
10862
10863 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10864
10865         * symeval.h (DEFERROR_STANDARD):
10866         (DEFERROR):
10867         (DEFSYMBOL):
10868         (DEFSYMBOL_NO_DUMP):
10869         (DEFSYMBOL_MULTIWORD_PREDICATE):
10870         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10871         (DEFKEYWORD):
10872         The construct &##name is not sensible C.
10873         Fixes compilation errors with Unixware native compiler.
10874
10875 2000-09-14  Martin Buchholz  <martin@xemacs.org>
10876
10877         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10878         (next_frame_internal): Removed.  We now just have next_frame.
10879         (next_frame):
10880         Write a simpler and cleaner one-pass algorithm.
10881         Remove called_from_delete_device arg and #ifdefed-out code.
10882         (previous_frame):
10883         Renamed from prev_frame.  Update callers.
10884         Cleaned up to have an analogous implementation to next_frame.
10885         (other_visible_frames_internal): Remove the
10886         called_from_delete_device bogus arg, and hence, remove this
10887         function.  Just use other_visible_frames().
10888
10889         * window.c (Fnext_window):
10890         Prettify docstring.
10891         Since next_frame() is guaranteed to return a frame, remove check
10892         for nil inserted in previous patch.
10893         (Fprevious_window):
10894         Prettify docstring.
10895         Make code look more like Fnext_window.
10896         (window_loop):
10897         Respect the `console' arg when iterating through windows.
10898         Fixes bug: (get-buffer-window buffer t device) not respecting
10899         the `device' arg.
10900         This function needs more work, as others have pointed out.
10901
10902         * frame.h: Rename prev_frame to previous_frame.
10903         device_matches_console_spec no longer takes a `frame' arg.
10904
10905         * s/gnu.h:
10906         * s/linux.h:
10907         * s/hpux.h:
10908         Use EMACS_BLOCK_SIGNAL instead of sigblock.
10909         From "Golubev I. N." <gin@mo.msk.ru>.
10910
10911         * make-src-depend: Fix typo.
10912
10913 2000-09-13  Martin Buchholz  <martin@xemacs.org>
10914
10915         * window.c (Fnext_window):
10916         next_frame() might return nil, not a frame.
10917         Fixes this crash:
10918         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10919
10920         * frame.c (next_frame_internal):
10921         We've passed a frame if we've passed its device.
10922         Fixes this crash:
10923         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10924 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10925
10926 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10927
10928         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10929         Allow option to suppress accelerators in menu/dialog items.
10930         (populate_or_checksum_helper): Pass dialog title through above.
10931
10932 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10933
10934         * event-msw.c (mswindows_key_to_emacs_keysym):
10935         Add "pause" key, fix "menu" key.
10936
10937 2000-09-09  Martin Buchholz  <martin@xemacs.org>
10938
10939         * eval.c (reinit_vars_of_eval):
10940         Increase max_lisp_eval_depth to 1000,
10941         required for thai-xtis.el to byte-compile under some circumstances.
10942
10943 2000-09-04  Martin Buchholz  <martin@xemacs.org>
10944
10945         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10946         From Kenichi Handa.
10947
10948 2000-09-01  Martin Buchholz  <martin@xemacs.org>
10949
10950         * make-src-depend: Make the generated Makefiles smaller.
10951
10952         * s/hpux.h (SETUP_SLAVE_PTY):
10953         Provide a %d in the format string for the errno argument.
10954
10955         * editfns.c (Ftemp_directory):
10956         Warning fix.
10957         Avoid buffer overrun on very long file name.
10958
10959         * input-method-xlib.c (XIM_init_device):
10960         6th parameter of XRegisterIMInstantiateCallback has different
10961         pointer types on different OSes, so simply cast to (void *).
10962
10963         * unexhp9k800.c: Warning fixes.  Fiddly changes.
10964
10965         * sysdll.c (dll_open):
10966         shl_load will hang hard if passed a NULL filename.
10967         Simply return NULL for compatibility with dlopen.
10968         * sysdll.c: Conform to XEmacs coding standards.
10969
10970         * sysdep.c (get_pty_max_bytes):
10971         Support pty input lines longer than 512 bytes on HP-UX 10.20.
10972
10973 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10974
10975         * tooltalk.c: Add #include <syssignal.h>
10976
10977 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
10978
10979         * s/hpux.h: Don't use undefined function sigunblock().
10980
10981 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10982
10983         * config.h.in: Add HAVE_BALLOON_HELP.
10984         * emacs.c: Use HAVE_BALLOON_HELP.
10985         * Makefile.in.in (x_objs):
10986         Make Balloon Help conditional on finding shape.h.
10987
10988 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
10989
10990         * syntax.c (regex_emacs_buffer_p): New variable.
10991         * syntax.h (regex_emacs_buffer_p): extern.
10992         * search.c (looking_at_1):
10993         (string_match_1):
10994         (fast_string_match):
10995         (search_buffer): Set regex_emacs_buffer_p.
10996         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
10997         when before_dot, at_dot, after_dot.
10998
10999 2000-08-23  Andy Piper  <andy@xemacs.org>
11000
11001         * gui-x.c (popup_selection_callback): Only set action_occurred
11002         when we really have an image instance.
11003         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11004
11005 2000-08-23  Andy Piper  <andy@xemacs.org>
11006
11007         * gui-msw.c (mswindows_handle_gui_wm_command): set
11008         action_occurred.
11009         * gui-x.c (popup_selection_callback): ditto.
11010
11011         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11012         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11013         (struct Lisp_Image_Instance): add action_occurred flag.
11014
11015         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11016         (image_instance_changed): ditto.
11017         (reset_frame_subwindow_instance_cache): only unmap windows - do
11018         not remove them from the cache also.
11019
11020         * glyphs-widget.c (tab_control_update): better debug.
11021         (progress_gauge_update): ditto.
11022         (layout_update): ditto.
11023         (layout_instantiate): ditto.
11024         (tab_control_order_only_changed): cope with null pending items.
11025
11026         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11027         debug. Force selection of an item when an action occurred. Cope
11028         with null pending_items.
11029         (mswindows_progress_gauge_redisplay): better debug.
11030         * glyphs-x.c (x_tab_control_redisplay): ditto.
11031
11032         * redisplay.c (redisplay_frame): reset the frame cache if the
11033         frame is garbaged.
11034
11035         * window.c (Fset_window_configuration): potentially re-enable
11036         frame cache reset.
11037         (window_unmap_subwindows): need to finalize instances here since
11038         it is only used in mark_window_as_deleted.
11039
11040 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11041
11042         * nas.c (SndOpenDataForReading):
11043         nas.c (WaveOpenDataForReading):
11044         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11045         Somehow escaped from the 2000-08-14 patch.
11046
11047 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11048
11049         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11050         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11051
11052 2000-08-21  Andy Piper  <andy@xemacs.org>
11053
11054         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11055         window if it is not already displayed.
11056
11057         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11058         it is not already displayed.
11059
11060         * window.c (Fset_window_configuration): don't reset the frame
11061         cache.
11062
11063         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11064         instances from the frame cache if we are actually finalizing them.
11065         (reset_frame_subwindow_instance_cache): reset frame cache only
11066         after unmapping everything.
11067         (map_subwindow): set displayed flag after mapping.
11068
11069 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11070
11071         * data.c (indirect_function):
11072         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11073
11074         * eval.c (function_argcount):
11075         Use original function when signaling errors.
11076
11077 2000-08-18  Andy Piper  <andy@xemacs.org>
11078
11079         * frame.c (delete_frame_internal): use new
11080         free_frame_subwindow_instances name.
11081
11082         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11083         (add_tab_item): make return type correct.
11084         (mswindows_tab_control_instantiate): assert index of tab.
11085         (mswindows_tab_control_redisplay): Re-code to use
11086         gui_item_equal_sans_selected and gui_item_list_find_selected.
11087
11088         * glyphs-widget.c (tab_control_update): Correct comment.
11089
11090         * window.c (window_unmap_subwindows): use new
11091         unmap_subwindow_instance_cache_mapper.
11092         (window_unmap_subwindows_cache_mapper): deleted.
11093         (Fset_window_configuration): comparisons should now be with
11094         EQ. Preserve the subwindow instance cache across configuration
11095         changes.
11096         (allocate_window): ditto.
11097         (make_dummy_parent): ditto.
11098
11099         * glyphs.c (free_frame_subwindow_instances): rename from
11100         free_frame_subwindow_instance_cache. finalize all instances rather
11101         than just those in the display cache.
11102         (finalize_all_subwindow_instances): walk windows unmapping and
11103         finalizing subwindows.
11104         (unmap_subwindow_instance_cache_mapper): moved from
11105         window.c. Allow finalization as well as unmapping.
11106
11107         * gui.c (gui_item_list_find_selected): new function.
11108
11109         * gui.h (gui_item_list_find_selected): declare.
11110
11111         * glyphs-x.c (x_tab_control_redisplay): pick tab
11112         explicitly. Re-code to use gui_item_equal_sans_selected and
11113         gui_item_list_find_selected.
11114
11115         * glyphs-x.h: add lwlib-utils.h
11116
11117         * buffer.c (Frecord_buffer): undo previous change.
11118
11119 2000-08-09  Vin Shelton  <acs@xemacs.org>
11120
11121         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11122         possible.  Create temporary files more securely.  The patch was
11123         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11124         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11125         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11126         for details.
11127
11128 2000-08-07  Ben Wing  <ben@xemacs.org>
11129
11130         * getloadavg.c: remove duplicate (and windows-breaking)
11131         includes of fcntl.h and sys/file.h.
11132
11133         * nt.c: remove duplicate getloadavg() definition.
11134
11135         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11136         encodings.
11137
11138 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11139
11140         * eval.c (function_argcount): If function needs to be autoloaded
11141         actually use the loaded definition.
11142         GCPRO function.
11143
11144 2000-08-05  Ben Wing  <ben@xemacs.org>
11145
11146         * getloadavg.c: add prototype for getloadavg().  remove
11147         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11148         of the code).  remove duplicate header includes.
11149
11150         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11151
11152         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11153         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11154         useful load average.
11155
11156         * alloc.c (reinit_alloc_once_early): removed references to
11157         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11158         the lisp vars are the only things referencing the malloc_sbrk_*
11159         vars, and they were already if 0'd out.  these vars only exist
11160         in the older malloc.c, which is basically unused, and they're
11161         only for informational purposes.
11162
11163         * m\*.h: removed useless VIRT_ADDR_VARIES.
11164
11165         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11166
11167 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11168
11169         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11170         color if the image is a mono pixmap.
11171
11172 2000-07-30  Ben Wing  <ben@xemacs.org>
11173
11174         * Makefile.in.in (release):
11175         Remove stray @.
11176
11177         * buffer.c (directory_is_current_directory):
11178         * dired-msw.c (mswindows_get_files):
11179         * dired.c:
11180         * dired.c (Fdirectory_files):
11181         * dired.c (file_name_completion_stat):
11182         * dired.c (Ffile_attributes):
11183         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11184         preprocessor tricks, to avoid problems on some machines
11185         (e.g. SCO).
11186
11187         * callproc.c (egetenv): GC docs.
11188
11189         * console-msw.h:
11190         * console-msw.h (struct mswindows_dialog_id):
11191         * lrecord.h (lrecord_type):
11192         New object for use with MSW dialogs.
11193
11194         * console.h (struct console_methods):
11195         New enable/disable frame methods, for proper modal dialogs.
11196
11197         * device-msw.c (msprinter_default_printer): Fix to follow
11198         proper Mule conventions.
11199
11200         * device-msw.c:
11201         * device-msw.c (signal_open_printer_error):
11202         * device-msw.c (msprinter_init_device):
11203         * device-msw.c (ensure_not_printing):
11204         * device-msw.c (plist_get_margin):
11205         * device-msw.c (Fmsprinter_select_settings):
11206         * device-msw.c (finalize_devmode):
11207         * device-msw.c (Fmsprinter_settings_despecialize):
11208         * device-msw.c (signal_enum_priner_error):
11209         * extents.c (decode_extent):
11210         * extents.c (decode_map_extents_flags):
11211         * extents.c (decode_extent_at_flag):
11212         * extents.c (Fextent_at):
11213         * extents.c (Fextents_at):
11214         * extents.c (symbol_to_glyph_layout):
11215         [[[[2]]]] Use structured errors.
11216
11217         * dialog-msw.c:
11218         * dialog-msw.c (mswindows_is_dialog_msg):
11219         * dialog-msw.c (mark_mswindows_dialog_id):
11220         * dialog-msw.c (dialog_proc):
11221         * dialog-msw.c (handle_question_dialog_box):
11222         * dialog-msw.c (syms_of_dialog_mswindows):
11223         Define new object to clean up marking; use it as a dialog identifier.
11224         Call new delete-dialog-box-hook.
11225
11226         * dialog-x.c (dbox_selection_callback):
11227         * dialog-x.c (dbox_descriptor_to_widget_value):
11228         * dialog-x.c (x_make_dialog_box_internal):
11229         Call new delete-dialog-box-hook.
11230         Return an id.
11231
11232         * dialog.c:
11233         * dialog.c (syms_of_dialog):
11234         * dialog.c (vars_of_dialog):
11235         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11236
11237         * eval.c:
11238         * eval.c (signal_call_debugger):
11239         when noninteractive, output stack traces on the console instead
11240         of in a (never-seen) buffer.
11241
11242         * eval.c (signal_type_error):
11243         * eval.c (invalid_argument_2):
11244         * lisp.h:
11245         new funs for use w/structured errors.
11246
11247         * event-Xt.c:
11248         * event-Xt.c (x_to_emacs_keysym):
11249         * event-Xt.c (describe_event):
11250         * event-Xt.c (emacs_Xt_event_handler):
11251         * event-Xt.c (vars_of_event_Xt):
11252         * event-msw.c:
11253         * event-msw.c (mswindows_wnd_proc):
11254         * event-msw.c (vars_of_event_mswindows):
11255         rename {x,mswindows}-debug-events to debug-{}-events for
11256         consistency with other debug-foo variables.
11257
11258         * event-stream.c:
11259         document next-event more clearly.
11260
11261         * fileio.c (Ffile_name_directory):
11262         * fileio.c (Ffile_name_nondirectory):
11263         * fileio.c (Funhandled_file_name_directory):
11264         * fileio.c (file_name_as_directory):
11265         * fileio.c (Ffile_name_as_directory):
11266         * fileio.c (directory_file_name):
11267         * fileio.c (Fdirectory_file_name):
11268         * fileio.c (Fmake_temp_name):
11269         * fileio.c (Ffile_truename):
11270         * fileio.c (Fsubstitute_in_file_name):
11271         * fileio.c (expand_and_dir_to_file):
11272         * fileio.c (barf_or_query_if_file_exists):
11273         * fileio.c (check_executable):
11274         * fileio.c (Ffile_exists_p):
11275         * fileio.c (Ffile_writable_p):
11276         * fileio.c (Ffile_directory_p):
11277         * fileio.c (Ffile_regular_p):
11278         * fileio.c (Ffile_modes):
11279         * fileio.c (Ffile_newer_than_file_p):
11280         * fileio.c (Fverify_visited_file_modtime):
11281         * fileio.c (Fset_visited_file_modtime):
11282         * fileio.c (auto_save_1):
11283         (1). (2).
11284         fix up gcpro's.
11285
11286         * frame-msw.c:
11287         * frame-msw.c (mswindows_init_frame_1):
11288         * frame-msw.c (mswindows_enable_frame):
11289         * frame-msw.c (error_frame_unsizable):
11290         * frame-msw.c (msprinter_init_frame_1):
11291         * frame-msw.c (msprinter_init_frame_3):
11292         * frame-msw.c (console_type_create_frame_mswindows):
11293         (2).
11294         implement new enable/disable frame methods.
11295
11296         * frame-x.c:
11297         * frame-x.c (x_enable_frame):
11298         * frame-x.c (console_type_create_frame_x):
11299         implement new enable/disable frame methods.
11300
11301         * frame.c:
11302         * frame.c (Fdisable_frame):
11303         * frame.c (syms_of_frame):
11304         * frame.h (struct frame):
11305         implement new enable/disable frame methods/functions.
11306
11307         * general-slots.h:
11308         add initial-focus.
11309
11310         * glyphs-msw.c (mswindows_widget_instantiate):
11311         comment that initial-focus should be implemented.
11312
11313         * glyphs-widget.c:
11314         * glyphs-widget.c (check_valid_instantiator):
11315         * glyphs-widget.c (check_valid_orientation):
11316         * glyphs-widget.c (check_valid_tab_orientation):
11317         * glyphs-widget.c (check_valid_justification):
11318         * glyphs-widget.c (check_valid_border):
11319         * glyphs-widget.c (check_valid_callback):
11320         * glyphs-widget.c (check_valid_int_or_function):
11321         * glyphs-widget.c (check_valid_string_or_vector):
11322         * glyphs-widget.c (check_valid_item_list_1):
11323         * glyphs-widget.c (widget_validate):
11324         * glyphs-widget.c (combo_box_validate):
11325         * glyphs-widget.c (widget_instantiate):
11326         * glyphs-widget.c (syms_of_glyphs_widget):
11327         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11328         * glyphs-widget.c (image_instantiator_combo_box):
11329         * glyphs-widget.c (image_instantiator_scrollbar):
11330         * glyphs-widget.c (image_instantiator_tab_control):
11331         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11332         (2).
11333         support (unimplemented) keyword initial-focus.
11334         reindent long macros.
11335
11336         * glyphs-x.c (x_redisplay_widget):
11337         * glyphs-x.c (x_button_instantiate):
11338         * glyphs-x.c (x_button_redisplay):
11339         * glyphs-x.c (x_progress_gauge_instantiate):
11340         * glyphs-x.c (x_edit_field_instantiate):
11341         * glyphs-x.c (x_combo_box_instantiate):
11342         * glyphs-x.c (x_tab_control_instantiate):
11343         * glyphs-x.c (x_label_instantiate):
11344         * gui-x.c:
11345         * gui-x.c (button_item_to_widget_value):
11346         * gui-x.c (gui_items_to_widget_values_1):
11347         * gui-x.c (gui_item_children_to_widget_values):
11348         * gui-x.c (gui_items_to_widget_values):
11349         * gui-x.h:
11350         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11351         add new flag to gui-parsing routines to indicate whether
11352         accelerator specs should be supported.
11353
11354         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11355
11356         * glyphs.h (struct Lisp_Image_Instance):
11357         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11358         add initial-focus flag.
11359
11360         * gui.c:
11361         * gui.c (syms_of_gui):
11362         * gui.c (vars_of_gui):
11363         clean up menu-no-selection-hook.
11364
11365         * gui.h:
11366         support delete-dialog-box-hook.
11367
11368         * lread.c (Fload_internal):
11369         * lread.c (locate_file_in_directory_mapper):
11370         (1).
11371
11372         * lrecord.h:
11373         * lrecord.h (struct toolbar_button):
11374         * lrecord.h (syms_of_toolbar):
11375         document how to create a new object.
11376
11377         * menubar-msw.c (mswindows_char_is_accelerator):
11378         may be called on frames w/o menus.
11379
11380         * menubar.c (vars_of_menubar):
11381         clean up :filter docs.
11382
11383         * nt.c (readdir):
11384         * ntproc.c:
11385         (1).
11386
11387         * process-nt.c:
11388         * process-nt.c (validate_signal_number):
11389         * process-nt.c (signal_cannot_launch):
11390         * process-nt.c (nt_create_process):
11391         * process-nt.c (nt_send_process):
11392         * process-nt.c (nt_kill_child_process):
11393         * process-nt.c (nt_open_network_stream):
11394         * process-nt.c (syms_of_process_nt):
11395         (2).
11396         delete quote-handling.  call new lisp code that does it better.
11397
11398         * process-unix.c (connect_to_file_descriptor):
11399         * process-unix.c (allocate_pty):
11400         * process-unix.c (unix_send_process):
11401         * process-unix.c (unix_kill_child_process):
11402         * process-unix.c (unix_open_network_stream):
11403         * process-unix.c (unix_open_multicast_group):
11404         (1). (2).
11405
11406         * process.c:
11407         * process.c (Fstart_process_internal):
11408         (2).  need to canonicalize process path even if absolute.
11409
11410         * select-msw.c (symbol_to_ms_cf):
11411         * select-msw.c (ms_cf_to_symbol):
11412         * select-msw.c (cf_is_autofreed):
11413         * select-msw.c (mswindows_destroy_selection):
11414         * select.c:
11415         * select.c (syms_of_select):
11416         * select.h:
11417         support dibv5, fix bugs. (from Mike Alexander)
11418
11419         * select.c (Fget_selection_internal):
11420         * select.c (select_convert_out):
11421
11422         * sysdep.c:
11423         * sysdep.c (xemacs_stat):
11424         renamed.
11425
11426         * sysdep.c (mkdir):
11427         * sysdep.c (rmdir):
11428         but keep original stat() here because we provide encapsulation
11429         around these funs.
11430
11431         * sysfile.h:
11432         * sysfile.h (fstat):
11433         remove stat garbage.
11434
11435         * syswindows.h:
11436         fix X/MSW conflict.
11437         don't include tchar.h.  it's inappropriate because it makes
11438         compile-time distinctions when we want runtime distinctions.
11439         (we provide our own tchar replacements)
11440
11441         * toolbar.c:
11442         use default object printer for toolbar-button.
11443
11444         * unexcw.c:
11445         make sure we don't encapsulate.
11446
11447         * window.c (vars_of_window):
11448         emphasize that temp-buffer-show-hook is obsolete.
11449
11450 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11451
11452         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11453         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11454
11455         * events.c (Fevent_timestamp_lessp):
11456         Not 64-bit clean.  Use EMACS_INT, not int.
11457
11458 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11459
11460         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11461         unsigned int and changed the last enum to
11462         lrecord_type_last_built_in_type.
11463         (lrecord_implementations_table): changed prototype to know how
11464         long the array is supposed to be.
11465         (lrecord_type_count): new unsigned int to keep track of the
11466         current number of lisp lrecord types.
11467         (DEFINE_EXTERNAL_LRECORD):
11468         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11469         dynamic-modules to declare new lisp types. They are the same
11470         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11471         int for each new type, and increment lrecord_type_count by 1.
11472
11473         * alloc.c (lrecord_implementations_table): Changed to reference
11474         lrecord_type_last_built_in_type for the size of the array.
11475         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11476
11477 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11478
11479         * glyphs.h (check_valid_item_list): Renamed from
11480         check_valid_item_list_1.
11481
11482 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11483
11484         * select.c (Qselect_coerce): New.
11485         * select.c (Vselection_coercion_alist): New.
11486         * select.c (syms_of_select): Declare.
11487         * select.c (get-selection-internal): Use it.
11488         Use the new select-coerce functionality.
11489
11490         * select.c (select_coerce): New.
11491         * select.h (select_coerce): Declare.
11492         New function to coerce one type of data into another.
11493
11494 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11495
11496         * callproc.c (Fcall_process_internal):
11497         (Fcall_process_internal):
11498         * process-unix.c (unix_create_process):
11499         Save and restore the value of errno, so that error messages are accurate.
11500
11501 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11502
11503         * elhash.c (print_hash_table):
11504         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11505         Prettify docstrings and indentation.
11506
11507 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11508
11509         * window.c (Fwindow_pixel_edges): Subtract frame border and
11510         gutter size.
11511
11512 2000-07-31  Andy Piper  <andy@xemacs.org>
11513
11514         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11515         will acknowledge the change.
11516
11517         * glyphs.h: declare tab_control_order_only_changed.
11518
11519         * glyphs-x.c (x_tab_control_redisplay): use
11520         tab_control_order_only_changed.
11521
11522         * glyphs-widget.c (tab_control_order_only_changed): new function.
11523
11524         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11525         tab_control_order_only_changed.
11526
11527         * gui.c (gui_item_equal_sans_selected): new function.
11528         (gui_item_equal): use it.
11529
11530         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11531         :properties in favor of :items..
11532
11533         * glyphs-widget.c (check_valid_item_list): rename from
11534         check_valid_item_list_1.
11535         (check_valid_item_list_1): renamed.
11536         (combo_box_validate): deprecate :properties in favor of :items.
11537         (widget_instantiate): ditto.
11538         (tab_control_update): ditto.
11539         (image_instantiator_combo_box): ditto.
11540         (image_instantiator_tree_view): ditto.
11541         (image_instantiator_tab_control): ditto.
11542         (layout_post_instantiate): remove dead code.
11543
11544         * print.c (debug_print_no_newline): only write to debugger if in
11545         WIN32_NATIVE.
11546
11547         * elhash.c (Fmake_hash_table): update doc string.
11548
11549         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11550         messages whilst in GC. This at least stops XEmacs crashing but has
11551         the potential for wierd behaviour.
11552
11553 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11554
11555         * config.h.in:
11556         Make existence of s&m files optional.
11557
11558         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11559         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11560         * s/gnu.h: Remove HAVE_GETLOADAVG.
11561         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11562         * s/sol2.h: Remove HAVE_GETLOADAVG.
11563         * lisp.h: Remove getloadavg() declaration.
11564         * fns.c:
11565         Include <sys/loadavg.h> if available.
11566         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11567         * config.h.in:  Group together getloadavg()-related macros.
11568         Use only configure-time tests to detect getloadavg().
11569
11570 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11571
11572         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11573
11574 2000-07-25  Andy Piper  <andy@xemacs.org>
11575
11576         * syswindows.h: add tchar.h for native builds.
11577
11578         * frame.c (syms_of_frame): remove set-glyph-image.
11579
11580         * general-slots.h: add Qset_glyph_image.
11581
11582         * glyphs-widget.c (layout_update): add domain arg to
11583         set-glyph-image.
11584         (syms_of_glyphs_widget): remove set-glyph-image.
11585
11586 2000-07-23  Ben Wing  <ben@xemacs.org>
11587
11588         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11589         Vpopup_frame_list.
11590
11591 2000-07-22  Andy Piper  <andy@xemacs.org>
11592
11593         * symsinit.h: add syms_of_win32().
11594
11595         * gui-msw.c (syms_of_gui_mswindows): remove
11596         Fmswindows_shell_execute.
11597         (Fmswindows_shell_execute): moved to win32.c.
11598
11599         * emacs.c (main_1): add syms_of_win32 ().
11600
11601         * win32.c (init_potentially_nonexistent_functions): rewrite in
11602         compiler-friendly terms.
11603         (Fmswindows_shell_execute): move here from gui-msw.c.
11604         (syms_of_win32): new.
11605
11606         * device-msw.c (Fmswindows_printer_list): clean up args to
11607         EnumPrinters.
11608         Don't include tchar under cygwin or mingw.
11609         (msprinter_default_printer): make cygwin-friendly.
11610
11611 2000-07-21  Andy Piper  <andy@xemacs.org>
11612
11613         * glyphs-widget.c (image_instantiator_tree_view): use tab
11614         control's update function.
11615         (layout_property): new function. Retrieve items.
11616
11617         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11618         function. Re-populate the tree view from the pending items.
11619
11620         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11621         is designated the parent if the domain is an image instance. This
11622         is needed so that dirtiness can be cascade up the hierarchy and
11623         thus for layout children to be redisplayed correctly.
11624         (allocate_image_instance): rename glyph -> parent.
11625
11626         * redisplay.h: change redisplay_output_layout signature.
11627
11628         * redisplay-msw.c (mswindows_output_display_block): use domain
11629         arg.
11630
11631         * redisplay-x.c (x_output_display_block): use domain arg.
11632
11633 2000-07-10  Andy Piper  <andy@xemacs.org>
11634
11635         * window.c (Fset_window_configuration): add comment.
11636
11637         * redisplay-output.c (compare_runes):
11638         (redisplay_output_subwindow): redisplay rather than update subwindow.
11639         (redisplay_output_layout): ditto.
11640
11641         * redisplay-msw.c (mswindows_frame_output_end):
11642         (mswindows_frame_output_end): make defer window pos optional.
11643
11644         * lisp.h: add Flast.
11645
11646         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11647         normalize method. Change update method to be for changed
11648         instantiators. Add redisplay method. Change signature of layout
11649         method.
11650         (struct Lisp_Image_Instance): add instantiator.
11651         (IMAGE_INSTANCE_INSTANTIATOR): new.
11652         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11653         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11654         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11655
11656         * glyphs.c:
11657         (find_instantiator_differences): new function.
11658         (Fset_instantiator_property): new convenience function.
11659         (check_image_instance_structure): strictly check for vector
11660         instantiators.
11661         (normalize_image_instantiator): make non-static.
11662         (instantiate_image_instantiator): pass on dest_mask and use new
11663         signatures for image_instance_layout and friends.
11664         (mark_image_instance): mark the instantiator. Mark the subwindow
11665         face not the widget face.
11666         (image_instance_equal): add instantiator.
11667         (image_instance_hash): ditto.
11668         (allocate_image_instance): ditto.
11669         (Fset_image_instance_property): removed.
11670         (Fimage_instance_file_name): ditto.
11671         (Fcolorize_image_instance): ditto.
11672         (image_instance_layout): add offsets to be set.
11673         (update_image_instance): new function. update an image instance
11674         from its changed instantiator.
11675         (inherit_normalize): add dest_mask.
11676         (xbm_normalize): ditto.
11677         (xface_normalize): ditto.
11678         (xpm_normalize): ditto.
11679         (text_update): set_property -> update.
11680         (image_instantiate): use the glyph identity as a hash key, not the
11681         instantiator.
11682         (glyph_width): use new image_instance_layout signature.
11683         (glyph_ascent): ditto.
11684         (glyph_descent): ditto.
11685         (glyph_height): ditto.
11686         (glyph_query_geometry): ressurrect.
11687         (glyph_layout): ditto.
11688         (redisplay_subwindow): update -> redisplay.
11689         (syms_of_glyphs): add Fset_instantiator_property.
11690         (image_instantiator_format_create): set_property -> update.
11691
11692         * glyphs-x.c:
11693         (autodetect_normalize): add dest_maks to signature.
11694         (x_redisplay_subwindow): update -> redisplay.
11695         (x_redisplay_widget): ditto.
11696         (x_button_redisplay): ditto.
11697         (x_progress_gauge_redisplay): ditto.
11698         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11699         stacking order.
11700         (console_type_create_glyphs_x): update -> redisplay.
11701         (image_instantiator_format_create_glyphs_x): ditto.
11702
11703         * glyphs-widget.c:
11704         (check_valid_instantiator): disallow glyphs in the instantiator,
11705         they must now be vectors.
11706         (check_valid_instantiator_list): ditto.
11707         (glyph_instantiator_to_glyph): use internal symbol rather than
11708         intern.
11709         (widget_update): renamed from widget_set_property. Call cascaded
11710         update methods.
11711         (redisplay_widget): renamed from update_widget.
11712         (widget_layout): image_instance_layout now takes position as well
11713         as size.
11714         (widget_normalize): ditto.
11715         (widget_instantiate): ditto.
11716         (tab_control_query_geometry) ditto.:
11717         (tab_control_update): renamed from tab_control_set_property.
11718         (progress_gauge_update): set_property -> update.
11719         (layout_normalize): rewrite so that child instantiators are
11720         normalized also.
11721         (layout_update): new function. Create glyphs from the normalized
11722         children and cope with any other layout keywords. We do not
11723         instantiate children here that will be take care of by
11724         redisplay_output_layout.
11725         (layout_instantiate): call layout_update and not much else.
11726         (layout_post_instantiate): not sure whether this is needed
11727         anymore.
11728         (layout_query_geometry): query glyph geometry rather than
11729         image_instance geometry.
11730         (layout_layout): set offsets from pass in parameters. Use glyph
11731         geometry and layout functions rather than image instance ones.
11732         (native_layout_layout): ditto.
11733         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11734         (image_instantiator_widget): set_property -> update.
11735         (image_instantiator_buttons): ditto.
11736         (image_instantiator_progress_guage): ditto.
11737         (image_instantiator_tab_control): ditto.
11738         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11739         (image_instantiator_layout): add update method.
11740
11741         * glyphs-msw.c (bmp_normalize):
11742         (mswindows_resource_normalize): add dest_mask so that it can be
11743         proprogated by layout_normalize.
11744         (begin_defer_window_pos): make optional because it may not be the
11745         right thing to do and it introduces differences with X.
11746         (mswindows_unmap_subwindow): ditto.
11747         (mswindows_map_subwindow): ditto.
11748         (mswindows_redisplay_subwindow): renamed from
11749         mswindows_update_subwindow.
11750         (mswindows_redisplay_widget): ditto.
11751         (mswindows_button_redisplay): renamed from
11752         mswindows_button_update. Update is now what the instantiation
11753         function does for a changed instantiator.
11754         (mswindows_progress_gauge_instantiate): set the progress value
11755         here if appropriate.
11756         (mswindows_tab_control_redisplay): cope with re-ordering of the
11757         members of the tab widget by simply selecting the new top
11758         widget. This makes things appear ok if you click on a tab.
11759         (mswindows_combo_box_instantiate): image_instance_layout now takes
11760         position as well as size.
11761         (mswindows_progress_gauge_redisplay): renamed from
11762         mswindows_progress_gauge_update.
11763         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11764         (image_instantiator_format_create_glyphs_mswindows): ditto.
11765
11766         * glyphs-eimage.c (jpeg_normalize):
11767         (gif_normalize):
11768         (png_normalize):
11769         (tiff_normalize): add dest_mask so that it can be proprogated by
11770         layout_normalize.
11771
11772         * elhash.c:
11773         (print_hash_table):
11774         (hash_table_weakness_validate):
11775         (decode_hash_table_weakness):
11776         (Fhash_table_weakness):
11777         (Fhash_table_type):
11778         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11779
11780         * console.h (struct console_methods): move update_* to
11781         redisplay_*.
11782
11783 2000-07-20  Ben Wing  <ben@xemacs.org>
11784
11785         * *.[ch] (XSETOBJ): remove unused middle argument.
11786         lisp-disunion.h: correct wrap_object() to one argument.
11787
11788 2000-07-15  Ben Wing  <ben@xemacs.org>
11789
11790         * s/cygwin32.h:
11791         * s/cygwin32.h (CYGWIN_CONV_PATH):
11792         Add missing logb prototype for v1.1.
11793         Use post-b20 names and alias to pre-b20 names when pre-b20.
11794
11795         * s/windowsnt.h: [5].
11796
11797 2000-07-15  Ben Wing  <ben@xemacs.org>
11798
11799         * Makefile.in.in (x_objs):
11800         * Makefile.in.in (sheap_objs):
11801         * Makefile.in.in (objs):
11802         added win32.o, cosmetic cleanups.
11803
11804         * alloc.c (Fmake_byte_code):
11805         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11806         etc. macros which declare their own args now.
11807
11808         * alloc.c (syms_of_alloc):
11809         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11810
11811         * buffer.c:
11812         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11813
11814         * buffer.c (Fget_file_buffer):
11815         Fixed GCPRO problem.
11816
11817         * buffer.c (get_truename_buffer):
11818         Fixed comment about GC checking.
11819
11820         * buffer.c (syms_of_buffer):
11821         Undeclared those dedicated frame funs.
11822         [2].
11823
11824         * buffer.h:
11825         Define convenience macros for internal/external conversions.
11826         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11827         and Qenvironment_variable_encoding for cleaner code.
11828
11829         * bufslots.h:
11830         Remove dedicated-frame; in lisp.
11831
11832         * bytecode.c (funcall_compiled_function):
11833         [1].
11834
11835         * bytecode.c (syms_of_bytecode):
11836         [2].
11837
11838         * console-msw.c:
11839         * console-msw.c (mswindows_show_console): Rewrote.
11840
11841         * console-msw.c (Fmswindows_debugging_output): New.
11842         Sends to OutputDebugString (special MSWin debugger interface).
11843
11844         * console-msw.c (Fmswindows_message_box):
11845         Fixed stupid bugs so it works when called from kill-emacs.
11846
11847         * console-msw.c (syms_of_console_mswindows):
11848         Declare Fmswindows_debugging_output.
11849
11850         * console-msw.h:
11851         New MSWin prototypes.
11852
11853         * console-msw.h (struct mswindows_frame):
11854         New entry last-click-mods for improved button-modifier support.
11855
11856         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11857         New struct entry `popup' with corresponding accessor.
11858
11859         * console-x.c:
11860         * console-x.c (split_up_display_spec):
11861         * console-x.c (get_display_arg_connection):
11862         * console-x.c (x_semi_canonicalize_console_connection):
11863         * console-x.c (x_canonicalize_device_connection):
11864         [[[6]]]: Change char to more specific type.
11865         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11866
11867         * console-x.c (x_semi_canonicalize_console_connection):
11868         * console-x.c (x_canonicalize_device_connection):
11869         [[[9]]]: Fix up error signalling to use new structured error system.
11870
11871         * console-x.h:
11872         [[[4]]]: Define codesys aliases:
11873         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11874         Qx_color_name_encoding, Qx_display_name_encoding.
11875
11876         * console.h (struct console_methods):
11877         New method make_dialog_box_internal supersedes older
11878         popup_dialog_box method.
11879
11880         * data.c:
11881         Define many new errors, part of new structured errors.
11882
11883         * data.c (init_errors_once_early):
11884         * data.c (syms_of_data):
11885         [2].
11886
11887         * device-msw.c (mswindows_init_device):
11888         [[[5]]]: Cleanup to support NT 3.51.
11889
11890         * device-msw.c (decode_devmode): Cleanup.
11891
11892         * device-msw.c (mswindows_handle_print_setup_dialog_box):
11893         * device-msw.c (mswindows_handle_print_dialog_box):
11894         * device-msw.c (mswindows_handle_page_setup_dialog_box):
11895         * device-msw.c (syms_of_device_mswindows):
11896         Delete the dialog box primitives recently introduced by Kirill and
11897         instead interface to general dialog box interface.
11898
11899         * device-x.c:
11900         * device-x.c (compute_x_app_name):
11901         * device-x.c (x_init_device):
11902         * device-x.c (Fx_valid_keysym_name_p):
11903         * device-x.c (Fx_set_font_path):
11904         [6].
11905         [7].
11906
11907         * device.h (wrap_device): New.
11908         First of its kind; meant to replace XSETDEVICE.
11909
11910         * dialog-msw.c: Many file-dialog symbols.
11911
11912         * dialog-msw.c (mswindows_register_popup_frame): New.
11913         * dialog-msw.c (mswindows_is_dialog_msg): New.
11914         For supporting kbd traversal in dialog boxes.
11915
11916         * dialog-msw.c (dialog_proc):
11917         Support hitting ESC in dialogs.
11918
11919         * dialog-msw.c (struct):
11920         Common dialog box errors.
11921
11922         * dialog-msw.c (handle_file_dialog_box): New.
11923         Add file dialog code.
11924
11925         * dialog-msw.c (handle_question_dialog_box):
11926         Redo existing code to support new question dialog syntax.
11927
11928         * dialog-msw.c (console_type_create_dialog_mswindows):
11929         We support new dialog console method.
11930
11931         * dialog-msw.c (syms_of_dialog_mswindows):
11932         * dialog-msw.c (vars_of_dialog_mswindows):
11933         New file dialog symbols, vars.
11934
11935         * dialog-x.c:
11936         * dialog-x.c (maybe_run_dbox_text_callback):
11937         * dialog-x.c (dbox_descriptor_to_widget_value):
11938         * dialog-x.c (x_make_dialog_box_internal):
11939         * dialog-x.c (console_type_create_dialog_x):
11940         Mule-ize entire file.
11941         Redo to support question dialog syntax.
11942         [6].
11943
11944         * dialog.c:
11945         * dialog.c (Fmake_dialog_box_internal):
11946         * dialog.c (syms_of_dialog):
11947         Kill old popup-dialog-box, replace with new primitive.
11948         Just call device method or signal error.
11949
11950         * eldap.c (Fldap_open):
11951         * eldap.c (Fldap_search_basic):
11952         * eldap.c (Fldap_add):
11953         * eldap.c (Fldap_modify):
11954         [1].
11955         [7].
11956
11957         * emacs.c:
11958         * emacs.c (make_arg_list_1):
11959         * emacs.c (make_arg_list):
11960         Mule-ize call to dll_init().
11961         [6].
11962         [8].
11963
11964         * emacs.c (make_argc_argv):
11965         * emacs.c (free_argc_argv):
11966         * emacs.c (init_cmdargs):
11967         * emacs.c (main_1):
11968         * emacs.c (Fkill_emacs):
11969         * emacs.c (Fdump_emacs):
11970         Update comments about what can be used in syms_* etc.
11971         Call init_win32() when necessary.
11972         Fix up MS Win dialog box in kill-buffer to actually work right.
11973         [7].
11974
11975         * eval.c:
11976         * eval.c (For):
11977         * eval.c (Fand):
11978         * eval.c (Fprogn):
11979         * eval.c (Fprog1):
11980         * eval.c (Fprog2):
11981         * eval.c (FletX):
11982         * eval.c (Flet):
11983         * eval.c (condition_case_3):
11984         * eval.c (Feval):
11985         * eval.c (function_argcount):
11986         * eval.c (funcall_lambda):
11987         [1].
11988
11989         * eval.c (type_error): New.
11990         * eval.c (maybe_type_error): New.
11991         * eval.c (continuable_type_error): New.
11992         * eval.c (maybe_continuable_type_error): New.
11993         * eval.c (type_error_with_frob): New.
11994         * eval.c (maybe_type_error_with_frob): New.
11995         * eval.c (continuable_type_error_with_frob): New.
11996         * eval.c (maybe_continuable_type_error_with_frob): New.
11997         New functions for use with structured errors.
11998
11999         * event-Xt.c:
12000         * event-Xt.c (x_event_to_emacs_event):
12001         Buttons are now modifiers too.
12002
12003         * event-Xt.c (emacs_Xt_current_event_timestamp):
12004         Implement new event method.
12005         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12006
12007         * event-msw.c:
12008         * event-msw.c (ntpipe_shove_writer): [5].
12009         * event-msw.c (mswindows_enqueue_mouse_button_event):
12010         * event-msw.c (mswindows_drain_windows_queue):
12011         * event-msw.c (mswindows_wnd_proc): [7].
12012         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12013         * event-msw.c (mswindows_modifier_state):
12014         Throughout: support new button modifiers.
12015
12016         * event-msw.c (emacs_mswindows_current_event_timestamp):
12017         Implement new event method.
12018         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12019
12020         * event-stream.c:
12021         * event-stream.c (event_stream_current_event_timestamp): New.
12022         * event-stream.c (maybe_kbd_translate): New functionality.
12023         * event-stream.c (vars_of_event_stream):
12024         Document new kbd-translate-table functionality.
12025
12026         * event-stream.c (Fcurrent_event_timestamp): New.
12027         New primitive for use in fabricated events.
12028         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12029
12030         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12031
12032         * events.c:
12033         * events.c (Fmake_event):
12034         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12035         [1].
12036         [9].
12037
12038         * events.c (format_event_object): fix gcc warnings.
12039
12040         * events.c (Fevent_timestamp): Document new primitives.
12041
12042         * events.c (TIMESTAMP_HALFSPACE): New.
12043
12044         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12045         comparing timestamps correctly (half-space algorithm).
12046
12047         * events.c (Fevent_modifier_bits): Doc fix.
12048
12049         * events.c (Fevent_modifiers): Major doc addition.
12050         * events.c (event_x_y_pixel_internal): Typo fix.
12051         * events.c (syms_of_events): Declare new primitives.
12052
12053         * events.h:
12054         Update long comment for button modifiers, timestamps.
12055
12056         * events.h (struct event_stream):
12057         New current_event_timestamp method.
12058
12059         * extents.c:
12060         * extents.c (extent_in_region_p):
12061         * extents.c (decode_extent):
12062         * extents.c (Fset_extent_parent):
12063         * extents.c (decode_map_extents_flags):
12064         Fix gcc warnings.
12065         [9].
12066
12067         * extents.c (struct extent_at_arg):
12068         * extents.c (decode_extent_at_flag):
12069         * extents.c (extent_at_mapper):
12070         * extents.c (extent_at_bytind):
12071         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12072         * extents.c (Fextents_at): New primitive. [9].
12073         * extents.c (symbol_to_glyph_layout): [9].
12074         Support new primitive `extents-at'.
12075
12076
12077         * extents.c (get_text_property_bytind):
12078         extent_at_bytind has another arg.
12079         [9].
12080
12081         * extents.c (syms_of_extents): New primitive.
12082
12083         * file-coding.c (Fmake_coding_system): [1].
12084         * file-coding.c (subsidiary_coding_system): fix gcc warning
12085         * file-coding.c (syms_of_file_coding): [2].
12086
12087         * fileio.c (Fexpand_file_name):
12088         * fileio.c (Fsysnetunam):
12089         * fileio.c (Ffile_exists_p):
12090         * fileio.c (Ffile_executable_p):
12091         * fileio.c (Fverify_visited_file_modtime):
12092         Clean up GCPROing.
12093
12094         * fileio.c (syms_of_fileio): [2].
12095
12096         * filelock.c (lock_file_1):
12097         * filelock.c (current_lock_owner):
12098         * filelock.c (lock_if_free):
12099         * filelock.c (lock_file):
12100         * filelock.c (unlock_file):
12101         Clean up GCPROing.
12102
12103         * fns.c (concat): Fix gcc warning.
12104
12105         * fns.c (Fmember):
12106         * fns.c (Fold_member):
12107         * fns.c (Fmemq):
12108         * fns.c (Fold_memq):
12109         * fns.c (memq_no_quit):
12110         * fns.c (Fassoc):
12111         * fns.c (Fold_assoc):
12112         * fns.c (Fassq):
12113         * fns.c (Fold_assq):
12114         * fns.c (assq_no_quit):
12115         * fns.c (Frassoc):
12116         * fns.c (Fold_rassoc):
12117         * fns.c (Frassq):
12118         * fns.c (Fold_rassq):
12119         * fns.c (rassq_no_quit):
12120         * fns.c (Fdelete):
12121         * fns.c (Fold_delete):
12122         * fns.c (Fdelq):
12123         * fns.c (Fold_delq):
12124         * fns.c (delq_no_quit):
12125         * fns.c (Fremassoc):
12126         * fns.c (Fremassq):
12127         * fns.c (remassq_no_quit):
12128         * fns.c (Fremrassoc):
12129         * fns.c (Fremrassq):
12130         * fns.c (remrassq_no_quit):
12131         * fns.c (Freverse):
12132         * fns.c (mapcar1):
12133         [1].
12134
12135         * frame-msw.c (mswindows_init_frame_1):
12136         * frame-msw.c (mswindows_delete_frame):
12137         Register popups with dialog code so keyboard traversing works.
12138
12139         * frame-tty.c (tty_raise_frame_no_select): [1].
12140
12141         * frame-x.c:
12142         * frame-x.c (x_set_frame_text_value):
12143         * frame-x.c (x_set_frame_properties):
12144         * frame-x.c (x_create_widgets):
12145         [7].
12146
12147         * frame.c:
12148         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12149
12150         * frame.h (wrap_frame): New.
12151         Macro like wrap_device.
12152
12153         * general.c:
12154         * general.c (SYMBOL):
12155         * general.c (syms_of_general):
12156         Major reorg.  This is now just a wrapper and symbols themselves
12157         are listed in general-slots.h.
12158
12159         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12160         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12161
12162         * glyphs-msw.c (mswindows_native_layout_instantiate):
12163         Add DS_CONTROL so keyboard traversal will work.
12164
12165         * glyphs-widget.c:
12166         * glyphs-widget.c (syms_of_glyphs_widget):
12167         Move some symbols to general-slots.h.
12168
12169         * glyphs-x.c:
12170         * glyphs-x.c (xbm_instantiate_1):
12171         * glyphs-x.c (x_xbm_instantiate):
12172         * glyphs-x.c (x_xface_instantiate):
12173         * glyphs-x.c (autodetect_instantiate):
12174         * glyphs-x.c (cursor_font_instantiate):
12175         * glyphs-x.c (x_update_widget):
12176         * glyphs-x.c (x_widget_instantiate):
12177         * glyphs.c (bitmap_to_lisp_data):
12178         * glyphs.c (pixmap_to_lisp_data):
12179         [7].
12180
12181         * glyphs.c (syms_of_glyphs):
12182         [2].
12183
12184         * gui-x.c:
12185         * gui-x.c (print_widget_value):
12186         * gui-x.c (menu_separator_style_and_to_external):
12187         * gui-x.c (add_accel_and_to_external):
12188         * gui-x.c (button_item_to_widget_value):
12189         * gui-x.c (gui_items_to_widget_values_1):
12190         * gui-x.c (gui_items_to_widget_values):
12191         * gui-x.c (syms_of_gui_x):
12192         * gui-x.c (vars_of_gui_x):
12193         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12194         [9].
12195
12196         * gui-x.h:
12197         Muleize, prototype changes matching gui-x.c.
12198
12199         * gui.c:
12200         * gui.c (separator_string_p):
12201         * gui.c (gui_item_add_keyval_pair):
12202         * gui.c (make_gui_item_from_keywords_internal):
12203         * gui.c (signal_too_long_error):
12204         * gui.c (parse_gui_item_tree_item):
12205         * gui.c (syms_of_gui):
12206         * gui.c (vars_of_gui):
12207         * gui.h:
12208         menu-no-selection-hook moved here (used by MSWin).
12209         Move some symbols to general-slots.h.
12210         [6].
12211         [9].
12212
12213         * insdel.c (get_buffer_pos_char):
12214         * insdel.c (get_buffer_range_char):
12215         Add GC comments.
12216
12217         * keymap.c (keymap_lookup_directly):
12218         * keymap.c (keymap_store):
12219         * keymap.c (ensure_meta_prefix_char_keymapp):
12220         * keymap.c (describe_map):
12221         * keymap.h:
12222         Support new button modifiers.
12223
12224         * lisp-disunion.h (wrap_object):
12225         * lisp-disunion.h (XSETOBJ):
12226         Rename make_obj to wrap_object.
12227
12228         * lisp-union.h:
12229         * lisp-union.h (make_int):
12230         * lisp-union.h (make_char):
12231         Support wrap_object.
12232
12233         * lisp.h:
12234         * lisp.h (LIST_LOOP):
12235         * lisp.h (EXTERNAL_LIST_LOOP):
12236         * lisp.h (LIST_LOOP_2):
12237         * lisp.h (EXTERNAL_LIST_LOOP_1):
12238         * lisp.h (EXTERNAL_LIST_LOOP_2):
12239         * lisp.h (EXTERNAL_LIST_LOOP_3):
12240         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12241         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12242         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12243         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12244         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12245         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12246         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12247         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12248         * lisp.h (struct Lisp_Symbol):
12249         * lisp.h (maybe_continuable_error_with_frob):
12250         Fix up section comments.
12251         Add new types for char to indicate usage.
12252         Delete symbols auto-generated from general-slots.h.
12253         Add prototypes for structured error functions.
12254         Add long comments describing looping macros and change interface
12255         so that lvalues are automatically declared.
12256         Add NO_DECLARE macro in case callers want to declare lvalues
12257         themselves.
12258
12259         * lread.c (read_syntax_error):
12260         * lread.c (continuable_read_syntax_error):
12261         * lread.c (read_structure):
12262         * lread.c (sequence_reader):
12263         * lread.c (read_list_conser):
12264         * lread.c (read_compiled_function):
12265         Rename syntax_error and continuable_syntax_error to avoid clash
12266         with same-named structured error functions.
12267
12268         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12269         * menubar-msw.c (populate_menu_add_item):
12270         * menubar-msw.c (populate_or_checksum_helper):
12271         [5].
12272         [9].
12273
12274         * menubar-x.c:
12275         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12276         Mule-ize whole file.
12277
12278         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12279
12280         * mule-charset.c (Fmake_charset):
12281         * mule-wnnfns.c (Fwnn_set_param):
12282         [1].
12283
12284         * ntproc.c (create_child):
12285         * ntproc.c (Fwin32_set_current_locale):
12286         Add comments portending doom.
12287
12288         * objects-msw.c:
12289         * objects-msw.c (old_font_enum_callback_2):
12290         * objects-msw.c (font_enum_callback_1):
12291         * objects-msw.c (mswindows_enumerate_fonts):
12292         [5].
12293
12294         * objects-x.c:
12295         * objects-x.c (allocate_nearest_color):
12296         * objects-x.c (x_parse_nearest_color):
12297         * objects-x.c (x_initialize_color_instance):
12298         * objects-x.c (x_print_color_instance):
12299         * objects-x.c (x_finalize_color_instance):
12300         * objects-x.c (x_valid_color_name_p):
12301         * objects-x.c (x_initialize_font_instance):
12302         * objects-x.c (x_print_font_instance):
12303         * objects-x.c (valid_x_font_name_p):
12304         * objects-x.c (truename_via_FONT_prop):
12305         * objects-x.c (truename_via_random_props):
12306         * objects-x.c (truename_via_XListFonts):
12307         * objects-x.c (x_font_truename):
12308         * objects-x.c (x_font_instance_truename):
12309         * objects-x.c (x_font_instance_properties):
12310         * objects-x.c (x_list_fonts):
12311         * objects-x.c (x_find_charset_font):
12312         Mule-ize entire file.
12313         [7].
12314
12315         * objects-x.h:
12316         Mule-verify.
12317
12318         * print.c:
12319         * print.c (std_handle_out_external):
12320         * print.c (debug_print_no_newline):
12321         * print.c (syms_of_print):
12322         Output to all debugger kinds in debug-print.
12323         Fix console-output code under MSWin to actually work.
12324
12325         * process-nt.c (send_signal):
12326         * process-nt.c (nt_create_process):
12327         Use newer Unicode macros.
12328
12329         * process-unix.c (unix_create_process):
12330         * process-unix.c (unix_canonicalize_host_name):
12331         * process-unix.c (unix_open_network_stream):
12332         [7].
12333
12334         * scrollbar-x.c:
12335         Mule-verify.
12336
12337         * search.c (syms_of_search):
12338         [2].
12339
12340         * select-msw.c (mswindows_destroy_selection):
12341         Use LIST_LOOP_2.
12342
12343         * select-x.c (symbol_to_x_atom):
12344         [7].
12345
12346         * select.c (syms_of_select):
12347         [2].
12348
12349         * sound.c (Fplay_sound_file):
12350         [7].
12351
12352         * specifier.c:
12353         * specifier.c (decode_specifier_type):
12354         * specifier.c (Fvalid_specifier_locale_type_p):
12355         * specifier.c (check_valid_locale_or_locale_type):
12356         * specifier.c (decode_locale):
12357         * specifier.c (decode_locale_type):
12358         * specifier.c (decode_locale_list):
12359         * specifier.c (check_valid_domain):
12360         * specifier.c (decode_specifier_tag_set):
12361         * specifier.c (Fcanonicalize_tag_set):
12362         * specifier.c (Fdefine_specifier_tag):
12363         * specifier.c (Fspecifier_tag_predicate):
12364         * specifier.c (check_valid_inst_list):
12365         * specifier.c (check_valid_spec_list):
12366         * specifier.c (decode_how_to_add_specification):
12367         * specifier.c (check_modifiable_specifier):
12368         * specifier.c (specifier_add_spec):
12369         * specifier.c (boolean_validate):
12370         * specifier.c (display_table_validate):
12371         [9].
12372
12373         * specifier.c (syms_of_specifier):
12374         Move some symbols to general-slots.h.
12375         [2].
12376
12377         * symbols.c:
12378         * symbols.c (Fmapatoms):
12379         * symbols.c (Fapropos_internal):
12380         Add GCPROs.
12381
12382         * symbols.c (set_default_buffer_slot_variable):
12383         * symbols.c (set_default_console_slot_variable):
12384         [1].
12385
12386         * symbols.c (defsymbol_massage_name_1):
12387         * symbols.c (defkeyword_massage_name):
12388         * symbols.c (deferror_1):
12389         * symbols.c (deferror):
12390         * symbols.c (deferror_massage_name_and_message):
12391         * symeval.h:
12392         * symeval.h (DEFSYMBOL):
12393         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12394
12395         * symbols.c (syms_of_symbols):
12396         [2].
12397
12398         * symsinit.h:
12399         * symsinit.h (init_win32): New.
12400         Also new is syms_of_dialog_mswindows.
12401
12402         * syswindows.h:
12403         Add new Unicode macros, missing Cygwin wide-char functions,
12404         convenience conversion macros for Qmswindows_tstr, macros for
12405         encapsulating required MSWin <-> Cygwin filename conversions,
12406         prototype for dynamically-extracted (not in NT 3.51) functions.
12407
12408         * toolbar-x.c:
12409         Mule-verify.
12410
12411         * tooltalk.c (Fadd_tooltalk_message_arg):
12412         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12413         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12414         [7].
12415
12416         * tooltalk.c (syms_of_tooltalk):
12417         [2].
12418
12419         * unexnt.c:
12420         * unexnt.c (unexec):
12421         Fix up headers, declaration of unexec() to be more standard.
12422
12423 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12424
12425         * offix.h: Revert change to guard macros - they're used in offix.c!
12426
12427 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12428
12429         * lisp.h: Defsubred Fdelete.
12430
12431         * console-msw.h:  (msprinter_default_printer): Added.
12432
12433         * console-msw.c (msprinter_canonicalize_console_connection):
12434         (msprinter_canonicalize_device_connection): Added.
12435
12436         * device-msw.c (msprinter_default_printer):
12437         (Fmswingows_get_default_printer):
12438         (signal_enum_priner_error):
12439         (Fmswingows_printer_list): Added.
12440
12441 2000-07-19  Martin Buchholz <martin@xemacs.org>
12442
12443         * XEmacs 21.2.35 is released.
12444
12445 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12446
12447         * select-x.c (x_handle_selection_request):
12448         Text selected in xemacs and pasted into xterm failed to appear.
12449         Spelling fixes and cosmetic changes.
12450
12451 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12452
12453         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12454         XEmacs frame (fix for doubling chars in dialog boxes).
12455
12456 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12457
12458         * select.c (select_convert_in, select_convert_out):
12459         Don't call intern() every time.
12460
12461         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12462         * select.c (vars_of_select): Initialise them.
12463
12464 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12465
12466         * select.c (selection-coercible-types): New.
12467
12468         * select.c (own-selection-internal):
12469         * select.c (get-selection-internal):
12470         MULE bug fix - these should default to COMPOUND_TEXT and not
12471         STRING for MULE. I think.
12472
12473         * select.c (select_convert_out): Use selection-coercible-types
12474         to find types that we can attempt to perform coercions on.
12475
12476 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12477
12478         * mule-wnnfns.c:
12479         * mule-canna.c:
12480         Add coding: cookie to identify encoding.
12481
12482         * mule-canna.c (CANNA_mode_keys): make static.
12483         Use proper prototypes, even for functions of no arguments.
12484         Remove external prototype for Fding().
12485
12486         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12487
12488         * select.c (syms_of_select): Add missing DEFSUBR.
12489
12490 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12491
12492         * select.c (get_selection_internal, own_selection_internal):
12493         Make the type default to STRING, rather than placing a nil type
12494         into Vselection_alist.
12495
12496 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12497
12498         * gpmevent.c (tty_selection_exists_p):
12499         * gpmevent.c (tty_own_selection):
12500         Updated parameter lists.
12501
12502 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12503
12504         * select.h (selection-alist): Removed declaration.
12505
12506         * select.h (get_local_selection):
12507         * select.c (get_local_selection):
12508         Made static.
12509
12510         * select.h (convert_selection): Removed declaration.
12511         * select.c (convert_selection): Removed.
12512         This function belongs in Lisp.
12513
12514         * select.h (select_convert_in): Declare.
12515         * select.h (select_convert_out): Declare.
12516         * select.c (select_convert_in): New.
12517         * select.c (select_convert_out): New.
12518         New conversion functions for other files to call.
12519
12520         * select.h (select_notify_buffer_kill): Declare.
12521         * select.c (select_notify_buffer_kill): New.
12522         New functions that get called from kill-buffer.
12523
12524         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12525         X-specific lisp code.
12526
12527         * select.h: Declare some of the lisp-visible functions for
12528         external use.
12529
12530         * select.c (clean_local_selection_data): Removed. This was
12531         a disgusting function, and previously should have been in
12532         select-x.c in any case. The functionality is now provided
12533         in select-convert-from-integer (select.el).
12534
12535         * select.c (available-selection-types): Fixed stupidity where
12536         INTEGER and ATOM got added twice. Also add STRING when we see an
12537         extent.
12538
12539         * select.c (get-selection-internal): Removed symbol stripping. No
12540         longer causes conversion when data comes from the internal cache.
12541
12542         * select.c (syms_of_select): Added new functions.
12543
12544         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12545         error checking - previously this called abort!
12546
12547         * select-x.c (x_own_selection): Changed comment.
12548
12549         * select-x.c (x_handle_selection_request): Use select_convert_out.
12550         Don't mess with selection-alist; it's an internal variable of select.c.
12551
12552         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12553
12554         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12555         rather than messing with selection-alist.
12556
12557         * select-msw.c (mswindows_get_foreign_selection):
12558         Use TO_INTERNAL_FORMAT rather than hacking.
12559
12560 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12561
12562         * process-unix.c (unix_open_multicast_group):
12563         (unix_open_multicast_group): Remove useless casts.
12564
12565 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12566
12567         * sound.c (Fplay_sound): Fix `unused variable' warning.
12568
12569         * emacs.c (main): Use correct type for _environ on SCO5.
12570
12571 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12572
12573         * console.h (own_selection_method):
12574         * console.h (selection_exists_p_method):
12575         * console.h (available_selection_types_method): New.
12576         * console.h (register_selection_data_type_method): New.
12577         * console.h (selection_data_type_name): New.
12578
12579         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12580         function & alist to track GlobalAlloc()'d handles that need
12581         releasing when the clipboard data gets replaced or emptied.
12582
12583         * event-msw.c (mswindows_wnd_proc): Call it.
12584
12585         * lisp.h, general.c (Qappend): New symbol representing a
12586         `how-to-add' mode.
12587
12588         * select.c (own-selection-internal):
12589         * select.c (selection-exists-p):
12590         * select.c (available-selection-types): New.
12591         * select.c (register-selection-data-type): New.
12592         * select.c (selection-data-type-name): New.  New functions to deal
12593         with device-specific selection data formats.
12594         * select.c (selection-converter-out-alist): Renamed.
12595         * select.c (selection-converter-in-alist): New.
12596         * select.c (selection-appender-alist): New.  Added new alists.
12597         * select.c (syms_of_select, vars_of_select): Added new symbols &
12598         variables.
12599         * select.c (get_local_selection): Split.
12600         * select.c: Removed spurious type checking - selections may now be
12601         of any type, not just strings.
12602         * select.c (own-selection-internal):
12603
12604         * select.h, select.c (convert_selection): New. Created
12605         convert_selection() function based on get_local_selection().
12606         * select.h, select.c (QCF_*): New symbols representing mswindows
12607         clipboard formats.
12608         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12609         symbols representing `how-to-add' modes.
12610
12611         * select-msw.c (x_sym_p): New.
12612         * select-msw.c (symbol_to_ms_cf): New.
12613         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12614         symbols & clipboard formats. Can also handle string names.
12615         * select-msw.c (mswindows_own_selection):
12616         * select-msw.c (mswindows_selection_exists_p):
12617         Added `data-type' parameter. Use it.
12618         * select-msw.c (mswindows_available_selection_types): New.
12619         * select-msw.c (mswindows_register_selection_data_type): New.
12620         * select-msw.c (mswindows_selection_data_type_name): New.
12621         * select-msw.c (mswindows_own_selection):
12622         * select-msw.c (mswindows_get_foreign_selection):
12623         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12624         * select-msw.c (console_create_select_mswindows): Added new methods.
12625         * select-msw.c (mswindows_destroy_selection): New.
12626         * select-msw.c (Vhandle_alist): New list.
12627         * select-msw.c (mswindows_own_selection):
12628
12629         * select-x.c (x_own_selection):
12630         * select-x.c (x_selection_exists_p):
12631         * select-x.c: Added some comments about maybe using new
12632         functionality.
12633         * select-x.c (x_own_selection):
12634
12635         * specifier.c: Remove definition of Qappend (now in general.c)
12636         * specifier.c (syms_of_specifier): Remove Qappend.
12637
12638 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12639
12640         * config.h.in: Add socklen_t.
12641
12642         * s/decosf4-0.h: No special compiler flags needed or desired.
12643         In particular, undefine _BSD for DEC OSF 4.0.
12644
12645 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12646
12647         * redisplay-msw.c (msprinter_frame_output_end): Added.
12648         (console_type_create_redisplay_mswindows): Referred the above.
12649
12650         * frame.c (setup_frame_without_minibuffer): Do not create a
12651         default minibuffer frame on a printer device.
12652
12653         * frame-msw.c (apply_dc_geometry): Added.
12654         (msprinter_start_page):
12655         (msprinter_init_frame_3):
12656         (msprinter_eject_page): Use it.
12657
12658         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12659         and removed residual duplex and orientation properties.
12660
12661 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12662
12663         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12664
12665         * unexalpha.c: Remove system prototypes from C sources!
12666
12667 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12668
12669         * eval.c: Remove references to M-x edit-options in DEFUNs for
12670         `defvar' and `defconst'.
12671
12672 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12673
12674         * config.h.in: Remove SMART_INCLUDE hackery.
12675
12676         PostgreSQL hacking:
12677         * config.h.in: Don't use SMART_INCLUDE.
12678
12679         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12680         * inline.c: Simply #include "postgresql.h"
12681         * postgresql.c:
12682         - Don't use SMART_INCLUDE
12683         - Use simply "const".
12684         - Use standard doc string conventions.
12685         - Use correct type for result of PQstatus.
12686
12687 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12688
12689         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12690
12691         C++ compilation changes.
12692         * config.h.in (EXTERN_C): Define.
12693         * config.h.in (not): This is also a C++ keyword.
12694         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12695         * cm.c: Use EXTERN_C.
12696         * redisplay-tty.c: Use EXTERN_C.
12697         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12698
12699 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12700
12701         * general.c: Remove duplicate definition for Qfunction.
12702
12703 2000-07-08  Ben Wing  <ben@xemacs.org>
12704
12705         * device-msw.c (msprinter_init_device):
12706         * device-msw.c (sync_printer_with_devmode):
12707         * device-msw.c (handle_devmode_changes):
12708         * device-msw.c (print_dialog_worker):
12709         * device-msw.c (Fmsprinter_apply_settings):
12710         * device-msw.c (hash_devmode):
12711         * device-msw.c (Fmsprinter_settings_despecialize):
12712         use Qmswindows_tstr, not Qctext.
12713
12714         * vm-limit.c (check_memory_limits):
12715         avoid infinite loop printing warning messages.
12716
12717 2000-07-05  Craig Lanning  <lanning@scra.org>
12718
12719         * Makefile.in.in: Add support for including the Windows resources
12720         when building with the cygwin and mingw targets.
12721
12722         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12723         not set or not correct.
12724         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12725         (init_initial_directory): Don't try to use $PWD on the
12726         WIN32_NATIVE target.
12727
12728         * s\cygwin32.h:
12729         [[Add -mwindows to eliminate console window.]] not required --ben
12730         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12731         (MAIL_USE_POP): removed; now handled by configure.
12732
12733         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12734         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12735         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12736         (MAIL_USE_POP): removed; now handled by configure.
12737         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12738         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12739         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12740         constant string.
12741         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12742         up from <winsock.h> via systime.h.
12743         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12744         (getpagesize): from Dan Holmsand, added.
12745         Added #endif which was left dangling by Ben's mega patch; added
12746         comment to help prevent this in the future.
12747
12748         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12749
12750 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12751
12752         * console-msw.h (struct mswindows_device): Removed unnecessary
12753         cached device geometry values.
12754         Added update_tick and an accessor macro.
12755         (Lisp_Devmode): Added lrecord declaration.
12756         (struct msprinter_device): Contain devmode as a Lisp object.
12757         Added mswindows_get_selected_frame_hwnd();
12758
12759         * console.h (struct console_methods): Indentation nitpicking.
12760
12761         * device-msw.c (mswindows_init_device): Do not initialize geometry
12762         cache. Initialize update tick.
12763         (mswindows_device_system_metrics): Ask the device for its geometry.
12764         (global_free_2_maybe):
12765         (devmode_to_hglobal):
12766         (handle_printer_changes):
12767         (ensure_not_printing):
12768         (print_dialog_worker):
12769         (Fmsprinter_print_setup_dialog):
12770         (Fmsprinter_print_dialog):
12771         (plist_get_margin):
12772         (plist_set_margin):
12773         (Fmsprinter_page_setup_dialog): Added functions.
12774         (sync_printer_with_devmode):
12775         (handle_devmode_changes):
12776         (Fmsprinter_get_settings):
12777         (Fmsprinter_select_settings):
12778         (Fmsprinter_apply_settings):
12779         (allocate_devmode):
12780         (Fmsprinter_settings_copy):
12781         (Fmsprinter_settings_despecialize):
12782         (print_devmode):
12783         (finalize_devmode):
12784         (equal_devmode):
12785         (hash_devmode): Added functions
12786         (syms_of_device_mswindows): Init devmode lrecord class.
12787
12788         * device.h: Added an exfun for find-device.
12789
12790         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12791         geometry; although, recreate the device compatible DC.
12792
12793         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12794         (msprinter_init_frame_3):
12795         (msprinter_frame_property):
12796         (msprinter_internal_frame_property_p):
12797         (msprinter_frame_properties):
12798         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12799         print job properties (will move to device settings).
12800
12801         * lisp.h: Added symbols.
12802
12803         * general.c (syms_of_general): Declared them.
12804
12805         * hash.c (string_hash): Added.
12806
12807         * lrecord.h (lrecord_type): Added devmode lrecord type.
12808
12809 2000-07-02  Mike Sperber <mike@xemacs.org>
12810
12811         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12812         FreeBSD 4.0.
12813
12814 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12815
12816         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12817         integer.
12818
12819 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12820
12821         * data.c (Fstring_to_number): Don't recognize floating point if
12822         base is not 10.
12823
12824 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12825
12826         * glyphs-widget.c (tab_control_query_geometry):
12827         (widget_query_geometry):
12828         (button_query_geometry):
12829         * glyphs.c (text_query_geometry):
12830         Enforce type correctness.
12831
12832 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12833
12834         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12835         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12836
12837 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12838
12839         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12840         conflicts with gcc's fixincluded version of FOO.h.
12841
12842         * glyphs.h (image_instance_geometry): Remove trailing `,'
12843
12844 2000-06-08  Mike Alexander  <mta@arbortext.com>
12845
12846         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12847         (shove_thread): Don't write the same output twice
12848         (make_ntpipe_output_stream): Increase priority of shove thread
12849         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12850         chance to run
12851         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12852         it.
12853
12854 2000-06-12  Ben Wing  <ben@xemacs.org>
12855
12856         * s\mingw32.h (sigset):
12857         * s\windowsnt.h (sigset):
12858         rename msw_ to mswindows_ for consistency with general convention.
12859
12860 2000-06-12  Ben Wing  <ben@xemacs.org>
12861
12862         * console-msw.c:
12863         * console-msw.c (mswindows_get_console_hwnd):
12864         * console-msw.c (mswindows_ensure_console_allocated):
12865         * console-msw.c (mswindows_hide_console):
12866         * console-msw.c (mswindows_show_console):
12867         * console-msw.c (mswindows_ensure_console_buffered):
12868         * console-msw.c (mswindows_output_console_string):
12869         * console-msw.c (mswindows_windows9x_p):
12870         * console-msw.h:
12871         * device-msw.c (mswindows_get_workspace_coords):
12872         * device-msw.c (mswindows_device_system_metrics):
12873         * dialog-msw.c (mswindows_popup_dialog_box):
12874         * event-msw.c (mswindows_wnd_proc):
12875         * frame-msw.c (mswindows_size_frame_internal):
12876         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12877         * menubar-msw.c (displayable_menu_item):
12878         * menubar-msw.c (mswindows_char_is_accelerator):
12879         * nt.c:
12880         * nt.c (mswindows_sigset):
12881         * nt.c (mswindows_sigrelse):
12882         * nt.c (mswindows_sigpause):
12883         * nt.c (mswindows_raise):
12884         * nt.c (timer_proc):
12885         * ntproc.c:
12886         * ntproc.c (find_child_console):
12887         * ntproc.c (sys_kill):
12888         * print.c:
12889         * print.c (std_handle_out_external):
12890         * process-nt.c (find_child_console):
12891         * process-nt.c (send_signal_the_95_way):
12892         * process-nt.c (ensure_console_window_exists):
12893         * process-nt.c (nt_create_process):
12894         * syssignal.h:
12895         rename msw_ to mswindows_ for consistency with general convention.
12896
12897         * emacs.c:
12898         * dumper.c:
12899         include nt.h, not syswindows.h.
12900
12901         * nt.c (mswindows_fstat):
12902         * nt.c (mswindows_stat):
12903         prefix mswindows_ instead of attempting to directly override the
12904         library functions.  fix declarations.
12905
12906         * nt.h:
12907         include syswindows.h.  move some sysdep.h stuff here.
12908
12909         * ntheap.h:
12910         include syswindows.h, not <windows.h>.
12911
12912         * ntplay.c:
12913         clean up headers.
12914
12915         * sysdep.c:
12916         clean up headers.
12917
12918         * sysdep.c (sys_fstat):
12919         * sysdep.c (sys_stat):
12920         call mswindows versions when appropriate.
12921
12922         * sysdep.h:
12923         move mswin decls to nt.h.
12924
12925         * syswindows.h:
12926         add long comment describing appropriate use of the various windows
12927         headers.
12928
12929 2000-06-11  Ben Wing  <ben@xemacs.org>
12930
12931         * device-x.c: Correct doc string for sixth arg of x-get-resource.
12932
12933 2000-06-10  Ben Wing  <ben@xemacs.org>
12934
12935         * Makefile.in.in (release):
12936         Correction to make sure xemacs.exe always dumped when correct.
12937
12938         * alloca.c:
12939         * balloon_help.c:
12940         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12941
12942         * buffer.c (set_buffer_internal):
12943         [[[[2]]]]: Remove HAVE_FEP code.
12944
12945         * buffer.c (init_initial_directory):
12946         [3].
12947
12948         * bytecode.c:
12949         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12950         individual files.
12951
12952         * callproc.c:
12953         * callproc.c (call_process_cleanup):
12954         * callproc.c (Fold_call_process_internal):
12955         * callproc.c (child_setup):
12956         * callproc.c (getenv_internal):
12957         * callproc.c (init_callproc):
12958         * callproc.c (vars_of_callproc):
12959         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12960         __CYGWIN32__ -> CYGWIN.
12961         DOS_NT -> WIN32_NATIVE.
12962         Remove MSDOS support/references, converting to WIN32_NATIVE
12963           where correct.
12964         __MINGW32__ -> MINGW.
12965         Fix windows.h includes.
12966         Remove bogus HAVE_NTGUI.
12967
12968         * config.h.in:
12969         [2].
12970
12971         * console-msw.c:
12972         mswindows_message_outputted added for use in allowing startup
12973         errors on the console to be seen.
12974
12975         * console-msw.c (msw_ensure_console_allocated):
12976         * console-msw.c (msw_output_console_string):
12977         * console-msw.c (DHEADER):
12978         * console-msw.c (DOPAQUE_DATA):
12979         * console-msw.c (DEVENT):
12980         * console-msw.c (DCONS):
12981         * console-msw.c (DCONSCDR):
12982         * console-msw.c (DSTRING):
12983         * console-msw.c (DVECTOR):
12984         * console-msw.c (DSYMBOL):
12985         * console-msw.c (DSYMNAME):
12986         Fix warnings.
12987
12988         * console-stream.c (stream_init_console):
12989         Fix text/binary problems.
12990
12991         * device-msw.c:
12992         * device-msw.c (mswindows_finish_init_device):
12993         * device-msw.c (mswindows_delete_device):
12994         [1].
12995
12996         * device.c (handle_asynch_device_change):
12997         [3].
12998
12999         * dgif_lib.c:
13000         * dgif_lib.c (DGifOpenFileName):
13001         * dgif_lib.c (DGifOpenFileHandle):
13002         * dgif_lib.c (DGifGetLine):
13003         * dgif_lib.c (DGifGetPixel):
13004         Added config.h/lisp.h, fix up includes.
13005         [1].
13006
13007         * dired-msw.c:
13008         [4].
13009
13010         * dired.c:
13011         * dired.c (file_name_completion):
13012         * dired.c (Ffile_attributes):
13013         * dired.c (syms_of_dired):
13014         [1].
13015
13016         * dumper.c:
13017         * dumper.c (pdump_file_unmap):
13018         * dumper.c (pdump_load):
13019         [1].
13020
13021         * editfns.c:
13022         * editfns.c (Ftemp_directory):
13023         * editfns.c (user_login_name):
13024         * editfns.c (Fuser_real_login_name):
13025         * editfns.c (get_home_directory):
13026         [1].
13027
13028         * elhash.c (finish_marking_weak_hash_tables):
13029         [[[[5]]]]: Fix GCC warnings.
13030
13031         * emacs.c:
13032         * emacs.c (mswindows_handle_hardware_exceptions):
13033         * emacs.c (make_arg_list_1):
13034         * emacs.c (main_1):
13035         * emacs.c (Fkill_emacs):
13036         * emacs.c (Fdump_emacs):
13037         [1].
13038         Fix problems with nested crashes, add long comment.
13039
13040         * event-Xt.c (init_event_Xt_late):
13041         [1].
13042
13043         * event-msw.c:
13044         * event-msw.c (mswindows_dde_callback):
13045         * event-msw.c (mswindows_handle_sticky_modifiers):
13046         * event-msw.c (mswindows_wnd_proc):
13047         [1].
13048         [5].
13049
13050         * events.c (character_to_event):
13051         [1].
13052
13053         * fileio.c:
13054         * fileio.c (Ffile_name_directory):
13055         * fileio.c (Ffile_name_nondirectory):
13056         * fileio.c (directory_file_name):
13057         * fileio.c (Fexpand_file_name):
13058         * fileio.c (Fsubstitute_in_file_name):
13059         * fileio.c (Ffile_name_absolute_p):
13060         * fileio.c (check_executable):
13061         * fileio.c (Ffile_readable_p):
13062         * fileio.c (Ffile_accessible_directory_p):
13063         * fileio.c (Ffile_modes):
13064         * fileio.c (Funix_sync):
13065         * fileio.c (vars_of_fileio):
13066         [1]. [4].
13067
13068         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13069
13070         Expand getdefdir defn.
13071         Fix bogus rename() comment.
13072
13073         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13074         to use standard XEmacs include files, e.g. sysfile.h, rather
13075         than system-specific includes.
13076
13077         * fns.c:
13078         * fns.c (Fsubseq):
13079         [5]. [6].
13080
13081         * frame.c (vars_of_frame):
13082         [1].
13083
13084         * getloadavg.c:
13085         * getloadavg.c (getloadavg):
13086         [1]. [6].
13087         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13088         (We don't use it elsewhere in the code; just add a comment.)
13089
13090         * gif_io.c:
13091         [6].
13092         Add config.h.
13093
13094         * glyphs-msw.c:
13095         * glyphs-msw.c (mswindows_resource_instantiate):
13096         [1].
13097
13098         * glyphs-x.c (x_native_layout_instantiate):
13099         [5].
13100
13101         * gui-msw.c (Fmswindows_shell_execute):
13102         [1].
13103
13104         * insdel.c:
13105         [4].
13106
13107         * lisp.h:
13108         [4]. [5].
13109
13110         * lread.c (locate_file_in_directory_mapper):
13111         [1].
13112
13113         * lstream.c:
13114         [4].
13115
13116         * mem-limits.h:
13117         * mem-limits.h (get_lim_data):
13118         [1].
13119
13120         * menubar-msw.c:
13121         [4].
13122
13123         * ndir.h:
13124         [1].
13125
13126         * nt.c:
13127         * nt.c (getwd):
13128         * nt.c (closedir):
13129         * nt.c (rva_to_section):
13130         * nt.c (mswindows_executable_type):
13131         [1]. [6].
13132         Fix closedir() defn.
13133
13134         * nt.h:
13135         [[[[8]]]]: *_OK defs moved to sysfile.h.
13136
13137         * ntproc.c:
13138         [6]. [7].
13139
13140         * objects-x.c:
13141         [4].
13142
13143         * print.c:
13144         * print.c (std_handle_out_external):
13145         [1]. [4].
13146
13147         * process-nt.c:
13148         * process-nt.c (nt_create_process):
13149         [6].
13150         try to fix process quoting somewhat.
13151
13152         * process-unix.c (unix_create_process):
13153         [1].
13154
13155         * process.c:
13156         * process.c (vars_of_process):
13157         Add Vnull_device.
13158
13159         * process.h:
13160         [1].
13161
13162         * realpath.c:
13163         * realpath.c (xrealpath):
13164         [1].
13165
13166         * redisplay-tty.c (init_tty_for_redisplay):
13167         [3].
13168
13169         * redisplay.c:
13170         [4]. [6].
13171
13172         * scrollbar-msw.c:
13173         [4].
13174
13175         * sheap.c:
13176         * sheap.c (more_static_core):
13177         * sheap.c (report_sheap_usage):
13178         [5]. [6].
13179
13180         * signal.c:
13181         * signal.c (alarm_signal):
13182         [1]. [6].
13183
13184         * sound.c:
13185         [6].
13186
13187         * strftime.c:
13188         * strftime.c (zone_name):
13189         [1]. [5].
13190
13191         * symsinit.h (init_sunpro):
13192         [1].
13193
13194         * syscommctrl.h:
13195         commctrl.h not in Cygwin b20.1.
13196
13197         * sysdep.c:
13198         * sysdep.c (endif):
13199         * sysdep.c (sys_subshell):
13200         * sysdep.c (init_baud_rate):
13201         * sysdep.c (emacs_get_tty):
13202         * sysdep.c (emacs_set_tty):
13203         * sysdep.c (tty_init_sys_modes_on_device):
13204         * sysdep.c (init_system_name):
13205         * sysdep.c (sys_open):
13206         * sysdep.c (interruptible_open):
13207         * sysdep.c (sys_fopen):
13208         * sysdep.c (sys_mkdir):
13209         * sysdep.c (sys_rename):
13210         * sysdep.c (get_process_times_1):
13211         [1]. [6].
13212
13213         * sysdep.h:
13214         [1].
13215
13216         * sysdir.h:
13217         * sysdir.h (DIRENTRY_NONEMPTY):
13218         [1]. [6].
13219
13220         * sysdll.c (dll_init):
13221         * sysdll.h:
13222         [1].
13223
13224         * sysfile.h:
13225         [1]. [6]. [8].
13226         added text/binary defs.
13227
13228         * sysfloat.h:
13229         [1].
13230
13231         * sysproc.h:
13232         * sysproc.h (EDESTADDRREQ):
13233         * sysproc.h (poll_fds_for_input):
13234         [1]. [6].
13235
13236         * syspwd.h:
13237         [6].
13238
13239         * syssignal.h:
13240         [1].
13241
13242         * systime.h:
13243         [1]. [6].
13244
13245         * systty.h:
13246         [1].
13247
13248         * syswindows.h:
13249         [1].
13250         Always define WIN32_LEAN_AND_MEAN.
13251
13252         * unexcw.c (unexec):
13253         [5].
13254
13255         * unexec.c:
13256         * unexec.c (copy_text_and_data):
13257         * unexec.c (adjust_lnnoptrs):
13258         [1].
13259
13260         * unexnt.c:
13261         * unexnt.c (_start):
13262         [1].
13263
13264 2000-06-07  Ben Wing  <ben@xemacs.org>
13265
13266         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13267         was used only as a model.  We've long since extracted any useful
13268         logic or code out of this. (I just did an exhaustive search.)
13269
13270         * s\msdos.h: Removed.
13271
13272         * s\windows95.h: Removed.
13273
13274 2000-06-10  Ben Wing  <ben@xemacs.org>
13275
13276         * s\cygwin32.h:
13277         [1]. [5].
13278         Don't use extern with fun defs.
13279
13280         * s\mingw32.h:
13281         [1]. [7].
13282         Remove nt\inc include.
13283         Remove getdisk, getdefdir. (The former is unused, the latter
13284         expanded in fileio.h.)
13285
13286         * s\windowsnt.h:
13287         * s\windowsnt.h (WIN32_NATIVE):
13288         * s\windowsnt.h (HAVE_STRCASECMP):
13289         [1]. [7].
13290         Add long comment about preprocessor changes.
13291         Remove getdisk, getdefdir. (The former is unused, the latter
13292         expanded in fileio.h.)
13293
13294 2000-06-10  Ben Wing  <ben@xemacs.org>
13295
13296         * m\arm.h:
13297         * m\delta.h:
13298         * m\intel386.h:
13299         * m\sequent.h:
13300         * m\template.h:
13301         * m\windowsnt.h:
13302         [1].
13303         Remove bogus/unused NO_SOCK_SIGIO.
13304
13305 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13306
13307         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13308         not an Emchar.
13309
13310 2000-06-04  Mike Sperber <mike@xemacs.org>
13311
13312         * casetab.c (set_case_table): For `set-standard-case-table',
13313         actually deposit the new case tables where the rest of XEmacs can
13314         see them.
13315
13316 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13317
13318         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13319
13320 2000-06-05  Ben Wing  <ben@xemacs.org>
13321
13322         * callproc.c (child_setup): Don't do close_load_descs() under
13323         MS Windows.  Put in a comment explaining why.
13324
13325 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13326
13327         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13328         Toolkit shell" which breaks `kill-compilation' on Windows NT
13329         native, retaining STDERR handling improvements.
13330
13331 2000-06-01  Andreas Jaeger  <aj@suse.de>
13332
13333         * s/s390.h: Support for S390, based on a patch by Martin
13334         Schwidefsky <schwidefsky@de.ibm.com>.
13335
13336 2000-05-30  Andy Piper  <andy@xemacs.org>
13337
13338         * window.c (allocate_window):
13339         (make_dummy_parent):
13340         (Fset_window_configuration): use new hashtable type.
13341
13342         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13343         (struct image_instantiator_methods):
13344         (struct Lisp_Image_Instance): make instance geometry signed.
13345
13346         * glyphs.c (instantiate_image_instantiator):
13347         (image_instance_query_geometry):
13348         (image_instance_layout):
13349         (image_instance_layout):
13350         (query_string_geometry):
13351         (text_query_geometry):
13352         (image_instantiate):
13353         (image_instantiate):
13354         (cache_subwindow_instance_in_frame_maybe):
13355         (subwindow_query_geometry): make instance geometry signed.
13356
13357         * glyphs-widget.c (widget_query_geometry):
13358         (widget_layout):
13359         (button_query_geometry):
13360         (tree_view_query_geometry):
13361         (tab_control_query_geometry):
13362         (layout_query_geometry):
13363         (layout_layout):
13364         (native_layout_layout): make instance geometry signed.
13365
13366 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13367
13368         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13369         constant.
13370
13371         * general.c (syms_of_general): Add Qfull_assoc symbol.
13372
13373         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13374         correctly.
13375         (decode_weak_list_type): Decode full-assoc type.
13376         (encode_weak_list_type): Encode full-assoc type.
13377         (Fmake_weak_list): Update doc string.
13378
13379 2000-05-30  Andy Piper  <andy@xemacs.org>
13380
13381         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13382
13383         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13384         (decode_hash_table_weakness): ditto.
13385         (Fhash_table_weakness): ditto.
13386         (Fhash_table_type): ditto.
13387         (finish_marking_weak_hash_tables): ditto.
13388         (hash_table_weakness_validate): ditto.
13389         (syms_of_elhash): ditto.
13390
13391 2000-05-28  Martin Buchholz <martin@xemacs.org>
13392
13393         * XEmacs 21.2.34 is released.
13394
13395 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13396
13397         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13398         start cache.
13399         (updating_line_start_cache): Gone.
13400         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13401         generic code to force a minimum of 1 line laid out in the
13402         CMOTION_DISP case.
13403
13404 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13405
13406         * glyphs.c (instantiate_image_instantiator): Check for initialized
13407         height & width no longer special cases IMAGE_NOTHING.
13408         (nothing_instantiate): Set height and width of instance.
13409
13410 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13411
13412         * unexelf.c (unexec): Search for ".data" section.
13413         Initialize new_data2_offset from old_data_index.
13414         Remove redundant check for ElfW.
13415
13416 2000-05-23  Andy Piper  <andy@xemacs.org>
13417
13418         * glyphs.c (get_image_instantiator_governing_domain): allow more
13419         specific domains as the governing domain rather than expecting an
13420         exact match. This fixes problems with layouts.
13421
13422 2000-05-22  Andy Piper  <andy@xemacs.org>
13423
13424         * redisplay-output.c (compare_runes): check for non-images
13425
13426         * glyphs.c (set_glyph_dirty_p): ditto.
13427         (update_glyph_cachel_data): ditto.
13428
13429         * glyphs-widget.c (layout_post_instantiate): ditto.
13430         (layout_post_instantiate): ditto.
13431
13432         * event-msw.c (mswindows_wnd_proc): warning removal.
13433
13434 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13435
13436         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13437
13438         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13439
13440         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13441
13442         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13443         (mswindows_executable_type): mingw32 now has enough headers for
13444         this to work.
13445
13446 2000-05-20  Andy Piper  <andy@xemacs.org>
13447
13448         * console-msw.c (mswindows_output_last_error): ; -> ,
13449
13450 2000-05-12  Andy Piper  <andy@xemacs.org>
13451
13452         * console-msw.c (FROB): compare ints with ints.
13453
13454 2000-05-11  Andy Piper  <andy@xemacs.org>
13455
13456         * glyphs-x.c (x_finalize_image_instance): make minimal build
13457         happy.
13458
13459 2000-05-20  Ben Wing  <ben@xemacs.org>
13460
13461         * event-Xt.c:
13462         * event-Xt.c (vars_of_event_Xt):
13463         move modifier-keys-are-sticky to event-stream.c.
13464
13465         * event-msw.c:
13466         * event-msw.c (mswindows_enqueue_mouse_button_event):
13467         * event-msw.c (key_needs_default_processing_p):
13468         * event-msw.c (XEMSW_LCONTROL):
13469         * event-msw.c (mswindows_handle_sticky_modifiers):
13470         * event-msw.c (FROB):
13471         * event-msw.c (clear_sticky_modifiers):
13472         * event-msw.c (output_modifier_keyboard_state):
13473         * event-msw.c (output_alt_keyboard_state):
13474         * event-msw.c (mswindows_wnd_proc):
13475         * event-msw.c (mswindows_modifier_state):
13476         * event-msw.c (emacs_mswindows_handle_magic_event):
13477         implement sticky modifiers.
13478
13479         * event-stream.c:
13480         * event-stream.c (vars_of_event_stream):
13481         move modifier-keys-are-sticky here.
13482
13483         * lisp.h:
13484         add CHECK_FUNCTION.
13485
13486         * rangetab.c:
13487         implement map-range-table.
13488
13489
13490 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13491
13492         * redisplay-tty.c (reset_tty_modes):
13493         (tty_redisplay_shutdown): Adjust argument type to
13494         tty_frame_output_end.
13495
13496 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13497
13498         * eval.c (Fbacktrace): Don't output a line with only right
13499         parenthesis.
13500
13501 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13502
13503         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13504         (Fpq_reset_poll): Ditto.
13505
13506 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13507
13508         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13509
13510 2000-05-16  Ben Wing  <ben@xemacs.org>
13511
13512         * buffer.c:
13513         * buffer.c (dfc_convert_to/from_internal_format):
13514         * buffer.c (reinit_vars_of_buffer):
13515         Fix conversion functions to allow reentrancy.
13516
13517         * console-msw.c:
13518         * console-msw.c (mswindows_output_last_error):
13519         New fun, generally useful -- output a human-readable
13520         version of GetLastError() on the console.
13521
13522         * console-msw.h:
13523         * console-msw.h (struct mswindows_frame):
13524         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13525
13526         * console-stream.c (stream_output_begin):
13527         * console-stream.c (stream_output_end):
13528         * console-stream.c (stream_output_vertical_divider):
13529         * console-stream.c (stream_clear_region):
13530         * console-stream.c (stream_flash):
13531         * console-stream.c (console_type_create_stream):
13532         Delete blank stream methods, not needed.
13533
13534         * console.h (struct console_methods):
13535         Split begin/end methods into window and frame.
13536
13537         * event-msw.c:
13538         * event-msw.c (mswindows_handle_paint):
13539         * event-msw.c (output_alt_keyboard_state):
13540         * event-msw.c (mswindows_wnd_proc):
13541         * event-msw.c (vars_of_event_mswindows):
13542         Comment about problems with ignored-expose.
13543         Define mswindows-debug-events; not really implemented.
13544
13545         * frame-msw.c (mswindows_init_frame_1):
13546         random cleanups.
13547
13548         * glyphs-msw.c:
13549         * glyphs-msw.c (begin_defer_window_pos):
13550         * glyphs-msw.c (mswindows_unmap_subwindow):
13551         * glyphs-msw.c (mswindows_map_subwindow):
13552         * glyphs-msw.c (mswindows_resize_subwindow):
13553         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13554
13555         * glyphs.c (make_image_instance_1):
13556         Fix crash.
13557
13558         * gutter.c (Fredisplay_gutter_area):
13559         Use new begin/end methods.
13560
13561         * lisp.h (Dynarr_new2):
13562         New creation fun.
13563
13564         * redisplay-msw.c:
13565         * redisplay-msw.c (mswindows_frame_output_begin):
13566         * redisplay-msw.c (mswindows_frame_output_end):
13567         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13568         New begin/end methods -- handle DeferWindowPos.
13569
13570         * redisplay-output.c (redisplay_move_cursor):
13571         * redisplay-output.c (redraw_cursor_in_window):
13572         * redisplay-output.c (redisplay_update_line):
13573         * redisplay-output.c (redisplay_output_window):
13574         New begin/end methods.
13575
13576         * redisplay-tty.c:
13577         * redisplay-tty.c (tty_frame_output_begin):
13578         * redisplay-tty.c (tty_frame_output_end):
13579         * redisplay-tty.c (console_type_create_redisplay_tty):
13580         New begin/end methods.
13581
13582         * redisplay-x.c:
13583         * redisplay-x.c (x_window_output_begin):
13584         * redisplay-x.c (x_window_output_end):
13585         * redisplay-x.c (console_type_create_redisplay_x):
13586         New begin/end methods.
13587
13588         * redisplay.c (redisplay_frame):
13589         * redisplay.c (Fredisplay_echo_area):
13590         New begin/end methods.
13591         use MAYBE_DEVMETH for clear_frame; it may not exist.
13592
13593         * window.h (WINDOW_XFRAME):
13594         WINDOW_XFOO macros -- get locale and decode struct pointer.
13595
13596
13597 2000-05-12  Ben Wing  <ben@xemacs.org>
13598
13599         * emacs.c:
13600         * emacs.c (ensure_no_quitting_from_now_on):
13601         * emacs.c (fatal_error_signal):
13602         * emacs.c (mswindows_handle_hardware_exceptions):
13603         * emacs.c (main):
13604         * emacs.c (Fkill_emacs):
13605         * emacs.c (shut_down_emacs):
13606         * emacs.c (assert_failed):
13607         various improvements in fatal error handling.
13608
13609         * eval.c:
13610         move preparing_for_armageddon to emacs.c.
13611
13612         * lisp.h:
13613         declare fatal_error_in_progress.
13614
13615         * print.c:
13616         * print.c (std_handle_out_external):
13617         * print.c (std_handle_out_va):
13618         * print.c (stderr_out):
13619         * print.c (stdout_out):
13620         use console under mswin when no standard output.
13621         don't do code conversion during fatal error.
13622
13623         * scrollbar.c (Fscrollbar_page_up):
13624         * scrollbar.c (Fscrollbar_page_down):
13625         fix missing else.  reindent.
13626
13627 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13628
13629         Emergency fix.
13630
13631         * glyphs.h (GLYPH_CACHEL_DESCENT):
13632         (GLYPH_CACHEL_DESCENT):
13633         (GLYPH_CACHEL_DESCENT):
13634         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13635         used in case these are inline functions.
13636         Use more absurd values to error check.
13637
13638         include window.h for error check functions.
13639
13640 2000-05-11  Ben Wing  <ben@xemacs.org>
13641
13642         * cmdloop.c (Freally_early_error_handler):
13643         Display message box under windows; otherwise, message will disappear
13644         before it can be viewed.
13645
13646         * console-msw.c:
13647         * console-msw.c (Fmswindows_message_box):
13648         * console-msw.c (FROB):
13649         * console-msw.c (syms_of_console_mswindows):
13650         Define new fun `mswindows-message-box'.
13651         #### I will merge this into `popup-dialog-box'; just give me
13652         a bit of time.
13653
13654         * general.c:
13655         * general.c (syms_of_general):
13656         Some new symbols used in `mswindows-message-box'.
13657
13658         * glyphs.c:
13659         * glyphs.c (Fset_image_instance_property):
13660         put warning in this fun.
13661
13662         * glyphs.h:
13663         * glyphs.h (GLYPH_CACHEL_WIDTH):
13664         * glyphs.h (GLYPH_CACHEL_ASCENT):
13665         * glyphs.h (GLYPH_CACHEL):
13666         * glyphs.h (GLYPH_CACHEL_GLYPH):
13667         define error-checking versions to try to catch a bug i've seen --
13668         redisplay gets in an infinite loop because the glyph width of the
13669         continuation glyph is 65535.
13670
13671         * lisp.h:
13672         Extern message-box stuff.
13673
13674         * window.c (allocate_window):
13675         * window.c (make_dummy_parent):
13676         * window.c (Fset_window_configuration):
13677         Use EQUAL not EQ for subwindow caches to make them work a bit
13678         better. (Something is still very broken.)
13679
13680
13681 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13682
13683         * glyphs.c (image_instantiate): Suppress gcc warnings.
13684         (Fmake_image_instance): Fix doc string.
13685         * specifier.c (Fmake_specifier): Ditto.
13686
13687 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13688
13689         * paths.h.in (PATH_LOCK): Removed.
13690         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13691         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13692
13693 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13694
13695         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13696         Document (featurep '(and xemacs 21.02)).
13697
13698 2000-05-09  Ben Wing  <ben@xemacs.org>
13699
13700         * buffer.c (complex_vars_of_buffer):
13701         update modeline-format doc.
13702
13703         * device.h:
13704         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13705
13706         * emacs.c:
13707         timeline of all released versions of Emacs, for use in creating
13708         authorship comments and in synching up.
13709
13710         * glyphs-widget.c (image_instantiator_buttons):
13711         * glyphs-widget.c (image_instantiator_edit_fields):
13712         * glyphs-widget.c (image_instantiator_combo_box):
13713         * glyphs-widget.c (image_instantiator_scrollbar):
13714         * glyphs-widget.c (image_instantiator_progress_guage):
13715         * glyphs-widget.c (image_instantiator_tree_view):
13716         * glyphs-widget.c (image_instantiator_tab_control):
13717         * glyphs-widget.c (image_instantiator_labels):
13718         * glyphs-widget.c (image_instantiator_layout):
13719         * glyphs-widget.c (image_instantiator_native_layout):
13720         rename decode_domain method to governing_domain.
13721
13722         * glyphs.c:
13723         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13724         * glyphs.c (add_entry_to_device_ii_format_list):
13725         make sure we don't put an entry more than once into the list.
13726         * glyphs.c (check_instance_cache_mapper):
13727         *************************************************************
13728         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13729         HAVE BEEN GETTING.
13730         *************************************************************
13731         * glyphs.c (get_image_instantiator_governing_domain):
13732         clean up, expand on new concept of governing domain.
13733         * glyphs.c (instantiate_image_instantiator):
13734         * glyphs.c (allocate_image_instance):
13735         use governing_domain instead of cache_domain in naming.
13736         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13737         * glyphs.c (make_image_instance_1):
13738         * glyphs.c (Fmake_image_instance):
13739         allow for any domain (not just device), and process the
13740         governing domain correctly.  very big doc fix.
13741         * glyphs.c (Fimage_instance_domain):
13742         new primitive, to retrieve the governing domain of an image instance.
13743         * glyphs.c (image_instantiate):
13744         use new governing_domain stuff.  this fixes a crash you could get
13745         by instantiating certain widget glyphs in frame locales. (should
13746         signal an error instead of crashing.)
13747         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13748         * glyphs.c (Fglyphp): clean up doc.
13749         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13750         * glyphs.c (syms_of_glyphs):
13751         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13752         * glyphs.c (image_instantiator_format_create): add some comments about
13753         bogus code.
13754         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13755         for current-display-table. (Apparently Hrjove implemented in 1998 a
13756         design I wrote up in 1996, but didn't update the doc string.)
13757
13758         * glyphs.h: clean up a doc string.
13759         * glyphs.h (governing_domain):
13760         * glyphs.h (struct image_instantiator_methods):
13761         changes for governing_domain stuff.
13762
13763         * gutter.c:
13764         * gutter.c (Fgutter_specifier_p):
13765         * gutter.c (Fgutter_size_specifier_p):
13766         * gutter.c (Fgutter_visible_specifier_p):
13767         * objects.c:
13768         * objects.c (Fcolor_specifier_p):
13769         * objects.c (Ffont_specifier_p):
13770         * objects.c (Fface_boolean_specifier_p):
13771         doc strings moved to make-*-specifier.
13772
13773         * redisplay.c (add_disp_table_entry_runes_1):
13774         * redisplay.c (generate_fstring_runes):
13775         * redisplay.c (screen):
13776         add random comments and doc strings.
13777
13778         * specifier.c:
13779         * specifier.c (Fmake_specifier):
13780         major overhaul of this doc string.
13781
13782         * specifier.c (Fvalid_specifier_domain_p):
13783         comment about the bogosity of image instances being domains.
13784         * specifier.c (decode_domain):
13785         now non-static, used in glyphs.c.
13786         * specifier.c (specifier_instance):
13787         comment about the bogosity of image instances being domains.
13788         * specifier.c (Fgeneric_specifier_p):
13789         move doc string to make-generic-specifier.
13790         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13791         rebackslashify.
13792
13793         * specifier.h:
13794         * specifier.h (DOMAIN_FRAME):
13795         * specifier.h (DOMAIN_LIVE_P):
13796         * specifier.h (DOMAIN_XDEVICE):
13797         rebackslashify.
13798         add comments about problems with these macros.
13799         prototype for decode_domain.
13800
13801         * toolbar.c:
13802         * toolbar.c (Ftoolbar_specifier_p):
13803         move doc string to `make-toolbar-specifier'.
13804
13805         * window.c (window_unmap_subwindows_cache_mapper):
13806         *************************************************************
13807         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13808         HAVE BEEN GETTING.
13809         *************************************************************
13810
13811 2000-05-09  Andy Piper  <andy@xemacs.org>
13812
13813         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13814
13815         * window.c (Fset_window_configuration): reset the frame subwindow
13816         cache and re-initialize the window subwindow caches.
13817
13818         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13819
13820 2000-05-09  Ben Wing  <ben@xemacs.org>
13821
13822         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13823         DWORD.
13824
13825 2000-04-26  Mike Woolley  <mike@bulsara.com>
13826
13827         * ntheap.c: Changed recreate_heap to limit the amount reserved
13828         for the heap to that which is actually available. Also now
13829         displays a message box (with some dignostics) in the event that
13830         it still can't start.
13831
13832 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13833
13834         * callproc.c (Fold_call_process_internal): GCPRO path
13835
13836 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13837
13838         Patch by Bill Perry.
13839
13840         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13841         back data instead of #ifdef.
13842         (Fscrollbar_page_down): ditto.
13843
13844 2000-05-07  Ben Wing  <ben@xemacs.org>
13845
13846         * buffer.h:
13847         Kludge for defining Qmswindows_tstr.
13848
13849         * nt.c:
13850         * nt.c (open_input_file):
13851         * nt.c (open_output_file):
13852         * nt.c (rva_to_section):
13853         * nt.c (mswindows_executable_type):
13854         Move all memory-mapped-file routines here (some were in unexnt.c,
13855         which is bad because they are used by process-nt.c, and unexnt
13856         won't be around when portable dumping).  Synched the above routines
13857         with FSF 20.6.
13858
13859         * nt.h:
13860         Removed ifdef'd out bogus code.
13861         Fixed some prototypes.
13862
13863         * nt.h (file_data):
13864         * nt.h (OFFSET_TO_RVA):
13865         * nt.h (RVA_TO_OFFSET):
13866         * nt.h (RVA_TO_PTR):
13867         Moved the memory-mapped-file structures, macros and prototypes
13868         here, to parallel nt.c.  ntheap.h should really be removed
13869         entirely, and it's a non-portable-dumper specific file.
13870
13871         * ntheap.h (round_to_next):
13872         Moved the memory-mapped-file structures, macros and prototypes
13873         to nt.h.
13874
13875         * ntproc.c (compare_env):
13876         Moved rva_to_section and mswindows_executable_type to nt.c.
13877         Moved compare_env to process-nt.c.
13878         ntproc.c will die, one day.
13879
13880         * ntproc.c (sys_spawnve):
13881         Account for win32_ -> mswindows_.
13882
13883         * process-nt.c:
13884         * process-nt.c (struct nt_process_data):
13885         * process-nt.c (ensure_console_window_exists):
13886         * process-nt.c (compare_env):
13887         * process-nt.c (nt_create_process):
13888         * process-nt.c (nt_kill_process_by_pid):
13889         * process-nt.c (syms_of_process_nt):
13890         * process-nt.c (vars_of_process_nt):
13891         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13892         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13893         changes).  Eliminate our old `nt-quote-process-args' mechanism.
13894         Synch up nt_create_process with FSF 20.6 sys_spawnve.
13895         Move compare_env here from ntproc.c.
13896
13897         * process.c (Fprocess_send_region):
13898         Takes an optional fourth argument, BUFFER, which should fix some
13899         problems with call-process.
13900
13901         * syscommctrl.h:
13902         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13903
13904         * syswindows.h:
13905         Move ICC_BAR_CLASSES to syscommctrl.h.
13906         Add preliminary macros for MSWindows/Mule.  More to come.
13907
13908         * unexnt.c:
13909         * unexnt.c (unexec):
13910         open_output_file moved to nt.c.
13911
13912
13913 2000-05-05  Andy Piper  <andy@xemacs.org>
13914
13915         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13916         instance from the frame cache also since GC may catch up too late
13917         to make frame deletion sane.
13918
13919 2000-05-04  Andy Piper  <andy@xemacs.org>
13920
13921         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13922         (x_finalize_image_instance): ungcpro on deletion.
13923
13924         * glyphs.c (image_instantiator_format_create): give pointers a
13925         query geometry method so that the geometry is at least set.
13926
13927         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13928         initialize layouts if using widgets.
13929
13930 2000-05-03  Andy Piper  <andy@xemacs.org>
13931
13932         * nt.c: remove bogus reference to sysmmsystem.h
13933
13934         * gui-x.c (popup_selection_callback): fix no selection abort.
13935
13936 2000-05-02  Andy Piper  <andy@xemacs.org>
13937
13938         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13939         (mswindows_widget_instantiate): ditto.
13940
13941         * glyphs-widget.c (initialize_widget_image_instance): initialize
13942         children correctly.
13943         (widget_instantiate): cope with children and items in the same
13944         instance.
13945
13946         * glyphs.c (mark_image_instance): cope with children as a first
13947         class member.
13948         (image_instance_equal): ditto.
13949         (image_instance_hash): ditto.
13950         (image_instance_changed): ditto.
13951
13952 2000-04-30  Andy Piper  <andy@xemacs.org>
13953
13954         * glyphs.c (subwindow_query_geometry): new function. Return some
13955         defaults.
13956         (subwindow_instantiate): don't assign dimensions if none have been
13957         given.
13958         (image_instantiator_format_create): add subwindow_query_geometry.
13959         (print_image_instance): cope with layouts as widgets.
13960
13961 2000-04-29  Andy Piper  <andy@xemacs.org>
13962
13963         * frame.c (delete_frame_internal): call
13964         free_frame_subwindow_instance_cache so that all subwindows are
13965         finalized before their parent.
13966         (mark_frame): remove subwindow_cachels.
13967         (Fmake_frame): remove subwindow_cachel manipulation.
13968         (allocate_frame_core): subwindow_instance_cache is a weak list.
13969         (delete_frame_internal): set subwindow_instance_cache to nil.
13970
13971         * glyphs-msw.c (mswindows_finalize_image_instance): make double
13972         finalization safe.
13973         (mswindows_finalize_image_instance): use the device
13974         not the domain as the domain may have died already.
13975
13976         * glyphs-x.c (x_finalize_image_instance): ditto.
13977         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13978         HEIGHT.
13979
13980         * redisplay-output.c (redisplay_unmap_subwindows): update for
13981         subwindow instance cache as a weak list.
13982         (redisplay_unmap_subwindows_maybe): ditto.
13983         (redisplay_unmap_subwindows_except_us): ditto.
13984
13985         * glyphs.c (unmap_subwindow): error checking will check the domain
13986         so don't deal with it here. Don't use cachels anymore.
13987         (map_subwindow): ditto.
13988         (update_subwindow_cachel_data): remove old accessor names.
13989         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
13990         (Fresize_subwindow): don't update cachel.
13991         (mark_subwindow_cachels):
13992         (update_subwindow_cachel_data):
13993         (add_subwindow_cachel):
13994         (get_subwindow_cachel_index):
13995         (update_subwindow_cachel):
13996         (reset_subwindow_cachels):
13997         (mark_subwindow_cachels_as_not_updated): deleted.
13998         (cache_subwindow_instance_in_frame_maybe): new function. Add a
13999         subwindow instance to the frame cache.
14000         (find_matching_subwindow): update for subwindow instance cache as
14001         a weak list.
14002         (update_widget_instances): ditto.
14003         (image_instance_type_to_mask):inlined.
14004         (free_frame_subwindow_instance_cache): new function. finalize all
14005         subwindows that are instantiated.
14006
14007         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14008         of cachel information.
14009         (IMAGE_INSTANCE_DISPLAY_X):
14010         (IMAGE_INSTANCE_DISPLAY_Y):
14011         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14012         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14013         (XIMAGE_INSTANCE_DISPLAY_X):
14014         (XIMAGE_INSTANCE_DISPLAY_Y):
14015         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14016         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14017         remove subwindow_cachel structure and function references.
14018         (image_instance_type_to_mask): inline from glyphs.c
14019
14020         * redisplay.c (redisplay_frame): remove subwindow_cachel
14021         references.
14022
14023         * frame.h (struct frame): remove subwindow_cachels.
14024         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14025
14026         * frameslots.h: add subwindow_instance_cache.
14027
14028         * window.c (replace_window): check subwindow cache of replacement.
14029         (window_unmap_subwindows_cache_mapper):
14030         (window_unmap_subwindows): new functions. Unmap all subwindows
14031         cached on this window.
14032         (mark_window_as_deleted): unmap all subwindows.
14033
14034 2000-04-27  Andy Piper  <andy@xemacs.org>
14035
14036         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14037
14038         * glyphs-widget.c (widget_layout): return something.
14039         (layout_layout): return something. Fail if not initialized.
14040         (layout_query_geometry): ditto.
14041         (image_instantiator_native_layout): new function. Initialized the
14042         native layout type.
14043         (widget_instantiate): don't do layout stuff here.
14044
14045         * glyphs.c (instantiate_image_instantiator): reorded calling or
14046         instantiate and post_instantiate with layout in between.
14047         (image_instance_layout): be more selective about deciding whether
14048         the layout has been done or not.
14049
14050         * glyphs.h (struct image_instantiator_methods): return a value
14051         from layout_method.
14052
14053 2000-04-26  Andy Piper  <andy@xemacs.org>
14054
14055         * glyphs.c (allocate_image_instance): make initial width and
14056         height unspecified. Set initialized to 0.
14057
14058         * syscommctrl.h new file. Encapsulates commctrl.h.
14059
14060         * syswindows.h new file. Encapsulates windows.h.
14061
14062         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14063         * nt.c: ditto.
14064         * console-msw.h: ditto.
14065
14066         * redisplay-tty.c (tty_output_display_block): remove layout references.
14067
14068         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14069         window handle rather than just the frame.
14070
14071         * glyphs.c (mark_image_instance): remove layout references.
14072         (print_image_instance): ditto.
14073         (image_instance_equal): ditto.
14074         (image_instance_hash): ditto.
14075         (decode_image_instance_type): ditto.
14076         (encode_image_instance_type): ditto.
14077         (image_instantiate): ditto.
14078         (allocate_glyph): ditto.
14079         (Fimage_instance_height): ditto.
14080         (Fimage_instance_width): ditto.
14081         (update_subwindow): ditto.
14082
14083         * redisplay-x.c (x_output_display_block): recode for layouts as
14084         widgets.
14085
14086         * redisplay-output.c (redisplay_output_layout): recode for layouts
14087         as widgets.
14088         (compare_runes): remove layout references.
14089
14090         * redisplay-msw.c (mswindows_output_display_block): recode for
14091         layouts as widgets.
14092
14093         * glyphs-widget.c (image_instantiator_layout): remove
14094         layout_possible_dest_types.
14095         (layout_possible_dest_types): deleted.
14096
14097         * glyphs.h (image_instance_type): remove layout references.
14098         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14099         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14100         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14101
14102 2000-04-25  Andy Piper  <andy@xemacs.org>
14103
14104         * glyphs-widget.c (image_instantiator_buttons):
14105         (image_instantiator_edit_fields):
14106         (image_instantiator_combo_box):
14107         (image_instantiator_scrollbar):
14108         (image_instantiator_progress_guage):
14109         (image_instantiator_tree_view):
14110         (image_instantiator_tab_control):
14111         (image_instantiator_labels):
14112         (image_instantiator_layout): call default post_instantiate method.
14113         (widget_post_instantiate): new function. Simply lays out the
14114         widgets.
14115
14116         * glyphs.h (struct image_instantiator_methods): add
14117         post_instantiate method.
14118
14119         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14120         method calls.
14121
14122 2000-04-23  Andy Piper  <andy@xemacs.org>
14123
14124         * glyphs.h (struct image_instantiator_methods): add
14125         decode_domain_method.
14126         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14127         derived from the domain.
14128         (IMAGE_INSTANCE_FRAME): new accessor.
14129         (XIMAGE_INSTANCE_FRAME): ditto.
14130
14131         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14132         instead of _SUBWINDOW_FRAME.
14133         (finalize_image_instance): ditto.
14134         (Fimage_instance_foreground): ditto.
14135         (Fimage_instance_background): ditto.
14136         (image_instantiate): ditto.
14137         (update_subwindow_cachel): ditto.
14138         (update_subwindow): ditto.
14139         (unmap_subwindow): ditto.
14140         (map_subwindow): ditto
14141         (subwindow_instantiate): ditto.
14142         * glyphs-msw.c (mswindows_update_widget): ditto.
14143         (mswindows_progress_gauge_instantiate): ditto.
14144         (mswindows_tab_control_update): ditto.
14145         * glyphs-x.c (x_update_widget): ditto.
14146         (x_widget_instantiate): ditto.
14147         (x_tab_control_instantiate): ditto.
14148         (x_tab_control_update): ditto.
14149         * event-msw.c (mswindows_wnd_proc): ditto
14150
14151         * glyphs-widget.c (image_instantiator_layout): use
14152         subwindow_decode_domain.
14153         (image_instantiator_buttons): ditto.
14154         (image_instantiator_edit_fields): ditto.
14155         (image_instantiator_combo_box): ditto.
14156         (image_instantiator_scrollbar): ditto.
14157         (image_instantiator_progress_guage): ditto.
14158         (image_instantiator_tree_view): ditto.
14159         (image_instantiator_tab_control): ditto.
14160         (image_instantiator_labels): ditto.
14161         (image_instantiator_layout): ditto.
14162
14163         * glyphs.c: add instance error checking to many functions.
14164         (instantiate_image_instantiator): decode device from cache_domain.
14165         (image_instantiate): partially rewrite by using
14166         decode_image_instantiator_domain to determine what domain the
14167         instance needs to be cached in.
14168         (decode_image_instantiator_domain): new function. Determine what
14169         domain the image needs to be cached in.
14170         (check_window_subwindow_cache): new error checking function.
14171         (check_instance_cache_mapper): ditto.
14172         (check_image_instance_structure): ditto.
14173         (subwindow_decode_domain): new function. Encodes a window as a
14174         subwindow's cache domain.
14175         (image_instantiator_format_create): use it for text and
14176         subwindows.
14177
14178 2000-04-21  Andy Piper  <andy@xemacs.org>
14179
14180         * glyphs.c (image_instance_device): new function.
14181         (image_instance_frame): new function.
14182         (image_instance_window): new function.
14183         (image_instance_live_p): new function.
14184
14185         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14186         cache to nil.
14187
14188         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14189         (IMAGE_INSTANCE_DOMAIN): new accessor.
14190         (XIMAGE_INSTANCE_DOMAIN): ditto.
14191
14192         * glyphs-x.c (x_finalize_image_instance): device->domain.
14193
14194         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14195         (mswindows_finalize_image_instance): ditto.
14196
14197         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14198         (gif_instantiate): ditto.
14199         (png_instantiate): ditto.
14200         (tiff_instantiate): ditto.
14201
14202         * glyphs.c (instantiate_image_instantiator): use domain rather
14203         than device.
14204         (mark_image_instance): device -> domain.
14205         (print_image_instance): ditto.
14206         (finalize_image_instance): ditto.
14207         (image_instance_equal): ditto.
14208         (allocate_image_instance): ditto.
14209         (Fcolorize_image_instance): ditto.
14210         (query_string_geometry): ditto.
14211         (image_instantiate): ditto
14212         (query_string_font): ditto.
14213         (image_instantiate): ditto.
14214         (update_subwindow): ditto.
14215         (unmap_subwindow): ditto.
14216         (map_subwindow): ditto.
14217         (subwindow_instantiate): ditto.
14218
14219         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14220         (DOMAIN_FRAME): ditto.
14221         (DOMAIN_WINDOW): ditto.
14222         (DOMAIN_LIVE_P): ditto.
14223         (XDOMAIN_DEVICE): ditto.
14224         (XDOMAIN_FRAME): ditto.
14225         (XDOMAIN_WINDOW): ditto.
14226
14227         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14228         a valid specifier domain.
14229
14230 2000-04-19  Andy Piper  <andy@xemacs.org>
14231
14232         * glyphs-widget.c (syms_of_glyphs_widget): remove
14233         widget-callback-current-channel.
14234         (vars_of_glyphs_widget): ditto.
14235         * glyphs.h: ditto
14236
14237         * gui.c (get_gui_callback): revert to previous behaviour.
14238
14239 2000-04-18  Andy Piper  <andy@xemacs.org>
14240
14241         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14242         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14243         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14244
14245         * glyphs.c (image_instance_equal): add margin_width.
14246         (image_instance_hash): ditto.
14247
14248         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14249         (layout_query_geometry): ditto.
14250         (layout_layout): ditto.
14251         (syms_of_glyphs_widget): add margin-width.
14252         (image_instantiator_layout): allow margin-width.
14253
14254         * glyphs.c (update_widget_instances): make a normal function.
14255         (syms_of_glyphs): remove Qupdate_widget_instances.
14256         * glyphs.h: ditto.
14257
14258         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14259         so that we don't corrupt ideas about the last event or
14260         command. Remove widget-callback-current-channel fiddling.
14261         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14262
14263 2000-05-01  Martin Buchholz <martin@xemacs.org>
14264
14265         * XEmacs 21.2.33 is released.
14266
14267 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14268
14269         * make-src-depend: Allow dots in header file name.
14270
14271 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14272
14273         * mule-charset.h (struct charset_lookup): Add
14274         next_allocated_1_byte_leading_byte and
14275         next_allocated_2_byte_leading_byte.
14276         * mule-charset.c: Move above two variables so that those values
14277         will be dumped.
14278
14279 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14280
14281         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14282         when string length is zero.
14283         (find_charsets_in_emchar_string): Ditto.
14284
14285 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14286
14287         * lisp.h: extern Qdialog and Qmenubar.
14288
14289         * gui-x.c: added events.h.
14290                 also fixed typo which made the file uncompilable.
14291
14292         * general.c: Added Qmenubar and Qdialog
14293
14294 2000-04-28  Ben Wing  <ben@xemacs.org>
14295
14296         * frame-msw.c (mswindows_init_frame_1):
14297         * frame-msw.c (mswindows_mark_frame):
14298         * event-msw.c (mswindows_enqueue_dispatch_event):
14299         * console-msw.h:
14300         * console-msw.h (struct mswindows_frame):
14301         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14302         there are now three hash tables for callbacks.
14303         mswindows_enqueue_dispatch_event is no longer static.
14304
14305         * dialog-x.c (maybe_run_dbox_text_callback):
14306         * dialog-x.c (dbox_descriptor_to_widget_value):
14307         switch to new cons3 form for callbacks.
14308
14309         * glyphs-msw.c (mswindows_register_gui_item):
14310         * glyphs-msw.c (mswindows_widget_instantiate):
14311         * glyphs-msw.c (add_tree_item):
14312         * glyphs-msw.c (add_tab_item):
14313         new image instance parameter, so it can be passed to callback-ex.
14314         respect :callback-ex as well as :callback.
14315
14316         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14317         add :callback-ex.
14318
14319         * glyphs.c (print_image_instance):
14320         prettify, e.g. now prints widget type.
14321
14322         * gui-x.h:
14323         certain funs have new image instance parameter.
14324
14325         * gui.c:
14326         * gui.c (get_gui_callback):
14327         * gui.c (gui_item_add_keyval_pair):
14328         * gui.c (gui_item_init):
14329         * gui.c (gui_add_item_keywords_to_plist):
14330         * gui.c (mark_gui_item):
14331         * gui.c (gui_item_hash):
14332         * gui.c (gui_item_equal):
14333         * gui.c (copy_gui_item):
14334         * gui.c (syms_of_gui):
14335         recognize callback-ex in a number of places.
14336         also, fix the annoying "can't get out of yes-no dialog" bug.
14337
14338         * gui.h:
14339         * gui.h (struct Lisp_Gui_Item):
14340         recognize callback-ex in a number of places.
14341
14342         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14343         new parameter in button_item_to_widget_value.
14344
14345         * glyphs-x.c (x_update_widget):
14346         * glyphs-x.c (x_button_instantiate):
14347         * glyphs-x.c (x_button_update):
14348         * glyphs-x.c (x_progress_gauge_instantiate):
14349         * glyphs-x.c (x_edit_field_instantiate):
14350         * glyphs-x.c (x_combo_box_instantiate):
14351         * glyphs-x.c (x_tab_control_instantiate):
14352         * glyphs-x.c (x_label_instantiate):
14353         new image instance parameter in various places.
14354
14355         * event-Xt.c:
14356         * event-Xt.c (enqueue_Xt_dispatch_event):
14357         this fun gets exported.
14358
14359         * gui-msw.c:
14360         * gui-msw.c (mswindows_handle_gui_wm_command):
14361         handle both :callback and :callback-ex, and generate our own
14362         event because it's one of the callback-ex arguments.
14363
14364         * gui-x.c:
14365         * gui-x.c (popup_selection_callback):
14366         handle both :callback and :callback-ex, and generate our own
14367         event because it's one of the callback-ex arguments.
14368         * gui-x.c (button_item_to_widget_value):
14369         * gui-x.c (gui_items_to_widget_values_1):
14370         * gui-x.c (gui_item_children_to_widget_values):
14371         * gui-x.c (gui_items_to_widget_values):
14372         new image instance parameter in various places.
14373
14374         * fns.c (Freplace_list):
14375         fix small typo in doc string.
14376
14377         * lisp.h:
14378         declare enqueue_Xt_dispatch_event.
14379
14380 2000-04-28  Ben Wing  <ben@xemacs.org>
14381
14382         * buffer.c:
14383         * buffer.c (Frecord_buffer):
14384         * buffer.c (syms_of_buffer):
14385         delete record-buffer-hook.
14386
14387         * fns.c:
14388         * fns.c (Freplace_list):
14389         * fns.c (syms_of_fns):
14390         new primitive replace-list.
14391
14392         * frameslots.h:
14393         slot for old buffer-alist.
14394
14395         * lisp.h:
14396         exfun replace-list.
14397
14398         * redisplay.c:
14399         * redisplay.c (redisplay_frame):
14400         * redisplay.c (syms_of_redisplay):
14401         * redisplay.c (vars_of_redisplay):
14402         new hook buffer-list-changed-hook.
14403         call it.
14404
14405 2000-04-27  Ben Wing  <ben@xemacs.org>
14406
14407         * extents.h: extern in_modeline_generation.
14408
14409         * redisplay.c (generate_formatted_string_db): set
14410         in_modeline_generation.
14411
14412         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14413         flags if in modeline generation.  otherwise frame-modified-tick
14414         is ticked far too often.
14415         Declare in_modeline_generation.
14416
14417 2000-04-26  Ben Wing  <ben@xemacs.org>
14418
14419         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14420         option.
14421         (vars_of_emacs): add quick-build as an error-checking option.
14422         A bit kludgy, but there doesn't seem much point in creating
14423         a real var for this.
14424
14425         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14426
14427 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14428
14429         * redisplay.h (struct display_line): Add a new variable,
14430         line_continuation.
14431
14432         * redisplay.c (create_text_block): Set dl->line_continuation if
14433         the line continues.
14434         (create_string_text_block): Ditto.
14435         (regenerate_window_incrementally): Use line_continuation instead
14436         of searching continuation glyph.
14437         (add_margin_runes): Call add_glyph_rune.
14438         (add_glyph_rune): Handle margin glyph.
14439
14440 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14441
14442         * filelock.c (fill_in_lock_file_name):
14443         ANSIfy.
14444         Check for IS_ANY_SEP instead of '/'.
14445         (lock_file_1):
14446         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14447         Never check errno without first seeing that system call failed.
14448         (unlock_file): Add GCPRO.
14449         (Flock_buffer): Fix docstring.
14450         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14451
14452 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14453
14454         * sysdep.c (get_pty_max_bytes):
14455         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14456         strings longer than 252 bytes.
14457
14458         * md5.c: Unconditionally include ANSI header <limits.h>
14459
14460         * glyphs-x.c (convert_EImage_to_XImage):
14461         * lisp-union.h (union Lisp_Object):
14462         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14463
14464 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14465
14466         * filelock.c (current_lock_owner): Remove unused variable o, p.
14467
14468 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14469
14470         * callint.c: Remove multiply defined symbol Qlet
14471         (syms_of_callint): ditto.
14472
14473 2000-04-14  Andy Piper  <andy@xemacs.org>
14474
14475         * general.c (syms_of_general): add last-command, this-command, let
14476         and funcall.
14477
14478         * lisp.h: declare various symbols.
14479
14480         * glyphs.h: declare Qwidget_callback_current_channel;
14481
14482         * glyphs-widget.c (syms_of_glyphs_widget): add
14483         Qgui_callback_current_channel.
14484         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14485
14486         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14487         widget-callback-current-channel when invoking the interactive
14488         arg. Also bind last-command and next-command when invoking the
14489         widget updates.
14490         * gui-x.c (popup_selection_callback): ditto.
14491
14492         * gui.c (get_gui_callback): massage args so that we are always
14493         calling eval. This allows us to add our own variable bindings
14494         outside.
14495
14496         * glyphs-x.c (x_button_instantiate): use
14497         gui_items_to_widget_values since this is GC safe.
14498         (x_progress_gauge_instantiate): ditto.
14499         (x_edit_field_instantiate): ditto.
14500         (x_label_instantiate): ditto.
14501
14502         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14503         (emacs_Xt_event_widget_focus_out): new function
14504         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14505         focus.
14506         (emacs_Xt_event_add_widget_actions): new function. add focus
14507         functions as actions.
14508         (init_event_Xt_late): use it.
14509
14510 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14511
14512         * event-stream.c (Fdispatch_event): Doc fix.
14513
14514 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14515
14516         * postgresql.c: Remove all references to PQsetenv*.
14517
14518         * postgresql.h: Remove references to PGsetenvHandler object.
14519         * lrecord.h (lrecord_type): Ditto.
14520
14521 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14522
14523         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14524         real_heigh and real_width members, and accessor macros for these.
14525
14526         * glyphs-msw.c (init_image_instance_geometry): New function.
14527         (init_image_instance_from_dibitmap): Use it.
14528         (mswindows_resource_instantiate): Use it.
14529         (init_image_instance_from_xbm_inline): Use it.
14530         (mswindows_initialize_image_instance_mask): Use real bitmap
14531         geometry.
14532         (mswindows_create_resized_bitmap): Ditto.
14533         (mswindows_create_resized_mask): Ditto.
14534
14535         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14536         and bitmap to their surface size.
14537
14538 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14539
14540         * process-unix.c (unix_send_process): Guard against process MIA
14541         after Faccept_process_output.
14542
14543 2000-04-11  Ben Wing  <ben@xemacs.org>
14544
14545         * eval.c (unbind_to_hairy): fix brokenness introduced by
14546         nanosecond speed improvements.
14547
14548 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14549
14550         * sunplay.c (init_device): To play sounds correctly, the device
14551         apparently needs to be initialized at least once by XEmacs.  Make
14552         it so.
14553
14554 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14555
14556         * redisplay.c (add_margin_runes): Add text image glyph
14557           handling.
14558
14559 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14560
14561         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14562         gcc is newer than 2.5.
14563
14564 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14565
14566         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14567
14568         * fns.c (size_bit_vector):
14569         * alloc.c (size_vector):
14570         (make_vector_internal):
14571         (make_bit_vector_internal):
14572         (sweep_bit_vectors_1):
14573         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14574
14575 2000-04-06  Andy Piper  <andy@xemacs.org>
14576
14577         * gmalloc.c (malloc): undo previous change.
14578         (malloc): ditto.
14579         (free): ditto.
14580         (realloc): ditto.
14581
14582 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14583
14584         * line-number.c (buffer_line_number): Revert to former version.
14585
14586 2000-04-06  Andy Piper  <andy@xemacs.org>
14587
14588         * gmalloc.c (malloc): add error checking.
14589         (malloc): ditto.
14590         (free): ditto.
14591         (realloc): ditto.
14592
14593         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14594         button_item_to_widget_value arg.
14595
14596         * glyphs-x.c (x_button_instantiate): add extra
14597         button_item_to_widget_value arg.
14598         (x_progress_gauge_instantiate): ditto.
14599         (x_edit_field_instantiate): ditto.
14600         (x_label_instantiate): ditto.
14601
14602         * gui-x.c (gui_items_to_widget_values_1): add extra
14603         button_item_to_widget_value arg.
14604         (button_item_to_widget_value): add extra menu_item_p arg.
14605
14606         * gui-x.h: change signature of button_item_to_widget_value.
14607
14608         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14609         button_item_to_widget_value arg.
14610
14611 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14612
14613         * buffer.h (struct buffer): auto_save_modified should be long.
14614
14615 2000-04-05  Andy Piper  <andy@xemacs.org>
14616
14617         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14618         type.
14619         (button_query_geometry): give a little more room so that athena
14620         buttons fit.
14621
14622 2000-04-05  Andy Piper  <andy@xemacs.org>
14623
14624         * faces.c (complex_vars_of_faces): The widget face should inherit
14625         the font of the gui-element face.
14626
14627 2000-04-04  Andy Piper  <andy@xemacs.org>
14628
14629         * glyphs-x.c (x_button_update): new function. unconditionally
14630         update a button's state when the instance is dirty.
14631         (image_instantiator_format_create_glyphs_x): add x_button_update.
14632         (x_widget_instantiate): remove old resize cruft.
14633
14634 2000-04-02  Andy Piper  <andy@xemacs.org>
14635
14636         * frame.c (change_frame_size_1): The introduction of gutters means
14637         that we need to allow 0 as a potential frame dimension.
14638
14639 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14640
14641         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14642         image glyph if allow_cursor.
14643         (add_hscroll_rune): Don't allow cursor to border glyph.
14644         (create_text_block): Ditto.
14645
14646         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14647         text not in buffer.
14648         (redisplay_output_layout): Call ensure_face_cachel_complete for
14649         text image glyph.
14650
14651
14652 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14653
14654         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14655
14656         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14657         not in buffer
14658
14659         * redisplay-tty.c (tty_output_display_block): Delete the routine
14660         for text image glyph
14661         * redisplay-x.c (x_output_display_block): ditto
14662         * redisplay-msw.c (mswindows_output_display_block): ditto
14663
14664 2000-02-02  Mike Alexander  <mta@arbortext.com>
14665
14666         Note: Some of these were committed by accident as part of other
14667         patches.
14668
14669         * regex.c (regex_compile): Avoid compiler warnings.
14670
14671         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14672
14673         * nt.h: Declare term_ntproc correctly.
14674
14675         * nt.c: Remove incorrect declaration of get_home_directory which
14676         is declared correctly in lisp.h.
14677
14678         * keymap.c (get_keyelt): Avoid compiler warnings.
14679         (raw_lookup_key_mapper): Avoid compiler warnings.
14680
14681         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14682
14683         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14684
14685         * filemode.c (mode_string): Avoid compiler warnings.
14686
14687         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14688         avoid warning.
14689
14690         * events-mod.h: Undef some things that winuser.h defines differently.
14691
14692         * data.c (Faset): Avoid compiler warnings.
14693
14694         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14695
14696 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14697
14698         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14699         Fall through to simple beep on error.
14700         Replace "extern" by real header file.
14701
14702         * linuxplay.c: Use nativesound.h
14703         (play_sound_data): Return error code. Be less verbose on error.
14704
14705         * sunplay.c: Use nativesound.h
14706         (play_sound_data): Return error code. Be less verbose on error.
14707
14708         * ntplay.c: Use nativesound.h
14709         (play_sound_data): Return fake error code
14710
14711         * sgiplay.c: Use nativesound.h
14712         (play_sound_data): Return error code
14713
14714         * hpplay.c: Use nativesound.h, partially implement
14715         new error code. Break compilation until finished.
14716         (play_sound_data): error code.
14717
14718         * nativesound.h (play_sound_file):
14719           (play_sound_data): Prototype in new header.
14720
14721 2000-03-31  Andy Piper  <andy@xemacs.org>
14722
14723         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14724         for toggle and radio buttons.
14725         (image_instantiator_buttons): use it.
14726
14727 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14728
14729         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14730         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14731         found. Scrollbar event probably belonged to some old config.
14732
14733 2000-03-31  Andy Piper  <andy@xemacs.org>
14734
14735         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14736         than 1.
14737         (initialize_widget_image_instance): default layout to
14738         LAYOUT_HORIZONTAL rather than 0.
14739         (widget_instantiate): reverse the item list at the end rather than
14740         every iteration.
14741         (layout_layout): re-code for the border text at the front of the
14742         item list rather than at the end.
14743         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14744         provided by the user.
14745         (widget_query_geometry): comment.
14746
14747 2000-03-30  Andy Piper  <andy@xemacs.org>
14748
14749         * glyphs-widget.c (image_instantiator_layout): allow standard
14750         widget keywords in layouts.
14751
14752         * gutter.c (output_gutter): cope with nil gutter contents.
14753
14754         * frame.c (Fset_frame_properties): add gutter docs.
14755
14756 2000-03-29  Andy Piper  <andy@xemacs.org>
14757
14758         * toolbar-msw.c (TBSTYLE_FLAT): add.
14759         (mswindows_output_toolbar): minor fiddling.
14760
14761 2000-03-29  Andy Piper  <andy@xemacs.org>
14762
14763         * gutter.c (output_gutter): force gutter size recalculation if
14764         what we are trying to display won't fit.
14765         (update_gutter_geometry): new function. A per-gutter version of
14766         update_frame_gutter_geometry.
14767         (update_frame_gutter_geometry): use it.
14768         (redraw_exposed_gutter): add extra debugging output.
14769
14770 2000-03-28  Mike Alexander  <mta@arbortext.com>
14771
14772         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14773         (pdump_file_unmap): Implement it on Windows
14774         (pdump_file_get): Save alocated handles for pdump_file_unmap
14775
14776 2000-03-28  Andy Piper  <andy@xemacs.org>
14777
14778         * gui.c (get_gui_callback): treat Quit specially.
14779
14780 2000-03-27  Andy Piper  <andy@xemacs.org>
14781
14782         * glyphs.c (image_instantiate): be careful to check in the same
14783         way we assigned.
14784
14785 2000-03-27  Didier Verna  <didier@xemacs.org>
14786
14787         * config.h.in: define the proper SMART_INCLUDE macro.
14788         handle renaming of `foo_h_path' to `foo_h_file'.
14789
14790         * database.c: ditto.
14791
14792         * emacs.c: ditto.
14793
14794         * linuxplay.c: ditto.
14795
14796         * terminfo.c: ditto.
14797
14798         * tooltalk.h: ditto.
14799
14800 2000-03-27  Andy Piper  <andy@xemacs.org>
14801
14802         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14803         gets updated whenever the face might have changed.
14804
14805 2000-03-26  Mike Alexander  <mta@arbortext.com>
14806
14807         * dumper.c (pdump_resource_free): Fix the comment.
14808
14809 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14810
14811         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14812
14813 2000-03-22  Mike Alexander  <mta@arbortext.com>
14814
14815         * dumper.c: Include Windows headers on Windows
14816         (pdump_resource_free): Add a body to the function
14817         (pdump_load): exe_name -> exe_path and add some comments.
14818
14819 2000-03-25  Mike Alexander  <mta@arbortext.com>
14820
14821         * gui.c (copy_gui_item_tree): Return a value in all cases
14822
14823 2000-03-21  Didier Verna  <didier@xemacs.org>
14824
14825         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14826         lwlib/config.h.in.
14827         (SMART_INCLUDE): new macro.
14828         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14829         the proper location.
14830
14831         * postgresql.c: use it.
14832
14833         * inline.c: ditto.
14834
14835 2000-03-24  Andy Piper  <andy@xemacs.org>
14836
14837         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14838         do this.
14839
14840 2000-03-24  Andy Piper  <andy@xemacs.org>
14841
14842         * redisplay-output.c (compare_runes): use image_instance_changed
14843         to detect changes. Do not depend on glyphs_changed, only depend on
14844         dirtiness.
14845          (redisplay_output_layout): add debug messages.
14846         (compare_runes): ditto.
14847
14848         * glyphs.h: declare new functions.
14849         (struct Lisp_Image_Instance): remove percent and associated
14850         accessors.
14851
14852         * gui.h: declare new copying functions.
14853
14854         * gui.c (copy_gui_item_tree): new function.
14855         (copy_gui_item): new function.
14856         (gui_item_id_hash): revert to standard hash.
14857         (gui_item_hash): ditto.
14858         (gui_item_hash_internal): deleted.
14859         (mark_gui_item): mark value.
14860         (gui_item_add_keyval_pair): add value.
14861         (gui_item_init): ditto.
14862         (gui_add_item_keywords_to_plist): ditto.
14863         (gui_item_equal): ditto.
14864         (syms_of_gui): add Q_value.
14865
14866         * glyphs-x.c (x_progress_gauge_update): use pending items and
14867         value for setting the state.
14868         (x_update_widget): don't set items from pending here.
14869
14870         * glyphs-widget.c (update_widget): update items here.
14871         (progress_gauge_set_property): use items for storing value. Put
14872         new value in pending items.
14873
14874         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14875         items for new value. Convert percent -> value.
14876         (mswindows_tab_control_update): don't update items here.
14877
14878         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14879         (update_subwindow): ditto.
14880         (image_instance_changed): new function. Compare hash values and
14881         past and present widget items.
14882         (image_instantiate): We more careful about where we instantiate
14883         things.
14884         (image_instantiate): add error checking.
14885
14886         * gutter.c (syms_of_gutter): use -hook.
14887
14888 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
14889
14890         * console-tty.c (Fset_console_tty_input_coding_system): Use
14891         Qkeyboard.
14892         (Fset_console_tty_output_coding_system): Use Qterminal.
14893         (tty_init_console): Use Qkeyboard and Qterminal.
14894
14895 2000-03-21  Ben Wing  <ben@xemacs.org>
14896
14897         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14898         From Mike Alexander <mta@arbortext.com>.
14899
14900 2000-03-21  Ben Wing  <ben@xemacs.org>
14901
14902         * event-msw.c (mswindows_need_event): Horrible kludge to fix
14903         process brokenness.  Proper implementation to come.
14904         * callproc.c:
14905         Rename call-process-internal to old-call-process-internal.
14906         New impl. in process.el.
14907
14908 2000-03-21  Martin Buchholz  <martin@xemacs.org>
14909
14910         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14911
14912 2000-03-20  Andy Piper  <andy@xemacs.org>
14913
14914         * glyphs.c (full_list_hash): make hashes of the same elements in
14915         different orders return different values.
14916
14917 2000-03-20  Martin Buchholz <martin@xemacs.org>
14918
14919         * XEmacs 21.2.32 is released.
14920
14921 2000-03-20  Martin Buchholz  <martin@xemacs.org>
14922
14923         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14924         (DFC_MALLOC_USE_CONVERTED_DATA):
14925         Add aliasing-safe casts to allow use with char* or unsigned char*
14926         lvalues.
14927
14928         * eldap.c (Fldap_open):
14929         (Fldap_search_basic):
14930         (Fldap_add):
14931         (Fldap_modify):
14932         Make C++-compilable.
14933         Make sure GCPRO'ed variables are initialized.
14934         Use temp variables to avoid repeated calls to Flength.
14935
14936 2000-03-16  Martin Buchholz  <martin@xemacs.org>
14937
14938         * sysfile.h:
14939         Make sure PATH_MAX is always defined.
14940         Include limits.h for PATH_MAX.
14941         Deprecate use of MAXPATHLEN.
14942
14943 2000-03-10  Martin Buchholz  <martin@xemacs.org>
14944
14945         * emacs.c: Add reinit_vars_of_fileio.
14946         * symsinit.h: Add reinit_vars_of_fileio.
14947         * fileio.c (reinit_vars_of_fileio): New.
14948         * fileio.c (Fmake_temp_name):
14949         Initialize temp_name random number from microseconds to make
14950         collisions even less likely.  Initialize always at process startup
14951         time.  (make-temp-name) used to return the same file name twice in
14952         a row when PDUMP.
14953         Random stylistic fiddling.
14954         Comment fixes.
14955
14956 2000-03-20  Andy Piper  <andy@xemacs.org>
14957
14958         * glyphs.c (image_instantiate): allow text glyphs to be
14959         instantiated in the minibuffer window.
14960
14961 2000-03-19  Andy Piper  <andy@xemacs.org>
14962
14963         * glyphs.c (image_instance_hash): be careful about which items we
14964         hash on.
14965
14966         * glyphs-widget.c (tab_control_set_property): record into pending
14967         items rather than the actual items.
14968
14969         * glyphs-x.c (x_update_widget): use pending items to update with.
14970
14971         * glyphs-msw.c (mswindows_tab_control_update): use pending items
14972         to update with.
14973
14974         * glyphs.c (mark_image_instance): mark pending items.
14975
14976         * window.c (Fset_window_configuration): record the buffer.
14977         (Fselect_window): totally revert previous change which breaks many
14978         things.
14979
14980 2000-03-18  Andy Piper  <andy@xemacs.org>
14981
14982         * glyphs-msw.c (mswindows_tab_control_update): force selected
14983         item.
14984
14985         * glyphs.c (image_instantiate): don't allow the minibuffer as a
14986         window domain cache, otherwise we get inconsistencies at
14987         startup. There is something fishy at startup which can lead to the
14988         minibuffer being the selected window when the gutter content is
14989         instantiated.
14990
14991         * gui.c (parse_gui_item_tree_list): add probably unnecessary
14992         gcpros.
14993         (parse_gui_item_tree_children): ditto.
14994         (parse_gui_item_tree_item): ditto.
14995
14996         * glyphs.c (Fupdate_widget_instances): return something.
14997
14998 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
14999
15000         * window.c (Fselect_window): Undo 2000-03-17 change.
15001
15002 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15003
15004         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15005         against v7.0 libraries.  Insta-coredump city until the postgres
15006         folks fix it.
15007
15008 2000-03-17  Andy Piper  <andy@xemacs.org>
15009
15010         * faces.c (complex_vars_of_faces): don't give the widget face an
15011         inherited background pixmap.
15012
15013         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15014         selected item.
15015
15016         * event-stream.c (Fdispatch_non_command_events): return something.
15017
15018         * gutter.c (output_gutter): use widget face.
15019         (clear_gutter): ditto.
15020
15021         * NEWS: adjust again.
15022
15023         * window.c (Fselect_window): make sure this runs to completion to
15024         avoid oddities with Fset_window_configuration.
15025         (Fcurrent_window_configuration): in general do not save the
15026         minibuffer as the selected window.
15027
15028         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15029
15030 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15031
15032         * emacs.c (Frunning_temacs_p): Revert previous patch.
15033         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15034
15035 2000-03-16  Andy Piper  <andy@xemacs.org>
15036
15037         * glyphs-x.c (x_tab_control_update): if no widget values then
15038         return.
15039
15040         * NEWS: update for new features.
15041
15042         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15043         synthetic event to the native system.
15044         (reinit_vars_of_event_Xt): set force_event_pending to
15045         emacs_Xt_force_event_pending.
15046
15047         * events.h (struct event_stream): add force_event_pending.
15048
15049         * specifier.c (recompute_one_cached_specifier_in_window): add
15050         comment.
15051
15052         * redisplay.c (redisplay_frame): don't call
15053         update_frame_subwindows. Reset subwindow cachels when
15054         subwindows_changed, removing this was an optimization too far.
15055
15056         * redisplay-output.c (compare_runes): reorganize so that we catch
15057         glyph changes when we want them. Set optimize_output when this
15058         would help layouts.
15059         (redisplay_output_layout): remove frame_really_changed, use
15060         optimize_output instead.
15061
15062         * redisplay-msw.c (mswindows_output_display_block): reset
15063         optimize_output after outputting a glyph.
15064         * redisplay-x.c (x_output_display_block): ditto.
15065         * redisplay-tty.c (tty_output_display_block): ditto.
15066
15067         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15068         functions.
15069         (gutter_specs_changed): do specific gutter positions.
15070         (top_gutter_specs_changed): new function. Only update the
15071         specified gutter specs.
15072         (bottom_gutter_specs_changed): ditto.
15073         (left_gutter_specs_changed): ditto.
15074         (right_gutter_specs_changed): ditto.
15075
15076         * gui.c (gui_item_hash_internal): new function, does a real hash.
15077         (gui_item_id_hash): use it.
15078         (gui_item_hash): hash the eval'ed gui_item.
15079
15080         * gui-x.c (popup_selection_callback): send an eval event to call
15081         Fupdate_widget_instances.
15082
15083         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15084         to call Fupdate_widget_instances.
15085
15086         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15087         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15088
15089         * glyphs.c: (update_frame_subwindows): deleted.
15090         (Fupdate_widget_instances): new function for updating the dirty
15091         state of widgets that might have changed.
15092         (syms_of_glyphs): add Qupdate_widget_instances.
15093         (full_list_hash): hash a list completely.
15094         (image_instance_hash): use it for items and properties.
15095
15096         * frame-msw.c (mswindows_size_frame_internal): remove unused
15097         variable.
15098
15099         * faces.h (struct face_cachel): fix comment.
15100
15101         * event-stream.c (Fdispatch_non_command_events): new
15102         function. Process non-command events, forcing an event cycle
15103         beforehand.
15104         (syms_of_event_stream): declare.
15105         (event_stream_force_event_pending): new function. Force an event
15106         on the native event queue so that an event cycle will occur next
15107         time we check.
15108
15109         * event-msw.c:
15110         (struct ntpipe_shove_stream):
15111         (mswindows_enqueue_dispatch_event):
15112         (mswindows_dequeue_dispatch_event):
15113         (mswindows_cancel_dispatch_event):
15114         (mswindows_pump_outstanding_events):
15115         (mswindows_drain_windows_queue):
15116         (mswindows_handle_paint):
15117         (mswindows_wnd_proc):
15118         (mswindows_key_to_emacs_keysym):
15119         (get_process_input_waitable):
15120         (emacs_mswindows_delete_stream_pair): re-indent file.
15121         (mswindows_need_event): do not process further fds if the windows
15122         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15123         fixes the 100% cpu problem.
15124         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15125
15126 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15127
15128         * alloc.h: New.
15129         * dumper.h: New.
15130         * dumper.c: New.
15131
15132         * emacs.c: Moved dump file searching to dumper.c.
15133         (Frunning_temacs_p): Fixed.
15134
15135         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15136         last_lrecord_type_index_assigned.
15137
15138 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15139
15140         * symsinit.h: Added reinit parameter to init_console_stream
15141         declaration.
15142
15143         * lisp.h: Added file parameter to pdump_load declaration.
15144
15145         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15146         support.  Added dump file searching.
15147
15148         * config.h.in: Added EMACS_PROGNAME.
15149
15150         * console-stream.c (init_console_stream): Fix reinitialisation
15151         when running from temacs.
15152
15153         * alloc.c (pdump): Add id support.
15154         (pdump_load): Add file parameter and signature/id support.
15155
15156         * Makefile.in.in: Add full pdump support.
15157
15158 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15159
15160         * postgresql.c: Update documentation to reflect latest code
15161         status.
15162         (print_result): Show tuple counts in printed representation when
15163         appropriate.
15164         (Fpq_put_nbytes): MULE-ize.
15165         (Fpq_get_line_async): Ditto.
15166
15167 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15168
15169         * postgresql.c (Fpq_lo_import): Fix return value.
15170         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15171
15172 2000-03-13  Ben Wing  <ben@xemacs.org>
15173
15174         * alloc.c (pdump_load):
15175         Fix compile warning under mswin.
15176
15177 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15178
15179         * postgresql.c: Mule-ization, bug fixes.
15180         Use PG_CODING to encapsulate coding system name changes.
15181         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15182         (pg-coding-system): Create.
15183
15184         (Fpq_conn_defaults): Mule-ize.
15185         (Fpq_connectdb): Mule-ize & bug fix.
15186         (Fpq_connect_start): Mule-ize.
15187         (Fpq_set_client_encoding): Mule-ize.
15188         (Fpq_finish): Document `DEAD' connection status.
15189         (Fpq_clear): Ditto.
15190         (Fpq_pgconn): Mule-ize.
15191         (Fpq_exec): Mule-ize & bug fix.
15192         (Fpq_send_query): Ditto.
15193         (Fpq_get_result): Ditto.
15194         (Fpq_res_status): Mule-ize.
15195         (Fpq_result_error_message): Mule-ize.
15196         (Fpq_ntuples): fix comments.
15197         (Fpq_fname): Mule-ize.
15198         (Fpq_fnumber): Mule-ize.
15199         (Fpq_ftype): fix comments.
15200         (Fpq_get_value): Mule-ize.
15201         (Fpq_cmd_status): Ditto.
15202         (Fpq_cmd_tuples): Ditto.
15203         (Fpq_oid_value): Ditto.
15204         (Fpq_notifies): Ditto.
15205         (Fpq_lo_import): Ditto.
15206         (Fpq_lo_export): Ditto.
15207         (Fpq_get_line): Ditto.
15208         (Fpq_put_line): Mule-ize and bug fix.
15209         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15210
15211 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15212
15213         * postgresql.c (vars_of_postgresql): Mule-ize.
15214         (Fpq_conn_defaults): Ditto.
15215
15216 2000-03-12  Ben Wing  <ben@xemacs.org>
15217
15218         * alloc.c (Fmake_byte_code):
15219         * alloc.c (debug_string_purity_print):
15220         * alloc.c (pdump_backtrace):
15221         * alloc.c (pdump_get_indirect_count):
15222         * alloc.c (pdump_register_sub):
15223         * alloc.c (pdump_register_object):
15224         * alloc.c (pdump_register_struct):
15225         * alloc.c (pdump_dump_data):
15226         * alloc.c (pdump_reloc_one):
15227         Minor cleanups.
15228
15229         * console-msw.c:
15230         * console-msw.c (GetConsoleHwnd):
15231         * console-msw.c (msw_hide_console):
15232         * console-msw.c (msw_show_console):
15233         * console-msw.c (msw_ensure_console_buffered):
15234         * console-msw.c (msw_output_console_string):
15235         * console-msw.c (console_type_create_mswindows):
15236
15237         a) Added functions to manipulate the console window for use with
15238         shell support.
15239
15240         b) Added support for writing text to the console, which is now
15241         used under Windows when xemacs is not being run non-interactively,
15242         to write text that would otherwise be destined for stdout because
15243         under these circumstances, text written to stdout tends to
15244         disappear and not be seen.
15245
15246         * console-msw.h:
15247         * event-Xt.c:
15248         * event-Xt.c (x_event_to_emacs_event):
15249         * event-Xt.c (describe_event_window):
15250         * events-mod.h (XEMACS_MOD_CONTROL):
15251         * events.c:
15252         * events.c (Fmake_event):
15253         * events.c (character_to_event):
15254         * events.c (event_to_character):
15255         * events.c (format_event_object):
15256         * events.c (Fevent_modifiers):
15257         * events.h:
15258         * events.h (struct key_data):
15259         * events.h (struct button_data):
15260         * events.h (struct misc_user_data):
15261         * frame-x.c (Fcde_start_drag_internal):
15262         * frame-x.c (Foffix_start_drag_internal):
15263         * gpmevent.c (Freceive_gpm_event):
15264         * keymap.c:
15265         * keymap.c (bucky_sym_to_bucky_bit):
15266         * keymap.c (control_meta_superify):
15267         * keymap.c (make_key_description):
15268         * keymap.c (keymap_lookup_directly):
15269         * keymap.c (create_bucky_submap):
15270         * keymap.c (keymap_store):
15271         * keymap.c (define_key_check_and_coerce_keysym):
15272         * keymap.c (define_key_parser):
15273         * keymap.c (define_key_alternate_name):
15274         * keymap.c (Fdefine_key):
15275         * keymap.c (raw_lookup_key_mapper):
15276         * keymap.c (struct map_keymap_unsorted_closure):
15277         * keymap.c (map_keymap_unsorted_mapper):
15278         * keymap.c (map_keymap_sort_predicate):
15279         * keymap.c (map_keymap_sorted):
15280         * keymap.c (accessible_keymaps_mapper_1):
15281         * keymap.c (where_is_recursive_mapper):
15282         * keymap.c (describe_map_mapper):
15283         * keymap.c (describe_map_sort_predicate):
15284         * keymap.c (describe_map):
15285         * keymap.c (complex_vars_of_keymap):
15286         And a number of other files, the key modifier preprocessor
15287         constants that xemacs uses have names that conflict with constants
15288         defined under MS Windows for other purposes, so they were renamed
15289         to begin with the prefix XEMACS_. The variables that hold such
15290         modifiers were changed to consistently be of type int to fix
15291         various compile warnings.
15292
15293         * console.c (complex_vars_of_console):
15294         * device.c:
15295         * device-msw.c:
15296         * device-msw.c (mswindows_finish_init_device):
15297         * device-msw.c (msw_get_workspace_coords):
15298         * device-msw.c (mswindows_device_system_metrics):
15299         and various other files, added support for a new
15300         device property called offset-workspace which returns the position
15301         of the upper left corner of the workspace area and goes along with
15302         the existing size-workspace property.
15303
15304         * dialog-msw.c:
15305         * dialog-msw.c (push_bufbyte_string_as_unicode):
15306         * dialog-msw.c (mswindows_popup_dialog_box):
15307         Added support for XEmacs-style accelerator specifications in
15308         button text.  Note: I didn't add support for this under X Windows,
15309         and somebody needs to do this.
15310
15311         * dialog.c:
15312         * dialog.c (Fpopup_dialog_box):
15313         Documented the support for accelerators that was just mentioned.
15314
15315         editfns.c (get_home_directory): Changed behavior under Windows
15316         when HOME not defined; former behavior was irretrievably broken.
15317
15318         * emacs.c:
15319         * emacs.c (main_1):
15320         * emacs.c (main):
15321         * minibuf.c (clear_echo_area_internal):
15322         * minibuf.c (echo_area_append):
15323         * print.c:
15324         * print.c (std_handle_out_external):
15325         * print.c (std_handle_out_va):
15326         * print.c (fatal):
15327         * print.c (write_string_to_stdio_stream):
15328         * print.c (output_string):
15329         * print.c (debug_print):
15330         * print.c (debug_backtrace):
15331         * print.c (debug_short_backtrace):
15332         Cleaned up the code that prints text to stdout so that this can be
15333         changed to output into a console window instead under MS Windows,
15334         as described above.
15335
15336         * eval.c:
15337         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15338         * eval.c (internal_catch):
15339         * eval.c (unwind_to_catch):
15340         * eval.c (throw_or_bomb_out):
15341         * eval.c (condition_case_1):
15342         * eval.c (signal_1):
15343         * eval.c (check_error_state_sanity):
15344         * eval.c (call_with_suspended_errors_1):
15345         * eval.c (call_with_suspended_errors):
15346         * eval.c (reinit_vars_of_eval):
15347         Added code to catch throw loops and check for a pesky bug that may
15348         be gone now.
15349
15350         * event-msw.c:
15351         * event-msw.c (key_needs_default_processing_p):
15352         * event-msw.c (mswindows_wnd_proc):
15353         * event-msw.c (mswindows_modifier_state):
15354         * event-msw.c (emacs_mswindows_quit_p):
15355         * event-msw.c (vars_of_event_mswindows):
15356         a) Added support for using the alt key to select menu items as is
15357         standard under MS Windows.  This is controlled using the variable
15358         menu-accelerator-enabled, just like under X Windows.  There is an
15359         option on the options menu to turn this support on.  I really
15360         think that it should be on by default under Windows, but I'm not
15361         going to make this change yet.
15362
15363         b)  Added support for dynamic display size changes under Windows.
15364
15365         * event-stream.c:
15366         * event-stream.c (maybe_echo_keys):
15367         * event-stream.c (Fnext_event):
15368         * event-stream.c (command_builder_find_leaf):
15369         * event-stream.c (lookup_command_event):
15370         * event-stream.c (execute_command_event):
15371         * event-stream.c (pre_command_hook):
15372         * event-stream.c (post_command_hook):
15373         * event-stream.c (syms_of_event_stream):
15374         * event-stream.c (vars_of_event_stream):
15375         * event-stream.c (complex_vars_of_event_stream):
15376         * events.h (struct command_builder):
15377
15378         a) Tried to clean up a little bit the horribly written x-specific
15379         accelerator code that crept into this file.  I moved this code
15380         into menubar-x.c where it belongs. I also needed to move the
15381         command builder structure into the file events.h because it is
15382         accessed directly by this accelerator code.  What I didn't do, but
15383         which should be done at some point, is to properly abstract this
15384         code using device methods instead of the kludgy way that it
15385         currently hooks into the event code.
15386
15387         b) Added the lisp variables this-command-properties and
15388         last-command- properties, which should be used to synchronize two
15389         adjacent commands in preference to playing games with the variable
15390         this-command, which is typically what happens.
15391
15392         c) Added some slightly nasty code to hook into the lisp support
15393         for shifted- motion-key selection.  This is actually necessary for
15394         somewhat complicated reasons, which are described in
15395         simple.el. (NB: I think the proper thing would be to have the code
15396         that calls the pre and post command hooks also call out to generic
15397         lisp functions in simple.el, where all built-in stuff could be
15398         added.  I will think about this more.)
15399
15400         * event-unixoid.c (poll_fds_for_input):
15401         * lread.c (readchar):
15402         * redisplay-tty.c (tty_clear_frame):
15403         * redisplay-x.c (x_get_gc):
15404         * signal.c (interrupt_signal):
15405         And a whole bunch of other files: fixed up places that printed
15406         directly to stderr to instead call the function stderr_out so that
15407         the changes I made under Windows work correctly.
15408
15409         * filemode.c (mode_string):
15410         Warning fixes.
15411
15412         * frame-msw.c:
15413         * frame-msw.c (mswindows_size_frame_internal):
15414         Fixed the computation of frame size and position to keep the frame
15415         within the workspace area, rather than within the physical
15416         dimensions of the screen, so that the frame doesn't overlap window
15417         manager decorations, such as the start menu and toolbar, typically
15418         at the bottom of the screen.
15419
15420         * frame.c (vars_of_frame):
15421         Changed the default frame title format under MS Windows to consist
15422         of buffername-XEmacs, which is standard under MS Windows.  I think
15423         it might be a good idea to change this everywhere because I think
15424         it is superior to the current frame title format, but this is the
15425         kind of change that is likely to cause some people to get annoyed,
15426         so I'm not making it.
15427
15428         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15429
15430         * gui-msw.c (mswindows_handle_gui_wm_command):
15431         Fixed compile warnings.
15432
15433         * gui-x.c:
15434         * gui-x.c (strdup_and_add_accel):
15435         * gui-x.c (button_item_to_widget_value):
15436         * gui-x.h:
15437         Added code to automatically put an accelerator onto the beginning
15438         of menu items that don't have one as is now the standard, and is
15439         described more later.  Also fixed things so that the menu item
15440         name can be an evaluated expression, again a new standard.
15441
15442         * gui.c:
15443         * gui.c (gui_item_add_keyval_pair):
15444         * gui.c (make_gui_item_from_keywords_internal):
15445         * gui.c (gui_add_item_keywords_to_plist):
15446         * gui.c (gui_item_accelerator):
15447         * gui.c (gui_name_accelerator):
15448         * gui.c (gui_item_included_p):
15449         * gui.c (gui_item_display_flush_left):
15450         * gui.c (gui_item_display_flush_right):
15451         * gui.c (parse_gui_item_tree_item):
15452         * gui.c (parse_gui_item_tree_children):
15453         * gui.c (parse_gui_item_tree_list):
15454         Mule-ized.  Cleanup.  GCPRO addition.
15455
15456         * line-number.c (buffer_line_number):
15457         * lisp.h:
15458         * lisp.h (EMACS_INT_MAX):
15459         Added the manifest constant EMACS_INT_MIN corresponding to the
15460         existing constant EMACS_INT_MAX.  This is partially to fix compile
15461         warnings under Windows, and partly for cleanliness.
15462
15463         * menubar-msw.c:
15464         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15465         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15466         * menubar-msw.c (displayable_menu_item):
15467         * menubar-msw.c (populate_menu_add_item):
15468         * menubar-msw.c (populate_or_checksum_helper):
15469         * menubar-msw.c (populate_menu):
15470         * menubar-msw.c (update_frame_menubar_maybe):
15471         * menubar-msw.c (prune_menubar):
15472         * menubar-msw.c (msw_char_is_accelerator):
15473         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15474         * menubar-msw.c (mswindows_handle_wm_command):
15475         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15476         * menubar-msw.c (mswindows_handle_wm_initmenu):
15477         * menubar-msw.c (mswindows_update_frame_menubars):
15478         * menubar-msw.c (mswindows_free_frame_menubars):
15479         * menubar-msw.c (mswindows_popup_menu):
15480         Fixed a bug in handling accelerators where an extra character
15481         would be displayed in the menu item.  Also generalized the
15482         function displayable_menu_item because it is now used by the
15483         dialog box code as well.  And finally, added code in the functions
15484         that create the menubar to extract a list of accelerators for the
15485         top level menubar, which is used in the event code to determine
15486         whether a particular alt-key combination should be used to invoke
15487         a menu item, or should be passed through to access the standard
15488         XEmacs keymap binding for this key combination.
15489
15490         Much needed GCPROing.
15491
15492         * menubar-x.c:
15493         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15494         * menubar-x.c (menu_item_descriptor_to_widget_value):
15495         * menubar-x.c (restore_in_menu_callback):
15496         * menubar-x.c (x_popup_menu):
15497         * menubar-x.c (menu_move_up):
15498         * menubar-x.c (menu_move_down):
15499         * menubar-x.c (menu_move_left):
15500         * menubar-x.c (menu_move_right):
15501         * menubar-x.c (menu_select_item):
15502         * menubar-x.c (command_builder_operate_menu_accelerator):
15503         * menubar-x.c (menu_accelerator_junk_on_error):
15504         * menubar-x.c (command_builder_find_menu_accelerator):
15505         * menubar-x.c (Faccelerate_menu):
15506         * menubar.h:
15507         Moved a whole bunch of code here that was previously in
15508         event-stream.c as described above.  There is also code connected
15509         to the new standard of adding an accelerator to the beginning of
15510         menu items that don't have one as described above and below.
15511
15512         * menubar.c:
15513         * menubar.c (menu_parse_submenu_keywords):
15514         * menubar.c (Fmenu_find_real_submenu):
15515         * menubar.c (Fnormalize_menu_item_name):
15516         * menubar.c (syms_of_menubar):
15517         * menubar.c (vars_of_menubar):
15518         * menubar.c (complex_vars_of_menubar):
15519
15520         a) Cleaned up a bunch of documentation and improved it.
15521
15522         b) XEmacs now automatically adds an accelerator onto the beginning
15523         of any menu items that don't have one.  I did this because there
15524         will inevitably be some menu items on the main menubar that don't
15525         have accelerators on them because the package that adds that
15526         particular menu item hasn't yet been fixed up to have accelerators
15527         in them and it looked rather strange to have some items with and
15528         some items without accelerators, especially since even in items
15529         without accelerators, you can, at least under windows, still
15530         access the item through an accelerator corresponding to the first
15531         character in the item's name.  If people don't like this behavior,
15532         I can add a variable to turn it off optionally, but I'm not sure
15533         this is a good idea because we really do need to have accelerators
15534         on all of the menu items, and if a package doesn't like the
15535         accelerators being put on the first character, then it should put
15536         the accelerators where they belong.
15537
15538         c) I made a behavior change, which is that the descriptor that
15539         specifies the text of the menu item, which formerly was just a
15540         string, can now also be an evaluated expression.  This makes this
15541         descriptor parallel with all of the others, which could also be
15542         evaluated expressions.  This also obviates the need for the
15543         keyword :label, which was previously listed in the documentation
15544         as unimplemented, and which was for the same purpose.
15545
15546         d) GCPROing.
15547
15548         * ntproc.c:
15549         * ntproc.c (new_child):
15550         * ntproc.c (sys_spawnve):
15551         * ntproc.c (find_child_console):
15552         * ntproc.c (sys_kill):
15553         Fixed compile warnings.  By the way, this file should really go
15554         away entirely, and this will happen as soon as Kirill makes his
15555         final round of process cleanups, which affect the function
15556         call-process.
15557
15558         * process-nt.c:
15559         * process-nt.c (struct nt_process_data):
15560         * process-nt.c (find_process_from_pid):
15561         * process-nt.c (send_signal_the_nt_way):
15562         * process-nt.c (enable_child_signals):
15563         * process-nt.c (find_child_console):
15564         * process-nt.c (send_signal_the_95_way):
15565         * process-nt.c (nt_finalize_process_data):
15566         * process-nt.c (ensure_console_window_exists):
15567         * process-nt.c (nt_create_process):
15568         * process-nt.c (nt_kill_child_process):
15569         * process-nt.c (nt_kill_process_by_pid):
15570         * process-nt.c (nt_open_network_stream):
15571         * process-nt.c (vars_of_process_nt):
15572         Copied over code from Emacs 20.5 to correctly send signals to sub-
15573         processes under Windows 95.  Also added code to automatically
15574         create and hide console window when a sub-process is created under
15575         Windows 95, which obviates the need for the separate runemacs.exe
15576         executable, and finally implemented some variables that were
15577         implemented in Emacs 20.5, but previously not in XEmacs.  These
15578         include mswindows- start-process-share-console and
15579         mswindows-start-process-inherit-error-mode. (Both of these only
15580         apply to Windows 95.)
15581
15582         * regex.c (regex_compile): Fixed a compile warning.
15583
15584         * select-msw.c:
15585         * select-msw.c (mswindows_own_selection):
15586         * select-msw.c (mswindows_get_foreign_selection):
15587         * select-msw.c (mswindows_disown_selection):
15588         * select-msw.c (console_type_create_select_mswindows):
15589         * select-msw.c (syms_of_select_mswindows):
15590         Cleaned up the file and implemented the device method
15591         selection_exists_p, which had accidentally been left out.  Also
15592         removed four lisp functions that were remnants from before the
15593         time when the selection code was properly device abstracted.
15594         These functions are no longer needed because there are generic
15595         equivalents, and because they were added recently and don't exist
15596         in FSF Emacs, I don't think there's any problem with just deleting
15597         them.
15598
15599         * sysdep.c:
15600         * sysdep.c (sys_subshell):
15601         Fixed a compile warning, although in this case there's probably
15602         something wrong with this code, and it ought to be looked into
15603         more thoroughly by somebody who understands it.
15604
15605         * window.c:
15606         * window.c (Fwindow_text_area_height):
15607         * window.c (Fwindow_width):
15608         * window.c (Fwindow_full_width):
15609         * window.c (Fwindow_pixel_width):
15610         * window.c (debug_print_window):
15611         * window.c (syms_of_window):
15612         Added functions window-text-area-height and window-full-width,
15613         which are functions for returning various width and height
15614         characteristics of a window. (One of these functions is necessary
15615         for making the file dialog box work correctly, and the other one
15616         was added for completeness.)  Also added a table to the
15617         documentation for window-height which describes the entire scheme
15618         for accessing width and height characteristics of a window.
15619
15620 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15621
15622         * nt.c (fstat): Added a comment for another problem with
15623         non-encapsulated [f]stat(), reported by Adrian Aichner
15624         <aichner@ecf.teradyne.com>.
15625
15626 2000-03-11  Andy Piper  <andy@xemacs.org>
15627
15628         * window.c (make_dummy_parent): initialize subwindow instance
15629         cache.
15630         (Fset_window_configuration): zero extent_modiff.
15631
15632 2000-03-10  Andy Piper  <andy@xemacs.org>
15633
15634         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15635         more changes can be triggered.
15636         (Fredisplay_frame): ditto.
15637         (Fredraw_device): ditto.
15638         (Fredisplay_device): ditto.
15639         (redisplay_frame): make non-static.
15640         (redisplay_frame): call update_frame_gutter_geometry outside of
15641         display proper.
15642
15643         * gutter.h: declare update_frame_gutter_geometry.
15644
15645         * redisplay.h: declare redisplay_frame.
15646
15647         * gutter.c (update_frame_gutter_geometry): move geometry changes
15648         in update_frame_gutters here. Geometry changes can only occur
15649         outside of redisplay.
15650         (update_frame_gutters): remove geometry change code.
15651         (Fredisplay_gutter_area): make sure that we are in display when we
15652         update and that we have flushed any size changes.
15653
15654 2000-03-11  Andy Piper  <andy@xemacs.org>
15655
15656         * alloc.c (pdump_dump_data): remove i & count shadows.
15657
15658 2000-02-27  Mike Alexander  <mta@arbortext.com>
15659
15660         * sysdep.h: Declare pdump_read_file
15661
15662         * sysdep.c (pdump_read_file): New function
15663
15664         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15665         dump data
15666
15667 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15668
15669         * lrecord.h: add `lrecord_type_pgsetenv'.
15670
15671 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15672
15673         * symsinit.h: declare (vars|syms)_of* functions.
15674         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15675
15676 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15677
15678         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15679
15680         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15681         GCCs.
15682
15683         * emacs.c (main_1): Call postgres initialization code.
15684
15685         * postgresql.h: New file.  PostgreSQL RDBMS support.
15686         * postgresql.c: New file.
15687
15688 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15689
15690         * redisplay-output.c (redisplay_output_display_block): Disable
15691         redundant code.
15692
15693 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15694
15695         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15696         (Fcanna_henkan_next): Ditto.
15697         (Fcanna_bunsetu_henkou): Ditto.
15698         (Fcanna_henkan_kakutei): Ditto.
15699         (Fcanna_henkan_end): Ditto.
15700         (Fcanna_henkan_quit): Ditto.
15701         (Fcanna_henkan_next): Set retun value correctly.
15702         (c2mu): Use unsigned char instead of signed char.
15703
15704 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15705
15706         * emacs.c (main_1): Always call syms_of_gui.
15707         * inline.c: include gui.h
15708
15709 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15710
15711         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15712         converted to Lisp_Object.
15713         (Qtop_bottom): New variable.
15714         (syms_of_redisplay): Initialize it.
15715         * redisplay.h (Vvisible_bell): Ditto.
15716         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15717         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15718         only flash top and bottom.
15719
15720 2000-03-08  Andy Piper  <andy@xemacs.org>
15721
15722         * buffer.c (Frename_buffer): record new buffer name the right way.
15723
15724 2000-03-08  Andy Piper  <andy@xemacs.org>
15725
15726         * glyphs.c (update_subwindow): increase hash depth so that widget
15727         items get picked up properly.
15728
15729         * redisplay-output.c (compare_runes): increase hash depth so that
15730         widget items get picked up properly.
15731
15732 2000-03-08  Andy Piper  <andy@xemacs.org>
15733
15734         * gutter.c (output_gutter): add some debug.
15735
15736         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15737         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15738         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15739
15740         * redisplay-output.c (compare_runes): use display_hash to
15741         determine if glyphs really are not the same.
15742
15743         * glyphs.c (update_subwindow): check display_hash to see if
15744         anything really needs to be updated. If not then do
15745         nothing. Record the display_hash after updating.
15746         (image_instance_equal): compare the image_instance face also.
15747
15748 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15749
15750         * redisplay.h: Fix comment style.
15751
15752 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15753
15754         * consle-msw.h (struct mswindows_frame):
15755         Added new member paint_pending to indicate whether a WM_PAINT
15756         magic event has been queued for this frame.
15757
15758         * event-msw.c (mswindows_drain_windows_queue):
15759         Don't queue a WM_PAINT magic event if one is already queued.
15760         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15761
15762         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15763
15764 2000-03-07  Didier Verna  <didier@xemacs.org>
15765
15766         * dired.c: #include `regex.h' after `sysfile.h'.
15767
15768 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15769
15770         * sound.c (init_nas_sound): Fix compiler warning.
15771
15772         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15773         (FREE_STRUCT_P):
15774         (MARK_STRUCT_AS_FREE):
15775         (MARK_STRUCT_AS_NOT_FREE):
15776         Make `gcc -fstrict-aliasing' work properly.
15777
15778 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15779
15780         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15781         (mswindows_delete_device): Call CoUnnitialize().
15782
15783         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15784
15785 2000-02-25    <CraigL@DyCon.com>
15786
15787         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15788         <errno.h>.
15789
15790         * sysdep.c: This extern declaration for environ prevents MinGW
15791         from finding the variable in CRTDLL.DLL.
15792
15793         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15794         windows headers.
15795         (SHGFI_EXETYPE): ..
15796         (WM_MOUSEWHEEL): ..
15797         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15798         definitions.
15799         (MMRESULT): Removed, now defined in cygwin's windows headers.
15800         (TIMECAPS): ..
15801         (uid_t,gid_t,pid_t,ssize_t): ..
15802         (_timeb): Removed, MinGW defines both _timeb and timeb.
15803         (HAVE_H_ERRNO): Added.
15804         (HAVE_TZNAME): Added, configure is not detecting this.
15805
15806 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15807
15808         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15809         * syntax.c (syntax_match): Use it.
15810
15811         * cmds.c: Import auto-fill-chars from FSF Emacs.
15812         (Vauto_fill_chars): New variables.
15813         (internal_self_insert): Check Vauto_fill_chars.
15814         (vars_of_cmds):
15815         Declare auto-fill-chars as a Lisp variable and initialize it.
15816
15817 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15818
15819         * fileio.c (Fmake_symbolic_link):
15820         (Ffile_symlink_p):
15821         Run handlers even if local machine doesn't have symlinks.
15822
15823 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15824
15825         * event-msw.c (mswindows_drain_windows_queue):
15826         Don't generate paint magic events for non-XEmacs frames.
15827
15828 2000-03-05  Andy Piper  <andy@xemacs.org>
15829
15830         * redisplay.c (redisplay_frame): generate_displayable_area and
15831         friends assumes that we are not in GC, we therefore have to make
15832         sure that this doesn't happen.
15833
15834         * gutter.c (calculate_gutter_size): generate_displayable_area
15835         assumes that we are not in GC, we therefore have to make sure that
15836         this doesn't happen.
15837
15838 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15839
15840         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15841
15842 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15843
15844         * redisplay.c (regenerate_window): Make sure we set a sane value
15845         for end_pos even if we jump out of the loop.
15846         (regenerate_window): Answer Ben's question :-).
15847         (start_end_of_last_line): Add may_error argument.
15848         (start_of_last_line):
15849         (end_of_last_line): Pass may_error = 0.
15850         (end_of_last_line_may_error): New function.
15851         (pixel_to_glyph_translation): Use it, so we don't crash in
15852         event_to_glyph.
15853
15854 2000-03-04  Andy Piper  <andy@xemacs.org>
15855
15856         * window.h (struct window): add gutter_extent_modiff.
15857
15858         * window.c (allocate_window): zero out gutter_extent_modiff.
15859
15860         * redisplay.h: declare sync_display_line_structs.
15861
15862         * redisplay.c (add_glyph_rune): add a better comment.
15863
15864         * redisplay-output.c (sync_display_line_structs): made non-static.
15865         (compare_runes): remove unneccesary glyph cachel access.
15866
15867         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15868
15869         * gutter.c (output_gutter): don't output the gutter if extent
15870         changes only involve extents in buffers. use 4 sets of display
15871         lines.
15872         (gutter_extent_signal_changed_region_maybe): new function. Mark
15873         extents in gutters as changed.
15874         (update_frame_gutters): use 4 sets of display lines.
15875         (reset_gutter_display_lines): ditto.
15876         (free_frame_gutters): ditto.
15877         (redraw_exposed_gutter): force output of gutters.
15878
15879         * frame.h (struct frame): add 4 sets of gutter display lines.
15880
15881         * extents.c: (extent_changed_for_redisplay): signal changes to
15882         extents in strings in the gutter as well as extents in buffers.
15883
15884 2000-03-02  Andy Piper  <andy@xemacs.org>
15885
15886         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15887
15888         * frame.c (Fmake_frame): make sure the gutters get initialized
15889         after the frame is visible.
15890         (set_frame_selected_window): re-arrange compilation macros a
15891         little.
15892         (change_frame_size_1): mark gutters changed.
15893
15894         * device.c (Fset_device_class): mark gutters changed.
15895
15896 2000-03-01  Andy Piper  <andy@xemacs.org>
15897
15898         * window.c (window_top_frame_gutter_height): deleted.
15899         (window_bottom_frame_gutter_height): ditto.
15900         (window_left_frame_gutter_height): ditto.
15901         (window_right_frame_gutter_height): ditto.
15902         (window_top_gutter_height): don't use them.
15903         (window_bottom_gutter_height): ditto.
15904         (window_left_gutter_width): ditto.
15905         (window_right_gutter_width): ditto.
15906         (Fsplit_window): ditto.
15907         (Fwindow_pixel_edges): don't use border dimensions here.
15908
15909         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15910         (update_scrollbar_instance): ditto.
15911
15912         * redisplay.c (generate_modeline): don't take gutters into account.
15913         (generate_modeline): ditto.
15914         (redisplay_frame): small gutter display optimization.
15915
15916         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15917
15918         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15919         gutters into account.
15920
15921         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15922         for window position and type.
15923
15924         * gutter.c (get_gutter_coords): fix for frame gutters.
15925         (update_frame_gutters): update frame geometry if the gutters have
15926         changed.
15927         (init_frame_gutters): record current gutter geometries.
15928
15929         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15930         var.
15931         (mswindows_widget_instantiate): ditto.
15932
15933         * frame.h (struct frame): add current_gutter_bounds.
15934
15935         * frame.c (change_frame_size_1): position window and minibuffer
15936         appropriately taking into account the frame gutters.
15937
15938         * frame-x.c: (x_initialize_frame_size): take into account the
15939         frame gutters.
15940
15941 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15942
15943         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
15944
15945 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15946
15947         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15948
15949 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15950
15951         * file-coding.c (reset_decoding_stream): Clear previous
15952         detection state when autodetect.
15953
15954 2000-02-29  Didier Verna  <didier@xemacs.org>
15955
15956         * extents.c (set_extent_glyph_1): don't require extents to be
15957         attached.
15958
15959 2000-02-27  Andy Piper  <andy@xemacs.org>
15960
15961         * gutter.c (Fset_default_gutter_position): don't default left and
15962         right gutter visibility to t.
15963         (Fset_default_gutter_position): run
15964         default-gutter-position-changed-hook.
15965         (syms_of_gutter): add default-gutter-position-changed-hook.
15966
15967 2000-02-26  Andy Piper  <andy@xemacs.org>
15968
15969         * specifier.c (Fmake_specifier): add gutter references.
15970
15971         * gutter.h (RAW_WINDOW_GUTTER): new macro.
15972
15973         * lisp.h: declare Fvalid_plist_p.
15974
15975         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15976         as changed.
15977         (default_gutter_visible_p_changed_in_window): invalidate gutter as
15978         well as its visibility so that it gets reconstructed.
15979         (construct_window_gutter_spec): new function. Construct a string
15980         to be displayed in the gutter from a plist of strings. Take care
15981         to only use elements that are declared as visible.
15982         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15983         WINDOW_GUTTER.
15984         (gutter_validate): allow plists of strings in the specifier.
15985         (gutter_specs_changed): construct the real_gutter from the gutter
15986         specs using construct_window_gutter_spec.
15987         (gutter_visible_validate): gutter-visible is a new specifier type.
15988         (Fgutter_visible_specifier_p): new function for the new specifier.
15989         (syms_of_gutter): declare gutter-visible and
15990         Fgutter_visible_specifier_p.
15991         (specifier_type_create_gutter): intitalize new gutter-visible
15992         specifier.
15993         (reinit_specifier_type_create_gutter): ditto.
15994         (specifier_vars_of_gutter): use new specifier type for gutter
15995         visibility.
15996         (init_frame_gutters): construct real_gutter correctly.
15997         (Fgutter_specifier_p): beef up documentation.
15998         (Fgutter_size_specifier_p): ditto.
15999
16000         * winslots.h: add real_gutter slots.
16001
16002 2000-02-25  Andy Piper  <andy@xemacs.org>
16003
16004         * device-msw.c: Be kind to older cygwin versions. From Raymond
16005         Toy <toy@rtp.ericsson.se>.
16006
16007         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16008         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16009
16010 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16011
16012         * elhash.c (MARK_OBJ): Practice macro hygiene.
16013
16014 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16015
16016         * miscplay.c: s/__inline__/inline/g;
16017         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16018         (get_device_compdc): INLINE ==> static inline
16019         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16020         find -name '*.h' | \
16021         xargs global-replace \
16022         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16023
16024 2000-02-25  Andy Piper  <andy@xemacs.org>
16025
16026         * window.c (window_top_frame_gutter_height): new function.
16027         (window_top_window_gutter_height): ditto.
16028         (window_top_gutter_height): use them.
16029         (window_bottom_frame_gutter_height): new function.
16030         (window_bottom_window_gutter_height): ditto.
16031         (window_bottom_gutter_height): use them.
16032         (window_left_window_gutter_width): new function.
16033         (window_left_frame_gutter_width): ditto.
16034         (window_left_gutter_width): use them.
16035         (window_right_window_gutter_width): new function.
16036         (window_right_frame_gutter_width): ditto.
16037         (window_right_gutter_width): use them.
16038         (window_pixel_height): new function. calulate window pixel height
16039         with frame gutter involvement.
16040         (Fsplit_window): calculate new sizes taking frame gutters into
16041         account.
16042         (window_char_height_to_pixel_height): don't include frame gutters.
16043         (window_char_height): use window_pixel_height.
16044         (window_pixheight): rename from window_pixel_height.
16045         (change_window_height): use it.
16046         (window_pixel_height_to_char_height): don't include frame gutters.
16047         (window_char_width_to_pixel_width): ditto.
16048
16049 2000-02-25  Andy Piper  <andy@xemacs.org>
16050
16051         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16052         if it is.
16053
16054 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16055
16056         * alloc.c (staticpro):
16057         (staticpro_nodump):
16058         (dumpstruct):
16059         (dumpopaque):
16060         (pdump_wire):
16061         (pdump_wire_list):
16062         (compact_string_chars):
16063         (pdump_dump_wired):
16064         Convert:  if (foo) abort();  ==>  assert (! foo);
16065
16066         * eldap.c (Fldap_search_basic):
16067         (Fldap_add):
16068         (Fldap_modify):
16069         (Fldap_delete):
16070         Fix compiler warnings, and possible crashes if (random) return
16071         value were to be used.
16072
16073 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16074
16075         * device-msw.c: Workaround ResetDC failure.
16076
16077         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16078         applying a devmode.
16079
16080         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16081         (mswindows_text_width): Do not start printer page.
16082
16083         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16084
16085         * glyphs-msw.c: Added image methods to msprinter console and
16086         msprinter-specific image instantiation.
16087
16088 2000-02-20  Mike Alexander  <mta@arbortext.com>
16089
16090         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16091         to avoid crashes when selection-sets-clipboard is on
16092         (mswindows_own_selection): ditto
16093
16094 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16095
16096         * glyphs-msw.c:
16097         * redisplay-msw.c (get_frame_dc):
16098         (get_frame_compdc):
16099         * console-msw.h:
16100         * device-msw.c (mswindows_init_device):
16101         (mswindows_delete_device):
16102         (msprinter_init_device):
16103         (msprinter_delete_device):
16104         * frame-msw.c (mswindows_init_frame_1):
16105         (mswindows_delete_frame):
16106         (msprinter_init_frame_3):
16107         (msprinter_delete_frame): Move compatible DC to device object from
16108         frame object, for both mswindows and msprinter. Only one at a time
16109         is needed, it is a real waste to have one per frame!
16110
16111 2000-02-23  Andy Piper  <andy@xemacs.org>
16112
16113         * glyphs.c: add dynamic width and height elements.
16114         (image_instance_equal): ditto.
16115
16116         * glyphs-widget.c (widget_query_geometry): calculate width and
16117         height dynamically if required.
16118         (initialize_widget_image_instance): initialize dynamic dimensions.
16119         (widget_instantiate): pick-up dynamic dimensions.
16120
16121         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16122         dynamic determination. Add appropriate macros.
16123
16124         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16125         dimensions safe.
16126         (WINDOW_GUTTER_SIZE): ditto.
16127         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16128
16129         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16130         inline.
16131         (get_frame_dc): ditto.
16132
16133         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16134         here.
16135
16136 2000-02-23  Martin Buchholz <martin@xemacs.org>
16137
16138         * XEmacs 21.2.31 is released.
16139
16140 2000-02-22  Ben Wing <ben@xemacs.org>
16141
16142         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16143
16144 2000-02-22  Andy Piper  <andy@xemacs.org>
16145
16146         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16147
16148 2000-02-21  Mike Sperber <mike@xemacs.org>
16149
16150         * .dbxrc:
16151         * .gdbinit:
16152         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16153         variables.
16154
16155 2000-02-21  Mike Sperber <mike@xemacs.org>
16156
16157         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16158
16159 2000-02-21  Martin Buchholz <martin@xemacs.org>
16160
16161         * XEmacs 21.2.30 is released.
16162
16163 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16164
16165         Performance hacking.
16166         * *.c (syms_of_*):
16167         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16168         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16169         * emacs.c (main_1):
16170         * lisp.h (DEFUN):
16171         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16172         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16173         * symeval.h (DEFVAR_SYMVAL_FWD):
16174         * symbols.c (guts_of_unbound_marker):
16175         Make all c_readonly objects also lisp_readonly and marked for life.
16176         * lrecord.h (struct lrecord_implementation):
16177         Document flags better.
16178         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16179         * lrecord.h (DECLARE_LRECORD):
16180         * lrecord.h (XSETRECORD):
16181         * lrecord.h (RECORDP):
16182         * lrecord.h (RECORD_TYPEP):
16183         * lrecord.h (RECORD_MARKER): New.
16184         * lrecord.h (error_check_*):
16185         * lrecord.h (CONCHECK_NONRECORD):
16186         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16187         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16188         * lrecord.h (set_lheader_implementation):
16189         * lrecord.h (enum lrecord_type): New.
16190         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16191         * alloc.c (disksave_object_finalization_1):
16192         * alloc.c (mark_object):
16193         * alloc.c (lrecord_type_index):
16194         * alloc.c (tick_lcrecord_stats):
16195         * alloc.c (Fgarbage_collect):
16196         * alloc.c (init_alloc_once_early):
16197         * alloc.c (pdump_load):
16198         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16199         * alloc.c (lrecord_type_index): Delete.
16200         Make lisp object type indexes be constant.
16201           Makes (byte-compile) 5% faster.
16202         Put all marker functions into their own array.
16203           Makes (garbage-collect) 5% faster.
16204         Optimize SYMBOL_VALUE_MAGIC_P.
16205           Makes (byte-compile) 2-3% faster.
16206         * config.h.in (gc_checking_assert): New.
16207         * alloc.c: Use gc_checking_assert().
16208         * .dbxrc: Make compatible with new object type implementation.
16209         * .gdbinit: Make compatible with new object type implementation.
16210         * alloc.c: Delete all symbols defined only for debugging, such as
16211         Lisp_Type_Vector and lrecord_charset.
16212
16213 2000-02-21  Andy Piper  <andy@xemacs.org>
16214
16215         * gui-msw.c (Fmswindows_shell_execute): fix file location
16216         problems.
16217
16218         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16219         unshowing so that set_window_buffer doesn't undo
16220         kill_buffer_hook's hard work.
16221
16222         * glyphs-widget.c (tab_control_query_geometry): don't count the
16223         first item when calculating geometry.
16224
16225         * glyphs.c (map_subwindow): remove redundant code.
16226         (update_frame_subwindows): be more circumspect about when to
16227         update subwindows.
16228
16229         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16230         when items haven't changed. Update faces if faces have changed as
16231         well as just the widget face.
16232         (x_tab_control_update): Update faces if faces have changed as well
16233         as just the widget face.
16234
16235 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16236
16237         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16238         registration.
16239         (build_syscolor_string): Use mswindows_color_to_string to try to
16240         get a named color.
16241         (mswindows_device_system_metrics): Reverse the foreground and
16242         background colors so that they match the documentation.
16243
16244         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16245         they match the default Windows palette.
16246         (mswindows_color_to_string): New function.
16247
16248 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16249
16250         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16251
16252 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16253
16254         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16255         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16256
16257         * symbols.c (init_symbols_once_early): Removed obsolete
16258         DATA_SEG_BITS related kludge.
16259         (defvar_magic): Ditto.
16260
16261         * malloc.c: Removed obsolete DATA_SEG_BITS
16262         * ralloc.c: Ditto.
16263         * mem-limits.h: Ditto.
16264
16265         * Makefile.in.in: Removed obsolete HAVE_SHM
16266         * emacs.c: Ditto.
16267
16268 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16269
16270         *  device-msw.c (mswindows_delete_device): Free DDE string
16271         handles.
16272
16273 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16274
16275         * keymap.c (get_keyelt):
16276         * unexnt.c (unexec):
16277         * vm-limit.c (memory_warnings):
16278         * ntheap.c (recreate_heap):
16279         * ntheap.h (UNINIT_PTR):
16280         * select-msw.c (Fmswindows_get_clipboard):
16281         (Fmswindows_set_clipboard):
16282         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16283         * objects-msw.c:
16284         * menubar-msw.c (displayable_menu_item):
16285         * glyphs-msw.c:
16286         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16287         * sysdep.c (sys_subshell):
16288         * process-nt.c (nt_create_process):
16289         * nt.c (normalize_filename):
16290         (dostounix_filename):
16291         (unixtodos_filename):
16292         * ntproc.c (win32_executable_type):
16293         * ntplay.c (play_sound_data_1):
16294         (play_sound_file):
16295         * editfns.c (get_home_directory):
16296         * event-msw.c (struct winsock_stream):
16297         (mswindows_dde_callback):
16298         * device-msw.c (msprinter_init_device):
16299         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16300
16301         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16302         mswindows_clear_toolbar were swapped!
16303
16304         * objects-msw.c:(colormap_t):
16305         (fontmap_t):
16306         * emacs.c (struct standard_args): Fixed const jumble.
16307
16308         * glyphs-widget.c (update_widget): Fixed comparison notation.
16309
16310         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16311
16312         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16313         __declspec(noreturn) syntax.
16314
16315 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16316
16317         * eldap.c (Fldap_open):
16318         (Fldap_search_basic):
16319         (Fldap_add):
16320         (Fldap_modify):
16321         Use new coding system conversion macros.
16322
16323 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16324
16325         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16326
16327 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16328
16329         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16330         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16331
16332         * eldap.c (Qadd, Qreplace): New constant symbols
16333         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16334         interruptions by XEmacs signals
16335         Remove unnecessary calls to slow_down_interrupts and
16336         speed_up_interrupts
16337         (Fldap_search_basic): Renamed from Fldap_search_internal
16338         Added new optional parameter VERBOSE that triggers the
16339         display of progress messages
16340         Remove unnecessary calls to slow_down_interrupts and
16341         speed_up_interrupts
16342         LDAP result code analysis rewritten
16343         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16344         (syms_of_eldap): Define the new symbols and functions
16345
16346
16347 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16348
16349         * realpath.c: Determine PATH_MAX maximally portably.
16350
16351         * insdel.c (bytecount_to_charcount): Optimize.
16352         The function used to be optimized for entirely ASCII sequences.
16353         Now it is optimized for successive characters from the same
16354         charset.  This also wins big for _mostly_ ASCII sequences.
16355
16356         * fileio.c (Ffile_truename): convert return from realpath() using
16357         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16358         - Rewrite GCPROing slightly.
16359
16360         * sysdep.c (sys_open): Do filename conversion, like all other
16361         sys_* functions.  Fixes bug:
16362         (let ((file-name-coding-system 'iso-8859-2))
16363            (write-region x y latin2-name))
16364         ==> writes filename using internal encoding.
16365
16366 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16367
16368         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16369         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16370         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16371         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16372         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16373         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16374         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16375         (CONST_IF_NOT_DEBUG): Delete.
16376         * alloc.c (this_one_is_unmarkable): Delete.
16377         (mark_object): Don't check for this_one_is_unmarkable. Use the
16378         c_readonly flag instead.
16379         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16380
16381 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16382
16383         * event-msw.c (mswindows_drain_windows_queue):
16384         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16385         away redundant repaint events.
16386
16387 2000-02-17  Andy Piper  <andy@xemacs.org>
16388
16389         * redisplay.h: declare mark_redisplay_structs.
16390
16391         * redisplay.c (redisplay_window):
16392         (redisplay_frame): don't check subwindows_state_changed.
16393         (mark_redisplay): mark gutters here.
16394
16395         * glyphs.c: (instantiate_image_instantiator): always layout if we
16396         haven't done so already.
16397         (allocate_image_instance): don't mark as dirty.
16398         (update_subwindow): bind inhibit_quit.
16399
16400         * gutter.c (mark_gutters): new function.
16401
16402         * glyphs-x.c (x_update_widget): Always resize to get round a
16403         widget bug.
16404
16405         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16406         breaking absolutely everything.
16407
16408         * gutter.h: declare mark_gutters.
16409
16410 2000-02-16  Martin Buchholz <martin@xemacs.org>
16411
16412         * XEmacs 21.2.29 is released.
16413
16414 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16415
16416         * fns.c (size_bit_vector): Fix computation of the size.
16417
16418 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16419
16420         * *.[ch]: Change CONST to const globally.
16421         find -name '*.[ch]' | \
16422         xargs global-replace \
16423         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16424         - Remove vestigial references to CONST_IS_LOSING
16425
16426 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16427
16428         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16429         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16430         events instead of dispatching them directly.
16431         (mswindows_handle_paint): New function to do repainting.
16432         (mswindows_wnd_proc):
16433         (emacs_mswindows_handle_magic_event): Call above function.
16434
16435 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16436
16437         * objects-msw.c (mswindows_create_font_variant): Return the new
16438         font handle.
16439         (initialize_font_instance): Get font metrics from the underlined
16440         variant of the font to cope with the case where the underlined
16441         font has a bigger descent.
16442
16443 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16444
16445         * gui.c (gui_item_accelerator): Return the first underlined
16446         character in item name.
16447
16448 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16449
16450         * lisp.h: Added Qprinter.
16451
16452         * general.c (syms_of_general): Initialized it.
16453
16454         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16455         (get_frame_dc):
16456         (get_frame_compdc): Made inline.
16457
16458         * console.h (struct console_methods): Added eject_page method.
16459
16460         * frame.h: Added FRAME_DISPLAY_P and friends.
16461         Aligned backslahes in many macros in more readable fashion.
16462         Added page_number to struct frame, and an accessor macro
16463         for it.
16464
16465         * defice.h: Added DEVICE_DISPLAY_P and friends.
16466
16467         * device.c (Fdevice_printer_p): Used these.
16468
16469         * frame.c (allocate_frame_core): Initialize page number.
16470         (Fprint_job_page_number):
16471         (Fprint_job_eject_page): Implemented.
16472
16473         * frame-msw.c (msprinter_eject_page): Added method.
16474         (msprinter_start_page): Added.
16475
16476         * window.c (Fwindow_truncated_p): Fixed docstring.
16477         (Fwindow_last_line_visible_height): Implemented.
16478
16479 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16480
16481         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16482
16483 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16484
16485         * syntax.c (scan_words): Always advance at least one character.
16486
16487 2000-02-13  Andy Piper  <andy@xemacs.org>
16488
16489         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16490         to make sure the glyph is in the cachels.
16491
16492         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16493         global image instance flag.
16494         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16495         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16496
16497         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16498         (Fset_image_instance_property): mark layout as changed.
16499         (invalidate_glyph_geometry_maybe): mark layout as changed.
16500         (glyph_width): use new NEEDS_LAYOUT macro.
16501         (glyph_ascent): ditto.
16502         (glyph_descent): ditto.
16503         (glyph_height): ditto.
16504         (image_instance_layout): mark layout as clean after laying out.
16505         (update_subwindow): don't mark layout as clean here.
16506
16507         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16508         should no longer be needed.
16509
16510         * glyphs-x.c (x_update_widget): sanitize asserts.
16511         (x_finalize_image_instance): sanitize assignment to widgets.
16512
16513         * glyphs-widget.c (widget_instantiate): don't need to clear the
16514         layout flag here.
16515
16516 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16517
16518         * sysdep.c (getcwd): Use standard prototype.
16519         * sysdep.h (getcwd): Use standard prototype.
16520
16521         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16522         (sequence, start, end).
16523         Remove redundant type checking.
16524         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16525         view of `caller-protects') to avoid a crash where the real fix was
16526         found elsewhere.
16527
16528 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16529
16530         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16531
16532         * s/sol2.h: Remove feature macro initialization.
16533
16534         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16535         (vector_hash): New.  Code from internal_hash.
16536         * lrecord.h:
16537         Fix up allocation subsystem comments.
16538
16539         * config.h.in: Add __EXTENSIONS__ for Solaris.
16540
16541         * systime.h (EMACS_GETTIMEOFDAY): New.
16542         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16543         Remove Solaris-specific code.
16544         Use void* for the (ignored) second arg for gettimeofday().
16545
16546         * elhash.c (hash_table_hash): Implement it, finally.
16547         * elhash.c:  Use hashcode_t.
16548
16549         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16550         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16551
16552         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16553         * fns.c (size_bit_vector):
16554         * alloc.c (size_vector):
16555         (make_vector_internal):
16556         (make_bit_vector_internal):
16557         (sweep_bit_vectors_1):
16558         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16559
16560 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16561
16562         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16563         Include strings.h to avoid warnings for bzero and strcasecmp.
16564
16565 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16566
16567         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16568         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16569
16570         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16571         sequence.
16572
16573 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16574
16575         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16576         use a value field instead.
16577         (symbol_value_forward_forward): Use value field.
16578         (DEFVAR_SYMVAL_FWD): Use value field.
16579         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16580         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16581         (DEFVAR_CONST_INT): Ditto.
16582         (DEFVAR_BOOL): Ditto.
16583         (DEFVAR_CONST_BOOL): Ditto.
16584         (DEFVAR_INT_MAGIC): Ditto.
16585         (DEFVAR_BOOL_MAGIC): Ditto.
16586
16587         * symbols.c (guts_of_unbound_marker): Use value field.
16588         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16589         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16590
16591         * lisp.h: Declare dumpopaque and noninteractive1.
16592
16593         * alloc.c (dumpopaque): Added.
16594         (pdump_dump_opaquevec): Added.
16595         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16596         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16597         noninteractive.
16598
16599 2000-02-10  Andy Piper  <andy@xemacs.org>
16600
16601         * glyphs.c (image_instance_layout): if the size changes, mark it
16602         as such.
16603
16604         * redisplay-output.c (redisplay_output_layout): Update the
16605         subwindow here.
16606         (redisplay_output_subwindow): ditto.
16607
16608         * glyphs.c (update_subwindow): make sure we reset flags for
16609         layouts as well as everything else.
16610
16611         * glyphs-widget.c (layout_layout): don't need to set the instances
16612         dimensions here.
16613
16614 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16615
16616         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16617         not HAVE_DLOPEN, which is a lower-level thing.
16618
16619         * .cvsignore: Ignore gmon.out
16620
16621 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16622
16623         * .cvsignore: Ignore portable dumper xemacs.dmp file
16624
16625 2000-02-09  Andy Piper  <andy@xemacs.org>
16626
16627         * redisplay-output.c (redisplay_output_layout): be more clever
16628         about when we output based on the changed flags.
16629
16630         * glyphs.h (struct image_instantiator_methods): add update_method.
16631         (struct Lisp_Image_Instance): add changed flags. Declare new
16632         macros for manipulating them.
16633
16634         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16635         (image_instance_parent_glyph): find an image_instance's parent
16636         glyph or image_instance.
16637         (image_instance_layout): mark the size as changed.
16638         (set_image_instance_dirty_p): new function. mark an image
16639         instance, plus all of its parents, as dirty.
16640         (Fset_image_instance_property): use it.
16641         (Fglyph_animated_timeout_handler): use it.
16642         (update_subwindow): call update_widget and device methods for
16643         update_subwindow. Mark all changed flags as clean.
16644         (Fresize_subwindow): mark size as changed.
16645
16646         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16647         failures.
16648         (x_update_subwindow): only resize subwindows here.
16649         (x_update_widget): new function. Update all changed properties of
16650         a widget.
16651         (x_resize_subwindow): deleted.
16652         (x_widget_set_property): deleted.
16653         (x_progress_gauge_set_property): deleted.
16654         (x_progress_gauge_update): new function. Implement recorded
16655         changes.
16656         (x_tab_control_update): ditto.
16657         (x_tab_control_set_property): deleted.
16658         (console_type_create_glyphs_x): declare new functions.
16659         (image_instantiator_format_create_glyphs_x): ditto.
16660
16661         * glyphs-widget.c (widget_set_property): mark text changed.
16662         (update_widget): new function. Update properties of a widget.
16663         (widget_instantiate): for layouts make sure we set their
16664         children's parent correctly.
16665         (tab_control_set_property): new function. Record changes that will
16666         take place under redisplay's control.
16667         (progress_gauge_set_property): ditto.
16668         (image_instantiator_progress_guage): declare new functions.
16669         (image_instantiator_tab_control): ditto.
16670
16671         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16672         now.
16673         (mswindows_update_widget): new function. Update all properties on
16674         a widget that have changed.
16675         (mswindows_button_update): new function. Update a button's set
16676         state.
16677         (mswindows_tab_control_update): new function. Update the items in
16678         a tab.
16679         (mswindows_tab_control_set_property): deleted.
16680         (mswindows_progress_gauge_update): new function. Update the
16681         progress gauge's progress.
16682         (mswindows_widget_set_property): deleted. This is all done
16683         asynchronously now.
16684         (mswindows_progress_gauge_set_property): ditto.
16685         (console_type_create_glyphs_mswindows): declare new methods.
16686         (image_instantiator_format_create_glyphs_mswindows): ditto.
16687
16688         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16689         (msprinter_set_frame_properties): ditto.
16690
16691         * console.h (struct console_methods): Add update_widget_method.
16692
16693 2000-02-09  Andy Piper  <andy@xemacs.org>
16694
16695         * gui-msw.c (Fmswindows_shell_execute): Make
16696         mswindows-shell-execute industrial strength.
16697
16698 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16699
16700         * lrecord.h: Make macro argument `props' match member function `plist'.
16701         * fns.c (Fget):
16702         * fns.c (Fput):
16703         * fns.c (Fremprop):
16704         * fns.c (Fobject_plist):
16705         * alloc.c:
16706         * symbols.c:
16707         Object property list frobbing cleanup.
16708         - Allow any lisp object (compared with `eq'), not just symbols, as
16709           keys in object plists.
16710         - Move symbol plist frobbing into symbols.c, where it belongs.
16711         - Move string plist frobbing into alloc.c, where it belongs.
16712         - Everything's an lrecord now, so no need to test for symbolp, etc.
16713         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16714
16715         * extents.c: Reorder code to remove declarations.
16716
16717         * frame.h (store_in_alist): Remove useless declaration.
16718
16719 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16720
16721         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16722         * config.h.in: Add HAVE_XCONVERTCASE.
16723
16724 2000-02-07  Andy Piper  <andy@xemacs.org>
16725
16726         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16727         it breaks many things.
16728
16729 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16730
16731         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16732         actually can start a common comment type.
16733         * src/syntax.h (SYNTAX_END_P): ditto for end.
16734
16735 2000-02-07  Martin Buchholz <martin@xemacs.org>
16736
16737         * XEmacs 21.2.28 is released.
16738
16739 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16740
16741         * event-Xt.c (x_keysym_to_character): New.
16742         (maybe_define_x_key_as_self_inserting_character): New.
16743         (x_has_keysym): New.
16744         Auto-define all keys on the keyboard as self-insert-key.
16745
16746 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16747
16748         * menubar.c (vars_of_menubar): A small code simplification.
16749
16750         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16751
16752         * ExternalShell.c:
16753         * ExternalClient.c:
16754         * EmacsShell-sub.c:
16755         * EmacsManager.c:
16756         * EmacsFrame.c:
16757         Use consistent style for specifying X resources.
16758
16759         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16760         This makes (dontusethis-set-symbol-value-handler) actually usable.
16761
16762         * lrecord.h (lrecord_decription_type):
16763         * alloc.c (pdump_register_sub):
16764         (pdump_dump_data):
16765         (pdump_reloc_one):
16766         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16767         Comply with XEmacs coding style.
16768         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16769         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16770
16771         * keymap.c (Faccessible_keymaps):
16772         Make (accessible-keymaps map "\C-h") do the Right Thing.
16773         Make (accessible-keymaps map []) do the Right Thing.
16774         Make (accessible-keymaps map "") do the Right Thing.
16775         (check_keymap_definition_loop): New function.
16776         (keymap_store_internal): Keep luser from shooting self in foot,
16777           via (define-key ctl-x-4-map "p" global-map).
16778         Remove fullness slot from struct Lisp_Keymap, since hash tables
16779         are now reliable.
16780         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16781
16782 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16783
16784         * redisplay.c (init_redisplay): Fix small memory leak.
16785         * elhash.h:
16786         * elhash.c (pdump_reorganize_hash_table):
16787         Rename from reorganize_hash_table. Change prototype.
16788         Reuse the original memory for hentries.  Save 100k.
16789         * alloc.c (PDUMP_READ): new macro.
16790         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16791         * alloc.c: No need to #ifndef before #undef.
16792
16793         * print.c: Allow debug_print() to print readably by modifying
16794         debug_print_readably.  Use consistent variable names.
16795
16796         * .dbxrc: Try to get things to work even if stopped in a function
16797         without source available by explicitly specifying source files.
16798 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16799
16800         * unexnt.c (_start): Removed bogus code which caused loading heap
16801         from differrent executable file.
16802         Removed bogus assignment to _fmode, which caused inconsistencies.
16803
16804 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16805
16806         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16807         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16808         Do not preliminary `#define signal sigset'.
16809
16810         * systime.h: Do not prototype environ on windows nt and cygwin,
16811         this conflicts with system header.
16812
16813         * syssignal.h: Use correct define for WINDOWSNT
16814
16815         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16816         with system header.
16817
16818         * sysdep.c (near start of file): Fixed commentary and rearranged
16819         ifdefs in readable order.
16820         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16821         (start_of_text):
16822         (end_of_text):
16823         (end_of_data): Do not compile in if using PDUMP.
16824
16825         * symsinit.h: Prototyped vars_of_nt().
16826
16827         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16828         (find_child_console): Use it.
16829         (sys_kill): Use it.
16830
16831         * ntheap.h: Do not extern os_subtype.
16832
16833         * ntheap.c (cache_system_info): Do not cache unneeded:
16834         nt_major_version, nt_minor_version and os_subtype.
16835         (recreate_heap): Do not compile in when PDUMPing.
16836
16837         * nt.c (geteuid and friends): Use the new varibale
16838         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16839         (init_user_info): Removed the above mentioned hackery.
16840         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16841         stat has been fixed in the C runtime.
16842         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16843
16844         * file-coding.c (struct file_coding_dump): Do not define
16845         ucs_to_mule_table in the struct if not MULE.
16846         (struct struct lrecord_description fcd_description_1): Do not dump
16847         the above.
16848
16849         * emacs.c (main_1): Call vars_of_nt().
16850         (right before Fdump_emacs_data): Don't need lastfile if using both
16851         portabe dumper and system malloc.
16852
16853         * alloc.c (Fmemory_limit): Conditionalized out.
16854         (pdump): Use OPEN_BINARY for the portable dump file.
16855         (pdump_load): Ditto.
16856
16857 2000-02-02  Mike Alexander  <mta@arbortext.com>
16858
16859         * nt.c (convert_time): Set tm_isdst before calling mktime and
16860         avoid calling it at all if the compiler supports 64 bit integers.
16861         Also initialize utc_base_ft before using it.
16862
16863 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16864
16865         * frame.c (change_frame_size_1): Take f->internal_border_width
16866         into consideration when calculating the width of the frame.
16867
16868 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16869
16870         * window.c (frame_min_height):
16871         (frame_size_valid_p):
16872         (frame_pixsize_valid_p): Added.
16873         (check_frame_size): Generalized.
16874
16875         * window.h: Prototyped the above.
16876
16877         * lisp.h:
16878         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16879         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16880         Deleted Vwin32_* and Vbinary_process_* unused variables.
16881
16882         * device-msw.c (msprinter_init_device): Do not get printer font
16883         list; Added DEVMODE functions.
16884
16885         * frame-msw.c: Added lots of printer code.
16886
16887         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16888         general.c.
16889
16890         * console-msw.h: Added more msprinter device private slots.
16891
16892 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16893
16894         * event-msw.c (key_needs_default_processing_p): Added.
16895         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16896
16897 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16898
16899         * glyphs.c (image_instance_layout): Mark image instance as clean
16900         after layout.
16901         (glyph_dirty_p): Removed redundant function.
16902         (invalidate_glyph_geometry_maybe): Added.
16903         (update_glyph_cachel_data): Call it.
16904
16905         * glyphs.h: Prototyped it.
16906
16907         * redisplay.c (add_glyph_rune): Call it.
16908         (redisplay_window): Reset glyphs cachels when frame faces have
16909         changed, thus forcing recomputation of built-in border glyphs.
16910
16911 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16912
16913         * Makefile.in.in: Make portable dumper and purify play well together.
16914         Add imperfect, but better than nothing, support for pdump.
16915         Remove xemacs.dmp when temacs is re-generated.
16916         Don't ignore errors when dumping xemacs.
16917
16918         * symbols.c (maybe_call_magic_handler): Remove one magic number.
16919
16920 2000-01-28  Andy Piper  <andy@xemacs.org>
16921
16922         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16923         (setup_normal_frame): ditto.
16924         (setup_frame_without_minibuffer): ditto.
16925         (setup_minibuffer_frame): ditto.
16926         (delete_frame_internal): ditto.
16927         (Fmake_frame_invisible): ditto.
16928         (Ficonify_frame): ditto.
16929
16930         * window.h: change Fset_window_buffer signature.
16931
16932         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16933         (Fset_window_buffer): allow recording of buffer if the window is
16934         the selected window.
16935         (window_loop): Use new Fset_window signature.
16936
16937 2000-01-23  Daniel Pittman  <daniel@danann.net>
16938
16939         * config.h.in: Added template for `HAVE_ATHENA_3D'
16940
16941 2000-01-29  Andy Piper  <andy@xemacs.org>
16942
16943         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16944
16945         * gutter.c (output_gutter): Don't output if the window isn't live.
16946
16947 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16948
16949         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16950         of 01/12/00: Moved SetFocus back here where it belongs.
16951
16952 2000-01-23  Andy Piper  <andy@xemacs.org>
16953
16954         * s/cygwin32.h: declare printer things.
16955
16956 2000-01-26  Andy Piper  <andy@xemacs.org>
16957
16958         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16959         Alexander.
16960
16961 2000-01-24  Andy Piper  <andy@xemacs.org>
16962
16963         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16964         (mswindows_button_instantiate): Make sure glyph is a pixmap.
16965
16966         * glyphs-widget.c (widget_instantiate): Avoid shadows.
16967
16968         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16969
16970         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16971
16972         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16973         (mswindows_output_display_block): Avoid local shadows.
16974
16975         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16976         (mswindows_enqueue_mouse_button_event): ditto.
16977         (mswindows_handle_gui_wm_command): remove declaration.
16978
16979         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16980         warnings.
16981
16982         * console-msw.h: Avoid shadows.
16983         (mswindows_get_toolbar_button_text):
16984         (emacs_mswindows_create_stream_pair):
16985         (emacs_mswindows_delete_stream_pair):
16986         (mswindows_handle_toolbar_wm_command): declare.
16987
16988         * device-msw.c (build_syscolor_string): Avoid shadows.
16989
16990 2000-01-23  Andy Piper  <andy@xemacs.org>
16991
16992         * glyphs-widget.c (widget_instantiate): reverse the items for
16993         layouts so that children are in the expected order.
16994
16995 2000-01-28  Martin Buchholz  <martin@xemacs.org>
16996
16997         * ralloc.c: safe_bcopy ==> memmove
16998         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
16999         * s/msdos.h: Remove BCOPY macros.
17000         * insdel.c (gap_right): Remove BCOPY conditional code.
17001         * insdel.c (gap_left): Remove BCOPY conditional code.
17002         XEmacs demands a working ANSI C compiler - hence memmove.
17003
17004         * regex.c (regex_compile): Remove accidental use of trigraphs.
17005
17006 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17007
17008         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17009         event timestamp.
17010
17011 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17012
17013         * event-msw.c (mswindows_drain_windows_queue): Added the
17014         parameter.
17015         (mswindows_need_event): Commented the call to
17016         mswindows_drain_windows_queue().
17017         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17018         only.
17019
17020         * console-msw.h: Moved a few function prototypes here from
17021         event-msw.c.
17022
17023         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17024         parameter from unsigned short to unsigned long.
17025         (Fmswindows_shell_execute): Added return value.
17026
17027 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17028
17029         * sysdep.c (init_system_name):
17030           process-unix.c (unix_canonicalized_host_name):
17031         Don't call freeaddrinfo() if getaddrinfo() fails.
17032
17033         * process-unix.c (unix_open_unix_network_stream):
17034         Moved the code to get a port # into address loop.
17035
17036 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17037
17038         * buffer.c (reinit_vars_of_buffer):
17039         The right place to initialize conversion_in_dynarr and
17040         conversion_out_dynarr.
17041
17042         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17043
17044         * process-unix.c (unix_canonicalize_host_name): Muleize.
17045         (unix_open_network_stream): Muleize.
17046
17047         * buffer.h: Fix up prototypes for ralloc.c functions.
17048
17049 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17050         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17051         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17052                 instead of gethostbyname()
17053         * process-unix.c: In unix_canonicalize_host_name() and
17054                 unix_open_network_stream(), add code to use getaddrinfo()
17055                 instead of gethostbyname().
17056
17057 2000-01-27  Daniel Pittman <daniel@danann.net>
17058
17059         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17060         libs when built with flat Athena.
17061
17062 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17063
17064         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17065         Use coding standards for function prototypes.
17066
17067 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17068
17069         * dialog-msw.c (push_lisp_string_as_unicode):
17070         * doc.c (unparesseuxify_doc_string):
17071         * dired.c (Fuser_name_completion_1):
17072         * dired.c (Fuser_name_all_completions):
17073         * dired.c (free_user_cache):
17074         * dired.c (user_name_completion):
17075         * console-x.c (get_display_arg_connection):
17076         * minibuf.c (clear_echo_area_internal):
17077         * minibuf.c (echo_area_append):
17078         * eldap.c (Fldap_open):
17079         * eldap.c (Fldap_search_internal):
17080         * frame-x.c (x_set_frame_text_value):
17081         * frame-x.c (x_set_frame_properties):
17082         * frame-x.c (x_create_widgets):
17083         * redisplay-tty.c (term_get_fkeys_1):
17084         * objects-x.c (x_parse_nearest_color):
17085         * objects-x.c (x_valid_color_name_p):
17086         * objects-x.c (x_initialize_font_instance):
17087         * objects-x.c (x_list_fonts):
17088         * objects-x.c (x_find_charset_font):
17089         * tooltalk.c (Fadd_tooltalk_message_arg):
17090         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17091         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17092         * process-unix.c (unix_create_process):
17093         * ntproc.c (sys_spawnve):
17094         * sound.c (Fplay_sound_file):
17095         * sound.c (Fplay_sound):
17096         * buffer.c (init_initial_directory):
17097         * buffer.c (init_buffer):
17098         * editfns.c (init_editfns):
17099         * editfns.c (Ftemp_directory):
17100         * editfns.c (Fuser_full_name):
17101         * editfns.c (uncache_home_directory):
17102         * editfns.c (get_home_directory):
17103         * editfns.c (Fuser_home_directory):
17104         * editfns.c (Fformat_time_string):
17105         * editfns.c (Fcurrent_time_string):
17106         * gui-x.c (button_item_to_widget_value):
17107         * database.c (Fopen_database):
17108         * event-Xt.c (x_to_emacs_keysym):
17109         * event-Xt.c (x_event_to_emacs_event):
17110         * event-Xt.c (describe_event_window):
17111         * event-msw.c (mswindows_wnd_proc):
17112         * glyphs-eimage.c (jpeg_instantiate):
17113         * glyphs-eimage.c (gif_instantiate):
17114         * glyphs-eimage.c (png_instantiate):
17115         * glyphs-eimage.c (tiff_instantiate):
17116         * glyphs-x.c (xbm_instantiate_1):
17117         * glyphs-x.c (x_xbm_instantiate):
17118         * glyphs-x.c (x_xface_instantiate):
17119         * glyphs-x.c (autodetect_instantiate):
17120         * glyphs-x.c (cursor_font_instantiate):
17121         * glyphs-x.c (x_widget_instantiate):
17122         * glyphs-x.c (x_widget_set_property):
17123         * glyphs-x.c (x_widget_property):
17124         * glyphs-x.c (BUILD_GLYPH_INST):
17125         * print.c (write_string_to_stdio_stream):
17126         * print.c (output_string):
17127         * print.c (Falternate_debugging_output):
17128         * print.c (Fexternal_debugging_output):
17129         * glyphs-msw.c (extract_xpm_color_names):
17130         * glyphs-msw.c (mswindows_xpm_instantiate):
17131         * glyphs-msw.c (bmp_instantiate):
17132         * glyphs-msw.c (resource_name_to_resource):
17133         * glyphs-msw.c (mswindows_resource_instantiate):
17134         * glyphs-msw.c (xbm_instantiate_1):
17135         * glyphs-msw.c (mswindows_xbm_instantiate):
17136         * glyphs-msw.c (mswindows_xface_instantiate):
17137         * glyphs-msw.c (mswindows_widget_instantiate):
17138         * glyphs-msw.c (add_tree_item):
17139         * glyphs-msw.c (add_tab_item):
17140         * glyphs-msw.c (mswindows_combo_box_instantiate):
17141         * glyphs-msw.c (mswindows_widget_property):
17142         * glyphs-msw.c (mswindows_combo_box_property):
17143         * glyphs-msw.c (mswindows_widget_set_property):
17144         * console.c (stuff_buffered_input):
17145         * objects-msw.c (mswindows_initialize_color_instance):
17146         * objects-msw.c (mswindows_valid_color_name_p):
17147         * objects-msw.c (mswindows_list_fonts):
17148         * objects-msw.c (mswindows_font_instance_truename):
17149         * bytecode.c (optimize_compiled_function):
17150         * select-x.c (symbol_to_x_atom):
17151         * select-x.c (x_atom_to_symbol):
17152         * select-x.c (hack_motif_clipboard_selection):
17153         * select-x.c (selection_data_to_lisp_data):
17154         * select-x.c (lisp_data_to_selection_data):
17155         * select-x.c (Fx_get_cutbuffer_internal):
17156         * select-x.c (Fx_store_cutbuffer_internal):
17157         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17158         * buffer.h (TO_INTERNAL_FORMAT): New function.
17159         * emacs.c (make_arg_list_1):
17160         * emacs.c (make_argc_argv):
17161         * emacs.c (main_1):
17162         * emacs.c (Fdump_emacs):
17163         * emacs.c (split_string_by_emchar_1):
17164         * file-coding.h:
17165         * lisp.h:
17166         * lstream.h:
17167         * symsinit.h:
17168         * device-x.c (x_init_device):
17169         * device-x.c (Fx_valid_keysym_name_p):
17170         * device-x.c (Fx_get_font_path):
17171         * device-x.c (Fx_set_font_path):
17172         * glyphs.c (bitmap_to_lisp_data):
17173         * glyphs.c (pixmap_to_lisp_data):
17174         * alloc.c (make_ext_string): Use coding system arguments.  Update
17175         all callers.
17176         * alloc.c (build_string):
17177         * callproc.c (child_setup):
17178         * callproc.c (init_callproc):
17179         * fileio.c (lisp_strerror):
17180         * fileio.c (directory_file_name):
17181         * fileio.c (Fexpand_file_name):
17182         * fileio.c (Ffile_truename):
17183         * fileio.c (Fsysnetunam):
17184         * fileio.c (Fdo_auto_save):
17185         * sysdep.c (sys_readdir):
17186         * tests.c: New file.  Allow adding C tests.
17187         Replace GET_* macros with a more comprehensible and flexible
17188         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17189         Modify all calls.
17190         Any coding system can be used to do format conversion.
17191         Eliminate enum external_data_format.
17192         Eliminate convert_to_external_format.
17193         Eliminate convert_to_internal_format.
17194         Make sure file-name, keyboard, terminal, and ctext are always
17195         defined as coding systems or aliases.  Make
17196         file-name-coding-system, terminal-coding-system, and
17197         keyboard-coding-system magical variables that are equivalent to
17198         defining the corresponding coding system aliases.
17199
17200         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17201         * file-coding.c (Fcoding_system_alias_p): New function.
17202         * file-coding.c (Fcoding_system_aliasee): New function.
17203         * file-coding.c (append_suffix_to_symbol): New function.
17204         * file-coding.c (dangling_coding_system_alias_p): New function.
17205         * file-coding.c (Ffind_coding_system):
17206         * file-coding.c (Fcopy_coding_system):
17207         * file-coding.c (encode_coding_no_conversion):
17208         * file-coding.c (syms_of_file_coding):
17209         * file-coding.c (vars_of_file_coding):
17210         Rewrite coding system alias code.
17211         Allow nested aliases, like symbolic links.
17212         Allow redefinition of coding system aliases.
17213         Prevent existence of dangling coding system aliases.
17214
17215         * dired.c (Fuser_name_completion_1):
17216         * dired.c (Fuser_name_all_completions):
17217         A crash would happen if user did QUIT in the middle of building
17218         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17219
17220         * lisp.h:
17221         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17222
17223         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17224         an unsigned char *.  Update all callers.
17225
17226 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17227
17228         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17229
17230 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17231
17232         * elhash.c (hentry_description): Use more portable definition.
17233         (resize_hash_table): Initialize new hentries using
17234         xnew_array_and_zero, thereby simplifying the code.
17235
17236         * mule-charset.c (make_charset): Make sure entire object is
17237         initialized, to avoid Purify warnings.
17238
17239         * alloc.c (resize_string): Fix unlikely crash with big strings.
17240
17241 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17242
17243         * realpath.c (xrealpath):
17244         Don't call getwd().
17245
17246 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17247
17248         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17249
17250 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17251
17252         * unexelfsgi.c (unexec): Change the way we decide which segment
17253         should be extended.
17254
17255         Assumption that .bss section should be outside the PT_LOADable
17256         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17257         it's present) is inside the 'data' segment. This would fail the
17258         test which was used to find a segment to grow and cover new
17259         heap. Instead of this assumption, I created another one - on IRIX
17260         the segment to grow should start below .bss and it's address
17261         should extent above the end of .bss. Once this segment is
17262         identified, it's grown to accommodate the new heap and new
17263         zero-length .bss section is added at the end of .data2.
17264
17265 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17266
17267         * eval.c (Feval): Wrong number of arguments should use original
17268         function, not the indirect_function version of it.
17269
17270 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17271
17272         * glyphs-x.c (x_button_instantiate): Don't add image if
17273         it is not a pixmap.
17274         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17275         is relative.
17276
17277 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17278
17279         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17280         declaration.
17281         (DEFVAR_INT_MAGIC): Ditto.
17282         (DEFVAR_BOOL_MAGIC): Ditto.
17283         * glyphs.h: Reindent backslash.
17284
17285 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17286
17287         * glyphs-widget.c (layout_query_geometry):
17288         (layout_layout): Use correct types for gheight, gwidth.
17289
17290 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17291
17292         * EmacsManager.c (QueryGeometry): Purified.
17293
17294 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17295
17296         * alloc.c (make_float): Make sure entire object is initialized, to
17297         avoid Purify warnings.
17298         (pdump_register_sub): Remove useless assignment.
17299         (pdump): Use xmalloc, not malloc.
17300         (pdump_load): Use xmalloc, not malloc.
17301
17302 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17303
17304         * callproc.c:
17305         * dired-msw.c:
17306         * fileio.c:
17307         * process-nt.c:
17308         * redisplay-msw.c:
17309         * sysdep.c: Removed redundant #include <windows.h>
17310
17311 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17312
17313         * frame.c (delete_frame_internal): Do not delete device when its
17314         implementation so declares.
17315         (delete_frame_internal): Set device selected frame to nil when
17316         last frame goes away.
17317
17318         * device-msw.c (msprinter_device_system_metrics): Implemented.
17319         (mswindows_device_system_metrics): Added 'device-dpi property.
17320
17321         * device.c: (Fdevice_printer_p): Added.
17322         Added 'offset-workspace device metric.
17323
17324         * console.h (device_metrics): Declared DM_offset_workspace.
17325
17326 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17327
17328         * fileio.c (Ffile_truename): Remove pointless and confusing
17329         initialization of elen.
17330
17331         * glyphs-widget.c: Compiler warning fixes.
17332
17333 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17334
17335         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17336         instead of a Lisp_Object as argument to make it consistent with
17337         the other LIVE_P macros.
17338         (CHECK_LIVE_PROCESS): New macro.
17339
17340         * process.c: Declare Qprocess_live_p.
17341         (Fprocess_live_p): New function.
17342         (create_process): Use PROCESS_LIVE_P.
17343         (read_process_output): Ditto.
17344         (set_process_filter): Ditto.
17345         (Fdelete_process): Ditto.
17346         (kill_buffer_processes): Ditto
17347         (process_send_signal): Use CHECK_LIVE_PROCESS.
17348         (Fprocess_input_coding_system): Check whether process is still
17349         alive (fix PR#1061).
17350         (Fprocess_output_coding_system): Ditto.
17351         (Fprocess_coding_system): Ditto.
17352         (Fset_process_input_coding_system): Ditto.
17353         (Fset_process_output_coding_system): Ditto.
17354
17355 2000-01-23  Andy Piper  <andy@xemacs.org>
17356
17357         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17358         layout and widget.
17359
17360         * glyphs.c (mark_image_instance): take into account changed
17361         image_instance format.
17362         (image_instance_equal): ditto.
17363         (image_instance_hash): ditto.
17364
17365         * glyphs-widget.c (widget_instantiate): Incorporate layout
17366         instantiation here. Delay layout of the layout until later.
17367         (layout_instantiate): deleted.
17368         (layout_query_geometry): new function. get the geometry of a
17369         layout.
17370         (layout_layout): layout a layout dynamically.
17371         (image_instantiator_widget): New function - splitting up
17372         image_instantiator_format_create_glyphs_widget for netwinder
17373         compilation.
17374         (image_instantiator_buttons):
17375         (image_instantiator_edit_fields):
17376         (image_instantiator_combo_box):
17377         (image_instantiator_scrollbar):
17378         (image_instantiator_progress_guage):
17379         (image_instantiator_tree_view):
17380         (image_instantiator_tab_control):
17381         (image_instantiator_labels):
17382         (image_instantiator_layout): ditto.
17383         (image_instantiator_format_create_glyphs_widget): Call preceding
17384         functions.
17385
17386 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17387
17388         * process.c (Fset_process_coding_system):
17389         * device-x.c (Fx_keysym_hash_table):
17390         Docstring fixes.
17391
17392         * lstream.c (Lstream_write): Return documented value, not 0.
17393
17394         * fileio.c (directory_file_name):
17395         (Fsubstitute_in_file_name):
17396         (Fsubstitute_insert_file_contents_internal):
17397         (Fwrite_region_internal):
17398         * emacs.c:
17399         * sysdep.c:
17400         * getloadavg.c:
17401         * systty.h:
17402         Remove vestigial APOLLO-conditional code.
17403
17404 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17405
17406         * getpagesize.h: Add guard macros.
17407         * libsst.h: Add guard macros.
17408         * libst.h: Add guard macros.
17409         * line-number.h: Add guard macros.
17410         * ndir.h: Add guard macros.
17411         * sysfloat.h: Add guard macros.
17412         * sysfile.h: Add guard macros.
17413         * sysproc.h: Add guard macros.
17414         * syswait.h: Add guard macros.
17415         * xintrinsic.h: Add guard macros.
17416         * xintrinsicp.h: Add guard macros.
17417         * xmmanager.h: Add guard macros.
17418         * xmmanagerp.h: Add guard macros.
17419         * xmprimitive.h: Add guard macros.
17420         * xmu.h: Add guard macros.
17421         * gpmevent.h: Add copyright statement. Add guard macros.
17422         * miscplay.h: Add guard macros.
17423         * *.h: Use consistent C-standards-approved guard macro names.
17424
17425         * opaque.c (make_opaque): Switch parameter order.
17426         * opaque.h (make_opaque): Switch parameter order.
17427         Update all callers.
17428         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17429
17430         * config.h.in (type_checking_assert): Added.
17431         (bufpos_checking_assert): Added.
17432
17433 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17434
17435         * alloc.c: Harmless pdump changes.
17436         - Use countof().
17437         - spell alignment correctly.
17438         * sysdep.c: Use countof()
17439
17440 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17441
17442         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17443         initially_selected_for_input() console method, default to 0.
17444         (semi_canonicalize_console_connection): Try to delegate to
17445         canonicalize_console_connection if no such console method.
17446         (canonicalize_console_connection): Vice versa.
17447         (print_console): Do not print nil connection.
17448
17449         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17450         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17451         (XDEVIMPF_FRAMELESS_OK): Added.
17452         (CONSOLE_INHERITS_METHOD): Added.
17453
17454         * console-msw.c (mswindows_canonicalize_console_connection):
17455         Added.
17456         (mswindows_canonicalize_device_connection): Added.
17457
17458         * console-msw.h (struct msprinter_device): Added this struct and
17459         accessor macros.
17460         (mswindows_device): Made fontlist a lisp object.
17461
17462         * device.c (semi_canonicalize_device_connection):  Try to delegate
17463         to canonicalize_device_connection if no such console method.
17464         (canonicalize_device_connection): Vice versa.
17465         (print_device): Do not print nil connection.
17466
17467         * device-msw.c (mswindows_init_device): Call InitCommonControls
17468         when have widgets.
17469         (mswindows_delete_device): Removed fontlist deallocation.
17470         (mswindows_mark_device): Added.
17471
17472         * events.c (event_equal): Added abort() at unreached code.
17473         (event_hash): Ditto.
17474
17475         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17476         fallback tags of Windows devices.
17477
17478         * general.c (syms_of_general): Initialized Qmsprinter.
17479
17480         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17481         of fallback tags of Windows devices.
17482
17483         * lisp.h: Declared Qmsprinter.
17484
17485         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17486         of strings.
17487         (mswindows_list_fonts): Ditto.
17488         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17489         that it can be used by both mswindows and msprinter devices.
17490         (initialize_font_instance): Added.
17491         (mswindows_initialize_font_instance): Use it.
17492         (msprinter_initialize_font_instance): Added.
17493
17494         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17495         and implementation flags check.
17496         (redisplay_without_hooks): Changed the call to the above.
17497         (Fredraw_device): Ditto.
17498         (Fredisplay_device): Ditto.
17499
17500         * redisplay-msw.c (get_frame_dc): Implemented.
17501         (get_frame_compdc): Implemented.
17502         (many functions): Use the two functions above to get device
17503         contexts, ether for a window or a printer.
17504
17505 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17506
17507         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17508         initialization here.
17509         (init_symbols_once_early): Call it.
17510         * emacs.c (main_1): Call it.
17511         * symsinit.h: Declare it.
17512
17513 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17514
17515         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17516         Lisp_Object.
17517         (pdump_backtrace): Ditto.
17518         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17519         (pdump_get_entry): Abort if trying to register a null pointer.
17520         (pdump_dump_data): Cleanup types when relocating.
17521         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17522         (pdump_dump_rtables): Remove bad casts.
17523         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17524         Lisp_Object instead of a EMACS_INT for the hashtable
17525         reorganization.
17526
17527 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17528
17529         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17530
17531         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17532
17533         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17534
17535         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17536
17537 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17538
17539         * faces.h (FACE_STRIKETHRU_P): Added.
17540
17541         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17542         of font variants.
17543
17544         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17545         (mswindows_set_dc_font): New function, aware of font variants,
17546         separated from mswindows_update_dc.
17547
17548         * objects-msw.h (struct mswindows_font_instance_data): Added
17549         definition.
17550
17551         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17552         cached fonts and the data structure.
17553         (mswindows_initialize_font_instance): Added creation of font data
17554         structure.
17555         (mswindows_print_font_instance): Print at least something.
17556         (mswindows_create_font_variant): Implemented.
17557         (mswindows_get_hfont): Implemented.
17558
17559 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17560
17561         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17562         prototyping problem with msvc.
17563
17564         * emacs.c (main_1): added syms_of_gui_mswindows() call
17565
17566         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17567         syms_of_gui_mswindows() function
17568
17569         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17570
17571 2000-01-18  Martin Buchholz <martin@xemacs.org>
17572
17573         * XEmacs 21.2.27 is released.
17574
17575 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17576
17577         * glyphs-eimage.c (struct tiff_error_struct):
17578         (tiff_error_func):
17579         (tiff_warning_func):
17580         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17581
17582         * unexmips.c:
17583         * unexhp9k3.c:
17584         * unexfreebsd.c:
17585         * unexec.c: Remove vestigial Lucid C code.
17586         * unexalpha.c:
17587         * unexaix.c:
17588         * termcap.c:
17589         * libsst.c: Ansify.
17590         Remove declarations of errno and strerror().
17591
17592         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17593
17594         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17595
17596 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17597
17598         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17599         Optimize.
17600
17601 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17602
17603         * md5.c:
17604         * file-coding.c:
17605         * file-coding.h:
17606         Change enum eol_type to eol_type_t.
17607
17608 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17609
17610         * gui.c (get_gui_callback): Check cons before accessing car.
17611
17612 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17613
17614         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17615         (XSETSPECIFIER_TYPE): Ditto.
17616
17617 2000-01-17  Didier Verna  <didier@xemacs.org>
17618
17619         * redisplay.c (generate_fstring_runes): compute string size in
17620         characters, not bytes.
17621
17622 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17623
17624         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17625
17626 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17627
17628         * print.c (print_error_message): Call print_prepare().
17629
17630 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17631
17632         * .dbxrc: Renamed from dbxrc.
17633
17634         * events.c (event_to_character):
17635         Use `assert (foo)' instead of `if (!foo) abort()'
17636
17637         * .gdbinit (xtype): Add documentation.
17638         * .gdbinit (check-temacs): New function.
17639         * .gdbinit (check-xemacs): New function.
17640         * dbxrc (check-xemacs): New function.
17641         * dbxrc (check-xemacs): New function.
17642
17643 2000-01-14  Andy Piper  <andy@xemacs.org>
17644
17645         * glyphs-widget.c (widget_query_geometry): Make sure that we
17646         calculate default dimensions correctly.
17647
17648 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17649
17650         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17651
17652         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17653         pdump_wire'd variable.
17654
17655         * emacs.c: (main_1): Conditionalized calls to
17656         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17657
17658 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17659
17660         * window.c (Fset_window_configuration):
17661         * sysdep.c (_start):
17662         * input-method-motif.c (res):
17663         * event-Xt.c (Xt_process_to_emacs_event):
17664         Simple compiler warning fixes.
17665
17666         * bytecode.c (funcall_compiled_function): Use the original
17667         function symbol on the backtrace list in preference to the
17668         compiled_function object in error messages.
17669
17670 2000-01-13  Andy Piper  <andy@xemacs.org>
17671
17672         * glyphs-x.c (update_widget_face): Make sure we update the widget
17673         background as well as foreground.
17674
17675 2000-01-13  Andy Piper  <andy@xemacs.org>
17676
17677         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17678         fields to subwindow.
17679         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17680         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17681         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17682         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17683
17684         * glyphs-widget.c (check_valid_tab_orientation): new function.
17685         (initialize_widget_image_instance): zero orientation and
17686         justification.
17687         (widget_instantiate): pick up orientation.
17688         (tab_control_query_geometry): return appropriate values for
17689         vertical tabs.
17690
17691         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17692         appropriate creation flags for left, right and bottom tabs.
17693
17694         * s/cygwin32.h: add tab definitions.
17695
17696 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17697
17698         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17699         frame upon hiding a subwindow.
17700         (mswindows_button_instantiate): Changed the push button style to
17701         BS_PUSHBUTTON.
17702         (mswindows_button_instantiate): Removed button BS_NOTIFY
17703         style.
17704         (mswindows_button_instantiate): Removed redundant check for
17705         a disabled gui item.
17706         (mswindows_button_instantiate): Made use of WS_TABSTOP
17707         consistent: "operable" controls (edit, button, tree, scroll) have
17708         this style, "display-only" ones (static, progress gauge) do
17709         not. This style is currently ignored by XEmacs though. Also,
17710         removed the WS_EX_CONTROLPARENT style - it is not for children,
17711         it is for their parents!
17712         (mswindows_edit_field_instantiate): Ditto.
17713         (mswindows_progress_gauge_instantiate): Ditto.
17714         (mswindows_tree_view_instantiate): Ditto.
17715         (mswindows_tab_control_instantiate): Ditto.
17716         (mswindows_scrollbar_instantiate): Ditto.
17717         (mswindows_combo_box_instantiate): Ditto.
17718         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17719         style to the "clip" window.
17720         (mswindows_button_instantiate): Removed compilation warning by
17721         equally typing terms of the ?: operator.
17722
17723 2000-01-12  Didier Verna  <didier@xemacs.org>
17724
17725         * redisplay.c (generate_fstring_runes): new parameter holding the
17726         last modeline-format extent.
17727         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17728         extent, fill the glyph block with it.
17729         (generate_fstring_runes): handle these parameters.
17730         (generate_formatted_string_db): ditto.
17731
17732         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17733         glyphs'extents in the modeline.
17734
17735 1999-01-11  Mike Woolley  <mike@bulsara.com>
17736
17737         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17738         256Mb, as a workaround for the non-starting problem many people
17739         have experienced.
17740
17741 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17742
17743         * console-tty.c (Fset_console_tty_output_coding_system):
17744         Force redrawing tty frame.
17745
17746 2000-01-10  Didier Verna  <didier@xemacs.org>
17747
17748         * redisplay.c (generate_fstring_runes): fix size computation bug.
17749
17750 2000-01-09  William M. Perry <wmperry@aventail.com>
17751
17752         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17753
17754 2000-01-09  Andy Piper  <andy@xemacs.org>
17755
17756         * glyphs-msw.c: index -> i to avoid shadows.
17757         (xbm_create_bitmap_from_data): make static.
17758         (check_valid_string_or_int): deleted.
17759         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17760
17761         * glyphs-x.c (x_update_subwindow): remove unused args.
17762
17763         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17764         back pointer - this is done in allocate_image_instance.
17765         (query_string_font): return Qnil to make the compiler happy.
17766         (unmap_subwindow): set to ~0 to make the compiler happy.
17767         (glyph_query_geometry): comment out until used.
17768         (glyph_layout): ditto.
17769
17770 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17771
17772         * insdel.c (signal_after_change): Remove extraneous unbind_to().