update.
[chise/xemacs-chise.git] / src / ChangeLog
1 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * concord.c (Fconcord_define_object): New function.
4         (syms_of_concord): Add new builtin function
5         `concord-define-object'.
6
7 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
8
9         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
10         (Kamo).
11
12 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
13
14         * concord.c: Add EXFUN for Fconcord_object_get.
15         (Vconcord_genre_object_hash_table): New variable.
16         (concord_genre_cache_get_object): New function.
17         (concord_genre_cache_put_object): New function.
18         (Fconcord_make_object): Use object cache; put object-ID into `=id'
19         feature.
20         (Fconcord_object_put): Call `concord_index_sync' after
21         `concord_index_strid_put_obj'.
22         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
23
24 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
25
26         * concord.c (Fconcord_decode_object): Do GCPRO for
27         Fconcord_make_object.
28         (func_for_each_object): Likewise; do GCPRO for
29         for_each_object_closure->function.
30         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
31         for_each_object_closure->function, for_each_object_closure->genre,
32         for_each_object_closure->ds and for_each_object_closure->ret.
33         (concord_object_validate): Do GCPRO for Fconcord_make_object.
34
35 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
36
37         * concord.c: Add EXFUNs for Fconcord_decode_object and
38         Fconcord_object_put.
39         (Fconcord_make_object): Change order of arguments.
40         (Fconcord_decode_object): Modify for Fconcord_make_object.
41         (func_for_each_object): Likewise.
42         (concord_object_validate): Likewise.
43         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
44
45 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
46
47         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
48
49 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
50
51         * concord.c (Fconcord_decode_object): Try to use readable print
52         form as a key of Concord-index.
53         (Fconcord_object_get): Try to use readable print form as an ID of
54         Concord-object.
55         (Fconcord_object_put): Try to use readable print form as an ID of
56         Concord-object and a feature value.
57         (Fconcord_object_spec): Try to use readable print form as an ID of
58         Concord-object.
59
60 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
61
62         * concord.c (print_concord_object): Support readable form.
63
64 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * emacs.c (main_1): Call `structure_type_create_concord' when
67         HAVE_CONCORD is defined.
68
69         * symsinit.h (structure_type_create_concord): New prototype.
70
71         * concord.c (Qconcord_object): New variable.
72         (Qgenre): Likewise.
73         (Q_id): Likewise.
74         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
75         for directory.
76         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
77         char*> for genre-name.
78         (Fconcord_feature_list): Likewise.
79         (Fconcord_make_object): Likewise.
80         (Fconcord_decode_object): Likewise; use <char*> instead of
81         <unsigned char*> for feature_name and strid.
82         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
83         c_obj and feature_name.
84         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
85         char*> for c_value.
86         (struct closure_for_object_spec): Use <char*> instead of <unsigned
87         char*> for member `object_id'.
88         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
89         char*> for feature-name.
90         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
91         for c_obj.
92         (func_for_each_object): Cast to avoid warnings.
93         (Fconcord_foreach_object_in_feature): Use <char*> instead of
94         <unsigned char*> for genre_name and feature_name.
95         (concord_name_validate): New function.
96         (concord_object_validate): Likewise.
97         (concord_object_instantiate): Likewise.
98         (syms_of_concord): Add new builtin symbols `concord-object',
99         `genre' and `=id'.
100         (structure_type_create_concord): New function.
101
102 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
103
104         * concord.c (Vconcord_ds_hash_table): New variable.
105         (Vconcord_genre_hash_table): New variable.
106         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
107         (Fconcord_ds_directory): New function.
108         (Fconcord_assign_genre): New function.
109         (Fconcord_genre_directory): New function.
110         (Fconcord_genre_ds): New function.
111         (Fconcord_feature_list): Allow to omit `ds'.
112         (Fconcord_make_object): Likewise.
113         (Fconcord_decode_object): Likewise.
114         (Fconcord_foreach_object_in_feature): Likewise.
115         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
116         Fconcord_assign_genre, Fconcord_genre_directory and
117         Fconcord_genre_ds.
118         (vars_of_concord): Setup Vconcord_ds_hash_table and
119         Vconcord_genre_hash_table.
120
121 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
122
123         * concord.c (struct closure_for_each_object): Add new member
124         `ret'.
125         (func_for_each_object): Setup the return value to
126         `for_each_object_closure->ret'.
127         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
128         returns the value instead of Qt.
129
130 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
131
132         * concord.c: New file.
133
134 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
135
136         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
137         `lrecord_type_concord_object'.
138
139 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
140
141         * symsinit.h (syms_of_concord): New prototype.
142         (vars_of_concord): New prototype.
143
144         * emacs.c (main_1): Setup symbols and variable about concord if
145         HAVE_CONCORD is defined.
146
147         * config.h.in (HAVE_CONCORD): New macro.
148
149 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
150
151         * chartab.c (Fput_char_attribute): For each character relation
152         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
153
154 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * chartab.c (Fput_char_attribute): Use
157         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
158         calling `put_char_composition'.
159
160 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * chartab.c (Q_halfwidth_of): New variable.
163         (put_char_composition): Return `<-halfwidth' instead of
164         `=decomposition' for compatibility mapping to single character
165         tagged `narrow'.
166         (Fput_char_attribute): Convert char-specs in value of
167         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
168         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
169         for `<-halfwidth'.
170         (syms_of_chartab): Add new symbol `<-halfwidth'.
171
172 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
173
174         * chartab.c (put_char_composition): Return
175         `<-formed@{isolated|initial|medial|final}' for compatibility
176         mapping to single character tagged
177         `{isolated|initial|medial|final}'.
178
179 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
180
181         * chartab.c (Q_compat_of): Deleted.
182         (put_char_composition): Return `<-FOO' for compatibility mapping
183         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
184         of `symbol_name (XSYMBOL(...))'.
185         (Fput_char_attribute): Convert char-specs in value of
186         `{<-|->}font[^*]*' to characters and put reverse links.
187         (Fsave_char_attribute_table): Don't refer Q_compat_of.
188         (syms_of_chartab): Delete builtin symbol `<-compat'.
189
190 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
191
192         * chartab.c (Q_circled_of): New variable.
193         (put_char_composition): Return `<-circled' instead of
194         `=decomposition' for compatibility mapping to single character
195         tagged `circle'.
196         (Fput_char_attribute): Convert char-specs in value of
197         `{<-|->}circled[^*]*' to characters and put reverse links.
198         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
199         for `<-circled'.
200         (syms_of_chartab): Add new symbol `<-circled'.
201
202 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
203
204         * chartab.c (Qto_decomposition_at_circled): New variable.
205         (put_char_composition): Return `=>decomposition@circled' instead
206         of `=decomposition' for compatibility decomposition mapping tagged
207         `circle'.
208         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
209
210 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
211
212         * chartab.c (Q_subscript_of): New variable.
213         (put_char_composition): Return `<-subscript' instead of
214         `=decomposition' for compatibility mapping to single character
215         tagged `sub'.
216         (Fput_char_attribute): Convert char-specs in value of
217         `{<-|->}subscript[^*]*' to characters and put reverse links.
218         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
219         for `<-subscript'.
220         (syms_of_chartab): Add new symbol `<-subscript'.
221
222 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
223
224         * chartab.c (Q_superscript_of): New variable.
225         (put_char_composition): Return `<-superscript' instead of
226         `=decomposition' for compatibility mapping to single character
227         tagged `super'.
228         (Fput_char_attribute): Convert char-specs in value of
229         `{<-|->}superscript[^*]*' to characters and put reverse links.
230         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
231         for `<-superscript'.
232         (syms_of_chartab): Add new symbol `<-superscript'.
233
234 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
235
236         * chartab.c (Qto_decomposition_at_compat): Deleted.
237         (Qto_decomposition_at_superscript): New variable.
238         (put_char_composition): Use `=>decomposition@superscript' instead
239         of `=decomposition' for compatibility decomposition mapping tagged
240         `super'.
241         (Fput_char_attribute): Fix condition about `put_char_composition'.
242         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
243         add news symbol `=>decomposition@superscript'.
244
245 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
246
247         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
248         for compatibility decomposition mapping tagged FOO.
249         (Fput_char_attribute): Modify for `put_char_composition'.
250
251 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
252
253         * chartab.c (Qto_decomposition_at_compat): New variable.
254         (Q_compat_of): Renamed from `Q_compatibility_of'.
255         (put_char_composition): Rename `Q_compatibility_of' to
256         `Q_compat_of'; return `=>decomposition@compat' for compatibility
257         decomposition mapping.
258         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
259         `Q_compat_of'.
260         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
261         `<-compatibility' to `<-compat'.
262
263 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
264
265         * chartab.c (Q_compatibility_of): New variable.
266         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
267         object is proved to be a cons cell; return `<-compatibility' if
268         the first element of argument `value' is `compat'.
269         (Fput_char_attribute): Eliminate the first value if
270         `put_char_composition' returns `<-compatibility'.
271         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
272         for `<-compatibility'.
273         (syms_of_chartab): Add new symbol `<-compatibility'.
274
275 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
276
277         * chartab.c (Q_canonical): New variable.
278         (put_char_composition): Return a feature name: return
279         `->canonical' if argument `value' specifies single character.
280         (Fput_char_attribute): Use `put_char_composition' to determine
281         feature name for `=decomposition' or `->denotational'.
282         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
283         for `->canonical'.
284         (syms_of_chartab): Add new symbol `->canonical'.
285
286 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
287
288         * chartab.c (Qmap_decomposition): New variable.
289         (Fput_char_attribute): Convert `->decomposition' to
290         `=decomposition'.
291         (syms_of_chartab): Add new symbol `=decomposition'.
292
293 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
294
295         * chartab.c (Fget_range_char_table): Fix serious problem when
296         `range' is nil.
297
298 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
299
300         * chartab.c (char_table_get_db): Use `read_from_c_string'.
301
302 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
303
304         * lread.c (read_from_c_string): New function.
305
306         * lisp.h (read_from_c_string): New prototype.
307
308 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
309
310         * chartab.c (Fput_char_attribute): Convert char-specs in value of
311         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
312         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
313         for `{<-|->}Oracle-Bones[^*]*'.
314
315 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
316
317         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
318         (Kizu).
319
320 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
321
322         * text-coding.c (Qccs_priority_list): New variable in XEmacs
323         CHISE.
324         (Fmake_coding_system): Support new property `ccs-priority-list' in
325         XEmacs CHISE.
326         (Fcoding_system_property): Likewise.
327         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
328         Vdefault_coded_charset_priority_list in XEmacs CHISE.
329         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
330         XEmacs CHISE.
331         (complex_vars_of_file_coding): Define new coding-system-property
332         `ccs-priority-list' in XEmacs CHISE.
333
334         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
335
336 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
337
338         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
339         changed to normal function.
340         (encode_char_2): Likewise.
341
342         * mule-charset.c (decoding_table_put_char): Copied from
343         char-ucs.h; changed to normal function.
344         (encode_char_2): Likewise.
345
346 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
347
348         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
349         New extern.
350         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
351         (encode_char_2_search_children): New inline function.
352         (encode_char_2): Refer
353         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
354         and use `encode_char_2_search_children'.
355
356 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
357
358         * mule-charset.c
359         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
360         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
361         (vars_of_mule_charset): Add new variable
362         `display-coded-charset-priority-use-inheritance' and
363         `display-coded-charset-priority-use-hierarchy-order'.
364
365 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
366
367         * char-ucs.h (Q_subsumptive): New extern.
368         (Q_denotational): Likewise.
369         (encode_char_2): Search children specified by `->subsumptive' and
370         `->denotational'.
371
372 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
373
374         * mule-charset.c (complex_vars_of_mule_charset): Modify the
375         X-registry of `ucs-bmp'.
376
377 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
378
379         * chartab.c (char-variants): Refer `->subsumptive',
380         `->denotational' and `->identical' as same as `->ucs-unified'.
381
382 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
383
384         * chartab.c (Fput_char_attribute): Convert char-specs in value of
385         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
386         links.
387
388 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
389
390         * text-coding.c: Add EXFUN for `Fregexp_quote'.
391         (decode_add_er_char): Fix problem about infinite loop when a CCS
392         specified in `coded-charset-entity-reference-alist' is not
393         existed.
394
395 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
396
397         * mule-charset.c (syms_of_mule_charset): Rename
398         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
399
400 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
401
402         * fns.c (simplify_char_spec): Don't allocate new character-object
403         if specified char_spec does not have any CCS-features.
404
405         * chartab.h: Add EXFUN for Fdefine_char.
406
407         * chartab.c: Delete EXFUN for Fdefine_char.
408
409 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
410
411         * fns.c (simplify_char_spec): Use Fdefine_char instead of
412         Ffind_char for char-spec.
413
414 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
415
416         * lisp-disunion.h (XCHARVAL): Fix condition about
417         SIZEOF_EMACS_INT.
418
419 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
420
421         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
422         <int> for `code'.
423         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
424         point; use <Emchar> instead of <int> for character-id.
425
426 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
427
428         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
429         (make_char): Likewise.
430         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
431         environment.
432         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
433         instead of <int> as the type of return value; use <Lisp_Object>
434         instead of <Emchar> as the type of argument.
435         (XCHARVAL[macro version]): Cast the result into <Emchar>.
436
437         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
438         syntaxcode> instead of <int>.
439
440 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
441
442         * chartab.c (put_char_composition): Use DECODE_CHAR to get
443         character corresponding with UCS code point.
444         (Fput_char_attribute): Likewise.
445
446         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
447         character in the UCS decoding-table if the char-id is not equal to
448         the UCS code point.
449
450 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
451
452         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
453         for aliases; write `description'; write
454         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
455         not 0.
456
457 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
458
459         * chartab.c (Fsave_char_attribute_table): Don't use
460         `save_charset_properties'.
461
462         * mule-charset.c (Fsave_charset_properties): Renamed from
463         `save_charset_properties' and changed to Lisp function again;
464         write property `type' as `CCS'; write properties `final-byte' and
465         `mother' if they exists.
466         (syms_of_mule_charset): Revive builtin function
467         `save-charset-properties' when HAVE_LIBCHISE is defined.
468
469 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
470
471         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
472         instead of Vexec_directory.
473         (char_attribute_system_db_file): Likewise.
474
475 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
476
477         * chartab.c (Fsave_char_attribute_table): Use
478         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
479         defined.
480
481         * mule-charset.c (save_charset_properties): Renamed from
482         `Fsave_charset_properties'; changed to non-Lisp function.
483         (syms_of_mule_charset): Abolish builtin function
484         `save-charset-properties'.
485
486 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
487
488         * mule-charset.c (Fsave_charset_properties): New function when
489         HAVE_LIBCHISE is defined.
490         (syms_of_mule_charset): Add new builtin function
491         `save-charset-properties' when HAVE_LIBCHISE is defined.
492
493 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
494
495         * chartab.c (Fput_char_attribute): Convert char-specs in value of
496         `{<-|->}ancient[^*]*' to characters and put reverse links.
497         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
498         for `{<-|->}ancient[^*]*'.
499
500 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
501
502         * chartab.c (Fput_char_attribute): Convert char-specs in value of
503         `{<-|->}original[^*]*' to characters and put reverse links.
504         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
505         for `{<-|->}original[^*]*'.
506
507 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
508
509         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
510
511 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
512
513         * mule-charset.c (Qsystem_char_id): New variable.
514
515         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
516         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
517
518 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
519
520         * chartab.c (Fput_char_attribute): When processing a reference of
521         a character, put into the end of the reversed reference of each
522         target character.
523
524 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
525
526         * chartab.c (Q_same): Deleted.
527         (Q_same_of): Deleted.
528         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
529         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
530         for `{<-|->}same'.
531         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
532
533 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
534
535         * chartab.c (Q_vulgar): Deleted.
536         (Q_vulgar_of): Deleted.
537         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
538         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
539         for `{<-|->}vulgar'.
540         (syms_of_chartab): Don't define `{<-|->}vulgar'.
541
542 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
543
544         * chartab.c (Fput_char_attribute): Convert char-specs in value of
545         `{<-|->}wrong[^*]*' to characters and put reverse links.
546         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
547         for `{<-|->}wrong[^*]*'.
548
549 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
550
551         * chartab.c (Q_vulgar): New variable.
552         (Q_vulgar_of): New variable.
553         (Fput_char_attribute): Convert char-specs in value of
554         `{->|<-}vulgar' to characters and put reverse links.
555         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
556         for `{->|<-}vulgar'.
557         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
558
559 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
560
561         * text-coding.c (decode_add_er_char): Must to quote prefix string
562         as regexp.
563
564 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
565
566         * mule-charset.c (put_char_ccs_code_point): Store characters of
567         =ucs whose code_points >= 0xF0000.
568
569 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
570
571         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
572         CHISE.
573         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
574         CHISE.
575         (complex_vars_of_mule_charset): Add new coded-charset
576         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
577         builtin characters over 0xEFFFF.
578
579         * chartab.c (syms_of_chartab): Don't define symbol
580         `system-char-id' in every case.
581
582         * char-ucs.h (Qsystem_char_id): New extern variable.
583         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
584
585 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
586
587         * text-coding.c (char_encode_utf8): Try to use entity-references
588         for U-000F0000 ...  U-0010FFFF.
589
590 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
591
592         * text-coding.c (ER_BUF_SIZE): New macro.
593         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
594         `er_buf'.
595         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
596         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
597
598 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
599
600         * chartab.c (find_char_feature_in_family): New function.
601         (Fchar_feature): Use `find_char_feature_in_family' with
602         `->identical', `<-subsumptive' and `<-denotational'.
603
604 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
605
606         * text-coding.c (char_encode_as_entity_reference): Allow prefix
607         within 8 characters; fix infinite loop.
608
609 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
610
611         * chartab.c (Q_same): New variable.
612         (Q_same_of): New variable.
613         (Fput_char_attribute): Convert char-specs in value of
614         `{->|<-}same' to characters and put reverse links.
615         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
616         for `{->|<-}same'.
617         (syms_of_chartab): Add new symbols `{->|<-}same'.
618
619 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
620
621         * chartab.c (Q_component): New variable.
622         (Q_component_of): Likewise.
623         (Fput_char_attribute): Convert char-specs in value of
624         `{->|<-}ideographic-component-forms' to characters and put reverse
625         links.
626         (syms_of_chartab): Add new symbols
627         `{->|<-}ideographic-component-forms'.
628
629 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
630
631         * chartab.c (Q_identical): New variable.
632         (Q_identical_from): New variable.
633         (Fchar_feature): Regard `->identical' as a feature to find
634         ancestors.
635         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
636         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
637         for `{->|<-}identical'.
638         (syms_of_chartab): Add new symbols `{->|<-}identical'.
639
640 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
641
642         * char-ucs.h (encode_char_2): New inline function.
643         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
644
645 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
646
647         * chartab.c (Fput_char_attribute): Convert char-specs to
648         characters in value of `ideographic-structure'.
649         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
650         for `{<-|->}simplified(@...)'.
651         (Fdefine_char): Try to use predefined character's id.
652
653 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
654
655         * fns.c (simplify_char_spec): Try to convert builtin chars to
656         defined chars.
657
658 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
659
660         * chartab.c (Fput_char_attribute): Convert char-specs in value of
661         `<-simplified[^*]*' to characters and put reverse links.
662
663 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
664
665         * chartab.c (Q_subsumptive): Renamed from Q_unified.
666         (Q_subsumptive_from): Renamed from Q_unified_from.
667         (Fchar_feature): Use `Q_subsumptive_from' instead of
668         `Q_unified_from'.
669         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
670         `Q_unified'.
671         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
672         `<-unified' to `<-subsumptive'.
673
674 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
675
676         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
677         inheritance itself; fix typo; stop recursive search if cyclic
678         inheritance is found.
679
680 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
681
682         * chartab.c (Q_denotational): New variable.
683         (Q_denotational_from): New variable.
684         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
685         (put_char_attribute): New function.
686         (Fput_char_attribute): Use `put_char_attribute'; regard
687         `->denotational' and `<-denotational' as same as `->unified' and
688         `<-unified'.
689         (syms_of_chartab): Add new symbols `->denotational' and
690         `<-denotational'.
691
692 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
693
694         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
695         `Fget_char_attribute'.
696         (Fchar_variants): Likewise.
697         (get_char_table): Likewise.
698         (Fchar_feature): New function.
699         (put_char_composition): Use `Fchar_feature' instead of
700         `Fget_char_attribute'.
701         (Fput_char_attribute): Likewise; don't put the target character
702         into its `->unified' value.
703         (syms_of_chartab): Add new builtin function `char-feature'.
704
705 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
706
707         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
708         `Fget_char_attribute'.
709         (char_encode_utf8): Likewise.
710
711         * chartab.h: Add an EXFUN for `Fchar_feature'.
712
713 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
714
715         * chartab.c (Vnext_defined_char_id): New variable.
716         (Fput_char_attribute): Accept characters in `->unified'.
717         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
718         new characters which are not related with builtin char-id ranges.
719         (vars_of_chartab): Add new variable `next-defined-char-id'.
720
721 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
722
723         * chartab.c (Q_unified): New variable.
724         (Q_unified_from): New variable.
725         (Fput_char_attribute): Add code for `->unified'.
726         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
727         XEmacs CHISE.
728
729 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
730
731         * mule-charset.c (decode_ccs_conversion): New function.
732         (decode_defined_char): Use `decode_ccs_conversion'.
733         (decode_builtin_char): Likewise.
734
735 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
736
737         * char-ucs.h: Change some charset-ids of private coded-charsets.
738
739 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
740
741         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
742         (char_encode_as_entity_reference): Likewise.
743         (decode_coding_big5): Modify for `decode_defined_char' and
744         `DECODE_CHAR'.
745         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
746         avoid compiler warning.
747         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
748
749         * mule-charset.c (decode_defined_char): Add new argument
750         `without_inheritance'.
751         (Fdecode_char): Add new optional argument `without_inheritance'.
752         (Fdecode_builtin_char): Modify for `Fdecode_char'.
753
754         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
755         (simplify_char_spec): Likewise.
756
757         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
758         setting.
759
760         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
761         (map_char_table): Likewise.
762         (Fdefine_char): Use `Fdecode_char' without inheritance.
763         (Ffind_char): Modify for `Fdecode_char'.
764
765         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
766
767         * char-ucs.h (decode_defined_char): Add new argument
768         `without_inheritance'.
769         (DECODE_CHAR): Likewise.
770         (MAKE_CHAR): Modify for `DECODE_CHAR'.
771
772 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
773
774         * chartab.c (Vchise_system_db_directory): New variable.
775         (vars_of_chartab): Add new variable `chise-system-db-directory'.
776
777 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
778
779         * chartab.c: EXFUN `Fmount_char_attribute_table'.
780         (print_chartab_range): Don't define when `UTF2000' is defined.
781         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
782         `CHISE_DS_open'.
783
784 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
785
786         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
787         and optional argument `rehash' is specified, call
788         `open_chise_data_source_maybe' before
789         `chise_ds_foreach_char_feature_name' is called.
790
791 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
792
793         * chartab.c (char_attribute_list_reset_map_func): New function
794         when HAVE_LIBCHISE is defined.
795         (Fchar_attribute_list): Add new optional argument `rehash' when
796         HAVE_LIBCHISE is defined.
797         (open_chise_data_source_maybe): Use "chise-db" instead of
798         "char-db".
799         (char_attribute_system_db_file): Likewise.
800         (Fload_char_attribute_table): Use
801         `chise_feature_foreach_char_with_value' instead of
802         `chise_char_feature_value_iterate'.
803
804 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
805
806         * chartab.c (Vchise_db_directory): New variable.
807         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
808
809 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
810
811         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
812         instead of HAVE_CHISE to specify using with libchise.
813
814         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
815
816         * chartab.h: Don't use HAVE_CHISE_CLIENT.
817
818         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
819         defined or HAVE_LIBCHISE_LIBCHISE is defined.
820         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
821         is defined.
822         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
823         HAVE_CHISE to specify using with libchise.
824         (syms_of_chartab): Don't define symbol `system-char-id' when
825         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
826
827 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
828
829         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
830         specify CHISE DB support.
831         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
832         of `char_attribute_system_db_file' to check feature DB file.
833
834         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
835         HAVE_CHISE_CLIENT to specify CHISE DB support.
836
837         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
838         specify CHISE DB support.
839         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
840         not defined.
841         (Freset_char_attribute_table): Use `chise_feature_setup_db'
842         instead of `char_attribute_system_db_file' to check feature DB
843         file.
844
845 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
846
847         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
848         `HAVE_CHISE_CLIENT'.
849
850 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
851
852         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
853         (Fsave_charset_mapping_table): Don't use
854         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
855
856         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
857         (HAVE_LIBCHISE): New macro.
858
859         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
860
861         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
862         (Fsave_char_attribute_table): Don't use
863         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
864
865 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
866
867         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
868         defined.
869         (save_uint16_byte_table): Likewise.
870         (save_byte_table): Likewise.
871         (char_table_get_db): Use `chise_ds_load_char_feature_value'
872         instead of `chise_char_load_feature_value'.
873         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
874
875 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
876
877         * chartab.h (struct Lisp_Char_Table): Delete member
878         `feature_table' if CHISE is defined.
879
880         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
881         (Fcopy_char_table): Likewise.
882         (char_table_open_db_maybe): Likewise.
883         (char_table_close_db_maybe): Likewise.
884         (char_table_get_db): Likewise.
885         (Fmount_char_attribute_table): Likewise.
886         (Fload_char_attribute_table): Likewise.
887
888 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
889
890         * mule-charset.c (load_char_decoding_entry_maybe): Use
891         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
892         `chise_ccs_decode'.
893
894 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
895
896         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
897         instead of `chise_open_data_source'.
898         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
899         `chise_ds_close'.
900
901 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
902
903         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
904         instead of `chise_ds_open_feature_table'.
905         (char_table_close_db_maybe): Don't use `chise_ft_close'.
906
907 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
908
909         * mule-charset.c (Fsave_charset_mapping_table): Use
910         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
911         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
912         `chise_ccs_sync' instead of `chise_ccst_close'.
913         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
914
915         * chartab.c (open_chise_data_source_maybe): Modify for
916         `chise_open_data_source'.
917         (char_table_open_db_maybe): Modify for
918         `chise_ds_open_feature_table'.
919
920 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
921
922         * mule-charset.c (load_char_decoding_entry_maybe): Use
923         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
924         `chise_ccst_close'.
925
926 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
927
928         * mule-charset.c (Fsave_charset_mapping_table): Use
929         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
930         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
931         `chise_dt_put_char' and `chise_dt_close'.
932         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
933         `chise_ccs_decode' and `chise_ccst_close' instead of
934         `chise_ds_open_decoding_table', `chise_dt_get_char' and
935         `chise_dt_close'.
936
937         * chartab.c (char_table_get_db): Use
938         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
939         (load_char_attribute_table_map_func): Modify for
940         `chise_char_feature_value_iterate'.
941         (Fload_char_attribute_table): Use
942         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
943
944 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
945
946         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
947
948 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
949
950         * chartab.c (put_char_table): Modify for inherited coded-charsets
951         in XEmacs CHISE.
952
953 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
954
955         * chartab.c (Fput_char_table_map_function): Fixed.
956         (word_boundary_p): Don't check charset in XEmacs CHISE.
957
958 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
959
960         * mule-charset.c (Fsave_charset_mapping_table): Use
961         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
962         instead of `chise_open_decoding_table'; refer
963         `default_chise_data_source'; use `chise_dt_close' instead of
964         `chise_close_decoding_table'.
965         (load_char_decoding_entry_maybe): Likewise.
966
967         * chartab.c (default_chise_data_source): New variable when `CHISE'
968         is defined.
969         (Fcopy_char_table): `ct->ds' is deleted.
970         (open_chise_data_source_maybe): New function.
971         (Fclose_char_data_source): New function.
972         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
973         use `chise_ds_open_feature_table' instead of
974         `chise_open_feature_table'.
975         (char_table_close_db_maybe): Use `chise_ft_close' instead of
976         `chise_close_feature_table'; `cit->ds' is deleted.
977         (syms_of_chartab): Add new builtin function
978         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
979
980         * chartab.h (default_chise_data_source): New extern variable.
981         (open_chise_data_source_maybe): New prototype.
982         (struct Lisp_Char_Table): Delete `ds'.
983
984 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
985
986         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
987         `CHISE' is defined.
988
989 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
990
991         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
992         not defined; add code for non-libchise setting.
993         (char_table_close_db_maybe): Likewise.
994         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
995         defined.
996         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
997         even if `CHISE' is not defined.
998         (Freset_char_attribute_table): Likewise.
999         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1000         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1001         `char_table_get_db'.
1002         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1003         `char_table_close_db_maybe' even if `CHISE' is not defined.
1004
1005 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1006
1007         * chartab.c (char_table_open_db_maybe): New function.
1008         (char_table_close_db_maybe): New function.
1009         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1010         (Freset_char_attribute_table): Likewise.
1011         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1012         `char_table_close_db_maybe'.
1013         (Fload_char_attribute_table): Likewise.
1014
1015 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1016
1017         * chartab.c: Don't include <chise.h> because it is included in
1018         chartab.h.
1019         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1020         defined.
1021         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1022         `CHISE' is defined.
1023         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1024         `CHISE' is defined.
1025         (Fclose_char_attribute_table): Close `ct->feature_table' and
1026         `ct->ds' when `CHISE' is defined.
1027         (Freset_char_attribute_table): Likewise.
1028         (load_char_attribute_maybe): Use `cit->ds' and
1029         `cit->feature_table' when `CHISE' is defined.
1030         (Fload_char_attribute_table): Likewise.
1031
1032         * chartab.h: Include <chise.h> when `CHISE' is defined.
1033         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1034         when `CHISE' is defined.
1035
1036 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1037
1038         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1039         is defined.
1040         (char_table_description): Likewise.
1041         (Fmake_char_table): Likewise.
1042         (Fcopy_char_table): Likewise.
1043         (Fmount_char_attribute_table): Likewise.
1044         (Fclose_char_attribute_table): Likewise.
1045         (Freset_char_attribute_table): Likewise.
1046         (load_char_attribute_maybe): Likewise.
1047         (Fload_char_attribute_table): Likewise.
1048
1049         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1050         defined.
1051
1052 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1053
1054         * chartab.c (load_char_attribute_table_map_func): New function
1055         when CHISE is defined.
1056         (Qload_char_attribute_table_map_function): Don't define when CHISE
1057         is defined.
1058         (Fload_char_attribute_table_map_function): Likewise.
1059         (Fload_char_attribute_table): Use libchise when `CHISE' is
1060         defined.
1061         (syms_of_chartab): Don't define
1062         `load-char-attribute-table-map-function' when CHISE is defined.
1063
1064 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1065
1066         * chartab.c: Include <chise.h> when `CHISE' is defined.
1067         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1068
1069 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1070
1071         * mule-charset.c (charset_code_point): Fix problem when searching
1072         in mother CCS fails with `defined_only' mode.
1073
1074 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1075
1076         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1077         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1078         (put_char_composition): Likewise.
1079         (Fput_char_attribute): Likewise.
1080         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1081
1082 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1083
1084         * chartab.c (Q_ucs): Deleted.
1085         (Fput_char_attribute): Don't refer `->ucs'.
1086         (Fdefine_char): Likewise.
1087         (Ffind_char): Likewise.
1088         (syms_of_chartab): Delete `->ucs'.
1089
1090 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1091
1092         * mule-charset.c (Qmap_cns11643_2): Renamed from
1093         `Qchinese_cns11643_2'.
1094         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1095         `chinese-cns11643-2'.
1096         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1097         `=cns11643-2'.
1098
1099 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1100
1101         * mule-charset.c (Qmap_cns11643_1): Renamed from
1102         `Qchinese_cns11643_1'.
1103         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1104         `chinese-cns11643-1'.
1105         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1106         `=cns11643-1'.
1107
1108 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1109
1110         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1111         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1112         `chinese-gb12345'.
1113         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1114         `=gb12345'.
1115
1116 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1117
1118         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1119         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1120         `chinese-gb2312'.
1121         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1122         `=gb2312'.
1123
1124 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1125
1126         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1127         (syms_of_mule_charset): Add new symbol `=big5' instead of
1128         `chinese-big5'.
1129         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1130
1131 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1132
1133         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1134         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1135         `korean-ksc5601'.
1136         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1137         `=ks-x1001'.
1138
1139 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1140
1141         * mule-charset.c (Qmap_jis_x0212): Renamed from
1142         `Qjapanese_jisx0212'.
1143         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1144         `japanese-jisx0212'.
1145         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1146         `=jis-x0212'.
1147
1148 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1149
1150         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1151         `Qjapanese_jisx0208'.
1152         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1153         of `japanese-jisx0208'.
1154         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1155         `=jis-x0208-1983'.
1156
1157 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1158
1159         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1160         `Qjapanese_jisx0208_1978'.
1161         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1162         of `japanese-jisx0208-1978'.
1163         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1164         `=jis-x0208-1978'.
1165
1166 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1167
1168         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1169         only for XEmacs CHISE.
1170
1171 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1172
1173         * char-ucs.h: Compact non-ISO-IR charset-ids.
1174         (LEADING_BYTE_UCS): Changed to -177.
1175         (LEADING_BYTE_CONTROL_1): Changed to -77.
1176         (LEADING_BYTE_UCS_BMP): Changed to -176.
1177         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1178
1179 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1180
1181         * mule-charset.c (Qiso_ir): New variable.
1182         (Fmake_charset): Recognise new property `iso-ir'.
1183         (syms_of_mule_charset): Add new symbol `iso-ir'.
1184
1185 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1186
1187         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1188         n to -n; charset-id of non ISO-IR sets are changed to positive
1189         numbers.
1190
1191 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1192
1193         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1194         for &MCS-XXXXXXXX; values.
1195
1196 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1197
1198         * mule.c (Vxemacs_chise_version): Renamed from
1199         `Vutf_2000_version'.
1200         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1201         `utf-2000-version' as an alias for `xemacs-chise-version'.
1202
1203 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1204
1205         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1206         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1207         defined.
1208
1209         * config.h.in (CHISE): New macro.
1210
1211 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1212
1213         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1214         of `ucs'.
1215         (Qmap_ucs): New variable.
1216         (syms_of_mule_charset): Add new symbol `=ucs'.
1217         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1218
1219         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1220         (simplify_char_spec): Likewise.
1221
1222         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1223
1224         * char-ucs.h (Qmap_ucs): New extern variable.
1225
1226 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1227
1228         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1229         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1230         don't define it when UTF2000 is not defined.
1231         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1232         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1233         when UTF2000 is not defined.
1234         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1235         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1236
1237 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1238
1239         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1240
1241         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1242         (Qucs_gb): Deleted.
1243         (syms_of_mule_charset): Delete `ucs-gb'.
1244         (complex_vars_of_mule_charset): Likewise.
1245
1246 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1247
1248         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1249
1250         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1251         (Qucs_cns): Deleted.
1252         (syms_of_mule_charset): Delete `ucs-cns'.
1253         (complex_vars_of_mule_charset): Likewise.
1254
1255 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1256
1257         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1258
1259         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1260         (Qucs_jis): Deleted.
1261         (syms_of_mule_charset): Delete `ucs-jis'.
1262         (complex_vars_of_mule_charset): Likewise.
1263
1264 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1265
1266         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1267
1268         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1269         (Qucs_ks): Deleted.
1270         (syms_of_mule_charset): Delete `ucs-ks'.
1271         (complex_vars_of_mule_charset): Likewise.
1272
1273 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1274
1275         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1276         (Qideograph_daikanwa_2): Deleted.
1277         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1278         (complex_vars_of_mule_charset): Likewise.
1279
1280         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1281         (LEADING_BYTE_DAIKANWA_1): Deleted.
1282         (LEADING_BYTE_DAIKANWA_2): Deleted.
1283         (MIN_CHAR_DAIKANWA): Deleted.
1284         (MAX_CHAR_DAIKANWA): Deleted.
1285
1286 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1287
1288         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1289         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1290         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1291
1292         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1293         (Vcharset_ideograph_daikanwa): Deleted.
1294         (Qideograph_hanziku_{1..12}): Deleted.
1295         (Qideograph_daikanwa): Deleted.
1296         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1297         Vcharset_ideograph_daikanwa.
1298         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1299         `ideograph-hanziku-{1..12}'.
1300         (complex_vars_of_mule_charset): Likewise.
1301
1302 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1303
1304         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1305
1306         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1307         (Qideograph_gt_pj_{1..11}): Deleted.
1308         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1309         (complex_vars_of_mule_charset): Likewise.
1310
1311 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1312
1313         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1314         (Vcharset_ideograph_gt): Deleted.
1315         (Qucs_big5): Deleted.
1316         (Qideograph_gt): Deleted.
1317         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1318         `ideograph-gt'.
1319         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1320         and `ideograph-gt'.
1321
1322         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1323         (LEADING_BYTE_GT): Deleted.
1324         (MIN_CHAR_GT): Deleted.
1325         (MAX_CHAR_GT): Deleted.
1326
1327 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1328
1329         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1330
1331 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1332
1333         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1334         (save_uint16_byte_table): Likewise.
1335         (save_byte_table): Likewise; convert values by it.
1336         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1337         for `ideographic-structure'.
1338         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1339         as the filter for `ideographic-structure'.
1340
1341 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1342
1343         * chartab.c (put_char_composition): New function.
1344         (Fput_char_attribute): Use `put_char_composition'; use
1345         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1346
1347         * fns.c (simplify_char_spec): New function.
1348         (char_ref_simplify_spec): New function.
1349         (Fchar_refs_simplify_char_specs): New function.
1350         (syms_of_fns): Add new builtin function
1351         `char-refs-simplify-char-specs'.
1352
1353 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1354
1355         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1356         (Qideograph_cbeta): Deleted.
1357         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1358         (complex_vars_of_mule_charset): Likewise.
1359
1360         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1361         (MIN_CHAR_CBETA): Comment out.
1362         (MAX_CHAR_CBETA): Likewise.
1363
1364 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1365
1366         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1367         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1368         CHISE client feature.
1369
1370 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1371
1372         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1373
1374 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1375
1376         * mule-charset.c (charset_lookup_description_1): Use
1377         `NUM_LEADING_BYTES' in UTF-2000.
1378
1379 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1380
1381         * char-ucs.h (GC_CHARSETP): Deleted.
1382
1383 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1384
1385         * char-ucs.h (MAX_CHAR_GT): Updated.
1386
1387 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1388
1389         * text-coding.c: Sync with XEmacs 21.4.10.
1390
1391 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1392
1393         * mule-charset.c (Vcharset_china3_jef): Deleted.
1394         (Qchina3_jef): Deleted.
1395         (syms_of_mule_charset): Don't define `china3-jef'.
1396         (complex_vars_of_mule_charset): Likewise.
1397
1398         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1399         (MIN_CHAR_CHINA3_JEF): Comment out.
1400         (MAX_CHAR_CHINA3_JEF): Comment out.
1401
1402 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1403
1404         * mule-charset.c (Vcharset_ucs_gb): New variable.
1405         (Qucs_gb): New variable.
1406         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1407         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1408
1409         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1410
1411 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1412
1413         * mule-charset.c (charset_code_point): if a coded-charset has a
1414         final-byte, don't inherit the builtin range of the mother CCS.
1415
1416 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1417
1418         * mule-charset.c (charset_code_point): Fix problem about
1419         inheritance.
1420
1421 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1422
1423         * mule-charset.c (decode_builtin_char): Reorganized.
1424
1425 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1426
1427         * text-coding.c (char_encode_as_entity_reference): Modify for
1428         `charset_code_point'.
1429         (char_encode_shift_jis): Likewise.
1430         (char_encode_big5): Likewise.
1431         (char_encode_utf8): Likewise.
1432         (char_encode_iso2022): Likewise.
1433
1434         * mule-charset.c (charset_code_point): Add new argument
1435         `defined_only'.
1436         (Fencode_char): Add new optional argument `defined_only'.
1437
1438         * chartab.c (put_char_table): Modify for `charset_code_point'.
1439
1440         * char-ucs.h (charset_code_point): Add new argument
1441         `defined_only'.
1442         (encode_char_1): Modify for `charset_code_point'.
1443
1444 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1445
1446         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1447         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1448
1449 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1450
1451         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1452         (Qjis_x0208): Likewise.
1453         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1454         XCHARSET_FINAL(charset).
1455         (charset_code_point): Modify condition for final-byte based
1456         builtin-chars.
1457         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1458         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1459         in UTF-2000; specify `=jis-x0208' as the mother of
1460         `japanese-jisx0208-1978', `japanese-jisx0208' and
1461         `japanese-jisx0208-1990' in UTF-2000.
1462
1463 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1464
1465         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1466
1467 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1468
1469         * text-coding.c (decode_coding_utf16): Support UTF-16.
1470         (char_encode_utf16): Fixed.
1471
1472 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1473
1474         * text-coding.c (Qutf16): New variable in MULE.
1475         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1476         (Fcoding_system_type): Add `utf-16' in MULE.
1477         (struct detection_state): Add a structure for utf16 in MULE.
1478         (detect_coding_type): Setup st->utf16.mask in MULE.
1479         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1480         MULE.
1481         (reset_encoding_stream): Use `char_encode_utf16' and
1482         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1483         (detect_coding_utf16): New function [incomplete].
1484         (decode_coding_utf16): New function [support only UCS-2].
1485         (char_encode_utf16): New function.
1486         (char_finish_utf16): New function.
1487         (syms_of_file_coding): Add new symbol `utf-16'; setup
1488         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1489
1490         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1491         UTF-2000.
1492         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1493         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1494
1495 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1496
1497         * chartab.c (put_char_table): When a charset is specified as a
1498         range in UTF-2000, don't support builtin characters.
1499
1500 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1501
1502         * mule-charset.c (decode_defined_char): Don't refer external
1503         database if Qunbound or Qnil are found.
1504         (Fsave_charset_mapping_table): Don't define it if
1505         HAVE_CHISE_CLIENT is not defined.
1506         (Freset_charset_mapping_table): New function.
1507         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1508         found in external database.
1509         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1510         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1511         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1512
1513 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1514
1515         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1516         not.
1517
1518 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1519
1520         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1521         Q_lowercase, Q_uppercase in UTF-2000.
1522
1523         * chartab.c (get_char_table): Add special code for the standard
1524         case table to use character attribute `->downcase' and
1525         `->uppercase' for case operations in UTF-2000.
1526
1527         * casetab.c (Qflippedcase): New variable in UTF-2000.
1528         (Q_lowercase): Likewise.
1529         (Q_uppercase): Likewise.
1530         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1531         and `->uppercase' in UTF-2000.
1532         (complex_vars_of_casetab): Assign attribute name `downcase' to
1533         downcase and CANON table of Vstandard_case_table in UTF-2000;
1534         assign attribute name `flippedcase' to upcase and EQV table of
1535         Vstandard_case_table in UTF-2000.
1536
1537 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1538
1539         * text-coding.c (decode_add_er_char): Support isolated-chars.
1540         (char_encode_as_entity_reference): Likewise.
1541
1542 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1543
1544         * emacs.c (Vutf_2000_lisp_directory): New variable.
1545         (Vconfigure_utf_2000_lisp_directory): Likewise.
1546         (complex_vars_of_emacs): Add new variable
1547         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1548
1549 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1550
1551         * char-ucs.h (DECODE_CHAR): Delete special code for
1552         `chinese-big5-1' and `chinese-big5-2'.
1553
1554         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1555         (Qbig5_2): Likewise.
1556         (decode_defined_char): Support CONVERSION_BIG5_1 and
1557         CONVERSION_BIG5_2.
1558         (decode_builtin_char): Likewise.
1559         (charset_code_point): Likewise.
1560         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1561         'conversion in UTF-2000.
1562         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1563         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1564         `chinese-big5-2' as children of `chinese-big5'.
1565
1566         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1567         (CONVERSION_BIG5_2): New macro.
1568
1569 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1570
1571         * text-coding.c (char_encode_big5): Support entity-reference.
1572
1573 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1574
1575         * text-coding.c (char_encode_as_entity_reference): New function.
1576         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1577
1578 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1579
1580         * text-coding.c (decode_coding_big5): Support entity-reference
1581         decoding feature.
1582
1583 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1584
1585         * text-coding.c (allocate_coding_system): Initialize initial
1586         charsets for CODESYS_UTF8.
1587         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1588         charset-g2 for CODESYS_UTF8.
1589         (decode_coding_utf8): Use charset-g0.
1590         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1591         to force variants to map to UCS.
1592
1593 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1594
1595         * text-coding.c (Qutf_8_mcs): New variable.
1596         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1597         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1598         instead of `utf-8' in UTF-2000.
1599
1600 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1601
1602         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1603         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1604         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1605         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1606         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1607         CONVERSION_96x96x96x96 are introduced.
1608         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1609         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1610         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1611
1612         * char-ucs.h (CONVERSION_94): New macro.
1613         (CONVERSION_96): New macro.
1614         (CONVERSION_94x94): New macro.
1615         (CONVERSION_96x96): New macro.
1616         (CONVERSION_94x94x94): New macro.
1617         (CONVERSION_96x96x96): New macro.
1618         (CONVERSION_94x94x94x60): New macro.
1619         (CONVERSION_94x94x94x94): New macro.
1620         (CONVERSION_96x96x96x96): New macro.
1621
1622 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1623
1624         * chartab.c (Vcharacter_variant_table): Deleted.
1625         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1626         of `Vcharacter_variant_table'.
1627         (Fput_char_attribute): Likewise.
1628         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1629         (complex_vars_of_chartab): Likewise.
1630
1631 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1632
1633         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1634
1635         * fns.c (Qideographic_structure): New variable.
1636         (Qkeyword_char): New variable.
1637         (ids_format_unit): New function.
1638         (Fideographic_structure_to_ids): New function.
1639         (syms_of_fns): Add new symbols `ideographic-structure' and
1640         `:char'; add new builtin function `ideographic-structure-to-ids'.
1641
1642         * data.c (Fchar_ref_p): New function.
1643         (syms_of_data): Add new builtin function `char-ref-p'.
1644
1645         * chartab.h: Add an EXFUN for `Ffind_char'.
1646
1647 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1648
1649         * text-coding.c (Vcharacter_composition_table): Deleted.
1650         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1651         in every UTF-2000.
1652
1653         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1654         UTF-2000.
1655         (Vcharacter_composition_table): Deleted.
1656         (Fget_composite_char): Use the implementation for external-DB
1657         support in every UTF-2000.
1658         (Fput_char_attribute): Likewise.
1659         (char_attribute_system_db_file): Don't define if external-DB
1660         feature is not available.
1661         (Fsave_char_attribute_table): Likewise.
1662         (Fmount_char_attribute_table): Likewise.
1663         (Fclose_char_attribute_table): Likewise.
1664         (Freset_char_attribute_table): Likewise.
1665         (Fload_char_attribute_table): Likewise.
1666         (syms_of_chartab): Don't define `save-char-attribute-table',
1667         `mount-char-attribute-table', `reset-char-attribute-table',
1668         `close-char-attribute-table' and `load-char-attribute-table' if
1669         external-DB feature is not available.
1670         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1671
1672 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1673
1674         * text-coding.c (Qcomposition): Add extern if external-DB feature
1675         is supported.
1676         (Vcharacter_composition_table): Don't add extern if external-DB
1677         feature is supported.
1678         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1679         character composition rule if external-DB feature is supported.
1680
1681         * chartab.c (Vcharacter_composition_table): Don't define if
1682         external-DB feature is supported.
1683         (Qcomposition): New variable.
1684         (Fget_composite_char): New implementation for external-DB support.
1685         (Fput_char_attribute): Use `composition' property of each
1686         character instead of `Vcharacter_composition_table' to store
1687         character-composition rules if external-DB feature is supported.
1688         (syms_of_chartab): Add new symbol `composition'.
1689         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1690         external-DB feature is supported.
1691
1692 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1693
1694         * chartab.c (Vchar_db_stingy_mode): New variable.
1695         (load_char_attribute_maybe): Close database if
1696         Vchar_db_stingy_mode is not NIL.
1697         (Fload_char_attribute_table_map_function): Use
1698         `get_char_id_table_0' instead of `get_char_id_table'.
1699         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1700
1701         * chartab.h (get_char_id_table_0): New inline function.
1702         (get_char_id_table): Use `get_char_id_table_0'.
1703
1704 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1705
1706         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1707         and `COMPOSE_ADD_CHAR'.
1708         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1709
1710 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1711
1712         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1713         instead of `DECODE_ADD_UCS_CHAR'.
1714         (COMPOSE_ADD_CHAR): Likewise.
1715
1716 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1717
1718         * text-coding.c (decode_flush_er_chars): New inline function.
1719         (decode_add_er_char): New function.
1720         (decode_coding_utf8): Use `decode_flush_er_chars' and
1721         `decode_add_er_char'.
1722
1723 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1724
1725         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1726         done before `decode_output_utf8_partial_char'.
1727
1728         * mule-charset.c (complex_vars_of_mule_charset): Specify
1729         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1730         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1731
1732 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1733
1734         * mule-charset.c (decode_defined_char): New function; search
1735         mother.
1736         (decode_builtin_char): Don't search mother if
1737         XCHARSET_MAX_CODE(charset) == 0.
1738         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1739         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1740         (Fdecode_char): Use `decode_defined_char' instead of
1741         `DECODE_DEFINED_CHAR'.
1742         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1743         mother of `Vcharset_ucs_jis'.
1744
1745         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1746         instead of `DECODE_DEFINED_CHAR'.
1747
1748         * char-ucs.h (decode_defined_char): Renamed from
1749         `DECODE_DEFINED_CHAR'; changed to normal function.
1750         (DECODE_CHAR): Use `decode_defined_char' instead of
1751         `DECODE_DEFINED_CHAR'.
1752
1753         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1754
1755 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1756
1757         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1758
1759         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1760         variable.
1761         (Quse_entity_reference): New variable.
1762         (Qd): New variable.
1763         (Qx): New variable.
1764         (QX): New variable.
1765         (coding_system_description): Add description for
1766         `ccs_priority_list'.
1767         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1768         (allocate_coding_system): Initialize `ccs_priority_list' in
1769         UTF-2000.
1770         (Fmake_coding_system): Add description about
1771         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1772         (codesys).
1773         (Fcoding_system_property): Accept `disable-composition' and
1774         `use-entity-reference' in UTF-2000.
1775         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1776         in UTF-2000.
1777         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1778         (decode_coding_utf8): Decode entity-reference if
1779         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1780         (char_encode_utf8): Encode non-Unicode characters as
1781         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1782         (str->codesys).
1783         (syms_of_file_coding): Add new symbols `use-entity-reference',
1784         `d', `x', `X'.
1785         (vars_of_file_coding): Add new variable
1786         `coded-charset-entity-reference-alist'.
1787         (complex_vars_of_file_coding): Declare `disable-composition' and
1788         `use-entity-reference' to be coding-system-properties in UTF-2000.
1789
1790         * file-coding.h (struct Lisp_Coding_System): Add new member
1791         `use_entity_reference' and `ccs_priority_list'.
1792         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1793         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1794         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1795
1796 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1797
1798         * chartab.c (save_uint8_byte_table): Don't clear the table.
1799         (save_uint16_byte_table): Likewise.
1800         (save_byte_table): Likewise.
1801         (Fmount_char_attribute_table): New function.
1802         (syms_of_chartab): Add new builtin function
1803         `mount-char-attribute-table'.
1804
1805 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1806
1807         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1808         "w+" mode.
1809         (load_char_decoding_entry_maybe): Open database as read-only mode.
1810
1811         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1812         open database as "w+" mode.
1813         (load_char_attribute_maybe): Open database as read-only mode.
1814         (Fload_char_attribute_table): Likewise.
1815
1816 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1817
1818         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1819         (char_table_description): Delete member `db_file'.
1820         (Fmake_char_table): Don't refer `ct->db_file'.
1821         (Fcopy_char_table): Likewise.
1822         (Fsave_char_attribute_table): Likewise.
1823         (Fclose_char_attribute_table): Likewise.
1824         (Freset_char_attribute_table): Likewise.
1825         (load_char_attribute_maybe): Likewise.
1826         (Fload_char_attribute_table): Likewise.
1827
1828         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1829
1830 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1831
1832         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1833         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1834         `ct->db' is living.
1835         (load_char_attribute_maybe): Likewise.
1836         (Fload_char_attribute_table): Likewise.
1837
1838 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1839
1840         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1841         `ct->db_file' unconditionally.
1842
1843 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1844
1845         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1846         UTF-2000.
1847         (char_table_description): Add description for `db_file' and `db'
1848         in UTF-2000.
1849         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1850         UTF-2000.
1851         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1852         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1853         (Fclose_char_attribute_table): New function.
1854         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1855         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1856         and `cit->db'.
1857         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1858         (syms_of_chartab): Add new builtin function
1859         `Fclose_char_attribute_table'.
1860
1861 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1862
1863         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1864         `db' in UTF-2000.
1865         (load_char_attribute_maybe): Change interface.
1866         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1867
1868 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1869
1870         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1871
1872 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1873
1874         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1875         instead of `DECODE_CHAR' for mother; don't use special code for
1876         chinese-big5 to use code space of chinese-big5-1 and
1877         chinese-big5-2.
1878         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1879         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1880
1881         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1882         (MAX_CHAR_BIG5_CDP): Revival.
1883
1884 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1885
1886         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1887         the XLFD registry-encoding name of `chinese-big5'.
1888
1889 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1890
1891         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1892         (Qchinese_big5_cdp): Deleted.
1893         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1894         (complex_vars_of_mule_charset): Delete coded-charset
1895         `chinese-big5-cdp'.
1896
1897         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1898         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1899         `CHARSET_ID_OFFSET - n' for private CCS.
1900         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1901         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1902         of `MIN_LEADING_BYTE'.
1903         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1904         `(CHARSET_ID_OFFSET - 97)'.
1905         (MIN_CHAR_BIG5_CDP): Deleted.
1906         (MAX_CHAR_BIG5_CDP): Deleted.
1907
1908 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1909
1910         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1911
1912 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1913
1914         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1915         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1916         chartab.c].
1917
1918         * chartab.c (Vutf_2000_version): Moved to mule.c.
1919         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1920
1921 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1922
1923         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1924         when HAVE_CHISE_CLIENT is not defined.
1925
1926         * mule.c (vars_of_mule): Provide feature `chise' when
1927         HAVE_CHISE_CLIENT is defined.
1928
1929 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1930
1931         * config.h.in (UTF2000): Add comment.
1932         (HAVE_CHISE_CLIENT): New macro.
1933
1934 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1935
1936         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1937         CONSP.
1938         (Fput_char_attribute): Likewise.
1939         (char_attribute_system_db_file): Encode file-name of attribute.
1940         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1941         the initial value.
1942
1943 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1944
1945         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1946         (Fsave_charset_mapping_table): Use
1947         `char_attribute_system_db_file'.
1948         (load_char_decoding_entry_maybe): Likewise.
1949
1950         * chartab.h (Qsystem_char_id): New external variable.
1951         (char_attribute_system_db_file): New prototype.
1952
1953         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1954         (char_attribute_system_db_file): New function.
1955         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1956         (Freset_char_attribute_table): Likewise.
1957         (load_char_attribute_maybe): Likewise.
1958         (Fload_char_attribute_table): Likewise.
1959         (syms_of_chartab): Add new symbol `system-char-id'.
1960
1961 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1962
1963         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1964         `XCHARSET_GRAPHIC(ccs)'.
1965
1966 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1967
1968         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1969
1970 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1971
1972         * chartab.c (Q_ucs_variants): New variable.
1973         (syms_of_chartab): Add new symbol `->ucs-variants'.
1974         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1975         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1976         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1977
1978         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1979
1980         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1981         `HAVE_DATABASE' is defined.
1982         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1983         `HAVE_DATABASE' is defined.
1984
1985 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1986
1987         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1988         attribute-table.
1989         (Freset_char_attribute_table): New function.
1990         (syms_of_chartab): Add new builtin function
1991         `reset-char-attribute-table'.
1992
1993 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1994
1995         * chartab.c (load_char_attribute_maybe): Don't make directories.
1996
1997 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1998
1999         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2000
2001         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2002         for decoding-table.
2003
2004 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2005
2006         * mule-charset.c (Fsave_charset_mapping_table): Use
2007         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2008
2009         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2010         instead of `XCHARSET_CHARS'.
2011
2012 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2013
2014         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2015         (XCHARSET_BYTE_SIZE): Likewise.
2016
2017         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2018         mule-charset.c].
2019         (XCHARSET_BYTE_SIZE): Likewise.
2020
2021 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2022
2023         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2024         data-directory to store database.
2025         (Fsave_char_attribute_table): Likewise.
2026         (load_char_attribute_maybe): Likewise.
2027         (Fload_char_attribute_table): Likewise.
2028
2029 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2030
2031         * mule-charset.c (Fsave_charset_mapping_table): New function.
2032         (syms_of_mule_charset): Add new builtin function
2033         `save-charset-mapping-table'.
2034
2035 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2036
2037         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2038         (get_ccs_octet_table): New inline function.
2039         (put_ccs_octet_table): Likewise.
2040         (decoding_table_put_char): Use `get_ccs_octet_table' and
2041         `put_ccs_octet_table'.
2042         (decoding_table_remove_char): Use `decoding_table_put_char'.
2043         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2044
2045         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2046         into encoding_table.
2047         (make_charset): Use Qunbound instead Qnil as initial value of
2048         decoding_table.
2049
2050 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2051
2052         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2053         element is Qunloaded.
2054         (map_over_uint16_byte_table): Likewise.
2055         (map_over_byte_table): Likewise.
2056         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2057         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2058         database support, load encoding-table of the specified
2059         coded-charset if it is not loaded yet.
2060         (save_uint8_byte_table): New function of UTF-2000 with external
2061         database support.
2062         (save_uint16_byte_table): Likewise.
2063         (save_byte_table): Likewise.
2064         (Fput_char_attribute): Don't store value into external database
2065         even if the external database feature is supported in UTF-2000;
2066         set `attribute' as name of char-table if the external database
2067         feature is supported.
2068         (Fsave_char_attribute_table): New function in UTF-2000.
2069         (syms_of_chartab): Add new builtin function
2070         `save-char-attribute-table' in UTF-2000.
2071
2072 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2073
2074         * chartab.c (char_attribute_table_to_put): New variable in
2075         UTF-2000.
2076         (Qput_char_table_map_function): Likewise.
2077         (value_to_put): Likewise.
2078         (Fput_char_table_map_function): New function in UTF-2000.
2079         (put_char_table): Use `Fmap_char_attribute' for
2080         CHARTAB_RANGE_CHARSET in UTF-2000.
2081         (Fput_char_attribute): Store symbol instead of string in
2082         `XCHAR_TABLE_NAME (table)'.
2083         (load_char_attribute_maybe): Likewise.
2084         (syms_of_chartab): Add new symbol/function
2085         `put-char-table-map-function'.
2086
2087 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2088
2089         * database.h: Add new EXFUN for `Fmap_database'.
2090
2091         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2092         (syms_of_database): Likewise.
2093
2094         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2095         UTF-2000.
2096         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2097         (XCHAR_TABLE_UNLOADED): Likewise.
2098
2099         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2100         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2101         HAVE_DATABASE is defined.
2102         (char_attribute_table_to_load): New variable of UTF-2000 with
2103         external database support.
2104         (Qload_char_attribute_table_map_function): Likewise.
2105         (Fload_char_attribute_table_map_function): New function of
2106         UTF-2000 with external database support.
2107         (Fload_char_attribute_table): New function of UTF-2000.
2108         (Fmap_char_attribute): Call Fload_char_attribute_table if
2109         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2110         (syms_of_chartab): Add new symbol and function
2111         `load-char-attribute-table-map-function' in UTF-2000 with external
2112         database support; add new function `load-char-attribute-table' in
2113         UTF-2000.
2114
2115 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2116
2117         * chartab.h (load_char_attribute_maybe): New prototype for
2118         UTF-2000 with DATABASE support.
2119         (get_char_id_table): Use `load_char_attribute_maybe' if
2120         HAVE_DATABASE is defined.
2121
2122         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2123         with DATABASE support.
2124
2125 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2126
2127         * chartab.c (Fput_char_attribute): Use S-expression as key of
2128         external database.
2129
2130         * chartab.h (get_char_id_table): Use S-expression as key of
2131         external database.
2132
2133 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2134
2135         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2136         if an element is not loaded, load the corresponding attributes
2137         from an external database.
2138         (map_over_uint16_byte_table): Likewise.
2139         (map_over_byte_table): Likewise.
2140         (map_char_table): Modify for `map_over_uint8_byte_table',
2141         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2142         element is not loaded, load the corresponding attributes from an
2143         external database.
2144         (Fput_char_attribute): Change initial values to Qunloaded.
2145
2146         * chartab.h (get_char_id_table): If a character attribute is not
2147         loaded and the attribute value is not found in an external
2148         database, store Qunbound as the attribute value.
2149
2150 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2151
2152         * chartab.c (BT_UINT8_unloaded): New macro.
2153         (UINT8_VALUE_P): Accept Qunloaded.
2154         (UINT8_ENCODE): Likewise.
2155         (UINT8_DECODE): Likewise.
2156         (BT_UINT16_unloaded): New macro.
2157         (UINT16_VALUE_P): Accept Qunloaded.
2158         (UINT16_ENCODE): Likewise.
2159         (UINT16_DECODE): Likewise.
2160         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2161         BT_UINT16_unloaded.
2162         (mark_char_table): Mark `ct->name' in UTF-2000.
2163         (char_table_description): Add `name' in UTF-2000.
2164         (Fmake_char_table): Initialize `ct->name'.
2165         (Fcopy_char_table): Copy `ct->name'.
2166         (Fput_char_attribute): Store value into an external database if
2167         HAVE_DATABASE is defined.
2168
2169         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2170         UTF-2000.
2171         (CHAR_TABLE_NAME): New macro in UTF-2000.
2172         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2173         (get_char_id_table): Try to read an external database if Qunloaded
2174         is stored in a table.
2175
2176         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2177         Qunloaded.
2178
2179 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2180
2181         * database.h: Add EXFUN definitions for Fopen_database,
2182         Fput_database, Fget_database and Fclose_database.
2183
2184         * data.c (Qunloaded): New variable in UTF-2000.
2185
2186         * lisp.h (Qunloaded): New variable in UTF-2000.
2187
2188 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2189
2190         * mule-charset.c (put_char_ccs_code_point): Modify for
2191         `decoding_table_remove_char' and `decoding_table_put_char'.
2192         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2193
2194         * char-ucs.h (decoding_table_remove_char): Change arguments to
2195         hide decoding_table vector.
2196         (decoding_table_put_char): Likewise.
2197
2198 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2199
2200         * mule-charset.c (decoding_table_remove_char): Moved to
2201         char-ucs.h.
2202         (decoding_table_put_char): Likewise.
2203
2204         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2205         from mule-charset.c].
2206         (decoding_table_remove_char): New inline function [moved from
2207         mule-charset.c].
2208         (decoding_table_put_char): Likewise.
2209
2210 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2211
2212         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2213         extension.
2214
2215 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2216
2217         * mule-charset.c (decode_builtin_char): Support mother charsets.
2218
2219 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2220
2221         * mule-charset.c (Q94x94x60): New variable.
2222         (charset_code_point): Support conversion `94x94x60'.
2223         (Fmake_charset): Likewise.
2224         (syms_of_mule_charset): Add new symbol `94x94x60'.
2225
2226         * char-ucs.h (CONVERSION_94x94x60): New macro.
2227
2228 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2229
2230         * mule-charset.c (charset_code_point): Unify code about
2231         `code-offset'.
2232
2233 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2234
2235         * mule-charset.c (charset_code_point): Merge code about builtin
2236         characters into code about mother charsets; don't use
2237         `range_charset_code_point'.
2238         (range_charset_code_point): Deleted.
2239
2240 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2241
2242         * mule-charset.c (Qcode_offset): New variable.
2243         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2244         `max-code'; accept new property `code-offset'.
2245         (syms_of_mule_charset): Add new symbol `code-offset'.
2246
2247 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2248
2249         * mule-charset.c (range_charset_code_point): Fixed.
2250
2251 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2252
2253         * mule-charset.c (decode_builtin_char): Change semantics of
2254         code-offset of coded-charset.
2255         (charset_code_point): Likewise.
2256         (range_charset_code_point): Likewise.
2257         (complex_vars_of_mule_charset): Modify for the change.
2258
2259 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2260
2261         * mule-charset.c (Fencode_char): Reverse arguments.
2262
2263         * mule-charset.c (charset_code_point): Fixed.
2264
2265 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2266
2267         * mule-charset.c (Vcharset_mojikyo): Deleted.
2268         (Vcharset_mojikyo_2022_1): Deleted.
2269         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2270         (Qmin_code): New variable in UTF-2000.
2271         (Qmax_code): Likewise.
2272         (Qmother): Likewise.
2273         (Qconversion): Likewise.
2274         (Q94x60): Likewise.
2275         (Qmojikyo): Deleted.
2276         (Qmojikyo_2022_1): Deleted.
2277         (Qmojikyo_pj_{1..22}): Deleted.
2278         (mark_charset): Mark `cs->mother'.
2279         (charset_description): Add description for `mother'.
2280         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2281         new arguments `mother' and `conversion'; use
2282         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2283         (charset_code_point): Moved from char-ucs.h; support `mother'
2284         charset feature.
2285         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2286         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2287         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2288         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2289         allow 2 as the value of `graphic' in UTF-2000; add new properties
2290         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2291         require `final' in UTF-2000; modify for `make_charset'.
2292         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2293         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2294         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2295         (Fencode_char): New function.
2296         (syms_of_mule_charset): Add new builtin function `encode-char' in
2297         UTF-2000; add new symbols `min-code', `max-code', `mother',
2298         `conversion' and `94x60'; delete symbols `mojikyo',
2299         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2300         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2301         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2302         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2303
2304         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2305         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2306
2307         * char-ucs.h (Vcharset_mojikyo): Deleted.
2308         (Vcharset_mojikyo_2022_1): Deleted.
2309         (LEADING_BYTE_MOJIKYO): Deleted.
2310         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2311         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2312         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2313         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2314         add new member `mother'; add new member `conversion'.
2315         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2316         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2317         (CHARSET_MOTHER): New macro.
2318         (CHARSET_CONVERSION): New macro.
2319         (CONVERSION_IDENTICAL): New macro.
2320         (CONVERSION_94x60): New macro.
2321         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2322         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2323         (XCHARSET_MOTHER): New macro.
2324         (XCHARSET_CONVERSION): New macro.
2325         (MIN_CHAR_MOJIKYO): Deleted.
2326         (MAX_CHAR_MOJIKYO): Deleted.
2327         (DECODE_MOJIKYO_2022): Deleted.
2328         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2329         (charset_code_point): Changed to non-inline function.
2330         (encode_char_1): Use `charset_code_point'.
2331         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2332
2333 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2334
2335         * lread.c (read_compiled_function): Fix prototype.
2336         (read_vector): Likewise.
2337
2338 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2339
2340         * lrecord.h (struct lrecord_header): Delete `older'.
2341         (set_lheader_implementation): Delete code for `older'.
2342         (set_lheader_older_implementation): Deleted.
2343         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2344         (OLDER_RECORD_P): Deleted.
2345         (OLDER_RECORD_HEADER_P): Deleted.
2346         (alloc_older_lcrecord): Deleted.
2347         (alloc_older_lcrecord_type): Deleted.
2348
2349         * alloc.c (all_older_lcrecords): Deleted.
2350         (alloc_older_lcrecord): Deleted.
2351         (disksave_object_finalization_1): Delete code for older objects.
2352         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2353         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2354
2355 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2356
2357         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2358         instead of `make_older_vector'.
2359         (put_char_ccs_code_point): Likewise.
2360         (mark_charset): Mark `cs->decoding_table'.
2361         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2362
2363         * lisp.h (make_older_vector): Deleted.
2364         (make_vector_newer): Deleted.
2365
2366         * config.h.in (HAVE_GGC): Deleted.
2367
2368         * alloc.c (make_older_vector): Deleted.
2369         (make_vector_newer_1): Deleted.
2370         (make_vector_newer): Deleted.
2371
2372 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2373
2374         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2375         (Qideograph_daikanwa_2): New variable.
2376         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2377         (complex_vars_of_mule_charset): Add new coded-charset
2378         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2379         `LEADING_BYTE_DAIKANWA'.
2380
2381         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2382         (LEADING_BYTE_DAIKANWA_1): New macro.
2383         (LEADING_BYTE_DAIKANWA_2): New macro.
2384         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2385
2386 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2387
2388         * mule-charset.c (complex_vars_of_mule_charset): Change
2389         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2390         the second revised version.
2391
2392 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2393
2394         * mule-charset.c (Vcharset_ucs_smp): New variable.
2395         (Vcharset_ucs_sip): New variable.
2396         (Qucs_smp): New variable.
2397         (Qucs_sip): New variable.
2398         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2399         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2400         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2401         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2402         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2403         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2404
2405         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2406         (LEADING_BYTE_UCS_SIP): New macro.
2407         (MIN_CHAR_SMP): New macro.
2408         (MAX_CHAR_SMP): New macro.
2409         (MIN_CHAR_SIP): New macro.
2410         (MAX_CHAR_SIP): New macro.
2411
2412 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2413
2414         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2415         utf-2000.
2416
2417 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2418
2419         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2420         value; don't store value into `encoding_table' of `Lisp_Charset'.
2421         (mark_charset): `encoding_table' was deleted.
2422         (charset_description): Likewise.
2423         (make_charset): Likewise.
2424         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2425         `put_char_ccs_code_point'.
2426
2427         * chartab.h (Fput_char_attribute): New EXFUN.
2428
2429         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2430         is unified with normal symbol space.
2431         (Fget_char_attribute): Likewise.
2432         (Fput_char_attribute): Likewise; behavior of
2433         `put_char_ccs_code_point' is changed.
2434
2435         * char-ucs.h: Include "elhash.h".
2436         (Vchar_attribute_hash_table): New external variable.
2437         (struct Lisp_Charset): Delete `encoding_table'.
2438         (CHARSET_ENCODING_TABLE): New implementation; refer
2439         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2440         `Lisp_Charset'.
2441
2442 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2443
2444         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2445         (cs) == 0.
2446
2447 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2448
2449         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2450         `chinese-big5'.
2451
2452 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2453
2454         * chartab.c (uint8_byte_table_description): New constant.
2455         (uint8-byte-table): Use `uint8_byte_table_description'.
2456         (uint16_byte_table_description): New constant.
2457         (uint16-byte-table): Use `uint16_byte_table_description'.
2458
2459 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2460
2461         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2462         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2463
2464 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2465
2466         * mule-charset.c (Vcharset_ucs_ks): New variable.
2467         (Qucs_ks): New variable.
2468         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2469         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2470
2471         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2472
2473 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2474
2475         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2476         (Fdecode_char): Likewise.
2477
2478         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2479         chartab.h.
2480         (Fdefine_char): Modify for Fdecode_char.
2481         (Ffind_char): Likewise.
2482
2483         * mule-charset.c (Fdecode_char): Add new optional argument
2484         `defined-only'.
2485         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2486
2487 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2488
2489         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2490         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2491         (allocate_coding_system): Initialize initial-charsets of
2492         CODESYS_BIG5 in XEmacs UTF-2000.
2493         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2494         CODESYS_BIG5 in XEmacs UTF-2000.
2495         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2496         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2497
2498         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2499         variables.
2500         (Qideograph_hanziku_{1 .. 12}): Likewise.
2501         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2502         .. 12}'.
2503         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2504         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2505         `ideograph-hanziku-{1 .. 12}'.
2506
2507         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2508         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2509         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2510         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2511         (DECODE_DEFINED_CHAR): New inline function.
2512         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2513
2514 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2515
2516         * mule-charset.c (Vcharset_china3_jef): Renamed from
2517         `Vcharset_japanese_jef_china3'.
2518         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2519         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2520         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2521         (syms_of_mule_charset): Rename `china3-jef' from
2522         `japanese-jef-china3'.
2523         (complex_vars_of_mule_charset): Likewise; rename
2524         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2525
2526         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2527         `LEADING_BYTE_JEF_CHINA3'.
2528         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2529         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2530
2531 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2532
2533         * mule-charset.c (encode_builtin_char_1): Comment out special code
2534         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2535
2536         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2537         (MAX_CHAR_MOJIKYO_0): Comment out.
2538         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2539         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2540         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2541         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2542
2543 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2544
2545         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2546         (Qideograph_cbeta): New variable.
2547         (encode_builtin_char_1): Comment out special code for
2548         coded-charset `mojikyo' and `japanese-jef-china3'.
2549         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2550         (complex_vars_of_mule_charset): Add new coded-charset
2551         `ideograph-cbeta'.
2552
2553         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2554         (MIN_CHAR_CBETA): New macro.
2555         (MAX_CHAR_CBETA): New macro.
2556
2557 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2558
2559         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2560         (LEADING_BYTE_JEF_CHINA3): New macro.
2561         (MIN_CHAR_JEF_CHINA3): New macro.
2562         (MAX_CHAR_JEF_CHINA3): Likewise.
2563         (DECODE_CHAR): Fixed.
2564
2565 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2566
2567         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2568         (Qjapanese_jef_china3): New variable.
2569         (encode_builtin_char_1): Support `japanese-jef-china3'.
2570         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2571         (complex_vars_of_mule_charset): Add new coded-charset
2572         `japanese-jef-china3'.
2573
2574 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2575
2576         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2577         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2578         94^4, 96^3, 96^4, 128^n and 256^n set.
2579         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2580         (map_char_table): Likewise.
2581
2582 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2583
2584         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2585         UTF-2000.
2586
2587 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2588
2589         * chartab.h (get_char_id_table): New inline function.
2590
2591         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2592         function.
2593
2594 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2595
2596         * chartab.h (decode_char_table_range): New prototype in XEmacs
2597         UTF-2000.
2598         (put_char_id_table): New inline function in XEmacs UTF-2000.
2599
2600         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2601         function.
2602         (decode_char_table_range): Delete static declaration in XEmacs
2603         UTF-2000.
2604
2605 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2606
2607         * chartab.c (put_char_id_table): Use `put_char_table'.
2608
2609 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2610
2611         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2612         (map_over_uint16_byte_table): Likewise.
2613         (map_over_byte_table): Likewise.
2614         (map_char_table): Modify for `map_over_uint8_byte_table',
2615         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2616         UTF-2000.
2617
2618 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2619
2620         * chartab.c (struct map_char_table_for_charset_arg): New
2621         structure.
2622         (map_char_table_for_charset_fun): New function.
2623         (map_char_table): Use `map_char_table' for encoding_table of
2624         `range->charset'.
2625
2626 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2627
2628         * chartab.c (map_char_table): Check a character is found in
2629         range->charset instead of non default value is defined in
2630         char-table when range is CHARTAB_RANGE_ROW.
2631
2632 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2633
2634         * chartab.c (map_char_id_table): Deleted.
2635         (Fmap_char_attribute): Use `map_char_table' instead of
2636         `map_char_id_table'.
2637
2638 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2639
2640         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2641         UTF-2000.
2642         (update_syntax_table): Deleted in XEmacs UTF-2000.
2643
2644         * syntax.c (find_defun_start): Use `syntax_table' instead of
2645         `mirror_syntax_table' in XEmacs UTF-2000.
2646         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2647         UTF-2000.
2648         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2649         XEmacs UTF-2000.
2650         (Fmatching_paren): Likewise.
2651         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2652         in XEmacs UTF-2000.
2653         (find_start_of_comment): Likewise.
2654         (find_end_of_comment): Likewise.
2655         (Fforward_comment): Likewise.
2656         (scan_lists): Likewise.
2657         (char_quoted): Likewise.
2658         (Fbackward_prefix_chars): Likewise.
2659         (scan_sexps_forward): Likewise.
2660         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2661         (update_syntax_table): Likewise.
2662
2663         * search.c (skip_chars): Use `syntax_table' instead of
2664         `mirror_syntax_table' in XEmacs UTF-2000.
2665         (wordify): Likewise.
2666         (Freplace_match): Likewise.
2667
2668         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2669         `mirror_syntax_table' in XEmacs UTF-2000.
2670         (WORDCHAR_P_UNSAFE): Likewise.
2671         (re_match_2_internal): Likewise.
2672
2673         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2674         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2675
2676         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2677         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2678
2679         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2680         XEmacs UTF-2000.
2681
2682         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2683         UTF-2000.
2684         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2685         (char_table_description): Delete `mirror_table' in XEmacs
2686         UTF-2000.
2687         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2688         UTF-2000.
2689         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2690         (Fcopy_char_table): Likewise.
2691         (put_char_table): Don't call `update_syntax_table' in XEmacs
2692         UTF-2000.
2693
2694         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2695         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2696         (casify_region_internal): Likewise.
2697
2698         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2699
2700         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2701         `mirror_syntax_table' in XEmacs UTF-2000.
2702
2703         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2704         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2705         (Fexpand_abbrev): Likewise.
2706
2707 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2708
2709         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2710
2711 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2712
2713         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2714         (map_over_uint16_byte_table): Likewise.
2715         (map_over_byte_table): Likewise.
2716         (get_char_id_table): Refer `cit->default_value'.
2717         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2718         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2719         of character-id ranges.
2720         (mark_char_table): Mark `ct->default_value'.
2721         (char_table_description): Add `default_value'.
2722         (fill_char_table): Use `default_value'.
2723         (decode_char_table_range): Decode `nil' as
2724         `CHARTAB_RANGE_DEFAULT'.
2725         (get_char_id_table): Refer `cit->default_value'.
2726         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2727         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2728         temporary hack; check value of char-table is bound or not.
2729         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2730
2731         * chartab.h (struct Lisp_Char_Table): Add new member
2732         `default_value' in XEmacs UTF-2000.
2733         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2734         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2735         UTF-2000.
2736
2737 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2738
2739         * chartab.h (Lisp_Char_ID_Table): Deleted.
2740
2741         * chartab.c (char_table_description): Fix typo.
2742         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2743         `Lisp_Char_ID_Table'.
2744
2745 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2746
2747         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2748         `CHAR_ID_TABLE_P'.
2749
2750         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2751         `CHAR_ID_TABLE_P'.
2752
2753         * chartab.h (XCHAR_ID_TABLE): Deleted.
2754         (XSETCHAR_ID_TABLE): Deleted.
2755         (CHAR_ID_TABLE_P): Deleted.
2756
2757         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2758         `CHAR_ID_TABLE_P'.
2759         (Fget_composite_char): Likewise.
2760         (put_char_table): Likewise.
2761         (add_char_attribute_alist_mapper): Fixed.
2762         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2763         `CHAR_ID_TABLE_P'.
2764         (Fget_char_attribute): Likewise.
2765         (Fget_char_attribute): Likewise.
2766         (Fmap_char_attribute): Likewise.
2767
2768         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2769         `CHAR_ID_TABLE_P'.
2770         (encode_char_1): Likewise.
2771
2772 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2773
2774         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2775         `XCHAR_ID_TABLE'.
2776
2777         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2778         instead of `XCHAR_ID_TABLE'.
2779         (remove_char_ccs): Likewise.
2780
2781         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2782         `XCHAR_ID_TABLE'.
2783         (Fget_composite_char): Likewise.
2784         (Fchar_variants): Likewise.
2785         (put_char_table): Likewise.
2786         (add_char_attribute_alist_mapper): Likewise.
2787         (Fchar_attribute_alist): Likewise.
2788         (Fget_char_attribute): Likewise.
2789         (Fput_char_attribute): Likewise.
2790         (Fmap_char_attribute): Likewise.
2791         (Fmap_char_attribute): Likewise.
2792
2793         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2794         `XCHAR_ID_TABLE'.
2795         (encode_char_1): Likewise.
2796
2797 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2798
2799         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2800         `Lisp_Char_ID_Table'.
2801         (mark_char_id_table): Deleted.
2802         (print_char_id_table): Likewise.
2803         (char_id_table_equal): Likewise.
2804         (char_id_table_hash): Likewise.
2805         (char_id_table_description): Likewise.
2806         (char_id_table): Likewise.
2807         (make_char_id_table): Use `Fmake_char_table' and
2808         `fill_char_table'.
2809         (get_char_id_table): Use `Lisp_Char_Table' instead of
2810         `Lisp_Char_ID_Table'.
2811         (put_char_id_table): Likewise.
2812         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2813         `XCHAR_ID_TABLE'.
2814         (Fremove_char_attribute): Likewise.
2815         (syms_of_chartab): Don't define type `char-id-table'.
2816
2817         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2818         (char_id_table): Likewise.
2819         (GC_CHAR_ID_TABLE_P): Likewise.
2820         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2821         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2822         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2823         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2824         (get_char_id_table): Use `Lisp_Char_Table' instead of
2825         `Lisp_Char_ID_Table'.
2826         (put_char_id_table_0): Likewise.
2827         (put_char_id_table): Likewise.
2828
2829 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2830
2831         * chartab.h: Lisp_Byte_Table related codes are moved from
2832         chartab.h.
2833
2834         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2835
2836 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2837
2838         * chartab.h: Don't include "chartab.h".
2839         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2840         (Lisp_Char_ID_Table): Likewise.
2841         (char_id_table): Likewise.
2842         (XCHAR_ID_TABLE): Likewise.
2843         (XSETCHAR_ID_TABLE): Likewise.
2844         (CHAR_ID_TABLE_P): Likewise.
2845         (GC_CHAR_ID_TABLE_P): Likewise.
2846         (get_char_id_table): Likewise.
2847
2848         * char-ucs.h: Include "chartab.h".
2849         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2850         (Lisp_Char_ID_Table): Likewise.
2851         (char_id_table): Likewise.
2852         (XCHAR_ID_TABLE): Likewise.
2853         (XSETCHAR_ID_TABLE): Likewise.
2854         (CHAR_ID_TABLE_P): Likewise.
2855         (GC_CHAR_ID_TABLE_P): Likewise.
2856         (get_char_id_table): Likewise.
2857
2858 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2859
2860         * chartab.c (copy_uint8_byte_table): New function.
2861         (copy_uint16_byte_table): New function.
2862         (copy_byte_table): New function.
2863         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2864         characters to call.
2865         (map_over_uint16_byte_table): Likewise.
2866         (map_over_byte_table): Likewise.
2867         (get_byte_table): Move prototype to chartab.h.
2868         (put_byte_table): Likewise.
2869         (put_char_id_table_0): Moved to chartab.h.
2870         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2871         (char_table_entry_equal): Likewise.
2872         (char_table_entry_hash): Likewise.
2873         (char_table_entry_description): Likewise.
2874         (char_table_entry): Likewise.
2875         (make_char_table_entry): Likewise.
2876         (copy_char_table_entry): Likewise.
2877         (get_non_ascii_char_table_value): Likewise.
2878         (map_over_charset_ascii): Likewise.
2879         (map_over_charset_control_1): Likewise.
2880         (map_over_charset_row): Likewise.
2881         (map_over_other_charset): Likewise.
2882         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2883         (print_char_table): Likewise.
2884         (char_table_equal): Likewise.
2885         (char_table_hash): Likewise.
2886         (char_table_description): Likewise.
2887         (fill_char_table): Likewise.
2888         (Fcopy_char_table): Likewise.
2889         (get_char_table): Likewise.
2890         (Fget_range_char_table): Likewise.
2891         (put_char_table): Likewise.
2892         (map_char_table): Likewise.
2893         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2894         UTF-2000.
2895
2896 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2897
2898         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2899         `Vauto_fill_chars' in XEmacs UTF-2000.
2900
2901         * chartab.h (get_byte_table): New prototype [moved from
2902         chartab.c].
2903         (put_byte_table): Likewise [moved from chartab.c].
2904         (put_char_id_table_0): New inline function [moved from chartab.c].
2905         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2906         (Lisp_Char_Table_Entry): Likewise.
2907         (char_table_entry): Likewise.
2908         (XCHAR_TABLE_ENTRY): Likewise.
2909         (XSETCHAR_TABLE_ENTRY): Likewise.
2910         (CHAR_TABLE_ENTRYP): Likewise.
2911         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2912         (NUM_ASCII_CHARS): Likewise.
2913         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2914         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2915
2916 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2917
2918         * chartab.c (get_char_id_table): Change interface.
2919         (put_char_id_table_0): New function.
2920         (put_char_id_table): Change interface; new implementation.
2921         (Fget_composite_char): Modify for interface change of
2922         `get_char_id_table'.
2923         (Fchar_variants): Likewise.
2924         (add_char_attribute_alist_mapper): Likewise.
2925         (Fchar_attribute_alist): Likewise.
2926         (Fget_char_attribute): Likewise.
2927         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2928         as same as character as the first argument like `put-char-table';
2929         modify for interface change of `put_char_id_table'.
2930         (Fremove_char_attribute): Modify for interface change of
2931         `put_char_id_table'.
2932
2933 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2934
2935         * text-coding.c: Sync up with XEmacs 21.2.41.
2936         (COMPOSE_ADD_CHAR): Modify for interface change of
2937         `get_char_id_table'.
2938
2939         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2940         change of `put_char_id_table'.
2941         (remove_char_ccs): Likewise.
2942
2943         * chartab.h (put_char_id_table): Change interface.
2944
2945         * char-ucs.h (get_char_id_table): Change interface.
2946         (charset_code_point): Modify for interface change of
2947         `get_char_id_table'.
2948         (encode_char_1): Likewise.
2949
2950 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2951
2952         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2953         argument `ccs'.
2954         (map_over_uint16_byte_table): Likewise.
2955         (map_over_byte_table): Likewise.
2956         (map_char_id_table): Add new argument `range' like
2957         `map_char_table'.
2958         (Fmap_char_attribute): Add new argument `range' like
2959         `Fmap_char_table'.
2960
2961 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2962
2963         * chartab.c (map_over_uint8_byte_table): Change interface of
2964         mapping function to use struct chartab_range instead of Emchar.
2965         (map_over_uint16_byte_table): Likewise.
2966         (map_over_byte_table): Likewise.
2967         (map_char_id_table): Likewise.
2968         (struct slow_map_char_id_table_arg): Deleted.
2969         (slow_map_char_id_table_fun): Deleted.
2970         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2971         function `slow_map_char_table_fun' instead of struct
2972         `slow_map_char_id_table_arg' and function
2973         `slow_map_char_id_table_fun'.
2974
2975 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2976
2977         * mule-charset.c: Move char-it-table related codes to chartab.c.
2978         (Vutf_2000_version): Moved to chartab.c.
2979         (Fdefine_char): Likewise.
2980         (Ffind_char): Likewise.
2981         (syms_of_mule_charset): Move types `uint8-byte-table',
2982         `uint16-byte-table', `byte-table' and `char-id-table' to
2983         chartab.c; move functions `char_attribute_list,
2984         `find_char_attribute_table, `char_attribute_alist,
2985         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2986         `map_char_attribute, `define_char, `find_char, `char_variants and
2987         `get_composite_char to chartab.c; move symbols `=>ucs',
2988         `->decomposition', `compat', `isolated', `initial', `medial',
2989         `final', `vertical', `noBreak', `fraction', `super', `sub',
2990         `circle', `square', `wide', `narrow', `small' and `font' to
2991         chartab.c.
2992         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2993         setting codes for `Vcharacter_composition_table' and
2994         `Vcharacter_variant_table' to chartab.c.
2995         (complex_vars_of_mule_charset): Move setting code for
2996         `Vchar_attribute_hash_table' to chartab.c.
2997
2998         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2999         (make_char_id_table): New prototype.
3000         (put_char_id_table): Likewise.
3001         (Fget_char_attribute): Likewise.
3002
3003         * chartab.c: Move char-id-table related code from mule-charset.c.
3004         (Vutf_2000_version): Moved from mule-charset.c.
3005
3006         * char-ucs.h (Qucs): New external variable.
3007         (put_char_ccs_code_point): New prototype.
3008         (remove_char_ccs): Likewise.
3009
3010 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3011
3012         * mule-charset.c (Vcharset_ucs_jis): New variable.
3013         (Qucs_jis): Likewise.
3014         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3015         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3016
3017         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3018
3019 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3020
3021         * mule-charset.c (map_over_uint8_byte_table): New function.
3022         (map_over_uint16_byte_table): Likewise.
3023         (map_over_byte_table): Likewise.
3024         (map_char_id_table): Likewise.
3025         (slow_map_char_id_table_fun): Likewise.
3026         (Fmap_char_attribute): Likewise.
3027         (syms_of_mule_charset): Add new function `map-char-attribute'.
3028
3029 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3030
3031         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3032         (syms_of_mule_charset): Add new function `find-char'.
3033
3034 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3035
3036         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3037         XEmacs UTF-2000.
3038         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3039         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3040         XEmacs UTF-2000.
3041         (complex_vars_of_mule_charset): Add new coded-charset
3042         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3043         `ideograph-gt-pj-*'.
3044
3045         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3046
3047 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3048
3049         * mule-charset.c (encode_builtin_char_1): Purge codes about
3050         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3051         {MIN|MAX}_CHAR_HEBREW.
3052         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3053         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3054
3055         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3056         (MAX_CHAR_GREEK): Purged.
3057         (MIN_CHAR_CYRILLIC): Purged.
3058         (MAX_CHAR_CYRILLIC): Purged.
3059         (MIN_CHAR_HEBREW): Commented out.
3060         (MAX_CHAR_HEBREW): Likewise.
3061
3062 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3063
3064         * mule-charset.c (Qto_ucs): New variable.
3065         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3066         (Fdefine_char): Likewise.
3067         (syms_of_mule_charset): Add new symbol `=>ucs'.
3068
3069 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3070
3071         * mule-charset.c (Fdecode_char): Fixed.
3072
3073 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3074
3075         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3076         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3077         "tcvn5712-1".
3078
3079 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3080
3081         * mule-charset.c (Vcharset_ucs_big5): New variable.
3082         (Qucs_big5): Likewise.
3083         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3084         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3085
3086         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3087
3088 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3089
3090         * mule-charset.c (decode_builtin_char): Check Big5 code range
3091         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3092
3093 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3094
3095         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3096         (Qchinese_gb12345): Likewise.
3097         (Fdecode_builtin_char): Fixed.
3098         (syms_of_mule_charset): Add `chinese-gb12345'.
3099         (complex_vars_of_mule_charset): Add coded-charset
3100         `chinese-gb12345'.
3101
3102         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3103         (LEADING_BYTE_CHINESE_GB12345): New macro.
3104
3105 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3106
3107         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3108         and `latin-viscii-upper' for `latin-viscii'.
3109
3110 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3111
3112         * mule-charset.c (Fdecode_builtin_char): Comment out
3113         regularization code for ISO-IR GR representation.
3114
3115 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3116
3117         * mule-charset.c (decode_builtin_char): New function; renamed from
3118         `make_builtin_char'; return -1 instead of signal.
3119         (Fdecode_builtin_char): Use `decode_builtin_char'.
3120
3121         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3122         `make_builtin_char'.
3123         (DECODE_CHAR): Use `decode_builtin_char' instead of
3124         `make_builtin_char'; use mapping table of `chinese-big5' for
3125         `chinese-big5-{1,2}'.
3126
3127 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3128
3129         * text-coding.c (char_encode_big5): New function.
3130         (char_finish_big5): Likewise.
3131         (reset_encoding_stream): Use `char_encode_big5' and
3132         `char_finish_big5' for CODESYS_BIG5.
3133         (mule_encode): Don't use `encode_coding_big5'.
3134         (encode_coding_big5): Deleted.
3135
3136 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3137
3138         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3139         0x81- in XEmacs UTF-2000.
3140         (detect_coding_big5): Likewise.
3141
3142 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3143
3144         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3145         generate character-id if the CCS property does not have
3146         corresponding predefined character.
3147         (make_builtin_char): Return -1 if corresponding predefined
3148         character is not found.
3149         (Fdecode_char): Return nil if corresponding character is not
3150         found.
3151         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3152         don't map to builtin ucs space.
3153
3154 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3155
3156         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3157         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3158
3159 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3160
3161         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3162         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3163         (Qideograph_gt): Likewise.
3164         (Qideograph_gt_pj_{1..11}): Likewise.
3165         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3166         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3167         `ideograph-gt-pj-11'.
3168         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3169         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3170         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3171
3172         * char-ucs.h (LEADING_BYTE_GT): New macro.
3173         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3174         (MIN_CHAR_GT): Likewise.
3175         (MAX_CHAR_GT): Likewise.
3176
3177 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3178
3179         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3180         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3181
3182         * doprnt.c (unsigned_int_converters): Add `c'.
3183         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3184
3185         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3186         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3187         `MIN_CHAR_MOJIKYO'.
3188         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3189         (MAX_CHAR_MOJIKYO_0): New macro.
3190         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3191
3192 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3193
3194         * mule-charset.c (Fdefine_char): Delete cemented out code.
3195         (encode_builtin_char_1): Modify for new allocation of builtin
3196         Mojikyo characters.
3197
3198         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3199
3200 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3201
3202         * mule-charset.c (Vcharset_ucs_cns): New variable.
3203         (Qucs_cns): New variable.
3204         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3205         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3206
3207 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3208
3209         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3210
3211 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3212
3213         * search.c (search_buffer): Make `charset_base_code' as
3214         character-id >> 6 to eliminate the corresponding last byte in
3215         UTF-8 representation [I'm not sure it is right thing].
3216         (boyer_moore): Likewise.
3217
3218 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3219
3220         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3221         representation in MULE.
3222
3223 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3224
3225         * text-coding.c (Fmake_coding_system): Use
3226         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3227         `EXTERNAL_PROPERTY_LIST_LOOP'.
3228
3229 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3230
3231         * text-coding.c (decode_output_utf8_partial_char): New function.
3232         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3233
3234 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3235
3236         * text-coding.c (decode_coding_utf8): Output original byte
3237         sequence if it is broken; change order of conditions.
3238
3239         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3240         of conditions.
3241
3242         * mb-multibyte.h (BYTE_ASCII_P):
3243         Use bit ops for char-signedness safety.
3244         (BYTE_C0_P): Use bit ops for char-signedness safety.
3245         (BYTE_C1_P): Use bit ops for char-signedness safety.
3246
3247         * character.h: (XCHAR_OR_CHAR_INT):
3248         Always use inline function.
3249         Remove redundant type checking assert() - XINT will abort quite
3250         nicely.
3251
3252 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3253
3254         * text-coding.c: (Fencode_shift_jis_char):
3255         (Fencode_big5_char):
3256         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3257         Replace 0 with '\0' when working with bytes.
3258         Replace initial "(" with "\(" in docstrings.
3259
3260         (Fmake_coding_system):
3261         When type is ccl and value is vector, register it with a proper
3262         symbol.  And checks whether the given ccl program is valid.
3263         (mule_decode): When calling ccl_driver, if src indicates
3264         NULL pointer, set an empty string instead.
3265         (mule_encode): Likewise.
3266
3267         (detect_eol_type):
3268         (detect_coding_sjis):
3269         (decode_coding_sjis):
3270         (detect_coding_big5):
3271         (decode_coding_big5):
3272         (detect_coding_ucs4):
3273         (decode_coding_ucs4):
3274         (detect_coding_utf8):
3275         (decode_coding_utf8):
3276         (detect_coding_iso2022):
3277         (decode_coding_iso2022):
3278         (decode_coding_no_conversion):
3279         (mule_decode):
3280         Make all detecting and decoding functions take an Extbyte * arg.
3281         (text_encode_generic):
3282         (encode_coding_big5):
3283         (encode_coding_no_conversion):
3284         (mule_encode):
3285         Make all encoding functions take a Bufbyte * arg.
3286         Use size_t instead of unsigned int for memory sizes.
3287         Only cast to unsigned char whenever dereferencing Extbyte *.
3288
3289         (struct lrecord_description fcd_description_1): Use countof.
3290         (complex_vars_of_file_coding):
3291         Use countof instead of sizeof.
3292         Use CHECK_NATNUM instead of CHECK_INT.
3293
3294 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3295
3296         * mule-charset.c (Fget_char_attribute): Add new optional argument
3297         `default-value'.
3298         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3299         (remove_char_ccs): Likewise.
3300
3301 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3302
3303         * text-coding.c (char_encode_shift_jis): New implementation in
3304         UTF-2000.
3305         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3306         ...)'.
3307
3308         * mule-charset.c (Vcharset_chinese_big5): New variable in
3309         UTF-2000.
3310         (Qchinese_big5): New variable in UTF-2000.
3311         (BIG5_SAME_ROW): New macro in UTF-2000.
3312         (make_builtin_char): Use builtin characters of
3313         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3314         characters of `Vcharset_chinese_big5'.
3315         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3316         (complex_vars_of_mule_charset): Add new coded-charset
3317         `chinese-big5' in UTF-2000.
3318
3319         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3320         (Vcharset_chinese_big5): New external variable declaration.
3321         (Vcharset_japanese_jisx0208_1990): Likewise.
3322
3323 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3324
3325         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3326         function.
3327         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3328
3329 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3330
3331         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3332         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3333         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3334         `mojikyo-pj-*'.
3335
3336 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3337
3338         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3339
3340 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3341
3342         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3343         to 0.17.
3344
3345 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3346
3347         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3348         for `CHARSET_BY_ATTRIBUTES'.
3349         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3350         `CHARSET_BY_ATTRIBUTES'.
3351
3352         * text-coding.c (struct decoding_stream): Rename member `CH' to
3353         `CPOS'.
3354         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3355         (decode_coding_sjis): Likewise.
3356         (decode_coding_big5): Likewise.
3357         (decode_coding_ucs4): Likewise.
3358         (decode_coding_utf8): Likewise.
3359         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3360         `CHARSET_BY_ATTRIBUTES'.
3361         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3362         `str->counter'; decode 3, 4 bytes sets.
3363         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3364         sets.
3365         (decode_coding_no_conversion): Use `str->cpos' instead of
3366         `str->ch'.
3367
3368         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3369         (Qmojikyo_2022_1): New variable.
3370         (make_charset): Don't use `CHARSET_TYPE_*'.
3371         (range_charset_code_point): Support coded-charset
3372         `mojikyo-2022-1'.
3373         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3374         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3375         `CHARSET_BY_ATTRIBUTES'.
3376         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3377         `CHARSET_BY_ATTRIBUTES'.
3378         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3379         (complex_vars_of_mule_charset): Add new coded-charset
3380         `mojikyo-2022-1'.
3381
3382         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3383         interface; changed to inline function.
3384
3385         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3386         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3387         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3388         (CHARSET_TYPE_94): Deleted.
3389         (CHARSET_TYPE_94X94): Deleted.
3390         (CHARSET_TYPE_96): Deleted.
3391         (CHARSET_TYPE_96X96): Deleted.
3392         (CHARSET_TYPE_128): Deleted.
3393         (CHARSET_TYPE_128X128): Deleted.
3394         (CHARSET_TYPE_256): Deleted.
3395         (CHARSET_TYPE_256X256): Deleted.
3396         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3397         to inline function.
3398         (DECODE_MOJIKYO_2022): New inline function.
3399         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3400         `Vcharset_mojikyo_2022_1'.
3401
3402 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3403
3404         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3405         instead of `EQ'.
3406         (put_byte_table): Likewise.
3407         (char_id_table_equal): Use `get_byte_table' [new implementation].
3408
3409 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3410
3411         * mule-charset.c: Include <limits.h> in UTF-2000.
3412         (BT_UINT8_MIN): New macro in UTF-2000.
3413         (BT_UINT8_MAX): New macro in UTF-2000.
3414         (BT_UINT8_t): New macro in UTF-2000.
3415         (BT_UINT8_nil): New macro in UTF-2000.
3416         (BT_UINT8_unbound): New macro in UTF-2000.
3417         (INT_UINT8_P): New inline function in UTF-2000.
3418         (UINT8_VALUE_P): New inline function in UTF-2000.
3419         (UINT8_ENCODE): New inline function in UTF-2000.
3420         (UINT8_DECODE): New inline function in UTF-2000.
3421         (mark_uint8_byte_table): New function in UTF-2000.
3422         (print_uint8_byte_table): New function in UTF-2000.
3423         (uint8_byte_table_equal): New function in UTF-2000.
3424         (uint8_byte_table_hash): New function in UTF-2000.
3425         (make_uint8_byte_table): New function in UTF-2000.
3426         (uint8_byte_table_same_value_p): New function in UTF-2000.
3427         (BT_UINT16_MIN): New macro in UTF-2000.
3428         (BT_UINT16_MAX): New macro in UTF-2000.
3429         (BT_UINT16_t): New macro in UTF-2000.
3430         (BT_UINT16_nil): New macro in UTF-2000.
3431         (BT_UINT16_unbound): New macro in UTF-2000.
3432         (INT_UINT16_P): New inline function in UTF-2000.
3433         (UINT16_VALUE_P): New inline function in UTF-2000.
3434         (UINT16_ENCODE): New inline function in UTF-2000.
3435         (UINT16_DECODE): New inline function in UTF-2000.
3436         (UINT8_TO_UINT16): New inline function in UTF-2000.
3437         (mark_uint16_byte_table): New function in UTF-2000.
3438         (print_uint16_byte_table): New function in UTF-2000.
3439         (uint16_byte_table_equal): New function in UTF-2000.
3440         (uint16_byte_table_hash): New function in UTF-2000.
3441         (make_uint16_byte_table): New function in UTF-2000.
3442         (uint16_byte_table_same_value_p): New function in UTF-2000.
3443         (print_byte_table): New function in UTF-2000.
3444         (byte-table): Use `print_byte_table' as printer.
3445         (make_byte_table): Delete second argument `older'.
3446         (byte_table_same_value_p): New function in UTF-2000.
3447         (copy_byte_table): Deleted.
3448         (get_byte_table): New function in UTF-2000.
3449         (put_byte_table): New function in UTF-2000.
3450         (print_char_id_table): New function in UTF-2000.
3451         (char-id-table): Use `print_char_id_table' as printer.
3452         (make_char_id_table): Delete second argument `older'.
3453         (get_char_id_table): Use `get_byte_table [new implementation].
3454         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3455         implementation].
3456         (Ffind_char_attribute_table): New function in UTF-2000.
3457         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3458         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3459         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3460         (syms_of_mule_charset): Add new function
3461         `find-char-attribute-table' in UTF-2000.
3462
3463         * lrecord.h (enum lrecord_type): Add
3464         `lrecord_type_uint16_byte_table' and
3465         `lrecord_type_uint8_byte_table'.
3466
3467         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3468         (Lisp_Uint8_Byte_Table): New type.
3469         (XUINT8_BYTE_TABLE): New macro.
3470         (XSETUINT8_BYTE_TABLE): New macro.
3471         (UINT8_BYTE_TABLE_P): New macro.
3472         (GC_UINT8_BYTE_TABLE_P): New macro.
3473         (struct Lisp_Uint16_Byte_Table): New structure.
3474         (Lisp_Uint16_Byte_Table): New type.
3475         (XUINT16_BYTE_TABLE): New macro.
3476         (XSETUINT16_BYTE_TABLE): New macro.
3477         (UINT16_BYTE_TABLE_P): New macro.
3478         (GC_UINT16_BYTE_TABLE_P): New macro.
3479
3480 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3481
3482         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3483         (Vcharacter_ideographic_strokes_table): Deleted.
3484         (Vcharacter_total_strokes_table): Deleted.
3485         (Vcharacter_morohashi_daikanwa_table): Deleted.
3486         (Vcharacter_decomposition_table): Deleted.
3487         (Qname): Deleted because it is duplicated.
3488         (Qideographic_radical): Deleted.
3489         (Qideographic_strokes): Deleted.
3490         (Qtotal_strokes): Deleted.
3491         (Qmorohashi_daikanwa): Deleted.
3492         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3493         `ideographic-radical', `ideographic-strokes', `total-strokes',
3494         `morohashi-daikanwa' and `->decomposition'.
3495         (Fget_char_attribute): Likewise.
3496         (Fput_char_attribute): Likewise; use `make-vector' instead of
3497         `make_older_vector' for `->decomposition' value.
3498         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3499         `ideograph-daikanwa'.
3500         (syms_of_mule_charset): Delete builtin symbols `name',
3501         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3502         `morohashi-daikanwa'.
3503         (vars_of_mule_charset): Don't setup
3504         `Vcharacter_ideographic_radical_table',
3505         `Vcharacter_ideographic_strokes_table',
3506         `Vcharacter_total_strokes_table',
3507         `Vcharacter_morohashi_daikanwa_table' and
3508         `Vcharacter_decomposition_table'.
3509
3510 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3511
3512         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3513         `make_older_vector', `make_vector_newer_1' and
3514         `make_vector_newer'.
3515
3516         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3517         `make_older_vector' and `make_vector_newer'.
3518
3519         * config.h.in (HAVE_GGC): New macro.
3520
3521 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3522
3523         * mule-charset.c (struct char_attribute_list_closure): New
3524         structure in UTF-2000.
3525         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3526         (Fchar_attribute_list): Likewise.
3527         (Fset_charset_mapping_table): Use `make_vector_newer'.
3528         (Fdecode_builtin_char): New function in UTF-2000.
3529         (syms_of_mule_charset): Add new function `char-attribute-list' and
3530         `decode-builtin-char' in UTF-2000.
3531
3532         * lisp.h (make_vector_newer): New prototype.
3533
3534         * alloc.c (make_vector_newer_1): New function.
3535         (make_vector_newer): New function.
3536
3537 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3538
3539         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3540         50100)'.
3541
3542 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3543
3544         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3545         (Vcharacter_attribute_table): Deleted.
3546         (Vcharacter_name_table): Deleted.
3547         (put_char_attribute): Deleted.
3548         (remove_char_attribute): Deleted.
3549         (struct char_attribute_alist_closure): New structure.
3550         (add_char_attribute_alist_mapper): New function.
3551         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3552         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3553         (Fget_char_attribute): Likewise.
3554         (Fput_char_attribute): Likewise.
3555         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3556         of `remove_char_attribute'.
3557         (Fdefine_char): Return character.
3558         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3559         and `Vcharacter_name_table'.
3560         (complex_vars_of_mule_charset): Likewise
3561         `Vchar_attribute_hash_table'.
3562
3563 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3564
3565         * character.h (CHARC_CHARSET): New macro.
3566         (CHARC_CHARSET_ID): New macro.
3567         (CHARC_CODE_POINT): New macro.
3568         (CHARC_COLUMNS): New macro.
3569         (CHARC_TO_CHAR): New inline function.
3570         (CHARC_EQ): New inline function.
3571         (CHARC_ASCII_EQ): New inline function.
3572         (CHARC_IS_SPACE): New inline function.
3573         (ASCII_TO_CHARC): New inline function.
3574
3575         * char-ucs.h (encode_char_2): Deleted.
3576         (ENCODE_CHAR): Use `encode_char_1' again.
3577         (breakup_char_1): Likewise.
3578         (CHAR_TO_CHARC): New inline function.
3579
3580         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3581
3582 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3583
3584         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3585         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3586         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3587         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3588         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3589         `CHARC_IS_SPACE'.
3590         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3591
3592         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3593         `CHARC_CODE_POINT'.
3594         (x_output_display_block): Use `CHARC_CHARSET' and
3595         `CHARC_ASCII_EQ'.
3596
3597         * redisplay-tty.c (tty_output_display_block): Use
3598         `CHARC_ASCII_EQ'.
3599         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3600
3601         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3602
3603         * insdel.c (find_charsets_in_charc_string): Use
3604         `CHARC_CHARSET_ID'.
3605         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3606         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3607         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3608         (convert_charc_string_into_malloced_string): Likewise.
3609
3610 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3611
3612         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3613         instead of <Emchar_dynarr *> for buf; use
3614         `convert_bufbyte_string_into_charc_dynarr' instead of
3615         `convert_bufbyte_string_into_emchar_dynarr'; use
3616         `find_charsets_in_charc_string' instead of
3617         `find_charsets_in_emchar_string'.
3618
3619         * redisplay.h:
3620         - Include "character.h".
3621         (struct rune): New member `cglyph'; delete member `chr'.
3622
3623         * redisplay.c (redisplay_text_width_charc_string): New function;
3624         delete `redisplay_text_width_emchar_string'.
3625         (rtw_charc_dynarr): New variable; renamed from
3626         `rtw_emchar_dynarr'.
3627         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3628         `rtw_emchar_dynarr'; use
3629         `convert_bufbyte_string_into_charc_dynarr' instead of
3630         `convert_bufbyte_string_into_emchar_dynarr'; use
3631         `redisplay_text_width_charc_string' instead of
3632         `redisplay_text_width_emchar_string'.
3633         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3634         instead of `rtw_emchar_dynarr'; use
3635         `convert_bufbyte_string_into_charc_dynarr' instead of
3636         `convert_bufbyte_string_into_emchar_dynarr'.
3637         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3638         `redisplay_text_width_charc_string' instead of
3639         `redisplay_text_width_emchar_string'.
3640         (create_text_block): Modify for <struct rune> change.
3641         (generate_formatted_string_db): Likewise.
3642         (create_string_text_block): Likewise.
3643         (pixel_to_glyph_translation): Likewise.
3644
3645         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3646         instead of <const Emchar *>.
3647         (x_text_width): Likewise.
3648         (x_output_display_block): Use <Charc_dynarr *> instead
3649         <Emchar_dynarr *>; modify for <structure rune> change.
3650         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3651         *>.
3652
3653         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3654         <const Emchar *>; use `charc_string_displayed_columns' instead of
3655         `emchar_string_displayed_columns'.
3656         (tty_output_display_block): Use <Charc_dynarr *> instead of
3657         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3658         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3659         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3660         `tty_output_emchar_dynarr_dynarr'.
3661         (tty_output_charc_dynarr): New function; delete
3662         `tty_output_charc_dynarr'.
3663
3664         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3665         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3666         <Emchar_dynarr *> for buf; use
3667         `convert_bufbyte_string_into_charc_dynarr' instead of
3668         `convert_bufbyte_string_into_emchar_dynarr'.
3669
3670         * frame.c (title_string_charc_dynarr): New variable; renamed from
3671         `title_string_emchar_dynarr'.
3672         (generate_title_string): Use `title_string_charc_dynarr' instead
3673         of `title_string_emchar_dynarr'; use
3674         `convert_charc_string_into_malloced_string' instead of
3675         `convert_emchar_string_into_malloced_string'.
3676         (init_frame): Use `title_string_charc_dynarr' instead of
3677         `title_string_emchar_dynarr'.
3678
3679         * console.h:
3680         - Include "character.h".
3681         (struct console_methods): Use <const Charc *> instead of <const
3682         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3683         <Emchar_dynarr *> in output_string_method.
3684
3685         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3686         <Emchar_dynarr *>.
3687
3688         * console-stream.c (stream_text_width): Use <const Charc *>
3689         instead of <const Emchar *>.
3690
3691         * character.h (Charc_dynarr): New type.
3692
3693         * char-ucs.h (structure Charc): New structure; define new type
3694         `Charc'.
3695
3696         * char-lb.h (DECODE_CHAR): New inline function.
3697         (encode_char_1): New inline function.
3698         (ENCODE_CHAR): New macro.
3699         (structure Charc): New structure; define new type `Charc'.
3700
3701         * char-1byte.h (Vcharset_control_1): New macro.
3702         (Vcharset_latin_iso8859_1): New macro.
3703         (DECODE_CHAR): New inline function.
3704         (encode_char_1): New inline function.
3705         (ENCODE_CHAR): New macro.
3706         (structure Charc): New structure; define new type `Charc'.
3707
3708         * insdel.c (find_charsets_in_charc_string): New function; delete
3709         `find_charsets_in_emchar_string'.
3710         (charc_string_displayed_columns): New function; delete
3711         `emchar_string_displayed_columns'.
3712         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3713         `convert_bufbyte_string_into_emchar_dynarr'.
3714         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3715         `convert_charc_string_into_bufbyte_dynarr'.
3716         (convert_charc_string_into_malloced_string): New function; delete
3717         `convert_charc_string_into_malloced_string'.
3718
3719         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3720         `find_charsets_in_emchar_string'.
3721         (charc_string_displayed_columns): New prototype; delete
3722         `emchar_string_displayed_columns'.
3723         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3724         `convert_charc_string_into_bufbyte_dynarr'.
3725         (convert_charc_string_into_malloced_string): New prototype; delete
3726         `convert_charc_string_into_malloced_string'.
3727
3728 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3729
3730         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3731
3732 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3733
3734         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3735
3736         * char-ucs.h: Use <short> for <Charset_ID>.
3737
3738         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3739         <Charset_ID>.
3740
3741 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3742
3743         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3744         to 0.16.
3745
3746 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3747
3748         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3749         variable.
3750         (Qmorohashi_daikanwa): New variable.
3751         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3752         for `morohashi-daikanwa' attribute.
3753         (Fget_char_attribute): Likewise.
3754         (Fput_char_attribute): Likewise.
3755         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3756         has the same value of `ideograph-daikanwa'.
3757         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3758         (vars_of_mule_charset): Setup
3759         `Vcharacter_morohashi_daikanwa_table'.
3760
3761 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3762
3763         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3764         attributes.
3765         (add_charset_to_list_mapper): Add `key' instead of
3766         `XCHARSET_NAME (value)' to return aliases.
3767
3768 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3769
3770         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3771         variable.
3772         (Vcharacter_ideographic_strokes_table): New variable.
3773         (Qideographic_radical): New variable.
3774         (Qideographic_strokes): New variable.
3775         (Fchar_attribute_alist): Use
3776         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3777         attribute; use `Vcharacter_ideographic_strokes_table' for
3778         `ideographic-strokes' attribute.
3779         (Fget_char_attribute): Likewise.
3780         (Fput_char_attribute): Likewise.
3781         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3782         `ideographic-strokes'.
3783         (vars_of_mule_charset): Setup
3784         `Vcharacter_ideographic_radical_table' and
3785         `Vcharacter_ideographic_strokes_table'.
3786
3787 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3788
3789         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3790         (Qtotal_strokes): New variable.
3791         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3792         `total-strokes' attribute.
3793         (Fget_char_attribute): Likewise.
3794         (Fput_char_attribute): Likewise.
3795         (syms_of_mule_charset): Add new symbol `total-strokes'.
3796         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3797
3798 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3799
3800         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3801         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3802         are found.
3803         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3804         `->decomposition' attribute.
3805         (Fput_char_attribute): Likewise.
3806         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3807
3808 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3809
3810         * mule-charset.c (decoding_table_check_elements): New function.
3811         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3812
3813 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3814
3815         * mule-charset.c (Fset_charset_mapping_table): Use
3816         `put_char_ccs_code_point'.
3817
3818 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3819
3820         * mule-charset.c (decoding_table_put_char): New inline function.
3821         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3822
3823 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3824
3825         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3826         (XCHARSET_BYTE_SIZE): New macro.
3827         (decoding_table_remove_char): New inline function.
3828         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3829         `decoding_table_remove_char'.
3830         (remove_char_ccs): Use `decoding_table_remove_char'.
3831         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3832
3833 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3834
3835         * mule-charset.c (Vcharacter_name_table): New variable.
3836         (Qname): New variable.
3837         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3838         attribute.
3839         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3840         `Vcharacter_name_table' for `name' attribute.
3841         (Fremove_char_attribute): Use function `remove_char_ccs'.
3842         (put_char_ccs_code_point): New function.
3843         (remove_char_ccs): New function.
3844         (syms_of_mule_charset): Add new symbol `name'.
3845         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3846
3847 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3848
3849         * mule-charset.c (make_byte_table): Add new argument `older'.
3850         (make_char_id_table): Likewise.
3851         (copy_char_id_table): Comment out because it is not used.
3852         (put_char_id_table): Modify for `make_byte_table'.
3853         (Fput_char_attribute): Make encoding_table as older object;
3854         inherit older bit of `Vcharacter_composition_table'.
3855         (mark_charset): Don't mark `cs->encoding_table'.
3856         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3857         normal object; make `Vcharacter_composition_table' as an older
3858         object; delete staticpro for `Vcharacter_composition_table'; make
3859         `Vcharacter_variant_table' as a normal object.
3860
3861         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3862         (mark_object): Don't check older object in UTF-2000.
3863
3864         * lrecord.h (struct lrecord_header): Add new member `older' in
3865         UTF-2000.
3866         (set_lheader_implementation): Setup `SLI_header->older' in
3867         UTF-2000.
3868         (set_lheader_older_implementation): New macro in UTF-2000.
3869         (OLDER_RECORD_P): New macro in UTF-2000.
3870         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3871         (alloc_older_lcrecord): New prototype in UTF-2000.
3872         (alloc_older_lcrecord_type): New macro in UTF-2000.
3873
3874 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3875
3876         * mule-charset.c (byte_table_description): Use
3877         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3878         (char_id_table_description): Delete bogus `, 1'.
3879         (Fget_char_attribute): Refer encoding_table of each coded-charset
3880         to get value of coded-charset attribute of a character.
3881         (Fput_char_attribute): Use `make_older_vector' instead of
3882         `make_vector'; use encoding_table of each coded-charset to store
3883         value of coded-charset attribute of a character.
3884         (Fremove_char_attribute): Use encoding_table of each coded-charset
3885         to store value of coded-charset attribute of a character.
3886         (mark_charset): Mark `cs->encoding_table'; don't mark
3887         `cs->decoding_table'.
3888         (charset_description): Add description of new member
3889         `encoding_table'.
3890         (make_charset): Initialize `encoding_table'.
3891
3892         * char-ucs.h (struct Lisp_Charset): Add new member
3893         `encoding_table'.
3894         (CHARSET_ENCODING_TABLE): New macro.
3895         (XCHARSET_ENCODING_TABLE): New macro.
3896         (charset_code_point): New implementation.
3897         (encode_char_1): Likewise.
3898
3899         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3900         (disksave_object_finalization_1): Call finalizers of
3901         `all_older_lcrecords' in UTF-2000.
3902         (make_older_vector): New function in UTF-2000.
3903         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3904         UTF-2000.
3905
3906         * lisp.h (make_older_vector): New prototype in UTF-2000.
3907
3908 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3909
3910         * lrecord.h (enum lrecord_type): Rename
3911         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3912
3913         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3914         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3915         `get_char_code_table'.
3916
3917         * mule-charset.c (mark_char_id_table): Renamed from
3918         `mark_char_code_table'.
3919         (char_id_table_equal): Renamed from `char_code_table_equal'.
3920         (char_id_table_hash): Renamed from `char_code_table_hash'.
3921         (make_char_id_table): Renamed from `make_char_code_table'.
3922         (copy_char_id_table): Renamed from `copy_char_code_table'.
3923         (get_char_id_table): Renamed from `get_char_code_table'.
3924         (put_char_id_table): Renamed from `put_char_code_table'.
3925         (to_char_id): Renamed from `to_char_code'.
3926
3927         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3928         `Lisp_Char_Code_Table'.
3929         (char_id_table): Renamed from `char_code_table'.
3930         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3931         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3932         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3933         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3934         (get_char_id_table): Renamed from `get_char_code_table'.
3935
3936 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3937
3938         * lrecord.h (enum lrecord_type): Rename
3939         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3940
3941         * mule-charset.c (mark_byte_table): Renamed from
3942         `mark_char_byte_table'.
3943         (byte_table_equal): Renamed from `char_byte_table_equal'.
3944         (byte_table_hash): Renamed from `byte_table_hash'.
3945         (make_byte_table): Renamed from `make_byte_table'.
3946         (copy_byte_table): Renamed from `copy_char_byte_table'.
3947
3948         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3949         `Lisp_Char_Byte_Table'.
3950         (byte_table): Renamed from `char_byte_table'.
3951         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3952         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3953         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3954         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3955
3956 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3957
3958         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3959         (dfc_convert_to_internal_format): Likewise.
3960         
3961         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3962         * text-coding.c (Fcoding_system_alias_p): New function.
3963         * text-coding.c (Fcoding_system_aliasee): New function.
3964         * text-coding.c (append_suffix_to_symbol): New function.
3965         * text-coding.c (dangling_coding_system_alias_p): New function.
3966         * text-coding.c (Ffind_coding_system):
3967         * text-coding.c (Fcopy_coding_system):
3968         * text-coding.c (encode_coding_no_conversion):
3969         * text-coding.c (syms_of_file_coding):
3970         * text-coding.c (vars_of_file_coding):
3971         Rewrite coding system alias code.
3972         Allow nested aliases, like symbolic links.
3973         Allow redefinition of coding system aliases.
3974         Prevent existence of dangling coding system aliases.
3975         Eliminate convert_to_external_format.
3976         Eliminate convert_to_internal_format.
3977         
3978         * text-coding.c: Change enum eol_type to eol_type_t.
3979
3980 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3981
3982         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3983         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3984
3985         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3986         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3987
3988 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3989
3990         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3991         `ideograph-daikanwa'.
3992
3993         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3994         (Vcharset_ucs_bmp): Likewise.
3995         (Vcharset_mojikyo): Add new extern variable definition.
3996         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3997         (Vcharset_latin_iso8859_3): Likewise.
3998         (Vcharset_latin_iso8859_4): Likewise.
3999         (Vcharset_latin_iso8859_9): Likewise.
4000         (Vcharset_latin_viscii_lower): Likewise.
4001         (Vcharset_latin_viscii_upper): Likewise.
4002         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4003         `mojikyo' code-point is used to decode.
4004         (encode_char_2): New function [to convert `mojikyo' code-point to
4005         Mojikyo font encoding].
4006         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4007         (breakup_char_1): Likewise.
4008         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4009
4010 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4011
4012         * text-coding.c (Fmake_coding_system): Add document about
4013         `disable-composition' property.
4014
4015 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4016
4017         * text-coding.c (Qdisable_composition): New variable; delete
4018         `Qcomposite'.
4019         (Fmake_coding_system): Add new property `disable-composite';
4020         delete property `composite'.
4021         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4022         instead of `!CODING_SYSTEM_COMPOSITE'.
4023         (syms_of_file_coding): Add new symbol `disable-composition';
4024         delete symbol `composite'.
4025
4026         * file-coding.h (struct Lisp_Coding_System): Add
4027         `disable_composition'; delete `enable_composition'.
4028         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4029         `CODING_SYSTEM_COMPOSITE'.
4030         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4031         `XCODING_SYSTEM_COMPOSITE'.
4032
4033 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4034
4035         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4036         to 0.15.
4037
4038 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4039
4040         * text-coding.c (Qcomposite): New variable.
4041         (Fmake_coding_system): Add new property `composite'.
4042         (struct decoding_stream): Add `combined_char_count',
4043         `combined_chars' and `combining_table' in UTF-2000.
4044         (COMPOSE_FLUSH_CHARS): New macro.
4045         (COMPOSE_ADD_CHAR): New macro.
4046         (reset_decoding_stream): Reset `str->combined_char_count' and
4047         `str->combining_table' in UTF-2000.
4048         (decode_coding_iso2022): Modify for character-decomposition.
4049         (syms_of_file_coding): Add new symbol `composite'.
4050
4051 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4052
4053         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4054         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4055         of `Vcharacter_composition_table' if `->decomposition' property
4056         has only 1 element.
4057         (Qlatin_tcvn5712): New variable.
4058         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4059         (complex_vars_of_mule_charset): Add new coded-charset
4060         `latin-tcvn5712'.
4061
4062         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4063
4064 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4065
4066         * file-coding.h (struct Lisp_Coding_System): Add
4067         `enable_composition'.
4068         (CODING_SYSTEM_COMPOSITE): New macro.
4069         (XCODING_SYSTEM_COMPOSITE): New macro.
4070
4071 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4072
4073         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4074
4075 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4076
4077         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4078         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4079
4080 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4081
4082         * mule-charset.c (Vcharset_mojikyo): New variable.
4083         (Fdefine_char): Don't use coded-charset which does not have
4084         non-builtin character range to allocate character-id.
4085         (Qmojikyo): New variable.
4086         (syms_of_mule_charset): Add new symbol `mojikyo'.
4087         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4088
4089         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4090         (LEADING_BYTE_MOJIKYO): New macro.
4091         (MIN_CHAR_MOJIKYO): New macro.
4092         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4093         (MAX_CHAR_MOJIKYO): New macro.
4094
4095 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4096
4097         * mule-charset.c (remove_char_attribute): Fixed.
4098
4099 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4100
4101         * mule-charset.c (remove_char_attribute): New function.
4102         (Fremove_char_attribute): New function.
4103         (encode_builtin_char_1): Comment out builtin-support for
4104         greek-iso8859-7 and cyrillic-iso8859-5.
4105         (Fdecode_char): Check `code' is an integer.
4106         (syms_of_mule_charset): Add `remove-char-attribute'.
4107         (MIN_CHAR_GREEK): Deleted.
4108         (MAX_CHAR_GREEK): Likewise.
4109         (MIN_CHAR_CYRILLIC): Likewise.
4110         (MAX_CHAR_CYRILLIC): Likewise.
4111         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4112         MAX_CHAR_GREEK for `greek-iso8859-7'.
4113
4114         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4115         (MAX_CHAR_GREEK): Likewise.
4116         (MIN_CHAR_CYRILLIC): Likewise.
4117         (MAX_CHAR_CYRILLIC): Likewise.
4118
4119 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4120
4121         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4122         format is used without `ucs' property.
4123         (Fdecode_char): Fix problem with GR representation.
4124         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4125         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4126
4127 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4128
4129         * mule-charset.c (make_builtin_char): New function.
4130         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4131         (Fset_charset_mapping_table): Modify for new representation of
4132         code-point.
4133         (Fdecode_char): New function.
4134         (syms_of_mule_charset): Add new builtin function `decode-char' in
4135         UTF-2000.
4136
4137         * char-ucs.h (make_builtin_char): New prototype.
4138         (DECODE_CHAR): New inline function.
4139         (MAKE_CHAR): Use `DECODE_CHAR'.
4140
4141 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4142
4143         * text-coding.c (parse_charset_conversion_specs): Use
4144         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4145         `XCHARSET_TYPE'.
4146         (iso2022_designate): Likewise.
4147
4148         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4149         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4150
4151         * mule-charset.c (Vcharset_ucs): New variable.
4152         (print_charset): Change design; use `CHARSET_CHARS' and
4153         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4154         (make_charset): Change signature to specify `chars' and
4155         `dimension' instead of `type'.
4156         (range_charset_code_point): Modify for 256^n-set.
4157         (encode_builtin_char_1): Encode as `ucs' in default.
4158         (Fmake_charset): Modify for `make_charset'.
4159         (Fmake_reverse_direction_charset): Likewise.
4160         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4161         UTF-2000.
4162         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4163         for `make_charset'.
4164
4165         * char-ucs.h (Vcharset_ucs): New variable.
4166         (LEADING_BYTE_UCS): New macro.
4167         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4168         and `chars' to `unsigned short' from `unsigned int'.
4169         (CHARSET_TYPE): Deleted.
4170         (XCHARSET_TYPE): Deleted.
4171
4172 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4173
4174         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4175
4176         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4177         (ENCODE_CHAR): New macro.
4178
4179 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4180
4181         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4182         to 0.14 (Kawachi-Katakami).
4183
4184 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4185
4186         * text-coding.c (char_encode_shift_jis): Modify for
4187         `charset_code_point'.
4188         (char_encode_iso2022): Likewise.
4189
4190         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4191         (integer) instead of list of <Lisp_Object>s (integers) as the
4192         format of code-point of a coded-charset.
4193         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4194         (encode_builtin_char_1): New function; delete
4195         `split_builtin_char'.
4196         (charset_code_point): Return <int> instead of <Lisp_Object>.
4197         (Fsplit_char): Don't use `SPLIT_CHAR'.
4198
4199         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4200         prototype for `split_builtin_char'.
4201         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4202         (charset_code_point): Likewise.
4203         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4204         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4205
4206 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4207
4208         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4209         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4210
4211 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4212
4213         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4214
4215         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4216         (MAX_CHAR_OBS_94x94): Deleted.
4217
4218 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4219
4220         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4221
4222         * char-ucs.h (MAX_CHAR_BMP): New macro.
4223
4224 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4225
4226         * text-coding.c: Sync with r21-2-24.
4227
4228 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4229
4230         * file-coding.c: Modify for UTF-2000.
4231
4232 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4233
4234         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4235         to 0.13 (Takaida).
4236
4237 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4238
4239         * mule-charset.c (split_builtin_char): Delete builtin support for
4240         `katakana-jisx0201'.
4241         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4242         BMP area in builtin representation.
4243
4244         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4245         `Vcharset_katakana_jisx0201'.
4246
4247 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4248
4249         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4250         (Qisolated): New variable.
4251         (Qinitial): New variable.
4252         (Qmedial): New variable.
4253         (Qfinal): New variable.
4254         (Qvertical): New variable.
4255         (Qsmall): New variable.
4256         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4257         `Qvertical' and `Qsmall'.
4258         (Qmojikyo_pj_[1 .. 21]): New variable.
4259         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4260         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4261         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4262         .. 21]'.
4263
4264 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4265
4266         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4267         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4268         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4269
4270 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4271
4272         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4273         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4274         BMP.
4275         (Qjapanese_jisx0208_1990): New variable.
4276         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4277         (complex_vars_of_mule_charset): Add new coded-charset
4278         `japanese-jisx0208-1990'.
4279
4280         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4281         (MIN_CHAR_JIS_X0208_1990): New macro.
4282         (MAX_CHAR_JIS_X0208_1990): New macro.
4283
4284 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4285
4286         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4287         coded-charset is not found.
4288
4289 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4290
4291         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4292         (Fdefine_char): Use `Fmake_char'.
4293
4294 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4295
4296         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4297         (Vcharset_hiragana_jisx0208): Deleted.
4298         (Vcharset_katakana_jisx0208): Deleted.
4299         (Qideograph_daikanwa): New variable.
4300         (Qhiragana_jisx0208): Deleted.
4301         (Qkatakana_jisx0208): Deleted.
4302         (split_builtin_char): Split `ideograph-daikanwa'.
4303         (Fsplit_char): New implementation for UTF-2000.
4304         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4305         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4306         (complex_vars_of_mule_charset): Add new coded-charset
4307         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4308         `katakana-jisx0208'.
4309
4310         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4311         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4312         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4313         (MIN_CHAR_DAIKANWA): New macro.
4314         (MAX_CHAR_DAIKANWA): New macro.
4315
4316 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4317
4318         * data.c (Fstring_to_number): Don't recognize floating point if
4319         base is not 10.
4320
4321 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4322
4323         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4324
4325 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4326
4327         * mule-charset.c (Qsquare): New variable.
4328         (to_char_code): Add `Qsquare'.
4329         (syms_of_mule_charset): Add new symbol `square'.
4330
4331 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4332
4333         * mule-charset.c (Qcircle): New variable.
4334         (to_char_code): Add `Qcircle'.
4335         (syms_of_mule_charset): Add new symbol `circle'.
4336
4337 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4338
4339         * mule-charset.c (Qfont): New variable.
4340         (to_char_code): Add `Qfont'.
4341         (syms_of_mule_charset): Add new symbol `font'.
4342
4343 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4344
4345         * mule-charset.c (Qsub): New variable.
4346         (to_char_code): Add `Qsub'.
4347         (syms_of_mule_charset): Add new symbol `sub'.
4348
4349 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4350
4351         * mule-charset.c (Fput_char_attribute): Convert each element of
4352         VALUE to GL position if ATTRIBUTE is a GR-set,
4353
4354 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4355
4356         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4357         coded-charset is a GR-set.
4358
4359 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4360
4361         * mule-charset.c (Fput_char_attribute): Check each element of
4362         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4363
4364 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4365
4366         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4367         UTF-2000.
4368         (Qethiopic_ucs): New variable in UTF-2000.
4369         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4370         (complex_vars_of_mule_charset): Add new coded-charset
4371         `ethiopic-ucs' in UTF-2000.
4372
4373         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4374         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4375         9)'.
4376         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4377         10)'.
4378         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4379
4380 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4381
4382         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4383         `ascii'.
4384
4385 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4386
4387         * mule-charset.c (Vcharacter_variant_table): New variable.
4388         (Q_ucs): New variable.
4389         (Fchar_variants): New function.
4390         (Fput_char_attribute): Register `->ucs' value to
4391         `Vcharacter_variant_table'.
4392         (syms_of_mule_charset): Add new function `char-variants' and new
4393         symbol `->ucs'.
4394         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4395
4396 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4397
4398         * mule-charset.c (get_char_code_table): Allow negative character
4399         code.
4400         (put_char_code_table): Likewise.
4401         (Vcharacter_composition_table): New variable.
4402         (Q_decomposition): New variable.
4403         (Qwide): New variable.
4404         (Qnarrow): New variable.
4405         (Qcompat): New variable.
4406         (QnoBreak): New variable.
4407         (Qsuper): New variable.
4408         (Qfraction): New variable.
4409         (to_char_code): New function.
4410         (Fget_composite_char): New function.
4411         (Fput_char_attribute): Register `->decomposition' value to
4412         `Vcharacter_composition_table'.
4413         (syms_of_mule_charset): Add new function `get-composite-char', new
4414         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4415         `super' and `fraction'.
4416         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4417
4418 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4419
4420         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4421         character; copy the return value.
4422
4423 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4424
4425         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4426
4427         * mule-charset.c (range_charset_code_point): Must use make_int.
4428         (split_builtin_char): New function.
4429
4430 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4431
4432         * mule-charset.c (char_byte_table): Change name from
4433         "char-code-table" to "char-byte-table".
4434         (mark_char_code_table): New function.
4435         (char_code_table_equal): New function.
4436         (char_code_table_hash): New function.
4437         (char_code_table_description): New constant.
4438         (char_code_table): New type.
4439         (make_char_code_table): New function.
4440         (copy_char_code_table): New function.
4441         (get_char_code_table): Modify for `char_code_table' type.
4442         (put_char_code_table): Likewise.
4443         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4444         (Kashiwara).
4445
4446         * char-ucs.h (char_code_table): New type.
4447         (XCHAR_CODE_TABLE): New macro.
4448         (XSETCHAR_CODE_TABLE): New macro.
4449         (CHAR_CODE_TABLE_P): New macro.
4450         (GC_CHAR_CODE_TABLE_P): New macro.
4451         (struct Lisp_Char_Code_Table): New structure.
4452
4453 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4454
4455         * mule-charset.c (Fmake_charset): Setup byte_offset for
4456         {94|96}^n-set.
4457
4458 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4459
4460         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4461         character.
4462
4463 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4464
4465         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4466         is found.
4467
4468 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4469
4470         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4471         charset, it is regarded as a charset.
4472         (put_char_attribute): New function in UTF-2000.
4473         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4474         charset, mapping-table of the charset is modified.
4475         (Fdefine_char): New function in UTF-2000.
4476         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4477         `Fput_char_attribute'.
4478         (syms_of_mule_charset): Add new function `define-char' and new
4479         symbol `ucs' in UTF-2000.
4480         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4481
4482 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4483
4484         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4485         non-UTF-2000 configuration.
4486
4487 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4488
4489         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4490         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4491
4492         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4493         deleted.
4494         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4495         (Fset_charset_mapping_table): Likewise.
4496
4497         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4498         (CHARSET_ENCODING_TABLE): Delete.
4499         (XCHARSET_ENCODING_TABLE): Delete.
4500         (charset_code_point): New interface.
4501
4502 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4503
4504         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4505         instead of `charset_get_byte1' and `charset_get_byte2'.
4506
4507         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4508         (charset_get_byte2): Deleted.
4509
4510 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4511
4512         * char-ucs.h (SPLIT_CHAR): New inline function.
4513         (breakup_char_1): Use `SPLIT_CHAR'.
4514
4515         * mule-charset.c (range_charset_code_point): New function.
4516         (charset_code_point): New function.
4517
4518         * char-ucs.h (range_charset_code_point): New interface.
4519         (breakup_char_1): Use `range_charset_code_point'.
4520
4521 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4522
4523         * mule-charset.c (Fmake_charset): Delete unused local variable
4524         `code_offset'.
4525
4526         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4527         (breakup_char_1): Find a charset and code-point in
4528         `Vcharacter_attribute_table'.
4529
4530 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4531
4532         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4533         to 0.10 (Yao).
4534
4535 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4536
4537         * mule-charset.c (Vcharacter_attribute_table): New variable.
4538         (Fchar_attribute_alist): New function.
4539         (Fget_char_attribute): New function.
4540         (Fput_char_attribute): New function.
4541         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4542         too.
4543         (syms_of_mule_charset): Add new function `char-attribute-alist',
4544         `get-char-attribute' and `put-char-attribute'.
4545         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4546
4547 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4548
4549         * mule-charset.c (Fmake_charset): Just use
4550         `get_unallocated_leading_byte'.
4551
4552         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4553         sets; don't use final-byte based number for private sets.
4554
4555 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4556
4557         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4558         integer.
4559
4560 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4561
4562         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4563         to 0.9.
4564
4565 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4566
4567         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4568         of `CHAR_LEADING_BYTE' in UTF-2000.
4569
4570         * insdel.c (find_charsets_in_bufbyte_string): Use
4571         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4572         (find_charsets_in_emchar_string): Likewise.
4573
4574         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4575         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4576
4577         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4578         (CHAR_CHARSET_ID): New macro.
4579
4580 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4581
4582         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4583         charset-id - MIN_LEADING_BYTE.
4584         (put_char_table): Likewise.
4585
4586 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4587
4588         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4589         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4590         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4591         (CHARSET_ID_OFFSET): New macro.
4592         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4593         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4594         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4595         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4596         4).
4597         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4598         5).
4599         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4600         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4601         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4602         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4603         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4604
4605 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4606
4607         * mule-charset.c (next_allocated_leading_byte): New variable in
4608         UTF-2000.
4609         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4610         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4611         (get_unallocated_leading_byte): Simply use
4612         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4613         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4614         UTF-2000.
4615
4616         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4617         (MAX_LEADING_BYTE_PRIVATE): New macro.
4618         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4619         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4620
4621 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4622
4623         * mule-charset.c (Fmake_charset): Allocate final-byte based
4624         charset-id for 94-set, 96-set and 94x94-set.
4625
4626 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4627
4628         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4629         ambiguous `else'.
4630         (Fmake_charset): Likewise.
4631         (complex_vars_of_mule_charset): Modify the font registry of
4632         `ucs-bmp' not to match `Ethiopic-Unicode'.
4633
4634 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4635
4636         * mule-charset.c (complex_vars_of_mule_charset): Add font
4637         registory of `ucs-bmp'.
4638
4639 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4640
4641         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4642         coded-charsets in `default-coded-charset-priority-list' when
4643         breaking up a character.
4644
4645         * mule-charset.c (Vcharset_latin_viscii): New variable.
4646         (Qlatin_viscii): New variable.
4647         (make_charset): Don't use `decoding_table'.
4648         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4649         byte_offset.
4650         (Fset_charset_mapping_table): New implementation.
4651         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4652         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4653         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4654         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4655         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4656         charset `latin_viscii'.
4657
4658         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4659         (CHARSET_TYPE_94X94): Change to 1 from 2.
4660         (CHARSET_TYPE_96): Change to 2 from 1.
4661         (CHARSET_TYPE_128): New macro.
4662         (CHARSET_TYPE_128X128): Change to 5 from 4.
4663         (CHARSET_TYPE_256): New macro.
4664         (CHARSET_TYPE_256X256): Change to 7 from 5.
4665         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4666
4667 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4668
4669         * text-coding.c (char_encode_shift_jis): Refer
4670         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4671         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4672
4673         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4674         (char_byte_table_equal): New function in UTF-2000.
4675         (char_byte_table_hash): New function in UTF-2000.
4676         (char_byte_table_description): New constant in UTF-2000.
4677         (char_byte_table): New type in UTF-2000.
4678         (make_char_byte_table): New function in UTF-2000.
4679         (copy_char_byte_table): New function in UTF-2000.
4680         (make_char_code_table): New macro in UTF-2000.
4681         (get_char_code_table): New function in UTF-2000.
4682         (put_char_code_table): New function in UTF-2000.
4683         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4684         (charset_description): Add setting in UTF-2000.
4685         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4686         `CHARSET_TO_BYTE1_TABLE(cs)'.
4687         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4688         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4689         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4690         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4691         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4692         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4693         `CHARSET_TO_BYTE2_TABLE(cs)'.
4694
4695         * char-ucs.h (char_byte_table): New type.
4696         (XCHAR_BYTE_TABLE): New macro.
4697         (XSETCHAR_BYTE_TABLE): New macro.
4698         (CHAR_BYTE_TABLE_P): New macro.
4699         (GC_CHAR_BYTE_TABLE_P): New macro.
4700         (struct Lisp_Char_Byte_Table): New structure.
4701         (get_char_code_table): New interface.
4702         (Emchar_to_byte_table): Deleted.
4703         (get_byte_from_character_table): Deleted.
4704         (struct Lisp_Charset): Add `encoding_table'; delete
4705         `to_byte1_table' and `to_byte2_table'.
4706         (CHARSET_ENCODING_TABLE): New macro.
4707         (CHARSET_TO_BYTE1_TABLE): Deleted.
4708         (CHARSET_TO_BYTE2_TABLE): Deleted.
4709         (XCHARSET_ENCODING_TABLE): New macro.
4710         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4711         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4712
4713 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4714
4715         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4716         `vietnamese-viscii-*'.
4717
4718 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4719
4720         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4721         (Qvietnamese_viscii_upper): New variable.
4722         (Fdefine_charset_alias): New function.
4723         (syms_of_mule_charset): Add new function `define-charset-alias'.
4724         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4725         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4726         `latin-viscii-*'.
4727
4728 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4729
4730         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4731         (MAX_CHAR_OBS_94x94): New macro.
4732         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4733         for 94x94 sets.
4734
4735         * mule-charset.c (put_byte_from_character_table): Change unit size
4736         from 128 to 256.
4737         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4738         not defined.
4739         (Fmake_reverse_direction_charset): Modify dummy argument of
4740         `make_charset' for non-UTF-2000 environment.
4741
4742 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4743
4744         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4745
4746         * mule-charset.c (destroy_byte_from_character_table): New macro.
4747         (latin_jisx0201_to_ucs): Deleted.
4748         (latin_iso8859_2_to_ucs): Deleted.
4749         (latin_iso8859_3_to_ucs): Deleted.
4750         (latin_iso8859_4_to_ucs): Deleted.
4751         (latin_iso8859_9_to_ucs): Deleted.
4752         (latin_viscii_lower_to_ucs): Deleted.
4753         (latin_viscii_upper_to_ucs): Deleted.
4754         (mark_charset): Mark `cs->decoding_table'.
4755         (Fcharset_mapping_table): Fix DOC-string.
4756         (Fset_charset_mapping_table): New function.
4757         (syms_of_mule_charset): Add nwe function
4758         `set-charset-mapping-table'.
4759         (complex_vars_of_mule_charset): Don't setup and use
4760         `latin_*_to_ucs'.
4761
4762 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4763
4764         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4765         charset.
4766
4767 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4768
4769         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4770         (Vcharset_katakana_jisx0208): New variable.
4771         (Qhiragana_jisx0208): New variable.
4772         (Qkatakana_jisx0208): New variable.
4773         (make_charset): Add new argument `byte_offset'.
4774         (charset_get_byte1): Modify for new coded-charset definition; use
4775         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4776         `XCHARSET_BYTE_OFFSET'.
4777         (Fmake_charset): Modify for `make_charset'.
4778         (Fmake_reverse_direction_charset): Likewise.
4779         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4780         `katakana-jisx0208'.
4781         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4782         `.'  in font registry of charset `katakana-jisx0201',
4783         `latin-jisx0201', `vietnamese-viscii-lower' and
4784         `vietnamese-viscii-upper'; modify DOC-string of charset
4785         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4786         registry of charset `japanese-jisx0208' not to use font for JIS
4787         X0208:1990; add new charset `hiragana-jisx0208' and
4788         `katakana-jisx0208'.
4789
4790         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4791         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4792         (struct Lisp_Charset): Add `byte_offset'.
4793         (CHARSET_BYTE_OFFSET): New macro.
4794         (XCHARSET_UCS_MIN): New macro.
4795         (XCHARSET_UCS_MAX): New macro.
4796         (XCHARSET_CODE_OFFSET): New macro.
4797         (XCHARSET_BYTE_OFFSET): New macro.
4798         (MIN_CHAR_HIRAGANA): New macro.
4799         (MAX_CHAR_HIRAGANA): New macro.
4800         (MIN_CHAR_KATAKANA): New macro.
4801         (MAX_CHAR_KATAKANA): New macro.
4802         (MAKE_CHAR): Modify for new coded-charset definition; use
4803         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4804         `XCHARSET_BYTE_OFFSET'.
4805
4806 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4807
4808         * mule-charset.c (CHAR96): Deleted.
4809         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4810         <Lisp_Object>.
4811         (latin_iso8859_2_to_ucs): Likewise.
4812         (latin_iso8859_3_to_ucs): Likewise.
4813         (latin_iso8859_4_to_ucs): Likewise.
4814         (latin_iso8859_9_to_ucs): Likewise.
4815         (latin_viscii_lower_to_ucs): Likewise.
4816         (latin_viscii_upper_to_ucs): Likewise.
4817         (latin_tcvn5712_to_ucs): Commented out.
4818         (make_charset): Change type of argument `decoding_table' from
4819         <Emchar*> to <Lisp_Object> [vector of characters].
4820         (Fmake_charset): Modify for `make_charset'.
4821         (Fmake_reverse_direction_charset): Likewise.
4822         (Fcharset_mapping_table): New function in UTF-2000.
4823         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4824         UTF-2000.
4825         (complex_vars_of_mule_charset): Modify for type change of
4826         `*_to_ucs'; modify for `make_charset'.
4827
4828         * char-ucs.h (struct Lisp_Charset): Change type of
4829         `decoding_table' from <Emchar*> to <Lisp_Object>.
4830         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4831
4832 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4833
4834         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4835         error with non-UTF-2000-Mule.
4836
4837 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4838
4839         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4840         in lisp again].
4841         (Vcharset_chinese_cns11643_4): Likewise.
4842         (Vcharset_chinese_cns11643_5): Likewise.
4843         (Vcharset_chinese_cns11643_6): Likewise.
4844         (Vcharset_chinese_cns11643_7): Likewise.
4845         (Qchinese_cns11643_3): Likewise.
4846         (Qchinese_cns11643_4): Likewise.
4847         (Qchinese_cns11643_5): Likewise.
4848         (Qchinese_cns11643_6): Likewise.
4849         (Qchinese_cns11643_7): Likewise.
4850         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4851         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4852         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4853         (complex_vars_of_mule_charset): Likewise.
4854
4855 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4856
4857         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4858         96-set.
4859         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4860         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4861
4862 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4863
4864         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4865         0xFF60.
4866         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4867         (breakup_char_1): Likewise.
4868
4869         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4870         one of them includes the specified character.
4871
4872 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4873
4874         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4875
4876 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4877
4878         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4879
4880 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4881
4882         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4883         definition for non-UTF-2000 Mule.
4884         (latin_iso8859_3_to_ucs): Likewise.
4885         (latin_iso8859_4_to_ucs): Likewise.
4886         (latin_iso8859_9_to_ucs): Likewise.
4887         (latin_jisx0201_to_ucs): Likewise.
4888         (MIN_CHAR_THAI): Likewise.
4889         (MAX_CHAR_THAI): Likewise.
4890         (MIN_CHAR_GREEK): Likewise.
4891         (MAX_CHAR_GREEK): Likewise.
4892         (MIN_CHAR_HEBREW): Likewise.
4893         (MAX_CHAR_HEBREW): Likewise.
4894         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4895         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4896         (MIN_CHAR_CYRILLIC): Likewise.
4897         (MAX_CHAR_CYRILLIC): Likewise.
4898
4899 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4900
4901         * char-ucs.h (breakup_char_1): Use
4902         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4903         thai-tis620 and katakana-jisx0201 area.
4904
4905 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4906
4907         * char-ucs.h (breakup_char_1): Use
4908         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4909         area.
4910
4911         * text-coding.c (reset_encoding_stream): Fixed.
4912         (char_encode_ucs4): Delete `& 255'.
4913
4914         * char-ucs.h (breakup_char_1): Use
4915         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4916
4917 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4918
4919         * file-coding.c (Fmake_coding_system): Don't set up
4920         `codesys->fixed.size'.
4921         (encode_coding_no_conversion): Don't refer
4922         `str->codesys->fixed.size'.
4923
4924 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4925
4926         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4927         (latin_a_char_to_byte1): Deleted.
4928         (latin_a_char_to_byte2): Deleted.
4929
4930 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4931
4932         * mule-charset.c (make_charset): Add new argument `ucs_min',
4933         `ucs_max' and `code_offset'.
4934         (charset_get_byte1): New implementation [delete specific charset
4935         depended implementations].
4936         (Fmake_charset): Modify for `make_charset'.
4937         (Fmake_reverse_direction_charset): Likewise.
4938         (complex_vars_of_mule_charset): Likewise.
4939
4940         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4941         `code_offset'.
4942         (CHARSET_UCS_MIN): New macro.
4943         (CHARSET_UCS_MAX): New macro.
4944         (CHARSET_CODE_OFFSET): New macro.
4945         (MAKE_CHAR): Delete charset depended definitions [except
4946         katakana-jisx0201].
4947
4948 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4949
4950         * char-ucs.h (breakup_char_1): Use
4951         `Vdefault_coded_charset_priority_list' for C0-Controls,
4952         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4953
4954 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4955
4956         * char-ucs.h (charset_get_byte1): New function.
4957         (XCHARSET_GET_BYTE1): Deleted.
4958         (charset_get_byte2): New function.
4959         (XCHARSET_GET_BYTE2): Deleted.
4960         (Vdefault_coded_charset_priority_list): New external variable.
4961         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4962         `Vdefault_preferred_coded_charset_list'.
4963
4964         * mule-charset.c (charset_get_byte1): New function.
4965         (charset_get_byte2): New function.
4966         (Vdefault_coded_charset_priority_list): New variable.
4967         (vars_of_mule_charset): Add new variable
4968         `default-coded-charset-priority-list'.
4969
4970 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4971
4972         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4973         (XCHARSET_GET_BYTE2): New inline function.
4974         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4975         `XCHARSET_GET_BYTE2'.
4976
4977 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4978
4979         * mule-charset.c (make_charset): Initialize
4980         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4981         NULL if table is not defined.
4982
4983 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4984
4985         * text-coding.c (char_encode_shift_jis): Use
4986         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4987         `ucs_to_latin_jisx0201'.
4988
4989         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4990         (ucs_to_latin_iso8859_2): Deleted.
4991         (ucs_to_latin_iso8859_3): Deleted.
4992         (ucs_to_latin_iso8859_4): Deleted.
4993         (ucs_to_latin_iso8859_9): Deleted.
4994         (ucs_to_latin_viscii_lower): Deleted.
4995         (ucs_to_latin_viscii_upper): Deleted.
4996         (ucs_to_latin_tcvn5712): Deleted.
4997         (make_charset): Add new argument `decoding_table'; set up
4998         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4999         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5000         `decoding_table' is defined in UTF-2000.
5001         (Fmake_charset): Modify for `make_charset'.
5002         (Fmake_reverse_direction_charset): Likewise.
5003         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5004         and `GENERATE_96_SET'.
5005
5006         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5007         (ucs_to_latin_jisx0201): Deleted.
5008         (latin_iso8859_2_to_ucs): Deleted.
5009         (ucs_to_latin_iso8859_2): Deleted.
5010         (latin_iso8859_3_to_ucs): Deleted.
5011         (ucs_to_latin_iso8859_3): Deleted.
5012         (latin_iso8859_4_to_ucs): Deleted.
5013         (ucs_to_latin_iso8859_4): Deleted.
5014         (latin_iso8859_9_to_ucs): Deleted.
5015         (ucs_to_latin_iso8859_9): Deleted.
5016         (latin_viscii_lower_to_ucs): Deleted.
5017         (ucs_to_latin_viscii_lower): Deleted.
5018         (latin_viscii_upper_to_ucs): Deleted.
5019         (ucs_to_latin_viscii_upper): Deleted.
5020         (struct Lisp_Charset): Renamed `encoding_table' to
5021         `to_byte1_table'; add `to_byte2_table'.
5022         (CHARSET_DECODING_TABLE): New macro.
5023         (CHARSET_TO_BYTE1_TABLE): New macro.
5024         (CHARSET_TO_BYTE2_TABLE): New macro.
5025         (XCHARSET_DECODING_TABLE): New macro.
5026         (XCHARSET_TO_BYTE1_TABLE): New macro.
5027         (XCHARSET_TO_BYTE2_TABLE): New macro.
5028         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5029         tables.
5030         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5031         don't use `ucs_to_*' tables.
5032
5033 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5034
5035         * text-coding.c (Fmake_coding_system): Don't set up
5036         `codesys->fixed.size'.
5037         (encode_coding_no_conversion): Use `if' instead of `switch'.
5038
5039         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5040
5041 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5042
5043         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5044         (Fmake_charset): Modify for `make_charset'.
5045         (Fmake_reverse_direction_charset): Likewise.
5046         (complex_vars_of_mule_charset): Likewise.
5047
5048 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5049
5050         * text-coding.c (char_encode_shift_jis): Use table
5051         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5052
5053 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5054
5055         * text-coding.c (text_encode_generic): Use `if' instead of
5056         `switch'.
5057         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5058         decode JIS-Latin.
5059
5060 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5061
5062         * text-coding.c (encode_coding_sjis): Deleted.
5063         (char_encode_shift_jis): New function.
5064         (char_finish_shift_jis): New function.
5065         (reset_encoding_stream): Set up `encode_char' and `finish' for
5066         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5067         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5068         (char_encode_utf8): Treat `eol_type'.
5069
5070 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5071
5072         * file-coding.c (decode_coding_iso2022): Use
5073         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5074
5075 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5076
5077         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5078         to 0.7 (Hirano).
5079
5080 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5081
5082         * char-lb.h (CHAR_COLUMNS): New macro.
5083
5084 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5085
5086         * text-coding.c (char_encode_ucs4): New function.
5087         (char_finish_ucs4): New function.
5088         (encode_coding_ucs4): Deleted.
5089         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5090         (text_encode_generic): Delete local variable `charset' and `half'.
5091         (ucs_to_mule_table): Deleted.
5092         (mule_to_ucs_table): Deleted.
5093         (Fset_ucs_char): Deleted.
5094         (ucs_to_char): Deleted.
5095         (Fucs_char): Deleted.
5096         (Fset_char_ucs): Deleted.
5097         (Fchar_ucs): Deleted.
5098         (decode_ucs4): Deleted.
5099         (mule_char_to_ucs4): Deleted.
5100         (encode_ucs4): Deleted.
5101         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5102         (decode_coding_utf8): Likewise.
5103         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5104         (char_encode_iso2022): Fixed.
5105         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5106         `Fset_char_ucs' and `Fchar_ucs'.
5107         (complex_vars_of_file_coding): Don't initialize
5108         `ucs_to_mule_table'.
5109
5110         * objects-tty.c (tty_initialize_font_instance): Don't use
5111         `XCHARSET_COLUMNS'.
5112
5113         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5114         UTF-2000.
5115
5116         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5117         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5118
5119         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5120         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5121         (emchar_string_displayed_columns): Likewise.
5122
5123         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5124         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5125         (string_column_at_point): Likewise.
5126         (Fmove_to_column): Likewise.
5127
5128         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5129         `encoding_table' and `decoding_table'.
5130         (CHARSET_REP_BYTES): Deleted.
5131         (XCHARSET_REP_BYTES): Deleted.
5132         (XCHARSET_COLUMNS): Deleted.
5133         (CHAR_COLUMNS): New macro.
5134         (lookup_composite_char): Deleted unconditionally.
5135         (composite_char_string): Likewise.
5136
5137 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5138
5139         * char-ucs.h (Emchar_to_byte_table): New type.
5140         (get_byte_from_character_table): New function interface.
5141         (Vcharset_latin_jisx0201): New variable.
5142         (latin_jisx0201_to_ucs): New variable.
5143         (ucs_to_latin_jisx0201): New variable.
5144         (Vcharset_latin_iso8859_2): New variable.
5145         (latin_iso8859_2_to_ucs): New variable.
5146         (ucs_to_latin_iso8859_2): New variable.
5147         (Vcharset_latin_iso8859_3): New variable.
5148         (latin_iso8859_3_to_ucs): New variable.
5149         (ucs_to_latin_iso8859_3): New variable.
5150         (Vcharset_latin_iso8859_4): New variable.
5151         (latin_iso8859_4_to_ucs): New variable.
5152         (ucs_to_latin_iso8859_4): New variable.
5153         (Vcharset_latin_iso8859_9): New variable.
5154         (latin_iso8859_9_to_ucs): New variable.
5155         (ucs_to_latin_iso8859_9): New variable.
5156         (Vcharset_latin_viscii_lower): New variable.
5157         (latin_viscii_lower_to_ucs): New variable.
5158         (ucs_to_latin_viscii_lower): New variable.
5159         (Vcharset_latin_viscii_upper): New variable.
5160         (latin_viscii_upper_to_ucs): New variable.
5161         (ucs_to_latin_viscii_upper): New variable.
5162         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5163         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5164         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5165         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5166         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5167         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5168         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5169         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5170         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5171         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5172
5173         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5174         (Vcharset_latin_viscii_upper): New variable.
5175         (make_byte_from_character_table): New function.
5176         (put_byte_from_character_table): New function.
5177         (get_byte_from_character_table): New function.
5178         (CHAR96): New macro.
5179         (ucs_to_latin_jisx0201): New variable.
5180         (latin_jisx0201_to_ucs): New variable.
5181         (ucs_to_latin_iso8859_2): New variable.
5182         (latin_iso8859_2_to_ucs): New variable.
5183         (ucs_to_latin_iso8859_3): New variable.
5184         (latin_iso8859_3_to_ucs): New variable.
5185         (ucs_to_latin_iso8859_4): New variable.
5186         (latin_iso8859_4_to_ucs): New variable.
5187         (ucs_to_latin_iso8859_9): New variable.
5188         (latin_iso8859_9_to_ucs): New variable.
5189         (ucs_to_latin_viscii_lower): New variable.
5190         (latin_viscii_lower_to_ucs): New variable.
5191         (ucs_to_latin_viscii_upper): New variable.
5192         (latin_viscii_upper_to_ucs): New variable.
5193         (ucs_to_latin_tcvn5712): New variable.
5194         (latin_tcvn5712_to_ucs): New variable.
5195         (Qlatin_viscii_lower): New variable.
5196         (Qlatin_viscii_upper): New variable.
5197         (syms_of_mule_charset): Set up new symbol
5198         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5199         (complex_vars_of_mule_charset): Set up new charset
5200         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5201         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5202         `ucs_to_<CHARSET>' tables.
5203
5204 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5205
5206         * text-coding.c: New file.
5207
5208 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5209
5210         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5211
5212         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5213         (MAKE_CHAR): Modify for `ucs-bmp'.
5214         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5215         non-MULE characters of BMP.
5216
5217 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5218
5219         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5220         to 0.6.
5221
5222 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5223
5224         * lstream.h:
5225         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5226         - Include character.h for `CHAR_ASCII_P'.
5227
5228         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5229
5230         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5231         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5232
5233         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5234         (BYTE_C0_P): Likewise.
5235         (BYTE_C1_P): Likewise.
5236         (Lstream_get_emchar_1): Likewise.
5237         (Lstream_fput_emchar): Likewise.
5238         (Lstream_funget_emchar): Likewise.
5239         (copy_internal_to_external): Likewise.
5240         (copy_external_to_internal): Likewise.
5241
5242         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5243         (BYTE_C0_P): Likewise.
5244         (BYTE_C1_P): Likewise.
5245         (Lstream_get_emchar_1): Likewise.
5246         (Lstream_fput_emchar): Likewise.
5247         (Lstream_funget_emchar): Likewise.
5248         (copy_internal_to_external): Likewise.
5249         (copy_external_to_internal): Likewise.
5250
5251         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5252         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5253
5254         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5255         (BYTE_ASCII_P): Moved to mb-1byte.h.
5256
5257 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5258
5259         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5260
5261         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5262         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5263         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5264         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5265         (VALIDATE_CHARPTR_FORWARD): Likewise.
5266         (simple_charptr_emchar): Moved to mb-multibyte.h.
5267         (simple_set_charptr_emchar): Likewise.
5268         (simple_charptr_copy_char): Likewise.
5269         (non_ascii_charptr_emchar): Likewise.
5270         (non_ascii_set_charptr_emchar): Likewise.
5271         (non_ascii_charptr_copy_char): Likewise.
5272         (charptr_emchar): Moved to mb-*byte.h.
5273         (set_charptr_emchar): Likewise.
5274         (charptr_copy_char): Likewise.
5275
5276         * mb-1byte.h, mb-multibyte.h: New files.
5277
5278 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5279
5280         * mb-utf-8.h (MULTIBYTE): New macro.
5281         (MAX_EMCHAR_LEN): Moved from buffer.h.
5282         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5283
5284         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5285
5286         * mb-lb.h, multibyte.h: New files.
5287
5288         * char-1byte.h (Charset_ID): Moved from buffer.h.
5289         (MIN_LEADING_BYTE): Likewise.
5290         (LEADING_BYTE_ASCII): Likewise.
5291         (NUM_LEADING_BYTES): Likewise.
5292         (CHARSETP): Likewise.
5293         (CHARSET_BY_LEADING_BYTE): Likewise.
5294         (XCHARSET_LEADING_BYTE): Likewise.
5295         (XCHARSET_GRAPHIC): Likewise.
5296         (XCHARSET_COLUMNS): Likewise.
5297         (XCHARSET_DIMENSION): Likewise.
5298         (CHAR_CHARSET): Likewise.
5299         (CHAR_LEADING_BYTE): Likewise.
5300         (BREAKUP_CHAR): Likewise.
5301         (Vcharset_ascii): Likewise.
5302
5303         * buffer.h: Include multibyte.h unconditionally.
5304         (VALID_CHARPTR_P): Moved to multibyte.h.
5305         (ASSERT_VALID_CHARPTR): Likewise.
5306         (REAL_INC_CHARPTR): Likewise.
5307         (REAL_INC_CHARBYTIND): Likewise.
5308         (REAL_DEC_CHARPTR): Likewise.
5309         (INC_CHARPTR): Likewise.
5310         (INC_CHARBYTIND): Likewise.
5311         (DEC_CHARPTR): Likewise.
5312         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5313         (VALIDATE_CHARPTR_FORWARD): Likewise.
5314         (charptr_n_addr): Likewise.
5315         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5316         (simple_charptr_emchar): Moved to multibyte.h.
5317         (simple_set_charptr_emchar): Likewise.
5318         (simple_charptr_copy_char): Likewise.
5319         (non_ascii_charptr_emchar): Likewise.
5320         (non_ascii_set_charptr_emchar): Likewise.
5321         (non_ascii_charptr_copy_char): Likewise.
5322         (charptr_emchar): Likewise.
5323         (set_charptr_emchar): Likewise.
5324         (charptr_copy_char): Likewise.
5325         (charptr_emchar_n): Likewise.
5326         (Charset_ID): Moved to char-1byte.h.
5327         (Vcharset_ascii): Likewise.
5328         (CHAR_CHARSET): Likewise.
5329         (CHAR_LEADING_BYTE): Likewise.
5330         (LEADING_BYTE_ASCII): Likewise.
5331         (NUM_LEADING_BYTES): Likewise.
5332         (MIN_LEADING_BYTE): Likewise.
5333         (CHARSETP): Likewise.
5334         (CHARSET_BY_LEADING_BYTE): Likewise.
5335         (XCHARSET_LEADING_BYTE): Likewise.
5336         (XCHARSET_GRAPHIC): Likewise.
5337         (XCHARSET_COLUMNS): Likewise.
5338         (XCHARSET_DIMENSION): Likewise.
5339         (BREAKUP_CHAR): Likewise.
5340
5341 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5342
5343         * character.h: Add document about interface for characters.
5344
5345         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5346         (MAKE_CHAR): Delete comment about
5347         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5348         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5349         (BREAKUP_CHAR): Modify name of arguments.
5350         (CHAR_CHARSET): Modify name of argument.
5351
5352         * buffer.h: Delete document about Emchar accessors.
5353
5354 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5355
5356         * character.h (CHAR_INTP): Moved from buffer.h
5357         (CHAR_OR_CHAR_INTP): Likewise.
5358         (XCHAR_OR_CHAR_INT): Likewise.
5359         (CHECK_CHAR_COERCE_INT): Likewise.
5360
5361         * buffer.h (CHAR_INTP): Moved to character.h
5362         (CHAR_OR_CHAR_INTP): Likewise.
5363         (XCHAR_OR_CHAR_INT): Likewise.
5364         (CHECK_CHAR_COERCE_INT): Likewise.
5365
5366 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5367
5368         * character.h:
5369         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5370         - Include char-1byte.h, char-lb.h or char-ucs.h.
5371
5372         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5373
5374         * buffer.h: Include character unconditionally.
5375         (valid_char_p): Moved to char-*.h.
5376         (non_ascii_valid_char_p): Moved to char-lb.h.
5377
5378         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5379
5380 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5381
5382         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5383         in UTF-2000 because it is not ported yet and not to use
5384         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5385         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5386         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5387
5388         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5389         (CHAR_ASCII_P): Moved from character.h.
5390
5391         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5392         (CHAR_ASCII_P): Likewise.
5393         (CHAR_FIELD1_MASK): Deleted.
5394         (CHAR_FIELD2_MASK): Deleted.
5395         (CHAR_FIELD3_MASK): Deleted.
5396         (MAX_CHAR_BASIC_LATIN): New macro.
5397         (CHAR_FIELD1): Deleted.
5398         (CHAR_FIELD2_INTERNAL): Deleted.
5399         (CHAR_FIELD3_INTERNAL): Deleted.
5400         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5401         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5402         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5403         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5404         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5405         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5406         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5407         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5408         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5409         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5410         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5411         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5412         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5413         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5414         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5415         (MIN_CHAR_COMPOSITION): Deleted.
5416         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5417         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5418
5419 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5420
5421         * buffer.h: Include mb-utf-8.h in UTF-2000.
5422
5423         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5424
5425         * mb-utf-8.h: New file.
5426
5427 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5428
5429         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5430         instead of `int'.
5431
5432         * mule-charset.h, buffer.h (Charset_ID): New type.
5433
5434 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5435
5436         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5437         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5438         instead of `MULE_CHAR_PRIVATE_OFFSET',
5439         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5440         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5441         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5442
5443         * character.h (Vcharset_japanese_jisx0212): New variable
5444         definition.
5445
5446 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5447
5448         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5449         (charset_by_attributes): Delete array about direction.
5450         (latin_a_char_to_charset): New variable in UTF-2000.
5451         (latin_a_char_to_byte1): New variable in UTF-2000.
5452         (latin_a_char_to_byte2): New variable in UTF-2000.
5453         (Qucs_bmp): New variable.
5454         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5455         `Bufbyte'.
5456         (next_allocated_2_byte_leading_byte): Likewise.
5457         (non_ascii_set_charptr_emchar): Likewise.
5458         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5459         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5460         `charset_by_attributes'.
5461         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5462         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5463         and `CHARSET_BY_LEADING_BYTE'.
5464         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5465         `utf-2000-version' to `vars_of_mule_charset'.
5466         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5467         define `leading-code-private-11' in UTF-2000; move setting of
5468         `utf-2000-version' from `syms_of_mule_charset'.
5469         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5470         UTF-2000.
5471
5472         * character.h (Charset_ID): New type.
5473         (LEADING_BYTE_UCS_BMP): New macro.
5474         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5475         (CHARSET_ID_OFFSET_94): New macro.
5476         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5477         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5478         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5479         final-byte.
5480         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5481         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5482         (CHARSET_ID_OFFSET_96): New macro.
5483         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5484         CHARSET_ID_OFFSET_96 and final-byte.
5485         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5486         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5487         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5488         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5489         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5490         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5491         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5492         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5493         (LEADING_BYTE_THAI_TIS620): Likewise.
5494         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5495         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5496         (CHARSET_ID_OFFSET_94x94): New macro.
5497         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5498         CHARSET_ID_OFFSET_94x94 and final-byte.
5499         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5500         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5501         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5502         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5503         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5504         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5505         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5506         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5507         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5508         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5509         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5510         (CHARSET_TYPE_128X128): New macro.
5511         (CHARSET_TYPE_256X256): New macro.
5512         (XCHARSET_PRIVATE_P): Delete unconditionally.
5513         (charset_by_attributes): Delete array about direction.
5514         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5515         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5516         (MIN_CHAR_94): New macro.
5517         (MAX_CHAR_94): New macro.
5518         (MIN_CHAR_96): New macro.
5519         (MAX_CHAR_96): New macro.
5520         (MIN_CHAR_94x94): New macro.
5521         (MAX_CHAR_94x94): New macro.
5522         (MIN_CHAR_96x96): New macro.
5523         (MAX_CHAR_96x96): New macro.
5524         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5525         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5526         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5527         - 32)'.
5528         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5529         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5530         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5531         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5532         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5533         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5534         `XCHARSET_LEADING_BYTE' to make code-point.
5535         (latin_a_char_to_charset): New variable.
5536         (latin_a_char_to_byte1): New variable.
5537         (latin_a_char_to_byte2): New variable.
5538         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5539         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5540         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5541
5542         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5543         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5544         (find_charsets_in_emchar_string): Likewise.
5545         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5546
5547         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5548         `int'.
5549         (decode_coding_iso2022): Likewise.
5550
5551         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5552         of `unsigned char'.
5553
5554         * redisplay.c (redisplay_text_width_emchar_string): Use
5555         `Charset_ID' instead of `unsigned char'.
5556         (redisplay_frame_text_width_string): Likewise.
5557
5558         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5559         `unsigned char'.
5560
5561         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5562         instead of `unsigned char'.
5563         (face_cachel_charset_font_metric_info): Likewise.
5564
5565         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5566         (get_non_ascii_char_table_value): Likewise.
5567         (get_char_table): Likewise.
5568         (put_char_table): Likewise.
5569         (map_over_other_charset): Likewise.
5570         (map_char_table): Likewise.
5571
5572         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5573         instead of `unsigned char'.
5574
5575 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5576
5577         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5578         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5579
5580         * mule-charset.c (leading_code_private_11): Don't define in
5581         UTF-2000.
5582
5583         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5584         in UTF-2000 because it is not ported yet and not to use
5585         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5586
5587 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5588
5589         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5590
5591 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5592
5593         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5594         in UTF-2000.
5595
5596         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5597         of unsigned char to store leading-byte.
5598
5599         * chartab.c (get_non_ascii_char_table_value): Don't use
5600         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5601
5602         * file-coding.c (encode_coding_big5): Delete bogus implementation
5603         in UTF2000.
5604
5605         * character.h (LEADING_BYTE_*): Delete definition for
5606         non-UTF-2000.
5607         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5608         (LEADING_BYTE_PREFIX_P): Deleted.
5609         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5610         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5611         (BUFBYTE_LEADING_BYTE_P): Deleted.
5612         (CHARSET_PRIVATE_P): Deleted unconditionally.
5613         (rep_bytes_by_first_byte): Deleted unconditionally.
5614         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5615         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5616         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5617         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5618         (CHAR_FIELD2): Deleted.
5619         (CHAR_FIELD3): Deleted.
5620         (MAKE_CHAR): Delete definition for non-UTF-2000.
5621         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5622         (breakup_char_1): New implementation.
5623         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5624         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5625
5626 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5627
5628         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5629         condition.
5630
5631 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5632
5633         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5634         (CHARSET_PRIVATE_P): Likewise.
5635         (XCHARSET_PRIVATE_P): Likewise.
5636         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5637
5638         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5639         UTF2000.
5640         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5641
5642 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5643
5644         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5645         (NUM_LEADING_BYTES): Changed from 128 to 256.
5646         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5647         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5648         UTF2000.
5649         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5650
5651         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5652         UTF2000.
5653         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5654         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5655         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5656         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5657         (Qchinese_cns11643_3): New variable in UTF2000.
5658         (Qchinese_cns11643_4): New variable in UTF2000.
5659         (Qchinese_cns11643_5): New variable in UTF2000.
5660         (Qchinese_cns11643_6): New variable in UTF2000.
5661         (Qchinese_cns11643_7): New variable in UTF2000.
5662         (syms_of_mule_charset): Define `chinese-cns11643-3',
5663         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5664         and `chinese-cns11643-7' in UTF2000.
5665         (vars_of_mule_charset): Initialize
5666         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5667         + 1 in UTF2000.
5668         (complex_vars_of_mule_charset): Setup charset
5669         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5670         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5671
5672 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5673
5674         * mule-charset.c: Move setting for `leading-code-private-11' from
5675         `syms_of_mule_charset' to `vars_of_mule_charset'.
5676
5677 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5678
5679         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5680         and `NUM_LEADING_BYTES' in assert.
5681
5682 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5683
5684         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5685         instead of 128.
5686         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5687         `NUM_LEADING_BYTES' instead of 128.
5688
5689 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5690
5691         * mule-charset.h (charset_by_leading_byte): Use
5692         `NUM_LEADING_BYTES' instead of 128.
5693         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5694
5695         * mule-charset.c (charset_by_leading_byte): Use
5696         `NUM_LEADING_BYTES' instead of 128.
5697         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5698
5699         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5700         128.
5701
5702 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5703
5704         * mule-charset.c (syms_of_mule_charset): Update to
5705         0.4 (Shin-Imamiya).
5706
5707 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5708
5709         * file-coding.c (encode_coding_sjis): New implementation for
5710         UTF2000.  (decode_coding_sjis): Ditto.
5711
5712 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5713
5714         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5715         Don't define in UTF2000.
5716
5717         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5718         defined.
5719
5720         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5721         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5722         MULE.
5723
5724 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5725
5726         * config.h.in (CHAR_IS_UCS4): New macro.
5727
5728         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5729         conventional MULE representation.
5730         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5731
5732         * mule-charset.h: Reverted to original.
5733
5734         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5735         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5736         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5737
5738         * character.h: New file.
5739
5740         * file-coding.c (Fmake_coding_system): Set 1 to
5741         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5742         defined.
5743         (encode_coding_no_conversion): New implementation for UTF2000.
5744
5745         * file-coding.h (struct Lisp_Coding_System): Add new member
5746         `fixed.size'.
5747
5748 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5749
5750         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5751         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5752         (encode_coding_iso2022): New implementation for UTF2000.
5753
5754 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5755
5756         * mule-canna.c (c2mu): New implementation for UTF2000.
5757         (m2c): Likewise.
5758
5759 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5760
5761         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5762
5763 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5764
5765         * file-coding.c (reset_encoding_stream): Set 0 to
5766         `str->iso2022.current_char_boundary' in UTF2000.
5767         (encode_utf8): Don't define in UTF2000.
5768         (encode_coding_utf8): New implementation for UTF-8 representation
5769         of UTF2000.
5770         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5771
5772 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5773
5774         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5775
5776         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5777         UTF2000.
5778         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5779
5780         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5781
5782         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5783         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5784         as UTF-8 in UTF2000.
5785         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5786         (non_ascii_valid_char_p): Don't define in UTF2000.
5787         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5788         (Lstream_get_emchar_1): Likewise.
5789         (utf-2000-version): New variable in UTF2000.
5790
5791         * lread.c (read_escape): Add new reader `u'.
5792
5793         * insdel.c (three_to_one_table): Don't define in UTF2000.
5794         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5795         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5796         UTF2000.
5797         (bytind_to_bufpos_func): Likewise.
5798         (buffer_mule_signal_inserted_region): Likewise.
5799         (vars_of_insdel): Don't initialize `three_to_one_table'.
5800         (init_buffer_text): Use `buf->text->mule_size' instead of
5801         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5802         UTF2000.
5803
5804         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5805         UTF-8 representation in UTF2000.
5806         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5807         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5808         (decode_coding_iso2022): Don't define local variable `lb' in
5809         UTF2000; don't use LEADING_BYTE in UTF2000; use
5810         `DECODE_ADD_UCS_CHAR' in UTF2000.
5811         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5812
5813         * config.h.in (UTF2000): New macro.
5814
5815         * buffer.h (struct buffer_text): Add new member `mule_size' and
5816         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5817         (valid_char_p): Return always 1 in UTF2000.
5818         (MAX_EMCHAR_LEN): 6 in UTF2000.
5819         (three_to_one_table): Don't define in UTF2000.
5820         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5821         UTF2000.
5822         (real_bytind_to_bufpos): Likewise.
5823
5824         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5825
5826 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5827
5828         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5829         representation change.
5830         (Vutf_2000_version): New variable.
5831         (leading_code_private_11): New variable.
5832         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5833         `leading-code-private-11'.
5834
5835         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5836         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5837         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5838         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5839         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5840         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5841         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5842         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5843         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5844         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5845         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5846         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5847         (MIN_CHAR_GREEK): New macro.
5848         (MAX_CHAR_GREEK): New macro.
5849         (MIN_CHAR_CYRILLIC): New macro.
5850         (MAX_CHAR_CYRILLIC): New macro.
5851         (MIN_CHAR_HEBREW): New macro.
5852         (MAX_CHAR_HEBREW): New macro.
5853         (MIN_CHAR_THAI): New macro.
5854         (MAX_CHAR_THAI): New macro.
5855         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5856         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5857         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5858         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5859         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5860         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5861         (CHAR_FIELD2): New inline function.
5862         (CHAR_FIELD3): New inline function.
5863         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5864         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5865         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5866         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5867         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5868         (MIN_CHAR_COMPOSITION): Likewise.
5869         (CHAR_LEADING_BYTE): Modified for character representation change.
5870         (MAKE_CHAR): Likewise.
5871
5872         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5873         (Vcharset_greek_iso8859_7): Likewise.
5874         (Vcharset_cyrillic_iso8859_5): Likewise.
5875         (Vcharset_hebrew_iso8859_8): Likewise.
5876         (Vcharset_thai_tis620): Likewise.
5877         (Vcharset_katakana_jisx0201): Likewise.
5878
5879 2006-01-28  Vin Shelton  <acs@xemacs.org>
5880
5881         * XEmacs 21.4.19 is released
5882
5883 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
5884
5885         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
5886
5887 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
5888
5889         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
5890         5000 to INT_MAX.
5891
5892 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
5893
5894         * database.c: Suppress compiler warning under Cygwin.
5895         * database.c: Removed __FreeBSD__ check, should be handled by
5896         HAVE_U_xxx_T defines.
5897
5898 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
5899
5900         * console.c (stuff_buffered_input): Compile body only if
5901         HAVE_TTY.
5902
5903 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
5904
5905         * callproc.c: #include sysdir.h, so that any appropriate Mule
5906         magic happens with the chdir() call when calling a subprocess. 
5907
5908 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
5909
5910         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
5911         * mule-ccl.c: Check that a character set exists before using it
5912         to create a character. 
5913
5914 2005-12-06  Vin Shelton  <acs@xemacs.org>
5915
5916         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
5917         to INT_MAX.
5918
5919 2005-12-03  Vin Shelton <acs@xemacs.org>
5920
5921         * XEmacs 21.4.18 is released
5922
5923 2005-11-27  Kean Johnston <kean@armory.com>
5924
5925         * redisplay-tty.c (set_tty_modes):
5926         (reset_tty_modes): disable auto-margins if the terminal supports
5927         them.
5928         (init_tty_for_redisplay): fix cursor shape.
5929
5930 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
5931
5932         * mule-ccl.c (ccl_driver): Calculate the charset and position code
5933         for control-1 characters properly, both when reading multibyte
5934         characters and writing them. 
5935
5936 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
5937
5938         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
5939         * select-x.c (x_reply_selection_request): Use it; fix the bug we
5940         were seeing with incremental selection transfer failing. 
5941
5942 2005-11-26  Vin Shelton  <acs@xemacs.org>
5943
5944         * callproc.c (Fold_call_process_internal): Create the buffer if it
5945         does not already exist.  The original patch came from Ben Wing in
5946         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
5947
5948 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
5949
5950         * callproc.c: Process-related docstring improvements spurred by
5951         Norbert Koch.
5952
5953 2005-11-25  Vin Shelton  <acs@xemacs.org>
5954
5955         * depend: Regenerated.
5956
5957 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
5958
5959         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
5960         says it clashes with a global with the same name.
5961
5962 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
5963
5964         * sysdll.c (dll_open): Under MacOS X return NULL under the
5965         filename is NULL.  Fixes problems finding local symbols under 10.4
5966         (Tiger)
5967
5968 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
5969         
5970         * config.h.in: New HAVE_U_INT*_T defines.
5971         
5972         * database.c: Only use u_int*_t typedefs if not already
5973         defined.
5974
5975 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
5976
5977         * src/process-unix.c (unix_open_network_stream): moved
5978           'portbuf' buffer out of an inner block as it is used in the
5979           entire function. With gcc4, the stack may get corrupted
5980           after leaving this block. This patches adjusts the size of
5981           the used buffer also; static '128' bytes are far too much
5982           currently and might not suffice for future architectures
5983           (e.g. for 512 bit ones ;)). Instead of, use only the really
5984           required space (max octets * ln(256)/ln(10) chars + space
5985           for '\0' and the sign)
5986
5987 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
5988
5989         * callproc.c: Include sysdir.h, so any necessary Mule processing
5990         is done on the current directory name before starting a new
5991         process.
5992
5993 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
5994
5995         * chartab.c (Fchar_table_p):
5996         (Fget_range_char_table):
5997         (Fput_char_table):
5998         (Fmap_char_table):
5999         Describe range representation and fix typo.
6000
6001 2005-02-12  Vin Shelton  <acs@xemacs.org>
6002
6003         * emacs.c (shut_down_emacs): Advise users to send email to the
6004         xemacs-beta list instead of crashes@xemacs.org.
6005
6006 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6007
6008         * process-unix.c (unix_send_process): Flush the last chunk, even
6009         when the pipe is blocked.
6010
6011 2005-02-06  Vin Shelton <acs@xemacs.org>
6012
6013         * XEmacs 21.4.17 is released
6014
6015 2005-01-31  Ben Wing  <ben@xemacs.org>
6016
6017         * emacs.c:
6018         Define assert_failed() always.
6019         * lisp.h:
6020         Always define ABORT().
6021
6022 2005-01-25  Ben Wing  <ben@xemacs.org>
6023
6024         * Makefile.in.in:
6025         * Makefile.in.in (%.o):
6026         Don't compile executable as Windows (-mwindows) under Cygwin.
6027         Semi-recent changes to Cygwin's executable-startup handling make
6028         it impossible to access the TTY this way.
6029
6030         Don't use special linker file under Cygwin (cygwin.sc) except
6031         when non-PDUMP (even in this case it is highly questionable); you
6032         get errors like
6033
6034       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6035    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6036
6037 2005-01-29  Ben Wing  <ben@xemacs.org>
6038
6039         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6040
6041         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6042
6043 2005-01-29  Ben Wing  <ben@xemacs.org>
6044
6045         * bytecode.c (optimize_compiled_function):
6046         * print.c (FROB):
6047         * print.c (long_to_string):
6048         Add casts to avoid warning.
6049         
6050         * glyphs-eimage.c:
6051         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6052         #### The better solution is to move the TIFF and JPEG code to
6053         different files.
6054         
6055         * glyphs-msw.c (mswindows_xbm_instantiate):
6056         Define __STDC__ to avoid problems with compface.h.
6057         
6058         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6059         * EmacsShell-sub.c:
6060         * EmacsShell-sub.c (ABORT):
6061         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6062         * EmacsShell-sub.c (RootGeometryManager):
6063         * EmacsShell.c:
6064         * EmacsShell.c (ABORT):
6065         * EmacsShell.c (EmacsShellUpdateSizeHints):
6066         * alloc.c (free_lcrecord):
6067         * alloca.c (i00afunc):
6068         * buffer.c (delete_from_buffer_alist):
6069         * buffer.c (MARKED_SLOT):
6070         * bytecode.c (execute_rare_opcode):
6071         * bytecode.c (optimize_byte_code):
6072         * bytecode.c (Ffetch_bytecode):
6073         * chartab.c (char_table_type_to_symbol):
6074         * chartab.c (Freset_char_table):
6075         * chartab.c (decode_char_table_range):
6076         * chartab.c (Fget_range_char_table):
6077         * chartab.c (check_valid_char_table_value):
6078         * chartab.c (map_char_table):
6079         * chartab.c (slow_map_char_table_fun):
6080         * chartab.c (chartab_instantiate):
6081         * cm.c (cmcheckmagic):
6082         * console-msw.c (DHEADER):
6083         * console.c (MARKED_SLOT):
6084         * data.c (finish_marking_weak_lists):
6085         * data.c (encode_weak_list_type):
6086         * debug.h (DASSERT):
6087         * device-gtk.c (gtk_init_device):
6088         * device-msw.c (mswindows_get_default_margin):
6089         * device-tty.c (tty_init_device):
6090         * device-x.c (get_device_from_display):
6091         * device-x.c (x_get_visual_depth):
6092         * doprnt.c (parse_doprnt_spec):
6093         * doprnt.c (get_doprnt_args):
6094         * dumper.c (pdump_get_indirect_count):
6095         * dumper.c (pdump_register_sub):
6096         * dumper.c (pdump_register_object):
6097         * dumper.c (pdump_register_struct):
6098         * dumper.c (pdump_dump_data):
6099         * dumper.c (pdump_reloc_one):
6100         * elhash.c (print_hash_table):
6101         * elhash.c (make_standard_lisp_hash_table):
6102         * elhash.c (hash_table_instantiate):
6103         * emacs.c:
6104         * emacs.c (Fforce_debugging_signal):
6105         * emacs.c (sort_args):
6106         * emacs.c (main):
6107         * emacs.c (assert_failed):
6108         * eval.c (throw_or_bomb_out):
6109         * eval.c (signal_1):
6110         * eval.c (Fsignal):
6111         * event-Xt.c:
6112         * event-Xt.c (emacs_Xt_mapping_action):
6113         * event-Xt.c (Xt_process_to_emacs_event):
6114         * event-msw.c:
6115         * event-stream.c (check_event_stream_ok):
6116         * event-stream.c (Fadd_timeout):
6117         * event-stream.c (Fadd_async_timeout):
6118         * event-stream.c (Fdiscard_input):
6119         * event-stream.c (execute_internal_event):
6120         * event-stream.c (Frecent_keys):
6121         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6122         * event-stream.c (lookup_command_event):
6123         * event-unixoid.c (poll_fds_for_input):
6124         * events.c:
6125         * events.c (mark_event):
6126         * events.c (event_equal):
6127         * events.c (event_hash):
6128         * events.c (Fmake_event):
6129         * events.c (Fdeallocate_event):
6130         * events.c (event_chain_find_previous):
6131         * events.c (event_to_character):
6132         * events.c (format_event_object):
6133         * events.c (Fevent_type):
6134         * events.c (event_pixel_translation):
6135         * events.c (Fevent_properties):
6136         * extents.c (extent_in_region_p):
6137         * extents.c (print_extent):
6138         * extents.c (process_extents_for_insertion_mapper):
6139         * extents.c (report_extent_modification_mapper):
6140         * extents.c (glyph_layout_to_symbol):
6141         * faces.c (face_validate):
6142         * file-coding.c (eol_type_to_symbol):
6143         * file-coding.c (subsidiary_coding_system):
6144         * file-coding.c (Fcoding_system_type):
6145         * file-coding.c (Fcoding_system_property):
6146         * file-coding.c (mule_decode):
6147         * file-coding.c (mule_encode):
6148         * file-coding.c (encode_coding_ucs4):
6149         * file-coding.c (encode_coding_utf8):
6150         * file-coding.c (parse_iso2022_esc):
6151         * file-coding.c (encode_coding_iso2022):
6152         * fileio.c:
6153         * fns.c (concat):
6154         * fns.c (Fsubseq):
6155         * fns.c (mapcar1):
6156         * fns.c (Fbase64_encode_region):
6157         * fns.c (Fbase64_encode_string):
6158         * fns.c (Fbase64_decode_region):
6159         * fns.c (Fbase64_decode_string):
6160         * font-lock.c (find_context):
6161         * font-lock.c (context_to_symbol):
6162         * frame-gtk.c (gtk_set_frame_pointer):
6163         * frame-gtk.c (gtk_update_frame_external_traits):
6164         * frame-x.c (x_wm_mark_shell_size_user_specified):
6165         * frame-x.c (x_wm_mark_shell_position_user_specified):
6166         * frame-x.c (x_wm_set_shell_iconic_p):
6167         * frame-x.c (x_wm_set_cell_size):
6168         * frame-x.c (x_wm_set_variable_size):
6169         * frame-x.c (x_wm_store_class_hints):
6170         * frame-x.c (x_wm_maybe_store_wm_command):
6171         * frame-x.c (x_initialize_frame_size):
6172         * frame-x.c (x_update_frame_external_traits):
6173         * frame.c:
6174         * frame.c (delete_frame_internal):
6175         * frame.c (mouse_pixel_position_1):
6176         * frame.c (change_frame_size_1):
6177         * free-hook.c (check_free):
6178         * free-hook.c (check_realloc):
6179         * free-hook.c (note_block_input):
6180         * free-hook.c (log_gcpro):
6181         * gccache-gtk.c (gc_cache_lookup):
6182         * glyphs-eimage.c (tiff_memory_write):
6183         * glyphs-gtk.c (gtk_finalize_image_instance):
6184         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6185         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6186         * glyphs-gtk.c (gtk_xpm_instantiate):
6187         * glyphs-gtk.c (gtk_unmap_subwindow):
6188         * glyphs-gtk.c (gtk_map_subwindow):
6189         * glyphs-gtk.c (gtk_button_redisplay):
6190         * glyphs-msw.c:
6191         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6192         * glyphs-x.c (init_image_instance_from_xbm_inline):
6193         * glyphs-x.c (extract_xpm_color_names):
6194         * glyphs-x.c (x_xpm_instantiate):
6195         * glyphs.c (get_image_instantiator_governing_domain):
6196         * glyphs.c (print_image_instance):
6197         * glyphs.c (image_instance_equal):
6198         * glyphs.c (image_instance_hash):
6199         * glyphs.c (encode_image_instance_type):
6200         * glyphs.c (make_image_instance_1):
6201         * glyphs.c (inherit_instantiate):
6202         * glyphs.c (image_instantiate):
6203         * glyphs.c (allocate_glyph):
6204         * glyphs.c (Fglyph_type):
6205         * glyphs.c (redisplay_subwindow):
6206         * glyphs.c (display_table_entry):
6207         * gtk-glue.c (xemacs_list_to_gtklist):
6208         * gtk-glue.c (xemacs_gtklist_to_list):
6209         * gtk-glue.c (xemacs_list_to_array):
6210         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6211         * gutter.c (gutter_was_visible):
6212         * gutter.c (get_gutter_coords):
6213         * input-method-xlib.c (get_XIM_input):
6214         * insdel.c (bufpos_to_bytind_func):
6215         * insdel.c (bytind_to_bufpos_func):
6216         * insdel.c (move_gap):
6217         * intl.c (x_get_composed_input):
6218         * keymap.c (keymap_lookup_directly):
6219         * keymap.c (keymap_delete_inverse_internal):
6220         * keymap.c (ensure_meta_prefix_char_keymapp):
6221         * keymap.c (accessible_keymaps_mapper_1):
6222         * keymap.c (where_is_recursive_mapper):
6223         * lisp.h:
6224         * lisp.h (ABORT):
6225         * lread.c (read_atom):
6226         * lstream.c (Lstream_delete):
6227         * lstream.c (make_lisp_buffer_stream_1):
6228         * macros.c (pop_kbd_macro_event):
6229         * malloc.c (malloc):
6230         * malloc.c (free):
6231         * marker.c (bi_marker_position):
6232         * marker.c (set_bi_marker_position):
6233         * menubar-gtk.c (menu_descriptor_to_widget_1):
6234         * menubar-msw.c (prune_menubar):
6235         * menubar-x.c (set_frame_menubar):
6236         * mule-charset.c (get_unallocated_leading_byte):
6237         * mule-charset.h (CHAR_LEADING_BYTE):
6238         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6239         * nt.c (init_environment):
6240         * nt.c (generate_inode_val):
6241         * ntproc.c (delete_child):
6242         * ntproc.c (_sys_read_ahead):
6243         * ntproc.c (create_child):
6244         * objects.c (color_instantiate):
6245         * objects.c (font_instantiate):
6246         * objects.c (face_boolean_instantiate):
6247         * print.c (printing_major_badness):
6248         * process-nt.c (nt_send_process):
6249         * process-unix.c (unix_send_process):
6250         * process.c (get_process):
6251         * ralloc.c (obtain):
6252         * ralloc.c (relinquish):
6253         * ralloc.c (relocate_blocs):
6254         * ralloc.c (resize_bloc):
6255         * ralloc.c (r_alloc_free):
6256         * ralloc.c (r_re_alloc):
6257         * ralloc.c (r_alloc_thaw):
6258         * ralloc.c (init_ralloc):
6259         * ralloc.c (Free_Addr_Block):
6260         * ralloc.c (r_alloc):
6261         * redisplay-gtk.c (gtk_output_display_block):
6262         * redisplay-msw.c (mswindows_output_display_block):
6263         * redisplay-output.c (get_next_display_block):
6264         * redisplay-output.c (get_cursor_size_and_location):
6265         * redisplay-output.c (redisplay_output_layout):
6266         * redisplay-output.c (redisplay_clear_region):
6267         * redisplay-tty.c (tty_output_display_block):
6268         * redisplay-x.c (x_output_display_block):
6269         * redisplay.c (add_propagation_runes):
6270         * redisplay.c (add_glyph_rune):
6271         * redisplay.c (create_text_block):
6272         * redisplay.c (add_margin_runes):
6273         * redisplay.c (create_left_glyph_block):
6274         * redisplay.c (create_right_glyph_block):
6275         * redisplay.c (create_string_text_block):
6276         * redisplay.c (regenerate_window):
6277         * redisplay.c (REGEN_INC_FIND_START_END):
6278         * redisplay.c (redisplay_frame):
6279         * redisplay.c (point_in_line_start_cache):
6280         * regex.c:
6281         * regex.c (ABORT):
6282         * regex.c (re_compile_fastmap):
6283         * regex.c (re_match_2_internal):
6284         * regex.c (regerror):
6285         * scrollbar-gtk.c (gtk_scrollbar_loop):
6286         * scrollbar-gtk.c (scrollbar_cb):
6287         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6288         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6289         * scrollbar-x.c (x_update_scrollbar_instance_status):
6290         * scrollbar-x.c (x_scrollbar_loop):
6291         * scrollbar-x.c (x_update_frame_scrollbars):
6292         * search.c (search_command):
6293         * search.c (Fmatch_data):
6294         * select-x.c (motif_clipboard_cb):
6295         * signal.c (interrupt_signal):
6296         * specifier.c (specifier_add_spec):
6297         * specifier.c (specifier_instance_from_inst_list):
6298         * specifier.c (specifier_instance):
6299         * specifier.h:
6300         * specifier.h (struct specifier_methods):
6301         * strftime.c (add_num_time_t):
6302         * sunplay.c (init_device):
6303         * symbols.c (Fsetplist):
6304         * symbols.c (do_symval_forwarding):
6305         * symbols.c (store_symval_forwarding):
6306         * symbols.c (Fset):
6307         * symbols.c (Fbuilt_in_variable_type):
6308         * symbols.c (decode_magic_handler_type):
6309         * symbols.c (handler_type_from_function_symbol):
6310         * syntax.c (update_syntax_cache):
6311         * sysdep.c (init_baud_rate):
6312         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6313         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6314         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6315         * toolbar.c (get_toolbar_coords):
6316         * ui-gtk.c (build_gtk_boxed):
6317         * ui-gtk.c (describe_gtk_arg):
6318         * ui-gtk.c (gtk_type_to_lisp):
6319         * ui-gtk.c (lisp_to_gtk_type):
6320         * ui-gtk.c (lisp_to_gtk_ret_type):
6321         * ui-gtk.c (lisp_to_flag):
6322         * unexnt.c (read_in_bss):
6323         * unexnt.c (map_in_heap):
6324         * window.c (real_window):
6325         * window.c (window_display_lines):
6326         * window.c (window_display_buffer):
6327         * window.c (set_window_display_buffer):
6328         * window.c (window_modeline_height):
6329         * window.c (unshow_buffer):
6330         * window.c (window_loop):
6331         * window.c (Fget_lru_window):
6332         * window.c (Fsplit_window):
6333         * window.c (Fset_window_configuration):
6334         * window.c (saved_window_index):
6335         * xgccache.c (gc_cache_lookup):
6336         abort() -> ABORT().  Eliminate preprocessor games with abort()
6337         since it creates huge problems in VC7, solvable only by including
6338         massive amounts of files in every compile (and not worth it).
6339
6340         * sysdep.c:
6341         * sysproc.h:
6342         Inclusion of process.h does not need to be before lisp.h any more.
6343         Move later and remove comment about abort().
6344
6345 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6346
6347         * regex.c (re_match_2_internal):
6348         Correctly initialize loop which clears uninitialized registers.
6349
6350 2005-01-28  Vin Shelton  <acs@xemacs.org>
6351
6352         * sheap.c (more_static_core): Applied Ben's version of the long
6353         string patch.
6354
6355 2005-01-24  Vin Shelton  <acs@xemacs.org>
6356
6357         * sheap.c (more_static_core): Reformatted printf string so
6358         gcc-3.3.3 will compile this on Cygwin.
6359
6360 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6361
6362         * console.c (function_key_map): Reference `key-binding'.
6363
6364         * keymap.c (Vkey_translation_map): Improve docstring.
6365
6366 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6367
6368         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6369         * window.c (window_loop): [fix] Take into account
6370         `allow-deletion-of-last-visible-frame' variable.
6371         * window.c (replace-buffer-in-windows): Ditto.
6372
6373 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6374
6375         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6376
6377 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6378
6379         * event-gtk.c: Recognise AltGr as a valid modifier.
6380
6381 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6382
6383         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6384
6385 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6386
6387         Fix backreference bug caught by test suite.
6388
6389         * regex.c (regex_compile):
6390         Make backref duplicate internal register.
6391
6392 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6393
6394         Documentation, code clarification, and warning suppression.
6395         
6396         * regex.c (regex_compile):
6397         Improve comments.
6398         (re_match_2_internal):
6399         Improve comments and avoid redundant braces.  [Most of the big hunk
6400         at l. 4710 is indentation; use diff -w to see the real changes.]
6401         (alt_match_null_string_p):
6402         (common_op_match_null_string_p):
6403         Avoid shadowing global on Mac OS X 10.4, at least.
6404
6405 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6406
6407         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6408         introduced with shy groups fix).  [Already applied, probably
6409         with the second "fix shy groups" patch of 2004-10-07.] 
6410
6411 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6412
6413         From Andrey Slusar <anrays@gmail.com>:
6414
6415         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6416
6417 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6418
6419         * Makefile (RECURSIVE_MAKE): Removed.
6420         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6421         handling parallel builds.
6422
6423 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6424
6425         * Makefile.in.in: Enable support for parallel builds.
6426
6427 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6428
6429         From Andrey Slusar <anrays@gmail.com>:
6430
6431         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6432         FreeBSD version is >= 199701 _and_ < 600006.
6433
6434 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6435
6436         * scrollbar.c (compute_scrollbar_instance_usage):
6437         Only call device method compute_scrollbar_instance_usage() if it
6438         is defined.
6439
6440 2004-12-05  Vin Shelton <acs@xemacs.org>
6441
6442         * XEmacs 21.4.16 is released
6443
6444 2004-12-04  Vin Shelton  <acs@xemacs.org>
6445
6446         * depend: Regenerated.
6447
6448 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6449
6450         * regex.c (re_match_2_internal): Map internal to external
6451         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6452         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6453
6454 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6455
6456         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6457         to fix a crash.  Also, check the buffer is live and it
6458         really exists in buffer_list.  If the buffer is not in the list,
6459         prepend it.
6460
6461 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6462
6463         Fix shy groups by implementing recording of all groups for
6464         repetition and backtracking.  Backport from 21.5.
6465         
6466         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6467         external_to_internal_register, external_to_internal_register_size,
6468         and update comments for re_nsub.
6469
6470         * regex.c (re_opcode_t): Update comments.
6471         (print_compiled_pattern): Ouput external_to_internal_register,
6472         external_to_internal_register_size, and re_ngroups for debugging.
6473         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6474         (regex_compile): Update header comment.
6475         Ensure that all groups are recorded so that repeat matches and
6476         backtracking work correctly.  Comment related warning for groups >
6477         255.
6478         (re_search_2): Construct map of API indexes (which count only
6479         nonshy groups) to internal register numbers, and keep it updated.
6480
6481 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6482
6483         * frame-gtk.c (gtk_make_frame_visible):
6484         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6485         show/hide.  This is what X uses and is prevents previously hidden
6486         widgets from suddenly reappearing.
6487         * gtk-xemacs.c (gtk_xemacs_paint):
6488         * gtk-xemacs.c (gtk_xemacs_draw):
6489         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6490         drawable.
6491         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6492         size and location changes so that they can be seen before the next
6493         idle event.  Without this rapid changes to scrollbar properties
6494         are not seen.
6495
6496 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6497
6498         * console-gtk.h:
6499         * console-gtk.h (struct gtk_frame):
6500         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6501           Add hash tables track tab_control callback data.
6502           Added #defines for GTK object data names.
6503           Declaration of gtk_widget_to_frame().
6504         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6505         * frame-gtk.c (gtk_widget_to_frame): New.
6506         * frame-gtk.c (gtk_create_widgets):
6507         * frame-gtk.c (allocate_gtk_frame_struct):
6508         * frame-gtk.c (gtk_mark_frame):
6509         Manage frame callbakc hash tables.
6510         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6511         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6512         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6513         of widget size.
6514         * glyphs-gtk.c (gtk_widget_query_geometry): New
6515         * glyphs-gtk.c (gtk_register_gui_item): New
6516         * glyphs-gtk.c (gtk_add_tab_item): New
6517         * glyphs-gtk.c (gtk_tab_control_callback): New
6518         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6519         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6520         Use correct list when loading item.
6521         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6522         Register new methods.
6523         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6524         default size, for widgets.
6525         * gui-x.c:  Improved comment.
6526         * menubar-gtk.c (__generic_button_callback): Use
6527         gtk_widget_to_frame instead of __get_channel.
6528         * scrollbar-gtk.c:
6529         * ui-gtk.c: Use symbolic names for GTK object data.
6530
6531 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6532
6533         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6534
6535 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6536
6537         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6538
6539 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6540
6541         * malloc.c (morecore): siz is a long because in some architectures
6542         (eg ia-64) an int cannot hold the address range.  Additional patch
6543         from the SuSe distribution.
6544
6545 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6546
6547         * emacs.c:
6548         * malloc.c: lim_data is a long because in some architectures
6549         (eg ia-64) an int cannot hold the address range.
6550         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6551         instead of ulimit() because ulimit() always returns -1.
6552
6553 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6554
6555         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6556
6557 2004-06-11  David Kastrup  <dak@gnu.org>
6558
6559         * search.c (match_limit): Don't flag an error if match-data
6560         exceeding the allocated search_regs.num_regs gets requested, just
6561         return Qnil.
6562
6563 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6564
6565         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6566         replace symbolic color entries with the real colors specified in
6567         xpm-color-symbols, before passing the XPM to gtk.
6568         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6569         instead of a GTK specific field, so that it is used in by generic
6570         code.
6571
6572 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6573
6574        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6575         coredump from deref of NULL ptr (ExtData)
6576
6577 2004-04-19  Jerry James  <james@xemacs.org>
6578
6579         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6580         VALBITS to compute the location of the sign bit.
6581         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6582         of VALBITS with EMACS_INT_MAX.
6583         * events.c (Fevent_timestamp): Ditto.
6584         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6585         compute the halfway point to timestamp wraparound.
6586         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6587         EMACS_INT_MIN instead of using VALBITS.
6588         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6589         incorrect number with VALBITS.
6590         * fns.c (Frandom): Correct number of integer bits in docstring.
6591         Use INT_VALBITS instead of VALBITS to compute the denominator.
6592         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6593         build random numbers.
6594
6595 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6596         * event-gtk.c:
6597         * event-gtk.c (gtk_event_to_emacs_event):
6598         * menubar-gtk.c:
6599         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6600         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6601         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6602         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6603         * menubar-gtk.c (__activate_menu):
6604         * menubar-gtk.c (convert_underscores):
6605         * menubar-gtk.c (remove_underscores):
6606         * menubar-gtk.c (menu_convert):
6607         * menubar-gtk.c (menu_descriptor_to_widget_1):
6608         * menubar-gtk.c (menu_descriptor_to_widget):
6609         * menubar-gtk.c (menu_can_reuse_widget):
6610         * menubar-gtk.c (menu_create_menubar):
6611         * menubar-gtk.c (gtk_popup_menu):
6612         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6613         Added support for Gtk menu bar and menu item mnemonics.
6614
6615 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6616
6617         * sysdll.c: (dll_function): Added support for finding symbols in
6618         Darwin shared libraries as well in Darwin bundles.
6619         * sysdll.c (image_for_address): New
6620         * sysdll.c (my_find_image): New
6621         * sysdll.c (search_linked_libs): New
6622
6623 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6624
6625         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6626         return to GTK requires a different API to marshalling data to use
6627         as GTK parameters.
6628         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6629
6630 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6631
6632         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6633
6634 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6635
6636         * glyphs.c (process_image_string_instantiator):
6637         (Fset_console_type_image_conversion_list):
6638         Stop GCC from warning about shadowing of `exp'.
6639
6640         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6641
6642 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6643
6644         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6645
6646 2004-02-03  Vin Shelton  <acs@xemacs.org>
6647
6648         * glyphs.c (image_instance_layout): Remove pointless assertion.
6649         * regex.c (regex_grow_registers): Return type is void.
6650
6651 2004-02-02  Vin Shelton <acs@xemacs.org>
6652
6653         * XEmacs 21.4.15 is released
6654
6655 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6656
6657         * device-x.c (x_error_handler): Don't call stderr_out
6658
6659 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6660
6661         * buffer.c (other-buffer): Clarify documentation of order of
6662         arguments for FSF Emacs.
6663
6664 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6665
6666         * window.c (Fdelete_window): Dirty the mirror structure _before_
6667         marking the window deleted.
6668
6669 2003-09-15  Jerry James  <james@xemacs.org>
6670
6671         * event-msw.c (debug_mswin_messages): Conditionally compile
6672         messages missing from the Cygwin headers.
6673
6674 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6675
6676         * data.c (eq_with_ebola_notice): Fix typo in comment.
6677         (Ftrue_list_p): Improve docstring.
6678
6679 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6680
6681         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6682
6683 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6684
6685         * search.c (trivial_regexp_p): Regexps containing "\{" are
6686         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6687         Stefan Monnier for suggesting a diagnosis.
6688
6689 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6690
6691         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6692
6693 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6694
6695         * search.c (Fsearch_forward):
6696         (Fsearch_backward):
6697         Document negative count.
6698
6699 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6700
6701         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6702
6703 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6704
6705         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6706
6707 2003-09-15  Vin Shelton  <acs@xemacs.org>
6708
6709         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6710         21.5.
6711
6712 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6713
6714         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6715         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6716         (re_match_2_internal): Use TRANSLATE instead of
6717         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6718         non-ASCII char case conversion.
6719
6720 2003-09-08  Mike Sperber  <mike@xemacs.org>
6721
6722         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6723         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6724
6725 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6726
6727        * .gdbinit (pobj): fix printing of symbol name.
6728
6729 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6730
6731         * frame-x.c (x_layout_widgets): When resizing is about to cause
6732         frame size slip, mark it for redisplay.
6733
6734 2003-08-18  Jerry James  <james@xemacs.org>
6735
6736         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6737
6738 2003-09-03  Vin Shelton <acs@xemacs.org>
6739
6740         * XEmacs 21.4.14 is released
6741
6742 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6743
6744         * config.h.in (REGEX_MALLOC): Make it configure'able.
6745
6746 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6747
6748         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6749         linking.
6750         * sysdll.c (dll_init):
6751         * sysdll.c (dll_open):
6752         * sysdll.c (dll_close):
6753         * sysdll.c (dll_function):
6754         * sysdll.c (dll_variable):
6755         * sysdll.c (dll_error):
6756         Add support for loading bundles using Darwin/MacOSX
6757         native API.
6758
6759 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6760
6761         * process.c (start-process-internal): Document coding systems.
6762
6763 2003-07-30  Jerry James  <james@xemacs.org>
6764
6765         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6766
6767 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6768
6769         * event-msw.c (mswindows_enqueue_mouse_button_event):
6770         * event-msw.c (mswindows_wnd_proc):
6771           enqueue button event when scrollwheel event isn't handled by 
6772           mswindows_handle_mousewheel_event, such as when the scrollbars
6773           are not showing.
6774
6775 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6776
6777         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6778
6779 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6780
6781         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6782
6783 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6784
6785         * regex.c (re_match_2_internal): Fix matching degenerate word
6786         boundaries.
6787
6788 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6789
6790         * XEmacs 21.4.13 is released
6791
6792 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6793
6794         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6795         * lisp.h (<inttypes.h>):
6796         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6797         the definition.
6798
6799 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6800
6801         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6802         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6803         Result: "temacs can only be run in -batch mode."
6804         Fix: Check xemacs executable candidate for directory-ness.
6805
6806 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6807
6808         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6809           they conflict with <sys/types.h>.
6810
6811 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6812
6813         * database.c: Berkeley DB wants __STDC__ to be defined.
6814
6815 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6816
6817         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6818
6819 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6820
6821         * process-unix.c (unix_send_process): Fix C++ compile error.
6822
6823 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6824
6825         * Added .dylib as an acceptable shared library file extension
6826         * to support MacOSX.
6827
6828 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6829
6830         * EmacsFrameP.h (EmacsFramePart):
6831         Kludge to allow compiling with Motif1, but linking with Motif2.
6832
6833 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6834
6835         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6836
6837
6838 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6839
6840         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6841
6842 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6843
6844         * sysdll.c: Included lisp.h to define needed alloca_array.
6845
6846 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6847
6848         Make XEmacs redisplay 10 times faster.
6849         If, that is, you're using a slow X connection and MoveOpaque.
6850         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6851         Use compress_motion = TRUE.
6852         * EmacsFrame.c (emacsFrameClassRec): 
6853         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6854         * EmacsManager.c (emacsManagerClassRec):
6855         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6856
6857 2003-01-30  Vin Shelton  <acs@xemacs.org>
6858
6859         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6860
6861 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6862
6863         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6864         Patch by Martin Buchholz.
6865
6866 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6867
6868         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6869         Thanks to icc for warning and Martin Buchholz for reporting.
6870
6871 2003-01-29  Vin Shelton <acs@xemacs.org>
6872
6873         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6874
6875         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6876         remember to multiply by the element size.
6877
6878 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
6879
6880         * XEmacs 21.4.12 "Portable Code" is released.
6881
6882 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
6883
6884         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6885         * s/cygwin.sc: new linker file.
6886
6887 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
6888
6889         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6890
6891         * redisplay-x.c (x_output_string): Use X11-specified types.
6892         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6893         * emacs.c (__free_hook): Use typeof with Intel compiler.
6894         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6895
6896 2003-01-08  Andy Piper  <andy@xemacs.org>
6897
6898         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6899         reserve size during unexec().
6900
6901 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
6902
6903         * process-unix.c (unix_create_process): Don't let outchannel block.
6904
6905 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
6906
6907         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6908         Needed for IsBadReadPtr().
6909
6910 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
6911
6912         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6913
6914 2002-12-14  Ben Wing  <ben@xemacs.org>
6915
6916         * callint.c: Declaration error.
6917         * dumper.c (pdump):
6918         * dumper.c (pdump_load): Warning fix.
6919         * process.c: GCPRO error.
6920         * glyphs.c (unmap_subwindow):
6921         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6922         * event-stream.c (maybe_kbd_translate): Wrong argument to
6923         character_to_event().
6924
6925         * alloc.c (garbage_collect_1):
6926         * emacs.c:
6927         * emacs.c (debug_can_access_memory):
6928         * emacs.c (fatal_error_signal):
6929         * emacs.c (mswindows_handle_hardware_exceptions):
6930         * emacs.c (main_1):
6931         * emacs.c (main):
6932         * emacs.c (assert_failed):
6933         * emacs.c (syms_of_emacs):
6934         * lisp.h:
6935         * print.c:
6936         * print.c (std_handle_out_va):
6937         * print.c (write_string_to_stdio_stream):
6938         * print.c (write_fmt_string):
6939         * print.c (printing_badness):
6940         * print.c (printing_major_badness):
6941         * print.c (print_internal):
6942         * print.c (debug_print_no_newline):
6943         * print.c (debug_backtrace):
6944         Be more defensive in handling bad values when printing.  Add code
6945         from trunk involving inhibit_non_essential_printing_operations.
6946         When going down or in debug_print(), don't do external conversion
6947         and such and try really, really hard when printing to avoid core
6948         dumping.  Add force-debugging-signal, debug_break().
6949
6950 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
6951
6952         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6953         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6954
6955 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
6956
6957         * database.c: Fix open_database. Berkeley DB API has changed in
6958         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6959
6960 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
6961
6962         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6963
6964 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
6965
6966         * event-Xt.c (Xt_timeout):
6967         (Xt_timeout_callback):
6968         (emacs_Xt_add_timeout):
6969         (emacs_Xt_remove_timeout):
6970         (Xt_timeout_to_emacs_event):
6971         Turn completed_timeouts from a stack into a queue.  Fixes
6972         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6973
6974 2002-11-07  Wolfram Gloger  <wg@malloc.de>
6975
6976         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6977         * emacs.c (main): Assert that mmap'd allocation is disabled.
6978
6979 2002-10-14  Andy Piper  <andy@xemacs.org>
6980
6981         * glyphs-widget.c (layout_query_geometry): add in fiddle
6982         factor. Include border text in width layout calculation.
6983         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6984
6985 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
6986
6987         * XEmacs 21.4.10 "Military Intelligence" is released.
6988
6989 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
6990
6991         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
6992         using the NAS private array SoundFileInfo that no longer exists in
6993         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
6994         and earlier.  This is broken for some versions between 1.5a and
6995         1.5f.
6996
6997 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
6998
6999         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7000
7001         * emacs.c (shut_down_emacs): Improve crash message.
7002
7003 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7004
7005         * file-coding.c (determine_real_coding_system): Check for coding
7006         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7007         shebangs and Python PEP 263.
7008
7009 2002-10-08  Andy Piper  <andy@xemacs.org>
7010
7011         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7012         if static sizes haven't been set.
7013
7014 2002-08-30  Mike Alexander  <mta@arbortext.com>
7015
7016         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7017         to close a socket.
7018
7019 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7020
7021         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7022
7023 2002-09-20  Mike Sperber <mike@xemacs.org>
7024
7025         (This partially gets back my patch from 2002-07-20 without the
7026         bug.)
7027         * callproc.c (child_setup): Remove Ben's comment noting confusion
7028         over the file descriptors >= 3: close_process_descs() doesn't
7029         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7030         * process-unix.c (unix_create_process): Call
7031         begin_dont_check_for_quit to inhibit unwanted interaction (and
7032         thus breaking of X event synchronicity) in the child.
7033
7034 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7035
7036         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7037         widget.
7038
7039 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7040
7041         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7042         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7043         the xemacs process did not exit, but looped infinitely here.  This
7044         fixes that problem.
7045
7046 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7047
7048         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7049         (find_context): Improve comments.
7050
7051         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7052         (re_match_2): An XCHAR_TABLE operation was missing.
7053
7054         Many of the following changes were inspired by Andy Piper's (now
7055         obsolete) patch to make syntax-table text property lookup optional.
7056
7057         [Documentation]
7058
7059         * syntax.h (top level): Document semantics of syntax flags.
7060         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7061         * syntax.c, syntax.h (top level): Document syntax cache better in
7062         comments.
7063
7064         [Instrument syntax caching (temporary change)]
7065
7066         * syntax.h (enum syntax_cache_statistics_functions, struct
7067         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7068         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7069         * syntax.c (scan_words, Fforward_comment, scan_lists,
7070         Fbackward_prefix_characters):
7071         * font-lock.c (find_context):
7072         Use them to instrument syntax caching. 
7073         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7074         syntax_cache_statistics_function_names): New type and variables.
7075         * syntax.c (update_syntax_cache): Update and report statistics.
7076
7077         [Major syntax cache optimizations]
7078
7079         syntax.c (lookup_syntax_properties): Default off.
7080
7081         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7082         * syntax.c (update_syntax_cache):
7083         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7084
7085         [Minor syntax cache optimizations and code clarifications]
7086
7087         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7088         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7089         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7090         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7091         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7092         (Code clarification.)
7093
7094         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7095         scan_lists): Compute code from syncode, use Boolean macros instead
7096         of redundant masking operations.  (Code clarification; any decent
7097         compiler can do this optimization.)
7098
7099         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7100         for clarity.
7101
7102         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7103         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7104         use F*_single_property_change instead of F*_extent_change.
7105         Currently F*_single_property_change is _much_ less efficient.
7106
7107         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7108         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7109         syntax_cache.object properly, don't leave Qt or Qnil.
7110         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7111         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7112         tests for Qt or Qnil.
7113
7114 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7115
7116         * redisplay.c (point_in_line_start_cache): 
7117         * extents.c (print_extent_1):
7118         Fix warnings.
7119
7120         * extents.c (Fset_extent_property): Document `syntax-table' property.
7121
7122         * extents.h (Fnext_single_property_change): EXFUN it.
7123
7124 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7125
7126         * search.c (clear_unused_search_regs): New static function.
7127         (search_buffer): 
7128         (simple_search): 
7129         (boyer_moore):
7130         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7131         Minor clarifications in comments.
7132
7133         * regex.c (re_match_2_internal): Ensure no stale submatches.
7134
7135 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7136
7137         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7138
7139 2002-08-29  Jerry James  <james@xemacs.org>
7140
7141         * lisp.h: structrures -> structures.
7142
7143 2002-06-03  Andy Piper  <andy@xemacs.org>
7144
7145         * frame.c (frame_conversion_internal): add conversion appropriate
7146         for setting frame dimensions in pixels.
7147
7148         * console.h (struct console_methods): add device-specific widget
7149         layout functions.
7150
7151         * emacs.c (main_1): initialize glyph vars.
7152
7153         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7154         (handle_focus_event_2): new function. Allow focus to
7155         be set to a particular window and widget.
7156         (enqueue_focus_event): new function. Create a
7157         synthetic focus event.
7158         (emacs_Xt_handle_magic_event): call
7159         handle_focus_event_2.
7160
7161         * frame.c (Fset_frame_pixel_height): new function. Allow
7162         pixel-based sizing. Does the right thing on character-oriented
7163         displays.
7164         (Fset_frame_pixel_width): ditto.
7165         (Fset_frame_pixel_size): ditto.
7166         (syms_of_frame): declare.
7167
7168         * general-slots.h: add :vertically-justify and
7169         :horizontally-justify.
7170
7171         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7172         (mswindows_widget_border_width): new function.
7173         (mswindows_combo_box_instantiate): set border widths.
7174         (console_type_create_glyphs_mswindows): declare.
7175
7176         * glyphs-widget.c:
7177         (check_valid_justification): allow vertical and horizontal
7178         justification.
7179         (widget_border_width): new function. Call device methods.
7180         (widget_instance_border_width): ditto.
7181         (logical_unit_height): new function. Determine the height of a
7182         logical-unit. Logical units are intended to provide grid-like
7183         layout for subcontrols in a layout. If the layout is
7184         :vertically-justify top then subcontrols will be positioned on
7185         logical-unit boundaries, thus allowing adjacent subcontrols to
7186         line up.
7187         (widget_logical_unit_height): ditto for widgets.
7188         (redisplay_widget): misc cleanup.
7189         (widget_spacing): new function. Call device specific
7190         methods. Intended to be the default gap between adjacent widgets.
7191         (widget_query_geometry): use new spacing functions to determine
7192         appropriate geometry.
7193         (initialize_widget_image_instance): initialize horizontal and
7194         vertical justification.
7195         (widget_instantiate): use logica-units where appropriate for
7196         sizing large widgets.
7197         (button_query_geometry): use widget_instance_border_width.
7198         (tree_view_query_geometry): ditto.
7199         (tab_control_query_geometry): ditto.
7200         (edit_field_query_geometry): new function.
7201         (layout_update): pick up :justify, :horizontally-justify and
7202         :vertically-justify none of which worked previously. :justify is
7203         used as a fallback for both horizontal and vertical justification.
7204         (layout_query_geometry): use logical units to size appropriately.
7205         (layout_layout): ditto.
7206         (Fwidget_logical_to_character_width): new function. Allow users to
7207         convert from logical units to characters so that frame sizes can
7208         be set appropriately.
7209         (Fwidget_logical_to_character_height): ditto.
7210         (syms_of_glyphs_widget): declare.
7211         (image_instantiator_edit_fields): add edit_field_query_geometry.
7212         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7213         :horizontally-justify.
7214         (specifier_vars_of_glyphs_widget): new function. Declare
7215         Vwidget_border_width which is not yet used.
7216
7217         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7218         (x_widget_border_width): new function.
7219         (x_widget_instantiate): create a sensible name for widgets.
7220         (console_type_create_glyphs_x): declare x_widget_border_width.
7221
7222         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7223         (struct Lisp_Image_Instance): add :vertically-justify and
7224         :horizontally-justify.
7225         (LAYOUT_JUSTIFY_TOP): new.
7226         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7227         (ROUND_UP): new macro. Round argument up to next integral
7228         interval.
7229
7230         * redisplay-output.c (redisplay_output_layout): misc formatting.
7231
7232         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7233
7234 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7235
7236         * XEmacs 21.4.9 "Informed Management" is released.
7237
7238 2002-08-19  Andy Piper  <andy@xemacs.org>
7239
7240         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7241         win32 format.
7242
7243         * realpath.c (xrealpath): normalize drive spec also so that dir
7244         sep chars are not mixed on cygwin.
7245
7246 2002-08-06  Jerry James  <james@xemacs.org>
7247
7248         * window.c (Fsplit_window): Count only half of the divider width
7249         against the left window when splitting horizontally. 
7250
7251 2002-06-24  Andy Piper  <andy@xemacs.org>
7252
7253         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7254         toolbar was cleared.
7255
7256         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7257         function. Split out from mswindows_output_frame_toolbars.
7258         (mswindows_output_frame_toolbars): move clear pieces to
7259         mswindows_output_frame_toolbars.
7260
7261         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7262         out from gtk_output_frame_toolbars.
7263         (gtk_output_frame_toolbars): move clear pieces to
7264         gtk_clear_frame_toolbars.
7265
7266         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7267         the frame is cleared. How this ever worked before is a mystery.
7268         (x_output_frame_toolbars): Only output toolbars.
7269         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7270
7271         * gutter.c (update_gutter_geometry):
7272         Mark frame layout changed.
7273         (update_frame_gutter_geometry, update_frame_gutters):
7274         Respect frame_layout_changed.
7275
7276         * console.h (struct console_methods): add
7277         clear_frame_toolbars_method.
7278
7279         * redisplay.c (redisplay_frame): call
7280         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7281
7282         * toolbar.h: declare update_frame_toolbars_geometry.
7283
7284         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7285         out from update_frame_toolbars.  Call clear_frame_toolbars.
7286         (update_frame_toolbars): only output, do not change geometry.
7287
7288         * redisplay.c: add frame_layout_changed.
7289
7290         * redisplay.h: add frame_layout_changed.
7291         (CLASS_RESET_CHANGED_FLAGS): set it.
7292         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7293         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7294         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7295
7296         * device.h (struct device): add frame_layout_changed.
7297         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7298
7299         * frame.h (struct frame): add frame_layout_changed.
7300         (MARK_FRAME_LAYOUT_CHANGED): new.
7301
7302 2002-06-30  Mike Alexander  <mta@arbortext.com>
7303
7304         * event-msw.c (mswindows_need_event): Don't wait for a new message
7305         if the queue is not empty.  Suggested by Paul Moore.
7306
7307 2002-06-12  Andy Piper  <andy@xemacs.org>
7308
7309         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7310         for printing on accurately.
7311
7312 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7313
7314         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7315         WM_ACTIVATE message. Make sure that the frame is visible if the
7316         window is visible. This seemss to fix the problem where XEmacs
7317         appears to freeze after switching desktops with certain virtual
7318         window managers.
7319         (debug_output_mswin_message): Added code to output message
7320         parameters for WM_WINDOWPOSCHANGED, 
7321         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7322
7323 2002-05-25  Andy Piper  <andy@xemacs.org>
7324
7325         * select-x.c (vars_of_select_x): Fix docstring of
7326         x-selection-strict-motif-ownership
7327
7328 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7329
7330         * keymap.c (get_keymap):
7331         Add comment about do_autoload GCPROs own args.
7332
7333 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7334
7335         * bytecode.c (execute_optimized_program): check_opcode ifdef
7336         ERROR_CHECK_BYTE_CODE.
7337
7338 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7339
7340         Thanks to Ben Wing and Michael Sperber.
7341
7342         * eval.c (Fcommand_execute):
7343         (Feval):
7344         (Ffuncall):
7345         (Fmacroexpand_internal):
7346         (function_argcount):
7347         callint.c (Fcall_interactively):
7348         Add comment about do_autoload GCPROs own args.
7349
7350         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7351
7352         * eval.c (Ffuncall): Extra braces to placate GCC.
7353
7354 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7355
7356         * backtrace.h (grow_specpdl):
7357         (SPECPDL_RESERVE):
7358         * EmacsFrame.c (EmacsFrameSetValues):
7359         * eval.c (grow_specpdl):
7360         * ExternalShell.c (hack_event_masks_1):
7361         * glyphs-x.c (convert_EImage_to_XImage): 
7362         (x_finalize_image_instance):
7363         * ralloc.c (page_size):
7364         (r_alloc_sbrk):
7365         * xgccache.c (gc_cache_hash):
7366         Fix unsigned comparison warnings.
7367
7368 2002-07-29  Jerry James  <james@xemacs.org>
7369
7370         * lread.c (locate_file): Any nonnegative return value indicates
7371         success if MODE is nonnegative.
7372
7373 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7374
7375         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7376         argument. 
7377
7378 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7379
7380         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7381
7382         * dumper.c (pdump_get_indirect_count):
7383         (pdump_scan_by_alignment):
7384         (pdump_dump_root_struct_ptrs):
7385         (pdump_dump_rtables):
7386         (pdump_dump_root_objects):
7387         (pdump):
7388         * nas.c (WaveOpenDataForReading):
7389         * fns.c (print_bit_vector):
7390         * font-lock.c (SINGLE_SYNTAX_STYLE):
7391         * glyphs.c (check_for_ignored_expose):
7392         (find_matching_subwindow):
7393         * glyphs-eimage.c:
7394         * imgproc.c (get_histogram):
7395         * redisplay.c (point_in_line_start_cache):
7396         * redisplay-output.c (redisplay_unmap_subwindows):
7397         * symbols.c (defsymbol_massage_name_1):
7398         (defkeyword_massage_name):
7399         (deferror_massage_name_and_message):
7400         * redisplay-x.c (x_output_string): 
7401         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7402         * frame.h (struct frame):
7403         * filelock.c (current_lock_owner):
7404         * doprnt.c (emacs_doprnt_1):
7405         * lisp.h (struct Lisp_Bit_Vector):
7406         (DO_REALLOC):
7407         Fix warnings.
7408
7409 2002-02-13  Ben Wing  <ben@xemacs.org>
7410
7411         * event-stream.c (reset_key_echo):
7412         * event-stream.c (reset_this_command_keys):
7413         * event-stream.c (execute_command_event):
7414         If console is dead as a result of C-x 5 0, then post-command stuff
7415         needs to be careful and do only non-console-specific stuff.
7416
7417 2002-07-01  Mike Sperber <mike@xemacs.org>
7418
7419         * process-unix.c (unix_send_process): Mark coding_outstream as
7420         non-open upon SIGPIPE.
7421
7422         * event-stream.c (Fnext_event): Reorder switch cases to something
7423         that makes sense.
7424
7425 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7426
7427         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7428         Don't bogusly reinitialize ascii_character property.
7429
7430 2002-07-08  Mike Sperber <mike@xemacs.org>
7431
7432         * process.c (Fstart_process_internal): Do error checking before we
7433         fork off the child, so the child can't muck with the state of the
7434         parent.
7435
7436 2002-07-08  Mike Sperber <mike@xemacs.org>
7437
7438         * ralloc.c (init_ralloc): Allocate properly for pdump.
7439
7440 2002-06-12  Andy Piper  <andy@xemacs.org>
7441
7442         * glyphs.c (query_string_geometry): check the string.
7443
7444         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7445         widget names.
7446
7447 2002-06-17  Jerry James  <james@xemacs.org>
7448
7449         * sysdll.c: Remove RTLD_GLOBAL initialization.
7450         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7451
7452 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7453
7454         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7455
7456 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7457
7458         * sysdep.c (sys_rename): Make sys_rename work for the case where
7459         Windows rename sets errno to EACCES if target file exists.
7460
7461 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7462
7463         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7464         Fix detection of metric units to work on Win95
7465
7466 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7467
7468         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7469
7470 2002-04-25  Andy Piper  <andy@xemacs.org>
7471
7472         * redisplay.c (create_text_block): Remove extra comment trailer.
7473
7474 2002-04-24  Andy Piper  <andy@xemacs.org>
7475
7476         * redisplay.c (create_text_block): Don't actually add propagation
7477         data if the line ends after we have added a glyph.
7478
7479 2002-04-22  Andy Piper  <andy@xemacs.org>
7480
7481         * extents.c (extent_fragment_update): check for glyphs we have
7482         previously displayed.
7483         * extents.c (print_extent_1): warning removal.
7484         * extents.h: change prototype.
7485         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7486         widths correctly for wide glyphs.
7487         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7488         * redisplay.c (prop_type): add PROP_GLYPH.
7489         * redisplay.c (struct prop_block): add glyph type
7490         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7491         to the propagation data.
7492         * redisplay.c (create_text_block): if there is a glyph in the
7493         propagation data use it to salt extent_fragment_update.
7494         * redisplay.c (create_string_text_block): ditto.
7495
7496 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7497
7498         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7499         * redisplay-output.c (compare_runes): Compare them.
7500         * redisplay.c: Update copyright date.
7501         * redisplay.c (pos_data): Add need_baseline_computation field.
7502         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7503         need_baseline_computation; zero yoffset. Set max_pixmap_height
7504         for all pixmaps, not just automatically positioned ones.
7505         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7506         * redisplay.c (calculate_baseline): New, compute textual baseline.
7507         * redisplay.c (add_glyph_rune): Call them.
7508         * redisplay.c (create_text_block): Likewise.
7509         * redisplay.c (create_overlay_glyph_block): Likewise.
7510         * redisplay.c (add_margin_runes): Likewise.
7511         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7512
7513         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7514         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7515         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7516         * redisplay-msw.c (mswindows_output_string): Likewise.
7517         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7518         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7519         * redisplay-x.c (x_output_display_block): Likewise.
7520
7521 2002-03-28  Ben Wing  <ben@xemacs.org>
7522
7523         * redisplay.c: Fixed bug in redisplay
7524         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7525         and down of the lines, since they're bigger than the line
7526         size. (It was seen most obviously when there's a horizontal scroll
7527         bar, e.g. do C-h a glyph or something like that.) The problem was
7528         that the glyph-contrib-p setting on glyphs was ignored even if it
7529         was set properly, which it wasn't until now.
7530
7531 2002-04-24  Andy Piper  <andy@xemacs.org>
7532
7533         * lisp.h (Dynarr_end): Fix definition.
7534
7535 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7536
7537         * redisplay.c (mark_redisplay): Remove call to
7538         update_frame_window_mirror.
7539
7540 2001-11-15  Andy Piper  <andy@xemacs.org>
7541
7542         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7543         cygwin (again).
7544
7545 2002-02-13  Andy Piper  <andy@xemacs.org>
7546
7547         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7548         we did in fact enqueue the XM_MAPFRAME event.
7549
7550 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7551
7552         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7553         to fix problem switching between virtual desktops under virtuawin
7554         virtual window manager.
7555
7556 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7557
7558         * event-msw.c: Typo fix.
7559         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7560         magic XM_MAPFRAME event has been sent.
7561
7562 2001-11-23  Andy Piper  <andy@xemacs.org>
7563
7564         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7565
7566 2001-11-21  Andy Piper  <andy@xemacs.org>
7567
7568         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7569         mouse events outside the frame.
7570
7571 2002-03-20  Andy Piper  <andy@xemacs.org>
7572
7573         * menubar-msw.c (mswindows_popup_menu): warning removal.
7574         * dialog-msw.c (dialog_popped_down): ditto.
7575
7576 2001-12-11  Andy Piper  <andy@xemacs.org>
7577
7578         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7579         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7580         popup_up_p.
7581         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7582         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7583         * menubar-msw.c (mswindows_popup_menu): ditto.
7584
7585 2001-10-29  Andy Piper  <andy@xemacs.org>
7586
7587         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7588         cancels.
7589
7590 2002-01-03  Andy Piper  <andy@xemacs.org>
7591
7592         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7593         letters.
7594         (xrealpath): ditto.
7595
7596 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7597
7598         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7599         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7600         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7601         Detect and handle case where machine is set up for metric units
7602
7603 2002-04-02  Andy Piper  <andy@xemacs.org>
7604
7605         * dired-msw.c (mswindows_get_files): 
7606         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7607         completely handled by XEmacs. Suggested by Thomas Vogler
7608         <mail@thomas-vogler.de>.
7609
7610 2001-11-14  Andy Piper  <andy@xemacs.org>
7611
7612         * nt.c (REG_ROOT): change registry key to XEmacs.
7613
7614 2002-04-27  Andy Piper  <andy@xemacs.org>
7615
7616         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7617
7618 2002-04-26  Andy Piper  <andy@xemacs.org>
7619
7620         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7621         behavior.
7622
7623 2002-03-14  Mike Alexander  <mta@arbortext.com>
7624
7625         * event-msw.c (mswindows_unwait_process): New, remove process from
7626         wait list
7627         * process-nt.c (nt_finalize_process_data): Call
7628         mswindows_unwait_process
7629         * console-msw.h: Declare mswindows_unwait_process
7630
7631 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7632
7633         * editfns.c (Fdecode_time):
7634         (Fformat_time_string):
7635         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7636         (make_time): Warning elimination (change arg name).
7637
7638 2001-11-24  Andy Piper  <andy@xemacs.org>
7639
7640         * window.c (Fsplit_window): Doc return type.
7641
7642 2002-04-01  Andy Piper  <andy@xemacs.org>
7643
7644         * emacs.c (Fkill_emacs): Only output message box in interactive
7645         mode.
7646
7647 2002-04-26  Andy Piper  <andy@xemacs.org>
7648  
7649         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7650         cygwin.
7651
7652 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7653
7654         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7655         bit platform.
7656
7657 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7658
7659         * XEmacs 21.4.8 "Honest Recruiter" is released.
7660
7661 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7662
7663         Supersedes 2002-04-17 patch.
7664
7665         * process.h (PROCESS_LIVE_P): Use the process status as
7666         evidence of health, not the state of the input stream.
7667         (PROCESS_READABLE_P): Say if the process is readable
7668         from. (It may be dead nonetheless.)
7669         (CHECK_READABLE_PROCESS): Test for that condition.
7670
7671         * process.c (create_process): Use PROCESS_READABLE_P.
7672         (read_process_output, set_process_filter): Likewise.
7673
7674         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7675         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7676
7677         This code is #if 0'd, this is not the time to add new functions:
7678
7679         * process.c (Fprocess_readable_p): Report readability status.
7680         * process.c (Qprocess_readable_p): New, associated symbol...
7681         * process.c (syms_of_process): ... initialize it.
7682
7683 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7684
7685         * XEmacs 21.4.7 "Economic Science" is released.
7686
7687 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7688
7689         * process.h (PROCESS_LIVE_P): Use the process status as
7690         evidence of health, not the state of the input stream.
7691
7692 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7693
7694         * sysdep.c (sys_siglist): change "signum" to "signal"
7695
7696 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7697
7698         * s/darwin.h: New file.
7699         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7700         
7701 2002-04-23  Andreas Jaeger  <aj@suse.de>
7702
7703         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7704         which use lib64 for 64-bit libs.
7705         (START_FILES): Likewise.
7706
7707 2002-02-11  Mike Sperber  <mike@xemacs.org>
7708
7709         * device-x.c: 
7710         (x_IO_error_handler):
7711         (x_init_device): Temporarily keep device in static variable
7712         `device_being_initialized' so we can recover gracefully from
7713         internal XOpenDevice failure.  (XOpenDevice is documented to
7714         return NULL on failure, but sometimes calls the IO error handler
7715         instead.)
7716
7717 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7718
7719         * dired.c (Ffile_name_all_completions): Change documentation --
7720         remove reference to completion-ignored-extensions.
7721         * dired.c (vars_of_dired): Change documentation for
7722         completion-ignored-extensions -- remove reference to
7723         file-name-all-completions.
7724
7725 2002-03-06  Jerry James  <james@xemacs.org>
7726
7727         * emodules.c (emodules_load): Fix multiple loading of same module.
7728
7729 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7730         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7731         RTLD_LAZY to avoid incorrect symbol binding when using nested
7732         shared libraries on Solaris.
7733
7734 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7735
7736         * fileio.c (Ffind_file_name_handler): Improve docstring.
7737
7738 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7739
7740         * fns.c (Fmapconcat): Improve docstring.
7741
7742 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7743
7744         * device-gtk.c: Add prototype for
7745         emacs_gtk_selection_clear_event_handle.
7746         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7747         selection.  Setup signal handler for "selection_clear_event"
7748         (emacs_gtk_selection_clear_event_handle).
7749
7750         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7751         other applications owning the clipboard (based on
7752         x_handle_selection_clear).
7753
7754 2001-12-23  William M. Perry  <wmperry@gnu.org>
7755
7756         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7757         
7758 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7759
7760         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7761
7762 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7763
7764         * XEmacs 21.4.6 "Common Lisp" is released.
7765
7766 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7767
7768         * search.c (Freplace_match): Add missing sub-expression functionality.
7769
7770         * buffer.c (decode_buffer): Add a check for pointer type to
7771         decode_buffer, before gcc's CSE optimization reorders a
7772         dereference in front of the allow_string test.
7773
7774 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7775
7776         * window.c (window_loop): Fix bug that sometimes prevented
7777         window_loop() from iterating across multiple devices.  Also, at
7778         Ben's request, changed infloop-detecting code to abort() instead
7779         of silently terminating window_loop().
7780
7781 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7782
7783         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7784         * editfns.c (make_time): New function.
7785         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7786         * lisp.h (make_time): Prototype and comment it.
7787         * dired.c (wasteful_word_to_lisp): Deprecate.
7788         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7789
7790 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7791
7792         * fileio.c (auto_save_1): Use current coding system, not
7793         escape-quoted.
7794
7795 2001-11-13  Ben Wing  <ben@xemacs.org>
7796
7797         * window.c:
7798         * window.c (window_truncation_on):
7799         * window.c (syms_of_window):
7800         truncate-partial-width-windows should respect the buffer being
7801         displayed, like other redisplay vars.
7802
7803 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7804
7805         * event-stream.c (Fread_key_sequence): save current buffer.
7806
7807 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7808
7809         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7810
7811 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7812
7813         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7814
7815 2001-10-26  Mike Alexander  <mta@arbortext.com>
7816
7817         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7818
7819 2001-10-25  Andy Piper  <andy@xemacs.org>
7820
7821         * ChangeLog:
7822         * dialog-msw.c (handle_directory_proc): new function.
7823          (handle_directory_dialog_box): new fucntion.
7824          (handle_file_dialog_box): use new directory dialog support.
7825          (mswindows_make_dialog_box_internal): ditto.
7826         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7827         handling.
7828         (mswindows_find_frame): make global.
7829         * fileio.c (Fexpand_file_name): build fix.
7830         * general-slots.h: add Qdirectory.
7831         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7832         handling.
7833         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7834         cygwin not leaving win32 paths unchanged.
7835         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7836         cygwin runtime to do path conversion.
7837         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7838         (syms_of_win32): add new function.
7839         * window.c (window_loop): build fix.
7840
7841 2001-10-15  Andy Piper  <andy@xemacs.org>
7842
7843         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7844
7845 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7846
7847         * XEmacs 21.4.5 "Civil Service" is released.
7848
7849 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7850
7851         * glyphs-x.c: Force buffer-tab highlight update when moving the
7852         buffer, avoiding an ugly black border, used for keyboard focus
7853         indication, on a widget that can never have keyboard focus, the
7854         buffer tab.
7855
7856 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7857
7858         * process-unix.c (unix_open_multicast_group): Remove too much
7859         conversion between host and network byte order.
7860
7861 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7862
7863         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7864         before replacing them.
7865
7866         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7867         operation.
7868
7869         * src/window.c (undedicate_windows): Use it.
7870         * src/window.h: Add prototype.
7871
7872 2001-09-17  Ben Wing  <ben@xemacs.org>
7873
7874         * fileio.c (normalize_filename):
7875         * fileio.c (Fexpand_file_name):
7876         Fix various C++ compile errors in Andy's recent code.
7877         
7878         * callint.c (Fcall_interactively):
7879         * editfns.c (Ftemp_directory):
7880         * editfns.c (Fuser_full_name):
7881         * emacs.c (argmatch):
7882         * lread.c (locate_file_map_suffixes):
7883         * redisplay-x.c (x_ring_bell):
7884         Fix sign-compare warnings.
7885         
7886 2001-09-08  Andy Piper  <andy@xemacs.org>
7887
7888         * fileio.c (normalize_filename): copied from nt.c
7889         * (Ffile_name_directory): enable win32 paths under cygwin.
7890         * (Ffile_name_nondirectory): ditto.
7891         * (directory_file_name): ditto.
7892         * (Fexpand_file_name): ditto.
7893         * (Ffile_truename): ditto.
7894         * (Fsubstitute_in_file_name): ditto.
7895         * (Ffile_name_absolute_p): ditto.
7896         * (Ffile_readable_p): ditto.
7897
7898 2001-09-08  Andy Piper  <andy@xemacs.org>
7899
7900         * device-msw.c (mswindows_finish_init_device): remove dde
7901         initialization.
7902         * device-msw.c (mswindows_init_dde): factor out from
7903         mswindows_finish_init_device()
7904         * device-msw.c (init_mswindows_very_early): new function
7905         initialize but don't enable dde.
7906         * emacs.c (main_1): call init_mswindows_very_early.
7907         * event-msw.c:
7908         * event-msw.c (mswindows_dde_callback): only execute when we are
7909         ready.
7910         * symsinit.h: declare init_mswindows_very_early.
7911
7912 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7913
7914         [sjt: This has been in 21.5 for months with no complaints.]
7915
7916         * console.h (struct console_methods): Added flags member.
7917         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7918         (CONMETH_IMPL_FLAG):
7919         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7920         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7921
7922         * device.c (window_system_pixelated_geometry): Use the above macros.
7923
7924         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7925         implememntation flag.
7926         * device.h (DEVICE_DISPLAY_P): Use it.
7927
7928         * frame.c (delete_frame_internal): Use the above macro.
7929
7930         * redisplay.c (redisplay_device): Use it.
7931         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7932         (redisplay_frame): Ditto.
7933
7934         * device-msw.c (mswindows_device_implementation_flags): Removed.
7935         (msprinter_device_implementation_flags): Removed.
7936         (console_type_create_device_mswindows): Removed references to
7937         implementation_flags methods, set implementation flags here.
7938         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7939
7940         * device-gtk.c (gtk_device_implementation_flags): Removed method.
7941         (console_type_create_device_gtk): Removed method declaration.
7942         Added commented out statement which semantically matches the
7943         commented out statement in the above removed method.
7944
7945 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
7946
7947         The attached patch fixes a few warnings. 
7948
7949         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7950         * src/frame-gtk.c: guard against GNOME calls in GTK only
7951         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7952         * src/select-gtk.c: prototype lisp_to_time
7953
7954 2001-06-08  Ben Wing  <ben@xemacs.org>
7955
7956         ------ gc-in-window-procedure fixes ------
7957         
7958         * alloc.c:
7959         * alloc.c (struct post_gc_action):
7960         * alloc.c (register_post_gc_action):
7961         * alloc.c (run_post_gc_actions):
7962         * alloc.c (garbage_collect_1):
7963         Create "post-gc actions", to avoid those dreaded "GC during window
7964         procedure" problems.
7965
7966         * event-msw.c:
7967         Abort, clean and simple, when GC in window procedure.  We want
7968         to flush these puppies out.
7969
7970         * glyphs-msw.c:
7971         * glyphs-msw.c (finalize_destroy_window):
7972         * glyphs-msw.c (mswindows_finalize_image_instance):
7973         Use a post-gc action when destroying subwindows.
7974
7975         * lisp.h:
7976         Declare register_post_gc_action().
7977
7978         * scrollbar-msw.c:
7979         * scrollbar-msw.c (unshow_that_mofo):
7980         Use a post-gc action when unshowing scrollbar windows, if in gc.
7981
7982         * redisplay.c (mark_redisplay):
7983         Add comment about the utter evilness of what's going down here.
7984
7985         ------ cygwin setitimer fixes ------
7986         
7987         * Makefile.in.in (sheap_objs):
7988         * Makefile.in.in (profile_objs):
7989         * Makefile.in.in (objs):
7990         Compile profile.c only when HAVE_SETITIMER.
7991         
7992         * nt.c (mswindows_sigset):
7993         * nt.c (mswindows_sighold):
7994         * nt.c (mswindows_sigrelse):
7995         * nt.c (mswindows_sigpause):
7996         * nt.c (mswindows_raise):
7997         * nt.c (close_file_data):
7998         Style fixes.
7999         
8000         * nt.c:
8001         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8002         
8003         * profile.c:
8004         * profile.c (Fstart_profiling):
8005         * profile.c (Fstop_profiling):
8006         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8007         instead of just plain setitimer().
8008         
8009         * signal.c:
8010         * signal.c (set_one_shot_timer):
8011         * signal.c (alarm):
8012         Define qxe_setitimer() as an encapsulation around setitimer() --
8013         call setitimer() directly unless Cygwin or MS Win, in which case
8014         we use our simulated version in win32.c.
8015         
8016         * systime.h:
8017         * systime.h (struct itimerval):
8018         * systime.h (ITIMER_REAL):
8019         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8020         comment about "qxe" and the policy regarding encapsulation.
8021
8022         * win32.c:
8023         * win32.c (setitimer_helper_proc):
8024         * win32.c (setitimer_helper_period):
8025         * win32.c (setitimer_helper):
8026         * win32.c (mswindows_setitimer):
8027         Move setitimer() emulation here, so Cygwin can use it.
8028         Rename a couple of functions and variables to be longer and more
8029         descriptive.  In setitimer_helper_proc(), send the signal
8030         using either mswindows_raise() or (on Cygwin) kill().  If for
8031         some reason we are still getting lockups, we'll change the kill()
8032         to directly invoke the signal handlers.
8033
8034         ------ windows shell fixes ------
8035         
8036         * callproc.c:
8037         * ntproc.c:
8038         Comments about how these two files must die.
8039
8040         * callproc.c (init_callproc):
8041         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8042         not just COMSPEC. (more correct and closer to FSF.) Don't
8043         force a value for SHELL into the environment. (Comments added
8044         to explain why not.)
8045         
8046         * nt.c (init_user_info):
8047         Don't shove a fabricated SHELL into the environment.  See above.
8048
8049 2001-06-01  Ben Wing  <ben@xemacs.org>
8050
8051         * Makefile.in.in (ldflags):
8052         eliminate that pesky "defaulting to 00401000" warning.
8053         * nt.h:
8054         eliminate warnings.
8055
8056 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8057
8058         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8059         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8060
8061 2001-04-24  Jerry James <james@xemacs.org>
8062
8063         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8064         correct order.
8065
8066 2001-06-01  Ben Wing  <ben@xemacs.org>
8067
8068         * event-msw.c (debug_mswin_messages):
8069         conditionalize the messages that were causing compile errors.
8070         (if only macros could generate #ifdef statements ...)
8071
8072 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8073
8074         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8075
8076 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8077
8078         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8079
8080 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8081
8082         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8083         * process-unix.c (unix_canonicalize_host_name):
8084         sysdep.c (init_system_name):
8085         Use it to conditionally support IPv6 canonicalization.
8086
8087 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8088
8089         * event-msw.c:
8090         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8091
8092 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8093
8094         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8095         attempt is made to scroll when no scroll bar is available.
8096
8097 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8098
8099         * input-method-motif.c (XIM_delete_frame): New callback.
8100         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8101         got deleted from 21.4.3.)
8102
8103 2001-06-01  Ben Wing  <ben@xemacs.org>
8104
8105         * nt.c (mswindows_utime):
8106         * nt.c (close_file_data):
8107         fix off-by-one-indirection error.
8108
8109 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8110
8111         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8112         because set_file_times() now takes Lisp_Object path, instead of
8113         char*.
8114         * nt.c: Include buffer.h.
8115         * nt.c (convert_from_time_t): New.
8116         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8117         not set mtime correctly.
8118         * nt.h: Declare mswindows_utime().
8119         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8120         path, instead of char*.
8121         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8122
8123 2001-05-30  Ben Wing  <ben@xemacs.org>
8124
8125         For 21.4:
8126
8127         (Stephen, just take all event-msw.c patches.  This includes
8128         the "iconify" fix below.)
8129
8130         * event-msw.c:
8131         * event-msw.c (mswindows_dequeue_dispatch_event):
8132         * event-msw.c (assert):
8133         * event-msw.c (emacs_mswindows_quit_p):
8134         * event-msw.c (debug_mswin_messages):
8135         * event-msw.c (debug_output_mswin_message):
8136         * event-msw.c (vars_of_event_mswindows):
8137         Fix yet more problems with C-g handling.
8138         Implement debug-mswindows-events.
8139         
8140 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8141
8142         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8143         
8144 2001-05-23  Ben Wing  <ben@xemacs.org>
8145
8146         * event-msw.c (winsock_writer):
8147         * event-msw.c (winsock_closer):
8148         prior kludgy code was clobbering the buffer, thinking it was
8149         "unused" space to store an unneeded return value; instead, use
8150         the variable we've already got staring us in the face.
8151
8152 2001-05-17  Andy Piper  <andy@xemacs.org>
8153
8154         * sysfile.h: don't assume that file attributes are boolean
8155
8156 2001-05-23  Ben Wing  <ben@xemacs.org>
8157
8158         * device-msw.c (msprinter_init_device):
8159         signal an error rather than crash with an unavailable network
8160         printer (from Mike Alexander).
8161         
8162         * event-msw.c:
8163         * event-msw.c (struct winsock_stream):
8164         * event-msw.c (winsock_writer):
8165         * event-msw.c (winsock_closer):
8166         * event-msw.c (make_winsock_stream_1):
8167         cleanup headers.  fix (hopefully) an error with data corruption
8168         when sending to a network connection.
8169
8170         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8171         to handle the ~user prefix by (a) always assuming we're referencing
8172         ourselves and not even verifying the user -- hence any file with
8173         a tilde as its first char is invalid! (b) if there wasn't a slash
8174         following the filename, the pointer was set *past* the end of
8175         file and we started reading from uninitialized memory.  Now we
8176         simply treat these as files, always.
8177
8178         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8179         
8180 2001-05-19  Ben Wing  <ben@xemacs.org>
8181
8182         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8183
8184         * process-nt.c:
8185         * process-nt.c (vars_of_process_nt):
8186         remove unused mswindows-quote-process-args.  rec for 21.4.
8187         
8188 2001-05-12  Ben Wing  <ben@xemacs.org>
8189
8190         * event-msw.c (mswindows_dde_callback):
8191         * event-msw.c (mswindows_wnd_proc):
8192         eliminate cygwin warnings.
8193
8194 2001-05-06  Ben Wing  <ben@xemacs.org>
8195
8196         * console-msw.h:
8197         * device-msw.c:
8198         * device-msw.c (print_dialog_worker):
8199         * device-msw.c (mswindows_handle_print_dialog_box):
8200         * device-msw.c (syms_of_device_mswindows):
8201         * dialog-msw.c (mswindows_make_dialog_box_internal):
8202         * general-slots.h:
8203         implement printing the selection when it's selected.
8204
8205 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8206
8207         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8208
8209 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8210
8211         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8212         EMACS_INT is signed.
8213
8214 2001-04-15  Michael Lausch  <mla@1012surf.net>
8215
8216         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8217         gtk_widget_request_size() to give scrollbar >0 width for
8218         GTK >1.2.8.
8219
8220 2001-05-30  William M. Perry  <wmperry@gnu.org>
8221
8222         * event-gtk.c: Check for buttons as modifier keys.
8223
8224 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8225
8226         * s\mingw32.h:
8227         Properly find MinGW's <process.h> inside Cygwin's restructured
8228         include directories.  Don't try to include <cygwin/version.h>
8229         since we are dropping support for MinGW in versions of Cygwin
8230         earlier than b21.
8231         * nt.c:
8232         Drop support for MinGW in versions of Cygwin before b21.
8233         * sysdep.c:
8234         Properly find MinGW's <process.h> inside Cygwin's restructured
8235         include directories.
8236         * syswindows.h:
8237         Drop support for MinGW in versions of Cygwin before b21.
8238         * unexcw.c:
8239         Even though a.out.h is no longer detected by configure, allow
8240         MinGW to use it until we figure out how to do the job with Win32.
8241
8242 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8243
8244         * syntax.c (find_start_of_comment):
8245         Fix `unbalanced parentheses' bug when dealing with mixed comment
8246         styles in c++/java/etc. mode
8247
8248 2001-05-29  Mike Alexander  <mta@arbortext.com>
8249
8250         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8251         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8252
8253 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8254
8255         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8256
8257 2001-03-31  Mike Sperber <mike@xemacs.org>
8258
8259         * search.c (Freplace_match): Support FSF-style specification of
8260         match subexpression when applied to a buffer.
8261
8262 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8263
8264         * event-stream.c (is_scrollbar_event): add missing semicolon
8265
8266 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8267
8268         * Makefile.in.in: Use TAR macro instead of hardcoding
8269           tar.  Allows use of GNU tar instead of system tar
8270
8271 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8272
8273         * event-stream.c (is_scrollbar_event): add missing semicolon
8274
8275 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8276
8277         * XEmacs 21.4.3 "Academic Rigor" is released.
8278
8279 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8280
8281         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8282
8283 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8284
8285         * buffer.c (Vcase_fold_search): Remove obsolete
8286           comment about non ASCII case-fold-search.  This
8287           bug has been fixed by case-table changes.
8288
8289 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8290
8291         * event-msw.c: Restore include of events-mod.h.
8292
8293 2001-04-22   zhaoway  <zw@debian.org>
8294
8295         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8296         !HAVE_SCROLLBARS.
8297
8298 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8299
8300         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8301
8302 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8303
8304         * mule-charset.c (Fmake_charset): Add missing else.
8305
8306 2001-04-23  Ben Wing  <ben@xemacs.org>
8307
8308         * event-msw.c (FAKE_MOD_QUIT):
8309         * event-msw.c (mswindows_dequeue_dispatch_event):
8310         * event-msw.c (mswindows_wnd_proc):
8311         * event-msw.c (emacs_mswindows_quit_p):
8312         Get critical quit working.
8313
8314 2001-05-05  Ben Wing  <ben@xemacs.org>
8315
8316         * console-msw.h:
8317         * device-msw.c:
8318         * device-msw.c (mswindows_get_default_margin):
8319         * frame-msw.c (mswindows_size_frame_internal):
8320         * frame-msw.c (msprinter_init_frame_1):
8321         * frame-msw.c (vars_of_frame_mswindows):
8322         Change top/bottom margin defaults to 0.5 inches.
8323
8324 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8325
8326         Fix link error with gcc 3.0 on Linux.
8327         * terminfo.c (UP): Remove.
8328         * terminfo.c (BC): Remove.
8329         * terminfo.c (PC): Remove.
8330         They weren't used, and in any case, these symbols should be
8331         defined in the *library*.
8332
8333 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8334
8335         * s/aix4.h: Fix crash with xlc -O3.
8336         Improve comment explaining how -O3 works.
8337
8338 2001-04-15  Ben Wing  <ben@xemacs.org>
8339
8340         * event-stream.c:
8341         * event-stream.c (Fnext_event):
8342         * event-stream.c (is_scrollbar_event):
8343         * event-stream.c (execute_command_event):
8344         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8345         crash' problem.  His fix introduces other problems.  We filter
8346         out scrollbar events specifically, making them somewhat invisible
8347         to command-building, and not appearing in `this-command-keys'.
8348         More work is still needed (see comments in event-stream.c), but
8349         this fixes all the major problems.
8350
8351 2001-04-20  Ben Wing  <ben@xemacs.org>
8352
8353         * .cvsignore: Added stuff for Windows.
8354
8355 2001-04-28  Ben Wing  <ben@xemacs.org>
8356
8357         * buffer.c (Ferase_buffer):
8358         * editfns.c (buffer_insert1):
8359         * editfns.c (Finsert_before_markers):
8360         * editfns.c (Finsert_string):
8361         * editfns.c (Finsert_char):
8362         * editfns.c (Fdelete_region):
8363         * editfns.c (Fwiden):
8364         * editfns.c (Fnarrow_to_region):
8365         remove bogus lines setting zmacs_region_stays to 0.
8366         
8367 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8368
8369         * process-unix.c (unix_open_network_stream): If connect() fails
8370         invalidate file descriptor after closing it.
8371
8372 2001-03-08  Mike Alexander  <mta@arbortext.com>
8373
8374         * event-msw.c (mswindows_need_event_in_modal_loop):
8375         Don't dispatch a message if we didn't get one.
8376         (mswindows_need_event):
8377         Terminate the correct process when one exits instead of the first
8378         one on Vprocess_list and look for process termination when in
8379         mswindows_protect_modal_loop.
8380
8381 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8382
8383         * XEmacs 21.4.1 "Copyleft" is released.
8384
8385 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8386
8387         * input-method-motif.c (XIM_delete_frame): New callback.
8388         (XIM_init_frame): Register it.
8389
8390 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8391
8392         * XEmacs 21.4.0 "Solid Vapor" is released.
8393
8394 2001-04-15  Ben Wing  <ben@xemacs.org>
8395
8396         * cmdloop.c (call_command_loop):
8397         Fix braino in bit-rotting code.
8398         
8399 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8400
8401         * extents.c (Fset_extent_endpoints): Force creation of extent info
8402         in buffer_or_string.
8403
8404         * extents.c (process_extents_for_insertion_mapper): Correctly
8405         check for open-open zero-length extents.
8406
8407 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8408
8409         * lisp.h: New typedefs Memory_count, Element_count.
8410         * regex.c:
8411         * regex.h:
8412         Sign-compare warning elimination: several unsigned -> signed.
8413         Based on work by Ben Wing <ben@xemacs.org>.
8414
8415 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8416
8417         * XEmacs 21.2.47 "Zephir" is released.
8418
8419 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8420
8421         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8422
8423 2001-04-03  Mike Sperber <mike@xemacs.org>
8424
8425         * search.c: Revert previous patch due because of release.
8426
8427 2001-03-30  Ben Wing  <ben@xemacs.org>
8428
8429         * s\cygwin32.h:
8430         Add missing killpg prototype.
8431
8432         * elhash.c:
8433         Add a comment about fixing problems when a new entry is added
8434         while mapping.
8435
8436         * frame-msw.c (mswindows_init_frame_1):
8437         Fix compile warnings.
8438
8439         * menubar.c (vars_of_menubar):
8440         Provide `menu-accelerator-support' to indicate that we properly
8441         support %_ in menu specifications, so that package code can
8442         conditionalize on this (and remove %_ from menu specifications
8443         on older versions).
8444
8445         * event-msw.c:
8446         * scrollbar-msw.c:
8447         * scrollbar-msw.c (can_scroll):
8448         * scrollbar-msw.h:
8449         Fix handling of mouse wheel under Windows to follow standards --
8450         now scrolls window under pointer, not selected window.
8451
8452 2001-03-31  Mike Sperber <mike@xemacs.org>
8453
8454         * search.c (Freplace_match): Support FSF-style specification of
8455         match subexpression when applied to a buffer.
8456
8457 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8458
8459         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8460         function to modify KEYMAP, so map over a copy of the hash table.
8461
8462 2001-03-21  Martin Buchholz <martin@xemacs.org>
8463
8464         * XEmacs 21.2.46 "Urania" is released.
8465
8466 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8467
8468         * realpath.c (xrealpath): Make file-truename work with symlinks to
8469         /cygdrive paths on cygwin. Always lowercase drive-letters on
8470         native windows.
8471         (cygwin_readlink): Don't try to find canonical filename unless
8472         file exists.
8473
8474 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8475
8476         * ChangeLog: Log GTK merge.
8477
8478         * dumper.c:
8479         * select-x.c:
8480         * specifier.c:
8481         * symeval.h:
8482         Revert gratuitous whitespace changes from GTK merge.
8483
8484         * emacs.c: Document end of complex #ifdef @ l. 1495.
8485
8486
8487 2001-03-12  Andy Piper  <andy@xemacs.org>
8488
8489         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8490         have to do likewise.
8491
8492 2001-03-12  Andy Piper  <andy@xemacs.org>
8493
8494         * sysdep.c: we only support mingw now.
8495
8496 2001-03-09  Andy Piper  <andy@xemacs.org>
8497
8498         * unexcw.c (copy_executable_and_dump_data_section): making approx
8499         overrun a warning only.
8500
8501 2001-03-10  William M. Perry  <wmperry@aventail.com>
8502
8503         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8504         satisfy Stephen's identical-after-cpp plea.
8505
8506 2001-03-02  Ben Wing  <ben@xemacs.org>
8507
8508         * cmds.c:
8509         * cmds.c (Fforward_char):
8510         * syntax.c:
8511         * window.c:
8512
8513         Augment documentation of the most common motion commands to make
8514         note of the shifted-motion support.
8515         
8516 2001-03-02  Ben Wing  <ben@xemacs.org>
8517
8518         * nt.c (mswindows_fstat):
8519         * nt.c (mswindows_stat):
8520         * search.c (boyer_moore):
8521         Fix compile warnings under Windows.
8522         
8523         * sysdep.c (sys_readdir):
8524         Fix buggy filename-conversion code under Mule.
8525
8526 2001-03-09  William M. Perry  <wmperry@aventail.com>
8527
8528         * Makefile.in.in:
8529         * config.h.in:
8530         * console.c:
8531         * console.h:
8532         * device.c:
8533         * device.h:
8534         * dragdrop.c:
8535         * emacs.c:
8536         * event-stream.c:
8537         * events.c:
8538         * events.h:
8539         * faces.c:
8540         * frame.h:
8541         * general-slots.h:
8542         * glyphs.c:
8543         * gutter.c:
8544         * inline.c:
8545         * lisp.h:
8546         * lrecord.h:
8547         * make-src-depend:
8548         * redisplay-output.c:
8549         * redisplay.c:
8550         * symsinit.h:
8551         * sysfile.h:
8552         * toolbar.c:
8553         * window.c:
8554         The Great GTK Merge.
8555
8556         * ChangeLog.GTK:
8557         * console-gtk.c:
8558         * console-gtk.h:
8559         * device-gtk.c:
8560         * emacs-marshals.c:
8561         * emacs-widget-accessors.c:
8562         * event-gtk.c:
8563         * frame-gtk.c:
8564         * gccache-gtk.c:
8565         * gccache-gtk.h:
8566         * glade.c:
8567         * glyphs-gtk.c:
8568         * glyphs-gtk.h:
8569         * gtk-glue.c:
8570         * gtk-xemacs.c:
8571         * gtk-xemacs.h:
8572         * gui-gtk.c:
8573         * gui-gtk.h:
8574         * menubar-gtk.c:
8575         * native-gtk-toolbar.c:
8576         * objects-gtk.c:
8577         * objects-gtk.h:
8578         * redisplay-gtk.c:
8579         * scrollbar-gtk.c:
8580         * scrollbar-gtk.h:
8581         * select-gtk.c:
8582         * toolbar-gtk.c:
8583         * ui-byhand.c:
8584         * ui-gtk.c:
8585         * ui-gtk.h:
8586         The Great GTK Merge: new files.
8587
8588 2001-02-26  Ben Wing  <ben@xemacs.org>
8589
8590         Reapplied Lstream change.
8591
8592 2001-02-26  Ben Wing  <ben@xemacs.org>
8593
8594         Undid the last change, since it is more controversial than I
8595         thought.  It should be back in at some point soon.
8596         
8597 2001-02-25  Ben Wing  <ben@xemacs.org>
8598
8599         * buffer.c:
8600         * callproc.c (Fold_call_process_internal):
8601         * event-msw.c (ntpipe_slurp_reader):
8602         * event-msw.c (ntpipe_shove_writer):
8603         * event-msw.c (winsock_reader):
8604         * event-msw.c (winsock_writer):
8605         * file-coding.c:
8606         * file-coding.c (detect_eol_type):
8607         * file-coding.c (detect_coding_type):
8608         * file-coding.c (determine_real_coding_system):
8609         * file-coding.c (Fdetect_coding_region):
8610         * file-coding.c (decoding_reader):
8611         * file-coding.c (decoding_writer):
8612         * file-coding.c (mule_decode):
8613         * file-coding.c (Fdecode_coding_region):
8614         * file-coding.c (encoding_reader):
8615         * file-coding.c (encoding_writer):
8616         * file-coding.c (mule_encode):
8617         * file-coding.c (Fencode_coding_region):
8618         * file-coding.c (detect_coding_sjis):
8619         * file-coding.c (decode_coding_sjis):
8620         * file-coding.c (encode_coding_sjis):
8621         * file-coding.c (detect_coding_big5):
8622         * file-coding.c (decode_coding_big5):
8623         * file-coding.c (encode_coding_big5):
8624         * file-coding.c (detect_coding_ucs4):
8625         * file-coding.c (decode_coding_ucs4):
8626         * file-coding.c (encode_coding_ucs4):
8627         * file-coding.c (detect_coding_utf8):
8628         * file-coding.c (decode_coding_utf8):
8629         * file-coding.c (encode_coding_utf8):
8630         * file-coding.c (detect_coding_iso2022):
8631         * file-coding.c (decode_coding_iso2022):
8632         * file-coding.c (encode_coding_iso2022):
8633         * file-coding.c (decode_coding_no_conversion):
8634         * file-coding.c (encode_coding_no_conversion):
8635         * glyphs-x.c (write_lisp_string_to_temp_file):
8636         * gpmevent.c (tty_get_foreign_selection):
8637         * lisp.h:
8638         * lstream.c:
8639         * lstream.c (Lstream_flush_out):
8640         * lstream.c (Lstream_adding):
8641         * lstream.c (Lstream_write_1):
8642         * lstream.c (Lstream_write):
8643         * lstream.c (Lstream_raw_read):
8644         * lstream.c (Lstream_read_more):
8645         * lstream.c (Lstream_read):
8646         * lstream.c (Lstream_unread):
8647         * lstream.c (Lstream_fputc):
8648         * lstream.c (stdio_reader):
8649         * lstream.c (stdio_writer):
8650         * lstream.c (filedesc_reader):
8651         * lstream.c (filedesc_writer):
8652         * lstream.c (lisp_string_reader):
8653         * lstream.c (struct fixed_buffer_stream):
8654         * lstream.c (make_fixed_buffer_input_stream):
8655         * lstream.c (make_fixed_buffer_output_stream):
8656         * lstream.c (fixed_buffer_reader):
8657         * lstream.c (fixed_buffer_writer):
8658         * lstream.c (struct resizing_buffer_stream):
8659         * lstream.c (resizing_buffer_writer):
8660         * lstream.c (dynarr_writer):
8661         * lstream.c (lisp_buffer_reader):
8662         * lstream.c (lisp_buffer_writer):
8663         * lstream.h:
8664         * lstream.h (lstream_implementation):
8665         * lstream.h (struct lstream):
8666         * md5.c (Fmd5):
8667         * process-nt.c (nt_send_process):
8668         * process-unix.c (unix_send_process):
8669         
8670         Correct Lstream lossage due to mixing of signed and unsigned
8671         quantities.  All Lstream uses of size_t and ssize_t are now a
8672         single signed data type Lstream_data_count.  This fixes problems
8673         under Windows with sending large quantities of data to a process,
8674         and may well fix other subtle bugs.
8675
8676 2001-02-23  Martin Buchholz <martin@xemacs.org>
8677
8678         * XEmacs 21.2.45 "Thelxepeia" is released.
8679
8680 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8681
8682         * lisp-union.h (XSETINT): 
8683         (XSETCHAR):
8684         (XSETOBJ): 
8685         Reverse previous change of 2001-02-06.
8686
8687 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8688
8689         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8690         buffers.
8691         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8692         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8693         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8694         * regex.c (POS_AS_IN_BUFFER): removed
8695         * regex.c (re_search_2):
8696         * regex.c (re_match_2):
8697         Don't use an offset of 1 when calculating buffer positions, since
8698         `BI_BUF_BEGV' does it already.
8699
8700 2001-02-18  Wim Dumon  <wim@easics.be>
8701
8702         * insdel.c (prepare_to_modify_buffer): Also check for
8703         supersession when clash-detection is enabled. 
8704
8705 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8706
8707         * regex.c (re_match_2_internal):
8708         Convert temp characters from 'const unsigned char' to 're_char'.
8709         Fix crashing bug with extended characters under mule.
8710         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8711         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8712         font-lock, pdump, and new syntax-table code.
8713         * syntax.c (find_start_of_comment):
8714         (find_end_of_comment):
8715         (forward-comment):
8716         Fix crashing bugs involving moving beyond end of buffer.
8717         * syntax.c (find_start_of_comment):
8718         Fixed logic to allow proper detection of cases where the same
8719         character is used to end both a two-char comment start and a
8720         two-char comment end sequence. Fixes `(forward-comment -1)'.
8721         * syntax.c (find_start_of_comment):
8722         Return position just past last comment-end character for all cases
8723         (previously was only done for two-char comment-end sequences).
8724         * syntax.c (forward-comment):
8725         Take value returned from `find_end_of_comment', rather than
8726         incrementing it.
8727         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8728         Properly deal with BUFFERP (syntax_cache.object)
8729
8730 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8731
8732         * alloc.c (Fgarbage_collect): 
8733         * alloc.c (make_bit_vector_from_byte_vector):
8734         -Wsign-compare-correctness.
8735
8736 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8737
8738         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8739         (XSETCHAR): Likewise.
8740         (XSETOBJ): Likewise.
8741
8742 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8743
8744         * mule-canna.c (canna-func-delete_previous): 
8745         Rename to canna-func-delete-previous.
8746
8747 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8748
8749         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8750
8751 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8752
8753         * font-lock.c (find_context): Fix C++ compile errors introduced by
8754         recent patch
8755
8756 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8757
8758         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8759         pragma, but earlier ones barf on the same pragma.
8760
8761 2001-02-06  Mike Sperber <mike@xemacs.org>
8762
8763         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8764         `configure-mule-lisp-directory'.
8765
8766 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8767
8768         Make sure dump-id.c is compiled in the same way as other .c's.
8769         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8770         * dump-id.h: Remove.
8771         * emacs.c: Move dump-id.h into dumper.h.
8772         * dumper.h: Move dump-id.h into dumper.h.
8773         * Makefile.in.in:
8774         Use standard .c.o rule for building dump-id.o.
8775         Remove preprocessor flags from link command.
8776         Add dump-id.o to ${otherobjs} if PDUMP.
8777
8778 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8779
8780         Port FSF 20.7 syntax table improvements.
8781         * syntax.c.
8782         * syntax.h.
8783
8784         Fixups for new syntax table stuff.
8785         * dired.c: Include syntax.c.
8786         (Fdirectory_files): Initialize regex_match_object and
8787         regex_emacs_buffer.
8788         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8789         and Fget_char_property.
8790
8791         Use ported FSF 20.7 syntax table improvements.
8792         * font-lock.c.
8793         * regex.c.
8794         * search.c.
8795         
8796 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8797
8798         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8799         Unixware's enum boolean from sys/types.h.
8800
8801 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8802
8803         Fix support for building with latest Purify.
8804         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8805         (PURIFY_FLAGS): Likewise.
8806
8807 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8808
8809         * fileio.c (lisp_string_set_file_times): New.
8810         * fileio.c (Fcopy_file): Use it.
8811         Fixes bug:
8812         (copy-file filename non-ascii-filename t t)
8813         ==> No such file or directory, non-ascii-filename
8814
8815 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8816
8817         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8818         USHRT_MAX seems clearer than ~0 anyways.
8819
8820 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8821
8822         dumper improvements.  Inspired by Olivier.
8823         * dumper.c (pdump_max_align): New.
8824         * dumper.c (pdump_add_entry): Use pdump_max_align.
8825         * dumper.c (pdump_get_entry_list): Likewise.
8826         * dumper.c (pdump_scan_by_alignment): Likewise.
8827         Don't iterate through unnecessary alignments.
8828         * dumper.c (pdump_file_get): No need to align result of malloc().
8829         * dumper.c (pdump_mallocadr): Remove.  
8830         The result of malloc() is guaranteed to be maximally aligned.
8831         * dumper.c: s/elmt/elt/g;
8832         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8833         * dumper.c (pdump_alert_undump_object): Likewise.
8834         * dumper.c (pdump_align_table): 
8835         Don't support alignments > 64.
8836         Store ALIGNOF's, not shift counts, in table.
8837
8838 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8839
8840         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8841         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8842         * systime.h: Use HAVE_UTIME.
8843         * sysdep.c (struct utimbuf): Remove.
8844         * sysdep.c (set_file_times): Prefer utime() to utimes().
8845         * config.h.in (HAVE_UTIME): New.
8846         * config.h.in (HAVE_UTIME_H): Remove.
8847         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8848
8849 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8850
8851         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8852
8853 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8854
8855         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8856
8857 2001-02-08  Martin Buchholz <martin@xemacs.org>
8858
8859         * XEmacs 21.2.44 "Thalia" is released.
8860
8861 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8862
8863         Fixes crashes in kill-emacs on some systems.
8864         * process-unix.c (unix_kill_child_process):
8865         It's OK for kill() to fail with ESRCH.
8866
8867 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8868
8869         Contortions to make .gdbinit tricks work on most systems.
8870         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8871         * alloc.c (dbg_valmask): Make non-const.
8872         * alloc.c (dbg_typemask): Make non-const.
8873         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8874         * alloc.c (dbg_valbits): Make non-const.
8875         * alloc.c (dbg_gctypebits): Make non-const.
8876         * .gdbinit (decode_object): Make it work with AIX cc.
8877
8878 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8879
8880         * elhash.c (make_general_lisp_hash_table):
8881         Use simpler and more efficient calloc to clear entries.
8882
8883 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8884
8885         * window.c (window_scroll): Work around an AIX C compiler bug.
8886         Fixes 'scroll-up' does nothing problem with xlC.
8887
8888 2001-02-05  Martin Buchholz  <martin@xemacs.org>
8889
8890         * .gdbinit: Remove obsolete comment.
8891
8892 2001-01-31  Mike Alexander  <mta@arbortext.com>
8893
8894         * select.c (Fown_selection_internal): Set owned_p for device
8895         method correctly.
8896
8897 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8898
8899         Port to g++ 2.97.
8900         "not" cannot be used as a macro name as it is an operator in C++
8901         * config.h.in: Stop #defining `not'.
8902         * chartab.c (check_category_char): not ==> not_p
8903         * chartab.h: Likewise.
8904         * regex.c (re_match_2_internal): Likewise.
8905
8906 2001-02-02  Martin Buchholz  <martin@xemacs.org>
8907
8908         * lisp-disunion.h: Fix up comments.
8909
8910 2001-01-31  Martin Buchholz  <martin@xemacs.org>
8911
8912         * keymap.c (define_key_check_and_coerce_keysym):
8913         (syms_of_keymap):
8914         Support mouse-6 and mouse-7 bindings in the obvious way.
8915
8916 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8917
8918         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8919
8920 2001-01-30  Martin Buchholz  <martin@xemacs.org>
8921
8922         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8923         Previous patch missed DEFVAR_INT_MAGIC.
8924         Make sure future DEFVAR_foo use correct types.
8925         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8926         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8927         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8928         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8929         * (DEFVAR_INT): Likewise.
8930         * redisplay.c (vertical_clip): Should be of type Fixnum.
8931         * redisplay.c (horizontal_clip): Likewise.
8932         * lisp.h (dump_add_opaque_int): New.
8933         (dump_add_opaque_fixnum): New.
8934
8935 2001-01-29  Andy Piper  <andy@xemacs.org>
8936
8937         * glyphs-widget.c (check_valid_int_or_function): allow symbols
8938         since they can be eval'ed
8939
8940 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8941
8942         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8943         Oops, XEmacs redefines `class'.  Use `typename' instead.
8944
8945 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8946
8947         * dumper.c: Fix C++ compile errors.
8948
8949 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8950
8951         * tparam.c: Use correct prototypes.
8952
8953 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8954
8955         * sysproc.h: #include util.h for NetBSD's openpty.
8956
8957 2001-01-27  Martin Buchholz  <martin@xemacs.org>
8958
8959         More 64-bit correctness.
8960         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8961         Use a typedef `fixnum' for the type used for DEFVAR_INT.
8962         Fix up comments.
8963         This finally finishes the 64-bit SGI port.
8964         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8965         * symbols.c: Fix up comments and type casts.
8966         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8967         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8968         * symeval.h (Fixnum): New type.
8969         * symeval.h (symbol_value_type): Fix up comment.
8970
8971         * commands.h:
8972         * nt.c:
8973         * emacs.c:
8974         * data.c:
8975         * redisplay.c:
8976         * abbrev.c:
8977         * dired-msw.c:
8978         * event-Xt.c:
8979         * eldap.c:
8980         * window.c:
8981         * sound.c:
8982         * event-stream.c:
8983         * eval.c:
8984         * buffer.c:
8985         * mule-canna.c: A million DEFVAR_INTs here...
8986         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8987         * extents.c:
8988         * cmdloop.c:
8989         * lisp.h:
8990         * select-x.c:
8991         * console-x.h:
8992         * event-msw.c:
8993         * mule-wnnfns.c:
8994         * hpplay.c:
8995         * ralloc.c:
8996         * alloc.c:
8997         * keymap.c:
8998         * profile.c:
8999         s/int/Fixnum/g in DEFVAR_INT declarations.
9000
9001 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9002
9003         Port pdump to SGI alignment-sensitive environment.
9004         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9005         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9006         properly aligned.
9007         Define and use aligned reading and writing macros.
9008         Use buffered stdio instead of posix i/o for faster dumping.
9009         Eliminate kludgy 256 byte space for header.
9010         Read and write from dump file using structs for alignment safety.
9011         * dumper.c (pdump_align_stream): New.
9012         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9013         * dumper.c (PDUMP_READ_ALIGNED): New.
9014         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9015         * dumper.c (pdump_static_Lisp_Object): New struct.
9016         * dumper.c (pdump_static_pointer): New struct.
9017         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9018         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9019         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9020         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9021
9022         * dumper.c (pdump_backtrace):
9023         * dumper.c (pdump_get_indirect_count):
9024         * dumper.c (pdump_register_object):
9025         * dumper.c (pdump_register_struct):
9026         * dumper.c (pdump_reloc_one):
9027         * dumper.c (pdump_scan_by_alignment):
9028         * dumper.c (pdump_dump_from_root_struct_ptrs):
9029         * dumper.c (pdump_dump_opaques):
9030         * dumper.c (pdump_dump_rtables):
9031         * dumper.c (pdump_dump_from_root_objects):
9032         * dumper.c (pdump):
9033         * dumper.c (pdump_load_finish):
9034         Use aligned reading and writing.
9035
9036         * dumper.c (pdump_free): Make static.
9037         * dumper.c (pdump_hFile): Likewise.
9038         * dumper.c (pdump_hMap): Likewise.
9039
9040 2001-01-26  Martin Buchholz <martin@xemacs.org>
9041
9042         * XEmacs 21.2.43 "Terspichore" is released.
9043
9044 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9045
9046         Type fiddling for window_config.saved_windows_count
9047         * window.c (struct window_config): 
9048         Make saved_windows_count member unsigned.
9049         * window.c (sizeof_window_config_for_n_windows): 
9050         Make parameter unsigned.
9051         * window.c (mark_window_config):
9052         * window.c (window_config_equal):
9053         * window.c (free_window_configuration):
9054         * window.c (Fset_window_configuration):
9055         * window.c (count_windows):
9056         * window.c (Fcurrent_window_configuration):
9057         * window.c (reinit_vars_of_window):
9058         Update all callers and users.
9059
9060 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9061
9062         Alignment correctness for flexible arrays.
9063         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9064         Make alignment-correct. Add interesting comments.
9065         * alloc.c (size_vector):
9066         * alloc.c (make_vector_internal):
9067         * alloc.c (make_bit_vector_internal):
9068         * alloc.c (sweep_bit_vectors_1):
9069         * fns.c (size_bit_vector):
9070         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9071         * window.c (sizeof_window_config_for_n_windows): 
9072         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9073
9074 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9075
9076         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9077
9078 2001-01-23  Andy Piper  <andy@xemacs.org>
9079
9080         * select.c (Fown_selection_internal): pass owned_p
9081
9082         * select-msw.c (mswindows_own_selection): New Signature.
9083
9084         * console.h (struct console_methods): add owned_p to
9085         _own_selection.
9086
9087         * select-x.c (x_own_selection): pass owned_p
9088         (hack_motif_clipboard_selection): use owned_p
9089         (vars_of_select_x): new variable -
9090         x_selection_strict_motif_ownership.
9091
9092 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9093
9094         * specifier.h (specifier_data_offset): Remove pointless parens.
9095         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9096
9097 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9098
9099         Make Lisp_Object sizeof methods be alignment-correct.
9100         pdump must restore objects to the same alignment as the C compiler
9101         assumes.  It really matters on SGIs.
9102         * lstream.c (aligned_sizeof_lstream): New.
9103         (sizeof_lstream): Use aligned_sizeof_lstream.
9104         (Lstream_new): Likewise.
9105         * opaque.c (aligned_sizeof_opaque): New.
9106         (sizeof_opaque): Use aligned_sizeof_opaque.
9107         (make_opaque): Likewise.
9108         * specifier.c (aligned_sizeof_specifier): New.
9109         (sizeof_specifier): Use aligned_sizeof_specifier.
9110         (make_specifier_internal): Likewise.
9111
9112 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9113
9114         * lstream.h (struct lstream): Use max_align_t for trailing data.
9115         * specifier.h (struct Lisp_Specifier): Likewise.
9116
9117 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9118
9119         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9120         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9121         (CCL_SUSPEND): Likewise.
9122         (CCL_INVALID_CMD): Likewise.
9123         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9124         (ccl_driver): Likewise.
9125         (CCL_WRITE_CHAR): Macro hygiene.
9126         (CCL_WRITE_STRING): Macro hygiene.
9127
9128 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9129
9130         Port "portable" dumper to SunOS 4 and HP-UX.
9131         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9132         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9133         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9134
9135 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9136
9137         * lisp.h (ALIGNOF): A better definition for C++.
9138
9139 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9140
9141         Macro hygiene.
9142         Fix printf warnings: int format, long int arg.
9143         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9144         (PUSH_FAILURE_POINT): Use correct printf formats.
9145         (POP_FAILURE_POINT): Use correct printf formats.  
9146         Use do {...} while (0)
9147
9148 2001-01-20  Martin Buchholz <martin@xemacs.org>
9149
9150         * XEmacs 21.2.42 "Poseidon" is released.
9151
9152 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9153
9154         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9155
9156 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9157
9158         De-kludgify FIXED_TYPE free list frobbing.
9159         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9160         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9161         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9162         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9163         * alloc.c (LRECORD_FREE_P): New.
9164         * alloc.c (MARK_LRECORD_AS_FREE): New.
9165         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9166         * alloc.c (STRUCT_FREE_P): Deleted.
9167         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9168         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9169         * alloc.c (STRING_CHARS_FREE_P): New.
9170         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9171         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9172         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9173         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9174         * alloc.c (resize_string): Use new definitions.
9175         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9176         * alloc.c (verify_string_chars_integrity): Use new definitions.
9177         * alloc.c (compact_string_chars): Use new definitions.
9178         * alloc.c: Update monster comments.
9179         * lrecord.h (lrecord_type): Add some new lrecord types for
9180         alloc.c's use.
9181
9182 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9183
9184         Improve alignment hackery.
9185         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9186         (max_align_t): Moved from opaque.h - general purpose.
9187         (ALIGN_PTR): Use size_t, not long.
9188         * opaque.h (max_align_t): Move to lisp.h.
9189
9190 2001-01-18  Norbert Koch  <nk@LF.net>
9191
9192         * gui.h: Fix and add prototypes to fix build problems.
9193
9194 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9195
9196         temacs is going away, so `dump-temacs' is now a bad name.
9197         * .dbxrc (dump-temacs): Rename to `dmp'.
9198         * .gdbinit (dump-temacs): Rename to `dmp'.
9199
9200 2001-01-17  Andy Piper  <andy@xemacs.org>
9201
9202         * glyphs.c (print_image_instance): comment to make martin happy.
9203
9204         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9205         change.
9206
9207         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9208         activation.
9209         (mswindows_tab_control_redisplay): warning suppression.
9210
9211         * glyphs-widget.c (widget_update): re-write to cope with updated
9212         items.
9213         (widget_instantiate): use new gui_item functions.
9214         (tab_control_update): deleted.
9215         (progress_gauge_update): deleted.
9216         (image_instantiator_progress_guage): take out update reference.
9217         (image_instantiator_tree_view): ditto.
9218         (image_instantiator_tab_control): ditto.
9219
9220         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9221         Right the new way.
9222         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9223         return whether anything was changed.
9224         (update_gui_item_keywords): as it sounds.
9225
9226         * gui.h: declare widget_gui_parse_item_keywords.
9227
9228         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9229         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9230
9231 2001-01-17  Martin Buchholz <martin@xemacs.org>
9232
9233         * XEmacs 21.2.41 "Polyhymnia" is released.
9234
9235 2001-01-16  Didier Verna  <didier@xemacs.org>
9236
9237         * glyphs.c (image_instantiate): don't use fallbacks when
9238         instantiating a face's background pixmap by inheritance.
9239
9240 2001-01-14  Mike Sperber <mike@xemacs.org>
9241
9242         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9243         Conditionalize accordingly.
9244
9245 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9246
9247         * dumper.c (pdump_file_get): Fix a compiler warning.
9248
9249 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9250
9251         Make Purify happy when pdumping.
9252         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9253         iniitalizing all bits of new lisp object memory.
9254         * symbols.c (Fmake_local_variable): Likewise.
9255         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9256         * symbols.c (Fdefvaralias): Likewise.
9257         * mule-charset.c (vars_of_mule_charset): Likewise.
9258
9259 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9260         Add the `-nd' flag when running pre-dump operations under the debugger.
9261         * .dbxrc (run-temacs): Add `-nd'.
9262         * .dbxrc (update-elc): Likewise.
9263         * .dbxrc (dump-temacs): Likewise.
9264         * .gdbinit (run-temacs): Likewise.
9265         * .gdbinit (check-temacs): Likewise.
9266         * .gdbinit (update-elc): Likewise.
9267         * .gdbinit (dump-temacs): Likewise.
9268
9269 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9270
9271         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9272         export OBJECT_MODE=64
9273         configure --pdump --use-union-type=no
9274         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9275         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9276
9277         * miscplay.c (sndcnv8U_2mono):
9278         Avoid two uses of `++' in the same expression.
9279         Suppresses a GCC warning.
9280
9281 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9282
9283         Make sure future compilers don't miscompile alloc.c.
9284         * alloc.c:
9285         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9286         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9287
9288 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9289
9290         * dumper.c: A little post-pdump-rename comment fixup.
9291
9292 2001-01-09  Jerry James  <james@eecs.ku.edu>
9293
9294         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9295
9296 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9297
9298         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9299         script:
9300         #!/bin/sh
9301         replace_symbol () {
9302           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9303         }
9304
9305         replace_symbol pdump_wire_lists pdump_weak_object_chains
9306         replace_symbol pdump_wire_list dump_add_weak_object_chain
9307
9308         replace_symbol pdump_wires pdump_root_objects
9309         replace_symbol pdump_wire dump_add_root_object
9310
9311         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9312         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9313
9314         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9315         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9316         replace_symbol dumpstructinfo pdump_root_struct_ptr
9317         replace_symbol dumpstruct dump_add_root_struct_ptr
9318
9319         replace_symbol dumpopaque dump_add_opaque
9320         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9321         replace_symbol dumpopaqueinfos pdump_opaques
9322         replace_symbol dumpopaqueinfo pdump_opaque
9323
9324         replace_symbol nb_structdump nb_root_struct_ptrs
9325         replace_symbol nb_opaquedump nb_opaques
9326
9327         replace_symbol align_table pdump_align_table
9328         replace_symbol dump_header pdump_header
9329
9330         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9331         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9332
9333
9334 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9335
9336         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9337         optimizing bytecount_to_charcount().
9338
9339 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9340
9341         * config.h.in:
9342         (HAVE_DLFCN_H): Removed.
9343         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9344
9345 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9346
9347         Portable dumper maintainability improvements.
9348         * alloc.c (staticpro):
9349         * alloc.c (staticpro_nodump):
9350         * alloc.c (garbage_collect_1):
9351         * alloc.c (reinit_alloc_once_early):
9352         * alloc.c (init_alloc_once_early):
9353         * alloc.c: Move dumper functions to alloc.c.
9354         * dumper.c (pdump_backtrace):
9355         * dumper.c (pdump_dump_structs):
9356         * dumper.c (pdump_dump_opaques):
9357         * dumper.c (pdump_dump_rtables):
9358         * dumper.c (pdump_dump_wired):
9359         * dumper.c (pdump):
9360         * dumper.c (pdump_load_check):
9361         * dumper.c (pdump_load_finish):
9362         * dumper.c (pdump_file_unmap):
9363         * dumper.c (pdump_file_get):
9364         * dumper.c (pdump_resource_free):
9365         * dumper.c (pdump_resource_get):
9366         * dumper.c (pdump_file_free):
9367         * dumper.c (pdump_file_try):
9368         * dumper.c (pdump_load):
9369         Remove fixed size limits on staticpro(), staticpro_nodump(),
9370         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9371         Remove custom code for dumping lrecord_implementations_table - use
9372         dumpopaque instead.
9373         Remove (most of the) custom code for dumping staticpros - dump it
9374         like any other dynarr.
9375
9376         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9377         * dumper.c: Moved functions from alloc.c.
9378         * alloc.c (dumpstruct): Moved to dumper.c.
9379         * alloc.c (dumpopaque): Likewise.
9380         * alloc.c (pdump_wire): Likewise.
9381         * alloc.c (pdump_wire_list): Likewise.
9382
9383         * lisp.h (Dynarr_sizeof): New.
9384         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9385         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9386         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9387
9388         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9389         * lisp.h (dumpopaque): ditto.
9390         * lisp.h (pdump_wire): ditto.
9391         * lisp.h (pdump_wire_list): ditto.
9392
9393 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9394
9395         * make-src-depend (PrintPatternDeps):
9396         Use `sort' to make output independent of perl version.
9397
9398 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9399
9400         Port to Netbsd 1.5.
9401         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9402         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9403
9404 2001-01-03  Didier Verna  <didier@xemacs.org>
9405
9406         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9407         that `focus_frame' is alive before thinking of calling
9408         `redisplay_redraw_cursor' on it.
9409
9410 2001-01-08  Martin Buchholz <martin@xemacs.org>
9411
9412         * XEmacs 21.2.40 is released.
9413
9414 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9415
9416         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9417
9418 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9419
9420         * alloc.c (dbg_valmask): Make const.
9421         * alloc.c (dbg_typemask): Make const.
9422         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9423         * alloc.c (dbg_valbits): Make const.
9424         * alloc.c (dbg_gctypebits): Make const.
9425
9426 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9427
9428         * redisplay-x.c (x_bevel_area):
9429         redisplay.h (struct rune):
9430         Typo fixes in comments.
9431
9432 2001-01-05  Andy Piper  <andy@xemacs.org>
9433
9434         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9435         adjustment.
9436
9437         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9438
9439 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9440
9441         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9442
9443         * mule-ccl.c (stack_idx_of_map_multiple):
9444         Non const global data must not be initialized!
9445         Found by MIYASHITA Hisashi.
9446
9447 2001-01-02  Andy Piper  <andy@xemacs.org>
9448
9449         * frame.c (change_frame_size): make sure frame size is always
9450         marked as changed.
9451
9452         * glyphs.c (image_instance_layout): minor code reuse.
9453
9454         * window.c (Fcurrent_window_configuration): revert previous
9455         change.
9456
9457 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9458
9459         * glyphs.h:
9460         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9461
9462 2000-12-31  Andy Piper  <andy@xemacs.org>
9463
9464         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9465         when widget gets unmapped.
9466
9467         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9468         function. Make sure widgets losing focus don't just drop it.
9469         (handle_focus_event_1): record the widget with focus.
9470
9471 2000-12-31  Andy Piper  <andy@xemacs.org>
9472
9473         * window.c (allocate_window): use
9474         make_image_instance_cache_hash_table.
9475         (make_dummy_parent): ditto.
9476         (Fset_window_configuration): ditto.
9477
9478         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9479
9480         * glyphs.c (process_image_string_instantiator): use
9481         INSTANTIATOR_TYPE.
9482         (get_image_instantiator_governing_domain): ditto.
9483         (normalize_image_instantiator): ditto.
9484         (instantiate_image_instantiator): ditto.
9485         (make_image_instance_1): ditto.
9486         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9487         (instantiator_eq_equal): new function for use with instance hash
9488         tables.
9489         (instantiator_eq_hash): ditto.
9490         (make_image_instance_cache_hash_table): create a suitable hash
9491         table for storing image instances.
9492
9493         * elhash.h (hash_table_weakness): new internal weakness type
9494         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9495         declare new functions.
9496
9497         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9498         another weakness type for glyphs.
9499         (make_standard_lisp_hash_table): new function split out from
9500         make_general_lisp_hash_table.
9501         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9502         (hash_table_instantiate): ditto.
9503         (Fmake_hash_table): ditto.
9504
9505 2000-12-31  Martin Buchholz <martin@xemacs.org>
9506
9507         * XEmacs 21.2.39 is released.
9508
9509 2000-12-29  Andy Piper  <andy@xemacs.org>
9510
9511         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9512
9513         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9514         the frame has changed so that we pick up geometry changes such as
9515         menubar visibility.
9516
9517 2000-12-28  Andy Piper  <andy@xemacs.org>
9518
9519         * lastfile.c (my_ebss): make a char array so we can pad the
9520         bss. Fixes cygwin unexec.
9521
9522         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9523
9524 2000-12-26  Andy Piper  <andy@xemacs.org>
9525
9526         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9527         comments and try and be more precise about a non-/SIGIO world.
9528         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9529         SIGIO.
9530
9531         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9532         we don't normalize to zero width or height.
9533
9534 2000-12-24  Andy Piper  <andy@xemacs.org>
9535
9536         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9537
9538 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9539
9540         * s/sco5.h: SCO 5 has pty support.
9541
9542 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9543
9544         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9545         input-method-xlib.c contains whole contents of input-method-xfs.c,
9546         so we can use input-method-xlib.c's code for USE_XFONTSET
9547         using #ifdefs.
9548         * input-method-xfs.c: removed.
9549
9550 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9551
9552         * file-coding.h (enum coding_category_type): reorder enumerators to
9553         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9554         (now one greater than largest real coding_category_type enumerator).
9555         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9556         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9557         Fcoding_category_list, Fset_coding_priority_list,
9558         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9559         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9560
9561 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9562
9563         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9564         * redisplay-output.c (redisplay_output_window): Clear top of window
9565         when face is changed.
9566         * redisplay-x.c (x_redraw_exposed_window): Call
9567         redisplay_clear_top_of_window.
9568         * redisplay.h: Publish redisplay_clear_top_of_window.
9569
9570 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9571
9572         * buffer.c (Fkill_buffer): Map over all devices.
9573         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9574         (list_windows): New function.
9575         (list_all_windows): Ditto.
9576         (Freplace_buffer_in_windows): Use them.
9577
9578 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9579
9580         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9581         (Fopen_database): Use `db_create' instead of `db_open'.
9582         (syms_of_database): Initialize Qqueue.
9583
9584 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9585
9586         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9587         buffer_local_face_property.
9588         * buffer.h (struct buffer): New member buffer_local_face_property.
9589         * window.c (Fset_window_buffer):  Mark window's face as changed
9590         when buffer has buffer local face.
9591         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9592         * objects.c (color_after_change): Set buffer_local_face_property
9593         when locale of face specifier is buffer.
9594         * objects.c (font_after_change): Ditto.
9595         * objects.c (face_boolean_after_change): Ditto.
9596         * glyphs.c (image_after_change): Ditto.
9597
9598 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9599
9600         * nt.c (mswindows_fstat): Report file permissions, volume serial
9601         number, etc. Code adapted from FSF Emacs 20.7.
9602
9603 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9604
9605         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9606         of stat when we don't have symbolic links, to make sure
9607         mswindows_stat is called on mswindows.
9608
9609 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9610
9611         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9612
9613 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9614
9615         * doprnt.c (emacs_doprnt_1): More printing fixes.
9616         Make printing of numbers compatible with libc and FSF Emacs.
9617         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9618         Use the system printf to do most of the hard work of formatting,
9619         instead of doprnt_1().
9620         Calculate memory to allocate for format string.
9621         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9622         (doprnt_1): Cleaner code and documentation.
9623
9624 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9625
9626         * Makefile.in.in: Use the loop variable to install headers.
9627
9628 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9629
9630         * window.c (Fsplit_window): Don't invalidate face cache.
9631
9632 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9633
9634         * minibuf.c (Fall_completions): Undo the previous change
9635         which removed checking elements start with space.
9636
9637 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9638
9639         * mule-canna.c: Didier suppression.
9640
9641 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9642
9643         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9644         (warning suppression).  Add English comment translations.
9645
9646 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9647
9648         * unexelfsgi.c (unexec): Better test for mmap failure.
9649
9650 2000-12-05  Martin Buchholz <martin@xemacs.org>
9651
9652         * XEmacs 21.2.38 is released.
9653
9654 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9655
9656         * redisplay.c (bar-cursor): Make a user variable.
9657
9658         * symsinit.h: Add init_postgresql_from_environment.
9659
9660 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9661
9662         * regex.c: Convert to clean C.
9663
9664 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9665
9666         * realpath.c:
9667         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9668         initialization.
9669         (sys_readlink): renamed to system_readlink to avoid conflict with
9670         the other sys_readlink.
9671
9672 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9673
9674         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9675
9676 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9677
9678         * postgresql.c (init_postgresql_from_environment): new function.
9679         (vars_of_postgresql): Move code initializing Lisp variables out and
9680         into init_postgresql_from_environment.
9681         emacs.c (main_1): Call init_postgresql_from_environment if and only
9682         if running a dumped XEmacs.
9683
9684 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9685
9686         * buffer.c: Make find-file-compare-truenames default to true on
9687         windows.
9688
9689         * realpath.c (win32_abs_start):
9690         (cygwin_readlink):
9691         (win32_readlink): New functions.
9692         (xrealpath): Return really real filenames on windows.
9693
9694         * fileio.c (Ffile_truename): Make file-truename work on windows.
9695
9696 2000-11-29  Didier Verna  <didier@xemacs.org>
9697
9698         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9699         * faces.c (update_face_cachel_data): use it.
9700         * faces.c (add_face_cachel): use it. Complete background pixmap
9701         frobbing in face cache if `update_face_cachel_data' has not done so.
9702
9703 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9704
9705         * search.c (string_match_1): Don't set last_thing_searched
9706         when search failed.
9707
9708 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9709
9710         * buffer.c: Include casetab.h
9711         (common_init_complex_vars_of_buffer): Use new case-table object.
9712         * buffer.h: Include casetab.h
9713         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9714         (DOWNCASE_TABLE_OF): Ditto.
9715         * bufslots.h: Remove char-tables and add case-table.
9716         * casetab.c: Include casetab.h
9717         (CASE_TABLE_P): Removed.
9718         (mark_case_table): New function.
9719         (allocate_case_table): New function.
9720         (Fcase_table_p): Use new case-table.
9721         (case_table_char): New function.
9722         (Fget_case_table): Ditto.
9723         (Fput_case_table): Ditto.
9724         (Fput_case_table_pair): Ditto.
9725         (Fcopy_case_table): Ditto.
9726         (Fcurrent_case_table): Return case-table.
9727         (Fstandard_case_table): Return case-table.
9728         (Fset_case_table): Fix doc-string.
9729         (set_case_table): Use case-table
9730         (syms_of_casetab): DEFSUBR new functions.
9731         (complex_vars_of_casetab): Set up standard case-table.
9732         * casetab.h: New file.
9733         * editfns.c: Include casetab.h
9734         (Fcompare_buffer_substrings): Use case-table.
9735         * inline.c: Include casetab.h
9736         * lisp.h: Remove bogus extern.
9737         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9738         * search.c: Include casetab.h
9739         (TRANSLATE_ASCII): Removed.
9740         (TRANSLATE): Unconditionally translate character.
9741         (looking_at_1): Use case-table.
9742         (string_match_1): Ditto.
9743         (fast_string_match): Ditto.
9744         (search_command): Ditto.
9745         (search_buffer): Separate boyer_moore.  Check whether
9746         boyer_moore is possible.
9747         (simple_search): New function.
9748         (boyer_moore): Separated from search_buffer. Translate char.
9749
9750 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9751
9752         * regex.c (RE_TR_ASCII): Removed.
9753         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9754         (PATFETCH): Call PATFETCH_RAW.
9755         (PATFETCH_RAW): Fetch Emchar.
9756         (PATUNFETCH): Decrement charptr.
9757         (GET_BUFFER_SPACE): Rename b to buf_end.
9758         (BUF_PUSH): Ditto.
9759         (BUF_PUSH_2): Ditto.
9760         (BUF_PUSH_3): Ditto.
9761         (EXTEND_BUFFER): Ditto.
9762         (SET_LIST_BIT): Ditto.
9763         (regex_compile): Ditto.  Translate non ASCII char.
9764         (compile_range): Ditto.
9765         (re_search_2): Ditto.
9766         (re_match_2_internal): Compare Emchar.
9767         (bcmp_translate): Ditto.
9768
9769 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9770
9771         * lisp.h (basic char/int typedefs):  comment improvement.
9772
9773 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9774
9775         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9776         unstomp inhibit_site_lisp.  Improve comments.
9777
9778 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9779
9780         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9781
9782 2000-11-28  Andy Piper  <andy@xemacs.org>
9783
9784         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9785         clipped display for windows in the gutter also.
9786         (redisplay_display_boxes_in_window_p): change semantics of return
9787         codes to be more intuitive.
9788
9789         * gutter.h: declare display_boxes_in_gutter_p.
9790
9791         * gutter.c (display_boxes_in_gutter_p): new function for
9792         redisplay.
9793
9794 2000-11-22  Andy Piper  <andy@xemacs.org>
9795
9796         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9797         autodetect domain.
9798
9799 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9800
9801         * callproc.c (Fold_call_process_internal):
9802         * gpm.c (Freceive_gpm_event):
9803         (tty_get_foreign_selection): Might be just warning supression.
9804         * fileio.c (Fwrite_region_internal):
9805         (Fset_visited_file_modtime):
9806         * keymap.c (event_matches_key_specifier_p):
9807         Initialize GCPROed variable.
9808
9809         * menubar-x.c (command_builder_find_menu_accelerator):
9810         Initialize before use.
9811
9812 2000-11-23  Andy Piper  <andy@xemacs.org>
9813
9814         * unexcw.c (unexec): make the resulting executable executable.
9815
9816 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9817
9818         * doc.c (get_doc_string):
9819         Use size_t, not int, for result of XSTRING_LENGTH.
9820
9821         * cmds.c (Fdelete_char):
9822         * cmds.c (Fpoint_at_eol):
9823         * cmds.c (Fself_insert_command):
9824         Use EMACS_INT, not int, for result of XINT.
9825         Someday, someone will want to insert more than 2**31 identical characters.
9826
9827         * cmds.c (Fdelete_char):
9828         * cmds.c (Fdelete_backward_char):
9829         * syntax.c (Fforward_word):
9830         * syntax.c (Fforward_comment):
9831         Make COUNT argument optional, for consistency with forward-char et al.
9832
9833 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9834
9835         * lisp.h:
9836         * print.c (long_to_string):
9837         Return a useful value: the pointer at end of data written.
9838
9839         * doprnt.c:
9840         Use `static const char * const' for constant strings.
9841         (union printf_arg): Delete `i', `ui' members.
9842         (get_doprnt_args):
9843         (emacs_doprnt_1):
9844         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9845         Do all printf-ing via the `l' specifier.
9846         Use EMACS_INT instead of int.
9847         Optimize.
9848
9849 2000-11-20  Didier Verna  <didier@xemacs.org>
9850
9851         * faces.c (update_face_cachel_data): don't frob the background
9852         pixmap when the window is being created. The face is needed but
9853         does not exist yet.
9854
9855 2000-11-20  Andy Piper  <andy@xemacs.org>
9856
9857         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9858         messing with a debug environment.
9859
9860 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9861
9862         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9863
9864 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9865
9866         * casetab.c (Fcase_table_p): Fix compile error and crash.
9867
9868 2000-11-18  Philip Aston  <philipa@mail.com>
9869
9870         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9871
9872 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9873
9874         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9875         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9876
9877 2000-11-17  Martin Buchholz  <martin@xemacs.org>
9878
9879         * config.h.in: Define HAVE_ELF_H if elf.h exists.
9880         * unexelf.c: Use HAVE_ELF_H.
9881         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9882         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9883         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9884         Greg Harrington <greg_harrington@hotmail.com> provided a machine
9885         for testing.
9886         So this is an unexelfsgi.c from a different line of development.
9887
9888 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9889
9890         * regex.c (RE_TR_ASCII): New function.
9891         (RE_TRANSLATE): Call it.
9892
9893 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9894
9895         * buffer.h (TRT_TABLE_OF): Remove assert.
9896         (IN_TRT_TABLE_DOMAIN): Removed.
9897
9898 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9899
9900         * free-hook.c (log_gcpro):
9901         (show_gcprohist): Add support for GCPRO5.
9902
9903 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
9904
9905         * emacs.c (main_1): Improve -sd error message when --pdump=no.
9906
9907 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
9908
9909         * symeval.h: Declare flush_all_buffer_local_cache.
9910
9911         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9912         (flush_buffer_local_cache): Added.
9913         (flush_all_buffer_local_cache): Added.
9914
9915         * lrecord.h: Remove unused XD_LO_RESET_NIL.
9916
9917         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9918         (pdump_dump_data): Ditto.
9919         (pdump_reloc_one): Ditto.
9920         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
9921         before dumping.
9922
9923
9924 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9925
9926         * buffer.c: Remove if 0'ed entry.
9927         * buffer.h: Rewrite TRT to use char-table.
9928         * bufslots.h: Remove mirror tables.
9929         * casetab.c: Remove mirror tables.
9930         (CASE_TABLE_P): New macro.
9931         (Fcase_table_p): Element of a case table is string or char-table.
9932         (make_mirror_trt_table): Removed.
9933         (set_case_table): Setup char-table from strings for backward
9934         compatibility.
9935         * dired.c (Fdirectory_files):
9936         * dired-msw.c: (mswindows_get_files):
9937         * lisp.h: Change prototype of re_pattern_buffer.
9938         * regex.c: (RE_TRANSLATE): New macro.
9939         (TRANSLATE_P): Ditto.
9940         Change translate to type RE_TRANSLATE_TYPE.
9941         * regex.h: Define RE_TRANSLATE_TYPE
9942         * search.c (TRANSLATE): New macro.
9943         (TRANSLATE_ASCII): New macro.
9944         Translate table is changed to Lisp_Object.
9945         (signal_failure): Inhibit return.
9946
9947 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9948
9949         * device-msw.c:
9950         * eldap.c:
9951         * event-Xt.c:
9952         * event-stream.c:
9953         * print.c:
9954         Do UNGCPRO before return.
9955
9956 2000-11-14  Martin Buchholz <martin@xemacs.org>
9957
9958         * XEmacs 21.2.37 is released.
9959
9960 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9961
9962         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9963         Add comments about discarded return value.
9964
9965 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9966
9967         * callint.c:
9968         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
9969
9970 2000-10-27  Andy Piper  <andy@xemacs.org>
9971
9972         * gutter.c (Fset_default_gutter_position): default left and right
9973         gutters to visible.
9974         (calculate_gutter_size): calculate resonable heuristic for left
9975         and right gutter sizes.
9976         (specifier_vars_of_gutter): change left and right gutter sizes to
9977         autodetect.
9978         (calculate_gutter_size_from_display_lines): new function.
9979         (output_gutter): check for resizing on left and right gutters.
9980         (clear_gutter): don't special case top and left gutters.
9981         (specifier_vars_of_gutter): use new signature for
9982         set_specifier_caching.
9983
9984         * glyphs-x.c (x_redisplay_widget): spelling fix.
9985         * glyphs.c (specifier_vars_of_glyphs):
9986         * menubar.c (specifier_vars_of_menubar):
9987         * redisplay.c (specifier_vars_of_redisplay):
9988         * toolbar.c (specifier_vars_of_toolbar):
9989         * window.c (specifier_vars_of_window):
9990         * scrollbar.c (specifier_vars_of_scrollbar):
9991         (complex_vars_of_scrollbar): use new signature for
9992         set_specifier_caching.
9993
9994         * specifier.c (set_specifier_caching): include recompute flag.
9995         (recompute_one_cached_specifier_in_window): always recompute if
9996         flag set.
9997         (recompute_one_cached_specifier_in_frame): ditto.
9998
9999         * specifier.h (struct specifier_caching): add recompute flag.
10000
10001 2000-10-24  Andy Piper  <andy@xemacs.org>
10002
10003         * unexcw.c (copy_executable_and_dump_data_section): add new
10004         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10005         5.0 happy.
10006
10007 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10008
10009         * console-x.h (x_device): New member modifier_release_time.
10010         * event-Xt.c (x_handle_sticky_modifiers):
10011         Bound interval modifier keys are sticky.
10012         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10013         * events.h: extern it.
10014
10015 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10016
10017         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10018
10019 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10020
10021         * event-stream.c (execute_command_event): Preserve current_events
10022         and the like when event is misc-user-event.
10023         Inhibit quit during the call to maybe_echo_keys.
10024
10025 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10026
10027         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10028         symlink when buffer is killed.
10029         (inhibit_clash_detection): New variable.
10030
10031 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10032
10033         * console.c (Fset_input_method): Trigger redisplay on tty.
10034
10035 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10036
10037         * process.c (Fprocess_status): Revert to previous behavior:
10038         (process-status "nosuchprocess") ==> nil
10039
10040 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10041
10042         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10043         Work around another GCC 2.95.2 optimizer bug.
10044
10045 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10046
10047         * process.c (Fget_process): Use LIST_LOOP_2.
10048         (kill_buffer_processes): Use LIST_LOOP_2.
10049
10050         * minibuf.c (Fall_completions):
10051         Delete old non-functional code for FSF fourth argument.
10052
10053         * frame.c (frame_matches_frame_spec):
10054         Renamed from `frame_matches_frametype'.  Update all callers.
10055         (device_matches_device_spec):
10056         Renamed from 'device_matches_console_spec'.  Update all callers.
10057
10058         * doc.c (Fsubstitute_command_keys):
10059         Remove buffer overflow crash.  Small code cleanups.
10060
10061         * casetab.c (check_case_table): Simpler code.
10062
10063         * window.c (Freplace_buffer_in_windows):
10064         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10065         (and similar implementation) as Fdelete_windows_on.
10066         Update all callers.
10067
10068         * alloc.c (Fmake_list):
10069         * alloc.c (make_vector):
10070         * alloc.c (Fmake_vector):
10071         * alloc.c (make_bit_vector):
10072         * alloc.c (Fmake_bit_vector):
10073         * alloc.c (Fbit_vector):
10074         * alloc.c (Fmake_string):
10075         * alloc.c (Fpurecopy):
10076         * alloc.c (Fmemory_limit):
10077         * buffer.c:
10078         * buffer.c (Fget_buffer):
10079         * buffer.c (Fkill_buffer):
10080         * buffer.c (complex_vars_of_buffer):
10081         * bytecode.c (Fcompiled_function_stack_depth):
10082         * callint.c (Fprefix_numeric_value):
10083         * event-stream.c:
10084         * event-stream.c (Fread_key_sequence):
10085         * casetab.c:
10086         * casetab.c (Fcase_table_p):
10087         * casetab.c (check_case_table):
10088         * casetab.c (Fset_case_table):
10089         * casetab.c (Fset_standard_case_table):
10090         * chartab.c:
10091         * chartab.c (Fchar_table_type):
10092         * chartab.c (Freset_char_table):
10093         * chartab.c (Fget_char_table):
10094         * chartab.c (Fget_range_char_table):
10095         * chartab.c (Fput_char_table):
10096         * chartab.c (Fmap_char_table):
10097         * chartab.c (Fcategory_table_p):
10098         * chartab.c (Fcheck_category_at):
10099         * chartab.c (Fchar_in_category_p):
10100         * chartab.c (Fcategory_table):
10101         * chartab.c (Fcopy_category_table):
10102         * chartab.c (Fset_category_table):
10103         * chartab.c (Fcategory_designator_p):
10104         * chartab.c (Fcategory_table_value_p):
10105         * cmds.c (Fdelete_char):
10106         * cmds.c (Fdelete_backward_char):
10107         * cmds.c (Fself_insert_command):
10108         * cmds.c (Fself_insert_internal):
10109         * console.c (Fvalid_console_type_p):
10110         * console.c (Fcdfw_console):
10111         * console.c (Fconsole_type):
10112         * console.c (Fconsole_name):
10113         * console.c (Fconsole_device_list):
10114         * console.c (Fconsole_on_window_system_p):
10115         * data.c:
10116         * data.c (Feq):
10117         * data.c (Fold_eq):
10118         * data.c (Fsubr_interactive):
10119         * data.c (Fchar_to_int):
10120         * data.c (Fint_to_char):
10121         * data.c (Fsetcar):
10122         * data.c (Fsetcdr):
10123         * data.c (Fnumber_to_string):
10124         * data.c (Fstring_to_number):
10125         * data.c (Frem):
10126         * database.c (mark_database):
10127         * database.c (finalize_database):
10128         * database.c (Fdatabase_live_p):
10129         * database.c (Fdatabasep):
10130         * device-x.c (Fx_get_resource):
10131         * device.c (Fdfw_device):
10132         * dired.c:
10133         * dired.c (Ffile_name_completion):
10134         * dired.c (Ffile_name_all_completions):
10135         * dired.c (Fuser_name_completion):
10136         * dired.c (Fuser_name_completion_1):
10137         * dired.c (Fuser_name_all_completions):
10138         * doc.c (Fdocumentation):
10139         * doc.c (Fdocumentation_property):
10140         * doc.c (Fsubstitute_command_keys):
10141         * editfns.c:
10142         * editfns.c (Fchar_to_string):
10143         * editfns.c (Fstring_to_char):
10144         * editfns.c (Ftemp_directory):
10145         * editfns.c (Finsert_char):
10146         * editfns.c (Fbuffer_substring_no_properties):
10147         * editfns.c (Fnarrow_to_region):
10148         * editfns.c (Fchar_equal):
10149         * editfns.c (Fchar_Equal):
10150         * editfns.c (Ftranspose_regions):
10151         * emacs.c (Fdump_emacs):
10152         * eval.c (Fthrow):
10153         * eval.c (Fcommand_execute):
10154         * eval.c (Fautoload):
10155         * eval.c (Fbacktrace):
10156         * eval.c (Fbacktrace_frame):
10157         * events.c:
10158         * events.c (Fcopy_event):
10159         * events.c (Fcharacter_to_event):
10160         * events.c (Fevent_button):
10161         * events.c (Fevent_process):
10162         * extents.c:
10163         * extents.c (Fnext_extent_change):
10164         * extents.c (Fextent_property):
10165         * faces.c (Ffacep):
10166         * faces.c (Fmake_face):
10167         * file-coding.c:
10168         * file-coding.c (Fencode_shift_jis_char):
10169         * file-coding.c (Fencode_big5_char):
10170         * fileio.c (Ffile_name_directory):
10171         * fileio.c (Ffile_name_nondirectory):
10172         * fileio.c (Ffile_name_as_directory):
10173         * fileio.c (Fdirectory_file_name):
10174         * fileio.c (Ffile_truename):
10175         * fileio.c (Fsubstitute_in_file_name):
10176         * fileio.c (Ffile_modes):
10177         * fileio.c (Fset_file_modes):
10178         * fileio.c (Fset_default_file_modes):
10179         * fileio.c (Fverify_visited_file_modtime):
10180         * floatfns.c (Facos):
10181         * floatfns.c (Fasin):
10182         * floatfns.c (Fatan):
10183         * floatfns.c (Fcos):
10184         * floatfns.c (Fsin):
10185         * floatfns.c (Ftan):
10186         * floatfns.c (Fbessel_j0):
10187         * floatfns.c (Fbessel_j1):
10188         * floatfns.c (Fbessel_jn):
10189         * floatfns.c (Fbessel_y0):
10190         * floatfns.c (Fbessel_y1):
10191         * floatfns.c (Fbessel_yn):
10192         * floatfns.c (Ferf):
10193         * floatfns.c (Ferfc):
10194         * floatfns.c (Flog_gamma):
10195         * floatfns.c (Fexp):
10196         * floatfns.c (Fexpt):
10197         * floatfns.c (Flog):
10198         * floatfns.c (Flog10):
10199         * floatfns.c (Fsqrt):
10200         * floatfns.c (Fcube_root):
10201         * floatfns.c (Facosh):
10202         * floatfns.c (Fasinh):
10203         * floatfns.c (Fatanh):
10204         * floatfns.c (Fcosh):
10205         * floatfns.c (Fsinh):
10206         * floatfns.c (Ftanh):
10207         * floatfns.c (Fabs):
10208         * floatfns.c (Ffloat):
10209         * floatfns.c (Flogb):
10210         * floatfns.c (Fceiling):
10211         * floatfns.c (Ffloor):
10212         * floatfns.c (Fround):
10213         * floatfns.c (Ftruncate):
10214         * floatfns.c (Ffceiling):
10215         * floatfns.c (Fffloor):
10216         * floatfns.c (Ffround):
10217         * floatfns.c (Fftruncate):
10218         * fns.c (Fstring_equal):
10219         * fns.c (Fstring_lessp):
10220         * fns.c (concat2):
10221         * fns.c (concat3):
10222         * fns.c (vconcat2):
10223         * fns.c (vconcat3):
10224         * fns.c (Fsubstring):
10225         * fns.c (Fassoc):
10226         * fns.c (Fold_assoc):
10227         * fns.c (assoc_no_quit):
10228         * fns.c (Fassq):
10229         * fns.c (Fold_assq):
10230         * fns.c (assq_no_quit):
10231         * fns.c (Frassoc):
10232         * fns.c (Fold_rassoc):
10233         * fns.c (Frassq):
10234         * fns.c (Fold_rassq):
10235         * fns.c (rassq_no_quit):
10236         * fns.c (Fremassoc):
10237         * fns.c (remassoc_no_quit):
10238         * fns.c (Fremassq):
10239         * fns.c (remassq_no_quit):
10240         * fns.c (Fremrassoc):
10241         * fns.c (Fremrassq):
10242         * fns.c (remrassq_no_quit):
10243         * fns.c (Fsort):
10244         * fns.c (Fplist_get):
10245         * fns.c (Fplist_put):
10246         * fns.c (Fplist_remprop):
10247         * fns.c (Fplist_member):
10248         * fns.c (Flax_plist_get):
10249         * fns.c (Flax_plist_put):
10250         * fns.c (Flax_plist_remprop):
10251         * fns.c (Flax_plist_member):
10252         * fns.c (Fequal):
10253         * fns.c (Fold_equal):
10254         * fns.c (Frequire):
10255         * fns.c (Fbase64_encode_region):
10256         * fns.c (Fbase64_encode_string):
10257         * fns.c (Fbase64_decode_region):
10258         * frame.c:
10259         * frame.c (frame_matches_frame_spec):
10260         * frame.c (device_matches_device_spec):
10261         * frame.c (next_frame):
10262         * frame.c (previous_frame):
10263         * frame.c (Fnext_frame):
10264         * frame.c (Fprevious_frame):
10265         * frame.c (Fframe_property):
10266         * frame.c (Fset_frame_height):
10267         * frame.c (Fset_frame_size):
10268         * frame.h:
10269         * glyphs.c:
10270         * glyphs.c (if):
10271         * glyphs.c (decode_error_behavior_flag):
10272         * glyphs.c (Fmake_image_instance):
10273         * indent.c (Findent_to):
10274         * intl.c (Fignore_defer_gettext):
10275         * keymap.c (Fkeymapp):
10276         * keymap.c (Flookup_key):
10277         * lread.c:
10278         * lread.c (Fload_internal):
10279         * lread.c (Feval_buffer):
10280         * lread.c (Feval_region):
10281         * macros.c (Fexecute_kbd_macro):
10282         * marker.c (set_marker_internal):
10283         * marker.c (Fset_marker):
10284         * marker.c (set_marker_restricted):
10285         * marker.c (Fcopy_marker):
10286         * marker.c (noseeum_copy_marker):
10287         * menubar.c:
10288         * menubar.c (Fpopup_menu):
10289         * minibuf.c:
10290         * mule-charset.c (Fcharset_name):
10291         * mule-charset.c (Fchar_charset):
10292         * mule-charset.c (Fchar_octet):
10293         * mule-charset.c (Fsplit_char):
10294         * mule-wnnfns.c (Fwnn_open):
10295         * mule-wnnfns.c (Fwnn_dict_comment):
10296         * mule-wnnfns.c (Fwnn_quit_henkan):
10297         * mule-wnnfns.c (Fwnn_word_toroku):
10298         * mule-wnnfns.c (Fwnn_word_sakujo):
10299         * mule-wnnfns.c (Fwnn_word_use):
10300         * mule-wnnfns.c (Fwnn_hindo_set):
10301         * objects.c:
10302         * objects.c (Fmake_color_instance):
10303         * objects.c (Fmake_font_instance):
10304         * print.c (Fwrite_char):
10305         * process.c:
10306         * process.c (mark_process):
10307         * process.c (print_process):
10308         * process.c (get_process_from_usid):
10309         * process.c (Fprocessp):
10310         * process.c (Fprocess_live_p):
10311         * process.c (Fget_process):
10312         * process.c (Fget_buffer_process):
10313         * process.c (get_process):
10314         * process.c (Fprocess_id):
10315         * process.c (Fprocess_name):
10316         * process.c (Fprocess_command):
10317         * process.c (init_process_io_handles):
10318         * process.c (start_process_unwind):
10319         * process.c (Fstart_process_internal):
10320         * process.c (Fopen_multicast_group_internal):
10321         * process.c (Fset_process_window_size):
10322         * process.c (read_process_output):
10323         * process.c (send_process):
10324         * process.c (Fprocess_tty_name):
10325         * process.c (Fset_process_buffer):
10326         * process.c (Fprocess_buffer):
10327         * process.c (Fprocess_mark):
10328         * process.c (set_process_filter):
10329         * process.c (Fset_process_filter):
10330         * process.c (Fprocess_filter):
10331         * process.c (Fprocess_send_region):
10332         * process.c (Fprocess_send_string):
10333         * process.c (exec_sentinel):
10334         * process.c (Fset_process_sentinel):
10335         * process.c (Fprocess_sentinel):
10336         * process.c (status_notify):
10337         * process.c (Fprocess_status):
10338         * process.c (Fprocess_exit_status):
10339         * process.c (process_send_signal):
10340         * process.c (Fprocess_send_eof):
10341         * process.c (deactivate_process):
10342         * process.c (remove_process):
10343         * process.c (Fdelete_process):
10344         * process.c (kill_buffer_processes):
10345         * process.c (Fprocess_kill_without_query):
10346         * process.c (Fprocess_kill_without_query_p):
10347         * rangetab.c:
10348         * rangetab.c (Fget_range_table):
10349         * rangetab.c (Fput_range_table):
10350         * rangetab.c (Fremove_range_table):
10351         * rangetab.c (Fclear_range_table):
10352         * search.c:
10353         * search.c (Fskip_chars_forward):
10354         * search.c (Fskip_chars_backward):
10355         * search.c (Fskip_syntax_forward):
10356         * search.c (Fskip_syntax_backward):
10357         * search.c (search_command):
10358         * search.c (Freplace_match):
10359         * search.c (Fregexp_quote):
10360         * select.c (Fown_selection_internal):
10361         * select.c (Fselection_owner_p):
10362         * select.c (Fselection_exists_p):
10363         * select.c (Fget_selection_internal):
10364         * specifier.c:
10365         * symbols.c:
10366         * symbols.c (Fintern):
10367         * symbols.c (Fintern_soft):
10368         * symbols.c (Funintern):
10369         * symbols.c (Fapropos_internal):
10370         * symbols.c (Fset_default):
10371         * syntax.c:
10372         * syntax.c (Fsyntax_table_p):
10373         * syntax.c (Fcopy_syntax_table):
10374         * syntax.c (Fset_syntax_table):
10375         * syntax.c (Fchar_syntax):
10376         * syntax.c (syntax_match):
10377         * syntax.c (Fmatching_paren):
10378         * syntax.c (Fforward_word):
10379         * syntax.c (scan_lists):
10380         * syntax.c (Fscan_lists):
10381         * syntax.c (Fscan_sexps):
10382         * syntax.c (Fparse_partial_sexp):
10383         * toolbar.c (Fcheck_toolbar_button_syntax):
10384         * tooltalk.doc:
10385         * window.c:
10386         * window.c (Fwindowp):
10387         * window.c (Fwindow_live_p):
10388         * window.c (Fwindow_point):
10389         * window.c (Fdelete_window):
10390         * window.c (Fnext_window):
10391         * window.c (Fprevious_window):
10392         * window.c (Fother_window):
10393         * window.c (window_loop):
10394         * window.c (Fget_lru_window):
10395         * window.c (Fsplit_window):
10396         * window.c (Fenlarge_window):
10397         * window.c (Fenlarge_window_pixels):
10398         * window.c (Fshrink_window):
10399         * window.c (Fshrink_window_pixels):
10400         * window.c (change_window_height):
10401         * window.c (Fwindow_configuration_p):
10402         * window.c (Fcurrent_window_configuration):
10403         * window.h:
10404         * casefiddle.c (casify_object):
10405         * casefiddle.c (Fupcase):
10406         * casefiddle.c (Fdowncase):
10407         * casefiddle.c (Fcapitalize):
10408         * casefiddle.c (Fupcase_initials):
10409         * casefiddle.c (casify_region_internal):
10410         * casefiddle.c (casify_region):
10411         * casefiddle.c (Fupcase_region):
10412         * casefiddle.c (Fdowncase_region):
10413         * casefiddle.c (Fcapitalize_region):
10414         * casefiddle.c (Fupcase_initials_region):
10415         * casefiddle.c (Fupcase_word):
10416         * casefiddle.c (Fdowncase_word):
10417         * casefiddle.c (Fcapitalize_word):
10418         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10419         Replace 0 with '\0' when working with bytes.
10420         Replace initial "(" with "\(" in docstrings.
10421
10422 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10423
10424         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10425
10426         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10427
10428 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10429
10430         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10431
10432 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10433
10434         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10435         correctly.
10436
10437 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10438
10439         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10440         (inhibit_auto_save_session): New variable.
10441         (vars_of_fileio): Declare and initialize them.
10442         * fileio.c (Fdo_auto_save): Don't create session file if
10443         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10444
10445 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10446
10447         * sgiplay.c (play_internal): C++ compilability.
10448         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10449         * callproc.c (Fold_call_process_internal):
10450         Remove unused vars `env', `first'.
10451         * scrollbar.c (update_scrollbar_instance):
10452         #### unused var `current_window'.
10453         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10454         etc. within #ifdef NOT_YET.
10455         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10456         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10457         * specifier.c (specifier_instance):
10458         #### unused var `tag'.
10459         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10460
10461 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10462
10463         * fns.c (Fbutlast):
10464         * fns.c (list_sort):
10465         * fns.c (Ffillarray):
10466         * fns.c (bytecode_nconc2):
10467         * fns.c (Fnconc):
10468         * fns.c (mapcar1):
10469         * fns.c (Fmapconcat):
10470         Be pedantically 64-bit correct.  For the time when someone will
10471         want to have a list with length > 2**32.
10472
10473         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10474         Work around MIPSpro compiler bug.
10475
10476         * process-unix.c (unix_kill_child_process): Add snarky comment.
10477         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10478
10479         * config.h.in: Oops, _getpt ==> _getpty
10480
10481 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10482
10483         * config.h.in:
10484         * regex.c:
10485         Use void*, not char*, as return type of alloca().
10486
10487         * alloc.c (free_marker): Side effect inside assert expression!
10488
10489 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10490
10491         * mule-charset.c (Fset_charset_ccl_program): To check
10492         if the given ccl program is valid, use setup_ccl_program()
10493         instead of CHECK_VECTOR().
10494         (Fmake_charset): Likewise.
10495
10496 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10497
10498         * faces.c (get_extent_fragment_face_cache_index):
10499         Fix cachel.merged_faces memory leak.
10500
10501 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10502
10503         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10504         Reset MSB of octets obtained by DECODE_SJIS
10505         because of the incompatibility with Emacs.
10506         (ccl_driver)<CCL_ENCODE_SJIS>:
10507         Set MSB of octets before passing them to
10508         ENCODE_SJIS because of the incompatibility
10509         with Emacs.
10510
10511 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10512
10513         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10514         (DECLARE_LRECORD): Undo the last change.
10515         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10516
10517 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10518
10519         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10520         the implementation to lrecord_implementations_table.
10521
10522 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10523
10524         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10525         initial value of `lrecord_type_##c_name' and
10526         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10527         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10528         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10529         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10530         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10531
10532 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10533
10534         * miscplay.c (sndcnv8S_2mono):
10535         (sndcnv2monounsigned):
10536         (sndcnvULaw_2linear):
10537         (sndcnv16swap):
10538         Remove implementation-defined behavior.
10539
10540 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10541
10542         * input-method-xlib.c: Warning suppression.
10543
10544 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10545
10546         * mule-ccl.c: Sync up with Emacs 21.0.90.
10547         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10548         Do nothing.
10549         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10550         Likewise.
10551         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10552         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10553         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10554         leading char belongs to official 2-dimensional charset.
10555         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10556         write the given character as is.  Otherwise,
10557         if it is a multibyte char, convert it by
10558         non_ascii_set_charptr_emchar, then write it.
10559         (CCL_WRITE_STRING): Likewise.
10560         (ccl_get_compiled_code): New function.
10561         (setup_ccl_program): When ccl_prog is invalid,
10562         return -1.
10563         (Fregister_code_conversion_map): New function.
10564         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10565
10566         * mule-ccl.h: Sync up with Emacs 21.0.90.
10567         (Fregister_ccl_program): export it.
10568
10569         * redisplay-msw.c (separate_textual_runs):
10570         If ccl program is not valid, don't do ccl conversion.
10571
10572         * redisplay-x.c (separate_textual_runs): Ditto.
10573
10574         * file-coding.c (Fmake_coding_system):
10575         When type is ccl and value is vector, register it
10576         with a proper symbol.  And checks whether the
10577         given ccl program is valid.
10578         (mule_decode): When calling ccl_driver, if src indicates
10579         NULL pointer, set an empty string instead.
10580         (mule_encode): Likewise.
10581
10582 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10583
10584         The following large batch of changes gets us back to a state of
10585         C++ compilability.  Extbyte is now a char, which means that
10586         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10587
10588         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10589
10590         * sound.c (Fplay_sound): Type correctness.
10591
10592         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10593         (x_get_window_property): Type correctness.
10594         (receive_incremental_selection): unsigned char ==> Extbyte
10595         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10596         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10597         (Fx_store_cutbuffer_internal): Type correctness.
10598
10599         * process-unix.c (try_to_initialize_subtty): Type correctness.
10600
10601         * objects-x.c (x_print_color_instance): Type correctness.
10602         (x_print_font_instance): Type correctness.
10603         (x_list_fonts): SExtbyte ==> Extbyte.
10604         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10605         (x_find_charset_font): SExtbyte ==> Extbyte.
10606         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10607         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10608         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10609         Use bufbyte_strcmp.
10610
10611         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10612         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10613         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10614         (BYTE_C0_P): Use bit ops for char-signedness safety.
10615         (BYTE_C1_P): Use bit ops for char-signedness safety.
10616         (CHARSET_BY_LEADING_BYTE):
10617         (CHARSET_BY_ATTRIBUTES):
10618         Always use inline function.
10619         Use type_checking_assert.
10620         Hide chlook.
10621
10622         * mule-charset.c (non_ascii_charptr_copy_char):
10623         Modify to work with both ASCII and non-ASCII characters.
10624         Improve docs and variable names.
10625         Replace over-clever fall-through switch with a simple loop.
10626         (Lstream_get_emchar_1):
10627         Replace over-clever fall-through switch with a simple loop.
10628
10629         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10630         Warning suppression.
10631
10632         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10633         the return value of Lstream_getc, which could be EOF as well.
10634
10635         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10636
10637         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10638         APIs can be used on Extbytes without casts.  Risky!
10639         (SExtbyte): Remove.
10640         (UExtbyte): Remove.
10641
10642         * input-method-xlib.c (XIM_init_device):
10643         Use Xlib.h instead of IntrinsicP.h.
10644         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10645         which will break in X11R7.
10646         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10647         to call XRegisterIMInstantiateCallback with correct types.
10648
10649         * gui-x.c (button_item_to_widget_value): Type correctness.
10650
10651         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10652
10653         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10654         (xbm_instantiate_1): Type correctness.
10655         (BUILD_GLYPH_INST):  Type correctness.
10656
10657         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10658
10659         * file-coding.c:
10660         (decode_coding_sjis):
10661         (decode_coding_big5):
10662         (decode_coding_ucs4):
10663         (decode_coding_utf8):
10664         (decode_coding_iso2022):
10665         (decode_coding_no_conversion):
10666         Make all decoding functions take an Extbyte * arg.
10667         (encode_coding_sjis):
10668         (encode_coding_big5):
10669         (encode_coding_ucs4):
10670         (encode_coding_utf8):
10671         (encode_coding_iso2022):
10672         (encode_coding_no_conversion):
10673         Make all encoding functions take a Bufbyte * arg.
10674         Use size_t instead of unsigned int for memory sizes.
10675         Only cast to unsigned char whenever dereferencing Extbyte *.
10676
10677         * doc.c (unparesseuxify_doc_string): Type correctness.
10678
10679         * console-x.c (split_up_display_spec):
10680         Rewrite without using details of internal string representation.
10681         (x_semi_canonicalize_device_connection): Type correctness.
10682
10683         * config.h.in:
10684         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10685         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10686         (HAVE_XFREE386): Removed.
10687
10688         * buffer.h (DEC_CHARPTR): `const' correctness.
10689         (bufbyte_strcmp): New.
10690         (bufbyte_memcmp): New.
10691
10692         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10693
10694         * buffer.h (XCHAR_OR_CHAR_INT):
10695         Always use inline function.
10696         Remove redundant type checking assert() - XINT will abort quite nicely.
10697
10698 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10699
10700         * search.c (Freplace_match): Set newtext to an empty string.
10701
10702 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10703
10704         * s/decosf1-3.h: Remove #include of stropts.h
10705         * s/ptx.h: Remove #include of stropts.h
10706         * s/usg5-4.h: Remove #include of stropts.h
10707         * sysproc.h:
10708         * config.h.in:
10709         Use stropts.h, not sys/stropts.h.
10710         Use strtio.h, not sys/strtio.h.
10711
10712 2000-10-04  Martin Buchholz <martin@xemacs.org>
10713
10714         * XEmacs 21.2.36 is released.
10715
10716 2000-09-21  Andy Piper  <andy@xemacs.org>
10717
10718         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10719         changes still involve copying the widget tree.
10720         (update_widget_face): make sure a change is register in the widget
10721         tree. Call update_tab_widget_face appropriately.
10722         (update_tab_widget_face): ditto.
10723         (x_tab_control_redisplay): make sure non-structural changes still
10724         involve copying the widget tree.
10725
10726 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10727
10728         * lread.c (locate_file): Check the path element is non-nil.
10729
10730 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10731
10732         * lisp.h: Warning suppression for SCO compilers.
10733
10734         * redisplay-tty.c (reset_tty_modes): Fix crash.
10735         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10736
10737 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10738
10739         Big signal/process handling overhaul.  Bugs fixed:
10740         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10741         M-x comint-kill-subjob should work for both values nil and t of
10742         process-connection-type. It was broken on most platforms.
10743         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10744         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10745         * process-unix.c: Signal/Process handling overhaul.
10746         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10747         (allocate_pty): Use all available modern methods of allocating
10748         ptys, falling back to old style BSD allocation as a last resort.
10749         Use allegedly more secure Unix98 pty allocation by default.
10750         (allocate_pty_the_old_fashioned_way): New. the last resort.
10751         (unix_create_process): Push ptem, ldterm, ttcompat where
10752         available.  Autoconfiscate.
10753         (try_to_initialize_subtty): New.
10754         (unix_kill_child_process): Proper signal handling for ptys on most
10755         platforms, using special knowledge of AIX, BSD, etc...
10756         (unix_create_process): Always disconnect_controlling_terminal() for
10757         subprocesses, whether using ptys or not.
10758         * process.h: Remove old getpt-dependent PTY code.
10759         * process.c (Fprocess_send_signal): New, obvious generic function.
10760         (decode_signal): New.
10761         (Finterrupt_process):
10762         (Fkill_process):
10763         (Fquit_process):
10764         (Fstop_process):
10765         (Fcontinue_process):
10766         (Fsignal_process): Use decode_signal.
10767         (process_send_signal):
10768         Many docstring corrections.
10769         Allow any signal to be sent to a process object.
10770         * config.h.in: Add symbols for big signal/process overhaul.
10771         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10772         * sysproc.h: Include process-related headers, where available:
10773         sys/stropts.h sys/strtio.h pty.h libutil.h
10774         * s/irix4-0.h:
10775         * s/irix5-0.h:
10776         * s/cygwin32.h:
10777         * s/gnu.h:
10778         * s/linux.h:
10779         * s/hpux.h:
10780         * s/aix3-1.h:
10781         Remove old S&M pty stuff.
10782         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10783         * systty.h: Simplify cpp hackery, improve comments.
10784         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10785
10786         * editfns.c (Fformat_time_string):
10787         Be a little more paranoid with the return value of ctime.
10788
10789         * fileio.c (check_executable):
10790         (check_writable):
10791         Use symbolic constants X_OK, W_OK.
10792
10793         * console-x.c (split_up_display_spec): Fix a warning.
10794
10795 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10796
10797         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10798         * ntproc.c (sys_spawnve): make_string ==> build_string
10799         Small clarity improvements.
10800
10801 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10802
10803         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10804
10805         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10806
10807         * config.h.in (HAVE_STRCASECMP): Remove.
10808
10809 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10810
10811         * redisplay-output.c (redisplay_output_pixmap):
10812         Cleaner and possibly more 64-bit correct code.
10813
10814 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10815
10816         * dumper.c (pdump_load_finish): move restoration of
10817         `noninteractive1' to emacs.c (main_1).
10818         * emacs.c (main_1): protect LISP-visible command-line flags
10819         from pdump_load().
10820
10821 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10822
10823         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10824         DUMP_TARGET instead of literal program names.
10825
10826 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10827
10828         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10829
10830 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10831
10832         * *: Spelling mega-patch
10833
10834 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10835
10836         * fns.c (bad_bad_turtle):
10837         Delete "Eek!" comment, since we fixed the bug to which it refers.
10838
10839 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10840
10841         * alloca.c: Replace REGISTER with register.
10842
10843 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10844
10845         * file-coding.c (ucs_to_char): Use countof.
10846
10847 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10848
10849         * file-coding.c: (ucs_to_char):
10850         (complex_vars_of_file_coding):
10851         Use countof instead of sizeof.
10852         Use CHECK_NATNUM instead of CHECK_INT.
10853
10854         * sysdep.c (strcasecmp): Remove.
10855         * device-x.c (ascii_strcasecmp): New.
10856         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10857         Avoid using non-standard non-portable strcasecmp.
10858
10859 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10860
10861         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10862         * font-lock.c: remove reference to emacsfns.h.
10863         * search.c: small doc improvement.
10864         * event-Xt.c: correct file names in comments.
10865         * console-x.h Correct file names in comments.
10866         * frame.c: Correct file names in comments.
10867         * event-stream.c: remove Energize from comments.
10868
10869 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10870
10871         * symeval.h (DEFERROR_STANDARD):
10872         (DEFERROR):
10873         (DEFSYMBOL):
10874         (DEFSYMBOL_NO_DUMP):
10875         (DEFSYMBOL_MULTIWORD_PREDICATE):
10876         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10877         (DEFKEYWORD):
10878         The construct &##name is not sensible C.
10879         Fixes compilation errors with Unixware native compiler.
10880
10881 2000-09-14  Martin Buchholz  <martin@xemacs.org>
10882
10883         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10884         (next_frame_internal): Removed.  We now just have next_frame.
10885         (next_frame):
10886         Write a simpler and cleaner one-pass algorithm.
10887         Remove called_from_delete_device arg and #ifdefed-out code.
10888         (previous_frame):
10889         Renamed from prev_frame.  Update callers.
10890         Cleaned up to have an analogous implementation to next_frame.
10891         (other_visible_frames_internal): Remove the
10892         called_from_delete_device bogus arg, and hence, remove this
10893         function.  Just use other_visible_frames().
10894
10895         * window.c (Fnext_window):
10896         Prettify docstring.
10897         Since next_frame() is guaranteed to return a frame, remove check
10898         for nil inserted in previous patch.
10899         (Fprevious_window):
10900         Prettify docstring.
10901         Make code look more like Fnext_window.
10902         (window_loop):
10903         Respect the `console' arg when iterating through windows.
10904         Fixes bug: (get-buffer-window buffer t device) not respecting
10905         the `device' arg.
10906         This function needs more work, as others have pointed out.
10907
10908         * frame.h: Rename prev_frame to previous_frame.
10909         device_matches_console_spec no longer takes a `frame' arg.
10910
10911         * s/gnu.h:
10912         * s/linux.h:
10913         * s/hpux.h:
10914         Use EMACS_BLOCK_SIGNAL instead of sigblock.
10915         From "Golubev I. N." <gin@mo.msk.ru>.
10916
10917         * make-src-depend: Fix typo.
10918
10919 2000-09-13  Martin Buchholz  <martin@xemacs.org>
10920
10921         * window.c (Fnext_window):
10922         next_frame() might return nil, not a frame.
10923         Fixes this crash:
10924         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10925
10926         * frame.c (next_frame_internal):
10927         We've passed a frame if we've passed its device.
10928         Fixes this crash:
10929         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10930 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10931
10932 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10933
10934         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10935         Allow option to suppress accelerators in menu/dialog items.
10936         (populate_or_checksum_helper): Pass dialog title through above.
10937
10938 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10939
10940         * event-msw.c (mswindows_key_to_emacs_keysym):
10941         Add "pause" key, fix "menu" key.
10942
10943 2000-09-09  Martin Buchholz  <martin@xemacs.org>
10944
10945         * eval.c (reinit_vars_of_eval):
10946         Increase max_lisp_eval_depth to 1000,
10947         required for thai-xtis.el to byte-compile under some circumstances.
10948
10949 2000-09-04  Martin Buchholz  <martin@xemacs.org>
10950
10951         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10952         From Kenichi Handa.
10953
10954 2000-09-01  Martin Buchholz  <martin@xemacs.org>
10955
10956         * make-src-depend: Make the generated Makefiles smaller.
10957
10958         * s/hpux.h (SETUP_SLAVE_PTY):
10959         Provide a %d in the format string for the errno argument.
10960
10961         * editfns.c (Ftemp_directory):
10962         Warning fix.
10963         Avoid buffer overrun on very long file name.
10964
10965         * input-method-xlib.c (XIM_init_device):
10966         6th parameter of XRegisterIMInstantiateCallback has different
10967         pointer types on different OSes, so simply cast to (void *).
10968
10969         * unexhp9k800.c: Warning fixes.  Fiddly changes.
10970
10971         * sysdll.c (dll_open):
10972         shl_load will hang hard if passed a NULL filename.
10973         Simply return NULL for compatibility with dlopen.
10974         * sysdll.c: Conform to XEmacs coding standards.
10975
10976         * sysdep.c (get_pty_max_bytes):
10977         Support pty input lines longer than 512 bytes on HP-UX 10.20.
10978
10979 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10980
10981         * tooltalk.c: Add #include <syssignal.h>
10982
10983 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
10984
10985         * s/hpux.h: Don't use undefined function sigunblock().
10986
10987 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10988
10989         * config.h.in: Add HAVE_BALLOON_HELP.
10990         * emacs.c: Use HAVE_BALLOON_HELP.
10991         * Makefile.in.in (x_objs):
10992         Make Balloon Help conditional on finding shape.h.
10993
10994 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
10995
10996         * syntax.c (regex_emacs_buffer_p): New variable.
10997         * syntax.h (regex_emacs_buffer_p): extern.
10998         * search.c (looking_at_1):
10999         (string_match_1):
11000         (fast_string_match):
11001         (search_buffer): Set regex_emacs_buffer_p.
11002         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11003         when before_dot, at_dot, after_dot.
11004
11005 2000-08-23  Andy Piper  <andy@xemacs.org>
11006
11007         * gui-x.c (popup_selection_callback): Only set action_occurred
11008         when we really have an image instance.
11009         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11010
11011 2000-08-23  Andy Piper  <andy@xemacs.org>
11012
11013         * gui-msw.c (mswindows_handle_gui_wm_command): set
11014         action_occurred.
11015         * gui-x.c (popup_selection_callback): ditto.
11016
11017         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11018         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11019         (struct Lisp_Image_Instance): add action_occurred flag.
11020
11021         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11022         (image_instance_changed): ditto.
11023         (reset_frame_subwindow_instance_cache): only unmap windows - do
11024         not remove them from the cache also.
11025
11026         * glyphs-widget.c (tab_control_update): better debug.
11027         (progress_gauge_update): ditto.
11028         (layout_update): ditto.
11029         (layout_instantiate): ditto.
11030         (tab_control_order_only_changed): cope with null pending items.
11031
11032         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11033         debug. Force selection of an item when an action occurred. Cope
11034         with null pending_items.
11035         (mswindows_progress_gauge_redisplay): better debug.
11036         * glyphs-x.c (x_tab_control_redisplay): ditto.
11037
11038         * redisplay.c (redisplay_frame): reset the frame cache if the
11039         frame is garbaged.
11040
11041         * window.c (Fset_window_configuration): potentially re-enable
11042         frame cache reset.
11043         (window_unmap_subwindows): need to finalize instances here since
11044         it is only used in mark_window_as_deleted.
11045
11046 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11047
11048         * nas.c (SndOpenDataForReading):
11049         nas.c (WaveOpenDataForReading):
11050         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11051         Somehow escaped from the 2000-08-14 patch.
11052
11053 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11054
11055         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11056         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11057
11058 2000-08-21  Andy Piper  <andy@xemacs.org>
11059
11060         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11061         window if it is not already displayed.
11062
11063         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11064         it is not already displayed.
11065
11066         * window.c (Fset_window_configuration): don't reset the frame
11067         cache.
11068
11069         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11070         instances from the frame cache if we are actually finalizing them.
11071         (reset_frame_subwindow_instance_cache): reset frame cache only
11072         after unmapping everything.
11073         (map_subwindow): set displayed flag after mapping.
11074
11075 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11076
11077         * data.c (indirect_function):
11078         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11079
11080         * eval.c (function_argcount):
11081         Use original function when signaling errors.
11082
11083 2000-08-18  Andy Piper  <andy@xemacs.org>
11084
11085         * frame.c (delete_frame_internal): use new
11086         free_frame_subwindow_instances name.
11087
11088         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11089         (add_tab_item): make return type correct.
11090         (mswindows_tab_control_instantiate): assert index of tab.
11091         (mswindows_tab_control_redisplay): Re-code to use
11092         gui_item_equal_sans_selected and gui_item_list_find_selected.
11093
11094         * glyphs-widget.c (tab_control_update): Correct comment.
11095
11096         * window.c (window_unmap_subwindows): use new
11097         unmap_subwindow_instance_cache_mapper.
11098         (window_unmap_subwindows_cache_mapper): deleted.
11099         (Fset_window_configuration): comparisons should now be with
11100         EQ. Preserve the subwindow instance cache across configuration
11101         changes.
11102         (allocate_window): ditto.
11103         (make_dummy_parent): ditto.
11104
11105         * glyphs.c (free_frame_subwindow_instances): rename from
11106         free_frame_subwindow_instance_cache. finalize all instances rather
11107         than just those in the display cache.
11108         (finalize_all_subwindow_instances): walk windows unmapping and
11109         finalizing subwindows.
11110         (unmap_subwindow_instance_cache_mapper): moved from
11111         window.c. Allow finalization as well as unmapping.
11112
11113         * gui.c (gui_item_list_find_selected): new function.
11114
11115         * gui.h (gui_item_list_find_selected): declare.
11116
11117         * glyphs-x.c (x_tab_control_redisplay): pick tab
11118         explicitly. Re-code to use gui_item_equal_sans_selected and
11119         gui_item_list_find_selected.
11120
11121         * glyphs-x.h: add lwlib-utils.h
11122
11123         * buffer.c (Frecord_buffer): undo previous change.
11124
11125 2000-08-09  Vin Shelton  <acs@xemacs.org>
11126
11127         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11128         possible.  Create temporary files more securely.  The patch was
11129         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11130         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11131         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11132         for details.
11133
11134 2000-08-07  Ben Wing  <ben@xemacs.org>
11135
11136         * getloadavg.c: remove duplicate (and windows-breaking)
11137         includes of fcntl.h and sys/file.h.
11138
11139         * nt.c: remove duplicate getloadavg() definition.
11140
11141         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11142         encodings.
11143
11144 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11145
11146         * eval.c (function_argcount): If function needs to be autoloaded
11147         actually use the loaded definition.
11148         GCPRO function.
11149
11150 2000-08-05  Ben Wing  <ben@xemacs.org>
11151
11152         * getloadavg.c: add prototype for getloadavg().  remove
11153         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11154         of the code).  remove duplicate header includes.
11155
11156         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11157
11158         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11159         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11160         useful load average.
11161
11162         * alloc.c (reinit_alloc_once_early): removed references to
11163         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11164         the lisp vars are the only things referencing the malloc_sbrk_*
11165         vars, and they were already if 0'd out.  these vars only exist
11166         in the older malloc.c, which is basically unused, and they're
11167         only for informational purposes.
11168
11169         * m\*.h: removed useless VIRT_ADDR_VARIES.
11170
11171         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11172
11173 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11174
11175         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11176         color if the image is a mono pixmap.
11177
11178 2000-07-30  Ben Wing  <ben@xemacs.org>
11179
11180         * Makefile.in.in (release):
11181         Remove stray @.
11182
11183         * buffer.c (directory_is_current_directory):
11184         * dired-msw.c (mswindows_get_files):
11185         * dired.c:
11186         * dired.c (Fdirectory_files):
11187         * dired.c (file_name_completion_stat):
11188         * dired.c (Ffile_attributes):
11189         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11190         preprocessor tricks, to avoid problems on some machines
11191         (e.g. SCO).
11192
11193         * callproc.c (egetenv): GC docs.
11194
11195         * console-msw.h:
11196         * console-msw.h (struct mswindows_dialog_id):
11197         * lrecord.h (lrecord_type):
11198         New object for use with MSW dialogs.
11199
11200         * console.h (struct console_methods):
11201         New enable/disable frame methods, for proper modal dialogs.
11202
11203         * device-msw.c (msprinter_default_printer): Fix to follow
11204         proper Mule conventions.
11205
11206         * device-msw.c:
11207         * device-msw.c (signal_open_printer_error):
11208         * device-msw.c (msprinter_init_device):
11209         * device-msw.c (ensure_not_printing):
11210         * device-msw.c (plist_get_margin):
11211         * device-msw.c (Fmsprinter_select_settings):
11212         * device-msw.c (finalize_devmode):
11213         * device-msw.c (Fmsprinter_settings_despecialize):
11214         * device-msw.c (signal_enum_priner_error):
11215         * extents.c (decode_extent):
11216         * extents.c (decode_map_extents_flags):
11217         * extents.c (decode_extent_at_flag):
11218         * extents.c (Fextent_at):
11219         * extents.c (Fextents_at):
11220         * extents.c (symbol_to_glyph_layout):
11221         [[[[2]]]] Use structured errors.
11222
11223         * dialog-msw.c:
11224         * dialog-msw.c (mswindows_is_dialog_msg):
11225         * dialog-msw.c (mark_mswindows_dialog_id):
11226         * dialog-msw.c (dialog_proc):
11227         * dialog-msw.c (handle_question_dialog_box):
11228         * dialog-msw.c (syms_of_dialog_mswindows):
11229         Define new object to clean up marking; use it as a dialog identifier.
11230         Call new delete-dialog-box-hook.
11231
11232         * dialog-x.c (dbox_selection_callback):
11233         * dialog-x.c (dbox_descriptor_to_widget_value):
11234         * dialog-x.c (x_make_dialog_box_internal):
11235         Call new delete-dialog-box-hook.
11236         Return an id.
11237
11238         * dialog.c:
11239         * dialog.c (syms_of_dialog):
11240         * dialog.c (vars_of_dialog):
11241         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11242
11243         * eval.c:
11244         * eval.c (signal_call_debugger):
11245         when noninteractive, output stack traces on the console instead
11246         of in a (never-seen) buffer.
11247
11248         * eval.c (signal_type_error):
11249         * eval.c (invalid_argument_2):
11250         * lisp.h:
11251         new funs for use w/structured errors.
11252
11253         * event-Xt.c:
11254         * event-Xt.c (x_to_emacs_keysym):
11255         * event-Xt.c (describe_event):
11256         * event-Xt.c (emacs_Xt_event_handler):
11257         * event-Xt.c (vars_of_event_Xt):
11258         * event-msw.c:
11259         * event-msw.c (mswindows_wnd_proc):
11260         * event-msw.c (vars_of_event_mswindows):
11261         rename {x,mswindows}-debug-events to debug-{}-events for
11262         consistency with other debug-foo variables.
11263
11264         * event-stream.c:
11265         document next-event more clearly.
11266
11267         * fileio.c (Ffile_name_directory):
11268         * fileio.c (Ffile_name_nondirectory):
11269         * fileio.c (Funhandled_file_name_directory):
11270         * fileio.c (file_name_as_directory):
11271         * fileio.c (Ffile_name_as_directory):
11272         * fileio.c (directory_file_name):
11273         * fileio.c (Fdirectory_file_name):
11274         * fileio.c (Fmake_temp_name):
11275         * fileio.c (Ffile_truename):
11276         * fileio.c (Fsubstitute_in_file_name):
11277         * fileio.c (expand_and_dir_to_file):
11278         * fileio.c (barf_or_query_if_file_exists):
11279         * fileio.c (check_executable):
11280         * fileio.c (Ffile_exists_p):
11281         * fileio.c (Ffile_writable_p):
11282         * fileio.c (Ffile_directory_p):
11283         * fileio.c (Ffile_regular_p):
11284         * fileio.c (Ffile_modes):
11285         * fileio.c (Ffile_newer_than_file_p):
11286         * fileio.c (Fverify_visited_file_modtime):
11287         * fileio.c (Fset_visited_file_modtime):
11288         * fileio.c (auto_save_1):
11289         (1). (2).
11290         fix up gcpro's.
11291
11292         * frame-msw.c:
11293         * frame-msw.c (mswindows_init_frame_1):
11294         * frame-msw.c (mswindows_enable_frame):
11295         * frame-msw.c (error_frame_unsizable):
11296         * frame-msw.c (msprinter_init_frame_1):
11297         * frame-msw.c (msprinter_init_frame_3):
11298         * frame-msw.c (console_type_create_frame_mswindows):
11299         (2).
11300         implement new enable/disable frame methods.
11301
11302         * frame-x.c:
11303         * frame-x.c (x_enable_frame):
11304         * frame-x.c (console_type_create_frame_x):
11305         implement new enable/disable frame methods.
11306
11307         * frame.c:
11308         * frame.c (Fdisable_frame):
11309         * frame.c (syms_of_frame):
11310         * frame.h (struct frame):
11311         implement new enable/disable frame methods/functions.
11312
11313         * general-slots.h:
11314         add initial-focus.
11315
11316         * glyphs-msw.c (mswindows_widget_instantiate):
11317         comment that initial-focus should be implemented.
11318
11319         * glyphs-widget.c:
11320         * glyphs-widget.c (check_valid_instantiator):
11321         * glyphs-widget.c (check_valid_orientation):
11322         * glyphs-widget.c (check_valid_tab_orientation):
11323         * glyphs-widget.c (check_valid_justification):
11324         * glyphs-widget.c (check_valid_border):
11325         * glyphs-widget.c (check_valid_callback):
11326         * glyphs-widget.c (check_valid_int_or_function):
11327         * glyphs-widget.c (check_valid_string_or_vector):
11328         * glyphs-widget.c (check_valid_item_list_1):
11329         * glyphs-widget.c (widget_validate):
11330         * glyphs-widget.c (combo_box_validate):
11331         * glyphs-widget.c (widget_instantiate):
11332         * glyphs-widget.c (syms_of_glyphs_widget):
11333         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11334         * glyphs-widget.c (image_instantiator_combo_box):
11335         * glyphs-widget.c (image_instantiator_scrollbar):
11336         * glyphs-widget.c (image_instantiator_tab_control):
11337         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11338         (2).
11339         support (unimplemented) keyword initial-focus.
11340         reindent long macros.
11341
11342         * glyphs-x.c (x_redisplay_widget):
11343         * glyphs-x.c (x_button_instantiate):
11344         * glyphs-x.c (x_button_redisplay):
11345         * glyphs-x.c (x_progress_gauge_instantiate):
11346         * glyphs-x.c (x_edit_field_instantiate):
11347         * glyphs-x.c (x_combo_box_instantiate):
11348         * glyphs-x.c (x_tab_control_instantiate):
11349         * glyphs-x.c (x_label_instantiate):
11350         * gui-x.c:
11351         * gui-x.c (button_item_to_widget_value):
11352         * gui-x.c (gui_items_to_widget_values_1):
11353         * gui-x.c (gui_item_children_to_widget_values):
11354         * gui-x.c (gui_items_to_widget_values):
11355         * gui-x.h:
11356         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11357         add new flag to gui-parsing routines to indicate whether
11358         accelerator specs should be supported.
11359
11360         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11361
11362         * glyphs.h (struct Lisp_Image_Instance):
11363         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11364         add initial-focus flag.
11365
11366         * gui.c:
11367         * gui.c (syms_of_gui):
11368         * gui.c (vars_of_gui):
11369         clean up menu-no-selection-hook.
11370
11371         * gui.h:
11372         support delete-dialog-box-hook.
11373
11374         * lread.c (Fload_internal):
11375         * lread.c (locate_file_in_directory_mapper):
11376         (1).
11377
11378         * lrecord.h:
11379         * lrecord.h (struct toolbar_button):
11380         * lrecord.h (syms_of_toolbar):
11381         document how to create a new object.
11382
11383         * menubar-msw.c (mswindows_char_is_accelerator):
11384         may be called on frames w/o menus.
11385
11386         * menubar.c (vars_of_menubar):
11387         clean up :filter docs.
11388
11389         * nt.c (readdir):
11390         * ntproc.c:
11391         (1).
11392
11393         * process-nt.c:
11394         * process-nt.c (validate_signal_number):
11395         * process-nt.c (signal_cannot_launch):
11396         * process-nt.c (nt_create_process):
11397         * process-nt.c (nt_send_process):
11398         * process-nt.c (nt_kill_child_process):
11399         * process-nt.c (nt_open_network_stream):
11400         * process-nt.c (syms_of_process_nt):
11401         (2).
11402         delete quote-handling.  call new lisp code that does it better.
11403
11404         * process-unix.c (connect_to_file_descriptor):
11405         * process-unix.c (allocate_pty):
11406         * process-unix.c (unix_send_process):
11407         * process-unix.c (unix_kill_child_process):
11408         * process-unix.c (unix_open_network_stream):
11409         * process-unix.c (unix_open_multicast_group):
11410         (1). (2).
11411
11412         * process.c:
11413         * process.c (Fstart_process_internal):
11414         (2).  need to canonicalize process path even if absolute.
11415
11416         * select-msw.c (symbol_to_ms_cf):
11417         * select-msw.c (ms_cf_to_symbol):
11418         * select-msw.c (cf_is_autofreed):
11419         * select-msw.c (mswindows_destroy_selection):
11420         * select.c:
11421         * select.c (syms_of_select):
11422         * select.h:
11423         support dibv5, fix bugs. (from Mike Alexander)
11424
11425         * select.c (Fget_selection_internal):
11426         * select.c (select_convert_out):
11427
11428         * sysdep.c:
11429         * sysdep.c (xemacs_stat):
11430         renamed.
11431
11432         * sysdep.c (mkdir):
11433         * sysdep.c (rmdir):
11434         but keep original stat() here because we provide encapsulation
11435         around these funs.
11436
11437         * sysfile.h:
11438         * sysfile.h (fstat):
11439         remove stat garbage.
11440
11441         * syswindows.h:
11442         fix X/MSW conflict.
11443         don't include tchar.h.  it's inappropriate because it makes
11444         compile-time distinctions when we want runtime distinctions.
11445         (we provide our own tchar replacements)
11446
11447         * toolbar.c:
11448         use default object printer for toolbar-button.
11449
11450         * unexcw.c:
11451         make sure we don't encapsulate.
11452
11453         * window.c (vars_of_window):
11454         emphasize that temp-buffer-show-hook is obsolete.
11455
11456 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11457
11458         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11459         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11460
11461         * events.c (Fevent_timestamp_lessp):
11462         Not 64-bit clean.  Use EMACS_INT, not int.
11463
11464 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11465
11466         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11467         unsigned int and changed the last enum to
11468         lrecord_type_last_built_in_type.
11469         (lrecord_implementations_table): changed prototype to know how
11470         long the array is supposed to be.
11471         (lrecord_type_count): new unsigned int to keep track of the
11472         current number of lisp lrecord types.
11473         (DEFINE_EXTERNAL_LRECORD):
11474         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11475         dynamic-modules to declare new lisp types. They are the same
11476         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11477         int for each new type, and increment lrecord_type_count by 1.
11478
11479         * alloc.c (lrecord_implementations_table): Changed to reference
11480         lrecord_type_last_built_in_type for the size of the array.
11481         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11482
11483 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11484
11485         * glyphs.h (check_valid_item_list): Renamed from
11486         check_valid_item_list_1.
11487
11488 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11489
11490         * select.c (Qselect_coerce): New.
11491         * select.c (Vselection_coercion_alist): New.
11492         * select.c (syms_of_select): Declare.
11493         * select.c (get-selection-internal): Use it.
11494         Use the new select-coerce functionality.
11495
11496         * select.c (select_coerce): New.
11497         * select.h (select_coerce): Declare.
11498         New function to coerce one type of data into another.
11499
11500 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11501
11502         * callproc.c (Fcall_process_internal):
11503         (Fcall_process_internal):
11504         * process-unix.c (unix_create_process):
11505         Save and restore the value of errno, so that error messages are accurate.
11506
11507 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11508
11509         * elhash.c (print_hash_table):
11510         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11511         Prettify docstrings and indentation.
11512
11513 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11514
11515         * window.c (Fwindow_pixel_edges): Subtract frame border and
11516         gutter size.
11517
11518 2000-07-31  Andy Piper  <andy@xemacs.org>
11519
11520         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11521         will acknowledge the change.
11522
11523         * glyphs.h: declare tab_control_order_only_changed.
11524
11525         * glyphs-x.c (x_tab_control_redisplay): use
11526         tab_control_order_only_changed.
11527
11528         * glyphs-widget.c (tab_control_order_only_changed): new function.
11529
11530         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11531         tab_control_order_only_changed.
11532
11533         * gui.c (gui_item_equal_sans_selected): new function.
11534         (gui_item_equal): use it.
11535
11536         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11537         :properties in favor of :items..
11538
11539         * glyphs-widget.c (check_valid_item_list): rename from
11540         check_valid_item_list_1.
11541         (check_valid_item_list_1): renamed.
11542         (combo_box_validate): deprecate :properties in favor of :items.
11543         (widget_instantiate): ditto.
11544         (tab_control_update): ditto.
11545         (image_instantiator_combo_box): ditto.
11546         (image_instantiator_tree_view): ditto.
11547         (image_instantiator_tab_control): ditto.
11548         (layout_post_instantiate): remove dead code.
11549
11550         * print.c (debug_print_no_newline): only write to debugger if in
11551         WIN32_NATIVE.
11552
11553         * elhash.c (Fmake_hash_table): update doc string.
11554
11555         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11556         messages whilst in GC. This at least stops XEmacs crashing but has
11557         the potential for wierd behaviour.
11558
11559 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11560
11561         * config.h.in:
11562         Make existence of s&m files optional.
11563
11564         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11565         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11566         * s/gnu.h: Remove HAVE_GETLOADAVG.
11567         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11568         * s/sol2.h: Remove HAVE_GETLOADAVG.
11569         * lisp.h: Remove getloadavg() declaration.
11570         * fns.c:
11571         Include <sys/loadavg.h> if available.
11572         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11573         * config.h.in:  Group together getloadavg()-related macros.
11574         Use only configure-time tests to detect getloadavg().
11575
11576 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11577
11578         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11579
11580 2000-07-25  Andy Piper  <andy@xemacs.org>
11581
11582         * syswindows.h: add tchar.h for native builds.
11583
11584         * frame.c (syms_of_frame): remove set-glyph-image.
11585
11586         * general-slots.h: add Qset_glyph_image.
11587
11588         * glyphs-widget.c (layout_update): add domain arg to
11589         set-glyph-image.
11590         (syms_of_glyphs_widget): remove set-glyph-image.
11591
11592 2000-07-23  Ben Wing  <ben@xemacs.org>
11593
11594         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11595         Vpopup_frame_list.
11596
11597 2000-07-22  Andy Piper  <andy@xemacs.org>
11598
11599         * symsinit.h: add syms_of_win32().
11600
11601         * gui-msw.c (syms_of_gui_mswindows): remove
11602         Fmswindows_shell_execute.
11603         (Fmswindows_shell_execute): moved to win32.c.
11604
11605         * emacs.c (main_1): add syms_of_win32 ().
11606
11607         * win32.c (init_potentially_nonexistent_functions): rewrite in
11608         compiler-friendly terms.
11609         (Fmswindows_shell_execute): move here from gui-msw.c.
11610         (syms_of_win32): new.
11611
11612         * device-msw.c (Fmswindows_printer_list): clean up args to
11613         EnumPrinters.
11614         Don't include tchar under cygwin or mingw.
11615         (msprinter_default_printer): make cygwin-friendly.
11616
11617 2000-07-21  Andy Piper  <andy@xemacs.org>
11618
11619         * glyphs-widget.c (image_instantiator_tree_view): use tab
11620         control's update function.
11621         (layout_property): new function. Retrieve items.
11622
11623         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11624         function. Re-populate the tree view from the pending items.
11625
11626         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11627         is designated the parent if the domain is an image instance. This
11628         is needed so that dirtiness can be cascade up the hierarchy and
11629         thus for layout children to be redisplayed correctly.
11630         (allocate_image_instance): rename glyph -> parent.
11631
11632         * redisplay.h: change redisplay_output_layout signature.
11633
11634         * redisplay-msw.c (mswindows_output_display_block): use domain
11635         arg.
11636
11637         * redisplay-x.c (x_output_display_block): use domain arg.
11638
11639 2000-07-10  Andy Piper  <andy@xemacs.org>
11640
11641         * window.c (Fset_window_configuration): add comment.
11642
11643         * redisplay-output.c (compare_runes):
11644         (redisplay_output_subwindow): redisplay rather than update subwindow.
11645         (redisplay_output_layout): ditto.
11646
11647         * redisplay-msw.c (mswindows_frame_output_end):
11648         (mswindows_frame_output_end): make defer window pos optional.
11649
11650         * lisp.h: add Flast.
11651
11652         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11653         normalize method. Change update method to be for changed
11654         instantiators. Add redisplay method. Change signature of layout
11655         method.
11656         (struct Lisp_Image_Instance): add instantiator.
11657         (IMAGE_INSTANCE_INSTANTIATOR): new.
11658         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11659         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11660         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11661
11662         * glyphs.c:
11663         (find_instantiator_differences): new function.
11664         (Fset_instantiator_property): new convenience function.
11665         (check_image_instance_structure): strictly check for vector
11666         instantiators.
11667         (normalize_image_instantiator): make non-static.
11668         (instantiate_image_instantiator): pass on dest_mask and use new
11669         signatures for image_instance_layout and friends.
11670         (mark_image_instance): mark the instantiator. Mark the subwindow
11671         face not the widget face.
11672         (image_instance_equal): add instantiator.
11673         (image_instance_hash): ditto.
11674         (allocate_image_instance): ditto.
11675         (Fset_image_instance_property): removed.
11676         (Fimage_instance_file_name): ditto.
11677         (Fcolorize_image_instance): ditto.
11678         (image_instance_layout): add offsets to be set.
11679         (update_image_instance): new function. update an image instance
11680         from its changed instantiator.
11681         (inherit_normalize): add dest_mask.
11682         (xbm_normalize): ditto.
11683         (xface_normalize): ditto.
11684         (xpm_normalize): ditto.
11685         (text_update): set_property -> update.
11686         (image_instantiate): use the glyph identity as a hash key, not the
11687         instantiator.
11688         (glyph_width): use new image_instance_layout signature.
11689         (glyph_ascent): ditto.
11690         (glyph_descent): ditto.
11691         (glyph_height): ditto.
11692         (glyph_query_geometry): ressurrect.
11693         (glyph_layout): ditto.
11694         (redisplay_subwindow): update -> redisplay.
11695         (syms_of_glyphs): add Fset_instantiator_property.
11696         (image_instantiator_format_create): set_property -> update.
11697
11698         * glyphs-x.c:
11699         (autodetect_normalize): add dest_maks to signature.
11700         (x_redisplay_subwindow): update -> redisplay.
11701         (x_redisplay_widget): ditto.
11702         (x_button_redisplay): ditto.
11703         (x_progress_gauge_redisplay): ditto.
11704         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11705         stacking order.
11706         (console_type_create_glyphs_x): update -> redisplay.
11707         (image_instantiator_format_create_glyphs_x): ditto.
11708
11709         * glyphs-widget.c:
11710         (check_valid_instantiator): disallow glyphs in the instantiator,
11711         they must now be vectors.
11712         (check_valid_instantiator_list): ditto.
11713         (glyph_instantiator_to_glyph): use internal symbol rather than
11714         intern.
11715         (widget_update): renamed from widget_set_property. Call cascaded
11716         update methods.
11717         (redisplay_widget): renamed from update_widget.
11718         (widget_layout): image_instance_layout now takes position as well
11719         as size.
11720         (widget_normalize): ditto.
11721         (widget_instantiate): ditto.
11722         (tab_control_query_geometry) ditto.:
11723         (tab_control_update): renamed from tab_control_set_property.
11724         (progress_gauge_update): set_property -> update.
11725         (layout_normalize): rewrite so that child instantiators are
11726         normalized also.
11727         (layout_update): new function. Create glyphs from the normalized
11728         children and cope with any other layout keywords. We do not
11729         instantiate children here that will be take care of by
11730         redisplay_output_layout.
11731         (layout_instantiate): call layout_update and not much else.
11732         (layout_post_instantiate): not sure whether this is needed
11733         anymore.
11734         (layout_query_geometry): query glyph geometry rather than
11735         image_instance geometry.
11736         (layout_layout): set offsets from pass in parameters. Use glyph
11737         geometry and layout functions rather than image instance ones.
11738         (native_layout_layout): ditto.
11739         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11740         (image_instantiator_widget): set_property -> update.
11741         (image_instantiator_buttons): ditto.
11742         (image_instantiator_progress_guage): ditto.
11743         (image_instantiator_tab_control): ditto.
11744         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11745         (image_instantiator_layout): add update method.
11746
11747         * glyphs-msw.c (bmp_normalize):
11748         (mswindows_resource_normalize): add dest_mask so that it can be
11749         proprogated by layout_normalize.
11750         (begin_defer_window_pos): make optional because it may not be the
11751         right thing to do and it introduces differences with X.
11752         (mswindows_unmap_subwindow): ditto.
11753         (mswindows_map_subwindow): ditto.
11754         (mswindows_redisplay_subwindow): renamed from
11755         mswindows_update_subwindow.
11756         (mswindows_redisplay_widget): ditto.
11757         (mswindows_button_redisplay): renamed from
11758         mswindows_button_update. Update is now what the instantiation
11759         function does for a changed instantiator.
11760         (mswindows_progress_gauge_instantiate): set the progress value
11761         here if appropriate.
11762         (mswindows_tab_control_redisplay): cope with re-ordering of the
11763         members of the tab widget by simply selecting the new top
11764         widget. This makes things appear ok if you click on a tab.
11765         (mswindows_combo_box_instantiate): image_instance_layout now takes
11766         position as well as size.
11767         (mswindows_progress_gauge_redisplay): renamed from
11768         mswindows_progress_gauge_update.
11769         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11770         (image_instantiator_format_create_glyphs_mswindows): ditto.
11771
11772         * glyphs-eimage.c (jpeg_normalize):
11773         (gif_normalize):
11774         (png_normalize):
11775         (tiff_normalize): add dest_mask so that it can be proprogated by
11776         layout_normalize.
11777
11778         * elhash.c:
11779         (print_hash_table):
11780         (hash_table_weakness_validate):
11781         (decode_hash_table_weakness):
11782         (Fhash_table_weakness):
11783         (Fhash_table_type):
11784         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11785
11786         * console.h (struct console_methods): move update_* to
11787         redisplay_*.
11788
11789 2000-07-20  Ben Wing  <ben@xemacs.org>
11790
11791         * *.[ch] (XSETOBJ): remove unused middle argument.
11792         lisp-disunion.h: correct wrap_object() to one argument.
11793
11794 2000-07-15  Ben Wing  <ben@xemacs.org>
11795
11796         * s/cygwin32.h:
11797         * s/cygwin32.h (CYGWIN_CONV_PATH):
11798         Add missing logb prototype for v1.1.
11799         Use post-b20 names and alias to pre-b20 names when pre-b20.
11800
11801         * s/windowsnt.h: [5].
11802
11803 2000-07-15  Ben Wing  <ben@xemacs.org>
11804
11805         * Makefile.in.in (x_objs):
11806         * Makefile.in.in (sheap_objs):
11807         * Makefile.in.in (objs):
11808         added win32.o, cosmetic cleanups.
11809
11810         * alloc.c (Fmake_byte_code):
11811         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11812         etc. macros which declare their own args now.
11813
11814         * alloc.c (syms_of_alloc):
11815         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11816
11817         * buffer.c:
11818         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11819
11820         * buffer.c (Fget_file_buffer):
11821         Fixed GCPRO problem.
11822
11823         * buffer.c (get_truename_buffer):
11824         Fixed comment about GC checking.
11825
11826         * buffer.c (syms_of_buffer):
11827         Undeclared those dedicated frame funs.
11828         [2].
11829
11830         * buffer.h:
11831         Define convenience macros for internal/external conversions.
11832         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11833         and Qenvironment_variable_encoding for cleaner code.
11834
11835         * bufslots.h:
11836         Remove dedicated-frame; in lisp.
11837
11838         * bytecode.c (funcall_compiled_function):
11839         [1].
11840
11841         * bytecode.c (syms_of_bytecode):
11842         [2].
11843
11844         * console-msw.c:
11845         * console-msw.c (mswindows_show_console): Rewrote.
11846
11847         * console-msw.c (Fmswindows_debugging_output): New.
11848         Sends to OutputDebugString (special MSWin debugger interface).
11849
11850         * console-msw.c (Fmswindows_message_box):
11851         Fixed stupid bugs so it works when called from kill-emacs.
11852
11853         * console-msw.c (syms_of_console_mswindows):
11854         Declare Fmswindows_debugging_output.
11855
11856         * console-msw.h:
11857         New MSWin prototypes.
11858
11859         * console-msw.h (struct mswindows_frame):
11860         New entry last-click-mods for improved button-modifier support.
11861
11862         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11863         New struct entry `popup' with corresponding accessor.
11864
11865         * console-x.c:
11866         * console-x.c (split_up_display_spec):
11867         * console-x.c (get_display_arg_connection):
11868         * console-x.c (x_semi_canonicalize_console_connection):
11869         * console-x.c (x_canonicalize_device_connection):
11870         [[[6]]]: Change char to more specific type.
11871         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11872
11873         * console-x.c (x_semi_canonicalize_console_connection):
11874         * console-x.c (x_canonicalize_device_connection):
11875         [[[9]]]: Fix up error signalling to use new structured error system.
11876
11877         * console-x.h:
11878         [[[4]]]: Define codesys aliases:
11879         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11880         Qx_color_name_encoding, Qx_display_name_encoding.
11881
11882         * console.h (struct console_methods):
11883         New method make_dialog_box_internal supersedes older
11884         popup_dialog_box method.
11885
11886         * data.c:
11887         Define many new errors, part of new structured errors.
11888
11889         * data.c (init_errors_once_early):
11890         * data.c (syms_of_data):
11891         [2].
11892
11893         * device-msw.c (mswindows_init_device):
11894         [[[5]]]: Cleanup to support NT 3.51.
11895
11896         * device-msw.c (decode_devmode): Cleanup.
11897
11898         * device-msw.c (mswindows_handle_print_setup_dialog_box):
11899         * device-msw.c (mswindows_handle_print_dialog_box):
11900         * device-msw.c (mswindows_handle_page_setup_dialog_box):
11901         * device-msw.c (syms_of_device_mswindows):
11902         Delete the dialog box primitives recently introduced by Kirill and
11903         instead interface to general dialog box interface.
11904
11905         * device-x.c:
11906         * device-x.c (compute_x_app_name):
11907         * device-x.c (x_init_device):
11908         * device-x.c (Fx_valid_keysym_name_p):
11909         * device-x.c (Fx_set_font_path):
11910         [6].
11911         [7].
11912
11913         * device.h (wrap_device): New.
11914         First of its kind; meant to replace XSETDEVICE.
11915
11916         * dialog-msw.c: Many file-dialog symbols.
11917
11918         * dialog-msw.c (mswindows_register_popup_frame): New.
11919         * dialog-msw.c (mswindows_is_dialog_msg): New.
11920         For supporting kbd traversal in dialog boxes.
11921
11922         * dialog-msw.c (dialog_proc):
11923         Support hitting ESC in dialogs.
11924
11925         * dialog-msw.c (struct):
11926         Common dialog box errors.
11927
11928         * dialog-msw.c (handle_file_dialog_box): New.
11929         Add file dialog code.
11930
11931         * dialog-msw.c (handle_question_dialog_box):
11932         Redo existing code to support new question dialog syntax.
11933
11934         * dialog-msw.c (console_type_create_dialog_mswindows):
11935         We support new dialog console method.
11936
11937         * dialog-msw.c (syms_of_dialog_mswindows):
11938         * dialog-msw.c (vars_of_dialog_mswindows):
11939         New file dialog symbols, vars.
11940
11941         * dialog-x.c:
11942         * dialog-x.c (maybe_run_dbox_text_callback):
11943         * dialog-x.c (dbox_descriptor_to_widget_value):
11944         * dialog-x.c (x_make_dialog_box_internal):
11945         * dialog-x.c (console_type_create_dialog_x):
11946         Mule-ize entire file.
11947         Redo to support question dialog syntax.
11948         [6].
11949
11950         * dialog.c:
11951         * dialog.c (Fmake_dialog_box_internal):
11952         * dialog.c (syms_of_dialog):
11953         Kill old popup-dialog-box, replace with new primitive.
11954         Just call device method or signal error.
11955
11956         * eldap.c (Fldap_open):
11957         * eldap.c (Fldap_search_basic):
11958         * eldap.c (Fldap_add):
11959         * eldap.c (Fldap_modify):
11960         [1].
11961         [7].
11962
11963         * emacs.c:
11964         * emacs.c (make_arg_list_1):
11965         * emacs.c (make_arg_list):
11966         Mule-ize call to dll_init().
11967         [6].
11968         [8].
11969
11970         * emacs.c (make_argc_argv):
11971         * emacs.c (free_argc_argv):
11972         * emacs.c (init_cmdargs):
11973         * emacs.c (main_1):
11974         * emacs.c (Fkill_emacs):
11975         * emacs.c (Fdump_emacs):
11976         Update comments about what can be used in syms_* etc.
11977         Call init_win32() when necessary.
11978         Fix up MS Win dialog box in kill-buffer to actually work right.
11979         [7].
11980
11981         * eval.c:
11982         * eval.c (For):
11983         * eval.c (Fand):
11984         * eval.c (Fprogn):
11985         * eval.c (Fprog1):
11986         * eval.c (Fprog2):
11987         * eval.c (FletX):
11988         * eval.c (Flet):
11989         * eval.c (condition_case_3):
11990         * eval.c (Feval):
11991         * eval.c (function_argcount):
11992         * eval.c (funcall_lambda):
11993         [1].
11994
11995         * eval.c (type_error): New.
11996         * eval.c (maybe_type_error): New.
11997         * eval.c (continuable_type_error): New.
11998         * eval.c (maybe_continuable_type_error): New.
11999         * eval.c (type_error_with_frob): New.
12000         * eval.c (maybe_type_error_with_frob): New.
12001         * eval.c (continuable_type_error_with_frob): New.
12002         * eval.c (maybe_continuable_type_error_with_frob): New.
12003         New functions for use with structured errors.
12004
12005         * event-Xt.c:
12006         * event-Xt.c (x_event_to_emacs_event):
12007         Buttons are now modifiers too.
12008
12009         * event-Xt.c (emacs_Xt_current_event_timestamp):
12010         Implement new event method.
12011         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12012
12013         * event-msw.c:
12014         * event-msw.c (ntpipe_shove_writer): [5].
12015         * event-msw.c (mswindows_enqueue_mouse_button_event):
12016         * event-msw.c (mswindows_drain_windows_queue):
12017         * event-msw.c (mswindows_wnd_proc): [7].
12018         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12019         * event-msw.c (mswindows_modifier_state):
12020         Throughout: support new button modifiers.
12021
12022         * event-msw.c (emacs_mswindows_current_event_timestamp):
12023         Implement new event method.
12024         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12025
12026         * event-stream.c:
12027         * event-stream.c (event_stream_current_event_timestamp): New.
12028         * event-stream.c (maybe_kbd_translate): New functionality.
12029         * event-stream.c (vars_of_event_stream):
12030         Document new kbd-translate-table functionality.
12031
12032         * event-stream.c (Fcurrent_event_timestamp): New.
12033         New primitive for use in fabricated events.
12034         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12035
12036         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12037
12038         * events.c:
12039         * events.c (Fmake_event):
12040         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12041         [1].
12042         [9].
12043
12044         * events.c (format_event_object): fix gcc warnings.
12045
12046         * events.c (Fevent_timestamp): Document new primitives.
12047
12048         * events.c (TIMESTAMP_HALFSPACE): New.
12049
12050         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12051         comparing timestamps correctly (half-space algorithm).
12052
12053         * events.c (Fevent_modifier_bits): Doc fix.
12054
12055         * events.c (Fevent_modifiers): Major doc addition.
12056         * events.c (event_x_y_pixel_internal): Typo fix.
12057         * events.c (syms_of_events): Declare new primitives.
12058
12059         * events.h:
12060         Update long comment for button modifiers, timestamps.
12061
12062         * events.h (struct event_stream):
12063         New current_event_timestamp method.
12064
12065         * extents.c:
12066         * extents.c (extent_in_region_p):
12067         * extents.c (decode_extent):
12068         * extents.c (Fset_extent_parent):
12069         * extents.c (decode_map_extents_flags):
12070         Fix gcc warnings.
12071         [9].
12072
12073         * extents.c (struct extent_at_arg):
12074         * extents.c (decode_extent_at_flag):
12075         * extents.c (extent_at_mapper):
12076         * extents.c (extent_at_bytind):
12077         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12078         * extents.c (Fextents_at): New primitive. [9].
12079         * extents.c (symbol_to_glyph_layout): [9].
12080         Support new primitive `extents-at'.
12081
12082
12083         * extents.c (get_text_property_bytind):
12084         extent_at_bytind has another arg.
12085         [9].
12086
12087         * extents.c (syms_of_extents): New primitive.
12088
12089         * file-coding.c (Fmake_coding_system): [1].
12090         * file-coding.c (subsidiary_coding_system): fix gcc warning
12091         * file-coding.c (syms_of_file_coding): [2].
12092
12093         * fileio.c (Fexpand_file_name):
12094         * fileio.c (Fsysnetunam):
12095         * fileio.c (Ffile_exists_p):
12096         * fileio.c (Ffile_executable_p):
12097         * fileio.c (Fverify_visited_file_modtime):
12098         Clean up GCPROing.
12099
12100         * fileio.c (syms_of_fileio): [2].
12101
12102         * filelock.c (lock_file_1):
12103         * filelock.c (current_lock_owner):
12104         * filelock.c (lock_if_free):
12105         * filelock.c (lock_file):
12106         * filelock.c (unlock_file):
12107         Clean up GCPROing.
12108
12109         * fns.c (concat): Fix gcc warning.
12110
12111         * fns.c (Fmember):
12112         * fns.c (Fold_member):
12113         * fns.c (Fmemq):
12114         * fns.c (Fold_memq):
12115         * fns.c (memq_no_quit):
12116         * fns.c (Fassoc):
12117         * fns.c (Fold_assoc):
12118         * fns.c (Fassq):
12119         * fns.c (Fold_assq):
12120         * fns.c (assq_no_quit):
12121         * fns.c (Frassoc):
12122         * fns.c (Fold_rassoc):
12123         * fns.c (Frassq):
12124         * fns.c (Fold_rassq):
12125         * fns.c (rassq_no_quit):
12126         * fns.c (Fdelete):
12127         * fns.c (Fold_delete):
12128         * fns.c (Fdelq):
12129         * fns.c (Fold_delq):
12130         * fns.c (delq_no_quit):
12131         * fns.c (Fremassoc):
12132         * fns.c (Fremassq):
12133         * fns.c (remassq_no_quit):
12134         * fns.c (Fremrassoc):
12135         * fns.c (Fremrassq):
12136         * fns.c (remrassq_no_quit):
12137         * fns.c (Freverse):
12138         * fns.c (mapcar1):
12139         [1].
12140
12141         * frame-msw.c (mswindows_init_frame_1):
12142         * frame-msw.c (mswindows_delete_frame):
12143         Register popups with dialog code so keyboard traversing works.
12144
12145         * frame-tty.c (tty_raise_frame_no_select): [1].
12146
12147         * frame-x.c:
12148         * frame-x.c (x_set_frame_text_value):
12149         * frame-x.c (x_set_frame_properties):
12150         * frame-x.c (x_create_widgets):
12151         [7].
12152
12153         * frame.c:
12154         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12155
12156         * frame.h (wrap_frame): New.
12157         Macro like wrap_device.
12158
12159         * general.c:
12160         * general.c (SYMBOL):
12161         * general.c (syms_of_general):
12162         Major reorg.  This is now just a wrapper and symbols themselves
12163         are listed in general-slots.h.
12164
12165         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12166         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12167
12168         * glyphs-msw.c (mswindows_native_layout_instantiate):
12169         Add DS_CONTROL so keyboard traversal will work.
12170
12171         * glyphs-widget.c:
12172         * glyphs-widget.c (syms_of_glyphs_widget):
12173         Move some symbols to general-slots.h.
12174
12175         * glyphs-x.c:
12176         * glyphs-x.c (xbm_instantiate_1):
12177         * glyphs-x.c (x_xbm_instantiate):
12178         * glyphs-x.c (x_xface_instantiate):
12179         * glyphs-x.c (autodetect_instantiate):
12180         * glyphs-x.c (cursor_font_instantiate):
12181         * glyphs-x.c (x_update_widget):
12182         * glyphs-x.c (x_widget_instantiate):
12183         * glyphs.c (bitmap_to_lisp_data):
12184         * glyphs.c (pixmap_to_lisp_data):
12185         [7].
12186
12187         * glyphs.c (syms_of_glyphs):
12188         [2].
12189
12190         * gui-x.c:
12191         * gui-x.c (print_widget_value):
12192         * gui-x.c (menu_separator_style_and_to_external):
12193         * gui-x.c (add_accel_and_to_external):
12194         * gui-x.c (button_item_to_widget_value):
12195         * gui-x.c (gui_items_to_widget_values_1):
12196         * gui-x.c (gui_items_to_widget_values):
12197         * gui-x.c (syms_of_gui_x):
12198         * gui-x.c (vars_of_gui_x):
12199         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12200         [9].
12201
12202         * gui-x.h:
12203         Muleize, prototype changes matching gui-x.c.
12204
12205         * gui.c:
12206         * gui.c (separator_string_p):
12207         * gui.c (gui_item_add_keyval_pair):
12208         * gui.c (make_gui_item_from_keywords_internal):
12209         * gui.c (signal_too_long_error):
12210         * gui.c (parse_gui_item_tree_item):
12211         * gui.c (syms_of_gui):
12212         * gui.c (vars_of_gui):
12213         * gui.h:
12214         menu-no-selection-hook moved here (used by MSWin).
12215         Move some symbols to general-slots.h.
12216         [6].
12217         [9].
12218
12219         * insdel.c (get_buffer_pos_char):
12220         * insdel.c (get_buffer_range_char):
12221         Add GC comments.
12222
12223         * keymap.c (keymap_lookup_directly):
12224         * keymap.c (keymap_store):
12225         * keymap.c (ensure_meta_prefix_char_keymapp):
12226         * keymap.c (describe_map):
12227         * keymap.h:
12228         Support new button modifiers.
12229
12230         * lisp-disunion.h (wrap_object):
12231         * lisp-disunion.h (XSETOBJ):
12232         Rename make_obj to wrap_object.
12233
12234         * lisp-union.h:
12235         * lisp-union.h (make_int):
12236         * lisp-union.h (make_char):
12237         Support wrap_object.
12238
12239         * lisp.h:
12240         * lisp.h (LIST_LOOP):
12241         * lisp.h (EXTERNAL_LIST_LOOP):
12242         * lisp.h (LIST_LOOP_2):
12243         * lisp.h (EXTERNAL_LIST_LOOP_1):
12244         * lisp.h (EXTERNAL_LIST_LOOP_2):
12245         * lisp.h (EXTERNAL_LIST_LOOP_3):
12246         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12247         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12248         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12249         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12250         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12251         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12252         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12253         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12254         * lisp.h (struct Lisp_Symbol):
12255         * lisp.h (maybe_continuable_error_with_frob):
12256         Fix up section comments.
12257         Add new types for char to indicate usage.
12258         Delete symbols auto-generated from general-slots.h.
12259         Add prototypes for structured error functions.
12260         Add long comments describing looping macros and change interface
12261         so that lvalues are automatically declared.
12262         Add NO_DECLARE macro in case callers want to declare lvalues
12263         themselves.
12264
12265         * lread.c (read_syntax_error):
12266         * lread.c (continuable_read_syntax_error):
12267         * lread.c (read_structure):
12268         * lread.c (sequence_reader):
12269         * lread.c (read_list_conser):
12270         * lread.c (read_compiled_function):
12271         Rename syntax_error and continuable_syntax_error to avoid clash
12272         with same-named structured error functions.
12273
12274         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12275         * menubar-msw.c (populate_menu_add_item):
12276         * menubar-msw.c (populate_or_checksum_helper):
12277         [5].
12278         [9].
12279
12280         * menubar-x.c:
12281         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12282         Mule-ize whole file.
12283
12284         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12285
12286         * mule-charset.c (Fmake_charset):
12287         * mule-wnnfns.c (Fwnn_set_param):
12288         [1].
12289
12290         * ntproc.c (create_child):
12291         * ntproc.c (Fwin32_set_current_locale):
12292         Add comments portending doom.
12293
12294         * objects-msw.c:
12295         * objects-msw.c (old_font_enum_callback_2):
12296         * objects-msw.c (font_enum_callback_1):
12297         * objects-msw.c (mswindows_enumerate_fonts):
12298         [5].
12299
12300         * objects-x.c:
12301         * objects-x.c (allocate_nearest_color):
12302         * objects-x.c (x_parse_nearest_color):
12303         * objects-x.c (x_initialize_color_instance):
12304         * objects-x.c (x_print_color_instance):
12305         * objects-x.c (x_finalize_color_instance):
12306         * objects-x.c (x_valid_color_name_p):
12307         * objects-x.c (x_initialize_font_instance):
12308         * objects-x.c (x_print_font_instance):
12309         * objects-x.c (valid_x_font_name_p):
12310         * objects-x.c (truename_via_FONT_prop):
12311         * objects-x.c (truename_via_random_props):
12312         * objects-x.c (truename_via_XListFonts):
12313         * objects-x.c (x_font_truename):
12314         * objects-x.c (x_font_instance_truename):
12315         * objects-x.c (x_font_instance_properties):
12316         * objects-x.c (x_list_fonts):
12317         * objects-x.c (x_find_charset_font):
12318         Mule-ize entire file.
12319         [7].
12320
12321         * objects-x.h:
12322         Mule-verify.
12323
12324         * print.c:
12325         * print.c (std_handle_out_external):
12326         * print.c (debug_print_no_newline):
12327         * print.c (syms_of_print):
12328         Output to all debugger kinds in debug-print.
12329         Fix console-output code under MSWin to actually work.
12330
12331         * process-nt.c (send_signal):
12332         * process-nt.c (nt_create_process):
12333         Use newer Unicode macros.
12334
12335         * process-unix.c (unix_create_process):
12336         * process-unix.c (unix_canonicalize_host_name):
12337         * process-unix.c (unix_open_network_stream):
12338         [7].
12339
12340         * scrollbar-x.c:
12341         Mule-verify.
12342
12343         * search.c (syms_of_search):
12344         [2].
12345
12346         * select-msw.c (mswindows_destroy_selection):
12347         Use LIST_LOOP_2.
12348
12349         * select-x.c (symbol_to_x_atom):
12350         [7].
12351
12352         * select.c (syms_of_select):
12353         [2].
12354
12355         * sound.c (Fplay_sound_file):
12356         [7].
12357
12358         * specifier.c:
12359         * specifier.c (decode_specifier_type):
12360         * specifier.c (Fvalid_specifier_locale_type_p):
12361         * specifier.c (check_valid_locale_or_locale_type):
12362         * specifier.c (decode_locale):
12363         * specifier.c (decode_locale_type):
12364         * specifier.c (decode_locale_list):
12365         * specifier.c (check_valid_domain):
12366         * specifier.c (decode_specifier_tag_set):
12367         * specifier.c (Fcanonicalize_tag_set):
12368         * specifier.c (Fdefine_specifier_tag):
12369         * specifier.c (Fspecifier_tag_predicate):
12370         * specifier.c (check_valid_inst_list):
12371         * specifier.c (check_valid_spec_list):
12372         * specifier.c (decode_how_to_add_specification):
12373         * specifier.c (check_modifiable_specifier):
12374         * specifier.c (specifier_add_spec):
12375         * specifier.c (boolean_validate):
12376         * specifier.c (display_table_validate):
12377         [9].
12378
12379         * specifier.c (syms_of_specifier):
12380         Move some symbols to general-slots.h.
12381         [2].
12382
12383         * symbols.c:
12384         * symbols.c (Fmapatoms):
12385         * symbols.c (Fapropos_internal):
12386         Add GCPROs.
12387
12388         * symbols.c (set_default_buffer_slot_variable):
12389         * symbols.c (set_default_console_slot_variable):
12390         [1].
12391
12392         * symbols.c (defsymbol_massage_name_1):
12393         * symbols.c (defkeyword_massage_name):
12394         * symbols.c (deferror_1):
12395         * symbols.c (deferror):
12396         * symbols.c (deferror_massage_name_and_message):
12397         * symeval.h:
12398         * symeval.h (DEFSYMBOL):
12399         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12400
12401         * symbols.c (syms_of_symbols):
12402         [2].
12403
12404         * symsinit.h:
12405         * symsinit.h (init_win32): New.
12406         Also new is syms_of_dialog_mswindows.
12407
12408         * syswindows.h:
12409         Add new Unicode macros, missing Cygwin wide-char functions,
12410         convenience conversion macros for Qmswindows_tstr, macros for
12411         encapsulating required MSWin <-> Cygwin filename conversions,
12412         prototype for dynamically-extracted (not in NT 3.51) functions.
12413
12414         * toolbar-x.c:
12415         Mule-verify.
12416
12417         * tooltalk.c (Fadd_tooltalk_message_arg):
12418         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12419         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12420         [7].
12421
12422         * tooltalk.c (syms_of_tooltalk):
12423         [2].
12424
12425         * unexnt.c:
12426         * unexnt.c (unexec):
12427         Fix up headers, declaration of unexec() to be more standard.
12428
12429 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12430
12431         * offix.h: Revert change to guard macros - they're used in offix.c!
12432
12433 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12434
12435         * lisp.h: Defsubred Fdelete.
12436
12437         * console-msw.h:  (msprinter_default_printer): Added.
12438
12439         * console-msw.c (msprinter_canonicalize_console_connection):
12440         (msprinter_canonicalize_device_connection): Added.
12441
12442         * device-msw.c (msprinter_default_printer):
12443         (Fmswingows_get_default_printer):
12444         (signal_enum_priner_error):
12445         (Fmswingows_printer_list): Added.
12446
12447 2000-07-19  Martin Buchholz <martin@xemacs.org>
12448
12449         * XEmacs 21.2.35 is released.
12450
12451 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12452
12453         * select-x.c (x_handle_selection_request):
12454         Text selected in xemacs and pasted into xterm failed to appear.
12455         Spelling fixes and cosmetic changes.
12456
12457 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12458
12459         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12460         XEmacs frame (fix for doubling chars in dialog boxes).
12461
12462 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12463
12464         * select.c (select_convert_in, select_convert_out):
12465         Don't call intern() every time.
12466
12467         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12468         * select.c (vars_of_select): Initialise them.
12469
12470 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12471
12472         * select.c (selection-coercible-types): New.
12473
12474         * select.c (own-selection-internal):
12475         * select.c (get-selection-internal):
12476         MULE bug fix - these should default to COMPOUND_TEXT and not
12477         STRING for MULE. I think.
12478
12479         * select.c (select_convert_out): Use selection-coercible-types
12480         to find types that we can attempt to perform coercions on.
12481
12482 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12483
12484         * mule-wnnfns.c:
12485         * mule-canna.c:
12486         Add coding: cookie to identify encoding.
12487
12488         * mule-canna.c (CANNA_mode_keys): make static.
12489         Use proper prototypes, even for functions of no arguments.
12490         Remove external prototype for Fding().
12491
12492         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12493
12494         * select.c (syms_of_select): Add missing DEFSUBR.
12495
12496 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12497
12498         * select.c (get_selection_internal, own_selection_internal):
12499         Make the type default to STRING, rather than placing a nil type
12500         into Vselection_alist.
12501
12502 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12503
12504         * gpmevent.c (tty_selection_exists_p):
12505         * gpmevent.c (tty_own_selection):
12506         Updated parameter lists.
12507
12508 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12509
12510         * select.h (selection-alist): Removed declaration.
12511
12512         * select.h (get_local_selection):
12513         * select.c (get_local_selection):
12514         Made static.
12515
12516         * select.h (convert_selection): Removed declaration.
12517         * select.c (convert_selection): Removed.
12518         This function belongs in Lisp.
12519
12520         * select.h (select_convert_in): Declare.
12521         * select.h (select_convert_out): Declare.
12522         * select.c (select_convert_in): New.
12523         * select.c (select_convert_out): New.
12524         New conversion functions for other files to call.
12525
12526         * select.h (select_notify_buffer_kill): Declare.
12527         * select.c (select_notify_buffer_kill): New.
12528         New functions that get called from kill-buffer.
12529
12530         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12531         X-specific lisp code.
12532
12533         * select.h: Declare some of the lisp-visible functions for
12534         external use.
12535
12536         * select.c (clean_local_selection_data): Removed. This was
12537         a disgusting function, and previously should have been in
12538         select-x.c in any case. The functionality is now provided
12539         in select-convert-from-integer (select.el).
12540
12541         * select.c (available-selection-types): Fixed stupidity where
12542         INTEGER and ATOM got added twice. Also add STRING when we see an
12543         extent.
12544
12545         * select.c (get-selection-internal): Removed symbol stripping. No
12546         longer causes conversion when data comes from the internal cache.
12547
12548         * select.c (syms_of_select): Added new functions.
12549
12550         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12551         error checking - previously this called abort!
12552
12553         * select-x.c (x_own_selection): Changed comment.
12554
12555         * select-x.c (x_handle_selection_request): Use select_convert_out.
12556         Don't mess with selection-alist; it's an internal variable of select.c.
12557
12558         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12559
12560         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12561         rather than messing with selection-alist.
12562
12563         * select-msw.c (mswindows_get_foreign_selection):
12564         Use TO_INTERNAL_FORMAT rather than hacking.
12565
12566 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12567
12568         * process-unix.c (unix_open_multicast_group):
12569         (unix_open_multicast_group): Remove useless casts.
12570
12571 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12572
12573         * sound.c (Fplay_sound): Fix `unused variable' warning.
12574
12575         * emacs.c (main): Use correct type for _environ on SCO5.
12576
12577 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12578
12579         * console.h (own_selection_method):
12580         * console.h (selection_exists_p_method):
12581         * console.h (available_selection_types_method): New.
12582         * console.h (register_selection_data_type_method): New.
12583         * console.h (selection_data_type_name): New.
12584
12585         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12586         function & alist to track GlobalAlloc()'d handles that need
12587         releasing when the clipboard data gets replaced or emptied.
12588
12589         * event-msw.c (mswindows_wnd_proc): Call it.
12590
12591         * lisp.h, general.c (Qappend): New symbol representing a
12592         `how-to-add' mode.
12593
12594         * select.c (own-selection-internal):
12595         * select.c (selection-exists-p):
12596         * select.c (available-selection-types): New.
12597         * select.c (register-selection-data-type): New.
12598         * select.c (selection-data-type-name): New.  New functions to deal
12599         with device-specific selection data formats.
12600         * select.c (selection-converter-out-alist): Renamed.
12601         * select.c (selection-converter-in-alist): New.
12602         * select.c (selection-appender-alist): New.  Added new alists.
12603         * select.c (syms_of_select, vars_of_select): Added new symbols &
12604         variables.
12605         * select.c (get_local_selection): Split.
12606         * select.c: Removed spurious type checking - selections may now be
12607         of any type, not just strings.
12608         * select.c (own-selection-internal):
12609
12610         * select.h, select.c (convert_selection): New. Created
12611         convert_selection() function based on get_local_selection().
12612         * select.h, select.c (QCF_*): New symbols representing mswindows
12613         clipboard formats.
12614         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12615         symbols representing `how-to-add' modes.
12616
12617         * select-msw.c (x_sym_p): New.
12618         * select-msw.c (symbol_to_ms_cf): New.
12619         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12620         symbols & clipboard formats. Can also handle string names.
12621         * select-msw.c (mswindows_own_selection):
12622         * select-msw.c (mswindows_selection_exists_p):
12623         Added `data-type' parameter. Use it.
12624         * select-msw.c (mswindows_available_selection_types): New.
12625         * select-msw.c (mswindows_register_selection_data_type): New.
12626         * select-msw.c (mswindows_selection_data_type_name): New.
12627         * select-msw.c (mswindows_own_selection):
12628         * select-msw.c (mswindows_get_foreign_selection):
12629         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12630         * select-msw.c (console_create_select_mswindows): Added new methods.
12631         * select-msw.c (mswindows_destroy_selection): New.
12632         * select-msw.c (Vhandle_alist): New list.
12633         * select-msw.c (mswindows_own_selection):
12634
12635         * select-x.c (x_own_selection):
12636         * select-x.c (x_selection_exists_p):
12637         * select-x.c: Added some comments about maybe using new
12638         functionality.
12639         * select-x.c (x_own_selection):
12640
12641         * specifier.c: Remove definition of Qappend (now in general.c)
12642         * specifier.c (syms_of_specifier): Remove Qappend.
12643
12644 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12645
12646         * config.h.in: Add socklen_t.
12647
12648         * s/decosf4-0.h: No special compiler flags needed or desired.
12649         In particular, undefine _BSD for DEC OSF 4.0.
12650
12651 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12652
12653         * redisplay-msw.c (msprinter_frame_output_end): Added.
12654         (console_type_create_redisplay_mswindows): Referred the above.
12655
12656         * frame.c (setup_frame_without_minibuffer): Do not create a
12657         default minibuffer frame on a printer device.
12658
12659         * frame-msw.c (apply_dc_geometry): Added.
12660         (msprinter_start_page):
12661         (msprinter_init_frame_3):
12662         (msprinter_eject_page): Use it.
12663
12664         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12665         and removed residual duplex and orientation properties.
12666
12667 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12668
12669         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12670
12671         * unexalpha.c: Remove system prototypes from C sources!
12672
12673 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12674
12675         * eval.c: Remove references to M-x edit-options in DEFUNs for
12676         `defvar' and `defconst'.
12677
12678 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12679
12680         * config.h.in: Remove SMART_INCLUDE hackery.
12681
12682         PostgreSQL hacking:
12683         * config.h.in: Don't use SMART_INCLUDE.
12684
12685         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12686         * inline.c: Simply #include "postgresql.h"
12687         * postgresql.c:
12688         - Don't use SMART_INCLUDE
12689         - Use simply "const".
12690         - Use standard doc string conventions.
12691         - Use correct type for result of PQstatus.
12692
12693 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12694
12695         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12696
12697         C++ compilation changes.
12698         * config.h.in (EXTERN_C): Define.
12699         * config.h.in (not): This is also a C++ keyword.
12700         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12701         * cm.c: Use EXTERN_C.
12702         * redisplay-tty.c: Use EXTERN_C.
12703         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12704
12705 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12706
12707         * general.c: Remove duplicate definition for Qfunction.
12708
12709 2000-07-08  Ben Wing  <ben@xemacs.org>
12710
12711         * device-msw.c (msprinter_init_device):
12712         * device-msw.c (sync_printer_with_devmode):
12713         * device-msw.c (handle_devmode_changes):
12714         * device-msw.c (print_dialog_worker):
12715         * device-msw.c (Fmsprinter_apply_settings):
12716         * device-msw.c (hash_devmode):
12717         * device-msw.c (Fmsprinter_settings_despecialize):
12718         use Qmswindows_tstr, not Qctext.
12719
12720         * vm-limit.c (check_memory_limits):
12721         avoid infinite loop printing warning messages.
12722
12723 2000-07-05  Craig Lanning  <lanning@scra.org>
12724
12725         * Makefile.in.in: Add support for including the Windows resources
12726         when building with the cygwin and mingw targets.
12727
12728         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12729         not set or not correct.
12730         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12731         (init_initial_directory): Don't try to use $PWD on the
12732         WIN32_NATIVE target.
12733
12734         * s\cygwin32.h:
12735         [[Add -mwindows to eliminate console window.]] not required --ben
12736         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12737         (MAIL_USE_POP): removed; now handled by configure.
12738
12739         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12740         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12741         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12742         (MAIL_USE_POP): removed; now handled by configure.
12743         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12744         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12745         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12746         constant string.
12747         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12748         up from <winsock.h> via systime.h.
12749         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12750         (getpagesize): from Dan Holmsand, added.
12751         Added #endif which was left dangling by Ben's mega patch; added
12752         comment to help prevent this in the future.
12753
12754         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12755
12756 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12757
12758         * console-msw.h (struct mswindows_device): Removed unnecessary
12759         cached device geometry values.
12760         Added update_tick and an accessor macro.
12761         (Lisp_Devmode): Added lrecord declaration.
12762         (struct msprinter_device): Contain devmode as a Lisp object.
12763         Added mswindows_get_selected_frame_hwnd();
12764
12765         * console.h (struct console_methods): Indentation nitpicking.
12766
12767         * device-msw.c (mswindows_init_device): Do not initialize geometry
12768         cache. Initialize update tick.
12769         (mswindows_device_system_metrics): Ask the device for its geometry.
12770         (global_free_2_maybe):
12771         (devmode_to_hglobal):
12772         (handle_printer_changes):
12773         (ensure_not_printing):
12774         (print_dialog_worker):
12775         (Fmsprinter_print_setup_dialog):
12776         (Fmsprinter_print_dialog):
12777         (plist_get_margin):
12778         (plist_set_margin):
12779         (Fmsprinter_page_setup_dialog): Added functions.
12780         (sync_printer_with_devmode):
12781         (handle_devmode_changes):
12782         (Fmsprinter_get_settings):
12783         (Fmsprinter_select_settings):
12784         (Fmsprinter_apply_settings):
12785         (allocate_devmode):
12786         (Fmsprinter_settings_copy):
12787         (Fmsprinter_settings_despecialize):
12788         (print_devmode):
12789         (finalize_devmode):
12790         (equal_devmode):
12791         (hash_devmode): Added functions
12792         (syms_of_device_mswindows): Init devmode lrecord class.
12793
12794         * device.h: Added an exfun for find-device.
12795
12796         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12797         geometry; although, recreate the device compatible DC.
12798
12799         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12800         (msprinter_init_frame_3):
12801         (msprinter_frame_property):
12802         (msprinter_internal_frame_property_p):
12803         (msprinter_frame_properties):
12804         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12805         print job properties (will move to device settings).
12806
12807         * lisp.h: Added symbols.
12808
12809         * general.c (syms_of_general): Declared them.
12810
12811         * hash.c (string_hash): Added.
12812
12813         * lrecord.h (lrecord_type): Added devmode lrecord type.
12814
12815 2000-07-02  Mike Sperber <mike@xemacs.org>
12816
12817         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12818         FreeBSD 4.0.
12819
12820 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12821
12822         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12823         integer.
12824
12825 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12826
12827         * data.c (Fstring_to_number): Don't recognize floating point if
12828         base is not 10.
12829
12830 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12831
12832         * glyphs-widget.c (tab_control_query_geometry):
12833         (widget_query_geometry):
12834         (button_query_geometry):
12835         * glyphs.c (text_query_geometry):
12836         Enforce type correctness.
12837
12838 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12839
12840         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12841         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12842
12843 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12844
12845         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12846         conflicts with gcc's fixincluded version of FOO.h.
12847
12848         * glyphs.h (image_instance_geometry): Remove trailing `,'
12849
12850 2000-06-08  Mike Alexander  <mta@arbortext.com>
12851
12852         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12853         (shove_thread): Don't write the same output twice
12854         (make_ntpipe_output_stream): Increase priority of shove thread
12855         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12856         chance to run
12857         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12858         it.
12859
12860 2000-06-12  Ben Wing  <ben@xemacs.org>
12861
12862         * s\mingw32.h (sigset):
12863         * s\windowsnt.h (sigset):
12864         rename msw_ to mswindows_ for consistency with general convention.
12865
12866 2000-06-12  Ben Wing  <ben@xemacs.org>
12867
12868         * console-msw.c:
12869         * console-msw.c (mswindows_get_console_hwnd):
12870         * console-msw.c (mswindows_ensure_console_allocated):
12871         * console-msw.c (mswindows_hide_console):
12872         * console-msw.c (mswindows_show_console):
12873         * console-msw.c (mswindows_ensure_console_buffered):
12874         * console-msw.c (mswindows_output_console_string):
12875         * console-msw.c (mswindows_windows9x_p):
12876         * console-msw.h:
12877         * device-msw.c (mswindows_get_workspace_coords):
12878         * device-msw.c (mswindows_device_system_metrics):
12879         * dialog-msw.c (mswindows_popup_dialog_box):
12880         * event-msw.c (mswindows_wnd_proc):
12881         * frame-msw.c (mswindows_size_frame_internal):
12882         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12883         * menubar-msw.c (displayable_menu_item):
12884         * menubar-msw.c (mswindows_char_is_accelerator):
12885         * nt.c:
12886         * nt.c (mswindows_sigset):
12887         * nt.c (mswindows_sigrelse):
12888         * nt.c (mswindows_sigpause):
12889         * nt.c (mswindows_raise):
12890         * nt.c (timer_proc):
12891         * ntproc.c:
12892         * ntproc.c (find_child_console):
12893         * ntproc.c (sys_kill):
12894         * print.c:
12895         * print.c (std_handle_out_external):
12896         * process-nt.c (find_child_console):
12897         * process-nt.c (send_signal_the_95_way):
12898         * process-nt.c (ensure_console_window_exists):
12899         * process-nt.c (nt_create_process):
12900         * syssignal.h:
12901         rename msw_ to mswindows_ for consistency with general convention.
12902
12903         * emacs.c:
12904         * dumper.c:
12905         include nt.h, not syswindows.h.
12906
12907         * nt.c (mswindows_fstat):
12908         * nt.c (mswindows_stat):
12909         prefix mswindows_ instead of attempting to directly override the
12910         library functions.  fix declarations.
12911
12912         * nt.h:
12913         include syswindows.h.  move some sysdep.h stuff here.
12914
12915         * ntheap.h:
12916         include syswindows.h, not <windows.h>.
12917
12918         * ntplay.c:
12919         clean up headers.
12920
12921         * sysdep.c:
12922         clean up headers.
12923
12924         * sysdep.c (sys_fstat):
12925         * sysdep.c (sys_stat):
12926         call mswindows versions when appropriate.
12927
12928         * sysdep.h:
12929         move mswin decls to nt.h.
12930
12931         * syswindows.h:
12932         add long comment describing appropriate use of the various windows
12933         headers.
12934
12935 2000-06-11  Ben Wing  <ben@xemacs.org>
12936
12937         * device-x.c: Correct doc string for sixth arg of x-get-resource.
12938
12939 2000-06-10  Ben Wing  <ben@xemacs.org>
12940
12941         * Makefile.in.in (release):
12942         Correction to make sure xemacs.exe always dumped when correct.
12943
12944         * alloca.c:
12945         * balloon_help.c:
12946         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12947
12948         * buffer.c (set_buffer_internal):
12949         [[[[2]]]]: Remove HAVE_FEP code.
12950
12951         * buffer.c (init_initial_directory):
12952         [3].
12953
12954         * bytecode.c:
12955         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12956         individual files.
12957
12958         * callproc.c:
12959         * callproc.c (call_process_cleanup):
12960         * callproc.c (Fold_call_process_internal):
12961         * callproc.c (child_setup):
12962         * callproc.c (getenv_internal):
12963         * callproc.c (init_callproc):
12964         * callproc.c (vars_of_callproc):
12965         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12966         __CYGWIN32__ -> CYGWIN.
12967         DOS_NT -> WIN32_NATIVE.
12968         Remove MSDOS support/references, converting to WIN32_NATIVE
12969           where correct.
12970         __MINGW32__ -> MINGW.
12971         Fix windows.h includes.
12972         Remove bogus HAVE_NTGUI.
12973
12974         * config.h.in:
12975         [2].
12976
12977         * console-msw.c:
12978         mswindows_message_outputted added for use in allowing startup
12979         errors on the console to be seen.
12980
12981         * console-msw.c (msw_ensure_console_allocated):
12982         * console-msw.c (msw_output_console_string):
12983         * console-msw.c (DHEADER):
12984         * console-msw.c (DOPAQUE_DATA):
12985         * console-msw.c (DEVENT):
12986         * console-msw.c (DCONS):
12987         * console-msw.c (DCONSCDR):
12988         * console-msw.c (DSTRING):
12989         * console-msw.c (DVECTOR):
12990         * console-msw.c (DSYMBOL):
12991         * console-msw.c (DSYMNAME):
12992         Fix warnings.
12993
12994         * console-stream.c (stream_init_console):
12995         Fix text/binary problems.
12996
12997         * device-msw.c:
12998         * device-msw.c (mswindows_finish_init_device):
12999         * device-msw.c (mswindows_delete_device):
13000         [1].
13001
13002         * device.c (handle_asynch_device_change):
13003         [3].
13004
13005         * dgif_lib.c:
13006         * dgif_lib.c (DGifOpenFileName):
13007         * dgif_lib.c (DGifOpenFileHandle):
13008         * dgif_lib.c (DGifGetLine):
13009         * dgif_lib.c (DGifGetPixel):
13010         Added config.h/lisp.h, fix up includes.
13011         [1].
13012
13013         * dired-msw.c:
13014         [4].
13015
13016         * dired.c:
13017         * dired.c (file_name_completion):
13018         * dired.c (Ffile_attributes):
13019         * dired.c (syms_of_dired):
13020         [1].
13021
13022         * dumper.c:
13023         * dumper.c (pdump_file_unmap):
13024         * dumper.c (pdump_load):
13025         [1].
13026
13027         * editfns.c:
13028         * editfns.c (Ftemp_directory):
13029         * editfns.c (user_login_name):
13030         * editfns.c (Fuser_real_login_name):
13031         * editfns.c (get_home_directory):
13032         [1].
13033
13034         * elhash.c (finish_marking_weak_hash_tables):
13035         [[[[5]]]]: Fix GCC warnings.
13036
13037         * emacs.c:
13038         * emacs.c (mswindows_handle_hardware_exceptions):
13039         * emacs.c (make_arg_list_1):
13040         * emacs.c (main_1):
13041         * emacs.c (Fkill_emacs):
13042         * emacs.c (Fdump_emacs):
13043         [1].
13044         Fix problems with nested crashes, add long comment.
13045
13046         * event-Xt.c (init_event_Xt_late):
13047         [1].
13048
13049         * event-msw.c:
13050         * event-msw.c (mswindows_dde_callback):
13051         * event-msw.c (mswindows_handle_sticky_modifiers):
13052         * event-msw.c (mswindows_wnd_proc):
13053         [1].
13054         [5].
13055
13056         * events.c (character_to_event):
13057         [1].
13058
13059         * fileio.c:
13060         * fileio.c (Ffile_name_directory):
13061         * fileio.c (Ffile_name_nondirectory):
13062         * fileio.c (directory_file_name):
13063         * fileio.c (Fexpand_file_name):
13064         * fileio.c (Fsubstitute_in_file_name):
13065         * fileio.c (Ffile_name_absolute_p):
13066         * fileio.c (check_executable):
13067         * fileio.c (Ffile_readable_p):
13068         * fileio.c (Ffile_accessible_directory_p):
13069         * fileio.c (Ffile_modes):
13070         * fileio.c (Funix_sync):
13071         * fileio.c (vars_of_fileio):
13072         [1]. [4].
13073
13074         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13075
13076         Expand getdefdir defn.
13077         Fix bogus rename() comment.
13078
13079         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13080         to use standard XEmacs include files, e.g. sysfile.h, rather
13081         than system-specific includes.
13082
13083         * fns.c:
13084         * fns.c (Fsubseq):
13085         [5]. [6].
13086
13087         * frame.c (vars_of_frame):
13088         [1].
13089
13090         * getloadavg.c:
13091         * getloadavg.c (getloadavg):
13092         [1]. [6].
13093         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13094         (We don't use it elsewhere in the code; just add a comment.)
13095
13096         * gif_io.c:
13097         [6].
13098         Add config.h.
13099
13100         * glyphs-msw.c:
13101         * glyphs-msw.c (mswindows_resource_instantiate):
13102         [1].
13103
13104         * glyphs-x.c (x_native_layout_instantiate):
13105         [5].
13106
13107         * gui-msw.c (Fmswindows_shell_execute):
13108         [1].
13109
13110         * insdel.c:
13111         [4].
13112
13113         * lisp.h:
13114         [4]. [5].
13115
13116         * lread.c (locate_file_in_directory_mapper):
13117         [1].
13118
13119         * lstream.c:
13120         [4].
13121
13122         * mem-limits.h:
13123         * mem-limits.h (get_lim_data):
13124         [1].
13125
13126         * menubar-msw.c:
13127         [4].
13128
13129         * ndir.h:
13130         [1].
13131
13132         * nt.c:
13133         * nt.c (getwd):
13134         * nt.c (closedir):
13135         * nt.c (rva_to_section):
13136         * nt.c (mswindows_executable_type):
13137         [1]. [6].
13138         Fix closedir() defn.
13139
13140         * nt.h:
13141         [[[[8]]]]: *_OK defs moved to sysfile.h.
13142
13143         * ntproc.c:
13144         [6]. [7].
13145
13146         * objects-x.c:
13147         [4].
13148
13149         * print.c:
13150         * print.c (std_handle_out_external):
13151         [1]. [4].
13152
13153         * process-nt.c:
13154         * process-nt.c (nt_create_process):
13155         [6].
13156         try to fix process quoting somewhat.
13157
13158         * process-unix.c (unix_create_process):
13159         [1].
13160
13161         * process.c:
13162         * process.c (vars_of_process):
13163         Add Vnull_device.
13164
13165         * process.h:
13166         [1].
13167
13168         * realpath.c:
13169         * realpath.c (xrealpath):
13170         [1].
13171
13172         * redisplay-tty.c (init_tty_for_redisplay):
13173         [3].
13174
13175         * redisplay.c:
13176         [4]. [6].
13177
13178         * scrollbar-msw.c:
13179         [4].
13180
13181         * sheap.c:
13182         * sheap.c (more_static_core):
13183         * sheap.c (report_sheap_usage):
13184         [5]. [6].
13185
13186         * signal.c:
13187         * signal.c (alarm_signal):
13188         [1]. [6].
13189
13190         * sound.c:
13191         [6].
13192
13193         * strftime.c:
13194         * strftime.c (zone_name):
13195         [1]. [5].
13196
13197         * symsinit.h (init_sunpro):
13198         [1].
13199
13200         * syscommctrl.h:
13201         commctrl.h not in Cygwin b20.1.
13202
13203         * sysdep.c:
13204         * sysdep.c (endif):
13205         * sysdep.c (sys_subshell):
13206         * sysdep.c (init_baud_rate):
13207         * sysdep.c (emacs_get_tty):
13208         * sysdep.c (emacs_set_tty):
13209         * sysdep.c (tty_init_sys_modes_on_device):
13210         * sysdep.c (init_system_name):
13211         * sysdep.c (sys_open):
13212         * sysdep.c (interruptible_open):
13213         * sysdep.c (sys_fopen):
13214         * sysdep.c (sys_mkdir):
13215         * sysdep.c (sys_rename):
13216         * sysdep.c (get_process_times_1):
13217         [1]. [6].
13218
13219         * sysdep.h:
13220         [1].
13221
13222         * sysdir.h:
13223         * sysdir.h (DIRENTRY_NONEMPTY):
13224         [1]. [6].
13225
13226         * sysdll.c (dll_init):
13227         * sysdll.h:
13228         [1].
13229
13230         * sysfile.h:
13231         [1]. [6]. [8].
13232         added text/binary defs.
13233
13234         * sysfloat.h:
13235         [1].
13236
13237         * sysproc.h:
13238         * sysproc.h (EDESTADDRREQ):
13239         * sysproc.h (poll_fds_for_input):
13240         [1]. [6].
13241
13242         * syspwd.h:
13243         [6].
13244
13245         * syssignal.h:
13246         [1].
13247
13248         * systime.h:
13249         [1]. [6].
13250
13251         * systty.h:
13252         [1].
13253
13254         * syswindows.h:
13255         [1].
13256         Always define WIN32_LEAN_AND_MEAN.
13257
13258         * unexcw.c (unexec):
13259         [5].
13260
13261         * unexec.c:
13262         * unexec.c (copy_text_and_data):
13263         * unexec.c (adjust_lnnoptrs):
13264         [1].
13265
13266         * unexnt.c:
13267         * unexnt.c (_start):
13268         [1].
13269
13270 2000-06-07  Ben Wing  <ben@xemacs.org>
13271
13272         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13273         was used only as a model.  We've long since extracted any useful
13274         logic or code out of this. (I just did an exhaustive search.)
13275
13276         * s\msdos.h: Removed.
13277
13278         * s\windows95.h: Removed.
13279
13280 2000-06-10  Ben Wing  <ben@xemacs.org>
13281
13282         * s\cygwin32.h:
13283         [1]. [5].
13284         Don't use extern with fun defs.
13285
13286         * s\mingw32.h:
13287         [1]. [7].
13288         Remove nt\inc include.
13289         Remove getdisk, getdefdir. (The former is unused, the latter
13290         expanded in fileio.h.)
13291
13292         * s\windowsnt.h:
13293         * s\windowsnt.h (WIN32_NATIVE):
13294         * s\windowsnt.h (HAVE_STRCASECMP):
13295         [1]. [7].
13296         Add long comment about preprocessor changes.
13297         Remove getdisk, getdefdir. (The former is unused, the latter
13298         expanded in fileio.h.)
13299
13300 2000-06-10  Ben Wing  <ben@xemacs.org>
13301
13302         * m\arm.h:
13303         * m\delta.h:
13304         * m\intel386.h:
13305         * m\sequent.h:
13306         * m\template.h:
13307         * m\windowsnt.h:
13308         [1].
13309         Remove bogus/unused NO_SOCK_SIGIO.
13310
13311 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13312
13313         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13314         not an Emchar.
13315
13316 2000-06-04  Mike Sperber <mike@xemacs.org>
13317
13318         * casetab.c (set_case_table): For `set-standard-case-table',
13319         actually deposit the new case tables where the rest of XEmacs can
13320         see them.
13321
13322 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13323
13324         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13325
13326 2000-06-05  Ben Wing  <ben@xemacs.org>
13327
13328         * callproc.c (child_setup): Don't do close_load_descs() under
13329         MS Windows.  Put in a comment explaining why.
13330
13331 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13332
13333         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13334         Toolkit shell" which breaks `kill-compilation' on Windows NT
13335         native, retaining STDERR handling improvements.
13336
13337 2000-06-01  Andreas Jaeger  <aj@suse.de>
13338
13339         * s/s390.h: Support for S390, based on a patch by Martin
13340         Schwidefsky <schwidefsky@de.ibm.com>.
13341
13342 2000-05-30  Andy Piper  <andy@xemacs.org>
13343
13344         * window.c (allocate_window):
13345         (make_dummy_parent):
13346         (Fset_window_configuration): use new hashtable type.
13347
13348         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13349         (struct image_instantiator_methods):
13350         (struct Lisp_Image_Instance): make instance geometry signed.
13351
13352         * glyphs.c (instantiate_image_instantiator):
13353         (image_instance_query_geometry):
13354         (image_instance_layout):
13355         (image_instance_layout):
13356         (query_string_geometry):
13357         (text_query_geometry):
13358         (image_instantiate):
13359         (image_instantiate):
13360         (cache_subwindow_instance_in_frame_maybe):
13361         (subwindow_query_geometry): make instance geometry signed.
13362
13363         * glyphs-widget.c (widget_query_geometry):
13364         (widget_layout):
13365         (button_query_geometry):
13366         (tree_view_query_geometry):
13367         (tab_control_query_geometry):
13368         (layout_query_geometry):
13369         (layout_layout):
13370         (native_layout_layout): make instance geometry signed.
13371
13372 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13373
13374         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13375         constant.
13376
13377         * general.c (syms_of_general): Add Qfull_assoc symbol.
13378
13379         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13380         correctly.
13381         (decode_weak_list_type): Decode full-assoc type.
13382         (encode_weak_list_type): Encode full-assoc type.
13383         (Fmake_weak_list): Update doc string.
13384
13385 2000-05-30  Andy Piper  <andy@xemacs.org>
13386
13387         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13388
13389         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13390         (decode_hash_table_weakness): ditto.
13391         (Fhash_table_weakness): ditto.
13392         (Fhash_table_type): ditto.
13393         (finish_marking_weak_hash_tables): ditto.
13394         (hash_table_weakness_validate): ditto.
13395         (syms_of_elhash): ditto.
13396
13397 2000-05-28  Martin Buchholz <martin@xemacs.org>
13398
13399         * XEmacs 21.2.34 is released.
13400
13401 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13402
13403         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13404         start cache.
13405         (updating_line_start_cache): Gone.
13406         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13407         generic code to force a minimum of 1 line laid out in the
13408         CMOTION_DISP case.
13409
13410 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13411
13412         * glyphs.c (instantiate_image_instantiator): Check for initialized
13413         height & width no longer special cases IMAGE_NOTHING.
13414         (nothing_instantiate): Set height and width of instance.
13415
13416 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13417
13418         * unexelf.c (unexec): Search for ".data" section.
13419         Initialize new_data2_offset from old_data_index.
13420         Remove redundant check for ElfW.
13421
13422 2000-05-23  Andy Piper  <andy@xemacs.org>
13423
13424         * glyphs.c (get_image_instantiator_governing_domain): allow more
13425         specific domains as the governing domain rather than expecting an
13426         exact match. This fixes problems with layouts.
13427
13428 2000-05-22  Andy Piper  <andy@xemacs.org>
13429
13430         * redisplay-output.c (compare_runes): check for non-images
13431
13432         * glyphs.c (set_glyph_dirty_p): ditto.
13433         (update_glyph_cachel_data): ditto.
13434
13435         * glyphs-widget.c (layout_post_instantiate): ditto.
13436         (layout_post_instantiate): ditto.
13437
13438         * event-msw.c (mswindows_wnd_proc): warning removal.
13439
13440 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13441
13442         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13443
13444         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13445
13446         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13447
13448         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13449         (mswindows_executable_type): mingw32 now has enough headers for
13450         this to work.
13451
13452 2000-05-20  Andy Piper  <andy@xemacs.org>
13453
13454         * console-msw.c (mswindows_output_last_error): ; -> ,
13455
13456 2000-05-12  Andy Piper  <andy@xemacs.org>
13457
13458         * console-msw.c (FROB): compare ints with ints.
13459
13460 2000-05-11  Andy Piper  <andy@xemacs.org>
13461
13462         * glyphs-x.c (x_finalize_image_instance): make minimal build
13463         happy.
13464
13465 2000-05-20  Ben Wing  <ben@xemacs.org>
13466
13467         * event-Xt.c:
13468         * event-Xt.c (vars_of_event_Xt):
13469         move modifier-keys-are-sticky to event-stream.c.
13470
13471         * event-msw.c:
13472         * event-msw.c (mswindows_enqueue_mouse_button_event):
13473         * event-msw.c (key_needs_default_processing_p):
13474         * event-msw.c (XEMSW_LCONTROL):
13475         * event-msw.c (mswindows_handle_sticky_modifiers):
13476         * event-msw.c (FROB):
13477         * event-msw.c (clear_sticky_modifiers):
13478         * event-msw.c (output_modifier_keyboard_state):
13479         * event-msw.c (output_alt_keyboard_state):
13480         * event-msw.c (mswindows_wnd_proc):
13481         * event-msw.c (mswindows_modifier_state):
13482         * event-msw.c (emacs_mswindows_handle_magic_event):
13483         implement sticky modifiers.
13484
13485         * event-stream.c:
13486         * event-stream.c (vars_of_event_stream):
13487         move modifier-keys-are-sticky here.
13488
13489         * lisp.h:
13490         add CHECK_FUNCTION.
13491
13492         * rangetab.c:
13493         implement map-range-table.
13494
13495
13496 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13497
13498         * redisplay-tty.c (reset_tty_modes):
13499         (tty_redisplay_shutdown): Adjust argument type to
13500         tty_frame_output_end.
13501
13502 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13503
13504         * eval.c (Fbacktrace): Don't output a line with only right
13505         parenthesis.
13506
13507 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13508
13509         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13510         (Fpq_reset_poll): Ditto.
13511
13512 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13513
13514         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13515
13516 2000-05-16  Ben Wing  <ben@xemacs.org>
13517
13518         * buffer.c:
13519         * buffer.c (dfc_convert_to/from_internal_format):
13520         * buffer.c (reinit_vars_of_buffer):
13521         Fix conversion functions to allow reentrancy.
13522
13523         * console-msw.c:
13524         * console-msw.c (mswindows_output_last_error):
13525         New fun, generally useful -- output a human-readable
13526         version of GetLastError() on the console.
13527
13528         * console-msw.h:
13529         * console-msw.h (struct mswindows_frame):
13530         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13531
13532         * console-stream.c (stream_output_begin):
13533         * console-stream.c (stream_output_end):
13534         * console-stream.c (stream_output_vertical_divider):
13535         * console-stream.c (stream_clear_region):
13536         * console-stream.c (stream_flash):
13537         * console-stream.c (console_type_create_stream):
13538         Delete blank stream methods, not needed.
13539
13540         * console.h (struct console_methods):
13541         Split begin/end methods into window and frame.
13542
13543         * event-msw.c:
13544         * event-msw.c (mswindows_handle_paint):
13545         * event-msw.c (output_alt_keyboard_state):
13546         * event-msw.c (mswindows_wnd_proc):
13547         * event-msw.c (vars_of_event_mswindows):
13548         Comment about problems with ignored-expose.
13549         Define mswindows-debug-events; not really implemented.
13550
13551         * frame-msw.c (mswindows_init_frame_1):
13552         random cleanups.
13553
13554         * glyphs-msw.c:
13555         * glyphs-msw.c (begin_defer_window_pos):
13556         * glyphs-msw.c (mswindows_unmap_subwindow):
13557         * glyphs-msw.c (mswindows_map_subwindow):
13558         * glyphs-msw.c (mswindows_resize_subwindow):
13559         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13560
13561         * glyphs.c (make_image_instance_1):
13562         Fix crash.
13563
13564         * gutter.c (Fredisplay_gutter_area):
13565         Use new begin/end methods.
13566
13567         * lisp.h (Dynarr_new2):
13568         New creation fun.
13569
13570         * redisplay-msw.c:
13571         * redisplay-msw.c (mswindows_frame_output_begin):
13572         * redisplay-msw.c (mswindows_frame_output_end):
13573         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13574         New begin/end methods -- handle DeferWindowPos.
13575
13576         * redisplay-output.c (redisplay_move_cursor):
13577         * redisplay-output.c (redraw_cursor_in_window):
13578         * redisplay-output.c (redisplay_update_line):
13579         * redisplay-output.c (redisplay_output_window):
13580         New begin/end methods.
13581
13582         * redisplay-tty.c:
13583         * redisplay-tty.c (tty_frame_output_begin):
13584         * redisplay-tty.c (tty_frame_output_end):
13585         * redisplay-tty.c (console_type_create_redisplay_tty):
13586         New begin/end methods.
13587
13588         * redisplay-x.c:
13589         * redisplay-x.c (x_window_output_begin):
13590         * redisplay-x.c (x_window_output_end):
13591         * redisplay-x.c (console_type_create_redisplay_x):
13592         New begin/end methods.
13593
13594         * redisplay.c (redisplay_frame):
13595         * redisplay.c (Fredisplay_echo_area):
13596         New begin/end methods.
13597         use MAYBE_DEVMETH for clear_frame; it may not exist.
13598
13599         * window.h (WINDOW_XFRAME):
13600         WINDOW_XFOO macros -- get locale and decode struct pointer.
13601
13602
13603 2000-05-12  Ben Wing  <ben@xemacs.org>
13604
13605         * emacs.c:
13606         * emacs.c (ensure_no_quitting_from_now_on):
13607         * emacs.c (fatal_error_signal):
13608         * emacs.c (mswindows_handle_hardware_exceptions):
13609         * emacs.c (main):
13610         * emacs.c (Fkill_emacs):
13611         * emacs.c (shut_down_emacs):
13612         * emacs.c (assert_failed):
13613         various improvements in fatal error handling.
13614
13615         * eval.c:
13616         move preparing_for_armageddon to emacs.c.
13617
13618         * lisp.h:
13619         declare fatal_error_in_progress.
13620
13621         * print.c:
13622         * print.c (std_handle_out_external):
13623         * print.c (std_handle_out_va):
13624         * print.c (stderr_out):
13625         * print.c (stdout_out):
13626         use console under mswin when no standard output.
13627         don't do code conversion during fatal error.
13628
13629         * scrollbar.c (Fscrollbar_page_up):
13630         * scrollbar.c (Fscrollbar_page_down):
13631         fix missing else.  reindent.
13632
13633 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13634
13635         Emergency fix.
13636
13637         * glyphs.h (GLYPH_CACHEL_DESCENT):
13638         (GLYPH_CACHEL_DESCENT):
13639         (GLYPH_CACHEL_DESCENT):
13640         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13641         used in case these are inline functions.
13642         Use more absurd values to error check.
13643
13644         include window.h for error check functions.
13645
13646 2000-05-11  Ben Wing  <ben@xemacs.org>
13647
13648         * cmdloop.c (Freally_early_error_handler):
13649         Display message box under windows; otherwise, message will disappear
13650         before it can be viewed.
13651
13652         * console-msw.c:
13653         * console-msw.c (Fmswindows_message_box):
13654         * console-msw.c (FROB):
13655         * console-msw.c (syms_of_console_mswindows):
13656         Define new fun `mswindows-message-box'.
13657         #### I will merge this into `popup-dialog-box'; just give me
13658         a bit of time.
13659
13660         * general.c:
13661         * general.c (syms_of_general):
13662         Some new symbols used in `mswindows-message-box'.
13663
13664         * glyphs.c:
13665         * glyphs.c (Fset_image_instance_property):
13666         put warning in this fun.
13667
13668         * glyphs.h:
13669         * glyphs.h (GLYPH_CACHEL_WIDTH):
13670         * glyphs.h (GLYPH_CACHEL_ASCENT):
13671         * glyphs.h (GLYPH_CACHEL):
13672         * glyphs.h (GLYPH_CACHEL_GLYPH):
13673         define error-checking versions to try to catch a bug i've seen --
13674         redisplay gets in an infinite loop because the glyph width of the
13675         continuation glyph is 65535.
13676
13677         * lisp.h:
13678         Extern message-box stuff.
13679
13680         * window.c (allocate_window):
13681         * window.c (make_dummy_parent):
13682         * window.c (Fset_window_configuration):
13683         Use EQUAL not EQ for subwindow caches to make them work a bit
13684         better. (Something is still very broken.)
13685
13686
13687 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13688
13689         * glyphs.c (image_instantiate): Suppress gcc warnings.
13690         (Fmake_image_instance): Fix doc string.
13691         * specifier.c (Fmake_specifier): Ditto.
13692
13693 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13694
13695         * paths.h.in (PATH_LOCK): Removed.
13696         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13697         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13698
13699 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13700
13701         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13702         Document (featurep '(and xemacs 21.02)).
13703
13704 2000-05-09  Ben Wing  <ben@xemacs.org>
13705
13706         * buffer.c (complex_vars_of_buffer):
13707         update modeline-format doc.
13708
13709         * device.h:
13710         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13711
13712         * emacs.c:
13713         timeline of all released versions of Emacs, for use in creating
13714         authorship comments and in synching up.
13715
13716         * glyphs-widget.c (image_instantiator_buttons):
13717         * glyphs-widget.c (image_instantiator_edit_fields):
13718         * glyphs-widget.c (image_instantiator_combo_box):
13719         * glyphs-widget.c (image_instantiator_scrollbar):
13720         * glyphs-widget.c (image_instantiator_progress_guage):
13721         * glyphs-widget.c (image_instantiator_tree_view):
13722         * glyphs-widget.c (image_instantiator_tab_control):
13723         * glyphs-widget.c (image_instantiator_labels):
13724         * glyphs-widget.c (image_instantiator_layout):
13725         * glyphs-widget.c (image_instantiator_native_layout):
13726         rename decode_domain method to governing_domain.
13727
13728         * glyphs.c:
13729         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13730         * glyphs.c (add_entry_to_device_ii_format_list):
13731         make sure we don't put an entry more than once into the list.
13732         * glyphs.c (check_instance_cache_mapper):
13733         *************************************************************
13734         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13735         HAVE BEEN GETTING.
13736         *************************************************************
13737         * glyphs.c (get_image_instantiator_governing_domain):
13738         clean up, expand on new concept of governing domain.
13739         * glyphs.c (instantiate_image_instantiator):
13740         * glyphs.c (allocate_image_instance):
13741         use governing_domain instead of cache_domain in naming.
13742         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13743         * glyphs.c (make_image_instance_1):
13744         * glyphs.c (Fmake_image_instance):
13745         allow for any domain (not just device), and process the
13746         governing domain correctly.  very big doc fix.
13747         * glyphs.c (Fimage_instance_domain):
13748         new primitive, to retrieve the governing domain of an image instance.
13749         * glyphs.c (image_instantiate):
13750         use new governing_domain stuff.  this fixes a crash you could get
13751         by instantiating certain widget glyphs in frame locales. (should
13752         signal an error instead of crashing.)
13753         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13754         * glyphs.c (Fglyphp): clean up doc.
13755         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13756         * glyphs.c (syms_of_glyphs):
13757         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13758         * glyphs.c (image_instantiator_format_create): add some comments about
13759         bogus code.
13760         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13761         for current-display-table. (Apparently Hrjove implemented in 1998 a
13762         design I wrote up in 1996, but didn't update the doc string.)
13763
13764         * glyphs.h: clean up a doc string.
13765         * glyphs.h (governing_domain):
13766         * glyphs.h (struct image_instantiator_methods):
13767         changes for governing_domain stuff.
13768
13769         * gutter.c:
13770         * gutter.c (Fgutter_specifier_p):
13771         * gutter.c (Fgutter_size_specifier_p):
13772         * gutter.c (Fgutter_visible_specifier_p):
13773         * objects.c:
13774         * objects.c (Fcolor_specifier_p):
13775         * objects.c (Ffont_specifier_p):
13776         * objects.c (Fface_boolean_specifier_p):
13777         doc strings moved to make-*-specifier.
13778
13779         * redisplay.c (add_disp_table_entry_runes_1):
13780         * redisplay.c (generate_fstring_runes):
13781         * redisplay.c (screen):
13782         add random comments and doc strings.
13783
13784         * specifier.c:
13785         * specifier.c (Fmake_specifier):
13786         major overhaul of this doc string.
13787
13788         * specifier.c (Fvalid_specifier_domain_p):
13789         comment about the bogosity of image instances being domains.
13790         * specifier.c (decode_domain):
13791         now non-static, used in glyphs.c.
13792         * specifier.c (specifier_instance):
13793         comment about the bogosity of image instances being domains.
13794         * specifier.c (Fgeneric_specifier_p):
13795         move doc string to make-generic-specifier.
13796         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13797         rebackslashify.
13798
13799         * specifier.h:
13800         * specifier.h (DOMAIN_FRAME):
13801         * specifier.h (DOMAIN_LIVE_P):
13802         * specifier.h (DOMAIN_XDEVICE):
13803         rebackslashify.
13804         add comments about problems with these macros.
13805         prototype for decode_domain.
13806
13807         * toolbar.c:
13808         * toolbar.c (Ftoolbar_specifier_p):
13809         move doc string to `make-toolbar-specifier'.
13810
13811         * window.c (window_unmap_subwindows_cache_mapper):
13812         *************************************************************
13813         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13814         HAVE BEEN GETTING.
13815         *************************************************************
13816
13817 2000-05-09  Andy Piper  <andy@xemacs.org>
13818
13819         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13820
13821         * window.c (Fset_window_configuration): reset the frame subwindow
13822         cache and re-initialize the window subwindow caches.
13823
13824         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13825
13826 2000-05-09  Ben Wing  <ben@xemacs.org>
13827
13828         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13829         DWORD.
13830
13831 2000-04-26  Mike Woolley  <mike@bulsara.com>
13832
13833         * ntheap.c: Changed recreate_heap to limit the amount reserved
13834         for the heap to that which is actually available. Also now
13835         displays a message box (with some dignostics) in the event that
13836         it still can't start.
13837
13838 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13839
13840         * callproc.c (Fold_call_process_internal): GCPRO path
13841
13842 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13843
13844         Patch by Bill Perry.
13845
13846         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13847         back data instead of #ifdef.
13848         (Fscrollbar_page_down): ditto.
13849
13850 2000-05-07  Ben Wing  <ben@xemacs.org>
13851
13852         * buffer.h:
13853         Kludge for defining Qmswindows_tstr.
13854
13855         * nt.c:
13856         * nt.c (open_input_file):
13857         * nt.c (open_output_file):
13858         * nt.c (rva_to_section):
13859         * nt.c (mswindows_executable_type):
13860         Move all memory-mapped-file routines here (some were in unexnt.c,
13861         which is bad because they are used by process-nt.c, and unexnt
13862         won't be around when portable dumping).  Synched the above routines
13863         with FSF 20.6.
13864
13865         * nt.h:
13866         Removed ifdef'd out bogus code.
13867         Fixed some prototypes.
13868
13869         * nt.h (file_data):
13870         * nt.h (OFFSET_TO_RVA):
13871         * nt.h (RVA_TO_OFFSET):
13872         * nt.h (RVA_TO_PTR):
13873         Moved the memory-mapped-file structures, macros and prototypes
13874         here, to parallel nt.c.  ntheap.h should really be removed
13875         entirely, and it's a non-portable-dumper specific file.
13876
13877         * ntheap.h (round_to_next):
13878         Moved the memory-mapped-file structures, macros and prototypes
13879         to nt.h.
13880
13881         * ntproc.c (compare_env):
13882         Moved rva_to_section and mswindows_executable_type to nt.c.
13883         Moved compare_env to process-nt.c.
13884         ntproc.c will die, one day.
13885
13886         * ntproc.c (sys_spawnve):
13887         Account for win32_ -> mswindows_.
13888
13889         * process-nt.c:
13890         * process-nt.c (struct nt_process_data):
13891         * process-nt.c (ensure_console_window_exists):
13892         * process-nt.c (compare_env):
13893         * process-nt.c (nt_create_process):
13894         * process-nt.c (nt_kill_process_by_pid):
13895         * process-nt.c (syms_of_process_nt):
13896         * process-nt.c (vars_of_process_nt):
13897         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13898         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13899         changes).  Eliminate our old `nt-quote-process-args' mechanism.
13900         Synch up nt_create_process with FSF 20.6 sys_spawnve.
13901         Move compare_env here from ntproc.c.
13902
13903         * process.c (Fprocess_send_region):
13904         Takes an optional fourth argument, BUFFER, which should fix some
13905         problems with call-process.
13906
13907         * syscommctrl.h:
13908         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13909
13910         * syswindows.h:
13911         Move ICC_BAR_CLASSES to syscommctrl.h.
13912         Add preliminary macros for MSWindows/Mule.  More to come.
13913
13914         * unexnt.c:
13915         * unexnt.c (unexec):
13916         open_output_file moved to nt.c.
13917
13918
13919 2000-05-05  Andy Piper  <andy@xemacs.org>
13920
13921         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13922         instance from the frame cache also since GC may catch up too late
13923         to make frame deletion sane.
13924
13925 2000-05-04  Andy Piper  <andy@xemacs.org>
13926
13927         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13928         (x_finalize_image_instance): ungcpro on deletion.
13929
13930         * glyphs.c (image_instantiator_format_create): give pointers a
13931         query geometry method so that the geometry is at least set.
13932
13933         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13934         initialize layouts if using widgets.
13935
13936 2000-05-03  Andy Piper  <andy@xemacs.org>
13937
13938         * nt.c: remove bogus reference to sysmmsystem.h
13939
13940         * gui-x.c (popup_selection_callback): fix no selection abort.
13941
13942 2000-05-02  Andy Piper  <andy@xemacs.org>
13943
13944         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13945         (mswindows_widget_instantiate): ditto.
13946
13947         * glyphs-widget.c (initialize_widget_image_instance): initialize
13948         children correctly.
13949         (widget_instantiate): cope with children and items in the same
13950         instance.
13951
13952         * glyphs.c (mark_image_instance): cope with children as a first
13953         class member.
13954         (image_instance_equal): ditto.
13955         (image_instance_hash): ditto.
13956         (image_instance_changed): ditto.
13957
13958 2000-04-30  Andy Piper  <andy@xemacs.org>
13959
13960         * glyphs.c (subwindow_query_geometry): new function. Return some
13961         defaults.
13962         (subwindow_instantiate): don't assign dimensions if none have been
13963         given.
13964         (image_instantiator_format_create): add subwindow_query_geometry.
13965         (print_image_instance): cope with layouts as widgets.
13966
13967 2000-04-29  Andy Piper  <andy@xemacs.org>
13968
13969         * frame.c (delete_frame_internal): call
13970         free_frame_subwindow_instance_cache so that all subwindows are
13971         finalized before their parent.
13972         (mark_frame): remove subwindow_cachels.
13973         (Fmake_frame): remove subwindow_cachel manipulation.
13974         (allocate_frame_core): subwindow_instance_cache is a weak list.
13975         (delete_frame_internal): set subwindow_instance_cache to nil.
13976
13977         * glyphs-msw.c (mswindows_finalize_image_instance): make double
13978         finalization safe.
13979         (mswindows_finalize_image_instance): use the device
13980         not the domain as the domain may have died already.
13981
13982         * glyphs-x.c (x_finalize_image_instance): ditto.
13983         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13984         HEIGHT.
13985
13986         * redisplay-output.c (redisplay_unmap_subwindows): update for
13987         subwindow instance cache as a weak list.
13988         (redisplay_unmap_subwindows_maybe): ditto.
13989         (redisplay_unmap_subwindows_except_us): ditto.
13990
13991         * glyphs.c (unmap_subwindow): error checking will check the domain
13992         so don't deal with it here. Don't use cachels anymore.
13993         (map_subwindow): ditto.
13994         (update_subwindow_cachel_data): remove old accessor names.
13995         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
13996         (Fresize_subwindow): don't update cachel.
13997         (mark_subwindow_cachels):
13998         (update_subwindow_cachel_data):
13999         (add_subwindow_cachel):
14000         (get_subwindow_cachel_index):
14001         (update_subwindow_cachel):
14002         (reset_subwindow_cachels):
14003         (mark_subwindow_cachels_as_not_updated): deleted.
14004         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14005         subwindow instance to the frame cache.
14006         (find_matching_subwindow): update for subwindow instance cache as
14007         a weak list.
14008         (update_widget_instances): ditto.
14009         (image_instance_type_to_mask):inlined.
14010         (free_frame_subwindow_instance_cache): new function. finalize all
14011         subwindows that are instantiated.
14012
14013         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14014         of cachel information.
14015         (IMAGE_INSTANCE_DISPLAY_X):
14016         (IMAGE_INSTANCE_DISPLAY_Y):
14017         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14018         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14019         (XIMAGE_INSTANCE_DISPLAY_X):
14020         (XIMAGE_INSTANCE_DISPLAY_Y):
14021         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14022         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14023         remove subwindow_cachel structure and function references.
14024         (image_instance_type_to_mask): inline from glyphs.c
14025
14026         * redisplay.c (redisplay_frame): remove subwindow_cachel
14027         references.
14028
14029         * frame.h (struct frame): remove subwindow_cachels.
14030         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14031
14032         * frameslots.h: add subwindow_instance_cache.
14033
14034         * window.c (replace_window): check subwindow cache of replacement.
14035         (window_unmap_subwindows_cache_mapper):
14036         (window_unmap_subwindows): new functions. Unmap all subwindows
14037         cached on this window.
14038         (mark_window_as_deleted): unmap all subwindows.
14039
14040 2000-04-27  Andy Piper  <andy@xemacs.org>
14041
14042         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14043
14044         * glyphs-widget.c (widget_layout): return something.
14045         (layout_layout): return something. Fail if not initialized.
14046         (layout_query_geometry): ditto.
14047         (image_instantiator_native_layout): new function. Initialized the
14048         native layout type.
14049         (widget_instantiate): don't do layout stuff here.
14050
14051         * glyphs.c (instantiate_image_instantiator): reorded calling or
14052         instantiate and post_instantiate with layout in between.
14053         (image_instance_layout): be more selective about deciding whether
14054         the layout has been done or not.
14055
14056         * glyphs.h (struct image_instantiator_methods): return a value
14057         from layout_method.
14058
14059 2000-04-26  Andy Piper  <andy@xemacs.org>
14060
14061         * glyphs.c (allocate_image_instance): make initial width and
14062         height unspecified. Set initialized to 0.
14063
14064         * syscommctrl.h new file. Encapsulates commctrl.h.
14065
14066         * syswindows.h new file. Encapsulates windows.h.
14067
14068         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14069         * nt.c: ditto.
14070         * console-msw.h: ditto.
14071
14072         * redisplay-tty.c (tty_output_display_block): remove layout references.
14073
14074         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14075         window handle rather than just the frame.
14076
14077         * glyphs.c (mark_image_instance): remove layout references.
14078         (print_image_instance): ditto.
14079         (image_instance_equal): ditto.
14080         (image_instance_hash): ditto.
14081         (decode_image_instance_type): ditto.
14082         (encode_image_instance_type): ditto.
14083         (image_instantiate): ditto.
14084         (allocate_glyph): ditto.
14085         (Fimage_instance_height): ditto.
14086         (Fimage_instance_width): ditto.
14087         (update_subwindow): ditto.
14088
14089         * redisplay-x.c (x_output_display_block): recode for layouts as
14090         widgets.
14091
14092         * redisplay-output.c (redisplay_output_layout): recode for layouts
14093         as widgets.
14094         (compare_runes): remove layout references.
14095
14096         * redisplay-msw.c (mswindows_output_display_block): recode for
14097         layouts as widgets.
14098
14099         * glyphs-widget.c (image_instantiator_layout): remove
14100         layout_possible_dest_types.
14101         (layout_possible_dest_types): deleted.
14102
14103         * glyphs.h (image_instance_type): remove layout references.
14104         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14105         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14106         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14107
14108 2000-04-25  Andy Piper  <andy@xemacs.org>
14109
14110         * glyphs-widget.c (image_instantiator_buttons):
14111         (image_instantiator_edit_fields):
14112         (image_instantiator_combo_box):
14113         (image_instantiator_scrollbar):
14114         (image_instantiator_progress_guage):
14115         (image_instantiator_tree_view):
14116         (image_instantiator_tab_control):
14117         (image_instantiator_labels):
14118         (image_instantiator_layout): call default post_instantiate method.
14119         (widget_post_instantiate): new function. Simply lays out the
14120         widgets.
14121
14122         * glyphs.h (struct image_instantiator_methods): add
14123         post_instantiate method.
14124
14125         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14126         method calls.
14127
14128 2000-04-23  Andy Piper  <andy@xemacs.org>
14129
14130         * glyphs.h (struct image_instantiator_methods): add
14131         decode_domain_method.
14132         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14133         derived from the domain.
14134         (IMAGE_INSTANCE_FRAME): new accessor.
14135         (XIMAGE_INSTANCE_FRAME): ditto.
14136
14137         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14138         instead of _SUBWINDOW_FRAME.
14139         (finalize_image_instance): ditto.
14140         (Fimage_instance_foreground): ditto.
14141         (Fimage_instance_background): ditto.
14142         (image_instantiate): ditto.
14143         (update_subwindow_cachel): ditto.
14144         (update_subwindow): ditto.
14145         (unmap_subwindow): ditto.
14146         (map_subwindow): ditto
14147         (subwindow_instantiate): ditto.
14148         * glyphs-msw.c (mswindows_update_widget): ditto.
14149         (mswindows_progress_gauge_instantiate): ditto.
14150         (mswindows_tab_control_update): ditto.
14151         * glyphs-x.c (x_update_widget): ditto.
14152         (x_widget_instantiate): ditto.
14153         (x_tab_control_instantiate): ditto.
14154         (x_tab_control_update): ditto.
14155         * event-msw.c (mswindows_wnd_proc): ditto
14156
14157         * glyphs-widget.c (image_instantiator_layout): use
14158         subwindow_decode_domain.
14159         (image_instantiator_buttons): ditto.
14160         (image_instantiator_edit_fields): ditto.
14161         (image_instantiator_combo_box): ditto.
14162         (image_instantiator_scrollbar): ditto.
14163         (image_instantiator_progress_guage): ditto.
14164         (image_instantiator_tree_view): ditto.
14165         (image_instantiator_tab_control): ditto.
14166         (image_instantiator_labels): ditto.
14167         (image_instantiator_layout): ditto.
14168
14169         * glyphs.c: add instance error checking to many functions.
14170         (instantiate_image_instantiator): decode device from cache_domain.
14171         (image_instantiate): partially rewrite by using
14172         decode_image_instantiator_domain to determine what domain the
14173         instance needs to be cached in.
14174         (decode_image_instantiator_domain): new function. Determine what
14175         domain the image needs to be cached in.
14176         (check_window_subwindow_cache): new error checking function.
14177         (check_instance_cache_mapper): ditto.
14178         (check_image_instance_structure): ditto.
14179         (subwindow_decode_domain): new function. Encodes a window as a
14180         subwindow's cache domain.
14181         (image_instantiator_format_create): use it for text and
14182         subwindows.
14183
14184 2000-04-21  Andy Piper  <andy@xemacs.org>
14185
14186         * glyphs.c (image_instance_device): new function.
14187         (image_instance_frame): new function.
14188         (image_instance_window): new function.
14189         (image_instance_live_p): new function.
14190
14191         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14192         cache to nil.
14193
14194         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14195         (IMAGE_INSTANCE_DOMAIN): new accessor.
14196         (XIMAGE_INSTANCE_DOMAIN): ditto.
14197
14198         * glyphs-x.c (x_finalize_image_instance): device->domain.
14199
14200         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14201         (mswindows_finalize_image_instance): ditto.
14202
14203         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14204         (gif_instantiate): ditto.
14205         (png_instantiate): ditto.
14206         (tiff_instantiate): ditto.
14207
14208         * glyphs.c (instantiate_image_instantiator): use domain rather
14209         than device.
14210         (mark_image_instance): device -> domain.
14211         (print_image_instance): ditto.
14212         (finalize_image_instance): ditto.
14213         (image_instance_equal): ditto.
14214         (allocate_image_instance): ditto.
14215         (Fcolorize_image_instance): ditto.
14216         (query_string_geometry): ditto.
14217         (image_instantiate): ditto
14218         (query_string_font): ditto.
14219         (image_instantiate): ditto.
14220         (update_subwindow): ditto.
14221         (unmap_subwindow): ditto.
14222         (map_subwindow): ditto.
14223         (subwindow_instantiate): ditto.
14224
14225         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14226         (DOMAIN_FRAME): ditto.
14227         (DOMAIN_WINDOW): ditto.
14228         (DOMAIN_LIVE_P): ditto.
14229         (XDOMAIN_DEVICE): ditto.
14230         (XDOMAIN_FRAME): ditto.
14231         (XDOMAIN_WINDOW): ditto.
14232
14233         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14234         a valid specifier domain.
14235
14236 2000-04-19  Andy Piper  <andy@xemacs.org>
14237
14238         * glyphs-widget.c (syms_of_glyphs_widget): remove
14239         widget-callback-current-channel.
14240         (vars_of_glyphs_widget): ditto.
14241         * glyphs.h: ditto
14242
14243         * gui.c (get_gui_callback): revert to previous behaviour.
14244
14245 2000-04-18  Andy Piper  <andy@xemacs.org>
14246
14247         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14248         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14249         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14250
14251         * glyphs.c (image_instance_equal): add margin_width.
14252         (image_instance_hash): ditto.
14253
14254         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14255         (layout_query_geometry): ditto.
14256         (layout_layout): ditto.
14257         (syms_of_glyphs_widget): add margin-width.
14258         (image_instantiator_layout): allow margin-width.
14259
14260         * glyphs.c (update_widget_instances): make a normal function.
14261         (syms_of_glyphs): remove Qupdate_widget_instances.
14262         * glyphs.h: ditto.
14263
14264         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14265         so that we don't corrupt ideas about the last event or
14266         command. Remove widget-callback-current-channel fiddling.
14267         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14268
14269 2000-05-01  Martin Buchholz <martin@xemacs.org>
14270
14271         * XEmacs 21.2.33 is released.
14272
14273 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14274
14275         * make-src-depend: Allow dots in header file name.
14276
14277 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14278
14279         * mule-charset.h (struct charset_lookup): Add
14280         next_allocated_1_byte_leading_byte and
14281         next_allocated_2_byte_leading_byte.
14282         * mule-charset.c: Move above two variables so that those values
14283         will be dumped.
14284
14285 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14286
14287         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14288         when string length is zero.
14289         (find_charsets_in_emchar_string): Ditto.
14290
14291 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14292
14293         * lisp.h: extern Qdialog and Qmenubar.
14294
14295         * gui-x.c: added events.h.
14296                 also fixed typo which made the file uncompilable.
14297
14298         * general.c: Added Qmenubar and Qdialog
14299
14300 2000-04-28  Ben Wing  <ben@xemacs.org>
14301
14302         * frame-msw.c (mswindows_init_frame_1):
14303         * frame-msw.c (mswindows_mark_frame):
14304         * event-msw.c (mswindows_enqueue_dispatch_event):
14305         * console-msw.h:
14306         * console-msw.h (struct mswindows_frame):
14307         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14308         there are now three hash tables for callbacks.
14309         mswindows_enqueue_dispatch_event is no longer static.
14310
14311         * dialog-x.c (maybe_run_dbox_text_callback):
14312         * dialog-x.c (dbox_descriptor_to_widget_value):
14313         switch to new cons3 form for callbacks.
14314
14315         * glyphs-msw.c (mswindows_register_gui_item):
14316         * glyphs-msw.c (mswindows_widget_instantiate):
14317         * glyphs-msw.c (add_tree_item):
14318         * glyphs-msw.c (add_tab_item):
14319         new image instance parameter, so it can be passed to callback-ex.
14320         respect :callback-ex as well as :callback.
14321
14322         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14323         add :callback-ex.
14324
14325         * glyphs.c (print_image_instance):
14326         prettify, e.g. now prints widget type.
14327
14328         * gui-x.h:
14329         certain funs have new image instance parameter.
14330
14331         * gui.c:
14332         * gui.c (get_gui_callback):
14333         * gui.c (gui_item_add_keyval_pair):
14334         * gui.c (gui_item_init):
14335         * gui.c (gui_add_item_keywords_to_plist):
14336         * gui.c (mark_gui_item):
14337         * gui.c (gui_item_hash):
14338         * gui.c (gui_item_equal):
14339         * gui.c (copy_gui_item):
14340         * gui.c (syms_of_gui):
14341         recognize callback-ex in a number of places.
14342         also, fix the annoying "can't get out of yes-no dialog" bug.
14343
14344         * gui.h:
14345         * gui.h (struct Lisp_Gui_Item):
14346         recognize callback-ex in a number of places.
14347
14348         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14349         new parameter in button_item_to_widget_value.
14350
14351         * glyphs-x.c (x_update_widget):
14352         * glyphs-x.c (x_button_instantiate):
14353         * glyphs-x.c (x_button_update):
14354         * glyphs-x.c (x_progress_gauge_instantiate):
14355         * glyphs-x.c (x_edit_field_instantiate):
14356         * glyphs-x.c (x_combo_box_instantiate):
14357         * glyphs-x.c (x_tab_control_instantiate):
14358         * glyphs-x.c (x_label_instantiate):
14359         new image instance parameter in various places.
14360
14361         * event-Xt.c:
14362         * event-Xt.c (enqueue_Xt_dispatch_event):
14363         this fun gets exported.
14364
14365         * gui-msw.c:
14366         * gui-msw.c (mswindows_handle_gui_wm_command):
14367         handle both :callback and :callback-ex, and generate our own
14368         event because it's one of the callback-ex arguments.
14369
14370         * gui-x.c:
14371         * gui-x.c (popup_selection_callback):
14372         handle both :callback and :callback-ex, and generate our own
14373         event because it's one of the callback-ex arguments.
14374         * gui-x.c (button_item_to_widget_value):
14375         * gui-x.c (gui_items_to_widget_values_1):
14376         * gui-x.c (gui_item_children_to_widget_values):
14377         * gui-x.c (gui_items_to_widget_values):
14378         new image instance parameter in various places.
14379
14380         * fns.c (Freplace_list):
14381         fix small typo in doc string.
14382
14383         * lisp.h:
14384         declare enqueue_Xt_dispatch_event.
14385
14386 2000-04-28  Ben Wing  <ben@xemacs.org>
14387
14388         * buffer.c:
14389         * buffer.c (Frecord_buffer):
14390         * buffer.c (syms_of_buffer):
14391         delete record-buffer-hook.
14392
14393         * fns.c:
14394         * fns.c (Freplace_list):
14395         * fns.c (syms_of_fns):
14396         new primitive replace-list.
14397
14398         * frameslots.h:
14399         slot for old buffer-alist.
14400
14401         * lisp.h:
14402         exfun replace-list.
14403
14404         * redisplay.c:
14405         * redisplay.c (redisplay_frame):
14406         * redisplay.c (syms_of_redisplay):
14407         * redisplay.c (vars_of_redisplay):
14408         new hook buffer-list-changed-hook.
14409         call it.
14410
14411 2000-04-27  Ben Wing  <ben@xemacs.org>
14412
14413         * extents.h: extern in_modeline_generation.
14414
14415         * redisplay.c (generate_formatted_string_db): set
14416         in_modeline_generation.
14417
14418         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14419         flags if in modeline generation.  otherwise frame-modified-tick
14420         is ticked far too often.
14421         Declare in_modeline_generation.
14422
14423 2000-04-26  Ben Wing  <ben@xemacs.org>
14424
14425         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14426         option.
14427         (vars_of_emacs): add quick-build as an error-checking option.
14428         A bit kludgy, but there doesn't seem much point in creating
14429         a real var for this.
14430
14431         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14432
14433 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14434
14435         * redisplay.h (struct display_line): Add a new variable,
14436         line_continuation.
14437
14438         * redisplay.c (create_text_block): Set dl->line_continuation if
14439         the line continues.
14440         (create_string_text_block): Ditto.
14441         (regenerate_window_incrementally): Use line_continuation instead
14442         of searching continuation glyph.
14443         (add_margin_runes): Call add_glyph_rune.
14444         (add_glyph_rune): Handle margin glyph.
14445
14446 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14447
14448         * filelock.c (fill_in_lock_file_name):
14449         ANSIfy.
14450         Check for IS_ANY_SEP instead of '/'.
14451         (lock_file_1):
14452         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14453         Never check errno without first seeing that system call failed.
14454         (unlock_file): Add GCPRO.
14455         (Flock_buffer): Fix docstring.
14456         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14457
14458 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14459
14460         * sysdep.c (get_pty_max_bytes):
14461         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14462         strings longer than 252 bytes.
14463
14464         * md5.c: Unconditionally include ANSI header <limits.h>
14465
14466         * glyphs-x.c (convert_EImage_to_XImage):
14467         * lisp-union.h (union Lisp_Object):
14468         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14469
14470 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14471
14472         * filelock.c (current_lock_owner): Remove unused variable o, p.
14473
14474 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14475
14476         * callint.c: Remove multiply defined symbol Qlet
14477         (syms_of_callint): ditto.
14478
14479 2000-04-14  Andy Piper  <andy@xemacs.org>
14480
14481         * general.c (syms_of_general): add last-command, this-command, let
14482         and funcall.
14483
14484         * lisp.h: declare various symbols.
14485
14486         * glyphs.h: declare Qwidget_callback_current_channel;
14487
14488         * glyphs-widget.c (syms_of_glyphs_widget): add
14489         Qgui_callback_current_channel.
14490         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14491
14492         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14493         widget-callback-current-channel when invoking the interactive
14494         arg. Also bind last-command and next-command when invoking the
14495         widget updates.
14496         * gui-x.c (popup_selection_callback): ditto.
14497
14498         * gui.c (get_gui_callback): massage args so that we are always
14499         calling eval. This allows us to add our own variable bindings
14500         outside.
14501
14502         * glyphs-x.c (x_button_instantiate): use
14503         gui_items_to_widget_values since this is GC safe.
14504         (x_progress_gauge_instantiate): ditto.
14505         (x_edit_field_instantiate): ditto.
14506         (x_label_instantiate): ditto.
14507
14508         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14509         (emacs_Xt_event_widget_focus_out): new function
14510         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14511         focus.
14512         (emacs_Xt_event_add_widget_actions): new function. add focus
14513         functions as actions.
14514         (init_event_Xt_late): use it.
14515
14516 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14517
14518         * event-stream.c (Fdispatch_event): Doc fix.
14519
14520 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14521
14522         * postgresql.c: Remove all references to PQsetenv*.
14523
14524         * postgresql.h: Remove references to PGsetenvHandler object.
14525         * lrecord.h (lrecord_type): Ditto.
14526
14527 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14528
14529         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14530         real_heigh and real_width members, and accessor macros for these.
14531
14532         * glyphs-msw.c (init_image_instance_geometry): New function.
14533         (init_image_instance_from_dibitmap): Use it.
14534         (mswindows_resource_instantiate): Use it.
14535         (init_image_instance_from_xbm_inline): Use it.
14536         (mswindows_initialize_image_instance_mask): Use real bitmap
14537         geometry.
14538         (mswindows_create_resized_bitmap): Ditto.
14539         (mswindows_create_resized_mask): Ditto.
14540
14541         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14542         and bitmap to their surface size.
14543
14544 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14545
14546         * process-unix.c (unix_send_process): Guard against process MIA
14547         after Faccept_process_output.
14548
14549 2000-04-11  Ben Wing  <ben@xemacs.org>
14550
14551         * eval.c (unbind_to_hairy): fix brokenness introduced by
14552         nanosecond speed improvements.
14553
14554 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14555
14556         * sunplay.c (init_device): To play sounds correctly, the device
14557         apparently needs to be initialized at least once by XEmacs.  Make
14558         it so.
14559
14560 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14561
14562         * redisplay.c (add_margin_runes): Add text image glyph
14563           handling.
14564
14565 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14566
14567         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14568         gcc is newer than 2.5.
14569
14570 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14571
14572         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14573
14574         * fns.c (size_bit_vector):
14575         * alloc.c (size_vector):
14576         (make_vector_internal):
14577         (make_bit_vector_internal):
14578         (sweep_bit_vectors_1):
14579         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14580
14581 2000-04-06  Andy Piper  <andy@xemacs.org>
14582
14583         * gmalloc.c (malloc): undo previous change.
14584         (malloc): ditto.
14585         (free): ditto.
14586         (realloc): ditto.
14587
14588 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14589
14590         * line-number.c (buffer_line_number): Revert to former version.
14591
14592 2000-04-06  Andy Piper  <andy@xemacs.org>
14593
14594         * gmalloc.c (malloc): add error checking.
14595         (malloc): ditto.
14596         (free): ditto.
14597         (realloc): ditto.
14598
14599         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14600         button_item_to_widget_value arg.
14601
14602         * glyphs-x.c (x_button_instantiate): add extra
14603         button_item_to_widget_value arg.
14604         (x_progress_gauge_instantiate): ditto.
14605         (x_edit_field_instantiate): ditto.
14606         (x_label_instantiate): ditto.
14607
14608         * gui-x.c (gui_items_to_widget_values_1): add extra
14609         button_item_to_widget_value arg.
14610         (button_item_to_widget_value): add extra menu_item_p arg.
14611
14612         * gui-x.h: change signature of button_item_to_widget_value.
14613
14614         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14615         button_item_to_widget_value arg.
14616
14617 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14618
14619         * buffer.h (struct buffer): auto_save_modified should be long.
14620
14621 2000-04-05  Andy Piper  <andy@xemacs.org>
14622
14623         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14624         type.
14625         (button_query_geometry): give a little more room so that athena
14626         buttons fit.
14627
14628 2000-04-05  Andy Piper  <andy@xemacs.org>
14629
14630         * faces.c (complex_vars_of_faces): The widget face should inherit
14631         the font of the gui-element face.
14632
14633 2000-04-04  Andy Piper  <andy@xemacs.org>
14634
14635         * glyphs-x.c (x_button_update): new function. unconditionally
14636         update a button's state when the instance is dirty.
14637         (image_instantiator_format_create_glyphs_x): add x_button_update.
14638         (x_widget_instantiate): remove old resize cruft.
14639
14640 2000-04-02  Andy Piper  <andy@xemacs.org>
14641
14642         * frame.c (change_frame_size_1): The introduction of gutters means
14643         that we need to allow 0 as a potential frame dimension.
14644
14645 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14646
14647         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14648         image glyph if allow_cursor.
14649         (add_hscroll_rune): Don't allow cursor to border glyph.
14650         (create_text_block): Ditto.
14651
14652         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14653         text not in buffer.
14654         (redisplay_output_layout): Call ensure_face_cachel_complete for
14655         text image glyph.
14656
14657
14658 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14659
14660         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14661
14662         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14663         not in buffer
14664
14665         * redisplay-tty.c (tty_output_display_block): Delete the routine
14666         for text image glyph
14667         * redisplay-x.c (x_output_display_block): ditto
14668         * redisplay-msw.c (mswindows_output_display_block): ditto
14669
14670 2000-02-02  Mike Alexander  <mta@arbortext.com>
14671
14672         Note: Some of these were committed by accident as part of other
14673         patches.
14674
14675         * regex.c (regex_compile): Avoid compiler warnings.
14676
14677         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14678
14679         * nt.h: Declare term_ntproc correctly.
14680
14681         * nt.c: Remove incorrect declaration of get_home_directory which
14682         is declared correctly in lisp.h.
14683
14684         * keymap.c (get_keyelt): Avoid compiler warnings.
14685         (raw_lookup_key_mapper): Avoid compiler warnings.
14686
14687         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14688
14689         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14690
14691         * filemode.c (mode_string): Avoid compiler warnings.
14692
14693         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14694         avoid warning.
14695
14696         * events-mod.h: Undef some things that winuser.h defines differently.
14697
14698         * data.c (Faset): Avoid compiler warnings.
14699
14700         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14701
14702 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14703
14704         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14705         Fall through to simple beep on error.
14706         Replace "extern" by real header file.
14707
14708         * linuxplay.c: Use nativesound.h
14709         (play_sound_data): Return error code. Be less verbose on error.
14710
14711         * sunplay.c: Use nativesound.h
14712         (play_sound_data): Return error code. Be less verbose on error.
14713
14714         * ntplay.c: Use nativesound.h
14715         (play_sound_data): Return fake error code
14716
14717         * sgiplay.c: Use nativesound.h
14718         (play_sound_data): Return error code
14719
14720         * hpplay.c: Use nativesound.h, partially implement
14721         new error code. Break compilation until finished.
14722         (play_sound_data): error code.
14723
14724         * nativesound.h (play_sound_file):
14725           (play_sound_data): Prototype in new header.
14726
14727 2000-03-31  Andy Piper  <andy@xemacs.org>
14728
14729         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14730         for toggle and radio buttons.
14731         (image_instantiator_buttons): use it.
14732
14733 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14734
14735         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14736         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14737         found. Scrollbar event probably belonged to some old config.
14738
14739 2000-03-31  Andy Piper  <andy@xemacs.org>
14740
14741         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14742         than 1.
14743         (initialize_widget_image_instance): default layout to
14744         LAYOUT_HORIZONTAL rather than 0.
14745         (widget_instantiate): reverse the item list at the end rather than
14746         every iteration.
14747         (layout_layout): re-code for the border text at the front of the
14748         item list rather than at the end.
14749         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14750         provided by the user.
14751         (widget_query_geometry): comment.
14752
14753 2000-03-30  Andy Piper  <andy@xemacs.org>
14754
14755         * glyphs-widget.c (image_instantiator_layout): allow standard
14756         widget keywords in layouts.
14757
14758         * gutter.c (output_gutter): cope with nil gutter contents.
14759
14760         * frame.c (Fset_frame_properties): add gutter docs.
14761
14762 2000-03-29  Andy Piper  <andy@xemacs.org>
14763
14764         * toolbar-msw.c (TBSTYLE_FLAT): add.
14765         (mswindows_output_toolbar): minor fiddling.
14766
14767 2000-03-29  Andy Piper  <andy@xemacs.org>
14768
14769         * gutter.c (output_gutter): force gutter size recalculation if
14770         what we are trying to display won't fit.
14771         (update_gutter_geometry): new function. A per-gutter version of
14772         update_frame_gutter_geometry.
14773         (update_frame_gutter_geometry): use it.
14774         (redraw_exposed_gutter): add extra debugging output.
14775
14776 2000-03-28  Mike Alexander  <mta@arbortext.com>
14777
14778         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14779         (pdump_file_unmap): Implement it on Windows
14780         (pdump_file_get): Save alocated handles for pdump_file_unmap
14781
14782 2000-03-28  Andy Piper  <andy@xemacs.org>
14783
14784         * gui.c (get_gui_callback): treat Quit specially.
14785
14786 2000-03-27  Andy Piper  <andy@xemacs.org>
14787
14788         * glyphs.c (image_instantiate): be careful to check in the same
14789         way we assigned.
14790
14791 2000-03-27  Didier Verna  <didier@xemacs.org>
14792
14793         * config.h.in: define the proper SMART_INCLUDE macro.
14794         handle renaming of `foo_h_path' to `foo_h_file'.
14795
14796         * database.c: ditto.
14797
14798         * emacs.c: ditto.
14799
14800         * linuxplay.c: ditto.
14801
14802         * terminfo.c: ditto.
14803
14804         * tooltalk.h: ditto.
14805
14806 2000-03-27  Andy Piper  <andy@xemacs.org>
14807
14808         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14809         gets updated whenever the face might have changed.
14810
14811 2000-03-26  Mike Alexander  <mta@arbortext.com>
14812
14813         * dumper.c (pdump_resource_free): Fix the comment.
14814
14815 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14816
14817         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14818
14819 2000-03-22  Mike Alexander  <mta@arbortext.com>
14820
14821         * dumper.c: Include Windows headers on Windows
14822         (pdump_resource_free): Add a body to the function
14823         (pdump_load): exe_name -> exe_path and add some comments.
14824
14825 2000-03-25  Mike Alexander  <mta@arbortext.com>
14826
14827         * gui.c (copy_gui_item_tree): Return a value in all cases
14828
14829 2000-03-21  Didier Verna  <didier@xemacs.org>
14830
14831         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14832         lwlib/config.h.in.
14833         (SMART_INCLUDE): new macro.
14834         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14835         the proper location.
14836
14837         * postgresql.c: use it.
14838
14839         * inline.c: ditto.
14840
14841 2000-03-24  Andy Piper  <andy@xemacs.org>
14842
14843         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14844         do this.
14845
14846 2000-03-24  Andy Piper  <andy@xemacs.org>
14847
14848         * redisplay-output.c (compare_runes): use image_instance_changed
14849         to detect changes. Do not depend on glyphs_changed, only depend on
14850         dirtiness.
14851          (redisplay_output_layout): add debug messages.
14852         (compare_runes): ditto.
14853
14854         * glyphs.h: declare new functions.
14855         (struct Lisp_Image_Instance): remove percent and associated
14856         accessors.
14857
14858         * gui.h: declare new copying functions.
14859
14860         * gui.c (copy_gui_item_tree): new function.
14861         (copy_gui_item): new function.
14862         (gui_item_id_hash): revert to standard hash.
14863         (gui_item_hash): ditto.
14864         (gui_item_hash_internal): deleted.
14865         (mark_gui_item): mark value.
14866         (gui_item_add_keyval_pair): add value.
14867         (gui_item_init): ditto.
14868         (gui_add_item_keywords_to_plist): ditto.
14869         (gui_item_equal): ditto.
14870         (syms_of_gui): add Q_value.
14871
14872         * glyphs-x.c (x_progress_gauge_update): use pending items and
14873         value for setting the state.
14874         (x_update_widget): don't set items from pending here.
14875
14876         * glyphs-widget.c (update_widget): update items here.
14877         (progress_gauge_set_property): use items for storing value. Put
14878         new value in pending items.
14879
14880         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14881         items for new value. Convert percent -> value.
14882         (mswindows_tab_control_update): don't update items here.
14883
14884         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14885         (update_subwindow): ditto.
14886         (image_instance_changed): new function. Compare hash values and
14887         past and present widget items.
14888         (image_instantiate): We more careful about where we instantiate
14889         things.
14890         (image_instantiate): add error checking.
14891
14892         * gutter.c (syms_of_gutter): use -hook.
14893
14894 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
14895
14896         * console-tty.c (Fset_console_tty_input_coding_system): Use
14897         Qkeyboard.
14898         (Fset_console_tty_output_coding_system): Use Qterminal.
14899         (tty_init_console): Use Qkeyboard and Qterminal.
14900
14901 2000-03-21  Ben Wing  <ben@xemacs.org>
14902
14903         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14904         From Mike Alexander <mta@arbortext.com>.
14905
14906 2000-03-21  Ben Wing  <ben@xemacs.org>
14907
14908         * event-msw.c (mswindows_need_event): Horrible kludge to fix
14909         process brokenness.  Proper implementation to come.
14910         * callproc.c:
14911         Rename call-process-internal to old-call-process-internal.
14912         New impl. in process.el.
14913
14914 2000-03-21  Martin Buchholz  <martin@xemacs.org>
14915
14916         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14917
14918 2000-03-20  Andy Piper  <andy@xemacs.org>
14919
14920         * glyphs.c (full_list_hash): make hashes of the same elements in
14921         different orders return different values.
14922
14923 2000-03-20  Martin Buchholz <martin@xemacs.org>
14924
14925         * XEmacs 21.2.32 is released.
14926
14927 2000-03-20  Martin Buchholz  <martin@xemacs.org>
14928
14929         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14930         (DFC_MALLOC_USE_CONVERTED_DATA):
14931         Add aliasing-safe casts to allow use with char* or unsigned char*
14932         lvalues.
14933
14934         * eldap.c (Fldap_open):
14935         (Fldap_search_basic):
14936         (Fldap_add):
14937         (Fldap_modify):
14938         Make C++-compilable.
14939         Make sure GCPRO'ed variables are initialized.
14940         Use temp variables to avoid repeated calls to Flength.
14941
14942 2000-03-16  Martin Buchholz  <martin@xemacs.org>
14943
14944         * sysfile.h:
14945         Make sure PATH_MAX is always defined.
14946         Include limits.h for PATH_MAX.
14947         Deprecate use of MAXPATHLEN.
14948
14949 2000-03-10  Martin Buchholz  <martin@xemacs.org>
14950
14951         * emacs.c: Add reinit_vars_of_fileio.
14952         * symsinit.h: Add reinit_vars_of_fileio.
14953         * fileio.c (reinit_vars_of_fileio): New.
14954         * fileio.c (Fmake_temp_name):
14955         Initialize temp_name random number from microseconds to make
14956         collisions even less likely.  Initialize always at process startup
14957         time.  (make-temp-name) used to return the same file name twice in
14958         a row when PDUMP.
14959         Random stylistic fiddling.
14960         Comment fixes.
14961
14962 2000-03-20  Andy Piper  <andy@xemacs.org>
14963
14964         * glyphs.c (image_instantiate): allow text glyphs to be
14965         instantiated in the minibuffer window.
14966
14967 2000-03-19  Andy Piper  <andy@xemacs.org>
14968
14969         * glyphs.c (image_instance_hash): be careful about which items we
14970         hash on.
14971
14972         * glyphs-widget.c (tab_control_set_property): record into pending
14973         items rather than the actual items.
14974
14975         * glyphs-x.c (x_update_widget): use pending items to update with.
14976
14977         * glyphs-msw.c (mswindows_tab_control_update): use pending items
14978         to update with.
14979
14980         * glyphs.c (mark_image_instance): mark pending items.
14981
14982         * window.c (Fset_window_configuration): record the buffer.
14983         (Fselect_window): totally revert previous change which breaks many
14984         things.
14985
14986 2000-03-18  Andy Piper  <andy@xemacs.org>
14987
14988         * glyphs-msw.c (mswindows_tab_control_update): force selected
14989         item.
14990
14991         * glyphs.c (image_instantiate): don't allow the minibuffer as a
14992         window domain cache, otherwise we get inconsistencies at
14993         startup. There is something fishy at startup which can lead to the
14994         minibuffer being the selected window when the gutter content is
14995         instantiated.
14996
14997         * gui.c (parse_gui_item_tree_list): add probably unnecessary
14998         gcpros.
14999         (parse_gui_item_tree_children): ditto.
15000         (parse_gui_item_tree_item): ditto.
15001
15002         * glyphs.c (Fupdate_widget_instances): return something.
15003
15004 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15005
15006         * window.c (Fselect_window): Undo 2000-03-17 change.
15007
15008 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15009
15010         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15011         against v7.0 libraries.  Insta-coredump city until the postgres
15012         folks fix it.
15013
15014 2000-03-17  Andy Piper  <andy@xemacs.org>
15015
15016         * faces.c (complex_vars_of_faces): don't give the widget face an
15017         inherited background pixmap.
15018
15019         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15020         selected item.
15021
15022         * event-stream.c (Fdispatch_non_command_events): return something.
15023
15024         * gutter.c (output_gutter): use widget face.
15025         (clear_gutter): ditto.
15026
15027         * NEWS: adjust again.
15028
15029         * window.c (Fselect_window): make sure this runs to completion to
15030         avoid oddities with Fset_window_configuration.
15031         (Fcurrent_window_configuration): in general do not save the
15032         minibuffer as the selected window.
15033
15034         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15035
15036 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15037
15038         * emacs.c (Frunning_temacs_p): Revert previous patch.
15039         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15040
15041 2000-03-16  Andy Piper  <andy@xemacs.org>
15042
15043         * glyphs-x.c (x_tab_control_update): if no widget values then
15044         return.
15045
15046         * NEWS: update for new features.
15047
15048         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15049         synthetic event to the native system.
15050         (reinit_vars_of_event_Xt): set force_event_pending to
15051         emacs_Xt_force_event_pending.
15052
15053         * events.h (struct event_stream): add force_event_pending.
15054
15055         * specifier.c (recompute_one_cached_specifier_in_window): add
15056         comment.
15057
15058         * redisplay.c (redisplay_frame): don't call
15059         update_frame_subwindows. Reset subwindow cachels when
15060         subwindows_changed, removing this was an optimization too far.
15061
15062         * redisplay-output.c (compare_runes): reorganize so that we catch
15063         glyph changes when we want them. Set optimize_output when this
15064         would help layouts.
15065         (redisplay_output_layout): remove frame_really_changed, use
15066         optimize_output instead.
15067
15068         * redisplay-msw.c (mswindows_output_display_block): reset
15069         optimize_output after outputting a glyph.
15070         * redisplay-x.c (x_output_display_block): ditto.
15071         * redisplay-tty.c (tty_output_display_block): ditto.
15072
15073         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15074         functions.
15075         (gutter_specs_changed): do specific gutter positions.
15076         (top_gutter_specs_changed): new function. Only update the
15077         specified gutter specs.
15078         (bottom_gutter_specs_changed): ditto.
15079         (left_gutter_specs_changed): ditto.
15080         (right_gutter_specs_changed): ditto.
15081
15082         * gui.c (gui_item_hash_internal): new function, does a real hash.
15083         (gui_item_id_hash): use it.
15084         (gui_item_hash): hash the eval'ed gui_item.
15085
15086         * gui-x.c (popup_selection_callback): send an eval event to call
15087         Fupdate_widget_instances.
15088
15089         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15090         to call Fupdate_widget_instances.
15091
15092         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15093         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15094
15095         * glyphs.c: (update_frame_subwindows): deleted.
15096         (Fupdate_widget_instances): new function for updating the dirty
15097         state of widgets that might have changed.
15098         (syms_of_glyphs): add Qupdate_widget_instances.
15099         (full_list_hash): hash a list completely.
15100         (image_instance_hash): use it for items and properties.
15101
15102         * frame-msw.c (mswindows_size_frame_internal): remove unused
15103         variable.
15104
15105         * faces.h (struct face_cachel): fix comment.
15106
15107         * event-stream.c (Fdispatch_non_command_events): new
15108         function. Process non-command events, forcing an event cycle
15109         beforehand.
15110         (syms_of_event_stream): declare.
15111         (event_stream_force_event_pending): new function. Force an event
15112         on the native event queue so that an event cycle will occur next
15113         time we check.
15114
15115         * event-msw.c:
15116         (struct ntpipe_shove_stream):
15117         (mswindows_enqueue_dispatch_event):
15118         (mswindows_dequeue_dispatch_event):
15119         (mswindows_cancel_dispatch_event):
15120         (mswindows_pump_outstanding_events):
15121         (mswindows_drain_windows_queue):
15122         (mswindows_handle_paint):
15123         (mswindows_wnd_proc):
15124         (mswindows_key_to_emacs_keysym):
15125         (get_process_input_waitable):
15126         (emacs_mswindows_delete_stream_pair): re-indent file.
15127         (mswindows_need_event): do not process further fds if the windows
15128         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15129         fixes the 100% cpu problem.
15130         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15131
15132 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15133
15134         * alloc.h: New.
15135         * dumper.h: New.
15136         * dumper.c: New.
15137
15138         * emacs.c: Moved dump file searching to dumper.c.
15139         (Frunning_temacs_p): Fixed.
15140
15141         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15142         last_lrecord_type_index_assigned.
15143
15144 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15145
15146         * symsinit.h: Added reinit parameter to init_console_stream
15147         declaration.
15148
15149         * lisp.h: Added file parameter to pdump_load declaration.
15150
15151         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15152         support.  Added dump file searching.
15153
15154         * config.h.in: Added EMACS_PROGNAME.
15155
15156         * console-stream.c (init_console_stream): Fix reinitialisation
15157         when running from temacs.
15158
15159         * alloc.c (pdump): Add id support.
15160         (pdump_load): Add file parameter and signature/id support.
15161
15162         * Makefile.in.in: Add full pdump support.
15163
15164 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15165
15166         * postgresql.c: Update documentation to reflect latest code
15167         status.
15168         (print_result): Show tuple counts in printed representation when
15169         appropriate.
15170         (Fpq_put_nbytes): MULE-ize.
15171         (Fpq_get_line_async): Ditto.
15172
15173 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15174
15175         * postgresql.c (Fpq_lo_import): Fix return value.
15176         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15177
15178 2000-03-13  Ben Wing  <ben@xemacs.org>
15179
15180         * alloc.c (pdump_load):
15181         Fix compile warning under mswin.
15182
15183 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15184
15185         * postgresql.c: Mule-ization, bug fixes.
15186         Use PG_CODING to encapsulate coding system name changes.
15187         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15188         (pg-coding-system): Create.
15189
15190         (Fpq_conn_defaults): Mule-ize.
15191         (Fpq_connectdb): Mule-ize & bug fix.
15192         (Fpq_connect_start): Mule-ize.
15193         (Fpq_set_client_encoding): Mule-ize.
15194         (Fpq_finish): Document `DEAD' connection status.
15195         (Fpq_clear): Ditto.
15196         (Fpq_pgconn): Mule-ize.
15197         (Fpq_exec): Mule-ize & bug fix.
15198         (Fpq_send_query): Ditto.
15199         (Fpq_get_result): Ditto.
15200         (Fpq_res_status): Mule-ize.
15201         (Fpq_result_error_message): Mule-ize.
15202         (Fpq_ntuples): fix comments.
15203         (Fpq_fname): Mule-ize.
15204         (Fpq_fnumber): Mule-ize.
15205         (Fpq_ftype): fix comments.
15206         (Fpq_get_value): Mule-ize.
15207         (Fpq_cmd_status): Ditto.
15208         (Fpq_cmd_tuples): Ditto.
15209         (Fpq_oid_value): Ditto.
15210         (Fpq_notifies): Ditto.
15211         (Fpq_lo_import): Ditto.
15212         (Fpq_lo_export): Ditto.
15213         (Fpq_get_line): Ditto.
15214         (Fpq_put_line): Mule-ize and bug fix.
15215         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15216
15217 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15218
15219         * postgresql.c (vars_of_postgresql): Mule-ize.
15220         (Fpq_conn_defaults): Ditto.
15221
15222 2000-03-12  Ben Wing  <ben@xemacs.org>
15223
15224         * alloc.c (Fmake_byte_code):
15225         * alloc.c (debug_string_purity_print):
15226         * alloc.c (pdump_backtrace):
15227         * alloc.c (pdump_get_indirect_count):
15228         * alloc.c (pdump_register_sub):
15229         * alloc.c (pdump_register_object):
15230         * alloc.c (pdump_register_struct):
15231         * alloc.c (pdump_dump_data):
15232         * alloc.c (pdump_reloc_one):
15233         Minor cleanups.
15234
15235         * console-msw.c:
15236         * console-msw.c (GetConsoleHwnd):
15237         * console-msw.c (msw_hide_console):
15238         * console-msw.c (msw_show_console):
15239         * console-msw.c (msw_ensure_console_buffered):
15240         * console-msw.c (msw_output_console_string):
15241         * console-msw.c (console_type_create_mswindows):
15242
15243         a) Added functions to manipulate the console window for use with
15244         shell support.
15245
15246         b) Added support for writing text to the console, which is now
15247         used under Windows when xemacs is not being run non-interactively,
15248         to write text that would otherwise be destined for stdout because
15249         under these circumstances, text written to stdout tends to
15250         disappear and not be seen.
15251
15252         * console-msw.h:
15253         * event-Xt.c:
15254         * event-Xt.c (x_event_to_emacs_event):
15255         * event-Xt.c (describe_event_window):
15256         * events-mod.h (XEMACS_MOD_CONTROL):
15257         * events.c:
15258         * events.c (Fmake_event):
15259         * events.c (character_to_event):
15260         * events.c (event_to_character):
15261         * events.c (format_event_object):
15262         * events.c (Fevent_modifiers):
15263         * events.h:
15264         * events.h (struct key_data):
15265         * events.h (struct button_data):
15266         * events.h (struct misc_user_data):
15267         * frame-x.c (Fcde_start_drag_internal):
15268         * frame-x.c (Foffix_start_drag_internal):
15269         * gpmevent.c (Freceive_gpm_event):
15270         * keymap.c:
15271         * keymap.c (bucky_sym_to_bucky_bit):
15272         * keymap.c (control_meta_superify):
15273         * keymap.c (make_key_description):
15274         * keymap.c (keymap_lookup_directly):
15275         * keymap.c (create_bucky_submap):
15276         * keymap.c (keymap_store):
15277         * keymap.c (define_key_check_and_coerce_keysym):
15278         * keymap.c (define_key_parser):
15279         * keymap.c (define_key_alternate_name):
15280         * keymap.c (Fdefine_key):
15281         * keymap.c (raw_lookup_key_mapper):
15282         * keymap.c (struct map_keymap_unsorted_closure):
15283         * keymap.c (map_keymap_unsorted_mapper):
15284         * keymap.c (map_keymap_sort_predicate):
15285         * keymap.c (map_keymap_sorted):
15286         * keymap.c (accessible_keymaps_mapper_1):
15287         * keymap.c (where_is_recursive_mapper):
15288         * keymap.c (describe_map_mapper):
15289         * keymap.c (describe_map_sort_predicate):
15290         * keymap.c (describe_map):
15291         * keymap.c (complex_vars_of_keymap):
15292         And a number of other files, the key modifier preprocessor
15293         constants that xemacs uses have names that conflict with constants
15294         defined under MS Windows for other purposes, so they were renamed
15295         to begin with the prefix XEMACS_. The variables that hold such
15296         modifiers were changed to consistently be of type int to fix
15297         various compile warnings.
15298
15299         * console.c (complex_vars_of_console):
15300         * device.c:
15301         * device-msw.c:
15302         * device-msw.c (mswindows_finish_init_device):
15303         * device-msw.c (msw_get_workspace_coords):
15304         * device-msw.c (mswindows_device_system_metrics):
15305         and various other files, added support for a new
15306         device property called offset-workspace which returns the position
15307         of the upper left corner of the workspace area and goes along with
15308         the existing size-workspace property.
15309
15310         * dialog-msw.c:
15311         * dialog-msw.c (push_bufbyte_string_as_unicode):
15312         * dialog-msw.c (mswindows_popup_dialog_box):
15313         Added support for XEmacs-style accelerator specifications in
15314         button text.  Note: I didn't add support for this under X Windows,
15315         and somebody needs to do this.
15316
15317         * dialog.c:
15318         * dialog.c (Fpopup_dialog_box):
15319         Documented the support for accelerators that was just mentioned.
15320
15321         editfns.c (get_home_directory): Changed behavior under Windows
15322         when HOME not defined; former behavior was irretrievably broken.
15323
15324         * emacs.c:
15325         * emacs.c (main_1):
15326         * emacs.c (main):
15327         * minibuf.c (clear_echo_area_internal):
15328         * minibuf.c (echo_area_append):
15329         * print.c:
15330         * print.c (std_handle_out_external):
15331         * print.c (std_handle_out_va):
15332         * print.c (fatal):
15333         * print.c (write_string_to_stdio_stream):
15334         * print.c (output_string):
15335         * print.c (debug_print):
15336         * print.c (debug_backtrace):
15337         * print.c (debug_short_backtrace):
15338         Cleaned up the code that prints text to stdout so that this can be
15339         changed to output into a console window instead under MS Windows,
15340         as described above.
15341
15342         * eval.c:
15343         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15344         * eval.c (internal_catch):
15345         * eval.c (unwind_to_catch):
15346         * eval.c (throw_or_bomb_out):
15347         * eval.c (condition_case_1):
15348         * eval.c (signal_1):
15349         * eval.c (check_error_state_sanity):
15350         * eval.c (call_with_suspended_errors_1):
15351         * eval.c (call_with_suspended_errors):
15352         * eval.c (reinit_vars_of_eval):
15353         Added code to catch throw loops and check for a pesky bug that may
15354         be gone now.
15355
15356         * event-msw.c:
15357         * event-msw.c (key_needs_default_processing_p):
15358         * event-msw.c (mswindows_wnd_proc):
15359         * event-msw.c (mswindows_modifier_state):
15360         * event-msw.c (emacs_mswindows_quit_p):
15361         * event-msw.c (vars_of_event_mswindows):
15362         a) Added support for using the alt key to select menu items as is
15363         standard under MS Windows.  This is controlled using the variable
15364         menu-accelerator-enabled, just like under X Windows.  There is an
15365         option on the options menu to turn this support on.  I really
15366         think that it should be on by default under Windows, but I'm not
15367         going to make this change yet.
15368
15369         b)  Added support for dynamic display size changes under Windows.
15370
15371         * event-stream.c:
15372         * event-stream.c (maybe_echo_keys):
15373         * event-stream.c (Fnext_event):
15374         * event-stream.c (command_builder_find_leaf):
15375         * event-stream.c (lookup_command_event):
15376         * event-stream.c (execute_command_event):
15377         * event-stream.c (pre_command_hook):
15378         * event-stream.c (post_command_hook):
15379         * event-stream.c (syms_of_event_stream):
15380         * event-stream.c (vars_of_event_stream):
15381         * event-stream.c (complex_vars_of_event_stream):
15382         * events.h (struct command_builder):
15383
15384         a) Tried to clean up a little bit the horribly written x-specific
15385         accelerator code that crept into this file.  I moved this code
15386         into menubar-x.c where it belongs. I also needed to move the
15387         command builder structure into the file events.h because it is
15388         accessed directly by this accelerator code.  What I didn't do, but
15389         which should be done at some point, is to properly abstract this
15390         code using device methods instead of the kludgy way that it
15391         currently hooks into the event code.
15392
15393         b) Added the lisp variables this-command-properties and
15394         last-command- properties, which should be used to synchronize two
15395         adjacent commands in preference to playing games with the variable
15396         this-command, which is typically what happens.
15397
15398         c) Added some slightly nasty code to hook into the lisp support
15399         for shifted- motion-key selection.  This is actually necessary for
15400         somewhat complicated reasons, which are described in
15401         simple.el. (NB: I think the proper thing would be to have the code
15402         that calls the pre and post command hooks also call out to generic
15403         lisp functions in simple.el, where all built-in stuff could be
15404         added.  I will think about this more.)
15405
15406         * event-unixoid.c (poll_fds_for_input):
15407         * lread.c (readchar):
15408         * redisplay-tty.c (tty_clear_frame):
15409         * redisplay-x.c (x_get_gc):
15410         * signal.c (interrupt_signal):
15411         And a whole bunch of other files: fixed up places that printed
15412         directly to stderr to instead call the function stderr_out so that
15413         the changes I made under Windows work correctly.
15414
15415         * filemode.c (mode_string):
15416         Warning fixes.
15417
15418         * frame-msw.c:
15419         * frame-msw.c (mswindows_size_frame_internal):
15420         Fixed the computation of frame size and position to keep the frame
15421         within the workspace area, rather than within the physical
15422         dimensions of the screen, so that the frame doesn't overlap window
15423         manager decorations, such as the start menu and toolbar, typically
15424         at the bottom of the screen.
15425
15426         * frame.c (vars_of_frame):
15427         Changed the default frame title format under MS Windows to consist
15428         of buffername-XEmacs, which is standard under MS Windows.  I think
15429         it might be a good idea to change this everywhere because I think
15430         it is superior to the current frame title format, but this is the
15431         kind of change that is likely to cause some people to get annoyed,
15432         so I'm not making it.
15433
15434         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15435
15436         * gui-msw.c (mswindows_handle_gui_wm_command):
15437         Fixed compile warnings.
15438
15439         * gui-x.c:
15440         * gui-x.c (strdup_and_add_accel):
15441         * gui-x.c (button_item_to_widget_value):
15442         * gui-x.h:
15443         Added code to automatically put an accelerator onto the beginning
15444         of menu items that don't have one as is now the standard, and is
15445         described more later.  Also fixed things so that the menu item
15446         name can be an evaluated expression, again a new standard.
15447
15448         * gui.c:
15449         * gui.c (gui_item_add_keyval_pair):
15450         * gui.c (make_gui_item_from_keywords_internal):
15451         * gui.c (gui_add_item_keywords_to_plist):
15452         * gui.c (gui_item_accelerator):
15453         * gui.c (gui_name_accelerator):
15454         * gui.c (gui_item_included_p):
15455         * gui.c (gui_item_display_flush_left):
15456         * gui.c (gui_item_display_flush_right):
15457         * gui.c (parse_gui_item_tree_item):
15458         * gui.c (parse_gui_item_tree_children):
15459         * gui.c (parse_gui_item_tree_list):
15460         Mule-ized.  Cleanup.  GCPRO addition.
15461
15462         * line-number.c (buffer_line_number):
15463         * lisp.h:
15464         * lisp.h (EMACS_INT_MAX):
15465         Added the manifest constant EMACS_INT_MIN corresponding to the
15466         existing constant EMACS_INT_MAX.  This is partially to fix compile
15467         warnings under Windows, and partly for cleanliness.
15468
15469         * menubar-msw.c:
15470         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15471         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15472         * menubar-msw.c (displayable_menu_item):
15473         * menubar-msw.c (populate_menu_add_item):
15474         * menubar-msw.c (populate_or_checksum_helper):
15475         * menubar-msw.c (populate_menu):
15476         * menubar-msw.c (update_frame_menubar_maybe):
15477         * menubar-msw.c (prune_menubar):
15478         * menubar-msw.c (msw_char_is_accelerator):
15479         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15480         * menubar-msw.c (mswindows_handle_wm_command):
15481         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15482         * menubar-msw.c (mswindows_handle_wm_initmenu):
15483         * menubar-msw.c (mswindows_update_frame_menubars):
15484         * menubar-msw.c (mswindows_free_frame_menubars):
15485         * menubar-msw.c (mswindows_popup_menu):
15486         Fixed a bug in handling accelerators where an extra character
15487         would be displayed in the menu item.  Also generalized the
15488         function displayable_menu_item because it is now used by the
15489         dialog box code as well.  And finally, added code in the functions
15490         that create the menubar to extract a list of accelerators for the
15491         top level menubar, which is used in the event code to determine
15492         whether a particular alt-key combination should be used to invoke
15493         a menu item, or should be passed through to access the standard
15494         XEmacs keymap binding for this key combination.
15495
15496         Much needed GCPROing.
15497
15498         * menubar-x.c:
15499         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15500         * menubar-x.c (menu_item_descriptor_to_widget_value):
15501         * menubar-x.c (restore_in_menu_callback):
15502         * menubar-x.c (x_popup_menu):
15503         * menubar-x.c (menu_move_up):
15504         * menubar-x.c (menu_move_down):
15505         * menubar-x.c (menu_move_left):
15506         * menubar-x.c (menu_move_right):
15507         * menubar-x.c (menu_select_item):
15508         * menubar-x.c (command_builder_operate_menu_accelerator):
15509         * menubar-x.c (menu_accelerator_junk_on_error):
15510         * menubar-x.c (command_builder_find_menu_accelerator):
15511         * menubar-x.c (Faccelerate_menu):
15512         * menubar.h:
15513         Moved a whole bunch of code here that was previously in
15514         event-stream.c as described above.  There is also code connected
15515         to the new standard of adding an accelerator to the beginning of
15516         menu items that don't have one as described above and below.
15517
15518         * menubar.c:
15519         * menubar.c (menu_parse_submenu_keywords):
15520         * menubar.c (Fmenu_find_real_submenu):
15521         * menubar.c (Fnormalize_menu_item_name):
15522         * menubar.c (syms_of_menubar):
15523         * menubar.c (vars_of_menubar):
15524         * menubar.c (complex_vars_of_menubar):
15525
15526         a) Cleaned up a bunch of documentation and improved it.
15527
15528         b) XEmacs now automatically adds an accelerator onto the beginning
15529         of any menu items that don't have one.  I did this because there
15530         will inevitably be some menu items on the main menubar that don't
15531         have accelerators on them because the package that adds that
15532         particular menu item hasn't yet been fixed up to have accelerators
15533         in them and it looked rather strange to have some items with and
15534         some items without accelerators, especially since even in items
15535         without accelerators, you can, at least under windows, still
15536         access the item through an accelerator corresponding to the first
15537         character in the item's name.  If people don't like this behavior,
15538         I can add a variable to turn it off optionally, but I'm not sure
15539         this is a good idea because we really do need to have accelerators
15540         on all of the menu items, and if a package doesn't like the
15541         accelerators being put on the first character, then it should put
15542         the accelerators where they belong.
15543
15544         c) I made a behavior change, which is that the descriptor that
15545         specifies the text of the menu item, which formerly was just a
15546         string, can now also be an evaluated expression.  This makes this
15547         descriptor parallel with all of the others, which could also be
15548         evaluated expressions.  This also obviates the need for the
15549         keyword :label, which was previously listed in the documentation
15550         as unimplemented, and which was for the same purpose.
15551
15552         d) GCPROing.
15553
15554         * ntproc.c:
15555         * ntproc.c (new_child):
15556         * ntproc.c (sys_spawnve):
15557         * ntproc.c (find_child_console):
15558         * ntproc.c (sys_kill):
15559         Fixed compile warnings.  By the way, this file should really go
15560         away entirely, and this will happen as soon as Kirill makes his
15561         final round of process cleanups, which affect the function
15562         call-process.
15563
15564         * process-nt.c:
15565         * process-nt.c (struct nt_process_data):
15566         * process-nt.c (find_process_from_pid):
15567         * process-nt.c (send_signal_the_nt_way):
15568         * process-nt.c (enable_child_signals):
15569         * process-nt.c (find_child_console):
15570         * process-nt.c (send_signal_the_95_way):
15571         * process-nt.c (nt_finalize_process_data):
15572         * process-nt.c (ensure_console_window_exists):
15573         * process-nt.c (nt_create_process):
15574         * process-nt.c (nt_kill_child_process):
15575         * process-nt.c (nt_kill_process_by_pid):
15576         * process-nt.c (nt_open_network_stream):
15577         * process-nt.c (vars_of_process_nt):
15578         Copied over code from Emacs 20.5 to correctly send signals to sub-
15579         processes under Windows 95.  Also added code to automatically
15580         create and hide console window when a sub-process is created under
15581         Windows 95, which obviates the need for the separate runemacs.exe
15582         executable, and finally implemented some variables that were
15583         implemented in Emacs 20.5, but previously not in XEmacs.  These
15584         include mswindows- start-process-share-console and
15585         mswindows-start-process-inherit-error-mode. (Both of these only
15586         apply to Windows 95.)
15587
15588         * regex.c (regex_compile): Fixed a compile warning.
15589
15590         * select-msw.c:
15591         * select-msw.c (mswindows_own_selection):
15592         * select-msw.c (mswindows_get_foreign_selection):
15593         * select-msw.c (mswindows_disown_selection):
15594         * select-msw.c (console_type_create_select_mswindows):
15595         * select-msw.c (syms_of_select_mswindows):
15596         Cleaned up the file and implemented the device method
15597         selection_exists_p, which had accidentally been left out.  Also
15598         removed four lisp functions that were remnants from before the
15599         time when the selection code was properly device abstracted.
15600         These functions are no longer needed because there are generic
15601         equivalents, and because they were added recently and don't exist
15602         in FSF Emacs, I don't think there's any problem with just deleting
15603         them.
15604
15605         * sysdep.c:
15606         * sysdep.c (sys_subshell):
15607         Fixed a compile warning, although in this case there's probably
15608         something wrong with this code, and it ought to be looked into
15609         more thoroughly by somebody who understands it.
15610
15611         * window.c:
15612         * window.c (Fwindow_text_area_height):
15613         * window.c (Fwindow_width):
15614         * window.c (Fwindow_full_width):
15615         * window.c (Fwindow_pixel_width):
15616         * window.c (debug_print_window):
15617         * window.c (syms_of_window):
15618         Added functions window-text-area-height and window-full-width,
15619         which are functions for returning various width and height
15620         characteristics of a window. (One of these functions is necessary
15621         for making the file dialog box work correctly, and the other one
15622         was added for completeness.)  Also added a table to the
15623         documentation for window-height which describes the entire scheme
15624         for accessing width and height characteristics of a window.
15625
15626 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15627
15628         * nt.c (fstat): Added a comment for another problem with
15629         non-encapsulated [f]stat(), reported by Adrian Aichner
15630         <aichner@ecf.teradyne.com>.
15631
15632 2000-03-11  Andy Piper  <andy@xemacs.org>
15633
15634         * window.c (make_dummy_parent): initialize subwindow instance
15635         cache.
15636         (Fset_window_configuration): zero extent_modiff.
15637
15638 2000-03-10  Andy Piper  <andy@xemacs.org>
15639
15640         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15641         more changes can be triggered.
15642         (Fredisplay_frame): ditto.
15643         (Fredraw_device): ditto.
15644         (Fredisplay_device): ditto.
15645         (redisplay_frame): make non-static.
15646         (redisplay_frame): call update_frame_gutter_geometry outside of
15647         display proper.
15648
15649         * gutter.h: declare update_frame_gutter_geometry.
15650
15651         * redisplay.h: declare redisplay_frame.
15652
15653         * gutter.c (update_frame_gutter_geometry): move geometry changes
15654         in update_frame_gutters here. Geometry changes can only occur
15655         outside of redisplay.
15656         (update_frame_gutters): remove geometry change code.
15657         (Fredisplay_gutter_area): make sure that we are in display when we
15658         update and that we have flushed any size changes.
15659
15660 2000-03-11  Andy Piper  <andy@xemacs.org>
15661
15662         * alloc.c (pdump_dump_data): remove i & count shadows.
15663
15664 2000-02-27  Mike Alexander  <mta@arbortext.com>
15665
15666         * sysdep.h: Declare pdump_read_file
15667
15668         * sysdep.c (pdump_read_file): New function
15669
15670         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15671         dump data
15672
15673 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15674
15675         * lrecord.h: add `lrecord_type_pgsetenv'.
15676
15677 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15678
15679         * symsinit.h: declare (vars|syms)_of* functions.
15680         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15681
15682 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15683
15684         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15685
15686         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15687         GCCs.
15688
15689         * emacs.c (main_1): Call postgres initialization code.
15690
15691         * postgresql.h: New file.  PostgreSQL RDBMS support.
15692         * postgresql.c: New file.
15693
15694 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15695
15696         * redisplay-output.c (redisplay_output_display_block): Disable
15697         redundant code.
15698
15699 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15700
15701         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15702         (Fcanna_henkan_next): Ditto.
15703         (Fcanna_bunsetu_henkou): Ditto.
15704         (Fcanna_henkan_kakutei): Ditto.
15705         (Fcanna_henkan_end): Ditto.
15706         (Fcanna_henkan_quit): Ditto.
15707         (Fcanna_henkan_next): Set retun value correctly.
15708         (c2mu): Use unsigned char instead of signed char.
15709
15710 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15711
15712         * emacs.c (main_1): Always call syms_of_gui.
15713         * inline.c: include gui.h
15714
15715 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15716
15717         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15718         converted to Lisp_Object.
15719         (Qtop_bottom): New variable.
15720         (syms_of_redisplay): Initialize it.
15721         * redisplay.h (Vvisible_bell): Ditto.
15722         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15723         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15724         only flash top and bottom.
15725
15726 2000-03-08  Andy Piper  <andy@xemacs.org>
15727
15728         * buffer.c (Frename_buffer): record new buffer name the right way.
15729
15730 2000-03-08  Andy Piper  <andy@xemacs.org>
15731
15732         * glyphs.c (update_subwindow): increase hash depth so that widget
15733         items get picked up properly.
15734
15735         * redisplay-output.c (compare_runes): increase hash depth so that
15736         widget items get picked up properly.
15737
15738 2000-03-08  Andy Piper  <andy@xemacs.org>
15739
15740         * gutter.c (output_gutter): add some debug.
15741
15742         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15743         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15744         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15745
15746         * redisplay-output.c (compare_runes): use display_hash to
15747         determine if glyphs really are not the same.
15748
15749         * glyphs.c (update_subwindow): check display_hash to see if
15750         anything really needs to be updated. If not then do
15751         nothing. Record the display_hash after updating.
15752         (image_instance_equal): compare the image_instance face also.
15753
15754 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15755
15756         * redisplay.h: Fix comment style.
15757
15758 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15759
15760         * consle-msw.h (struct mswindows_frame):
15761         Added new member paint_pending to indicate whether a WM_PAINT
15762         magic event has been queued for this frame.
15763
15764         * event-msw.c (mswindows_drain_windows_queue):
15765         Don't queue a WM_PAINT magic event if one is already queued.
15766         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15767
15768         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15769
15770 2000-03-07  Didier Verna  <didier@xemacs.org>
15771
15772         * dired.c: #include `regex.h' after `sysfile.h'.
15773
15774 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15775
15776         * sound.c (init_nas_sound): Fix compiler warning.
15777
15778         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15779         (FREE_STRUCT_P):
15780         (MARK_STRUCT_AS_FREE):
15781         (MARK_STRUCT_AS_NOT_FREE):
15782         Make `gcc -fstrict-aliasing' work properly.
15783
15784 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15785
15786         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15787         (mswindows_delete_device): Call CoUnnitialize().
15788
15789         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15790
15791 2000-02-25    <CraigL@DyCon.com>
15792
15793         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15794         <errno.h>.
15795
15796         * sysdep.c: This extern declaration for environ prevents MinGW
15797         from finding the variable in CRTDLL.DLL.
15798
15799         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15800         windows headers.
15801         (SHGFI_EXETYPE): ..
15802         (WM_MOUSEWHEEL): ..
15803         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15804         definitions.
15805         (MMRESULT): Removed, now defined in cygwin's windows headers.
15806         (TIMECAPS): ..
15807         (uid_t,gid_t,pid_t,ssize_t): ..
15808         (_timeb): Removed, MinGW defines both _timeb and timeb.
15809         (HAVE_H_ERRNO): Added.
15810         (HAVE_TZNAME): Added, configure is not detecting this.
15811
15812 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15813
15814         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15815         * syntax.c (syntax_match): Use it.
15816
15817         * cmds.c: Import auto-fill-chars from FSF Emacs.
15818         (Vauto_fill_chars): New variables.
15819         (internal_self_insert): Check Vauto_fill_chars.
15820         (vars_of_cmds):
15821         Declare auto-fill-chars as a Lisp variable and initialize it.
15822
15823 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15824
15825         * fileio.c (Fmake_symbolic_link):
15826         (Ffile_symlink_p):
15827         Run handlers even if local machine doesn't have symlinks.
15828
15829 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15830
15831         * event-msw.c (mswindows_drain_windows_queue):
15832         Don't generate paint magic events for non-XEmacs frames.
15833
15834 2000-03-05  Andy Piper  <andy@xemacs.org>
15835
15836         * redisplay.c (redisplay_frame): generate_displayable_area and
15837         friends assumes that we are not in GC, we therefore have to make
15838         sure that this doesn't happen.
15839
15840         * gutter.c (calculate_gutter_size): generate_displayable_area
15841         assumes that we are not in GC, we therefore have to make sure that
15842         this doesn't happen.
15843
15844 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15845
15846         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15847
15848 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15849
15850         * redisplay.c (regenerate_window): Make sure we set a sane value
15851         for end_pos even if we jump out of the loop.
15852         (regenerate_window): Answer Ben's question :-).
15853         (start_end_of_last_line): Add may_error argument.
15854         (start_of_last_line):
15855         (end_of_last_line): Pass may_error = 0.
15856         (end_of_last_line_may_error): New function.
15857         (pixel_to_glyph_translation): Use it, so we don't crash in
15858         event_to_glyph.
15859
15860 2000-03-04  Andy Piper  <andy@xemacs.org>
15861
15862         * window.h (struct window): add gutter_extent_modiff.
15863
15864         * window.c (allocate_window): zero out gutter_extent_modiff.
15865
15866         * redisplay.h: declare sync_display_line_structs.
15867
15868         * redisplay.c (add_glyph_rune): add a better comment.
15869
15870         * redisplay-output.c (sync_display_line_structs): made non-static.
15871         (compare_runes): remove unneccesary glyph cachel access.
15872
15873         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15874
15875         * gutter.c (output_gutter): don't output the gutter if extent
15876         changes only involve extents in buffers. use 4 sets of display
15877         lines.
15878         (gutter_extent_signal_changed_region_maybe): new function. Mark
15879         extents in gutters as changed.
15880         (update_frame_gutters): use 4 sets of display lines.
15881         (reset_gutter_display_lines): ditto.
15882         (free_frame_gutters): ditto.
15883         (redraw_exposed_gutter): force output of gutters.
15884
15885         * frame.h (struct frame): add 4 sets of gutter display lines.
15886
15887         * extents.c: (extent_changed_for_redisplay): signal changes to
15888         extents in strings in the gutter as well as extents in buffers.
15889
15890 2000-03-02  Andy Piper  <andy@xemacs.org>
15891
15892         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15893
15894         * frame.c (Fmake_frame): make sure the gutters get initialized
15895         after the frame is visible.
15896         (set_frame_selected_window): re-arrange compilation macros a
15897         little.
15898         (change_frame_size_1): mark gutters changed.
15899
15900         * device.c (Fset_device_class): mark gutters changed.
15901
15902 2000-03-01  Andy Piper  <andy@xemacs.org>
15903
15904         * window.c (window_top_frame_gutter_height): deleted.
15905         (window_bottom_frame_gutter_height): ditto.
15906         (window_left_frame_gutter_height): ditto.
15907         (window_right_frame_gutter_height): ditto.
15908         (window_top_gutter_height): don't use them.
15909         (window_bottom_gutter_height): ditto.
15910         (window_left_gutter_width): ditto.
15911         (window_right_gutter_width): ditto.
15912         (Fsplit_window): ditto.
15913         (Fwindow_pixel_edges): don't use border dimensions here.
15914
15915         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15916         (update_scrollbar_instance): ditto.
15917
15918         * redisplay.c (generate_modeline): don't take gutters into account.
15919         (generate_modeline): ditto.
15920         (redisplay_frame): small gutter display optimization.
15921
15922         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15923
15924         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15925         gutters into account.
15926
15927         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15928         for window position and type.
15929
15930         * gutter.c (get_gutter_coords): fix for frame gutters.
15931         (update_frame_gutters): update frame geometry if the gutters have
15932         changed.
15933         (init_frame_gutters): record current gutter geometries.
15934
15935         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15936         var.
15937         (mswindows_widget_instantiate): ditto.
15938
15939         * frame.h (struct frame): add current_gutter_bounds.
15940
15941         * frame.c (change_frame_size_1): position window and minibuffer
15942         appropriately taking into account the frame gutters.
15943
15944         * frame-x.c: (x_initialize_frame_size): take into account the
15945         frame gutters.
15946
15947 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15948
15949         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
15950
15951 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15952
15953         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15954
15955 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15956
15957         * file-coding.c (reset_decoding_stream): Clear previous
15958         detection state when autodetect.
15959
15960 2000-02-29  Didier Verna  <didier@xemacs.org>
15961
15962         * extents.c (set_extent_glyph_1): don't require extents to be
15963         attached.
15964
15965 2000-02-27  Andy Piper  <andy@xemacs.org>
15966
15967         * gutter.c (Fset_default_gutter_position): don't default left and
15968         right gutter visibility to t.
15969         (Fset_default_gutter_position): run
15970         default-gutter-position-changed-hook.
15971         (syms_of_gutter): add default-gutter-position-changed-hook.
15972
15973 2000-02-26  Andy Piper  <andy@xemacs.org>
15974
15975         * specifier.c (Fmake_specifier): add gutter references.
15976
15977         * gutter.h (RAW_WINDOW_GUTTER): new macro.
15978
15979         * lisp.h: declare Fvalid_plist_p.
15980
15981         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15982         as changed.
15983         (default_gutter_visible_p_changed_in_window): invalidate gutter as
15984         well as its visibility so that it gets reconstructed.
15985         (construct_window_gutter_spec): new function. Construct a string
15986         to be displayed in the gutter from a plist of strings. Take care
15987         to only use elements that are declared as visible.
15988         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15989         WINDOW_GUTTER.
15990         (gutter_validate): allow plists of strings in the specifier.
15991         (gutter_specs_changed): construct the real_gutter from the gutter
15992         specs using construct_window_gutter_spec.
15993         (gutter_visible_validate): gutter-visible is a new specifier type.
15994         (Fgutter_visible_specifier_p): new function for the new specifier.
15995         (syms_of_gutter): declare gutter-visible and
15996         Fgutter_visible_specifier_p.
15997         (specifier_type_create_gutter): intitalize new gutter-visible
15998         specifier.
15999         (reinit_specifier_type_create_gutter): ditto.
16000         (specifier_vars_of_gutter): use new specifier type for gutter
16001         visibility.
16002         (init_frame_gutters): construct real_gutter correctly.
16003         (Fgutter_specifier_p): beef up documentation.
16004         (Fgutter_size_specifier_p): ditto.
16005
16006         * winslots.h: add real_gutter slots.
16007
16008 2000-02-25  Andy Piper  <andy@xemacs.org>
16009
16010         * device-msw.c: Be kind to older cygwin versions. From Raymond
16011         Toy <toy@rtp.ericsson.se>.
16012
16013         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16014         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16015
16016 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16017
16018         * elhash.c (MARK_OBJ): Practice macro hygiene.
16019
16020 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16021
16022         * miscplay.c: s/__inline__/inline/g;
16023         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16024         (get_device_compdc): INLINE ==> static inline
16025         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16026         find -name '*.h' | \
16027         xargs global-replace \
16028         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16029
16030 2000-02-25  Andy Piper  <andy@xemacs.org>
16031
16032         * window.c (window_top_frame_gutter_height): new function.
16033         (window_top_window_gutter_height): ditto.
16034         (window_top_gutter_height): use them.
16035         (window_bottom_frame_gutter_height): new function.
16036         (window_bottom_window_gutter_height): ditto.
16037         (window_bottom_gutter_height): use them.
16038         (window_left_window_gutter_width): new function.
16039         (window_left_frame_gutter_width): ditto.
16040         (window_left_gutter_width): use them.
16041         (window_right_window_gutter_width): new function.
16042         (window_right_frame_gutter_width): ditto.
16043         (window_right_gutter_width): use them.
16044         (window_pixel_height): new function. calulate window pixel height
16045         with frame gutter involvement.
16046         (Fsplit_window): calculate new sizes taking frame gutters into
16047         account.
16048         (window_char_height_to_pixel_height): don't include frame gutters.
16049         (window_char_height): use window_pixel_height.
16050         (window_pixheight): rename from window_pixel_height.
16051         (change_window_height): use it.
16052         (window_pixel_height_to_char_height): don't include frame gutters.
16053         (window_char_width_to_pixel_width): ditto.
16054
16055 2000-02-25  Andy Piper  <andy@xemacs.org>
16056
16057         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16058         if it is.
16059
16060 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16061
16062         * alloc.c (staticpro):
16063         (staticpro_nodump):
16064         (dumpstruct):
16065         (dumpopaque):
16066         (pdump_wire):
16067         (pdump_wire_list):
16068         (compact_string_chars):
16069         (pdump_dump_wired):
16070         Convert:  if (foo) abort();  ==>  assert (! foo);
16071
16072         * eldap.c (Fldap_search_basic):
16073         (Fldap_add):
16074         (Fldap_modify):
16075         (Fldap_delete):
16076         Fix compiler warnings, and possible crashes if (random) return
16077         value were to be used.
16078
16079 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16080
16081         * device-msw.c: Workaround ResetDC failure.
16082
16083         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16084         applying a devmode.
16085
16086         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16087         (mswindows_text_width): Do not start printer page.
16088
16089         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16090
16091         * glyphs-msw.c: Added image methods to msprinter console and
16092         msprinter-specific image instantiation.
16093
16094 2000-02-20  Mike Alexander  <mta@arbortext.com>
16095
16096         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16097         to avoid crashes when selection-sets-clipboard is on
16098         (mswindows_own_selection): ditto
16099
16100 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16101
16102         * glyphs-msw.c:
16103         * redisplay-msw.c (get_frame_dc):
16104         (get_frame_compdc):
16105         * console-msw.h:
16106         * device-msw.c (mswindows_init_device):
16107         (mswindows_delete_device):
16108         (msprinter_init_device):
16109         (msprinter_delete_device):
16110         * frame-msw.c (mswindows_init_frame_1):
16111         (mswindows_delete_frame):
16112         (msprinter_init_frame_3):
16113         (msprinter_delete_frame): Move compatible DC to device object from
16114         frame object, for both mswindows and msprinter. Only one at a time
16115         is needed, it is a real waste to have one per frame!
16116
16117 2000-02-23  Andy Piper  <andy@xemacs.org>
16118
16119         * glyphs.c: add dynamic width and height elements.
16120         (image_instance_equal): ditto.
16121
16122         * glyphs-widget.c (widget_query_geometry): calculate width and
16123         height dynamically if required.
16124         (initialize_widget_image_instance): initialize dynamic dimensions.
16125         (widget_instantiate): pick-up dynamic dimensions.
16126
16127         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16128         dynamic determination. Add appropriate macros.
16129
16130         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16131         dimensions safe.
16132         (WINDOW_GUTTER_SIZE): ditto.
16133         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16134
16135         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16136         inline.
16137         (get_frame_dc): ditto.
16138
16139         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16140         here.
16141
16142 2000-02-23  Martin Buchholz <martin@xemacs.org>
16143
16144         * XEmacs 21.2.31 is released.
16145
16146 2000-02-22  Ben Wing <ben@xemacs.org>
16147
16148         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16149
16150 2000-02-22  Andy Piper  <andy@xemacs.org>
16151
16152         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16153
16154 2000-02-21  Mike Sperber <mike@xemacs.org>
16155
16156         * .dbxrc:
16157         * .gdbinit:
16158         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16159         variables.
16160
16161 2000-02-21  Mike Sperber <mike@xemacs.org>
16162
16163         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16164
16165 2000-02-21  Martin Buchholz <martin@xemacs.org>
16166
16167         * XEmacs 21.2.30 is released.
16168
16169 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16170
16171         Performance hacking.
16172         * *.c (syms_of_*):
16173         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16174         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16175         * emacs.c (main_1):
16176         * lisp.h (DEFUN):
16177         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16178         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16179         * symeval.h (DEFVAR_SYMVAL_FWD):
16180         * symbols.c (guts_of_unbound_marker):
16181         Make all c_readonly objects also lisp_readonly and marked for life.
16182         * lrecord.h (struct lrecord_implementation):
16183         Document flags better.
16184         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16185         * lrecord.h (DECLARE_LRECORD):
16186         * lrecord.h (XSETRECORD):
16187         * lrecord.h (RECORDP):
16188         * lrecord.h (RECORD_TYPEP):
16189         * lrecord.h (RECORD_MARKER): New.
16190         * lrecord.h (error_check_*):
16191         * lrecord.h (CONCHECK_NONRECORD):
16192         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16193         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16194         * lrecord.h (set_lheader_implementation):
16195         * lrecord.h (enum lrecord_type): New.
16196         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16197         * alloc.c (disksave_object_finalization_1):
16198         * alloc.c (mark_object):
16199         * alloc.c (lrecord_type_index):
16200         * alloc.c (tick_lcrecord_stats):
16201         * alloc.c (Fgarbage_collect):
16202         * alloc.c (init_alloc_once_early):
16203         * alloc.c (pdump_load):
16204         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16205         * alloc.c (lrecord_type_index): Delete.
16206         Make lisp object type indexes be constant.
16207           Makes (byte-compile) 5% faster.
16208         Put all marker functions into their own array.
16209           Makes (garbage-collect) 5% faster.
16210         Optimize SYMBOL_VALUE_MAGIC_P.
16211           Makes (byte-compile) 2-3% faster.
16212         * config.h.in (gc_checking_assert): New.
16213         * alloc.c: Use gc_checking_assert().
16214         * .dbxrc: Make compatible with new object type implementation.
16215         * .gdbinit: Make compatible with new object type implementation.
16216         * alloc.c: Delete all symbols defined only for debugging, such as
16217         Lisp_Type_Vector and lrecord_charset.
16218
16219 2000-02-21  Andy Piper  <andy@xemacs.org>
16220
16221         * gui-msw.c (Fmswindows_shell_execute): fix file location
16222         problems.
16223
16224         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16225         unshowing so that set_window_buffer doesn't undo
16226         kill_buffer_hook's hard work.
16227
16228         * glyphs-widget.c (tab_control_query_geometry): don't count the
16229         first item when calculating geometry.
16230
16231         * glyphs.c (map_subwindow): remove redundant code.
16232         (update_frame_subwindows): be more circumspect about when to
16233         update subwindows.
16234
16235         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16236         when items haven't changed. Update faces if faces have changed as
16237         well as just the widget face.
16238         (x_tab_control_update): Update faces if faces have changed as well
16239         as just the widget face.
16240
16241 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16242
16243         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16244         registration.
16245         (build_syscolor_string): Use mswindows_color_to_string to try to
16246         get a named color.
16247         (mswindows_device_system_metrics): Reverse the foreground and
16248         background colors so that they match the documentation.
16249
16250         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16251         they match the default Windows palette.
16252         (mswindows_color_to_string): New function.
16253
16254 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16255
16256         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16257
16258 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16259
16260         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16261         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16262
16263         * symbols.c (init_symbols_once_early): Removed obsolete
16264         DATA_SEG_BITS related kludge.
16265         (defvar_magic): Ditto.
16266
16267         * malloc.c: Removed obsolete DATA_SEG_BITS
16268         * ralloc.c: Ditto.
16269         * mem-limits.h: Ditto.
16270
16271         * Makefile.in.in: Removed obsolete HAVE_SHM
16272         * emacs.c: Ditto.
16273
16274 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16275
16276         *  device-msw.c (mswindows_delete_device): Free DDE string
16277         handles.
16278
16279 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16280
16281         * keymap.c (get_keyelt):
16282         * unexnt.c (unexec):
16283         * vm-limit.c (memory_warnings):
16284         * ntheap.c (recreate_heap):
16285         * ntheap.h (UNINIT_PTR):
16286         * select-msw.c (Fmswindows_get_clipboard):
16287         (Fmswindows_set_clipboard):
16288         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16289         * objects-msw.c:
16290         * menubar-msw.c (displayable_menu_item):
16291         * glyphs-msw.c:
16292         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16293         * sysdep.c (sys_subshell):
16294         * process-nt.c (nt_create_process):
16295         * nt.c (normalize_filename):
16296         (dostounix_filename):
16297         (unixtodos_filename):
16298         * ntproc.c (win32_executable_type):
16299         * ntplay.c (play_sound_data_1):
16300         (play_sound_file):
16301         * editfns.c (get_home_directory):
16302         * event-msw.c (struct winsock_stream):
16303         (mswindows_dde_callback):
16304         * device-msw.c (msprinter_init_device):
16305         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16306
16307         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16308         mswindows_clear_toolbar were swapped!
16309
16310         * objects-msw.c:(colormap_t):
16311         (fontmap_t):
16312         * emacs.c (struct standard_args): Fixed const jumble.
16313
16314         * glyphs-widget.c (update_widget): Fixed comparison notation.
16315
16316         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16317
16318         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16319         __declspec(noreturn) syntax.
16320
16321 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16322
16323         * eldap.c (Fldap_open):
16324         (Fldap_search_basic):
16325         (Fldap_add):
16326         (Fldap_modify):
16327         Use new coding system conversion macros.
16328
16329 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16330
16331         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16332
16333 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16334
16335         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16336         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16337
16338         * eldap.c (Qadd, Qreplace): New constant symbols
16339         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16340         interruptions by XEmacs signals
16341         Remove unnecessary calls to slow_down_interrupts and
16342         speed_up_interrupts
16343         (Fldap_search_basic): Renamed from Fldap_search_internal
16344         Added new optional parameter VERBOSE that triggers the
16345         display of progress messages
16346         Remove unnecessary calls to slow_down_interrupts and
16347         speed_up_interrupts
16348         LDAP result code analysis rewritten
16349         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16350         (syms_of_eldap): Define the new symbols and functions
16351
16352
16353 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16354
16355         * realpath.c: Determine PATH_MAX maximally portably.
16356
16357         * insdel.c (bytecount_to_charcount): Optimize.
16358         The function used to be optimized for entirely ASCII sequences.
16359         Now it is optimized for successive characters from the same
16360         charset.  This also wins big for _mostly_ ASCII sequences.
16361
16362         * fileio.c (Ffile_truename): convert return from realpath() using
16363         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16364         - Rewrite GCPROing slightly.
16365
16366         * sysdep.c (sys_open): Do filename conversion, like all other
16367         sys_* functions.  Fixes bug:
16368         (let ((file-name-coding-system 'iso-8859-2))
16369            (write-region x y latin2-name))
16370         ==> writes filename using internal encoding.
16371
16372 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16373
16374         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16375         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16376         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16377         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16378         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16379         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16380         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16381         (CONST_IF_NOT_DEBUG): Delete.
16382         * alloc.c (this_one_is_unmarkable): Delete.
16383         (mark_object): Don't check for this_one_is_unmarkable. Use the
16384         c_readonly flag instead.
16385         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16386
16387 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16388
16389         * event-msw.c (mswindows_drain_windows_queue):
16390         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16391         away redundant repaint events.
16392
16393 2000-02-17  Andy Piper  <andy@xemacs.org>
16394
16395         * redisplay.h: declare mark_redisplay_structs.
16396
16397         * redisplay.c (redisplay_window):
16398         (redisplay_frame): don't check subwindows_state_changed.
16399         (mark_redisplay): mark gutters here.
16400
16401         * glyphs.c: (instantiate_image_instantiator): always layout if we
16402         haven't done so already.
16403         (allocate_image_instance): don't mark as dirty.
16404         (update_subwindow): bind inhibit_quit.
16405
16406         * gutter.c (mark_gutters): new function.
16407
16408         * glyphs-x.c (x_update_widget): Always resize to get round a
16409         widget bug.
16410
16411         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16412         breaking absolutely everything.
16413
16414         * gutter.h: declare mark_gutters.
16415
16416 2000-02-16  Martin Buchholz <martin@xemacs.org>
16417
16418         * XEmacs 21.2.29 is released.
16419
16420 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16421
16422         * fns.c (size_bit_vector): Fix computation of the size.
16423
16424 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16425
16426         * *.[ch]: Change CONST to const globally.
16427         find -name '*.[ch]' | \
16428         xargs global-replace \
16429         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16430         - Remove vestigial references to CONST_IS_LOSING
16431
16432 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16433
16434         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16435         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16436         events instead of dispatching them directly.
16437         (mswindows_handle_paint): New function to do repainting.
16438         (mswindows_wnd_proc):
16439         (emacs_mswindows_handle_magic_event): Call above function.
16440
16441 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16442
16443         * objects-msw.c (mswindows_create_font_variant): Return the new
16444         font handle.
16445         (initialize_font_instance): Get font metrics from the underlined
16446         variant of the font to cope with the case where the underlined
16447         font has a bigger descent.
16448
16449 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16450
16451         * gui.c (gui_item_accelerator): Return the first underlined
16452         character in item name.
16453
16454 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16455
16456         * lisp.h: Added Qprinter.
16457
16458         * general.c (syms_of_general): Initialized it.
16459
16460         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16461         (get_frame_dc):
16462         (get_frame_compdc): Made inline.
16463
16464         * console.h (struct console_methods): Added eject_page method.
16465
16466         * frame.h: Added FRAME_DISPLAY_P and friends.
16467         Aligned backslahes in many macros in more readable fashion.
16468         Added page_number to struct frame, and an accessor macro
16469         for it.
16470
16471         * defice.h: Added DEVICE_DISPLAY_P and friends.
16472
16473         * device.c (Fdevice_printer_p): Used these.
16474
16475         * frame.c (allocate_frame_core): Initialize page number.
16476         (Fprint_job_page_number):
16477         (Fprint_job_eject_page): Implemented.
16478
16479         * frame-msw.c (msprinter_eject_page): Added method.
16480         (msprinter_start_page): Added.
16481
16482         * window.c (Fwindow_truncated_p): Fixed docstring.
16483         (Fwindow_last_line_visible_height): Implemented.
16484
16485 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16486
16487         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16488
16489 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16490
16491         * syntax.c (scan_words): Always advance at least one character.
16492
16493 2000-02-13  Andy Piper  <andy@xemacs.org>
16494
16495         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16496         to make sure the glyph is in the cachels.
16497
16498         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16499         global image instance flag.
16500         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16501         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16502
16503         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16504         (Fset_image_instance_property): mark layout as changed.
16505         (invalidate_glyph_geometry_maybe): mark layout as changed.
16506         (glyph_width): use new NEEDS_LAYOUT macro.
16507         (glyph_ascent): ditto.
16508         (glyph_descent): ditto.
16509         (glyph_height): ditto.
16510         (image_instance_layout): mark layout as clean after laying out.
16511         (update_subwindow): don't mark layout as clean here.
16512
16513         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16514         should no longer be needed.
16515
16516         * glyphs-x.c (x_update_widget): sanitize asserts.
16517         (x_finalize_image_instance): sanitize assignment to widgets.
16518
16519         * glyphs-widget.c (widget_instantiate): don't need to clear the
16520         layout flag here.
16521
16522 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16523
16524         * sysdep.c (getcwd): Use standard prototype.
16525         * sysdep.h (getcwd): Use standard prototype.
16526
16527         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16528         (sequence, start, end).
16529         Remove redundant type checking.
16530         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16531         view of `caller-protects') to avoid a crash where the real fix was
16532         found elsewhere.
16533
16534 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16535
16536         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16537
16538         * s/sol2.h: Remove feature macro initialization.
16539
16540         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16541         (vector_hash): New.  Code from internal_hash.
16542         * lrecord.h:
16543         Fix up allocation subsystem comments.
16544
16545         * config.h.in: Add __EXTENSIONS__ for Solaris.
16546
16547         * systime.h (EMACS_GETTIMEOFDAY): New.
16548         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16549         Remove Solaris-specific code.
16550         Use void* for the (ignored) second arg for gettimeofday().
16551
16552         * elhash.c (hash_table_hash): Implement it, finally.
16553         * elhash.c:  Use hashcode_t.
16554
16555         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16556         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16557
16558         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16559         * fns.c (size_bit_vector):
16560         * alloc.c (size_vector):
16561         (make_vector_internal):
16562         (make_bit_vector_internal):
16563         (sweep_bit_vectors_1):
16564         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16565
16566 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16567
16568         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16569         Include strings.h to avoid warnings for bzero and strcasecmp.
16570
16571 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16572
16573         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16574         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16575
16576         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16577         sequence.
16578
16579 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16580
16581         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16582         use a value field instead.
16583         (symbol_value_forward_forward): Use value field.
16584         (DEFVAR_SYMVAL_FWD): Use value field.
16585         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16586         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16587         (DEFVAR_CONST_INT): Ditto.
16588         (DEFVAR_BOOL): Ditto.
16589         (DEFVAR_CONST_BOOL): Ditto.
16590         (DEFVAR_INT_MAGIC): Ditto.
16591         (DEFVAR_BOOL_MAGIC): Ditto.
16592
16593         * symbols.c (guts_of_unbound_marker): Use value field.
16594         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16595         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16596
16597         * lisp.h: Declare dumpopaque and noninteractive1.
16598
16599         * alloc.c (dumpopaque): Added.
16600         (pdump_dump_opaquevec): Added.
16601         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16602         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16603         noninteractive.
16604
16605 2000-02-10  Andy Piper  <andy@xemacs.org>
16606
16607         * glyphs.c (image_instance_layout): if the size changes, mark it
16608         as such.
16609
16610         * redisplay-output.c (redisplay_output_layout): Update the
16611         subwindow here.
16612         (redisplay_output_subwindow): ditto.
16613
16614         * glyphs.c (update_subwindow): make sure we reset flags for
16615         layouts as well as everything else.
16616
16617         * glyphs-widget.c (layout_layout): don't need to set the instances
16618         dimensions here.
16619
16620 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16621
16622         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16623         not HAVE_DLOPEN, which is a lower-level thing.
16624
16625         * .cvsignore: Ignore gmon.out
16626
16627 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16628
16629         * .cvsignore: Ignore portable dumper xemacs.dmp file
16630
16631 2000-02-09  Andy Piper  <andy@xemacs.org>
16632
16633         * redisplay-output.c (redisplay_output_layout): be more clever
16634         about when we output based on the changed flags.
16635
16636         * glyphs.h (struct image_instantiator_methods): add update_method.
16637         (struct Lisp_Image_Instance): add changed flags. Declare new
16638         macros for manipulating them.
16639
16640         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16641         (image_instance_parent_glyph): find an image_instance's parent
16642         glyph or image_instance.
16643         (image_instance_layout): mark the size as changed.
16644         (set_image_instance_dirty_p): new function. mark an image
16645         instance, plus all of its parents, as dirty.
16646         (Fset_image_instance_property): use it.
16647         (Fglyph_animated_timeout_handler): use it.
16648         (update_subwindow): call update_widget and device methods for
16649         update_subwindow. Mark all changed flags as clean.
16650         (Fresize_subwindow): mark size as changed.
16651
16652         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16653         failures.
16654         (x_update_subwindow): only resize subwindows here.
16655         (x_update_widget): new function. Update all changed properties of
16656         a widget.
16657         (x_resize_subwindow): deleted.
16658         (x_widget_set_property): deleted.
16659         (x_progress_gauge_set_property): deleted.
16660         (x_progress_gauge_update): new function. Implement recorded
16661         changes.
16662         (x_tab_control_update): ditto.
16663         (x_tab_control_set_property): deleted.
16664         (console_type_create_glyphs_x): declare new functions.
16665         (image_instantiator_format_create_glyphs_x): ditto.
16666
16667         * glyphs-widget.c (widget_set_property): mark text changed.
16668         (update_widget): new function. Update properties of a widget.
16669         (widget_instantiate): for layouts make sure we set their
16670         children's parent correctly.
16671         (tab_control_set_property): new function. Record changes that will
16672         take place under redisplay's control.
16673         (progress_gauge_set_property): ditto.
16674         (image_instantiator_progress_guage): declare new functions.
16675         (image_instantiator_tab_control): ditto.
16676
16677         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16678         now.
16679         (mswindows_update_widget): new function. Update all properties on
16680         a widget that have changed.
16681         (mswindows_button_update): new function. Update a button's set
16682         state.
16683         (mswindows_tab_control_update): new function. Update the items in
16684         a tab.
16685         (mswindows_tab_control_set_property): deleted.
16686         (mswindows_progress_gauge_update): new function. Update the
16687         progress gauge's progress.
16688         (mswindows_widget_set_property): deleted. This is all done
16689         asynchronously now.
16690         (mswindows_progress_gauge_set_property): ditto.
16691         (console_type_create_glyphs_mswindows): declare new methods.
16692         (image_instantiator_format_create_glyphs_mswindows): ditto.
16693
16694         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16695         (msprinter_set_frame_properties): ditto.
16696
16697         * console.h (struct console_methods): Add update_widget_method.
16698
16699 2000-02-09  Andy Piper  <andy@xemacs.org>
16700
16701         * gui-msw.c (Fmswindows_shell_execute): Make
16702         mswindows-shell-execute industrial strength.
16703
16704 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16705
16706         * lrecord.h: Make macro argument `props' match member function `plist'.
16707         * fns.c (Fget):
16708         * fns.c (Fput):
16709         * fns.c (Fremprop):
16710         * fns.c (Fobject_plist):
16711         * alloc.c:
16712         * symbols.c:
16713         Object property list frobbing cleanup.
16714         - Allow any lisp object (compared with `eq'), not just symbols, as
16715           keys in object plists.
16716         - Move symbol plist frobbing into symbols.c, where it belongs.
16717         - Move string plist frobbing into alloc.c, where it belongs.
16718         - Everything's an lrecord now, so no need to test for symbolp, etc.
16719         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16720
16721         * extents.c: Reorder code to remove declarations.
16722
16723         * frame.h (store_in_alist): Remove useless declaration.
16724
16725 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16726
16727         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16728         * config.h.in: Add HAVE_XCONVERTCASE.
16729
16730 2000-02-07  Andy Piper  <andy@xemacs.org>
16731
16732         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16733         it breaks many things.
16734
16735 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16736
16737         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16738         actually can start a common comment type.
16739         * src/syntax.h (SYNTAX_END_P): ditto for end.
16740
16741 2000-02-07  Martin Buchholz <martin@xemacs.org>
16742
16743         * XEmacs 21.2.28 is released.
16744
16745 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16746
16747         * event-Xt.c (x_keysym_to_character): New.
16748         (maybe_define_x_key_as_self_inserting_character): New.
16749         (x_has_keysym): New.
16750         Auto-define all keys on the keyboard as self-insert-key.
16751
16752 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16753
16754         * menubar.c (vars_of_menubar): A small code simplification.
16755
16756         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16757
16758         * ExternalShell.c:
16759         * ExternalClient.c:
16760         * EmacsShell-sub.c:
16761         * EmacsManager.c:
16762         * EmacsFrame.c:
16763         Use consistent style for specifying X resources.
16764
16765         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16766         This makes (dontusethis-set-symbol-value-handler) actually usable.
16767
16768         * lrecord.h (lrecord_decription_type):
16769         * alloc.c (pdump_register_sub):
16770         (pdump_dump_data):
16771         (pdump_reloc_one):
16772         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16773         Comply with XEmacs coding style.
16774         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16775         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16776
16777         * keymap.c (Faccessible_keymaps):
16778         Make (accessible-keymaps map "\C-h") do the Right Thing.
16779         Make (accessible-keymaps map []) do the Right Thing.
16780         Make (accessible-keymaps map "") do the Right Thing.
16781         (check_keymap_definition_loop): New function.
16782         (keymap_store_internal): Keep luser from shooting self in foot,
16783           via (define-key ctl-x-4-map "p" global-map).
16784         Remove fullness slot from struct Lisp_Keymap, since hash tables
16785         are now reliable.
16786         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16787
16788 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16789
16790         * redisplay.c (init_redisplay): Fix small memory leak.
16791         * elhash.h:
16792         * elhash.c (pdump_reorganize_hash_table):
16793         Rename from reorganize_hash_table. Change prototype.
16794         Reuse the original memory for hentries.  Save 100k.
16795         * alloc.c (PDUMP_READ): new macro.
16796         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16797         * alloc.c: No need to #ifndef before #undef.
16798
16799         * print.c: Allow debug_print() to print readably by modifying
16800         debug_print_readably.  Use consistent variable names.
16801
16802         * .dbxrc: Try to get things to work even if stopped in a function
16803         without source available by explicitly specifying source files.
16804 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16805
16806         * unexnt.c (_start): Removed bogus code which caused loading heap
16807         from differrent executable file.
16808         Removed bogus assignment to _fmode, which caused inconsistencies.
16809
16810 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16811
16812         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16813         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16814         Do not preliminary `#define signal sigset'.
16815
16816         * systime.h: Do not prototype environ on windows nt and cygwin,
16817         this conflicts with system header.
16818
16819         * syssignal.h: Use correct define for WINDOWSNT
16820
16821         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16822         with system header.
16823
16824         * sysdep.c (near start of file): Fixed commentary and rearranged
16825         ifdefs in readable order.
16826         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16827         (start_of_text):
16828         (end_of_text):
16829         (end_of_data): Do not compile in if using PDUMP.
16830
16831         * symsinit.h: Prototyped vars_of_nt().
16832
16833         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16834         (find_child_console): Use it.
16835         (sys_kill): Use it.
16836
16837         * ntheap.h: Do not extern os_subtype.
16838
16839         * ntheap.c (cache_system_info): Do not cache unneeded:
16840         nt_major_version, nt_minor_version and os_subtype.
16841         (recreate_heap): Do not compile in when PDUMPing.
16842
16843         * nt.c (geteuid and friends): Use the new varibale
16844         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16845         (init_user_info): Removed the above mentioned hackery.
16846         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16847         stat has been fixed in the C runtime.
16848         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16849
16850         * file-coding.c (struct file_coding_dump): Do not define
16851         ucs_to_mule_table in the struct if not MULE.
16852         (struct struct lrecord_description fcd_description_1): Do not dump
16853         the above.
16854
16855         * emacs.c (main_1): Call vars_of_nt().
16856         (right before Fdump_emacs_data): Don't need lastfile if using both
16857         portabe dumper and system malloc.
16858
16859         * alloc.c (Fmemory_limit): Conditionalized out.
16860         (pdump): Use OPEN_BINARY for the portable dump file.
16861         (pdump_load): Ditto.
16862
16863 2000-02-02  Mike Alexander  <mta@arbortext.com>
16864
16865         * nt.c (convert_time): Set tm_isdst before calling mktime and
16866         avoid calling it at all if the compiler supports 64 bit integers.
16867         Also initialize utc_base_ft before using it.
16868
16869 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16870
16871         * frame.c (change_frame_size_1): Take f->internal_border_width
16872         into consideration when calculating the width of the frame.
16873
16874 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16875
16876         * window.c (frame_min_height):
16877         (frame_size_valid_p):
16878         (frame_pixsize_valid_p): Added.
16879         (check_frame_size): Generalized.
16880
16881         * window.h: Prototyped the above.
16882
16883         * lisp.h:
16884         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16885         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16886         Deleted Vwin32_* and Vbinary_process_* unused variables.
16887
16888         * device-msw.c (msprinter_init_device): Do not get printer font
16889         list; Added DEVMODE functions.
16890
16891         * frame-msw.c: Added lots of printer code.
16892
16893         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16894         general.c.
16895
16896         * console-msw.h: Added more msprinter device private slots.
16897
16898 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16899
16900         * event-msw.c (key_needs_default_processing_p): Added.
16901         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16902
16903 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16904
16905         * glyphs.c (image_instance_layout): Mark image instance as clean
16906         after layout.
16907         (glyph_dirty_p): Removed redundant function.
16908         (invalidate_glyph_geometry_maybe): Added.
16909         (update_glyph_cachel_data): Call it.
16910
16911         * glyphs.h: Prototyped it.
16912
16913         * redisplay.c (add_glyph_rune): Call it.
16914         (redisplay_window): Reset glyphs cachels when frame faces have
16915         changed, thus forcing recomputation of built-in border glyphs.
16916
16917 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16918
16919         * Makefile.in.in: Make portable dumper and purify play well together.
16920         Add imperfect, but better than nothing, support for pdump.
16921         Remove xemacs.dmp when temacs is re-generated.
16922         Don't ignore errors when dumping xemacs.
16923
16924         * symbols.c (maybe_call_magic_handler): Remove one magic number.
16925
16926 2000-01-28  Andy Piper  <andy@xemacs.org>
16927
16928         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16929         (setup_normal_frame): ditto.
16930         (setup_frame_without_minibuffer): ditto.
16931         (setup_minibuffer_frame): ditto.
16932         (delete_frame_internal): ditto.
16933         (Fmake_frame_invisible): ditto.
16934         (Ficonify_frame): ditto.
16935
16936         * window.h: change Fset_window_buffer signature.
16937
16938         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16939         (Fset_window_buffer): allow recording of buffer if the window is
16940         the selected window.
16941         (window_loop): Use new Fset_window signature.
16942
16943 2000-01-23  Daniel Pittman  <daniel@danann.net>
16944
16945         * config.h.in: Added template for `HAVE_ATHENA_3D'
16946
16947 2000-01-29  Andy Piper  <andy@xemacs.org>
16948
16949         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16950
16951         * gutter.c (output_gutter): Don't output if the window isn't live.
16952
16953 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16954
16955         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16956         of 01/12/00: Moved SetFocus back here where it belongs.
16957
16958 2000-01-23  Andy Piper  <andy@xemacs.org>
16959
16960         * s/cygwin32.h: declare printer things.
16961
16962 2000-01-26  Andy Piper  <andy@xemacs.org>
16963
16964         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16965         Alexander.
16966
16967 2000-01-24  Andy Piper  <andy@xemacs.org>
16968
16969         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16970         (mswindows_button_instantiate): Make sure glyph is a pixmap.
16971
16972         * glyphs-widget.c (widget_instantiate): Avoid shadows.
16973
16974         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16975
16976         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16977
16978         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16979         (mswindows_output_display_block): Avoid local shadows.
16980
16981         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16982         (mswindows_enqueue_mouse_button_event): ditto.
16983         (mswindows_handle_gui_wm_command): remove declaration.
16984
16985         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16986         warnings.
16987
16988         * console-msw.h: Avoid shadows.
16989         (mswindows_get_toolbar_button_text):
16990         (emacs_mswindows_create_stream_pair):
16991         (emacs_mswindows_delete_stream_pair):
16992         (mswindows_handle_toolbar_wm_command): declare.
16993
16994         * device-msw.c (build_syscolor_string): Avoid shadows.
16995
16996 2000-01-23  Andy Piper  <andy@xemacs.org>
16997
16998         * glyphs-widget.c (widget_instantiate): reverse the items for
16999         layouts so that children are in the expected order.
17000
17001 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17002
17003         * ralloc.c: safe_bcopy ==> memmove
17004         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17005         * s/msdos.h: Remove BCOPY macros.
17006         * insdel.c (gap_right): Remove BCOPY conditional code.
17007         * insdel.c (gap_left): Remove BCOPY conditional code.
17008         XEmacs demands a working ANSI C compiler - hence memmove.
17009
17010         * regex.c (regex_compile): Remove accidental use of trigraphs.
17011
17012 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17013
17014         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17015         event timestamp.
17016
17017 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17018
17019         * event-msw.c (mswindows_drain_windows_queue): Added the
17020         parameter.
17021         (mswindows_need_event): Commented the call to
17022         mswindows_drain_windows_queue().
17023         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17024         only.
17025
17026         * console-msw.h: Moved a few function prototypes here from
17027         event-msw.c.
17028
17029         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17030         parameter from unsigned short to unsigned long.
17031         (Fmswindows_shell_execute): Added return value.
17032
17033 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17034
17035         * sysdep.c (init_system_name):
17036           process-unix.c (unix_canonicalized_host_name):
17037         Don't call freeaddrinfo() if getaddrinfo() fails.
17038
17039         * process-unix.c (unix_open_unix_network_stream):
17040         Moved the code to get a port # into address loop.
17041
17042 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17043
17044         * buffer.c (reinit_vars_of_buffer):
17045         The right place to initialize conversion_in_dynarr and
17046         conversion_out_dynarr.
17047
17048         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17049
17050         * process-unix.c (unix_canonicalize_host_name): Muleize.
17051         (unix_open_network_stream): Muleize.
17052
17053         * buffer.h: Fix up prototypes for ralloc.c functions.
17054
17055 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17056         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17057         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17058                 instead of gethostbyname()
17059         * process-unix.c: In unix_canonicalize_host_name() and
17060                 unix_open_network_stream(), add code to use getaddrinfo()
17061                 instead of gethostbyname().
17062
17063 2000-01-27  Daniel Pittman <daniel@danann.net>
17064
17065         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17066         libs when built with flat Athena.
17067
17068 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17069
17070         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17071         Use coding standards for function prototypes.
17072
17073 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17074
17075         * dialog-msw.c (push_lisp_string_as_unicode):
17076         * doc.c (unparesseuxify_doc_string):
17077         * dired.c (Fuser_name_completion_1):
17078         * dired.c (Fuser_name_all_completions):
17079         * dired.c (free_user_cache):
17080         * dired.c (user_name_completion):
17081         * console-x.c (get_display_arg_connection):
17082         * minibuf.c (clear_echo_area_internal):
17083         * minibuf.c (echo_area_append):
17084         * eldap.c (Fldap_open):
17085         * eldap.c (Fldap_search_internal):
17086         * frame-x.c (x_set_frame_text_value):
17087         * frame-x.c (x_set_frame_properties):
17088         * frame-x.c (x_create_widgets):
17089         * redisplay-tty.c (term_get_fkeys_1):
17090         * objects-x.c (x_parse_nearest_color):
17091         * objects-x.c (x_valid_color_name_p):
17092         * objects-x.c (x_initialize_font_instance):
17093         * objects-x.c (x_list_fonts):
17094         * objects-x.c (x_find_charset_font):
17095         * tooltalk.c (Fadd_tooltalk_message_arg):
17096         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17097         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17098         * process-unix.c (unix_create_process):
17099         * ntproc.c (sys_spawnve):
17100         * sound.c (Fplay_sound_file):
17101         * sound.c (Fplay_sound):
17102         * buffer.c (init_initial_directory):
17103         * buffer.c (init_buffer):
17104         * editfns.c (init_editfns):
17105         * editfns.c (Ftemp_directory):
17106         * editfns.c (Fuser_full_name):
17107         * editfns.c (uncache_home_directory):
17108         * editfns.c (get_home_directory):
17109         * editfns.c (Fuser_home_directory):
17110         * editfns.c (Fformat_time_string):
17111         * editfns.c (Fcurrent_time_string):
17112         * gui-x.c (button_item_to_widget_value):
17113         * database.c (Fopen_database):
17114         * event-Xt.c (x_to_emacs_keysym):
17115         * event-Xt.c (x_event_to_emacs_event):
17116         * event-Xt.c (describe_event_window):
17117         * event-msw.c (mswindows_wnd_proc):
17118         * glyphs-eimage.c (jpeg_instantiate):
17119         * glyphs-eimage.c (gif_instantiate):
17120         * glyphs-eimage.c (png_instantiate):
17121         * glyphs-eimage.c (tiff_instantiate):
17122         * glyphs-x.c (xbm_instantiate_1):
17123         * glyphs-x.c (x_xbm_instantiate):
17124         * glyphs-x.c (x_xface_instantiate):
17125         * glyphs-x.c (autodetect_instantiate):
17126         * glyphs-x.c (cursor_font_instantiate):
17127         * glyphs-x.c (x_widget_instantiate):
17128         * glyphs-x.c (x_widget_set_property):
17129         * glyphs-x.c (x_widget_property):
17130         * glyphs-x.c (BUILD_GLYPH_INST):
17131         * print.c (write_string_to_stdio_stream):
17132         * print.c (output_string):
17133         * print.c (Falternate_debugging_output):
17134         * print.c (Fexternal_debugging_output):
17135         * glyphs-msw.c (extract_xpm_color_names):
17136         * glyphs-msw.c (mswindows_xpm_instantiate):
17137         * glyphs-msw.c (bmp_instantiate):
17138         * glyphs-msw.c (resource_name_to_resource):
17139         * glyphs-msw.c (mswindows_resource_instantiate):
17140         * glyphs-msw.c (xbm_instantiate_1):
17141         * glyphs-msw.c (mswindows_xbm_instantiate):
17142         * glyphs-msw.c (mswindows_xface_instantiate):
17143         * glyphs-msw.c (mswindows_widget_instantiate):
17144         * glyphs-msw.c (add_tree_item):
17145         * glyphs-msw.c (add_tab_item):
17146         * glyphs-msw.c (mswindows_combo_box_instantiate):
17147         * glyphs-msw.c (mswindows_widget_property):
17148         * glyphs-msw.c (mswindows_combo_box_property):
17149         * glyphs-msw.c (mswindows_widget_set_property):
17150         * console.c (stuff_buffered_input):
17151         * objects-msw.c (mswindows_initialize_color_instance):
17152         * objects-msw.c (mswindows_valid_color_name_p):
17153         * objects-msw.c (mswindows_list_fonts):
17154         * objects-msw.c (mswindows_font_instance_truename):
17155         * bytecode.c (optimize_compiled_function):
17156         * select-x.c (symbol_to_x_atom):
17157         * select-x.c (x_atom_to_symbol):
17158         * select-x.c (hack_motif_clipboard_selection):
17159         * select-x.c (selection_data_to_lisp_data):
17160         * select-x.c (lisp_data_to_selection_data):
17161         * select-x.c (Fx_get_cutbuffer_internal):
17162         * select-x.c (Fx_store_cutbuffer_internal):
17163         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17164         * buffer.h (TO_INTERNAL_FORMAT): New function.
17165         * emacs.c (make_arg_list_1):
17166         * emacs.c (make_argc_argv):
17167         * emacs.c (main_1):
17168         * emacs.c (Fdump_emacs):
17169         * emacs.c (split_string_by_emchar_1):
17170         * file-coding.h:
17171         * lisp.h:
17172         * lstream.h:
17173         * symsinit.h:
17174         * device-x.c (x_init_device):
17175         * device-x.c (Fx_valid_keysym_name_p):
17176         * device-x.c (Fx_get_font_path):
17177         * device-x.c (Fx_set_font_path):
17178         * glyphs.c (bitmap_to_lisp_data):
17179         * glyphs.c (pixmap_to_lisp_data):
17180         * alloc.c (make_ext_string): Use coding system arguments.  Update
17181         all callers.
17182         * alloc.c (build_string):
17183         * callproc.c (child_setup):
17184         * callproc.c (init_callproc):
17185         * fileio.c (lisp_strerror):
17186         * fileio.c (directory_file_name):
17187         * fileio.c (Fexpand_file_name):
17188         * fileio.c (Ffile_truename):
17189         * fileio.c (Fsysnetunam):
17190         * fileio.c (Fdo_auto_save):
17191         * sysdep.c (sys_readdir):
17192         * tests.c: New file.  Allow adding C tests.
17193         Replace GET_* macros with a more comprehensible and flexible
17194         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17195         Modify all calls.
17196         Any coding system can be used to do format conversion.
17197         Eliminate enum external_data_format.
17198         Eliminate convert_to_external_format.
17199         Eliminate convert_to_internal_format.
17200         Make sure file-name, keyboard, terminal, and ctext are always
17201         defined as coding systems or aliases.  Make
17202         file-name-coding-system, terminal-coding-system, and
17203         keyboard-coding-system magical variables that are equivalent to
17204         defining the corresponding coding system aliases.
17205
17206         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17207         * file-coding.c (Fcoding_system_alias_p): New function.
17208         * file-coding.c (Fcoding_system_aliasee): New function.
17209         * file-coding.c (append_suffix_to_symbol): New function.
17210         * file-coding.c (dangling_coding_system_alias_p): New function.
17211         * file-coding.c (Ffind_coding_system):
17212         * file-coding.c (Fcopy_coding_system):
17213         * file-coding.c (encode_coding_no_conversion):
17214         * file-coding.c (syms_of_file_coding):
17215         * file-coding.c (vars_of_file_coding):
17216         Rewrite coding system alias code.
17217         Allow nested aliases, like symbolic links.
17218         Allow redefinition of coding system aliases.
17219         Prevent existence of dangling coding system aliases.
17220
17221         * dired.c (Fuser_name_completion_1):
17222         * dired.c (Fuser_name_all_completions):
17223         A crash would happen if user did QUIT in the middle of building
17224         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17225
17226         * lisp.h:
17227         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17228
17229         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17230         an unsigned char *.  Update all callers.
17231
17232 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17233
17234         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17235
17236 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17237
17238         * elhash.c (hentry_description): Use more portable definition.
17239         (resize_hash_table): Initialize new hentries using
17240         xnew_array_and_zero, thereby simplifying the code.
17241
17242         * mule-charset.c (make_charset): Make sure entire object is
17243         initialized, to avoid Purify warnings.
17244
17245         * alloc.c (resize_string): Fix unlikely crash with big strings.
17246
17247 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17248
17249         * realpath.c (xrealpath):
17250         Don't call getwd().
17251
17252 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17253
17254         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17255
17256 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17257
17258         * unexelfsgi.c (unexec): Change the way we decide which segment
17259         should be extended.
17260
17261         Assumption that .bss section should be outside the PT_LOADable
17262         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17263         it's present) is inside the 'data' segment. This would fail the
17264         test which was used to find a segment to grow and cover new
17265         heap. Instead of this assumption, I created another one - on IRIX
17266         the segment to grow should start below .bss and it's address
17267         should extent above the end of .bss. Once this segment is
17268         identified, it's grown to accommodate the new heap and new
17269         zero-length .bss section is added at the end of .data2.
17270
17271 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17272
17273         * eval.c (Feval): Wrong number of arguments should use original
17274         function, not the indirect_function version of it.
17275
17276 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17277
17278         * glyphs-x.c (x_button_instantiate): Don't add image if
17279         it is not a pixmap.
17280         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17281         is relative.
17282
17283 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17284
17285         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17286         declaration.
17287         (DEFVAR_INT_MAGIC): Ditto.
17288         (DEFVAR_BOOL_MAGIC): Ditto.
17289         * glyphs.h: Reindent backslash.
17290
17291 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17292
17293         * glyphs-widget.c (layout_query_geometry):
17294         (layout_layout): Use correct types for gheight, gwidth.
17295
17296 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17297
17298         * EmacsManager.c (QueryGeometry): Purified.
17299
17300 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17301
17302         * alloc.c (make_float): Make sure entire object is initialized, to
17303         avoid Purify warnings.
17304         (pdump_register_sub): Remove useless assignment.
17305         (pdump): Use xmalloc, not malloc.
17306         (pdump_load): Use xmalloc, not malloc.
17307
17308 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17309
17310         * callproc.c:
17311         * dired-msw.c:
17312         * fileio.c:
17313         * process-nt.c:
17314         * redisplay-msw.c:
17315         * sysdep.c: Removed redundant #include <windows.h>
17316
17317 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17318
17319         * frame.c (delete_frame_internal): Do not delete device when its
17320         implementation so declares.
17321         (delete_frame_internal): Set device selected frame to nil when
17322         last frame goes away.
17323
17324         * device-msw.c (msprinter_device_system_metrics): Implemented.
17325         (mswindows_device_system_metrics): Added 'device-dpi property.
17326
17327         * device.c: (Fdevice_printer_p): Added.
17328         Added 'offset-workspace device metric.
17329
17330         * console.h (device_metrics): Declared DM_offset_workspace.
17331
17332 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17333
17334         * fileio.c (Ffile_truename): Remove pointless and confusing
17335         initialization of elen.
17336
17337         * glyphs-widget.c: Compiler warning fixes.
17338
17339 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17340
17341         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17342         instead of a Lisp_Object as argument to make it consistent with
17343         the other LIVE_P macros.
17344         (CHECK_LIVE_PROCESS): New macro.
17345
17346         * process.c: Declare Qprocess_live_p.
17347         (Fprocess_live_p): New function.
17348         (create_process): Use PROCESS_LIVE_P.
17349         (read_process_output): Ditto.
17350         (set_process_filter): Ditto.
17351         (Fdelete_process): Ditto.
17352         (kill_buffer_processes): Ditto
17353         (process_send_signal): Use CHECK_LIVE_PROCESS.
17354         (Fprocess_input_coding_system): Check whether process is still
17355         alive (fix PR#1061).
17356         (Fprocess_output_coding_system): Ditto.
17357         (Fprocess_coding_system): Ditto.
17358         (Fset_process_input_coding_system): Ditto.
17359         (Fset_process_output_coding_system): Ditto.
17360
17361 2000-01-23  Andy Piper  <andy@xemacs.org>
17362
17363         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17364         layout and widget.
17365
17366         * glyphs.c (mark_image_instance): take into account changed
17367         image_instance format.
17368         (image_instance_equal): ditto.
17369         (image_instance_hash): ditto.
17370
17371         * glyphs-widget.c (widget_instantiate): Incorporate layout
17372         instantiation here. Delay layout of the layout until later.
17373         (layout_instantiate): deleted.
17374         (layout_query_geometry): new function. get the geometry of a
17375         layout.
17376         (layout_layout): layout a layout dynamically.
17377         (image_instantiator_widget): New function - splitting up
17378         image_instantiator_format_create_glyphs_widget for netwinder
17379         compilation.
17380         (image_instantiator_buttons):
17381         (image_instantiator_edit_fields):
17382         (image_instantiator_combo_box):
17383         (image_instantiator_scrollbar):
17384         (image_instantiator_progress_guage):
17385         (image_instantiator_tree_view):
17386         (image_instantiator_tab_control):
17387         (image_instantiator_labels):
17388         (image_instantiator_layout): ditto.
17389         (image_instantiator_format_create_glyphs_widget): Call preceding
17390         functions.
17391
17392 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17393
17394         * process.c (Fset_process_coding_system):
17395         * device-x.c (Fx_keysym_hash_table):
17396         Docstring fixes.
17397
17398         * lstream.c (Lstream_write): Return documented value, not 0.
17399
17400         * fileio.c (directory_file_name):
17401         (Fsubstitute_in_file_name):
17402         (Fsubstitute_insert_file_contents_internal):
17403         (Fwrite_region_internal):
17404         * emacs.c:
17405         * sysdep.c:
17406         * getloadavg.c:
17407         * systty.h:
17408         Remove vestigial APOLLO-conditional code.
17409
17410 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17411
17412         * getpagesize.h: Add guard macros.
17413         * libsst.h: Add guard macros.
17414         * libst.h: Add guard macros.
17415         * line-number.h: Add guard macros.
17416         * ndir.h: Add guard macros.
17417         * sysfloat.h: Add guard macros.
17418         * sysfile.h: Add guard macros.
17419         * sysproc.h: Add guard macros.
17420         * syswait.h: Add guard macros.
17421         * xintrinsic.h: Add guard macros.
17422         * xintrinsicp.h: Add guard macros.
17423         * xmmanager.h: Add guard macros.
17424         * xmmanagerp.h: Add guard macros.
17425         * xmprimitive.h: Add guard macros.
17426         * xmu.h: Add guard macros.
17427         * gpmevent.h: Add copyright statement. Add guard macros.
17428         * miscplay.h: Add guard macros.
17429         * *.h: Use consistent C-standards-approved guard macro names.
17430
17431         * opaque.c (make_opaque): Switch parameter order.
17432         * opaque.h (make_opaque): Switch parameter order.
17433         Update all callers.
17434         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17435
17436         * config.h.in (type_checking_assert): Added.
17437         (bufpos_checking_assert): Added.
17438
17439 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17440
17441         * alloc.c: Harmless pdump changes.
17442         - Use countof().
17443         - spell alignment correctly.
17444         * sysdep.c: Use countof()
17445
17446 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17447
17448         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17449         initially_selected_for_input() console method, default to 0.
17450         (semi_canonicalize_console_connection): Try to delegate to
17451         canonicalize_console_connection if no such console method.
17452         (canonicalize_console_connection): Vice versa.
17453         (print_console): Do not print nil connection.
17454
17455         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17456         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17457         (XDEVIMPF_FRAMELESS_OK): Added.
17458         (CONSOLE_INHERITS_METHOD): Added.
17459
17460         * console-msw.c (mswindows_canonicalize_console_connection):
17461         Added.
17462         (mswindows_canonicalize_device_connection): Added.
17463
17464         * console-msw.h (struct msprinter_device): Added this struct and
17465         accessor macros.
17466         (mswindows_device): Made fontlist a lisp object.
17467
17468         * device.c (semi_canonicalize_device_connection):  Try to delegate
17469         to canonicalize_device_connection if no such console method.
17470         (canonicalize_device_connection): Vice versa.
17471         (print_device): Do not print nil connection.
17472
17473         * device-msw.c (mswindows_init_device): Call InitCommonControls
17474         when have widgets.
17475         (mswindows_delete_device): Removed fontlist deallocation.
17476         (mswindows_mark_device): Added.
17477
17478         * events.c (event_equal): Added abort() at unreached code.
17479         (event_hash): Ditto.
17480
17481         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17482         fallback tags of Windows devices.
17483
17484         * general.c (syms_of_general): Initialized Qmsprinter.
17485
17486         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17487         of fallback tags of Windows devices.
17488
17489         * lisp.h: Declared Qmsprinter.
17490
17491         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17492         of strings.
17493         (mswindows_list_fonts): Ditto.
17494         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17495         that it can be used by both mswindows and msprinter devices.
17496         (initialize_font_instance): Added.
17497         (mswindows_initialize_font_instance): Use it.
17498         (msprinter_initialize_font_instance): Added.
17499
17500         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17501         and implementation flags check.
17502         (redisplay_without_hooks): Changed the call to the above.
17503         (Fredraw_device): Ditto.
17504         (Fredisplay_device): Ditto.
17505
17506         * redisplay-msw.c (get_frame_dc): Implemented.
17507         (get_frame_compdc): Implemented.
17508         (many functions): Use the two functions above to get device
17509         contexts, ether for a window or a printer.
17510
17511 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17512
17513         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17514         initialization here.
17515         (init_symbols_once_early): Call it.
17516         * emacs.c (main_1): Call it.
17517         * symsinit.h: Declare it.
17518
17519 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17520
17521         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17522         Lisp_Object.
17523         (pdump_backtrace): Ditto.
17524         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17525         (pdump_get_entry): Abort if trying to register a null pointer.
17526         (pdump_dump_data): Cleanup types when relocating.
17527         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17528         (pdump_dump_rtables): Remove bad casts.
17529         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17530         Lisp_Object instead of a EMACS_INT for the hashtable
17531         reorganization.
17532
17533 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17534
17535         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17536
17537         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17538
17539         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17540
17541         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17542
17543 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17544
17545         * faces.h (FACE_STRIKETHRU_P): Added.
17546
17547         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17548         of font variants.
17549
17550         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17551         (mswindows_set_dc_font): New function, aware of font variants,
17552         separated from mswindows_update_dc.
17553
17554         * objects-msw.h (struct mswindows_font_instance_data): Added
17555         definition.
17556
17557         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17558         cached fonts and the data structure.
17559         (mswindows_initialize_font_instance): Added creation of font data
17560         structure.
17561         (mswindows_print_font_instance): Print at least something.
17562         (mswindows_create_font_variant): Implemented.
17563         (mswindows_get_hfont): Implemented.
17564
17565 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17566
17567         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17568         prototyping problem with msvc.
17569
17570         * emacs.c (main_1): added syms_of_gui_mswindows() call
17571
17572         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17573         syms_of_gui_mswindows() function
17574
17575         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17576
17577 2000-01-18  Martin Buchholz <martin@xemacs.org>
17578
17579         * XEmacs 21.2.27 is released.
17580
17581 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17582
17583         * glyphs-eimage.c (struct tiff_error_struct):
17584         (tiff_error_func):
17585         (tiff_warning_func):
17586         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17587
17588         * unexmips.c:
17589         * unexhp9k3.c:
17590         * unexfreebsd.c:
17591         * unexec.c: Remove vestigial Lucid C code.
17592         * unexalpha.c:
17593         * unexaix.c:
17594         * termcap.c:
17595         * libsst.c: Ansify.
17596         Remove declarations of errno and strerror().
17597
17598         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17599
17600         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17601
17602 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17603
17604         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17605         Optimize.
17606
17607 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17608
17609         * md5.c:
17610         * file-coding.c:
17611         * file-coding.h:
17612         Change enum eol_type to eol_type_t.
17613
17614 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17615
17616         * gui.c (get_gui_callback): Check cons before accessing car.
17617
17618 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17619
17620         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17621         (XSETSPECIFIER_TYPE): Ditto.
17622
17623 2000-01-17  Didier Verna  <didier@xemacs.org>
17624
17625         * redisplay.c (generate_fstring_runes): compute string size in
17626         characters, not bytes.
17627
17628 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17629
17630         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17631
17632 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17633
17634         * print.c (print_error_message): Call print_prepare().
17635
17636 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17637
17638         * .dbxrc: Renamed from dbxrc.
17639
17640         * events.c (event_to_character):
17641         Use `assert (foo)' instead of `if (!foo) abort()'
17642
17643         * .gdbinit (xtype): Add documentation.
17644         * .gdbinit (check-temacs): New function.
17645         * .gdbinit (check-xemacs): New function.
17646         * dbxrc (check-xemacs): New function.
17647         * dbxrc (check-xemacs): New function.
17648
17649 2000-01-14  Andy Piper  <andy@xemacs.org>
17650
17651         * glyphs-widget.c (widget_query_geometry): Make sure that we
17652         calculate default dimensions correctly.
17653
17654 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17655
17656         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17657
17658         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17659         pdump_wire'd variable.
17660
17661         * emacs.c: (main_1): Conditionalized calls to
17662         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17663
17664 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17665
17666         * window.c (Fset_window_configuration):
17667         * sysdep.c (_start):
17668         * input-method-motif.c (res):
17669         * event-Xt.c (Xt_process_to_emacs_event):
17670         Simple compiler warning fixes.
17671
17672         * bytecode.c (funcall_compiled_function): Use the original
17673         function symbol on the backtrace list in preference to the
17674         compiled_function object in error messages.
17675
17676 2000-01-13  Andy Piper  <andy@xemacs.org>
17677
17678         * glyphs-x.c (update_widget_face): Make sure we update the widget
17679         background as well as foreground.
17680
17681 2000-01-13  Andy Piper  <andy@xemacs.org>
17682
17683         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17684         fields to subwindow.
17685         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17686         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17687         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17688         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17689
17690         * glyphs-widget.c (check_valid_tab_orientation): new function.
17691         (initialize_widget_image_instance): zero orientation and
17692         justification.
17693         (widget_instantiate): pick up orientation.
17694         (tab_control_query_geometry): return appropriate values for
17695         vertical tabs.
17696
17697         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17698         appropriate creation flags for left, right and bottom tabs.
17699
17700         * s/cygwin32.h: add tab definitions.
17701
17702 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17703
17704         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17705         frame upon hiding a subwindow.
17706         (mswindows_button_instantiate): Changed the push button style to
17707         BS_PUSHBUTTON.
17708         (mswindows_button_instantiate): Removed button BS_NOTIFY
17709         style.
17710         (mswindows_button_instantiate): Removed redundant check for
17711         a disabled gui item.
17712         (mswindows_button_instantiate): Made use of WS_TABSTOP
17713         consistent: "operable" controls (edit, button, tree, scroll) have
17714         this style, "display-only" ones (static, progress gauge) do
17715         not. This style is currently ignored by XEmacs though. Also,
17716         removed the WS_EX_CONTROLPARENT style - it is not for children,
17717         it is for their parents!
17718         (mswindows_edit_field_instantiate): Ditto.
17719         (mswindows_progress_gauge_instantiate): Ditto.
17720         (mswindows_tree_view_instantiate): Ditto.
17721         (mswindows_tab_control_instantiate): Ditto.
17722         (mswindows_scrollbar_instantiate): Ditto.
17723         (mswindows_combo_box_instantiate): Ditto.
17724         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17725         style to the "clip" window.
17726         (mswindows_button_instantiate): Removed compilation warning by
17727         equally typing terms of the ?: operator.
17728
17729 2000-01-12  Didier Verna  <didier@xemacs.org>
17730
17731         * redisplay.c (generate_fstring_runes): new parameter holding the
17732         last modeline-format extent.
17733         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17734         extent, fill the glyph block with it.
17735         (generate_fstring_runes): handle these parameters.
17736         (generate_formatted_string_db): ditto.
17737
17738         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17739         glyphs'extents in the modeline.
17740
17741 1999-01-11  Mike Woolley  <mike@bulsara.com>
17742
17743         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17744         256Mb, as a workaround for the non-starting problem many people
17745         have experienced.
17746
17747 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17748
17749         * console-tty.c (Fset_console_tty_output_coding_system):
17750         Force redrawing tty frame.
17751
17752 2000-01-10  Didier Verna  <didier@xemacs.org>
17753
17754         * redisplay.c (generate_fstring_runes): fix size computation bug.
17755
17756 2000-01-09  William M. Perry <wmperry@aventail.com>
17757
17758         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17759
17760 2000-01-09  Andy Piper  <andy@xemacs.org>
17761
17762         * glyphs-msw.c: index -> i to avoid shadows.
17763         (xbm_create_bitmap_from_data): make static.
17764         (check_valid_string_or_int): deleted.
17765         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17766
17767         * glyphs-x.c (x_update_subwindow): remove unused args.
17768
17769         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17770         back pointer - this is done in allocate_image_instance.
17771         (query_string_font): return Qnil to make the compiler happy.
17772         (unmap_subwindow): set to ~0 to make the compiler happy.
17773         (glyph_query_geometry): comment out until used.
17774         (glyph_layout): ditto.
17775
17776 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17777
17778         * insdel.c (signal_after_change): Remove extraneous unbind_to().