update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (allocate_character): Add `static'.
4
5 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
6
7         * chartab.c (allocate_character): New function.
8         (Fdefine_char): Use allocate_character().
9
10 2010-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
11
12         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.25
13         (Ōkawara).
14
15 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
16
17         * chartab.c (save_uint8_byte_table): Fixed problem when a property
18         is unloaded.
19         (save_uint16_byte_table): Likewise.
20
21 2010-02-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
22
23         * chartab.c (Fchar_feature_property): New function when LIBCHISE
24         is enabled.
25         (Fput_char_feature_property): Likewise.
26         (syms_of_chartab): Add new builtin functions
27         `char-feature-property' and `put-char-feature-property' when
28         LIBCHISE is enabled.
29
30 2009-04-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
31
32         * mule-charset.c (Fmake_charset): Add DOC-string of 'iso-ir and
33         '=>iso-ir.
34         (Fcharset_property): Regard '=>iso-ir as same as `iso_ir.
35
36 2009-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
37
38         * mule-charset.c (Qto_iso_ir): New variable for XEmacs CHISE.
39         (make_charset): Add new argument `iso_ir'.
40         (Fmake_charset): Add new property `=>iso-ir' in XEmacs CHISE.
41         (Fmake_reverse_direction_charset): Copy CHARSET_ISO_IR(cs) in
42         XEmacs CHISE.
43         (Fcharset_property): Support `iso-ir' in XEmacs CHISE.
44         (syms_of_mule_charset): Add new builtin symbol `=>iso-ir' in
45         XEmacs CHISE.
46         (complex_vars_of_mule_charset): Specify argument `iso_ir' of
47         function `make_charset'.
48
49         * char-ucs.h (LEADING_BYTE_*): Enclose negative value with ( ).
50         (struct Lisp_Charset): Add new member `iso_ir'.
51         (CHARSET_ISO_IR): New macro.
52
53 2009-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
54
55         * mule-charset.c (Fdecode_char): Fix problem when decoding GR
56         code-point by GL charset.
57
58 2008-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
59
60         * concord.c (concord_id_validate): New function.
61         (structure_type_create_concord): Use `concord_id_validate' instead
62         of `concord_name_validate' to accept integer and character as =id.
63
64 2008-09-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * concord.c (func_for_each_object): Fix bug about GC-protection.
67
68 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
69
70         * concord.c (Fconcord_object_put): Check argument FEATURE is a
71         symbol.
72
73 2008-09-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
74
75         * text-coding.c (struct decoding_stream): Add new member
76         `bom_flag' in XEmacs CHISE.
77         (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
78         in XEmacs CHISE.
79
80 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
81
82         * mule-charset.c: Move definition of `=jis-x0208@1978' to
83         lisp/mule/mule-conf.el.
84
85 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
86
87         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
88         (make_charset): Add new argument `partial'.
89         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
90         (Fmake_reverse_direction_charset): Modify for `make_charset'.
91         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
92         CHISE.
93         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
94         `=jis-x0208' as a partial coded-charset.
95
96 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
97
98         * text-coding.c (decode_add_er_char): Fix problem when a character
99         represented by an entity-reference is not defined.
100
101 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
102
103         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
104         Qrep_*.
105
106 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
107
108         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
109         (Kasagi).
110
111 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
112
113         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
114         is a relation feature.
115
116 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
117
118         * chartab.c (syms_of_chartab): Define
119         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
120
121         * chartab.h (Q_denotational): New extern when UTF2000 or
122         HAVE_CONCORD is defined.
123         (Q_denotational_from): Likewise.
124         (Q_subsumptive): Likewise.
125         (Q_subsumptive_from): Likewise.
126
127 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
128
129         * concord.c (concord_object_put): New function.
130         (Fconcord_object_put): Use `concord_object_put'.
131
132 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
133
134         * concord.c (Fconcord_define_object): New function.
135         (syms_of_concord): Add new builtin function
136         `concord-define-object'.
137
138 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
139
140         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
141         (Kamo).
142
143 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * concord.c: Add EXFUN for Fconcord_object_get.
146         (Vconcord_genre_object_hash_table): New variable.
147         (concord_genre_cache_get_object): New function.
148         (concord_genre_cache_put_object): New function.
149         (Fconcord_make_object): Use object cache; put object-ID into `=id'
150         feature.
151         (Fconcord_object_put): Call `concord_index_sync' after
152         `concord_index_strid_put_obj'.
153         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
154
155 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
156
157         * concord.c (Fconcord_decode_object): Do GCPRO for
158         Fconcord_make_object.
159         (func_for_each_object): Likewise; do GCPRO for
160         for_each_object_closure->function.
161         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
162         for_each_object_closure->function, for_each_object_closure->genre,
163         for_each_object_closure->ds and for_each_object_closure->ret.
164         (concord_object_validate): Do GCPRO for Fconcord_make_object.
165
166 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
167
168         * concord.c: Add EXFUNs for Fconcord_decode_object and
169         Fconcord_object_put.
170         (Fconcord_make_object): Change order of arguments.
171         (Fconcord_decode_object): Modify for Fconcord_make_object.
172         (func_for_each_object): Likewise.
173         (concord_object_validate): Likewise.
174         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
175
176 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
177
178         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
179
180 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
181
182         * concord.c (Fconcord_decode_object): Try to use readable print
183         form as a key of Concord-index.
184         (Fconcord_object_get): Try to use readable print form as an ID of
185         Concord-object.
186         (Fconcord_object_put): Try to use readable print form as an ID of
187         Concord-object and a feature value.
188         (Fconcord_object_spec): Try to use readable print form as an ID of
189         Concord-object.
190
191 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
192
193         * concord.c (print_concord_object): Support readable form.
194
195 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
196
197         * emacs.c (main_1): Call `structure_type_create_concord' when
198         HAVE_CONCORD is defined.
199
200         * symsinit.h (structure_type_create_concord): New prototype.
201
202         * concord.c (Qconcord_object): New variable.
203         (Qgenre): Likewise.
204         (Q_id): Likewise.
205         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
206         for directory.
207         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
208         char*> for genre-name.
209         (Fconcord_feature_list): Likewise.
210         (Fconcord_make_object): Likewise.
211         (Fconcord_decode_object): Likewise; use <char*> instead of
212         <unsigned char*> for feature_name and strid.
213         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
214         c_obj and feature_name.
215         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
216         char*> for c_value.
217         (struct closure_for_object_spec): Use <char*> instead of <unsigned
218         char*> for member `object_id'.
219         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
220         char*> for feature-name.
221         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
222         for c_obj.
223         (func_for_each_object): Cast to avoid warnings.
224         (Fconcord_foreach_object_in_feature): Use <char*> instead of
225         <unsigned char*> for genre_name and feature_name.
226         (concord_name_validate): New function.
227         (concord_object_validate): Likewise.
228         (concord_object_instantiate): Likewise.
229         (syms_of_concord): Add new builtin symbols `concord-object',
230         `genre' and `=id'.
231         (structure_type_create_concord): New function.
232
233 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
234
235         * concord.c (Vconcord_ds_hash_table): New variable.
236         (Vconcord_genre_hash_table): New variable.
237         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
238         (Fconcord_ds_directory): New function.
239         (Fconcord_assign_genre): New function.
240         (Fconcord_genre_directory): New function.
241         (Fconcord_genre_ds): New function.
242         (Fconcord_feature_list): Allow to omit `ds'.
243         (Fconcord_make_object): Likewise.
244         (Fconcord_decode_object): Likewise.
245         (Fconcord_foreach_object_in_feature): Likewise.
246         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
247         Fconcord_assign_genre, Fconcord_genre_directory and
248         Fconcord_genre_ds.
249         (vars_of_concord): Setup Vconcord_ds_hash_table and
250         Vconcord_genre_hash_table.
251
252 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
253
254         * concord.c (struct closure_for_each_object): Add new member
255         `ret'.
256         (func_for_each_object): Setup the return value to
257         `for_each_object_closure->ret'.
258         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
259         returns the value instead of Qt.
260
261 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
262
263         * concord.c: New file.
264
265 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
266
267         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
268         `lrecord_type_concord_object'.
269
270 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
271
272         * symsinit.h (syms_of_concord): New prototype.
273         (vars_of_concord): New prototype.
274
275         * emacs.c (main_1): Setup symbols and variable about concord if
276         HAVE_CONCORD is defined.
277
278         * config.h.in (HAVE_CONCORD): New macro.
279
280 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
281
282         * chartab.c (Fput_char_attribute): For each character relation
283         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
284
285 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
286
287         * chartab.c (Fput_char_attribute): Use
288         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
289         calling `put_char_composition'.
290
291 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
292
293         * chartab.c (Q_halfwidth_of): New variable.
294         (put_char_composition): Return `<-halfwidth' instead of
295         `=decomposition' for compatibility mapping to single character
296         tagged `narrow'.
297         (Fput_char_attribute): Convert char-specs in value of
298         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
299         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
300         for `<-halfwidth'.
301         (syms_of_chartab): Add new symbol `<-halfwidth'.
302
303 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
304
305         * chartab.c (put_char_composition): Return
306         `<-formed@{isolated|initial|medial|final}' for compatibility
307         mapping to single character tagged
308         `{isolated|initial|medial|final}'.
309
310 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
311
312         * chartab.c (Q_compat_of): Deleted.
313         (put_char_composition): Return `<-FOO' for compatibility mapping
314         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
315         of `symbol_name (XSYMBOL(...))'.
316         (Fput_char_attribute): Convert char-specs in value of
317         `{<-|->}font[^*]*' to characters and put reverse links.
318         (Fsave_char_attribute_table): Don't refer Q_compat_of.
319         (syms_of_chartab): Delete builtin symbol `<-compat'.
320
321 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
322
323         * chartab.c (Q_circled_of): New variable.
324         (put_char_composition): Return `<-circled' instead of
325         `=decomposition' for compatibility mapping to single character
326         tagged `circle'.
327         (Fput_char_attribute): Convert char-specs in value of
328         `{<-|->}circled[^*]*' to characters and put reverse links.
329         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
330         for `<-circled'.
331         (syms_of_chartab): Add new symbol `<-circled'.
332
333 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
334
335         * chartab.c (Qto_decomposition_at_circled): New variable.
336         (put_char_composition): Return `=>decomposition@circled' instead
337         of `=decomposition' for compatibility decomposition mapping tagged
338         `circle'.
339         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
340
341 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * chartab.c (Q_subscript_of): New variable.
344         (put_char_composition): Return `<-subscript' instead of
345         `=decomposition' for compatibility mapping to single character
346         tagged `sub'.
347         (Fput_char_attribute): Convert char-specs in value of
348         `{<-|->}subscript[^*]*' to characters and put reverse links.
349         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
350         for `<-subscript'.
351         (syms_of_chartab): Add new symbol `<-subscript'.
352
353 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
354
355         * chartab.c (Q_superscript_of): New variable.
356         (put_char_composition): Return `<-superscript' instead of
357         `=decomposition' for compatibility mapping to single character
358         tagged `super'.
359         (Fput_char_attribute): Convert char-specs in value of
360         `{<-|->}superscript[^*]*' to characters and put reverse links.
361         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
362         for `<-superscript'.
363         (syms_of_chartab): Add new symbol `<-superscript'.
364
365 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
366
367         * chartab.c (Qto_decomposition_at_compat): Deleted.
368         (Qto_decomposition_at_superscript): New variable.
369         (put_char_composition): Use `=>decomposition@superscript' instead
370         of `=decomposition' for compatibility decomposition mapping tagged
371         `super'.
372         (Fput_char_attribute): Fix condition about `put_char_composition'.
373         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
374         add news symbol `=>decomposition@superscript'.
375
376 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
377
378         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
379         for compatibility decomposition mapping tagged FOO.
380         (Fput_char_attribute): Modify for `put_char_composition'.
381
382 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
383
384         * chartab.c (Qto_decomposition_at_compat): New variable.
385         (Q_compat_of): Renamed from `Q_compatibility_of'.
386         (put_char_composition): Rename `Q_compatibility_of' to
387         `Q_compat_of'; return `=>decomposition@compat' for compatibility
388         decomposition mapping.
389         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
390         `Q_compat_of'.
391         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
392         `<-compatibility' to `<-compat'.
393
394 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
395
396         * chartab.c (Q_compatibility_of): New variable.
397         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
398         object is proved to be a cons cell; return `<-compatibility' if
399         the first element of argument `value' is `compat'.
400         (Fput_char_attribute): Eliminate the first value if
401         `put_char_composition' returns `<-compatibility'.
402         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
403         for `<-compatibility'.
404         (syms_of_chartab): Add new symbol `<-compatibility'.
405
406 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
407
408         * chartab.c (Q_canonical): New variable.
409         (put_char_composition): Return a feature name: return
410         `->canonical' if argument `value' specifies single character.
411         (Fput_char_attribute): Use `put_char_composition' to determine
412         feature name for `=decomposition' or `->denotational'.
413         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
414         for `->canonical'.
415         (syms_of_chartab): Add new symbol `->canonical'.
416
417 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
418
419         * chartab.c (Qmap_decomposition): New variable.
420         (Fput_char_attribute): Convert `->decomposition' to
421         `=decomposition'.
422         (syms_of_chartab): Add new symbol `=decomposition'.
423
424 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
425
426         * chartab.c (Fget_range_char_table): Fix serious problem when
427         `range' is nil.
428
429 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
430
431         * chartab.c (char_table_get_db): Use `read_from_c_string'.
432
433 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
434
435         * lread.c (read_from_c_string): New function.
436
437         * lisp.h (read_from_c_string): New prototype.
438
439 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
440
441         * chartab.c (Fput_char_attribute): Convert char-specs in value of
442         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
443         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
444         for `{<-|->}Oracle-Bones[^*]*'.
445
446 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
447
448         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
449         (Kizu).
450
451 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
452
453         * text-coding.c (Qccs_priority_list): New variable in XEmacs
454         CHISE.
455         (Fmake_coding_system): Support new property `ccs-priority-list' in
456         XEmacs CHISE.
457         (Fcoding_system_property): Likewise.
458         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
459         Vdefault_coded_charset_priority_list in XEmacs CHISE.
460         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
461         XEmacs CHISE.
462         (complex_vars_of_file_coding): Define new coding-system-property
463         `ccs-priority-list' in XEmacs CHISE.
464
465         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
466
467 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
468
469         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
470         changed to normal function.
471         (encode_char_2): Likewise.
472
473         * mule-charset.c (decoding_table_put_char): Copied from
474         char-ucs.h; changed to normal function.
475         (encode_char_2): Likewise.
476
477 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
478
479         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
480         New extern.
481         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
482         (encode_char_2_search_children): New inline function.
483         (encode_char_2): Refer
484         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
485         and use `encode_char_2_search_children'.
486
487 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
488
489         * mule-charset.c
490         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
491         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
492         (vars_of_mule_charset): Add new variable
493         `display-coded-charset-priority-use-inheritance' and
494         `display-coded-charset-priority-use-hierarchy-order'.
495
496 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
497
498         * char-ucs.h (Q_subsumptive): New extern.
499         (Q_denotational): Likewise.
500         (encode_char_2): Search children specified by `->subsumptive' and
501         `->denotational'.
502
503 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
504
505         * mule-charset.c (complex_vars_of_mule_charset): Modify the
506         X-registry of `ucs-bmp'.
507
508 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
509
510         * chartab.c (char-variants): Refer `->subsumptive',
511         `->denotational' and `->identical' as same as `->ucs-unified'.
512
513 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
514
515         * chartab.c (Fput_char_attribute): Convert char-specs in value of
516         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
517         links.
518
519 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
520
521         * text-coding.c: Add EXFUN for `Fregexp_quote'.
522         (decode_add_er_char): Fix problem about infinite loop when a CCS
523         specified in `coded-charset-entity-reference-alist' is not
524         existed.
525
526 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
527
528         * mule-charset.c (syms_of_mule_charset): Rename
529         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
530
531 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
532
533         * fns.c (simplify_char_spec): Don't allocate new character-object
534         if specified char_spec does not have any CCS-features.
535
536         * chartab.h: Add EXFUN for Fdefine_char.
537
538         * chartab.c: Delete EXFUN for Fdefine_char.
539
540 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
541
542         * fns.c (simplify_char_spec): Use Fdefine_char instead of
543         Ffind_char for char-spec.
544
545 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
546
547         * lisp-disunion.h (XCHARVAL): Fix condition about
548         SIZEOF_EMACS_INT.
549
550 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
551
552         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
553         <int> for `code'.
554         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
555         point; use <Emchar> instead of <int> for character-id.
556
557 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
558
559         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
560         (make_char): Likewise.
561         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
562         environment.
563         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
564         instead of <int> as the type of return value; use <Lisp_Object>
565         instead of <Emchar> as the type of argument.
566         (XCHARVAL[macro version]): Cast the result into <Emchar>.
567
568         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
569         syntaxcode> instead of <int>.
570
571 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
572
573         * chartab.c (put_char_composition): Use DECODE_CHAR to get
574         character corresponding with UCS code point.
575         (Fput_char_attribute): Likewise.
576
577         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
578         character in the UCS decoding-table if the char-id is not equal to
579         the UCS code point.
580
581 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
582
583         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
584         for aliases; write `description'; write
585         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
586         not 0.
587
588 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
589
590         * chartab.c (Fsave_char_attribute_table): Don't use
591         `save_charset_properties'.
592
593         * mule-charset.c (Fsave_charset_properties): Renamed from
594         `save_charset_properties' and changed to Lisp function again;
595         write property `type' as `CCS'; write properties `final-byte' and
596         `mother' if they exists.
597         (syms_of_mule_charset): Revive builtin function
598         `save-charset-properties' when HAVE_LIBCHISE is defined.
599
600 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
601
602         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
603         instead of Vexec_directory.
604         (char_attribute_system_db_file): Likewise.
605
606 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
607
608         * chartab.c (Fsave_char_attribute_table): Use
609         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
610         defined.
611
612         * mule-charset.c (save_charset_properties): Renamed from
613         `Fsave_charset_properties'; changed to non-Lisp function.
614         (syms_of_mule_charset): Abolish builtin function
615         `save-charset-properties'.
616
617 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
618
619         * mule-charset.c (Fsave_charset_properties): New function when
620         HAVE_LIBCHISE is defined.
621         (syms_of_mule_charset): Add new builtin function
622         `save-charset-properties' when HAVE_LIBCHISE is defined.
623
624 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
625
626         * chartab.c (Fput_char_attribute): Convert char-specs in value of
627         `{<-|->}ancient[^*]*' to characters and put reverse links.
628         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
629         for `{<-|->}ancient[^*]*'.
630
631 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
632
633         * chartab.c (Fput_char_attribute): Convert char-specs in value of
634         `{<-|->}original[^*]*' to characters and put reverse links.
635         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
636         for `{<-|->}original[^*]*'.
637
638 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
639
640         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
641
642 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
643
644         * mule-charset.c (Qsystem_char_id): New variable.
645
646         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
647         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
648
649 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
650
651         * chartab.c (Fput_char_attribute): When processing a reference of
652         a character, put into the end of the reversed reference of each
653         target character.
654
655 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
656
657         * chartab.c (Q_same): Deleted.
658         (Q_same_of): Deleted.
659         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
660         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
661         for `{<-|->}same'.
662         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
663
664 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
665
666         * chartab.c (Q_vulgar): Deleted.
667         (Q_vulgar_of): Deleted.
668         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
669         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
670         for `{<-|->}vulgar'.
671         (syms_of_chartab): Don't define `{<-|->}vulgar'.
672
673 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
674
675         * chartab.c (Fput_char_attribute): Convert char-specs in value of
676         `{<-|->}wrong[^*]*' to characters and put reverse links.
677         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
678         for `{<-|->}wrong[^*]*'.
679
680 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
681
682         * chartab.c (Q_vulgar): New variable.
683         (Q_vulgar_of): New variable.
684         (Fput_char_attribute): Convert char-specs in value of
685         `{->|<-}vulgar' to characters and put reverse links.
686         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
687         for `{->|<-}vulgar'.
688         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
689
690 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
691
692         * text-coding.c (decode_add_er_char): Must to quote prefix string
693         as regexp.
694
695 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
696
697         * mule-charset.c (put_char_ccs_code_point): Store characters of
698         =ucs whose code_points >= 0xF0000.
699
700 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
701
702         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
703         CHISE.
704         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
705         CHISE.
706         (complex_vars_of_mule_charset): Add new coded-charset
707         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
708         builtin characters over 0xEFFFF.
709
710         * chartab.c (syms_of_chartab): Don't define symbol
711         `system-char-id' in every case.
712
713         * char-ucs.h (Qsystem_char_id): New extern variable.
714         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
715
716 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
717
718         * text-coding.c (char_encode_utf8): Try to use entity-references
719         for U-000F0000 ...  U-0010FFFF.
720
721 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
722
723         * text-coding.c (ER_BUF_SIZE): New macro.
724         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
725         `er_buf'.
726         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
727         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
728
729 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
730
731         * chartab.c (find_char_feature_in_family): New function.
732         (Fchar_feature): Use `find_char_feature_in_family' with
733         `->identical', `<-subsumptive' and `<-denotational'.
734
735 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
736
737         * text-coding.c (char_encode_as_entity_reference): Allow prefix
738         within 8 characters; fix infinite loop.
739
740 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
741
742         * chartab.c (Q_same): New variable.
743         (Q_same_of): New variable.
744         (Fput_char_attribute): Convert char-specs in value of
745         `{->|<-}same' to characters and put reverse links.
746         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
747         for `{->|<-}same'.
748         (syms_of_chartab): Add new symbols `{->|<-}same'.
749
750 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
751
752         * chartab.c (Q_component): New variable.
753         (Q_component_of): Likewise.
754         (Fput_char_attribute): Convert char-specs in value of
755         `{->|<-}ideographic-component-forms' to characters and put reverse
756         links.
757         (syms_of_chartab): Add new symbols
758         `{->|<-}ideographic-component-forms'.
759
760 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
761
762         * chartab.c (Q_identical): New variable.
763         (Q_identical_from): New variable.
764         (Fchar_feature): Regard `->identical' as a feature to find
765         ancestors.
766         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
767         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
768         for `{->|<-}identical'.
769         (syms_of_chartab): Add new symbols `{->|<-}identical'.
770
771 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
772
773         * char-ucs.h (encode_char_2): New inline function.
774         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
775
776 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
777
778         * chartab.c (Fput_char_attribute): Convert char-specs to
779         characters in value of `ideographic-structure'.
780         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
781         for `{<-|->}simplified(@...)'.
782         (Fdefine_char): Try to use predefined character's id.
783
784 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
785
786         * fns.c (simplify_char_spec): Try to convert builtin chars to
787         defined chars.
788
789 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
790
791         * chartab.c (Fput_char_attribute): Convert char-specs in value of
792         `<-simplified[^*]*' to characters and put reverse links.
793
794 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
795
796         * chartab.c (Q_subsumptive): Renamed from Q_unified.
797         (Q_subsumptive_from): Renamed from Q_unified_from.
798         (Fchar_feature): Use `Q_subsumptive_from' instead of
799         `Q_unified_from'.
800         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
801         `Q_unified'.
802         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
803         `<-unified' to `<-subsumptive'.
804
805 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
806
807         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
808         inheritance itself; fix typo; stop recursive search if cyclic
809         inheritance is found.
810
811 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
812
813         * chartab.c (Q_denotational): New variable.
814         (Q_denotational_from): New variable.
815         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
816         (put_char_attribute): New function.
817         (Fput_char_attribute): Use `put_char_attribute'; regard
818         `->denotational' and `<-denotational' as same as `->unified' and
819         `<-unified'.
820         (syms_of_chartab): Add new symbols `->denotational' and
821         `<-denotational'.
822
823 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
824
825         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
826         `Fget_char_attribute'.
827         (Fchar_variants): Likewise.
828         (get_char_table): Likewise.
829         (Fchar_feature): New function.
830         (put_char_composition): Use `Fchar_feature' instead of
831         `Fget_char_attribute'.
832         (Fput_char_attribute): Likewise; don't put the target character
833         into its `->unified' value.
834         (syms_of_chartab): Add new builtin function `char-feature'.
835
836 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
837
838         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
839         `Fget_char_attribute'.
840         (char_encode_utf8): Likewise.
841
842         * chartab.h: Add an EXFUN for `Fchar_feature'.
843
844 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
845
846         * chartab.c (Vnext_defined_char_id): New variable.
847         (Fput_char_attribute): Accept characters in `->unified'.
848         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
849         new characters which are not related with builtin char-id ranges.
850         (vars_of_chartab): Add new variable `next-defined-char-id'.
851
852 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
853
854         * chartab.c (Q_unified): New variable.
855         (Q_unified_from): New variable.
856         (Fput_char_attribute): Add code for `->unified'.
857         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
858         XEmacs CHISE.
859
860 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
861
862         * mule-charset.c (decode_ccs_conversion): New function.
863         (decode_defined_char): Use `decode_ccs_conversion'.
864         (decode_builtin_char): Likewise.
865
866 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
867
868         * char-ucs.h: Change some charset-ids of private coded-charsets.
869
870 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
871
872         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
873         (char_encode_as_entity_reference): Likewise.
874         (decode_coding_big5): Modify for `decode_defined_char' and
875         `DECODE_CHAR'.
876         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
877         avoid compiler warning.
878         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
879
880         * mule-charset.c (decode_defined_char): Add new argument
881         `without_inheritance'.
882         (Fdecode_char): Add new optional argument `without_inheritance'.
883         (Fdecode_builtin_char): Modify for `Fdecode_char'.
884
885         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
886         (simplify_char_spec): Likewise.
887
888         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
889         setting.
890
891         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
892         (map_char_table): Likewise.
893         (Fdefine_char): Use `Fdecode_char' without inheritance.
894         (Ffind_char): Modify for `Fdecode_char'.
895
896         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
897
898         * char-ucs.h (decode_defined_char): Add new argument
899         `without_inheritance'.
900         (DECODE_CHAR): Likewise.
901         (MAKE_CHAR): Modify for `DECODE_CHAR'.
902
903 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
904
905         * chartab.c (Vchise_system_db_directory): New variable.
906         (vars_of_chartab): Add new variable `chise-system-db-directory'.
907
908 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
909
910         * chartab.c: EXFUN `Fmount_char_attribute_table'.
911         (print_chartab_range): Don't define when `UTF2000' is defined.
912         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
913         `CHISE_DS_open'.
914
915 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
916
917         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
918         and optional argument `rehash' is specified, call
919         `open_chise_data_source_maybe' before
920         `chise_ds_foreach_char_feature_name' is called.
921
922 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
923
924         * chartab.c (char_attribute_list_reset_map_func): New function
925         when HAVE_LIBCHISE is defined.
926         (Fchar_attribute_list): Add new optional argument `rehash' when
927         HAVE_LIBCHISE is defined.
928         (open_chise_data_source_maybe): Use "chise-db" instead of
929         "char-db".
930         (char_attribute_system_db_file): Likewise.
931         (Fload_char_attribute_table): Use
932         `chise_feature_foreach_char_with_value' instead of
933         `chise_char_feature_value_iterate'.
934
935 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
936
937         * chartab.c (Vchise_db_directory): New variable.
938         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
939
940 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
941
942         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
943         instead of HAVE_CHISE to specify using with libchise.
944
945         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
946
947         * chartab.h: Don't use HAVE_CHISE_CLIENT.
948
949         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
950         defined or HAVE_LIBCHISE_LIBCHISE is defined.
951         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
952         is defined.
953         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
954         HAVE_CHISE to specify using with libchise.
955         (syms_of_chartab): Don't define symbol `system-char-id' when
956         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
957
958 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
959
960         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
961         specify CHISE DB support.
962         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
963         of `char_attribute_system_db_file' to check feature DB file.
964
965         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
966         HAVE_CHISE_CLIENT to specify CHISE DB support.
967
968         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
969         specify CHISE DB support.
970         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
971         not defined.
972         (Freset_char_attribute_table): Use `chise_feature_setup_db'
973         instead of `char_attribute_system_db_file' to check feature DB
974         file.
975
976 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
977
978         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
979         `HAVE_CHISE_CLIENT'.
980
981 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
982
983         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
984         (Fsave_charset_mapping_table): Don't use
985         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
986
987         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
988         (HAVE_LIBCHISE): New macro.
989
990         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
991
992         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
993         (Fsave_char_attribute_table): Don't use
994         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
995
996 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
997
998         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
999         defined.
1000         (save_uint16_byte_table): Likewise.
1001         (save_byte_table): Likewise.
1002         (char_table_get_db): Use `chise_ds_load_char_feature_value'
1003         instead of `chise_char_load_feature_value'.
1004         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
1005
1006 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1007
1008         * chartab.h (struct Lisp_Char_Table): Delete member
1009         `feature_table' if CHISE is defined.
1010
1011         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
1012         (Fcopy_char_table): Likewise.
1013         (char_table_open_db_maybe): Likewise.
1014         (char_table_close_db_maybe): Likewise.
1015         (char_table_get_db): Likewise.
1016         (Fmount_char_attribute_table): Likewise.
1017         (Fload_char_attribute_table): Likewise.
1018
1019 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1020
1021         * mule-charset.c (load_char_decoding_entry_maybe): Use
1022         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
1023         `chise_ccs_decode'.
1024
1025 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1026
1027         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
1028         instead of `chise_open_data_source'.
1029         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
1030         `chise_ds_close'.
1031
1032 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1033
1034         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
1035         instead of `chise_ds_open_feature_table'.
1036         (char_table_close_db_maybe): Don't use `chise_ft_close'.
1037
1038 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1039
1040         * mule-charset.c (Fsave_charset_mapping_table): Use
1041         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
1042         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
1043         `chise_ccs_sync' instead of `chise_ccst_close'.
1044         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
1045
1046         * chartab.c (open_chise_data_source_maybe): Modify for
1047         `chise_open_data_source'.
1048         (char_table_open_db_maybe): Modify for
1049         `chise_ds_open_feature_table'.
1050
1051 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1052
1053         * mule-charset.c (load_char_decoding_entry_maybe): Use
1054         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
1055         `chise_ccst_close'.
1056
1057 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1058
1059         * mule-charset.c (Fsave_charset_mapping_table): Use
1060         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
1061         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
1062         `chise_dt_put_char' and `chise_dt_close'.
1063         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1064         `chise_ccs_decode' and `chise_ccst_close' instead of
1065         `chise_ds_open_decoding_table', `chise_dt_get_char' and
1066         `chise_dt_close'.
1067
1068         * chartab.c (char_table_get_db): Use
1069         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1070         (load_char_attribute_table_map_func): Modify for
1071         `chise_char_feature_value_iterate'.
1072         (Fload_char_attribute_table): Use
1073         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1074
1075 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1076
1077         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1078
1079 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1080
1081         * chartab.c (put_char_table): Modify for inherited coded-charsets
1082         in XEmacs CHISE.
1083
1084 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1085
1086         * chartab.c (Fput_char_table_map_function): Fixed.
1087         (word_boundary_p): Don't check charset in XEmacs CHISE.
1088
1089 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1090
1091         * mule-charset.c (Fsave_charset_mapping_table): Use
1092         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1093         instead of `chise_open_decoding_table'; refer
1094         `default_chise_data_source'; use `chise_dt_close' instead of
1095         `chise_close_decoding_table'.
1096         (load_char_decoding_entry_maybe): Likewise.
1097
1098         * chartab.c (default_chise_data_source): New variable when `CHISE'
1099         is defined.
1100         (Fcopy_char_table): `ct->ds' is deleted.
1101         (open_chise_data_source_maybe): New function.
1102         (Fclose_char_data_source): New function.
1103         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1104         use `chise_ds_open_feature_table' instead of
1105         `chise_open_feature_table'.
1106         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1107         `chise_close_feature_table'; `cit->ds' is deleted.
1108         (syms_of_chartab): Add new builtin function
1109         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1110
1111         * chartab.h (default_chise_data_source): New extern variable.
1112         (open_chise_data_source_maybe): New prototype.
1113         (struct Lisp_Char_Table): Delete `ds'.
1114
1115 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1116
1117         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1118         `CHISE' is defined.
1119
1120 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1121
1122         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1123         not defined; add code for non-libchise setting.
1124         (char_table_close_db_maybe): Likewise.
1125         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1126         defined.
1127         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1128         even if `CHISE' is not defined.
1129         (Freset_char_attribute_table): Likewise.
1130         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1131         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1132         `char_table_get_db'.
1133         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1134         `char_table_close_db_maybe' even if `CHISE' is not defined.
1135
1136 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1137
1138         * chartab.c (char_table_open_db_maybe): New function.
1139         (char_table_close_db_maybe): New function.
1140         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1141         (Freset_char_attribute_table): Likewise.
1142         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1143         `char_table_close_db_maybe'.
1144         (Fload_char_attribute_table): Likewise.
1145
1146 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1147
1148         * chartab.c: Don't include <chise.h> because it is included in
1149         chartab.h.
1150         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1151         defined.
1152         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1153         `CHISE' is defined.
1154         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1155         `CHISE' is defined.
1156         (Fclose_char_attribute_table): Close `ct->feature_table' and
1157         `ct->ds' when `CHISE' is defined.
1158         (Freset_char_attribute_table): Likewise.
1159         (load_char_attribute_maybe): Use `cit->ds' and
1160         `cit->feature_table' when `CHISE' is defined.
1161         (Fload_char_attribute_table): Likewise.
1162
1163         * chartab.h: Include <chise.h> when `CHISE' is defined.
1164         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1165         when `CHISE' is defined.
1166
1167 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1168
1169         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1170         is defined.
1171         (char_table_description): Likewise.
1172         (Fmake_char_table): Likewise.
1173         (Fcopy_char_table): Likewise.
1174         (Fmount_char_attribute_table): Likewise.
1175         (Fclose_char_attribute_table): Likewise.
1176         (Freset_char_attribute_table): Likewise.
1177         (load_char_attribute_maybe): Likewise.
1178         (Fload_char_attribute_table): Likewise.
1179
1180         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1181         defined.
1182
1183 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1184
1185         * chartab.c (load_char_attribute_table_map_func): New function
1186         when CHISE is defined.
1187         (Qload_char_attribute_table_map_function): Don't define when CHISE
1188         is defined.
1189         (Fload_char_attribute_table_map_function): Likewise.
1190         (Fload_char_attribute_table): Use libchise when `CHISE' is
1191         defined.
1192         (syms_of_chartab): Don't define
1193         `load-char-attribute-table-map-function' when CHISE is defined.
1194
1195 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1196
1197         * chartab.c: Include <chise.h> when `CHISE' is defined.
1198         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1199
1200 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1201
1202         * mule-charset.c (charset_code_point): Fix problem when searching
1203         in mother CCS fails with `defined_only' mode.
1204
1205 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1206
1207         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1208         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1209         (put_char_composition): Likewise.
1210         (Fput_char_attribute): Likewise.
1211         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1212
1213 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1214
1215         * chartab.c (Q_ucs): Deleted.
1216         (Fput_char_attribute): Don't refer `->ucs'.
1217         (Fdefine_char): Likewise.
1218         (Ffind_char): Likewise.
1219         (syms_of_chartab): Delete `->ucs'.
1220
1221 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1222
1223         * mule-charset.c (Qmap_cns11643_2): Renamed from
1224         `Qchinese_cns11643_2'.
1225         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1226         `chinese-cns11643-2'.
1227         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1228         `=cns11643-2'.
1229
1230 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1231
1232         * mule-charset.c (Qmap_cns11643_1): Renamed from
1233         `Qchinese_cns11643_1'.
1234         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1235         `chinese-cns11643-1'.
1236         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1237         `=cns11643-1'.
1238
1239 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1240
1241         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1242         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1243         `chinese-gb12345'.
1244         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1245         `=gb12345'.
1246
1247 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1248
1249         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1250         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1251         `chinese-gb2312'.
1252         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1253         `=gb2312'.
1254
1255 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1256
1257         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1258         (syms_of_mule_charset): Add new symbol `=big5' instead of
1259         `chinese-big5'.
1260         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1261
1262 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1263
1264         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1265         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1266         `korean-ksc5601'.
1267         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1268         `=ks-x1001'.
1269
1270 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1271
1272         * mule-charset.c (Qmap_jis_x0212): Renamed from
1273         `Qjapanese_jisx0212'.
1274         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1275         `japanese-jisx0212'.
1276         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1277         `=jis-x0212'.
1278
1279 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1280
1281         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1282         `Qjapanese_jisx0208'.
1283         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1284         of `japanese-jisx0208'.
1285         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1286         `=jis-x0208-1983'.
1287
1288 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1289
1290         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1291         `Qjapanese_jisx0208_1978'.
1292         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1293         of `japanese-jisx0208-1978'.
1294         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1295         `=jis-x0208-1978'.
1296
1297 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1298
1299         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1300         only for XEmacs CHISE.
1301
1302 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1303
1304         * char-ucs.h: Compact non-ISO-IR charset-ids.
1305         (LEADING_BYTE_UCS): Changed to -177.
1306         (LEADING_BYTE_CONTROL_1): Changed to -77.
1307         (LEADING_BYTE_UCS_BMP): Changed to -176.
1308         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1309
1310 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1311
1312         * mule-charset.c (Qiso_ir): New variable.
1313         (Fmake_charset): Recognise new property `iso-ir'.
1314         (syms_of_mule_charset): Add new symbol `iso-ir'.
1315
1316 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1317
1318         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1319         n to -n; charset-id of non ISO-IR sets are changed to positive
1320         numbers.
1321
1322 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1323
1324         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1325         for &MCS-XXXXXXXX; values.
1326
1327 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1328
1329         * mule.c (Vxemacs_chise_version): Renamed from
1330         `Vutf_2000_version'.
1331         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1332         `utf-2000-version' as an alias for `xemacs-chise-version'.
1333
1334 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1335
1336         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1337         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1338         defined.
1339
1340         * config.h.in (CHISE): New macro.
1341
1342 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1343
1344         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1345         of `ucs'.
1346         (Qmap_ucs): New variable.
1347         (syms_of_mule_charset): Add new symbol `=ucs'.
1348         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1349
1350         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1351         (simplify_char_spec): Likewise.
1352
1353         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1354
1355         * char-ucs.h (Qmap_ucs): New extern variable.
1356
1357 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1358
1359         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1360         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1361         don't define it when UTF2000 is not defined.
1362         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1363         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1364         when UTF2000 is not defined.
1365         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1366         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1367
1368 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1369
1370         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1371
1372         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1373         (Qucs_gb): Deleted.
1374         (syms_of_mule_charset): Delete `ucs-gb'.
1375         (complex_vars_of_mule_charset): Likewise.
1376
1377 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1378
1379         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1380
1381         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1382         (Qucs_cns): Deleted.
1383         (syms_of_mule_charset): Delete `ucs-cns'.
1384         (complex_vars_of_mule_charset): Likewise.
1385
1386 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1387
1388         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1389
1390         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1391         (Qucs_jis): Deleted.
1392         (syms_of_mule_charset): Delete `ucs-jis'.
1393         (complex_vars_of_mule_charset): Likewise.
1394
1395 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1396
1397         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1398
1399         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1400         (Qucs_ks): Deleted.
1401         (syms_of_mule_charset): Delete `ucs-ks'.
1402         (complex_vars_of_mule_charset): Likewise.
1403
1404 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1405
1406         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1407         (Qideograph_daikanwa_2): Deleted.
1408         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1409         (complex_vars_of_mule_charset): Likewise.
1410
1411         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1412         (LEADING_BYTE_DAIKANWA_1): Deleted.
1413         (LEADING_BYTE_DAIKANWA_2): Deleted.
1414         (MIN_CHAR_DAIKANWA): Deleted.
1415         (MAX_CHAR_DAIKANWA): Deleted.
1416
1417 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1418
1419         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1420         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1421         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1422
1423         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1424         (Vcharset_ideograph_daikanwa): Deleted.
1425         (Qideograph_hanziku_{1..12}): Deleted.
1426         (Qideograph_daikanwa): Deleted.
1427         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1428         Vcharset_ideograph_daikanwa.
1429         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1430         `ideograph-hanziku-{1..12}'.
1431         (complex_vars_of_mule_charset): Likewise.
1432
1433 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1434
1435         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1436
1437         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1438         (Qideograph_gt_pj_{1..11}): Deleted.
1439         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1440         (complex_vars_of_mule_charset): Likewise.
1441
1442 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1443
1444         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1445         (Vcharset_ideograph_gt): Deleted.
1446         (Qucs_big5): Deleted.
1447         (Qideograph_gt): Deleted.
1448         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1449         `ideograph-gt'.
1450         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1451         and `ideograph-gt'.
1452
1453         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1454         (LEADING_BYTE_GT): Deleted.
1455         (MIN_CHAR_GT): Deleted.
1456         (MAX_CHAR_GT): Deleted.
1457
1458 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1459
1460         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1461
1462 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1463
1464         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1465         (save_uint16_byte_table): Likewise.
1466         (save_byte_table): Likewise; convert values by it.
1467         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1468         for `ideographic-structure'.
1469         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1470         as the filter for `ideographic-structure'.
1471
1472 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1473
1474         * chartab.c (put_char_composition): New function.
1475         (Fput_char_attribute): Use `put_char_composition'; use
1476         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1477
1478         * fns.c (simplify_char_spec): New function.
1479         (char_ref_simplify_spec): New function.
1480         (Fchar_refs_simplify_char_specs): New function.
1481         (syms_of_fns): Add new builtin function
1482         `char-refs-simplify-char-specs'.
1483
1484 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1485
1486         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1487         (Qideograph_cbeta): Deleted.
1488         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1489         (complex_vars_of_mule_charset): Likewise.
1490
1491         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1492         (MIN_CHAR_CBETA): Comment out.
1493         (MAX_CHAR_CBETA): Likewise.
1494
1495 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1496
1497         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1498         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1499         CHISE client feature.
1500
1501 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1502
1503         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1504
1505 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1506
1507         * mule-charset.c (charset_lookup_description_1): Use
1508         `NUM_LEADING_BYTES' in UTF-2000.
1509
1510 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1511
1512         * char-ucs.h (GC_CHARSETP): Deleted.
1513
1514 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1515
1516         * char-ucs.h (MAX_CHAR_GT): Updated.
1517
1518 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1519
1520         * text-coding.c: Sync with XEmacs 21.4.10.
1521
1522 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1523
1524         * mule-charset.c (Vcharset_china3_jef): Deleted.
1525         (Qchina3_jef): Deleted.
1526         (syms_of_mule_charset): Don't define `china3-jef'.
1527         (complex_vars_of_mule_charset): Likewise.
1528
1529         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1530         (MIN_CHAR_CHINA3_JEF): Comment out.
1531         (MAX_CHAR_CHINA3_JEF): Comment out.
1532
1533 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1534
1535         * mule-charset.c (Vcharset_ucs_gb): New variable.
1536         (Qucs_gb): New variable.
1537         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1538         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1539
1540         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1541
1542 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1543
1544         * mule-charset.c (charset_code_point): if a coded-charset has a
1545         final-byte, don't inherit the builtin range of the mother CCS.
1546
1547 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1548
1549         * mule-charset.c (charset_code_point): Fix problem about
1550         inheritance.
1551
1552 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1553
1554         * mule-charset.c (decode_builtin_char): Reorganized.
1555
1556 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1557
1558         * text-coding.c (char_encode_as_entity_reference): Modify for
1559         `charset_code_point'.
1560         (char_encode_shift_jis): Likewise.
1561         (char_encode_big5): Likewise.
1562         (char_encode_utf8): Likewise.
1563         (char_encode_iso2022): Likewise.
1564
1565         * mule-charset.c (charset_code_point): Add new argument
1566         `defined_only'.
1567         (Fencode_char): Add new optional argument `defined_only'.
1568
1569         * chartab.c (put_char_table): Modify for `charset_code_point'.
1570
1571         * char-ucs.h (charset_code_point): Add new argument
1572         `defined_only'.
1573         (encode_char_1): Modify for `charset_code_point'.
1574
1575 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1576
1577         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1578         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1579
1580 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1581
1582         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1583         (Qjis_x0208): Likewise.
1584         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1585         XCHARSET_FINAL(charset).
1586         (charset_code_point): Modify condition for final-byte based
1587         builtin-chars.
1588         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1589         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1590         in UTF-2000; specify `=jis-x0208' as the mother of
1591         `japanese-jisx0208-1978', `japanese-jisx0208' and
1592         `japanese-jisx0208-1990' in UTF-2000.
1593
1594 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1595
1596         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1597
1598 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1599
1600         * text-coding.c (decode_coding_utf16): Support UTF-16.
1601         (char_encode_utf16): Fixed.
1602
1603 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1604
1605         * text-coding.c (Qutf16): New variable in MULE.
1606         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1607         (Fcoding_system_type): Add `utf-16' in MULE.
1608         (struct detection_state): Add a structure for utf16 in MULE.
1609         (detect_coding_type): Setup st->utf16.mask in MULE.
1610         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1611         MULE.
1612         (reset_encoding_stream): Use `char_encode_utf16' and
1613         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1614         (detect_coding_utf16): New function [incomplete].
1615         (decode_coding_utf16): New function [support only UCS-2].
1616         (char_encode_utf16): New function.
1617         (char_finish_utf16): New function.
1618         (syms_of_file_coding): Add new symbol `utf-16'; setup
1619         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1620
1621         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1622         UTF-2000.
1623         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1624         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1625
1626 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1627
1628         * chartab.c (put_char_table): When a charset is specified as a
1629         range in UTF-2000, don't support builtin characters.
1630
1631 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1632
1633         * mule-charset.c (decode_defined_char): Don't refer external
1634         database if Qunbound or Qnil are found.
1635         (Fsave_charset_mapping_table): Don't define it if
1636         HAVE_CHISE_CLIENT is not defined.
1637         (Freset_charset_mapping_table): New function.
1638         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1639         found in external database.
1640         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1641         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1642         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1643
1644 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1645
1646         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1647         not.
1648
1649 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1650
1651         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1652         Q_lowercase, Q_uppercase in UTF-2000.
1653
1654         * chartab.c (get_char_table): Add special code for the standard
1655         case table to use character attribute `->downcase' and
1656         `->uppercase' for case operations in UTF-2000.
1657
1658         * casetab.c (Qflippedcase): New variable in UTF-2000.
1659         (Q_lowercase): Likewise.
1660         (Q_uppercase): Likewise.
1661         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1662         and `->uppercase' in UTF-2000.
1663         (complex_vars_of_casetab): Assign attribute name `downcase' to
1664         downcase and CANON table of Vstandard_case_table in UTF-2000;
1665         assign attribute name `flippedcase' to upcase and EQV table of
1666         Vstandard_case_table in UTF-2000.
1667
1668 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1669
1670         * text-coding.c (decode_add_er_char): Support isolated-chars.
1671         (char_encode_as_entity_reference): Likewise.
1672
1673 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1674
1675         * emacs.c (Vutf_2000_lisp_directory): New variable.
1676         (Vconfigure_utf_2000_lisp_directory): Likewise.
1677         (complex_vars_of_emacs): Add new variable
1678         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1679
1680 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1681
1682         * char-ucs.h (DECODE_CHAR): Delete special code for
1683         `chinese-big5-1' and `chinese-big5-2'.
1684
1685         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1686         (Qbig5_2): Likewise.
1687         (decode_defined_char): Support CONVERSION_BIG5_1 and
1688         CONVERSION_BIG5_2.
1689         (decode_builtin_char): Likewise.
1690         (charset_code_point): Likewise.
1691         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1692         'conversion in UTF-2000.
1693         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1694         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1695         `chinese-big5-2' as children of `chinese-big5'.
1696
1697         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1698         (CONVERSION_BIG5_2): New macro.
1699
1700 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1701
1702         * text-coding.c (char_encode_big5): Support entity-reference.
1703
1704 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1705
1706         * text-coding.c (char_encode_as_entity_reference): New function.
1707         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1708
1709 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1710
1711         * text-coding.c (decode_coding_big5): Support entity-reference
1712         decoding feature.
1713
1714 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1715
1716         * text-coding.c (allocate_coding_system): Initialize initial
1717         charsets for CODESYS_UTF8.
1718         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1719         charset-g2 for CODESYS_UTF8.
1720         (decode_coding_utf8): Use charset-g0.
1721         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1722         to force variants to map to UCS.
1723
1724 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1725
1726         * text-coding.c (Qutf_8_mcs): New variable.
1727         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1728         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1729         instead of `utf-8' in UTF-2000.
1730
1731 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1732
1733         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1734         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1735         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1736         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1737         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1738         CONVERSION_96x96x96x96 are introduced.
1739         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1740         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1741         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1742
1743         * char-ucs.h (CONVERSION_94): New macro.
1744         (CONVERSION_96): New macro.
1745         (CONVERSION_94x94): New macro.
1746         (CONVERSION_96x96): New macro.
1747         (CONVERSION_94x94x94): New macro.
1748         (CONVERSION_96x96x96): New macro.
1749         (CONVERSION_94x94x94x60): New macro.
1750         (CONVERSION_94x94x94x94): New macro.
1751         (CONVERSION_96x96x96x96): New macro.
1752
1753 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1754
1755         * chartab.c (Vcharacter_variant_table): Deleted.
1756         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1757         of `Vcharacter_variant_table'.
1758         (Fput_char_attribute): Likewise.
1759         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1760         (complex_vars_of_chartab): Likewise.
1761
1762 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1763
1764         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1765
1766         * fns.c (Qideographic_structure): New variable.
1767         (Qkeyword_char): New variable.
1768         (ids_format_unit): New function.
1769         (Fideographic_structure_to_ids): New function.
1770         (syms_of_fns): Add new symbols `ideographic-structure' and
1771         `:char'; add new builtin function `ideographic-structure-to-ids'.
1772
1773         * data.c (Fchar_ref_p): New function.
1774         (syms_of_data): Add new builtin function `char-ref-p'.
1775
1776         * chartab.h: Add an EXFUN for `Ffind_char'.
1777
1778 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1779
1780         * text-coding.c (Vcharacter_composition_table): Deleted.
1781         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1782         in every UTF-2000.
1783
1784         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1785         UTF-2000.
1786         (Vcharacter_composition_table): Deleted.
1787         (Fget_composite_char): Use the implementation for external-DB
1788         support in every UTF-2000.
1789         (Fput_char_attribute): Likewise.
1790         (char_attribute_system_db_file): Don't define if external-DB
1791         feature is not available.
1792         (Fsave_char_attribute_table): Likewise.
1793         (Fmount_char_attribute_table): Likewise.
1794         (Fclose_char_attribute_table): Likewise.
1795         (Freset_char_attribute_table): Likewise.
1796         (Fload_char_attribute_table): Likewise.
1797         (syms_of_chartab): Don't define `save-char-attribute-table',
1798         `mount-char-attribute-table', `reset-char-attribute-table',
1799         `close-char-attribute-table' and `load-char-attribute-table' if
1800         external-DB feature is not available.
1801         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1802
1803 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1804
1805         * text-coding.c (Qcomposition): Add extern if external-DB feature
1806         is supported.
1807         (Vcharacter_composition_table): Don't add extern if external-DB
1808         feature is supported.
1809         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1810         character composition rule if external-DB feature is supported.
1811
1812         * chartab.c (Vcharacter_composition_table): Don't define if
1813         external-DB feature is supported.
1814         (Qcomposition): New variable.
1815         (Fget_composite_char): New implementation for external-DB support.
1816         (Fput_char_attribute): Use `composition' property of each
1817         character instead of `Vcharacter_composition_table' to store
1818         character-composition rules if external-DB feature is supported.
1819         (syms_of_chartab): Add new symbol `composition'.
1820         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1821         external-DB feature is supported.
1822
1823 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1824
1825         * chartab.c (Vchar_db_stingy_mode): New variable.
1826         (load_char_attribute_maybe): Close database if
1827         Vchar_db_stingy_mode is not NIL.
1828         (Fload_char_attribute_table_map_function): Use
1829         `get_char_id_table_0' instead of `get_char_id_table'.
1830         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1831
1832         * chartab.h (get_char_id_table_0): New inline function.
1833         (get_char_id_table): Use `get_char_id_table_0'.
1834
1835 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1836
1837         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1838         and `COMPOSE_ADD_CHAR'.
1839         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1840
1841 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1842
1843         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1844         instead of `DECODE_ADD_UCS_CHAR'.
1845         (COMPOSE_ADD_CHAR): Likewise.
1846
1847 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1848
1849         * text-coding.c (decode_flush_er_chars): New inline function.
1850         (decode_add_er_char): New function.
1851         (decode_coding_utf8): Use `decode_flush_er_chars' and
1852         `decode_add_er_char'.
1853
1854 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1855
1856         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1857         done before `decode_output_utf8_partial_char'.
1858
1859         * mule-charset.c (complex_vars_of_mule_charset): Specify
1860         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1861         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1862
1863 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1864
1865         * mule-charset.c (decode_defined_char): New function; search
1866         mother.
1867         (decode_builtin_char): Don't search mother if
1868         XCHARSET_MAX_CODE(charset) == 0.
1869         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1870         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1871         (Fdecode_char): Use `decode_defined_char' instead of
1872         `DECODE_DEFINED_CHAR'.
1873         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1874         mother of `Vcharset_ucs_jis'.
1875
1876         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1877         instead of `DECODE_DEFINED_CHAR'.
1878
1879         * char-ucs.h (decode_defined_char): Renamed from
1880         `DECODE_DEFINED_CHAR'; changed to normal function.
1881         (DECODE_CHAR): Use `decode_defined_char' instead of
1882         `DECODE_DEFINED_CHAR'.
1883
1884         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1885
1886 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1887
1888         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1889
1890         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1891         variable.
1892         (Quse_entity_reference): New variable.
1893         (Qd): New variable.
1894         (Qx): New variable.
1895         (QX): New variable.
1896         (coding_system_description): Add description for
1897         `ccs_priority_list'.
1898         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1899         (allocate_coding_system): Initialize `ccs_priority_list' in
1900         UTF-2000.
1901         (Fmake_coding_system): Add description about
1902         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1903         (codesys).
1904         (Fcoding_system_property): Accept `disable-composition' and
1905         `use-entity-reference' in UTF-2000.
1906         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1907         in UTF-2000.
1908         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1909         (decode_coding_utf8): Decode entity-reference if
1910         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1911         (char_encode_utf8): Encode non-Unicode characters as
1912         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1913         (str->codesys).
1914         (syms_of_file_coding): Add new symbols `use-entity-reference',
1915         `d', `x', `X'.
1916         (vars_of_file_coding): Add new variable
1917         `coded-charset-entity-reference-alist'.
1918         (complex_vars_of_file_coding): Declare `disable-composition' and
1919         `use-entity-reference' to be coding-system-properties in UTF-2000.
1920
1921         * file-coding.h (struct Lisp_Coding_System): Add new member
1922         `use_entity_reference' and `ccs_priority_list'.
1923         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1924         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1925         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1926
1927 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1928
1929         * chartab.c (save_uint8_byte_table): Don't clear the table.
1930         (save_uint16_byte_table): Likewise.
1931         (save_byte_table): Likewise.
1932         (Fmount_char_attribute_table): New function.
1933         (syms_of_chartab): Add new builtin function
1934         `mount-char-attribute-table'.
1935
1936 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1937
1938         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1939         "w+" mode.
1940         (load_char_decoding_entry_maybe): Open database as read-only mode.
1941
1942         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1943         open database as "w+" mode.
1944         (load_char_attribute_maybe): Open database as read-only mode.
1945         (Fload_char_attribute_table): Likewise.
1946
1947 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1948
1949         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1950         (char_table_description): Delete member `db_file'.
1951         (Fmake_char_table): Don't refer `ct->db_file'.
1952         (Fcopy_char_table): Likewise.
1953         (Fsave_char_attribute_table): Likewise.
1954         (Fclose_char_attribute_table): Likewise.
1955         (Freset_char_attribute_table): Likewise.
1956         (load_char_attribute_maybe): Likewise.
1957         (Fload_char_attribute_table): Likewise.
1958
1959         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1960
1961 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1962
1963         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1964         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1965         `ct->db' is living.
1966         (load_char_attribute_maybe): Likewise.
1967         (Fload_char_attribute_table): Likewise.
1968
1969 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1970
1971         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1972         `ct->db_file' unconditionally.
1973
1974 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1975
1976         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1977         UTF-2000.
1978         (char_table_description): Add description for `db_file' and `db'
1979         in UTF-2000.
1980         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1981         UTF-2000.
1982         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1983         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1984         (Fclose_char_attribute_table): New function.
1985         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1986         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1987         and `cit->db'.
1988         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1989         (syms_of_chartab): Add new builtin function
1990         `Fclose_char_attribute_table'.
1991
1992 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1993
1994         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1995         `db' in UTF-2000.
1996         (load_char_attribute_maybe): Change interface.
1997         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1998
1999 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2000
2001         * database.h: Add an EXFUN for `Fdatabase_live_p'.
2002
2003 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2004
2005         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
2006         instead of `DECODE_CHAR' for mother; don't use special code for
2007         chinese-big5 to use code space of chinese-big5-1 and
2008         chinese-big5-2.
2009         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
2010         `MAX_CHAR_BIG5_CDP' for chinese-big5.
2011
2012         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
2013         (MAX_CHAR_BIG5_CDP): Revival.
2014
2015 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2016
2017         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
2018         the XLFD registry-encoding name of `chinese-big5'.
2019
2020 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2021
2022         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
2023         (Qchinese_big5_cdp): Deleted.
2024         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
2025         (complex_vars_of_mule_charset): Delete coded-charset
2026         `chinese-big5-cdp'.
2027
2028         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
2029         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
2030         `CHARSET_ID_OFFSET - n' for private CCS.
2031         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
2032         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
2033         of `MIN_LEADING_BYTE'.
2034         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
2035         `(CHARSET_ID_OFFSET - 97)'.
2036         (MIN_CHAR_BIG5_CDP): Deleted.
2037         (MAX_CHAR_BIG5_CDP): Deleted.
2038
2039 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2040
2041         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
2042
2043 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2044
2045         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
2046         (vars_of_mule): Add new variable `utf-2000-version' [moved from
2047         chartab.c].
2048
2049         * chartab.c (Vutf_2000_version): Moved to mule.c.
2050         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
2051
2052 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2053
2054         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
2055         when HAVE_CHISE_CLIENT is not defined.
2056
2057         * mule.c (vars_of_mule): Provide feature `chise' when
2058         HAVE_CHISE_CLIENT is defined.
2059
2060 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2061
2062         * config.h.in (UTF2000): Add comment.
2063         (HAVE_CHISE_CLIENT): New macro.
2064
2065 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2066
2067         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2068         CONSP.
2069         (Fput_char_attribute): Likewise.
2070         (char_attribute_system_db_file): Encode file-name of attribute.
2071         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2072         the initial value.
2073
2074 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2075
2076         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2077         (Fsave_charset_mapping_table): Use
2078         `char_attribute_system_db_file'.
2079         (load_char_decoding_entry_maybe): Likewise.
2080
2081         * chartab.h (Qsystem_char_id): New external variable.
2082         (char_attribute_system_db_file): New prototype.
2083
2084         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2085         (char_attribute_system_db_file): New function.
2086         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2087         (Freset_char_attribute_table): Likewise.
2088         (load_char_attribute_maybe): Likewise.
2089         (Fload_char_attribute_table): Likewise.
2090         (syms_of_chartab): Add new symbol `system-char-id'.
2091
2092 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2093
2094         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2095         `XCHARSET_GRAPHIC(ccs)'.
2096
2097 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2098
2099         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2100
2101 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2102
2103         * chartab.c (Q_ucs_variants): New variable.
2104         (syms_of_chartab): Add new symbol `->ucs-variants'.
2105         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2106         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2107         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2108
2109         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2110
2111         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2112         `HAVE_DATABASE' is defined.
2113         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2114         `HAVE_DATABASE' is defined.
2115
2116 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2117
2118         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2119         attribute-table.
2120         (Freset_char_attribute_table): New function.
2121         (syms_of_chartab): Add new builtin function
2122         `reset-char-attribute-table'.
2123
2124 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2125
2126         * chartab.c (load_char_attribute_maybe): Don't make directories.
2127
2128 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2129
2130         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2131
2132         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2133         for decoding-table.
2134
2135 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2136
2137         * mule-charset.c (Fsave_charset_mapping_table): Use
2138         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2139
2140         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2141         instead of `XCHARSET_CHARS'.
2142
2143 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2144
2145         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2146         (XCHARSET_BYTE_SIZE): Likewise.
2147
2148         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2149         mule-charset.c].
2150         (XCHARSET_BYTE_SIZE): Likewise.
2151
2152 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2153
2154         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2155         data-directory to store database.
2156         (Fsave_char_attribute_table): Likewise.
2157         (load_char_attribute_maybe): Likewise.
2158         (Fload_char_attribute_table): Likewise.
2159
2160 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2161
2162         * mule-charset.c (Fsave_charset_mapping_table): New function.
2163         (syms_of_mule_charset): Add new builtin function
2164         `save-charset-mapping-table'.
2165
2166 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2167
2168         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2169         (get_ccs_octet_table): New inline function.
2170         (put_ccs_octet_table): Likewise.
2171         (decoding_table_put_char): Use `get_ccs_octet_table' and
2172         `put_ccs_octet_table'.
2173         (decoding_table_remove_char): Use `decoding_table_put_char'.
2174         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2175
2176         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2177         into encoding_table.
2178         (make_charset): Use Qunbound instead Qnil as initial value of
2179         decoding_table.
2180
2181 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2182
2183         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2184         element is Qunloaded.
2185         (map_over_uint16_byte_table): Likewise.
2186         (map_over_byte_table): Likewise.
2187         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2188         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2189         database support, load encoding-table of the specified
2190         coded-charset if it is not loaded yet.
2191         (save_uint8_byte_table): New function of UTF-2000 with external
2192         database support.
2193         (save_uint16_byte_table): Likewise.
2194         (save_byte_table): Likewise.
2195         (Fput_char_attribute): Don't store value into external database
2196         even if the external database feature is supported in UTF-2000;
2197         set `attribute' as name of char-table if the external database
2198         feature is supported.
2199         (Fsave_char_attribute_table): New function in UTF-2000.
2200         (syms_of_chartab): Add new builtin function
2201         `save-char-attribute-table' in UTF-2000.
2202
2203 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2204
2205         * chartab.c (char_attribute_table_to_put): New variable in
2206         UTF-2000.
2207         (Qput_char_table_map_function): Likewise.
2208         (value_to_put): Likewise.
2209         (Fput_char_table_map_function): New function in UTF-2000.
2210         (put_char_table): Use `Fmap_char_attribute' for
2211         CHARTAB_RANGE_CHARSET in UTF-2000.
2212         (Fput_char_attribute): Store symbol instead of string in
2213         `XCHAR_TABLE_NAME (table)'.
2214         (load_char_attribute_maybe): Likewise.
2215         (syms_of_chartab): Add new symbol/function
2216         `put-char-table-map-function'.
2217
2218 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2219
2220         * database.h: Add new EXFUN for `Fmap_database'.
2221
2222         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2223         (syms_of_database): Likewise.
2224
2225         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2226         UTF-2000.
2227         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2228         (XCHAR_TABLE_UNLOADED): Likewise.
2229
2230         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2231         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2232         HAVE_DATABASE is defined.
2233         (char_attribute_table_to_load): New variable of UTF-2000 with
2234         external database support.
2235         (Qload_char_attribute_table_map_function): Likewise.
2236         (Fload_char_attribute_table_map_function): New function of
2237         UTF-2000 with external database support.
2238         (Fload_char_attribute_table): New function of UTF-2000.
2239         (Fmap_char_attribute): Call Fload_char_attribute_table if
2240         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2241         (syms_of_chartab): Add new symbol and function
2242         `load-char-attribute-table-map-function' in UTF-2000 with external
2243         database support; add new function `load-char-attribute-table' in
2244         UTF-2000.
2245
2246 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2247
2248         * chartab.h (load_char_attribute_maybe): New prototype for
2249         UTF-2000 with DATABASE support.
2250         (get_char_id_table): Use `load_char_attribute_maybe' if
2251         HAVE_DATABASE is defined.
2252
2253         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2254         with DATABASE support.
2255
2256 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2257
2258         * chartab.c (Fput_char_attribute): Use S-expression as key of
2259         external database.
2260
2261         * chartab.h (get_char_id_table): Use S-expression as key of
2262         external database.
2263
2264 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2265
2266         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2267         if an element is not loaded, load the corresponding attributes
2268         from an external database.
2269         (map_over_uint16_byte_table): Likewise.
2270         (map_over_byte_table): Likewise.
2271         (map_char_table): Modify for `map_over_uint8_byte_table',
2272         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2273         element is not loaded, load the corresponding attributes from an
2274         external database.
2275         (Fput_char_attribute): Change initial values to Qunloaded.
2276
2277         * chartab.h (get_char_id_table): If a character attribute is not
2278         loaded and the attribute value is not found in an external
2279         database, store Qunbound as the attribute value.
2280
2281 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2282
2283         * chartab.c (BT_UINT8_unloaded): New macro.
2284         (UINT8_VALUE_P): Accept Qunloaded.
2285         (UINT8_ENCODE): Likewise.
2286         (UINT8_DECODE): Likewise.
2287         (BT_UINT16_unloaded): New macro.
2288         (UINT16_VALUE_P): Accept Qunloaded.
2289         (UINT16_ENCODE): Likewise.
2290         (UINT16_DECODE): Likewise.
2291         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2292         BT_UINT16_unloaded.
2293         (mark_char_table): Mark `ct->name' in UTF-2000.
2294         (char_table_description): Add `name' in UTF-2000.
2295         (Fmake_char_table): Initialize `ct->name'.
2296         (Fcopy_char_table): Copy `ct->name'.
2297         (Fput_char_attribute): Store value into an external database if
2298         HAVE_DATABASE is defined.
2299
2300         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2301         UTF-2000.
2302         (CHAR_TABLE_NAME): New macro in UTF-2000.
2303         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2304         (get_char_id_table): Try to read an external database if Qunloaded
2305         is stored in a table.
2306
2307         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2308         Qunloaded.
2309
2310 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2311
2312         * database.h: Add EXFUN definitions for Fopen_database,
2313         Fput_database, Fget_database and Fclose_database.
2314
2315         * data.c (Qunloaded): New variable in UTF-2000.
2316
2317         * lisp.h (Qunloaded): New variable in UTF-2000.
2318
2319 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2320
2321         * mule-charset.c (put_char_ccs_code_point): Modify for
2322         `decoding_table_remove_char' and `decoding_table_put_char'.
2323         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2324
2325         * char-ucs.h (decoding_table_remove_char): Change arguments to
2326         hide decoding_table vector.
2327         (decoding_table_put_char): Likewise.
2328
2329 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2330
2331         * mule-charset.c (decoding_table_remove_char): Moved to
2332         char-ucs.h.
2333         (decoding_table_put_char): Likewise.
2334
2335         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2336         from mule-charset.c].
2337         (decoding_table_remove_char): New inline function [moved from
2338         mule-charset.c].
2339         (decoding_table_put_char): Likewise.
2340
2341 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2342
2343         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2344         extension.
2345
2346 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2347
2348         * mule-charset.c (decode_builtin_char): Support mother charsets.
2349
2350 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2351
2352         * mule-charset.c (Q94x94x60): New variable.
2353         (charset_code_point): Support conversion `94x94x60'.
2354         (Fmake_charset): Likewise.
2355         (syms_of_mule_charset): Add new symbol `94x94x60'.
2356
2357         * char-ucs.h (CONVERSION_94x94x60): New macro.
2358
2359 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2360
2361         * mule-charset.c (charset_code_point): Unify code about
2362         `code-offset'.
2363
2364 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2365
2366         * mule-charset.c (charset_code_point): Merge code about builtin
2367         characters into code about mother charsets; don't use
2368         `range_charset_code_point'.
2369         (range_charset_code_point): Deleted.
2370
2371 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2372
2373         * mule-charset.c (Qcode_offset): New variable.
2374         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2375         `max-code'; accept new property `code-offset'.
2376         (syms_of_mule_charset): Add new symbol `code-offset'.
2377
2378 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2379
2380         * mule-charset.c (range_charset_code_point): Fixed.
2381
2382 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2383
2384         * mule-charset.c (decode_builtin_char): Change semantics of
2385         code-offset of coded-charset.
2386         (charset_code_point): Likewise.
2387         (range_charset_code_point): Likewise.
2388         (complex_vars_of_mule_charset): Modify for the change.
2389
2390 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2391
2392         * mule-charset.c (Fencode_char): Reverse arguments.
2393
2394         * mule-charset.c (charset_code_point): Fixed.
2395
2396 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2397
2398         * mule-charset.c (Vcharset_mojikyo): Deleted.
2399         (Vcharset_mojikyo_2022_1): Deleted.
2400         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2401         (Qmin_code): New variable in UTF-2000.
2402         (Qmax_code): Likewise.
2403         (Qmother): Likewise.
2404         (Qconversion): Likewise.
2405         (Q94x60): Likewise.
2406         (Qmojikyo): Deleted.
2407         (Qmojikyo_2022_1): Deleted.
2408         (Qmojikyo_pj_{1..22}): Deleted.
2409         (mark_charset): Mark `cs->mother'.
2410         (charset_description): Add description for `mother'.
2411         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2412         new arguments `mother' and `conversion'; use
2413         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2414         (charset_code_point): Moved from char-ucs.h; support `mother'
2415         charset feature.
2416         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2417         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2418         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2419         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2420         allow 2 as the value of `graphic' in UTF-2000; add new properties
2421         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2422         require `final' in UTF-2000; modify for `make_charset'.
2423         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2424         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2425         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2426         (Fencode_char): New function.
2427         (syms_of_mule_charset): Add new builtin function `encode-char' in
2428         UTF-2000; add new symbols `min-code', `max-code', `mother',
2429         `conversion' and `94x60'; delete symbols `mojikyo',
2430         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2431         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2432         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2433         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2434
2435         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2436         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2437
2438         * char-ucs.h (Vcharset_mojikyo): Deleted.
2439         (Vcharset_mojikyo_2022_1): Deleted.
2440         (LEADING_BYTE_MOJIKYO): Deleted.
2441         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2442         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2443         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2444         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2445         add new member `mother'; add new member `conversion'.
2446         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2447         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2448         (CHARSET_MOTHER): New macro.
2449         (CHARSET_CONVERSION): New macro.
2450         (CONVERSION_IDENTICAL): New macro.
2451         (CONVERSION_94x60): New macro.
2452         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2453         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2454         (XCHARSET_MOTHER): New macro.
2455         (XCHARSET_CONVERSION): New macro.
2456         (MIN_CHAR_MOJIKYO): Deleted.
2457         (MAX_CHAR_MOJIKYO): Deleted.
2458         (DECODE_MOJIKYO_2022): Deleted.
2459         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2460         (charset_code_point): Changed to non-inline function.
2461         (encode_char_1): Use `charset_code_point'.
2462         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2463
2464 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2465
2466         * lread.c (read_compiled_function): Fix prototype.
2467         (read_vector): Likewise.
2468
2469 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2470
2471         * lrecord.h (struct lrecord_header): Delete `older'.
2472         (set_lheader_implementation): Delete code for `older'.
2473         (set_lheader_older_implementation): Deleted.
2474         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2475         (OLDER_RECORD_P): Deleted.
2476         (OLDER_RECORD_HEADER_P): Deleted.
2477         (alloc_older_lcrecord): Deleted.
2478         (alloc_older_lcrecord_type): Deleted.
2479
2480         * alloc.c (all_older_lcrecords): Deleted.
2481         (alloc_older_lcrecord): Deleted.
2482         (disksave_object_finalization_1): Delete code for older objects.
2483         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2484         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2485
2486 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2487
2488         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2489         instead of `make_older_vector'.
2490         (put_char_ccs_code_point): Likewise.
2491         (mark_charset): Mark `cs->decoding_table'.
2492         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2493
2494         * lisp.h (make_older_vector): Deleted.
2495         (make_vector_newer): Deleted.
2496
2497         * config.h.in (HAVE_GGC): Deleted.
2498
2499         * alloc.c (make_older_vector): Deleted.
2500         (make_vector_newer_1): Deleted.
2501         (make_vector_newer): Deleted.
2502
2503 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2504
2505         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2506         (Qideograph_daikanwa_2): New variable.
2507         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2508         (complex_vars_of_mule_charset): Add new coded-charset
2509         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2510         `LEADING_BYTE_DAIKANWA'.
2511
2512         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2513         (LEADING_BYTE_DAIKANWA_1): New macro.
2514         (LEADING_BYTE_DAIKANWA_2): New macro.
2515         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2516
2517 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2518
2519         * mule-charset.c (complex_vars_of_mule_charset): Change
2520         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2521         the second revised version.
2522
2523 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2524
2525         * mule-charset.c (Vcharset_ucs_smp): New variable.
2526         (Vcharset_ucs_sip): New variable.
2527         (Qucs_smp): New variable.
2528         (Qucs_sip): New variable.
2529         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2530         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2531         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2532         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2533         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2534         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2535
2536         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2537         (LEADING_BYTE_UCS_SIP): New macro.
2538         (MIN_CHAR_SMP): New macro.
2539         (MAX_CHAR_SMP): New macro.
2540         (MIN_CHAR_SIP): New macro.
2541         (MAX_CHAR_SIP): New macro.
2542
2543 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2544
2545         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2546         utf-2000.
2547
2548 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2549
2550         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2551         value; don't store value into `encoding_table' of `Lisp_Charset'.
2552         (mark_charset): `encoding_table' was deleted.
2553         (charset_description): Likewise.
2554         (make_charset): Likewise.
2555         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2556         `put_char_ccs_code_point'.
2557
2558         * chartab.h (Fput_char_attribute): New EXFUN.
2559
2560         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2561         is unified with normal symbol space.
2562         (Fget_char_attribute): Likewise.
2563         (Fput_char_attribute): Likewise; behavior of
2564         `put_char_ccs_code_point' is changed.
2565
2566         * char-ucs.h: Include "elhash.h".
2567         (Vchar_attribute_hash_table): New external variable.
2568         (struct Lisp_Charset): Delete `encoding_table'.
2569         (CHARSET_ENCODING_TABLE): New implementation; refer
2570         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2571         `Lisp_Charset'.
2572
2573 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2574
2575         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2576         (cs) == 0.
2577
2578 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2579
2580         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2581         `chinese-big5'.
2582
2583 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2584
2585         * chartab.c (uint8_byte_table_description): New constant.
2586         (uint8-byte-table): Use `uint8_byte_table_description'.
2587         (uint16_byte_table_description): New constant.
2588         (uint16-byte-table): Use `uint16_byte_table_description'.
2589
2590 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2591
2592         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2593         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2594
2595 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2596
2597         * mule-charset.c (Vcharset_ucs_ks): New variable.
2598         (Qucs_ks): New variable.
2599         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2600         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2601
2602         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2603
2604 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2605
2606         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2607         (Fdecode_char): Likewise.
2608
2609         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2610         chartab.h.
2611         (Fdefine_char): Modify for Fdecode_char.
2612         (Ffind_char): Likewise.
2613
2614         * mule-charset.c (Fdecode_char): Add new optional argument
2615         `defined-only'.
2616         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2617
2618 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2619
2620         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2621         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2622         (allocate_coding_system): Initialize initial-charsets of
2623         CODESYS_BIG5 in XEmacs UTF-2000.
2624         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2625         CODESYS_BIG5 in XEmacs UTF-2000.
2626         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2627         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2628
2629         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2630         variables.
2631         (Qideograph_hanziku_{1 .. 12}): Likewise.
2632         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2633         .. 12}'.
2634         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2635         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2636         `ideograph-hanziku-{1 .. 12}'.
2637
2638         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2639         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2640         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2641         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2642         (DECODE_DEFINED_CHAR): New inline function.
2643         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2644
2645 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2646
2647         * mule-charset.c (Vcharset_china3_jef): Renamed from
2648         `Vcharset_japanese_jef_china3'.
2649         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2650         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2651         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2652         (syms_of_mule_charset): Rename `china3-jef' from
2653         `japanese-jef-china3'.
2654         (complex_vars_of_mule_charset): Likewise; rename
2655         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2656
2657         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2658         `LEADING_BYTE_JEF_CHINA3'.
2659         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2660         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2661
2662 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2663
2664         * mule-charset.c (encode_builtin_char_1): Comment out special code
2665         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2666
2667         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2668         (MAX_CHAR_MOJIKYO_0): Comment out.
2669         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2670         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2671         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2672         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2673
2674 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2675
2676         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2677         (Qideograph_cbeta): New variable.
2678         (encode_builtin_char_1): Comment out special code for
2679         coded-charset `mojikyo' and `japanese-jef-china3'.
2680         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2681         (complex_vars_of_mule_charset): Add new coded-charset
2682         `ideograph-cbeta'.
2683
2684         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2685         (MIN_CHAR_CBETA): New macro.
2686         (MAX_CHAR_CBETA): New macro.
2687
2688 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2689
2690         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2691         (LEADING_BYTE_JEF_CHINA3): New macro.
2692         (MIN_CHAR_JEF_CHINA3): New macro.
2693         (MAX_CHAR_JEF_CHINA3): Likewise.
2694         (DECODE_CHAR): Fixed.
2695
2696 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2697
2698         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2699         (Qjapanese_jef_china3): New variable.
2700         (encode_builtin_char_1): Support `japanese-jef-china3'.
2701         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2702         (complex_vars_of_mule_charset): Add new coded-charset
2703         `japanese-jef-china3'.
2704
2705 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2706
2707         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2708         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2709         94^4, 96^3, 96^4, 128^n and 256^n set.
2710         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2711         (map_char_table): Likewise.
2712
2713 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2714
2715         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2716         UTF-2000.
2717
2718 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2719
2720         * chartab.h (get_char_id_table): New inline function.
2721
2722         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2723         function.
2724
2725 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2726
2727         * chartab.h (decode_char_table_range): New prototype in XEmacs
2728         UTF-2000.
2729         (put_char_id_table): New inline function in XEmacs UTF-2000.
2730
2731         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2732         function.
2733         (decode_char_table_range): Delete static declaration in XEmacs
2734         UTF-2000.
2735
2736 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2737
2738         * chartab.c (put_char_id_table): Use `put_char_table'.
2739
2740 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2741
2742         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2743         (map_over_uint16_byte_table): Likewise.
2744         (map_over_byte_table): Likewise.
2745         (map_char_table): Modify for `map_over_uint8_byte_table',
2746         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2747         UTF-2000.
2748
2749 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2750
2751         * chartab.c (struct map_char_table_for_charset_arg): New
2752         structure.
2753         (map_char_table_for_charset_fun): New function.
2754         (map_char_table): Use `map_char_table' for encoding_table of
2755         `range->charset'.
2756
2757 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2758
2759         * chartab.c (map_char_table): Check a character is found in
2760         range->charset instead of non default value is defined in
2761         char-table when range is CHARTAB_RANGE_ROW.
2762
2763 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2764
2765         * chartab.c (map_char_id_table): Deleted.
2766         (Fmap_char_attribute): Use `map_char_table' instead of
2767         `map_char_id_table'.
2768
2769 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2770
2771         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2772         UTF-2000.
2773         (update_syntax_table): Deleted in XEmacs UTF-2000.
2774
2775         * syntax.c (find_defun_start): Use `syntax_table' instead of
2776         `mirror_syntax_table' in XEmacs UTF-2000.
2777         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2778         UTF-2000.
2779         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2780         XEmacs UTF-2000.
2781         (Fmatching_paren): Likewise.
2782         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2783         in XEmacs UTF-2000.
2784         (find_start_of_comment): Likewise.
2785         (find_end_of_comment): Likewise.
2786         (Fforward_comment): Likewise.
2787         (scan_lists): Likewise.
2788         (char_quoted): Likewise.
2789         (Fbackward_prefix_chars): Likewise.
2790         (scan_sexps_forward): Likewise.
2791         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2792         (update_syntax_table): Likewise.
2793
2794         * search.c (skip_chars): Use `syntax_table' instead of
2795         `mirror_syntax_table' in XEmacs UTF-2000.
2796         (wordify): Likewise.
2797         (Freplace_match): Likewise.
2798
2799         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2800         `mirror_syntax_table' in XEmacs UTF-2000.
2801         (WORDCHAR_P_UNSAFE): Likewise.
2802         (re_match_2_internal): Likewise.
2803
2804         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2805         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2806
2807         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2808         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2809
2810         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2811         XEmacs UTF-2000.
2812
2813         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2814         UTF-2000.
2815         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2816         (char_table_description): Delete `mirror_table' in XEmacs
2817         UTF-2000.
2818         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2819         UTF-2000.
2820         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2821         (Fcopy_char_table): Likewise.
2822         (put_char_table): Don't call `update_syntax_table' in XEmacs
2823         UTF-2000.
2824
2825         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2826         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2827         (casify_region_internal): Likewise.
2828
2829         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2830
2831         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2832         `mirror_syntax_table' in XEmacs UTF-2000.
2833
2834         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2835         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2836         (Fexpand_abbrev): Likewise.
2837
2838 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2839
2840         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2841
2842 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2843
2844         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2845         (map_over_uint16_byte_table): Likewise.
2846         (map_over_byte_table): Likewise.
2847         (get_char_id_table): Refer `cit->default_value'.
2848         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2849         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2850         of character-id ranges.
2851         (mark_char_table): Mark `ct->default_value'.
2852         (char_table_description): Add `default_value'.
2853         (fill_char_table): Use `default_value'.
2854         (decode_char_table_range): Decode `nil' as
2855         `CHARTAB_RANGE_DEFAULT'.
2856         (get_char_id_table): Refer `cit->default_value'.
2857         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2858         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2859         temporary hack; check value of char-table is bound or not.
2860         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2861
2862         * chartab.h (struct Lisp_Char_Table): Add new member
2863         `default_value' in XEmacs UTF-2000.
2864         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2865         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2866         UTF-2000.
2867
2868 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2869
2870         * chartab.h (Lisp_Char_ID_Table): Deleted.
2871
2872         * chartab.c (char_table_description): Fix typo.
2873         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2874         `Lisp_Char_ID_Table'.
2875
2876 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2877
2878         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2879         `CHAR_ID_TABLE_P'.
2880
2881         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2882         `CHAR_ID_TABLE_P'.
2883
2884         * chartab.h (XCHAR_ID_TABLE): Deleted.
2885         (XSETCHAR_ID_TABLE): Deleted.
2886         (CHAR_ID_TABLE_P): Deleted.
2887
2888         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2889         `CHAR_ID_TABLE_P'.
2890         (Fget_composite_char): Likewise.
2891         (put_char_table): Likewise.
2892         (add_char_attribute_alist_mapper): Fixed.
2893         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2894         `CHAR_ID_TABLE_P'.
2895         (Fget_char_attribute): Likewise.
2896         (Fget_char_attribute): Likewise.
2897         (Fmap_char_attribute): Likewise.
2898
2899         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2900         `CHAR_ID_TABLE_P'.
2901         (encode_char_1): Likewise.
2902
2903 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2904
2905         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2906         `XCHAR_ID_TABLE'.
2907
2908         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2909         instead of `XCHAR_ID_TABLE'.
2910         (remove_char_ccs): Likewise.
2911
2912         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2913         `XCHAR_ID_TABLE'.
2914         (Fget_composite_char): Likewise.
2915         (Fchar_variants): Likewise.
2916         (put_char_table): Likewise.
2917         (add_char_attribute_alist_mapper): Likewise.
2918         (Fchar_attribute_alist): Likewise.
2919         (Fget_char_attribute): Likewise.
2920         (Fput_char_attribute): Likewise.
2921         (Fmap_char_attribute): Likewise.
2922         (Fmap_char_attribute): Likewise.
2923
2924         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2925         `XCHAR_ID_TABLE'.
2926         (encode_char_1): Likewise.
2927
2928 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2929
2930         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2931         `Lisp_Char_ID_Table'.
2932         (mark_char_id_table): Deleted.
2933         (print_char_id_table): Likewise.
2934         (char_id_table_equal): Likewise.
2935         (char_id_table_hash): Likewise.
2936         (char_id_table_description): Likewise.
2937         (char_id_table): Likewise.
2938         (make_char_id_table): Use `Fmake_char_table' and
2939         `fill_char_table'.
2940         (get_char_id_table): Use `Lisp_Char_Table' instead of
2941         `Lisp_Char_ID_Table'.
2942         (put_char_id_table): Likewise.
2943         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2944         `XCHAR_ID_TABLE'.
2945         (Fremove_char_attribute): Likewise.
2946         (syms_of_chartab): Don't define type `char-id-table'.
2947
2948         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2949         (char_id_table): Likewise.
2950         (GC_CHAR_ID_TABLE_P): Likewise.
2951         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2952         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2953         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2954         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2955         (get_char_id_table): Use `Lisp_Char_Table' instead of
2956         `Lisp_Char_ID_Table'.
2957         (put_char_id_table_0): Likewise.
2958         (put_char_id_table): Likewise.
2959
2960 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2961
2962         * chartab.h: Lisp_Byte_Table related codes are moved from
2963         chartab.h.
2964
2965         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2966
2967 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2968
2969         * chartab.h: Don't include "chartab.h".
2970         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2971         (Lisp_Char_ID_Table): Likewise.
2972         (char_id_table): Likewise.
2973         (XCHAR_ID_TABLE): Likewise.
2974         (XSETCHAR_ID_TABLE): Likewise.
2975         (CHAR_ID_TABLE_P): Likewise.
2976         (GC_CHAR_ID_TABLE_P): Likewise.
2977         (get_char_id_table): Likewise.
2978
2979         * char-ucs.h: Include "chartab.h".
2980         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2981         (Lisp_Char_ID_Table): Likewise.
2982         (char_id_table): Likewise.
2983         (XCHAR_ID_TABLE): Likewise.
2984         (XSETCHAR_ID_TABLE): Likewise.
2985         (CHAR_ID_TABLE_P): Likewise.
2986         (GC_CHAR_ID_TABLE_P): Likewise.
2987         (get_char_id_table): Likewise.
2988
2989 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2990
2991         * chartab.c (copy_uint8_byte_table): New function.
2992         (copy_uint16_byte_table): New function.
2993         (copy_byte_table): New function.
2994         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2995         characters to call.
2996         (map_over_uint16_byte_table): Likewise.
2997         (map_over_byte_table): Likewise.
2998         (get_byte_table): Move prototype to chartab.h.
2999         (put_byte_table): Likewise.
3000         (put_char_id_table_0): Moved to chartab.h.
3001         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
3002         (char_table_entry_equal): Likewise.
3003         (char_table_entry_hash): Likewise.
3004         (char_table_entry_description): Likewise.
3005         (char_table_entry): Likewise.
3006         (make_char_table_entry): Likewise.
3007         (copy_char_table_entry): Likewise.
3008         (get_non_ascii_char_table_value): Likewise.
3009         (map_over_charset_ascii): Likewise.
3010         (map_over_charset_control_1): Likewise.
3011         (map_over_charset_row): Likewise.
3012         (map_over_other_charset): Likewise.
3013         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
3014         (print_char_table): Likewise.
3015         (char_table_equal): Likewise.
3016         (char_table_hash): Likewise.
3017         (char_table_description): Likewise.
3018         (fill_char_table): Likewise.
3019         (Fcopy_char_table): Likewise.
3020         (get_char_table): Likewise.
3021         (Fget_range_char_table): Likewise.
3022         (put_char_table): Likewise.
3023         (map_char_table): Likewise.
3024         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
3025         UTF-2000.
3026
3027 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3028
3029         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
3030         `Vauto_fill_chars' in XEmacs UTF-2000.
3031
3032         * chartab.h (get_byte_table): New prototype [moved from
3033         chartab.c].
3034         (put_byte_table): Likewise [moved from chartab.c].
3035         (put_char_id_table_0): New inline function [moved from chartab.c].
3036         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
3037         (Lisp_Char_Table_Entry): Likewise.
3038         (char_table_entry): Likewise.
3039         (XCHAR_TABLE_ENTRY): Likewise.
3040         (XSETCHAR_TABLE_ENTRY): Likewise.
3041         (CHAR_TABLE_ENTRYP): Likewise.
3042         (CHECK_CHAR_TABLE_ENTRY): Likewise.
3043         (NUM_ASCII_CHARS): Likewise.
3044         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
3045         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
3046
3047 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3048
3049         * chartab.c (get_char_id_table): Change interface.
3050         (put_char_id_table_0): New function.
3051         (put_char_id_table): Change interface; new implementation.
3052         (Fget_composite_char): Modify for interface change of
3053         `get_char_id_table'.
3054         (Fchar_variants): Likewise.
3055         (add_char_attribute_alist_mapper): Likewise.
3056         (Fchar_attribute_alist): Likewise.
3057         (Fget_char_attribute): Likewise.
3058         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
3059         as same as character as the first argument like `put-char-table';
3060         modify for interface change of `put_char_id_table'.
3061         (Fremove_char_attribute): Modify for interface change of
3062         `put_char_id_table'.
3063
3064 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3065
3066         * text-coding.c: Sync up with XEmacs 21.2.41.
3067         (COMPOSE_ADD_CHAR): Modify for interface change of
3068         `get_char_id_table'.
3069
3070         * mule-charset.c (put_char_ccs_code_point): Modify for interface
3071         change of `put_char_id_table'.
3072         (remove_char_ccs): Likewise.
3073
3074         * chartab.h (put_char_id_table): Change interface.
3075
3076         * char-ucs.h (get_char_id_table): Change interface.
3077         (charset_code_point): Modify for interface change of
3078         `get_char_id_table'.
3079         (encode_char_1): Likewise.
3080
3081 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3082
3083         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3084         argument `ccs'.
3085         (map_over_uint16_byte_table): Likewise.
3086         (map_over_byte_table): Likewise.
3087         (map_char_id_table): Add new argument `range' like
3088         `map_char_table'.
3089         (Fmap_char_attribute): Add new argument `range' like
3090         `Fmap_char_table'.
3091
3092 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3093
3094         * chartab.c (map_over_uint8_byte_table): Change interface of
3095         mapping function to use struct chartab_range instead of Emchar.
3096         (map_over_uint16_byte_table): Likewise.
3097         (map_over_byte_table): Likewise.
3098         (map_char_id_table): Likewise.
3099         (struct slow_map_char_id_table_arg): Deleted.
3100         (slow_map_char_id_table_fun): Deleted.
3101         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3102         function `slow_map_char_table_fun' instead of struct
3103         `slow_map_char_id_table_arg' and function
3104         `slow_map_char_id_table_fun'.
3105
3106 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3107
3108         * mule-charset.c: Move char-it-table related codes to chartab.c.
3109         (Vutf_2000_version): Moved to chartab.c.
3110         (Fdefine_char): Likewise.
3111         (Ffind_char): Likewise.
3112         (syms_of_mule_charset): Move types `uint8-byte-table',
3113         `uint16-byte-table', `byte-table' and `char-id-table' to
3114         chartab.c; move functions `char_attribute_list,
3115         `find_char_attribute_table, `char_attribute_alist,
3116         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3117         `map_char_attribute, `define_char, `find_char, `char_variants and
3118         `get_composite_char to chartab.c; move symbols `=>ucs',
3119         `->decomposition', `compat', `isolated', `initial', `medial',
3120         `final', `vertical', `noBreak', `fraction', `super', `sub',
3121         `circle', `square', `wide', `narrow', `small' and `font' to
3122         chartab.c.
3123         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3124         setting codes for `Vcharacter_composition_table' and
3125         `Vcharacter_variant_table' to chartab.c.
3126         (complex_vars_of_mule_charset): Move setting code for
3127         `Vchar_attribute_hash_table' to chartab.c.
3128
3129         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3130         (make_char_id_table): New prototype.
3131         (put_char_id_table): Likewise.
3132         (Fget_char_attribute): Likewise.
3133
3134         * chartab.c: Move char-id-table related code from mule-charset.c.
3135         (Vutf_2000_version): Moved from mule-charset.c.
3136
3137         * char-ucs.h (Qucs): New external variable.
3138         (put_char_ccs_code_point): New prototype.
3139         (remove_char_ccs): Likewise.
3140
3141 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3142
3143         * mule-charset.c (Vcharset_ucs_jis): New variable.
3144         (Qucs_jis): Likewise.
3145         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3146         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3147
3148         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3149
3150 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3151
3152         * mule-charset.c (map_over_uint8_byte_table): New function.
3153         (map_over_uint16_byte_table): Likewise.
3154         (map_over_byte_table): Likewise.
3155         (map_char_id_table): Likewise.
3156         (slow_map_char_id_table_fun): Likewise.
3157         (Fmap_char_attribute): Likewise.
3158         (syms_of_mule_charset): Add new function `map-char-attribute'.
3159
3160 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3161
3162         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3163         (syms_of_mule_charset): Add new function `find-char'.
3164
3165 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3166
3167         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3168         XEmacs UTF-2000.
3169         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3170         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3171         XEmacs UTF-2000.
3172         (complex_vars_of_mule_charset): Add new coded-charset
3173         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3174         `ideograph-gt-pj-*'.
3175
3176         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3177
3178 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3179
3180         * mule-charset.c (encode_builtin_char_1): Purge codes about
3181         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3182         {MIN|MAX}_CHAR_HEBREW.
3183         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3184         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3185
3186         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3187         (MAX_CHAR_GREEK): Purged.
3188         (MIN_CHAR_CYRILLIC): Purged.
3189         (MAX_CHAR_CYRILLIC): Purged.
3190         (MIN_CHAR_HEBREW): Commented out.
3191         (MAX_CHAR_HEBREW): Likewise.
3192
3193 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3194
3195         * mule-charset.c (Qto_ucs): New variable.
3196         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3197         (Fdefine_char): Likewise.
3198         (syms_of_mule_charset): Add new symbol `=>ucs'.
3199
3200 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3201
3202         * mule-charset.c (Fdecode_char): Fixed.
3203
3204 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3205
3206         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3207         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3208         "tcvn5712-1".
3209
3210 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3211
3212         * mule-charset.c (Vcharset_ucs_big5): New variable.
3213         (Qucs_big5): Likewise.
3214         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3215         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3216
3217         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3218
3219 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3220
3221         * mule-charset.c (decode_builtin_char): Check Big5 code range
3222         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3223
3224 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3225
3226         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3227         (Qchinese_gb12345): Likewise.
3228         (Fdecode_builtin_char): Fixed.
3229         (syms_of_mule_charset): Add `chinese-gb12345'.
3230         (complex_vars_of_mule_charset): Add coded-charset
3231         `chinese-gb12345'.
3232
3233         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3234         (LEADING_BYTE_CHINESE_GB12345): New macro.
3235
3236 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3237
3238         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3239         and `latin-viscii-upper' for `latin-viscii'.
3240
3241 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3242
3243         * mule-charset.c (Fdecode_builtin_char): Comment out
3244         regularization code for ISO-IR GR representation.
3245
3246 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3247
3248         * mule-charset.c (decode_builtin_char): New function; renamed from
3249         `make_builtin_char'; return -1 instead of signal.
3250         (Fdecode_builtin_char): Use `decode_builtin_char'.
3251
3252         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3253         `make_builtin_char'.
3254         (DECODE_CHAR): Use `decode_builtin_char' instead of
3255         `make_builtin_char'; use mapping table of `chinese-big5' for
3256         `chinese-big5-{1,2}'.
3257
3258 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3259
3260         * text-coding.c (char_encode_big5): New function.
3261         (char_finish_big5): Likewise.
3262         (reset_encoding_stream): Use `char_encode_big5' and
3263         `char_finish_big5' for CODESYS_BIG5.
3264         (mule_encode): Don't use `encode_coding_big5'.
3265         (encode_coding_big5): Deleted.
3266
3267 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3268
3269         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3270         0x81- in XEmacs UTF-2000.
3271         (detect_coding_big5): Likewise.
3272
3273 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3274
3275         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3276         generate character-id if the CCS property does not have
3277         corresponding predefined character.
3278         (make_builtin_char): Return -1 if corresponding predefined
3279         character is not found.
3280         (Fdecode_char): Return nil if corresponding character is not
3281         found.
3282         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3283         don't map to builtin ucs space.
3284
3285 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3286
3287         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3288         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3289
3290 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3291
3292         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3293         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3294         (Qideograph_gt): Likewise.
3295         (Qideograph_gt_pj_{1..11}): Likewise.
3296         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3297         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3298         `ideograph-gt-pj-11'.
3299         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3300         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3301         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3302
3303         * char-ucs.h (LEADING_BYTE_GT): New macro.
3304         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3305         (MIN_CHAR_GT): Likewise.
3306         (MAX_CHAR_GT): Likewise.
3307
3308 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3309
3310         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3311         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3312
3313         * doprnt.c (unsigned_int_converters): Add `c'.
3314         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3315
3316         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3317         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3318         `MIN_CHAR_MOJIKYO'.
3319         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3320         (MAX_CHAR_MOJIKYO_0): New macro.
3321         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3322
3323 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3324
3325         * mule-charset.c (Fdefine_char): Delete cemented out code.
3326         (encode_builtin_char_1): Modify for new allocation of builtin
3327         Mojikyo characters.
3328
3329         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3330
3331 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3332
3333         * mule-charset.c (Vcharset_ucs_cns): New variable.
3334         (Qucs_cns): New variable.
3335         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3336         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3337
3338 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3339
3340         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3341
3342 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3343
3344         * search.c (search_buffer): Make `charset_base_code' as
3345         character-id >> 6 to eliminate the corresponding last byte in
3346         UTF-8 representation [I'm not sure it is right thing].
3347         (boyer_moore): Likewise.
3348
3349 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3350
3351         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3352         representation in MULE.
3353
3354 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3355
3356         * text-coding.c (Fmake_coding_system): Use
3357         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3358         `EXTERNAL_PROPERTY_LIST_LOOP'.
3359
3360 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3361
3362         * text-coding.c (decode_output_utf8_partial_char): New function.
3363         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3364
3365 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3366
3367         * text-coding.c (decode_coding_utf8): Output original byte
3368         sequence if it is broken; change order of conditions.
3369
3370         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3371         of conditions.
3372
3373         * mb-multibyte.h (BYTE_ASCII_P):
3374         Use bit ops for char-signedness safety.
3375         (BYTE_C0_P): Use bit ops for char-signedness safety.
3376         (BYTE_C1_P): Use bit ops for char-signedness safety.
3377
3378         * character.h: (XCHAR_OR_CHAR_INT):
3379         Always use inline function.
3380         Remove redundant type checking assert() - XINT will abort quite
3381         nicely.
3382
3383 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3384
3385         * text-coding.c: (Fencode_shift_jis_char):
3386         (Fencode_big5_char):
3387         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3388         Replace 0 with '\0' when working with bytes.
3389         Replace initial "(" with "\(" in docstrings.
3390
3391         (Fmake_coding_system):
3392         When type is ccl and value is vector, register it with a proper
3393         symbol.  And checks whether the given ccl program is valid.
3394         (mule_decode): When calling ccl_driver, if src indicates
3395         NULL pointer, set an empty string instead.
3396         (mule_encode): Likewise.
3397
3398         (detect_eol_type):
3399         (detect_coding_sjis):
3400         (decode_coding_sjis):
3401         (detect_coding_big5):
3402         (decode_coding_big5):
3403         (detect_coding_ucs4):
3404         (decode_coding_ucs4):
3405         (detect_coding_utf8):
3406         (decode_coding_utf8):
3407         (detect_coding_iso2022):
3408         (decode_coding_iso2022):
3409         (decode_coding_no_conversion):
3410         (mule_decode):
3411         Make all detecting and decoding functions take an Extbyte * arg.
3412         (text_encode_generic):
3413         (encode_coding_big5):
3414         (encode_coding_no_conversion):
3415         (mule_encode):
3416         Make all encoding functions take a Bufbyte * arg.
3417         Use size_t instead of unsigned int for memory sizes.
3418         Only cast to unsigned char whenever dereferencing Extbyte *.
3419
3420         (struct lrecord_description fcd_description_1): Use countof.
3421         (complex_vars_of_file_coding):
3422         Use countof instead of sizeof.
3423         Use CHECK_NATNUM instead of CHECK_INT.
3424
3425 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3426
3427         * mule-charset.c (Fget_char_attribute): Add new optional argument
3428         `default-value'.
3429         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3430         (remove_char_ccs): Likewise.
3431
3432 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3433
3434         * text-coding.c (char_encode_shift_jis): New implementation in
3435         UTF-2000.
3436         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3437         ...)'.
3438
3439         * mule-charset.c (Vcharset_chinese_big5): New variable in
3440         UTF-2000.
3441         (Qchinese_big5): New variable in UTF-2000.
3442         (BIG5_SAME_ROW): New macro in UTF-2000.
3443         (make_builtin_char): Use builtin characters of
3444         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3445         characters of `Vcharset_chinese_big5'.
3446         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3447         (complex_vars_of_mule_charset): Add new coded-charset
3448         `chinese-big5' in UTF-2000.
3449
3450         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3451         (Vcharset_chinese_big5): New external variable declaration.
3452         (Vcharset_japanese_jisx0208_1990): Likewise.
3453
3454 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3455
3456         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3457         function.
3458         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3459
3460 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3461
3462         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3463         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3464         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3465         `mojikyo-pj-*'.
3466
3467 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3468
3469         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3470
3471 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3472
3473         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3474         to 0.17.
3475
3476 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3477
3478         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3479         for `CHARSET_BY_ATTRIBUTES'.
3480         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3481         `CHARSET_BY_ATTRIBUTES'.
3482
3483         * text-coding.c (struct decoding_stream): Rename member `CH' to
3484         `CPOS'.
3485         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3486         (decode_coding_sjis): Likewise.
3487         (decode_coding_big5): Likewise.
3488         (decode_coding_ucs4): Likewise.
3489         (decode_coding_utf8): Likewise.
3490         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3491         `CHARSET_BY_ATTRIBUTES'.
3492         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3493         `str->counter'; decode 3, 4 bytes sets.
3494         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3495         sets.
3496         (decode_coding_no_conversion): Use `str->cpos' instead of
3497         `str->ch'.
3498
3499         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3500         (Qmojikyo_2022_1): New variable.
3501         (make_charset): Don't use `CHARSET_TYPE_*'.
3502         (range_charset_code_point): Support coded-charset
3503         `mojikyo-2022-1'.
3504         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3505         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3506         `CHARSET_BY_ATTRIBUTES'.
3507         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3508         `CHARSET_BY_ATTRIBUTES'.
3509         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3510         (complex_vars_of_mule_charset): Add new coded-charset
3511         `mojikyo-2022-1'.
3512
3513         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3514         interface; changed to inline function.
3515
3516         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3517         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3518         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3519         (CHARSET_TYPE_94): Deleted.
3520         (CHARSET_TYPE_94X94): Deleted.
3521         (CHARSET_TYPE_96): Deleted.
3522         (CHARSET_TYPE_96X96): Deleted.
3523         (CHARSET_TYPE_128): Deleted.
3524         (CHARSET_TYPE_128X128): Deleted.
3525         (CHARSET_TYPE_256): Deleted.
3526         (CHARSET_TYPE_256X256): Deleted.
3527         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3528         to inline function.
3529         (DECODE_MOJIKYO_2022): New inline function.
3530         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3531         `Vcharset_mojikyo_2022_1'.
3532
3533 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3534
3535         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3536         instead of `EQ'.
3537         (put_byte_table): Likewise.
3538         (char_id_table_equal): Use `get_byte_table' [new implementation].
3539
3540 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3541
3542         * mule-charset.c: Include <limits.h> in UTF-2000.
3543         (BT_UINT8_MIN): New macro in UTF-2000.
3544         (BT_UINT8_MAX): New macro in UTF-2000.
3545         (BT_UINT8_t): New macro in UTF-2000.
3546         (BT_UINT8_nil): New macro in UTF-2000.
3547         (BT_UINT8_unbound): New macro in UTF-2000.
3548         (INT_UINT8_P): New inline function in UTF-2000.
3549         (UINT8_VALUE_P): New inline function in UTF-2000.
3550         (UINT8_ENCODE): New inline function in UTF-2000.
3551         (UINT8_DECODE): New inline function in UTF-2000.
3552         (mark_uint8_byte_table): New function in UTF-2000.
3553         (print_uint8_byte_table): New function in UTF-2000.
3554         (uint8_byte_table_equal): New function in UTF-2000.
3555         (uint8_byte_table_hash): New function in UTF-2000.
3556         (make_uint8_byte_table): New function in UTF-2000.
3557         (uint8_byte_table_same_value_p): New function in UTF-2000.
3558         (BT_UINT16_MIN): New macro in UTF-2000.
3559         (BT_UINT16_MAX): New macro in UTF-2000.
3560         (BT_UINT16_t): New macro in UTF-2000.
3561         (BT_UINT16_nil): New macro in UTF-2000.
3562         (BT_UINT16_unbound): New macro in UTF-2000.
3563         (INT_UINT16_P): New inline function in UTF-2000.
3564         (UINT16_VALUE_P): New inline function in UTF-2000.
3565         (UINT16_ENCODE): New inline function in UTF-2000.
3566         (UINT16_DECODE): New inline function in UTF-2000.
3567         (UINT8_TO_UINT16): New inline function in UTF-2000.
3568         (mark_uint16_byte_table): New function in UTF-2000.
3569         (print_uint16_byte_table): New function in UTF-2000.
3570         (uint16_byte_table_equal): New function in UTF-2000.
3571         (uint16_byte_table_hash): New function in UTF-2000.
3572         (make_uint16_byte_table): New function in UTF-2000.
3573         (uint16_byte_table_same_value_p): New function in UTF-2000.
3574         (print_byte_table): New function in UTF-2000.
3575         (byte-table): Use `print_byte_table' as printer.
3576         (make_byte_table): Delete second argument `older'.
3577         (byte_table_same_value_p): New function in UTF-2000.
3578         (copy_byte_table): Deleted.
3579         (get_byte_table): New function in UTF-2000.
3580         (put_byte_table): New function in UTF-2000.
3581         (print_char_id_table): New function in UTF-2000.
3582         (char-id-table): Use `print_char_id_table' as printer.
3583         (make_char_id_table): Delete second argument `older'.
3584         (get_char_id_table): Use `get_byte_table [new implementation].
3585         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3586         implementation].
3587         (Ffind_char_attribute_table): New function in UTF-2000.
3588         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3589         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3590         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3591         (syms_of_mule_charset): Add new function
3592         `find-char-attribute-table' in UTF-2000.
3593
3594         * lrecord.h (enum lrecord_type): Add
3595         `lrecord_type_uint16_byte_table' and
3596         `lrecord_type_uint8_byte_table'.
3597
3598         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3599         (Lisp_Uint8_Byte_Table): New type.
3600         (XUINT8_BYTE_TABLE): New macro.
3601         (XSETUINT8_BYTE_TABLE): New macro.
3602         (UINT8_BYTE_TABLE_P): New macro.
3603         (GC_UINT8_BYTE_TABLE_P): New macro.
3604         (struct Lisp_Uint16_Byte_Table): New structure.
3605         (Lisp_Uint16_Byte_Table): New type.
3606         (XUINT16_BYTE_TABLE): New macro.
3607         (XSETUINT16_BYTE_TABLE): New macro.
3608         (UINT16_BYTE_TABLE_P): New macro.
3609         (GC_UINT16_BYTE_TABLE_P): New macro.
3610
3611 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3612
3613         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3614         (Vcharacter_ideographic_strokes_table): Deleted.
3615         (Vcharacter_total_strokes_table): Deleted.
3616         (Vcharacter_morohashi_daikanwa_table): Deleted.
3617         (Vcharacter_decomposition_table): Deleted.
3618         (Qname): Deleted because it is duplicated.
3619         (Qideographic_radical): Deleted.
3620         (Qideographic_strokes): Deleted.
3621         (Qtotal_strokes): Deleted.
3622         (Qmorohashi_daikanwa): Deleted.
3623         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3624         `ideographic-radical', `ideographic-strokes', `total-strokes',
3625         `morohashi-daikanwa' and `->decomposition'.
3626         (Fget_char_attribute): Likewise.
3627         (Fput_char_attribute): Likewise; use `make-vector' instead of
3628         `make_older_vector' for `->decomposition' value.
3629         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3630         `ideograph-daikanwa'.
3631         (syms_of_mule_charset): Delete builtin symbols `name',
3632         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3633         `morohashi-daikanwa'.
3634         (vars_of_mule_charset): Don't setup
3635         `Vcharacter_ideographic_radical_table',
3636         `Vcharacter_ideographic_strokes_table',
3637         `Vcharacter_total_strokes_table',
3638         `Vcharacter_morohashi_daikanwa_table' and
3639         `Vcharacter_decomposition_table'.
3640
3641 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3642
3643         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3644         `make_older_vector', `make_vector_newer_1' and
3645         `make_vector_newer'.
3646
3647         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3648         `make_older_vector' and `make_vector_newer'.
3649
3650         * config.h.in (HAVE_GGC): New macro.
3651
3652 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3653
3654         * mule-charset.c (struct char_attribute_list_closure): New
3655         structure in UTF-2000.
3656         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3657         (Fchar_attribute_list): Likewise.
3658         (Fset_charset_mapping_table): Use `make_vector_newer'.
3659         (Fdecode_builtin_char): New function in UTF-2000.
3660         (syms_of_mule_charset): Add new function `char-attribute-list' and
3661         `decode-builtin-char' in UTF-2000.
3662
3663         * lisp.h (make_vector_newer): New prototype.
3664
3665         * alloc.c (make_vector_newer_1): New function.
3666         (make_vector_newer): New function.
3667
3668 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3669
3670         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3671         50100)'.
3672
3673 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3674
3675         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3676         (Vcharacter_attribute_table): Deleted.
3677         (Vcharacter_name_table): Deleted.
3678         (put_char_attribute): Deleted.
3679         (remove_char_attribute): Deleted.
3680         (struct char_attribute_alist_closure): New structure.
3681         (add_char_attribute_alist_mapper): New function.
3682         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3683         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3684         (Fget_char_attribute): Likewise.
3685         (Fput_char_attribute): Likewise.
3686         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3687         of `remove_char_attribute'.
3688         (Fdefine_char): Return character.
3689         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3690         and `Vcharacter_name_table'.
3691         (complex_vars_of_mule_charset): Likewise
3692         `Vchar_attribute_hash_table'.
3693
3694 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3695
3696         * character.h (CHARC_CHARSET): New macro.
3697         (CHARC_CHARSET_ID): New macro.
3698         (CHARC_CODE_POINT): New macro.
3699         (CHARC_COLUMNS): New macro.
3700         (CHARC_TO_CHAR): New inline function.
3701         (CHARC_EQ): New inline function.
3702         (CHARC_ASCII_EQ): New inline function.
3703         (CHARC_IS_SPACE): New inline function.
3704         (ASCII_TO_CHARC): New inline function.
3705
3706         * char-ucs.h (encode_char_2): Deleted.
3707         (ENCODE_CHAR): Use `encode_char_1' again.
3708         (breakup_char_1): Likewise.
3709         (CHAR_TO_CHARC): New inline function.
3710
3711         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3712
3713 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3714
3715         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3716         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3717         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3718         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3719         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3720         `CHARC_IS_SPACE'.
3721         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3722
3723         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3724         `CHARC_CODE_POINT'.
3725         (x_output_display_block): Use `CHARC_CHARSET' and
3726         `CHARC_ASCII_EQ'.
3727
3728         * redisplay-tty.c (tty_output_display_block): Use
3729         `CHARC_ASCII_EQ'.
3730         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3731
3732         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3733
3734         * insdel.c (find_charsets_in_charc_string): Use
3735         `CHARC_CHARSET_ID'.
3736         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3737         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3738         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3739         (convert_charc_string_into_malloced_string): Likewise.
3740
3741 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3742
3743         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3744         instead of <Emchar_dynarr *> for buf; use
3745         `convert_bufbyte_string_into_charc_dynarr' instead of
3746         `convert_bufbyte_string_into_emchar_dynarr'; use
3747         `find_charsets_in_charc_string' instead of
3748         `find_charsets_in_emchar_string'.
3749
3750         * redisplay.h:
3751         - Include "character.h".
3752         (struct rune): New member `cglyph'; delete member `chr'.
3753
3754         * redisplay.c (redisplay_text_width_charc_string): New function;
3755         delete `redisplay_text_width_emchar_string'.
3756         (rtw_charc_dynarr): New variable; renamed from
3757         `rtw_emchar_dynarr'.
3758         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3759         `rtw_emchar_dynarr'; use
3760         `convert_bufbyte_string_into_charc_dynarr' instead of
3761         `convert_bufbyte_string_into_emchar_dynarr'; use
3762         `redisplay_text_width_charc_string' instead of
3763         `redisplay_text_width_emchar_string'.
3764         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3765         instead of `rtw_emchar_dynarr'; use
3766         `convert_bufbyte_string_into_charc_dynarr' instead of
3767         `convert_bufbyte_string_into_emchar_dynarr'.
3768         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3769         `redisplay_text_width_charc_string' instead of
3770         `redisplay_text_width_emchar_string'.
3771         (create_text_block): Modify for <struct rune> change.
3772         (generate_formatted_string_db): Likewise.
3773         (create_string_text_block): Likewise.
3774         (pixel_to_glyph_translation): Likewise.
3775
3776         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3777         instead of <const Emchar *>.
3778         (x_text_width): Likewise.
3779         (x_output_display_block): Use <Charc_dynarr *> instead
3780         <Emchar_dynarr *>; modify for <structure rune> change.
3781         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3782         *>.
3783
3784         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3785         <const Emchar *>; use `charc_string_displayed_columns' instead of
3786         `emchar_string_displayed_columns'.
3787         (tty_output_display_block): Use <Charc_dynarr *> instead of
3788         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3789         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3790         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3791         `tty_output_emchar_dynarr_dynarr'.
3792         (tty_output_charc_dynarr): New function; delete
3793         `tty_output_charc_dynarr'.
3794
3795         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3796         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3797         <Emchar_dynarr *> for buf; use
3798         `convert_bufbyte_string_into_charc_dynarr' instead of
3799         `convert_bufbyte_string_into_emchar_dynarr'.
3800
3801         * frame.c (title_string_charc_dynarr): New variable; renamed from
3802         `title_string_emchar_dynarr'.
3803         (generate_title_string): Use `title_string_charc_dynarr' instead
3804         of `title_string_emchar_dynarr'; use
3805         `convert_charc_string_into_malloced_string' instead of
3806         `convert_emchar_string_into_malloced_string'.
3807         (init_frame): Use `title_string_charc_dynarr' instead of
3808         `title_string_emchar_dynarr'.
3809
3810         * console.h:
3811         - Include "character.h".
3812         (struct console_methods): Use <const Charc *> instead of <const
3813         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3814         <Emchar_dynarr *> in output_string_method.
3815
3816         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3817         <Emchar_dynarr *>.
3818
3819         * console-stream.c (stream_text_width): Use <const Charc *>
3820         instead of <const Emchar *>.
3821
3822         * character.h (Charc_dynarr): New type.
3823
3824         * char-ucs.h (structure Charc): New structure; define new type
3825         `Charc'.
3826
3827         * char-lb.h (DECODE_CHAR): New inline function.
3828         (encode_char_1): New inline function.
3829         (ENCODE_CHAR): New macro.
3830         (structure Charc): New structure; define new type `Charc'.
3831
3832         * char-1byte.h (Vcharset_control_1): New macro.
3833         (Vcharset_latin_iso8859_1): New macro.
3834         (DECODE_CHAR): New inline function.
3835         (encode_char_1): New inline function.
3836         (ENCODE_CHAR): New macro.
3837         (structure Charc): New structure; define new type `Charc'.
3838
3839         * insdel.c (find_charsets_in_charc_string): New function; delete
3840         `find_charsets_in_emchar_string'.
3841         (charc_string_displayed_columns): New function; delete
3842         `emchar_string_displayed_columns'.
3843         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3844         `convert_bufbyte_string_into_emchar_dynarr'.
3845         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3846         `convert_charc_string_into_bufbyte_dynarr'.
3847         (convert_charc_string_into_malloced_string): New function; delete
3848         `convert_charc_string_into_malloced_string'.
3849
3850         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3851         `find_charsets_in_emchar_string'.
3852         (charc_string_displayed_columns): New prototype; delete
3853         `emchar_string_displayed_columns'.
3854         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3855         `convert_charc_string_into_bufbyte_dynarr'.
3856         (convert_charc_string_into_malloced_string): New prototype; delete
3857         `convert_charc_string_into_malloced_string'.
3858
3859 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3860
3861         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3862
3863 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3864
3865         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3866
3867         * char-ucs.h: Use <short> for <Charset_ID>.
3868
3869         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3870         <Charset_ID>.
3871
3872 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3873
3874         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3875         to 0.16.
3876
3877 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3878
3879         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3880         variable.
3881         (Qmorohashi_daikanwa): New variable.
3882         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3883         for `morohashi-daikanwa' attribute.
3884         (Fget_char_attribute): Likewise.
3885         (Fput_char_attribute): Likewise.
3886         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3887         has the same value of `ideograph-daikanwa'.
3888         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3889         (vars_of_mule_charset): Setup
3890         `Vcharacter_morohashi_daikanwa_table'.
3891
3892 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3893
3894         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3895         attributes.
3896         (add_charset_to_list_mapper): Add `key' instead of
3897         `XCHARSET_NAME (value)' to return aliases.
3898
3899 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3900
3901         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3902         variable.
3903         (Vcharacter_ideographic_strokes_table): New variable.
3904         (Qideographic_radical): New variable.
3905         (Qideographic_strokes): New variable.
3906         (Fchar_attribute_alist): Use
3907         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3908         attribute; use `Vcharacter_ideographic_strokes_table' for
3909         `ideographic-strokes' attribute.
3910         (Fget_char_attribute): Likewise.
3911         (Fput_char_attribute): Likewise.
3912         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3913         `ideographic-strokes'.
3914         (vars_of_mule_charset): Setup
3915         `Vcharacter_ideographic_radical_table' and
3916         `Vcharacter_ideographic_strokes_table'.
3917
3918 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3919
3920         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3921         (Qtotal_strokes): New variable.
3922         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3923         `total-strokes' attribute.
3924         (Fget_char_attribute): Likewise.
3925         (Fput_char_attribute): Likewise.
3926         (syms_of_mule_charset): Add new symbol `total-strokes'.
3927         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3928
3929 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3930
3931         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3932         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3933         are found.
3934         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3935         `->decomposition' attribute.
3936         (Fput_char_attribute): Likewise.
3937         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3938
3939 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3940
3941         * mule-charset.c (decoding_table_check_elements): New function.
3942         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3943
3944 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3945
3946         * mule-charset.c (Fset_charset_mapping_table): Use
3947         `put_char_ccs_code_point'.
3948
3949 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3950
3951         * mule-charset.c (decoding_table_put_char): New inline function.
3952         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3953
3954 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3955
3956         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3957         (XCHARSET_BYTE_SIZE): New macro.
3958         (decoding_table_remove_char): New inline function.
3959         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3960         `decoding_table_remove_char'.
3961         (remove_char_ccs): Use `decoding_table_remove_char'.
3962         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3963
3964 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3965
3966         * mule-charset.c (Vcharacter_name_table): New variable.
3967         (Qname): New variable.
3968         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3969         attribute.
3970         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3971         `Vcharacter_name_table' for `name' attribute.
3972         (Fremove_char_attribute): Use function `remove_char_ccs'.
3973         (put_char_ccs_code_point): New function.
3974         (remove_char_ccs): New function.
3975         (syms_of_mule_charset): Add new symbol `name'.
3976         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3977
3978 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3979
3980         * mule-charset.c (make_byte_table): Add new argument `older'.
3981         (make_char_id_table): Likewise.
3982         (copy_char_id_table): Comment out because it is not used.
3983         (put_char_id_table): Modify for `make_byte_table'.
3984         (Fput_char_attribute): Make encoding_table as older object;
3985         inherit older bit of `Vcharacter_composition_table'.
3986         (mark_charset): Don't mark `cs->encoding_table'.
3987         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3988         normal object; make `Vcharacter_composition_table' as an older
3989         object; delete staticpro for `Vcharacter_composition_table'; make
3990         `Vcharacter_variant_table' as a normal object.
3991
3992         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3993         (mark_object): Don't check older object in UTF-2000.
3994
3995         * lrecord.h (struct lrecord_header): Add new member `older' in
3996         UTF-2000.
3997         (set_lheader_implementation): Setup `SLI_header->older' in
3998         UTF-2000.
3999         (set_lheader_older_implementation): New macro in UTF-2000.
4000         (OLDER_RECORD_P): New macro in UTF-2000.
4001         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
4002         (alloc_older_lcrecord): New prototype in UTF-2000.
4003         (alloc_older_lcrecord_type): New macro in UTF-2000.
4004
4005 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4006
4007         * mule-charset.c (byte_table_description): Use
4008         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
4009         (char_id_table_description): Delete bogus `, 1'.
4010         (Fget_char_attribute): Refer encoding_table of each coded-charset
4011         to get value of coded-charset attribute of a character.
4012         (Fput_char_attribute): Use `make_older_vector' instead of
4013         `make_vector'; use encoding_table of each coded-charset to store
4014         value of coded-charset attribute of a character.
4015         (Fremove_char_attribute): Use encoding_table of each coded-charset
4016         to store value of coded-charset attribute of a character.
4017         (mark_charset): Mark `cs->encoding_table'; don't mark
4018         `cs->decoding_table'.
4019         (charset_description): Add description of new member
4020         `encoding_table'.
4021         (make_charset): Initialize `encoding_table'.
4022
4023         * char-ucs.h (struct Lisp_Charset): Add new member
4024         `encoding_table'.
4025         (CHARSET_ENCODING_TABLE): New macro.
4026         (XCHARSET_ENCODING_TABLE): New macro.
4027         (charset_code_point): New implementation.
4028         (encode_char_1): Likewise.
4029
4030         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
4031         (disksave_object_finalization_1): Call finalizers of
4032         `all_older_lcrecords' in UTF-2000.
4033         (make_older_vector): New function in UTF-2000.
4034         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
4035         UTF-2000.
4036
4037         * lisp.h (make_older_vector): New prototype in UTF-2000.
4038
4039 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4040
4041         * lrecord.h (enum lrecord_type): Rename
4042         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
4043
4044         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
4045         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
4046         `get_char_code_table'.
4047
4048         * mule-charset.c (mark_char_id_table): Renamed from
4049         `mark_char_code_table'.
4050         (char_id_table_equal): Renamed from `char_code_table_equal'.
4051         (char_id_table_hash): Renamed from `char_code_table_hash'.
4052         (make_char_id_table): Renamed from `make_char_code_table'.
4053         (copy_char_id_table): Renamed from `copy_char_code_table'.
4054         (get_char_id_table): Renamed from `get_char_code_table'.
4055         (put_char_id_table): Renamed from `put_char_code_table'.
4056         (to_char_id): Renamed from `to_char_code'.
4057
4058         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
4059         `Lisp_Char_Code_Table'.
4060         (char_id_table): Renamed from `char_code_table'.
4061         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
4062         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4063         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4064         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4065         (get_char_id_table): Renamed from `get_char_code_table'.
4066
4067 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4068
4069         * lrecord.h (enum lrecord_type): Rename
4070         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4071
4072         * mule-charset.c (mark_byte_table): Renamed from
4073         `mark_char_byte_table'.
4074         (byte_table_equal): Renamed from `char_byte_table_equal'.
4075         (byte_table_hash): Renamed from `byte_table_hash'.
4076         (make_byte_table): Renamed from `make_byte_table'.
4077         (copy_byte_table): Renamed from `copy_char_byte_table'.
4078
4079         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4080         `Lisp_Char_Byte_Table'.
4081         (byte_table): Renamed from `char_byte_table'.
4082         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4083         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4084         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4085         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4086
4087 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4088
4089         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4090         (dfc_convert_to_internal_format): Likewise.
4091         
4092         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4093         * text-coding.c (Fcoding_system_alias_p): New function.
4094         * text-coding.c (Fcoding_system_aliasee): New function.
4095         * text-coding.c (append_suffix_to_symbol): New function.
4096         * text-coding.c (dangling_coding_system_alias_p): New function.
4097         * text-coding.c (Ffind_coding_system):
4098         * text-coding.c (Fcopy_coding_system):
4099         * text-coding.c (encode_coding_no_conversion):
4100         * text-coding.c (syms_of_file_coding):
4101         * text-coding.c (vars_of_file_coding):
4102         Rewrite coding system alias code.
4103         Allow nested aliases, like symbolic links.
4104         Allow redefinition of coding system aliases.
4105         Prevent existence of dangling coding system aliases.
4106         Eliminate convert_to_external_format.
4107         Eliminate convert_to_internal_format.
4108         
4109         * text-coding.c: Change enum eol_type to eol_type_t.
4110
4111 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4112
4113         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4114         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4115
4116         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4117         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4118
4119 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4120
4121         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4122         `ideograph-daikanwa'.
4123
4124         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4125         (Vcharset_ucs_bmp): Likewise.
4126         (Vcharset_mojikyo): Add new extern variable definition.
4127         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4128         (Vcharset_latin_iso8859_3): Likewise.
4129         (Vcharset_latin_iso8859_4): Likewise.
4130         (Vcharset_latin_iso8859_9): Likewise.
4131         (Vcharset_latin_viscii_lower): Likewise.
4132         (Vcharset_latin_viscii_upper): Likewise.
4133         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4134         `mojikyo' code-point is used to decode.
4135         (encode_char_2): New function [to convert `mojikyo' code-point to
4136         Mojikyo font encoding].
4137         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4138         (breakup_char_1): Likewise.
4139         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4140
4141 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4142
4143         * text-coding.c (Fmake_coding_system): Add document about
4144         `disable-composition' property.
4145
4146 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4147
4148         * text-coding.c (Qdisable_composition): New variable; delete
4149         `Qcomposite'.
4150         (Fmake_coding_system): Add new property `disable-composite';
4151         delete property `composite'.
4152         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4153         instead of `!CODING_SYSTEM_COMPOSITE'.
4154         (syms_of_file_coding): Add new symbol `disable-composition';
4155         delete symbol `composite'.
4156
4157         * file-coding.h (struct Lisp_Coding_System): Add
4158         `disable_composition'; delete `enable_composition'.
4159         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4160         `CODING_SYSTEM_COMPOSITE'.
4161         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4162         `XCODING_SYSTEM_COMPOSITE'.
4163
4164 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4165
4166         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4167         to 0.15.
4168
4169 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4170
4171         * text-coding.c (Qcomposite): New variable.
4172         (Fmake_coding_system): Add new property `composite'.
4173         (struct decoding_stream): Add `combined_char_count',
4174         `combined_chars' and `combining_table' in UTF-2000.
4175         (COMPOSE_FLUSH_CHARS): New macro.
4176         (COMPOSE_ADD_CHAR): New macro.
4177         (reset_decoding_stream): Reset `str->combined_char_count' and
4178         `str->combining_table' in UTF-2000.
4179         (decode_coding_iso2022): Modify for character-decomposition.
4180         (syms_of_file_coding): Add new symbol `composite'.
4181
4182 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4183
4184         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4185         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4186         of `Vcharacter_composition_table' if `->decomposition' property
4187         has only 1 element.
4188         (Qlatin_tcvn5712): New variable.
4189         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4190         (complex_vars_of_mule_charset): Add new coded-charset
4191         `latin-tcvn5712'.
4192
4193         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4194
4195 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4196
4197         * file-coding.h (struct Lisp_Coding_System): Add
4198         `enable_composition'.
4199         (CODING_SYSTEM_COMPOSITE): New macro.
4200         (XCODING_SYSTEM_COMPOSITE): New macro.
4201
4202 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4203
4204         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4205
4206 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4207
4208         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4209         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4210
4211 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4212
4213         * mule-charset.c (Vcharset_mojikyo): New variable.
4214         (Fdefine_char): Don't use coded-charset which does not have
4215         non-builtin character range to allocate character-id.
4216         (Qmojikyo): New variable.
4217         (syms_of_mule_charset): Add new symbol `mojikyo'.
4218         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4219
4220         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4221         (LEADING_BYTE_MOJIKYO): New macro.
4222         (MIN_CHAR_MOJIKYO): New macro.
4223         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4224         (MAX_CHAR_MOJIKYO): New macro.
4225
4226 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4227
4228         * mule-charset.c (remove_char_attribute): Fixed.
4229
4230 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4231
4232         * mule-charset.c (remove_char_attribute): New function.
4233         (Fremove_char_attribute): New function.
4234         (encode_builtin_char_1): Comment out builtin-support for
4235         greek-iso8859-7 and cyrillic-iso8859-5.
4236         (Fdecode_char): Check `code' is an integer.
4237         (syms_of_mule_charset): Add `remove-char-attribute'.
4238         (MIN_CHAR_GREEK): Deleted.
4239         (MAX_CHAR_GREEK): Likewise.
4240         (MIN_CHAR_CYRILLIC): Likewise.
4241         (MAX_CHAR_CYRILLIC): Likewise.
4242         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4243         MAX_CHAR_GREEK for `greek-iso8859-7'.
4244
4245         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4246         (MAX_CHAR_GREEK): Likewise.
4247         (MIN_CHAR_CYRILLIC): Likewise.
4248         (MAX_CHAR_CYRILLIC): Likewise.
4249
4250 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4251
4252         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4253         format is used without `ucs' property.
4254         (Fdecode_char): Fix problem with GR representation.
4255         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4256         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4257
4258 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4259
4260         * mule-charset.c (make_builtin_char): New function.
4261         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4262         (Fset_charset_mapping_table): Modify for new representation of
4263         code-point.
4264         (Fdecode_char): New function.
4265         (syms_of_mule_charset): Add new builtin function `decode-char' in
4266         UTF-2000.
4267
4268         * char-ucs.h (make_builtin_char): New prototype.
4269         (DECODE_CHAR): New inline function.
4270         (MAKE_CHAR): Use `DECODE_CHAR'.
4271
4272 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4273
4274         * text-coding.c (parse_charset_conversion_specs): Use
4275         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4276         `XCHARSET_TYPE'.
4277         (iso2022_designate): Likewise.
4278
4279         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4280         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4281
4282         * mule-charset.c (Vcharset_ucs): New variable.
4283         (print_charset): Change design; use `CHARSET_CHARS' and
4284         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4285         (make_charset): Change signature to specify `chars' and
4286         `dimension' instead of `type'.
4287         (range_charset_code_point): Modify for 256^n-set.
4288         (encode_builtin_char_1): Encode as `ucs' in default.
4289         (Fmake_charset): Modify for `make_charset'.
4290         (Fmake_reverse_direction_charset): Likewise.
4291         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4292         UTF-2000.
4293         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4294         for `make_charset'.
4295
4296         * char-ucs.h (Vcharset_ucs): New variable.
4297         (LEADING_BYTE_UCS): New macro.
4298         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4299         and `chars' to `unsigned short' from `unsigned int'.
4300         (CHARSET_TYPE): Deleted.
4301         (XCHARSET_TYPE): Deleted.
4302
4303 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4304
4305         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4306
4307         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4308         (ENCODE_CHAR): New macro.
4309
4310 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4311
4312         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4313         to 0.14 (Kawachi-Katakami).
4314
4315 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4316
4317         * text-coding.c (char_encode_shift_jis): Modify for
4318         `charset_code_point'.
4319         (char_encode_iso2022): Likewise.
4320
4321         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4322         (integer) instead of list of <Lisp_Object>s (integers) as the
4323         format of code-point of a coded-charset.
4324         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4325         (encode_builtin_char_1): New function; delete
4326         `split_builtin_char'.
4327         (charset_code_point): Return <int> instead of <Lisp_Object>.
4328         (Fsplit_char): Don't use `SPLIT_CHAR'.
4329
4330         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4331         prototype for `split_builtin_char'.
4332         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4333         (charset_code_point): Likewise.
4334         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4335         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4336
4337 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4338
4339         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4340         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4341
4342 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4343
4344         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4345
4346         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4347         (MAX_CHAR_OBS_94x94): Deleted.
4348
4349 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4350
4351         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4352
4353         * char-ucs.h (MAX_CHAR_BMP): New macro.
4354
4355 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4356
4357         * text-coding.c: Sync with r21-2-24.
4358
4359 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4360
4361         * file-coding.c: Modify for UTF-2000.
4362
4363 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4364
4365         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4366         to 0.13 (Takaida).
4367
4368 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4369
4370         * mule-charset.c (split_builtin_char): Delete builtin support for
4371         `katakana-jisx0201'.
4372         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4373         BMP area in builtin representation.
4374
4375         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4376         `Vcharset_katakana_jisx0201'.
4377
4378 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4379
4380         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4381         (Qisolated): New variable.
4382         (Qinitial): New variable.
4383         (Qmedial): New variable.
4384         (Qfinal): New variable.
4385         (Qvertical): New variable.
4386         (Qsmall): New variable.
4387         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4388         `Qvertical' and `Qsmall'.
4389         (Qmojikyo_pj_[1 .. 21]): New variable.
4390         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4391         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4392         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4393         .. 21]'.
4394
4395 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4396
4397         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4398         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4399         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4400
4401 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4402
4403         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4404         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4405         BMP.
4406         (Qjapanese_jisx0208_1990): New variable.
4407         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4408         (complex_vars_of_mule_charset): Add new coded-charset
4409         `japanese-jisx0208-1990'.
4410
4411         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4412         (MIN_CHAR_JIS_X0208_1990): New macro.
4413         (MAX_CHAR_JIS_X0208_1990): New macro.
4414
4415 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4416
4417         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4418         coded-charset is not found.
4419
4420 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4421
4422         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4423         (Fdefine_char): Use `Fmake_char'.
4424
4425 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4426
4427         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4428         (Vcharset_hiragana_jisx0208): Deleted.
4429         (Vcharset_katakana_jisx0208): Deleted.
4430         (Qideograph_daikanwa): New variable.
4431         (Qhiragana_jisx0208): Deleted.
4432         (Qkatakana_jisx0208): Deleted.
4433         (split_builtin_char): Split `ideograph-daikanwa'.
4434         (Fsplit_char): New implementation for UTF-2000.
4435         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4436         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4437         (complex_vars_of_mule_charset): Add new coded-charset
4438         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4439         `katakana-jisx0208'.
4440
4441         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4442         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4443         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4444         (MIN_CHAR_DAIKANWA): New macro.
4445         (MAX_CHAR_DAIKANWA): New macro.
4446
4447 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4448
4449         * data.c (Fstring_to_number): Don't recognize floating point if
4450         base is not 10.
4451
4452 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4453
4454         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4455
4456 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4457
4458         * mule-charset.c (Qsquare): New variable.
4459         (to_char_code): Add `Qsquare'.
4460         (syms_of_mule_charset): Add new symbol `square'.
4461
4462 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4463
4464         * mule-charset.c (Qcircle): New variable.
4465         (to_char_code): Add `Qcircle'.
4466         (syms_of_mule_charset): Add new symbol `circle'.
4467
4468 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4469
4470         * mule-charset.c (Qfont): New variable.
4471         (to_char_code): Add `Qfont'.
4472         (syms_of_mule_charset): Add new symbol `font'.
4473
4474 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4475
4476         * mule-charset.c (Qsub): New variable.
4477         (to_char_code): Add `Qsub'.
4478         (syms_of_mule_charset): Add new symbol `sub'.
4479
4480 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4481
4482         * mule-charset.c (Fput_char_attribute): Convert each element of
4483         VALUE to GL position if ATTRIBUTE is a GR-set,
4484
4485 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4486
4487         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4488         coded-charset is a GR-set.
4489
4490 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4491
4492         * mule-charset.c (Fput_char_attribute): Check each element of
4493         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4494
4495 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4496
4497         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4498         UTF-2000.
4499         (Qethiopic_ucs): New variable in UTF-2000.
4500         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4501         (complex_vars_of_mule_charset): Add new coded-charset
4502         `ethiopic-ucs' in UTF-2000.
4503
4504         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4505         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4506         9)'.
4507         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4508         10)'.
4509         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4510
4511 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4512
4513         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4514         `ascii'.
4515
4516 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4517
4518         * mule-charset.c (Vcharacter_variant_table): New variable.
4519         (Q_ucs): New variable.
4520         (Fchar_variants): New function.
4521         (Fput_char_attribute): Register `->ucs' value to
4522         `Vcharacter_variant_table'.
4523         (syms_of_mule_charset): Add new function `char-variants' and new
4524         symbol `->ucs'.
4525         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4526
4527 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4528
4529         * mule-charset.c (get_char_code_table): Allow negative character
4530         code.
4531         (put_char_code_table): Likewise.
4532         (Vcharacter_composition_table): New variable.
4533         (Q_decomposition): New variable.
4534         (Qwide): New variable.
4535         (Qnarrow): New variable.
4536         (Qcompat): New variable.
4537         (QnoBreak): New variable.
4538         (Qsuper): New variable.
4539         (Qfraction): New variable.
4540         (to_char_code): New function.
4541         (Fget_composite_char): New function.
4542         (Fput_char_attribute): Register `->decomposition' value to
4543         `Vcharacter_composition_table'.
4544         (syms_of_mule_charset): Add new function `get-composite-char', new
4545         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4546         `super' and `fraction'.
4547         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4548
4549 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4550
4551         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4552         character; copy the return value.
4553
4554 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4555
4556         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4557
4558         * mule-charset.c (range_charset_code_point): Must use make_int.
4559         (split_builtin_char): New function.
4560
4561 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4562
4563         * mule-charset.c (char_byte_table): Change name from
4564         "char-code-table" to "char-byte-table".
4565         (mark_char_code_table): New function.
4566         (char_code_table_equal): New function.
4567         (char_code_table_hash): New function.
4568         (char_code_table_description): New constant.
4569         (char_code_table): New type.
4570         (make_char_code_table): New function.
4571         (copy_char_code_table): New function.
4572         (get_char_code_table): Modify for `char_code_table' type.
4573         (put_char_code_table): Likewise.
4574         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4575         (Kashiwara).
4576
4577         * char-ucs.h (char_code_table): New type.
4578         (XCHAR_CODE_TABLE): New macro.
4579         (XSETCHAR_CODE_TABLE): New macro.
4580         (CHAR_CODE_TABLE_P): New macro.
4581         (GC_CHAR_CODE_TABLE_P): New macro.
4582         (struct Lisp_Char_Code_Table): New structure.
4583
4584 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4585
4586         * mule-charset.c (Fmake_charset): Setup byte_offset for
4587         {94|96}^n-set.
4588
4589 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4590
4591         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4592         character.
4593
4594 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4595
4596         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4597         is found.
4598
4599 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4600
4601         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4602         charset, it is regarded as a charset.
4603         (put_char_attribute): New function in UTF-2000.
4604         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4605         charset, mapping-table of the charset is modified.
4606         (Fdefine_char): New function in UTF-2000.
4607         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4608         `Fput_char_attribute'.
4609         (syms_of_mule_charset): Add new function `define-char' and new
4610         symbol `ucs' in UTF-2000.
4611         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4612
4613 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4614
4615         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4616         non-UTF-2000 configuration.
4617
4618 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4619
4620         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4621         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4622
4623         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4624         deleted.
4625         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4626         (Fset_charset_mapping_table): Likewise.
4627
4628         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4629         (CHARSET_ENCODING_TABLE): Delete.
4630         (XCHARSET_ENCODING_TABLE): Delete.
4631         (charset_code_point): New interface.
4632
4633 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4634
4635         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4636         instead of `charset_get_byte1' and `charset_get_byte2'.
4637
4638         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4639         (charset_get_byte2): Deleted.
4640
4641 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4642
4643         * char-ucs.h (SPLIT_CHAR): New inline function.
4644         (breakup_char_1): Use `SPLIT_CHAR'.
4645
4646         * mule-charset.c (range_charset_code_point): New function.
4647         (charset_code_point): New function.
4648
4649         * char-ucs.h (range_charset_code_point): New interface.
4650         (breakup_char_1): Use `range_charset_code_point'.
4651
4652 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4653
4654         * mule-charset.c (Fmake_charset): Delete unused local variable
4655         `code_offset'.
4656
4657         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4658         (breakup_char_1): Find a charset and code-point in
4659         `Vcharacter_attribute_table'.
4660
4661 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4662
4663         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4664         to 0.10 (Yao).
4665
4666 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4667
4668         * mule-charset.c (Vcharacter_attribute_table): New variable.
4669         (Fchar_attribute_alist): New function.
4670         (Fget_char_attribute): New function.
4671         (Fput_char_attribute): New function.
4672         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4673         too.
4674         (syms_of_mule_charset): Add new function `char-attribute-alist',
4675         `get-char-attribute' and `put-char-attribute'.
4676         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4677
4678 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4679
4680         * mule-charset.c (Fmake_charset): Just use
4681         `get_unallocated_leading_byte'.
4682
4683         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4684         sets; don't use final-byte based number for private sets.
4685
4686 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4687
4688         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4689         integer.
4690
4691 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4692
4693         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4694         to 0.9.
4695
4696 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4697
4698         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4699         of `CHAR_LEADING_BYTE' in UTF-2000.
4700
4701         * insdel.c (find_charsets_in_bufbyte_string): Use
4702         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4703         (find_charsets_in_emchar_string): Likewise.
4704
4705         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4706         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4707
4708         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4709         (CHAR_CHARSET_ID): New macro.
4710
4711 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4712
4713         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4714         charset-id - MIN_LEADING_BYTE.
4715         (put_char_table): Likewise.
4716
4717 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4718
4719         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4720         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4721         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4722         (CHARSET_ID_OFFSET): New macro.
4723         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4724         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4725         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4726         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4727         4).
4728         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4729         5).
4730         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4731         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4732         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4733         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4734         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4735
4736 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4737
4738         * mule-charset.c (next_allocated_leading_byte): New variable in
4739         UTF-2000.
4740         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4741         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4742         (get_unallocated_leading_byte): Simply use
4743         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4744         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4745         UTF-2000.
4746
4747         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4748         (MAX_LEADING_BYTE_PRIVATE): New macro.
4749         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4750         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4751
4752 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4753
4754         * mule-charset.c (Fmake_charset): Allocate final-byte based
4755         charset-id for 94-set, 96-set and 94x94-set.
4756
4757 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4758
4759         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4760         ambiguous `else'.
4761         (Fmake_charset): Likewise.
4762         (complex_vars_of_mule_charset): Modify the font registry of
4763         `ucs-bmp' not to match `Ethiopic-Unicode'.
4764
4765 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4766
4767         * mule-charset.c (complex_vars_of_mule_charset): Add font
4768         registory of `ucs-bmp'.
4769
4770 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4771
4772         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4773         coded-charsets in `default-coded-charset-priority-list' when
4774         breaking up a character.
4775
4776         * mule-charset.c (Vcharset_latin_viscii): New variable.
4777         (Qlatin_viscii): New variable.
4778         (make_charset): Don't use `decoding_table'.
4779         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4780         byte_offset.
4781         (Fset_charset_mapping_table): New implementation.
4782         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4783         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4784         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4785         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4786         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4787         charset `latin_viscii'.
4788
4789         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4790         (CHARSET_TYPE_94X94): Change to 1 from 2.
4791         (CHARSET_TYPE_96): Change to 2 from 1.
4792         (CHARSET_TYPE_128): New macro.
4793         (CHARSET_TYPE_128X128): Change to 5 from 4.
4794         (CHARSET_TYPE_256): New macro.
4795         (CHARSET_TYPE_256X256): Change to 7 from 5.
4796         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4797
4798 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4799
4800         * text-coding.c (char_encode_shift_jis): Refer
4801         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4802         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4803
4804         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4805         (char_byte_table_equal): New function in UTF-2000.
4806         (char_byte_table_hash): New function in UTF-2000.
4807         (char_byte_table_description): New constant in UTF-2000.
4808         (char_byte_table): New type in UTF-2000.
4809         (make_char_byte_table): New function in UTF-2000.
4810         (copy_char_byte_table): New function in UTF-2000.
4811         (make_char_code_table): New macro in UTF-2000.
4812         (get_char_code_table): New function in UTF-2000.
4813         (put_char_code_table): New function in UTF-2000.
4814         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4815         (charset_description): Add setting in UTF-2000.
4816         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4817         `CHARSET_TO_BYTE1_TABLE(cs)'.
4818         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4819         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4820         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4821         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4822         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4823         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4824         `CHARSET_TO_BYTE2_TABLE(cs)'.
4825
4826         * char-ucs.h (char_byte_table): New type.
4827         (XCHAR_BYTE_TABLE): New macro.
4828         (XSETCHAR_BYTE_TABLE): New macro.
4829         (CHAR_BYTE_TABLE_P): New macro.
4830         (GC_CHAR_BYTE_TABLE_P): New macro.
4831         (struct Lisp_Char_Byte_Table): New structure.
4832         (get_char_code_table): New interface.
4833         (Emchar_to_byte_table): Deleted.
4834         (get_byte_from_character_table): Deleted.
4835         (struct Lisp_Charset): Add `encoding_table'; delete
4836         `to_byte1_table' and `to_byte2_table'.
4837         (CHARSET_ENCODING_TABLE): New macro.
4838         (CHARSET_TO_BYTE1_TABLE): Deleted.
4839         (CHARSET_TO_BYTE2_TABLE): Deleted.
4840         (XCHARSET_ENCODING_TABLE): New macro.
4841         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4842         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4843
4844 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4845
4846         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4847         `vietnamese-viscii-*'.
4848
4849 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4850
4851         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4852         (Qvietnamese_viscii_upper): New variable.
4853         (Fdefine_charset_alias): New function.
4854         (syms_of_mule_charset): Add new function `define-charset-alias'.
4855         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4856         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4857         `latin-viscii-*'.
4858
4859 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4860
4861         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4862         (MAX_CHAR_OBS_94x94): New macro.
4863         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4864         for 94x94 sets.
4865
4866         * mule-charset.c (put_byte_from_character_table): Change unit size
4867         from 128 to 256.
4868         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4869         not defined.
4870         (Fmake_reverse_direction_charset): Modify dummy argument of
4871         `make_charset' for non-UTF-2000 environment.
4872
4873 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4874
4875         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4876
4877         * mule-charset.c (destroy_byte_from_character_table): New macro.
4878         (latin_jisx0201_to_ucs): Deleted.
4879         (latin_iso8859_2_to_ucs): Deleted.
4880         (latin_iso8859_3_to_ucs): Deleted.
4881         (latin_iso8859_4_to_ucs): Deleted.
4882         (latin_iso8859_9_to_ucs): Deleted.
4883         (latin_viscii_lower_to_ucs): Deleted.
4884         (latin_viscii_upper_to_ucs): Deleted.
4885         (mark_charset): Mark `cs->decoding_table'.
4886         (Fcharset_mapping_table): Fix DOC-string.
4887         (Fset_charset_mapping_table): New function.
4888         (syms_of_mule_charset): Add nwe function
4889         `set-charset-mapping-table'.
4890         (complex_vars_of_mule_charset): Don't setup and use
4891         `latin_*_to_ucs'.
4892
4893 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4894
4895         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4896         charset.
4897
4898 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4899
4900         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4901         (Vcharset_katakana_jisx0208): New variable.
4902         (Qhiragana_jisx0208): New variable.
4903         (Qkatakana_jisx0208): New variable.
4904         (make_charset): Add new argument `byte_offset'.
4905         (charset_get_byte1): Modify for new coded-charset definition; use
4906         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4907         `XCHARSET_BYTE_OFFSET'.
4908         (Fmake_charset): Modify for `make_charset'.
4909         (Fmake_reverse_direction_charset): Likewise.
4910         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4911         `katakana-jisx0208'.
4912         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4913         `.'  in font registry of charset `katakana-jisx0201',
4914         `latin-jisx0201', `vietnamese-viscii-lower' and
4915         `vietnamese-viscii-upper'; modify DOC-string of charset
4916         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4917         registry of charset `japanese-jisx0208' not to use font for JIS
4918         X0208:1990; add new charset `hiragana-jisx0208' and
4919         `katakana-jisx0208'.
4920
4921         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4922         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4923         (struct Lisp_Charset): Add `byte_offset'.
4924         (CHARSET_BYTE_OFFSET): New macro.
4925         (XCHARSET_UCS_MIN): New macro.
4926         (XCHARSET_UCS_MAX): New macro.
4927         (XCHARSET_CODE_OFFSET): New macro.
4928         (XCHARSET_BYTE_OFFSET): New macro.
4929         (MIN_CHAR_HIRAGANA): New macro.
4930         (MAX_CHAR_HIRAGANA): New macro.
4931         (MIN_CHAR_KATAKANA): New macro.
4932         (MAX_CHAR_KATAKANA): New macro.
4933         (MAKE_CHAR): Modify for new coded-charset definition; use
4934         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4935         `XCHARSET_BYTE_OFFSET'.
4936
4937 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4938
4939         * mule-charset.c (CHAR96): Deleted.
4940         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4941         <Lisp_Object>.
4942         (latin_iso8859_2_to_ucs): Likewise.
4943         (latin_iso8859_3_to_ucs): Likewise.
4944         (latin_iso8859_4_to_ucs): Likewise.
4945         (latin_iso8859_9_to_ucs): Likewise.
4946         (latin_viscii_lower_to_ucs): Likewise.
4947         (latin_viscii_upper_to_ucs): Likewise.
4948         (latin_tcvn5712_to_ucs): Commented out.
4949         (make_charset): Change type of argument `decoding_table' from
4950         <Emchar*> to <Lisp_Object> [vector of characters].
4951         (Fmake_charset): Modify for `make_charset'.
4952         (Fmake_reverse_direction_charset): Likewise.
4953         (Fcharset_mapping_table): New function in UTF-2000.
4954         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4955         UTF-2000.
4956         (complex_vars_of_mule_charset): Modify for type change of
4957         `*_to_ucs'; modify for `make_charset'.
4958
4959         * char-ucs.h (struct Lisp_Charset): Change type of
4960         `decoding_table' from <Emchar*> to <Lisp_Object>.
4961         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4962
4963 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4964
4965         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4966         error with non-UTF-2000-Mule.
4967
4968 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4969
4970         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4971         in lisp again].
4972         (Vcharset_chinese_cns11643_4): Likewise.
4973         (Vcharset_chinese_cns11643_5): Likewise.
4974         (Vcharset_chinese_cns11643_6): Likewise.
4975         (Vcharset_chinese_cns11643_7): Likewise.
4976         (Qchinese_cns11643_3): Likewise.
4977         (Qchinese_cns11643_4): Likewise.
4978         (Qchinese_cns11643_5): Likewise.
4979         (Qchinese_cns11643_6): Likewise.
4980         (Qchinese_cns11643_7): Likewise.
4981         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4982         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4983         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4984         (complex_vars_of_mule_charset): Likewise.
4985
4986 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4987
4988         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4989         96-set.
4990         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4991         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4992
4993 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4994
4995         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4996         0xFF60.
4997         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4998         (breakup_char_1): Likewise.
4999
5000         * text-coding.c (char_encode_iso2022): Keep designated charsets if
5001         one of them includes the specified character.
5002
5003 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5004
5005         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
5006
5007 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5008
5009         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
5010
5011 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5012
5013         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
5014         definition for non-UTF-2000 Mule.
5015         (latin_iso8859_3_to_ucs): Likewise.
5016         (latin_iso8859_4_to_ucs): Likewise.
5017         (latin_iso8859_9_to_ucs): Likewise.
5018         (latin_jisx0201_to_ucs): Likewise.
5019         (MIN_CHAR_THAI): Likewise.
5020         (MAX_CHAR_THAI): Likewise.
5021         (MIN_CHAR_GREEK): Likewise.
5022         (MAX_CHAR_GREEK): Likewise.
5023         (MIN_CHAR_HEBREW): Likewise.
5024         (MAX_CHAR_HEBREW): Likewise.
5025         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
5026         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
5027         (MIN_CHAR_CYRILLIC): Likewise.
5028         (MAX_CHAR_CYRILLIC): Likewise.
5029
5030 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5031
5032         * char-ucs.h (breakup_char_1): Use
5033         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
5034         thai-tis620 and katakana-jisx0201 area.
5035
5036 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5037
5038         * char-ucs.h (breakup_char_1): Use
5039         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
5040         area.
5041
5042         * text-coding.c (reset_encoding_stream): Fixed.
5043         (char_encode_ucs4): Delete `& 255'.
5044
5045         * char-ucs.h (breakup_char_1): Use
5046         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
5047
5048 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5049
5050         * file-coding.c (Fmake_coding_system): Don't set up
5051         `codesys->fixed.size'.
5052         (encode_coding_no_conversion): Don't refer
5053         `str->codesys->fixed.size'.
5054
5055 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5056
5057         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
5058         (latin_a_char_to_byte1): Deleted.
5059         (latin_a_char_to_byte2): Deleted.
5060
5061 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5062
5063         * mule-charset.c (make_charset): Add new argument `ucs_min',
5064         `ucs_max' and `code_offset'.
5065         (charset_get_byte1): New implementation [delete specific charset
5066         depended implementations].
5067         (Fmake_charset): Modify for `make_charset'.
5068         (Fmake_reverse_direction_charset): Likewise.
5069         (complex_vars_of_mule_charset): Likewise.
5070
5071         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5072         `code_offset'.
5073         (CHARSET_UCS_MIN): New macro.
5074         (CHARSET_UCS_MAX): New macro.
5075         (CHARSET_CODE_OFFSET): New macro.
5076         (MAKE_CHAR): Delete charset depended definitions [except
5077         katakana-jisx0201].
5078
5079 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5080
5081         * char-ucs.h (breakup_char_1): Use
5082         `Vdefault_coded_charset_priority_list' for C0-Controls,
5083         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5084
5085 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5086
5087         * char-ucs.h (charset_get_byte1): New function.
5088         (XCHARSET_GET_BYTE1): Deleted.
5089         (charset_get_byte2): New function.
5090         (XCHARSET_GET_BYTE2): Deleted.
5091         (Vdefault_coded_charset_priority_list): New external variable.
5092         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5093         `Vdefault_preferred_coded_charset_list'.
5094
5095         * mule-charset.c (charset_get_byte1): New function.
5096         (charset_get_byte2): New function.
5097         (Vdefault_coded_charset_priority_list): New variable.
5098         (vars_of_mule_charset): Add new variable
5099         `default-coded-charset-priority-list'.
5100
5101 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5102
5103         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5104         (XCHARSET_GET_BYTE2): New inline function.
5105         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5106         `XCHARSET_GET_BYTE2'.
5107
5108 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5109
5110         * mule-charset.c (make_charset): Initialize
5111         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5112         NULL if table is not defined.
5113
5114 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5115
5116         * text-coding.c (char_encode_shift_jis): Use
5117         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5118         `ucs_to_latin_jisx0201'.
5119
5120         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5121         (ucs_to_latin_iso8859_2): Deleted.
5122         (ucs_to_latin_iso8859_3): Deleted.
5123         (ucs_to_latin_iso8859_4): Deleted.
5124         (ucs_to_latin_iso8859_9): Deleted.
5125         (ucs_to_latin_viscii_lower): Deleted.
5126         (ucs_to_latin_viscii_upper): Deleted.
5127         (ucs_to_latin_tcvn5712): Deleted.
5128         (make_charset): Add new argument `decoding_table'; set up
5129         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5130         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5131         `decoding_table' is defined in UTF-2000.
5132         (Fmake_charset): Modify for `make_charset'.
5133         (Fmake_reverse_direction_charset): Likewise.
5134         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5135         and `GENERATE_96_SET'.
5136
5137         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5138         (ucs_to_latin_jisx0201): Deleted.
5139         (latin_iso8859_2_to_ucs): Deleted.
5140         (ucs_to_latin_iso8859_2): Deleted.
5141         (latin_iso8859_3_to_ucs): Deleted.
5142         (ucs_to_latin_iso8859_3): Deleted.
5143         (latin_iso8859_4_to_ucs): Deleted.
5144         (ucs_to_latin_iso8859_4): Deleted.
5145         (latin_iso8859_9_to_ucs): Deleted.
5146         (ucs_to_latin_iso8859_9): Deleted.
5147         (latin_viscii_lower_to_ucs): Deleted.
5148         (ucs_to_latin_viscii_lower): Deleted.
5149         (latin_viscii_upper_to_ucs): Deleted.
5150         (ucs_to_latin_viscii_upper): Deleted.
5151         (struct Lisp_Charset): Renamed `encoding_table' to
5152         `to_byte1_table'; add `to_byte2_table'.
5153         (CHARSET_DECODING_TABLE): New macro.
5154         (CHARSET_TO_BYTE1_TABLE): New macro.
5155         (CHARSET_TO_BYTE2_TABLE): New macro.
5156         (XCHARSET_DECODING_TABLE): New macro.
5157         (XCHARSET_TO_BYTE1_TABLE): New macro.
5158         (XCHARSET_TO_BYTE2_TABLE): New macro.
5159         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5160         tables.
5161         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5162         don't use `ucs_to_*' tables.
5163
5164 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5165
5166         * text-coding.c (Fmake_coding_system): Don't set up
5167         `codesys->fixed.size'.
5168         (encode_coding_no_conversion): Use `if' instead of `switch'.
5169
5170         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5171
5172 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5173
5174         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5175         (Fmake_charset): Modify for `make_charset'.
5176         (Fmake_reverse_direction_charset): Likewise.
5177         (complex_vars_of_mule_charset): Likewise.
5178
5179 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5180
5181         * text-coding.c (char_encode_shift_jis): Use table
5182         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5183
5184 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5185
5186         * text-coding.c (text_encode_generic): Use `if' instead of
5187         `switch'.
5188         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5189         decode JIS-Latin.
5190
5191 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5192
5193         * text-coding.c (encode_coding_sjis): Deleted.
5194         (char_encode_shift_jis): New function.
5195         (char_finish_shift_jis): New function.
5196         (reset_encoding_stream): Set up `encode_char' and `finish' for
5197         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5198         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5199         (char_encode_utf8): Treat `eol_type'.
5200
5201 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5202
5203         * file-coding.c (decode_coding_iso2022): Use
5204         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5205
5206 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5207
5208         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5209         to 0.7 (Hirano).
5210
5211 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5212
5213         * char-lb.h (CHAR_COLUMNS): New macro.
5214
5215 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5216
5217         * text-coding.c (char_encode_ucs4): New function.
5218         (char_finish_ucs4): New function.
5219         (encode_coding_ucs4): Deleted.
5220         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5221         (text_encode_generic): Delete local variable `charset' and `half'.
5222         (ucs_to_mule_table): Deleted.
5223         (mule_to_ucs_table): Deleted.
5224         (Fset_ucs_char): Deleted.
5225         (ucs_to_char): Deleted.
5226         (Fucs_char): Deleted.
5227         (Fset_char_ucs): Deleted.
5228         (Fchar_ucs): Deleted.
5229         (decode_ucs4): Deleted.
5230         (mule_char_to_ucs4): Deleted.
5231         (encode_ucs4): Deleted.
5232         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5233         (decode_coding_utf8): Likewise.
5234         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5235         (char_encode_iso2022): Fixed.
5236         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5237         `Fset_char_ucs' and `Fchar_ucs'.
5238         (complex_vars_of_file_coding): Don't initialize
5239         `ucs_to_mule_table'.
5240
5241         * objects-tty.c (tty_initialize_font_instance): Don't use
5242         `XCHARSET_COLUMNS'.
5243
5244         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5245         UTF-2000.
5246
5247         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5248         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5249
5250         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5251         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5252         (emchar_string_displayed_columns): Likewise.
5253
5254         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5255         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5256         (string_column_at_point): Likewise.
5257         (Fmove_to_column): Likewise.
5258
5259         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5260         `encoding_table' and `decoding_table'.
5261         (CHARSET_REP_BYTES): Deleted.
5262         (XCHARSET_REP_BYTES): Deleted.
5263         (XCHARSET_COLUMNS): Deleted.
5264         (CHAR_COLUMNS): New macro.
5265         (lookup_composite_char): Deleted unconditionally.
5266         (composite_char_string): Likewise.
5267
5268 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5269
5270         * char-ucs.h (Emchar_to_byte_table): New type.
5271         (get_byte_from_character_table): New function interface.
5272         (Vcharset_latin_jisx0201): New variable.
5273         (latin_jisx0201_to_ucs): New variable.
5274         (ucs_to_latin_jisx0201): New variable.
5275         (Vcharset_latin_iso8859_2): New variable.
5276         (latin_iso8859_2_to_ucs): New variable.
5277         (ucs_to_latin_iso8859_2): New variable.
5278         (Vcharset_latin_iso8859_3): New variable.
5279         (latin_iso8859_3_to_ucs): New variable.
5280         (ucs_to_latin_iso8859_3): New variable.
5281         (Vcharset_latin_iso8859_4): New variable.
5282         (latin_iso8859_4_to_ucs): New variable.
5283         (ucs_to_latin_iso8859_4): New variable.
5284         (Vcharset_latin_iso8859_9): New variable.
5285         (latin_iso8859_9_to_ucs): New variable.
5286         (ucs_to_latin_iso8859_9): New variable.
5287         (Vcharset_latin_viscii_lower): New variable.
5288         (latin_viscii_lower_to_ucs): New variable.
5289         (ucs_to_latin_viscii_lower): New variable.
5290         (Vcharset_latin_viscii_upper): New variable.
5291         (latin_viscii_upper_to_ucs): New variable.
5292         (ucs_to_latin_viscii_upper): New variable.
5293         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5294         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5295         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5296         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5297         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5298         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5299         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5300         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5301         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5302         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5303
5304         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5305         (Vcharset_latin_viscii_upper): New variable.
5306         (make_byte_from_character_table): New function.
5307         (put_byte_from_character_table): New function.
5308         (get_byte_from_character_table): New function.
5309         (CHAR96): New macro.
5310         (ucs_to_latin_jisx0201): New variable.
5311         (latin_jisx0201_to_ucs): New variable.
5312         (ucs_to_latin_iso8859_2): New variable.
5313         (latin_iso8859_2_to_ucs): New variable.
5314         (ucs_to_latin_iso8859_3): New variable.
5315         (latin_iso8859_3_to_ucs): New variable.
5316         (ucs_to_latin_iso8859_4): New variable.
5317         (latin_iso8859_4_to_ucs): New variable.
5318         (ucs_to_latin_iso8859_9): New variable.
5319         (latin_iso8859_9_to_ucs): New variable.
5320         (ucs_to_latin_viscii_lower): New variable.
5321         (latin_viscii_lower_to_ucs): New variable.
5322         (ucs_to_latin_viscii_upper): New variable.
5323         (latin_viscii_upper_to_ucs): New variable.
5324         (ucs_to_latin_tcvn5712): New variable.
5325         (latin_tcvn5712_to_ucs): New variable.
5326         (Qlatin_viscii_lower): New variable.
5327         (Qlatin_viscii_upper): New variable.
5328         (syms_of_mule_charset): Set up new symbol
5329         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5330         (complex_vars_of_mule_charset): Set up new charset
5331         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5332         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5333         `ucs_to_<CHARSET>' tables.
5334
5335 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5336
5337         * text-coding.c: New file.
5338
5339 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5340
5341         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5342
5343         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5344         (MAKE_CHAR): Modify for `ucs-bmp'.
5345         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5346         non-MULE characters of BMP.
5347
5348 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5349
5350         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5351         to 0.6.
5352
5353 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5354
5355         * lstream.h:
5356         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5357         - Include character.h for `CHAR_ASCII_P'.
5358
5359         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5360
5361         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5362         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5363
5364         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5365         (BYTE_C0_P): Likewise.
5366         (BYTE_C1_P): Likewise.
5367         (Lstream_get_emchar_1): Likewise.
5368         (Lstream_fput_emchar): Likewise.
5369         (Lstream_funget_emchar): Likewise.
5370         (copy_internal_to_external): Likewise.
5371         (copy_external_to_internal): Likewise.
5372
5373         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5374         (BYTE_C0_P): Likewise.
5375         (BYTE_C1_P): Likewise.
5376         (Lstream_get_emchar_1): Likewise.
5377         (Lstream_fput_emchar): Likewise.
5378         (Lstream_funget_emchar): Likewise.
5379         (copy_internal_to_external): Likewise.
5380         (copy_external_to_internal): Likewise.
5381
5382         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5383         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5384
5385         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5386         (BYTE_ASCII_P): Moved to mb-1byte.h.
5387
5388 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5389
5390         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5391
5392         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5393         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5394         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5395         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5396         (VALIDATE_CHARPTR_FORWARD): Likewise.
5397         (simple_charptr_emchar): Moved to mb-multibyte.h.
5398         (simple_set_charptr_emchar): Likewise.
5399         (simple_charptr_copy_char): Likewise.
5400         (non_ascii_charptr_emchar): Likewise.
5401         (non_ascii_set_charptr_emchar): Likewise.
5402         (non_ascii_charptr_copy_char): Likewise.
5403         (charptr_emchar): Moved to mb-*byte.h.
5404         (set_charptr_emchar): Likewise.
5405         (charptr_copy_char): Likewise.
5406
5407         * mb-1byte.h, mb-multibyte.h: New files.
5408
5409 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5410
5411         * mb-utf-8.h (MULTIBYTE): New macro.
5412         (MAX_EMCHAR_LEN): Moved from buffer.h.
5413         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5414
5415         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5416
5417         * mb-lb.h, multibyte.h: New files.
5418
5419         * char-1byte.h (Charset_ID): Moved from buffer.h.
5420         (MIN_LEADING_BYTE): Likewise.
5421         (LEADING_BYTE_ASCII): Likewise.
5422         (NUM_LEADING_BYTES): Likewise.
5423         (CHARSETP): Likewise.
5424         (CHARSET_BY_LEADING_BYTE): Likewise.
5425         (XCHARSET_LEADING_BYTE): Likewise.
5426         (XCHARSET_GRAPHIC): Likewise.
5427         (XCHARSET_COLUMNS): Likewise.
5428         (XCHARSET_DIMENSION): Likewise.
5429         (CHAR_CHARSET): Likewise.
5430         (CHAR_LEADING_BYTE): Likewise.
5431         (BREAKUP_CHAR): Likewise.
5432         (Vcharset_ascii): Likewise.
5433
5434         * buffer.h: Include multibyte.h unconditionally.
5435         (VALID_CHARPTR_P): Moved to multibyte.h.
5436         (ASSERT_VALID_CHARPTR): Likewise.
5437         (REAL_INC_CHARPTR): Likewise.
5438         (REAL_INC_CHARBYTIND): Likewise.
5439         (REAL_DEC_CHARPTR): Likewise.
5440         (INC_CHARPTR): Likewise.
5441         (INC_CHARBYTIND): Likewise.
5442         (DEC_CHARPTR): Likewise.
5443         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5444         (VALIDATE_CHARPTR_FORWARD): Likewise.
5445         (charptr_n_addr): Likewise.
5446         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5447         (simple_charptr_emchar): Moved to multibyte.h.
5448         (simple_set_charptr_emchar): Likewise.
5449         (simple_charptr_copy_char): Likewise.
5450         (non_ascii_charptr_emchar): Likewise.
5451         (non_ascii_set_charptr_emchar): Likewise.
5452         (non_ascii_charptr_copy_char): Likewise.
5453         (charptr_emchar): Likewise.
5454         (set_charptr_emchar): Likewise.
5455         (charptr_copy_char): Likewise.
5456         (charptr_emchar_n): Likewise.
5457         (Charset_ID): Moved to char-1byte.h.
5458         (Vcharset_ascii): Likewise.
5459         (CHAR_CHARSET): Likewise.
5460         (CHAR_LEADING_BYTE): Likewise.
5461         (LEADING_BYTE_ASCII): Likewise.
5462         (NUM_LEADING_BYTES): Likewise.
5463         (MIN_LEADING_BYTE): Likewise.
5464         (CHARSETP): Likewise.
5465         (CHARSET_BY_LEADING_BYTE): Likewise.
5466         (XCHARSET_LEADING_BYTE): Likewise.
5467         (XCHARSET_GRAPHIC): Likewise.
5468         (XCHARSET_COLUMNS): Likewise.
5469         (XCHARSET_DIMENSION): Likewise.
5470         (BREAKUP_CHAR): Likewise.
5471
5472 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5473
5474         * character.h: Add document about interface for characters.
5475
5476         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5477         (MAKE_CHAR): Delete comment about
5478         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5479         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5480         (BREAKUP_CHAR): Modify name of arguments.
5481         (CHAR_CHARSET): Modify name of argument.
5482
5483         * buffer.h: Delete document about Emchar accessors.
5484
5485 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5486
5487         * character.h (CHAR_INTP): Moved from buffer.h
5488         (CHAR_OR_CHAR_INTP): Likewise.
5489         (XCHAR_OR_CHAR_INT): Likewise.
5490         (CHECK_CHAR_COERCE_INT): Likewise.
5491
5492         * buffer.h (CHAR_INTP): Moved to character.h
5493         (CHAR_OR_CHAR_INTP): Likewise.
5494         (XCHAR_OR_CHAR_INT): Likewise.
5495         (CHECK_CHAR_COERCE_INT): Likewise.
5496
5497 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5498
5499         * character.h:
5500         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5501         - Include char-1byte.h, char-lb.h or char-ucs.h.
5502
5503         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5504
5505         * buffer.h: Include character unconditionally.
5506         (valid_char_p): Moved to char-*.h.
5507         (non_ascii_valid_char_p): Moved to char-lb.h.
5508
5509         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5510
5511 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5512
5513         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5514         in UTF-2000 because it is not ported yet and not to use
5515         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5516         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5517         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5518
5519         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5520         (CHAR_ASCII_P): Moved from character.h.
5521
5522         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5523         (CHAR_ASCII_P): Likewise.
5524         (CHAR_FIELD1_MASK): Deleted.
5525         (CHAR_FIELD2_MASK): Deleted.
5526         (CHAR_FIELD3_MASK): Deleted.
5527         (MAX_CHAR_BASIC_LATIN): New macro.
5528         (CHAR_FIELD1): Deleted.
5529         (CHAR_FIELD2_INTERNAL): Deleted.
5530         (CHAR_FIELD3_INTERNAL): Deleted.
5531         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5532         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5533         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5534         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5535         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5536         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5537         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5538         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5539         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5540         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5541         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5542         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5543         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5544         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5545         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5546         (MIN_CHAR_COMPOSITION): Deleted.
5547         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5548         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5549
5550 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5551
5552         * buffer.h: Include mb-utf-8.h in UTF-2000.
5553
5554         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5555
5556         * mb-utf-8.h: New file.
5557
5558 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5559
5560         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5561         instead of `int'.
5562
5563         * mule-charset.h, buffer.h (Charset_ID): New type.
5564
5565 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5566
5567         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5568         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5569         instead of `MULE_CHAR_PRIVATE_OFFSET',
5570         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5571         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5572         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5573
5574         * character.h (Vcharset_japanese_jisx0212): New variable
5575         definition.
5576
5577 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5578
5579         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5580         (charset_by_attributes): Delete array about direction.
5581         (latin_a_char_to_charset): New variable in UTF-2000.
5582         (latin_a_char_to_byte1): New variable in UTF-2000.
5583         (latin_a_char_to_byte2): New variable in UTF-2000.
5584         (Qucs_bmp): New variable.
5585         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5586         `Bufbyte'.
5587         (next_allocated_2_byte_leading_byte): Likewise.
5588         (non_ascii_set_charptr_emchar): Likewise.
5589         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5590         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5591         `charset_by_attributes'.
5592         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5593         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5594         and `CHARSET_BY_LEADING_BYTE'.
5595         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5596         `utf-2000-version' to `vars_of_mule_charset'.
5597         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5598         define `leading-code-private-11' in UTF-2000; move setting of
5599         `utf-2000-version' from `syms_of_mule_charset'.
5600         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5601         UTF-2000.
5602
5603         * character.h (Charset_ID): New type.
5604         (LEADING_BYTE_UCS_BMP): New macro.
5605         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5606         (CHARSET_ID_OFFSET_94): New macro.
5607         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5608         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5609         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5610         final-byte.
5611         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5612         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5613         (CHARSET_ID_OFFSET_96): New macro.
5614         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5615         CHARSET_ID_OFFSET_96 and final-byte.
5616         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5617         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5618         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5619         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5620         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5621         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5622         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5623         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5624         (LEADING_BYTE_THAI_TIS620): Likewise.
5625         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5626         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5627         (CHARSET_ID_OFFSET_94x94): New macro.
5628         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5629         CHARSET_ID_OFFSET_94x94 and final-byte.
5630         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5631         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5632         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5633         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5634         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5635         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5636         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5637         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5638         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5639         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5640         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5641         (CHARSET_TYPE_128X128): New macro.
5642         (CHARSET_TYPE_256X256): New macro.
5643         (XCHARSET_PRIVATE_P): Delete unconditionally.
5644         (charset_by_attributes): Delete array about direction.
5645         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5646         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5647         (MIN_CHAR_94): New macro.
5648         (MAX_CHAR_94): New macro.
5649         (MIN_CHAR_96): New macro.
5650         (MAX_CHAR_96): New macro.
5651         (MIN_CHAR_94x94): New macro.
5652         (MAX_CHAR_94x94): New macro.
5653         (MIN_CHAR_96x96): New macro.
5654         (MAX_CHAR_96x96): New macro.
5655         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5656         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5657         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5658         - 32)'.
5659         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5660         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5661         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5662         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5663         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5664         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5665         `XCHARSET_LEADING_BYTE' to make code-point.
5666         (latin_a_char_to_charset): New variable.
5667         (latin_a_char_to_byte1): New variable.
5668         (latin_a_char_to_byte2): New variable.
5669         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5670         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5671         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5672
5673         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5674         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5675         (find_charsets_in_emchar_string): Likewise.
5676         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5677
5678         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5679         `int'.
5680         (decode_coding_iso2022): Likewise.
5681
5682         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5683         of `unsigned char'.
5684
5685         * redisplay.c (redisplay_text_width_emchar_string): Use
5686         `Charset_ID' instead of `unsigned char'.
5687         (redisplay_frame_text_width_string): Likewise.
5688
5689         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5690         `unsigned char'.
5691
5692         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5693         instead of `unsigned char'.
5694         (face_cachel_charset_font_metric_info): Likewise.
5695
5696         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5697         (get_non_ascii_char_table_value): Likewise.
5698         (get_char_table): Likewise.
5699         (put_char_table): Likewise.
5700         (map_over_other_charset): Likewise.
5701         (map_char_table): Likewise.
5702
5703         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5704         instead of `unsigned char'.
5705
5706 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5707
5708         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5709         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5710
5711         * mule-charset.c (leading_code_private_11): Don't define in
5712         UTF-2000.
5713
5714         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5715         in UTF-2000 because it is not ported yet and not to use
5716         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5717
5718 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5719
5720         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5721
5722 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5723
5724         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5725         in UTF-2000.
5726
5727         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5728         of unsigned char to store leading-byte.
5729
5730         * chartab.c (get_non_ascii_char_table_value): Don't use
5731         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5732
5733         * file-coding.c (encode_coding_big5): Delete bogus implementation
5734         in UTF2000.
5735
5736         * character.h (LEADING_BYTE_*): Delete definition for
5737         non-UTF-2000.
5738         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5739         (LEADING_BYTE_PREFIX_P): Deleted.
5740         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5741         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5742         (BUFBYTE_LEADING_BYTE_P): Deleted.
5743         (CHARSET_PRIVATE_P): Deleted unconditionally.
5744         (rep_bytes_by_first_byte): Deleted unconditionally.
5745         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5746         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5747         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5748         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5749         (CHAR_FIELD2): Deleted.
5750         (CHAR_FIELD3): Deleted.
5751         (MAKE_CHAR): Delete definition for non-UTF-2000.
5752         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5753         (breakup_char_1): New implementation.
5754         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5755         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5756
5757 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5758
5759         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5760         condition.
5761
5762 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5763
5764         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5765         (CHARSET_PRIVATE_P): Likewise.
5766         (XCHARSET_PRIVATE_P): Likewise.
5767         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5768
5769         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5770         UTF2000.
5771         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5772
5773 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5774
5775         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5776         (NUM_LEADING_BYTES): Changed from 128 to 256.
5777         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5778         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5779         UTF2000.
5780         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5781
5782         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5783         UTF2000.
5784         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5785         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5786         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5787         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5788         (Qchinese_cns11643_3): New variable in UTF2000.
5789         (Qchinese_cns11643_4): New variable in UTF2000.
5790         (Qchinese_cns11643_5): New variable in UTF2000.
5791         (Qchinese_cns11643_6): New variable in UTF2000.
5792         (Qchinese_cns11643_7): New variable in UTF2000.
5793         (syms_of_mule_charset): Define `chinese-cns11643-3',
5794         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5795         and `chinese-cns11643-7' in UTF2000.
5796         (vars_of_mule_charset): Initialize
5797         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5798         + 1 in UTF2000.
5799         (complex_vars_of_mule_charset): Setup charset
5800         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5801         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5802
5803 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5804
5805         * mule-charset.c: Move setting for `leading-code-private-11' from
5806         `syms_of_mule_charset' to `vars_of_mule_charset'.
5807
5808 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5809
5810         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5811         and `NUM_LEADING_BYTES' in assert.
5812
5813 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5814
5815         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5816         instead of 128.
5817         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5818         `NUM_LEADING_BYTES' instead of 128.
5819
5820 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5821
5822         * mule-charset.h (charset_by_leading_byte): Use
5823         `NUM_LEADING_BYTES' instead of 128.
5824         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5825
5826         * mule-charset.c (charset_by_leading_byte): Use
5827         `NUM_LEADING_BYTES' instead of 128.
5828         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5829
5830         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5831         128.
5832
5833 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5834
5835         * mule-charset.c (syms_of_mule_charset): Update to
5836         0.4 (Shin-Imamiya).
5837
5838 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5839
5840         * file-coding.c (encode_coding_sjis): New implementation for
5841         UTF2000.  (decode_coding_sjis): Ditto.
5842
5843 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5844
5845         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5846         Don't define in UTF2000.
5847
5848         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5849         defined.
5850
5851         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5852         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5853         MULE.
5854
5855 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5856
5857         * config.h.in (CHAR_IS_UCS4): New macro.
5858
5859         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5860         conventional MULE representation.
5861         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5862
5863         * mule-charset.h: Reverted to original.
5864
5865         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5866         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5867         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5868
5869         * character.h: New file.
5870
5871         * file-coding.c (Fmake_coding_system): Set 1 to
5872         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5873         defined.
5874         (encode_coding_no_conversion): New implementation for UTF2000.
5875
5876         * file-coding.h (struct Lisp_Coding_System): Add new member
5877         `fixed.size'.
5878
5879 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5880
5881         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5882         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5883         (encode_coding_iso2022): New implementation for UTF2000.
5884
5885 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5886
5887         * mule-canna.c (c2mu): New implementation for UTF2000.
5888         (m2c): Likewise.
5889
5890 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5891
5892         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5893
5894 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5895
5896         * file-coding.c (reset_encoding_stream): Set 0 to
5897         `str->iso2022.current_char_boundary' in UTF2000.
5898         (encode_utf8): Don't define in UTF2000.
5899         (encode_coding_utf8): New implementation for UTF-8 representation
5900         of UTF2000.
5901         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5902
5903 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5904
5905         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5906
5907         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5908         UTF2000.
5909         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5910
5911         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5912
5913         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5914         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5915         as UTF-8 in UTF2000.
5916         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5917         (non_ascii_valid_char_p): Don't define in UTF2000.
5918         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5919         (Lstream_get_emchar_1): Likewise.
5920         (utf-2000-version): New variable in UTF2000.
5921
5922         * lread.c (read_escape): Add new reader `u'.
5923
5924         * insdel.c (three_to_one_table): Don't define in UTF2000.
5925         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5926         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5927         UTF2000.
5928         (bytind_to_bufpos_func): Likewise.
5929         (buffer_mule_signal_inserted_region): Likewise.
5930         (vars_of_insdel): Don't initialize `three_to_one_table'.
5931         (init_buffer_text): Use `buf->text->mule_size' instead of
5932         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5933         UTF2000.
5934
5935         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5936         UTF-8 representation in UTF2000.
5937         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5938         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5939         (decode_coding_iso2022): Don't define local variable `lb' in
5940         UTF2000; don't use LEADING_BYTE in UTF2000; use
5941         `DECODE_ADD_UCS_CHAR' in UTF2000.
5942         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5943
5944         * config.h.in (UTF2000): New macro.
5945
5946         * buffer.h (struct buffer_text): Add new member `mule_size' and
5947         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5948         (valid_char_p): Return always 1 in UTF2000.
5949         (MAX_EMCHAR_LEN): 6 in UTF2000.
5950         (three_to_one_table): Don't define in UTF2000.
5951         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5952         UTF2000.
5953         (real_bytind_to_bufpos): Likewise.
5954
5955         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5956
5957 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5958
5959         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5960         representation change.
5961         (Vutf_2000_version): New variable.
5962         (leading_code_private_11): New variable.
5963         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5964         `leading-code-private-11'.
5965
5966         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5967         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5968         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5969         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5970         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5971         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5972         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5973         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5974         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5975         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5976         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5977         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5978         (MIN_CHAR_GREEK): New macro.
5979         (MAX_CHAR_GREEK): New macro.
5980         (MIN_CHAR_CYRILLIC): New macro.
5981         (MAX_CHAR_CYRILLIC): New macro.
5982         (MIN_CHAR_HEBREW): New macro.
5983         (MAX_CHAR_HEBREW): New macro.
5984         (MIN_CHAR_THAI): New macro.
5985         (MAX_CHAR_THAI): New macro.
5986         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5987         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5988         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5989         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5990         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5991         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5992         (CHAR_FIELD2): New inline function.
5993         (CHAR_FIELD3): New inline function.
5994         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5995         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5996         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5997         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5998         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5999         (MIN_CHAR_COMPOSITION): Likewise.
6000         (CHAR_LEADING_BYTE): Modified for character representation change.
6001         (MAKE_CHAR): Likewise.
6002
6003         * lisp.h (Vcharset_latin_iso8859_1): New variable.
6004         (Vcharset_greek_iso8859_7): Likewise.
6005         (Vcharset_cyrillic_iso8859_5): Likewise.
6006         (Vcharset_hebrew_iso8859_8): Likewise.
6007         (Vcharset_thai_tis620): Likewise.
6008         (Vcharset_katakana_jisx0201): Likewise.
6009
6010 2008-12-28  Vin Shelton  <acs@xemacs.org>
6011
6012         * XEmacs 21.4.22 is released
6013
6014 2008-12-27  Vin Shelton  <acs@xemacs.org>
6015
6016         * syswindows.h: Don't define wide character interfaces for Cygwin
6017         1.7 and up.
6018
6019 2008-03-05  Dominique Quatravaux  <domq@cpan.org>
6020
6021         * glyphs-gtk.c: Fixed compilation under gcc 4.x.
6022
6023 2008-11-01  Stephen J. Turnbull  <stephen@xemacs.org>
6024
6025         * regex.c (re_search_2): Fix at_dot by changing charpos to bytepos.
6026         From Julian Bradfield <18654.1143.304851.782755@krk.inf.ed.ac.uk>.
6027
6028 2008-12-25  Vin Shelton  <acs@xemacs.org>
6029
6030         * mule-ccl.c (ccl_driver): Fix off-by-one error.
6031         By Julian Bradfield in
6032         <18691.16568.526264.972026@krk.inf.ed.ac.uk>.
6033
6034         * mule-ccl.c (ccl_driver): 
6035
6036 2007-10-07  Vin Shelton  <acs@xemacs.org>
6037
6038         * XEmacs 21.4.21 is released
6039
6040 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
6041
6042         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
6043
6044 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
6045
6046         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
6047         (png_instantiate): Initialize setjmp_buffer early, and avoid
6048         recursive entry to error handler.
6049
6050 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
6051
6052         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
6053         a typo fix.
6054
6055 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
6056
6057         * event-Xt.c (x_reset_modifier_mapping):
6058         * event-gtk.c (gtk_reset_modifier_mapping):
6059         Zero out the device's modifier map once we've freed it, to prevent
6060         a double free on a re-entrant call. 
6061
6062 2007-05-17  Vin Shelton  <acs@xemacs.org>
6063
6064         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
6065         64-bit linux.  Patch from Hans de Graaff.
6066
6067 2007-05-02  Vin Shelton  <acs@xemacs.org>
6068
6069         * dumper.c (pdump): Don't close pdump_fd (already closed by
6070         fclose() call.  Patch from Steve Higham.
6071         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
6072         already closed.  Patch inspired by Steve Higham.
6073
6074 2007-05-01  Vin Shelton  <acs@xemacs.org>
6075
6076         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
6077         (mswindows_fstat): Ditto.
6078         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
6079
6080 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
6081
6082         * postgresql.c: Update Steve Baur's email address by his request.
6083         * postgresql.h: Ditto.
6084
6085 2007-01-04  Vin Shelton  <acs@xemacs.org>
6086
6087         * fileio.c (check_writable): Check old-style readonly bit only for
6088         non-directories.
6089
6090 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
6091
6092         * src/fileio.c (check_writable): 
6093         Cope with the fact that the read-only attribute trumps Windows NTFS
6094         ACLS.
6095
6096
6097 2006-12-09  Vin Shelton  <acs@xemacs.org>
6098
6099         * XEmacs 21.4.20 is released
6100
6101 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
6102
6103         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6104         relocated the definitions to be used sooner in file.
6105         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6106         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6107         overflow.
6108
6109 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6110
6111         * sound.c (init_native_sound):
6112         Only X11 and GTK devices can possibly not be on the console of the
6113         associated machine. Fixes a crash when init_native_sound is called
6114         on a msprinter device. 
6115
6116 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6117
6118         * buffer.c (buffer-file-name): Document invariant.
6119         (buffer-file-truename): Sync wording to buffer-file-name.
6120         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6121         and discussion.
6122
6123 2006-11-19  Benson Margulies  <benson@dchbk.us>
6124
6125         * fileio.c: Add code to use full Win32 API to check for write
6126         access.  Win32 has the general design policy that you aren't
6127         supposed to ask this question, since security checks change
6128         depending on asynchronous processes.  Nonetheless, there is a way,
6129         by acting as if we are a server doing interpretive access
6130         control.
6131
6132 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6133
6134         * bytecode.c: Use xnew_array instead of alloca.
6135
6136 2006-07-04  Vin Shelton  <acs@xemacs.org>
6137
6138         * redisplay-msw.c: Fix tiny, but crucial typo.
6139
6140 2006-06-22  Jerry James  <james@xemacs.org>
6141
6142         * EmacsShell-sub.c (ChangeManaged):
6143         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6144         NULL.
6145         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6146         checking if it is NULL.  Also fix a memory leak.
6147         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6148         dereference it, not the other way around.
6149         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6150         overflow check.
6151         * dumper.c (pdump_register_struct): Ditto.
6152         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6153         to (short) warnpath overflow warnpath.
6154         * extents.c (detach_all_extents): Call extent_list_delete_all with
6155         a non-NULL parameter only.
6156         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6157         NULL width and height.
6158         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6159         xic before checking if they are NULL.
6160         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6161         allocated array.
6162         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6163         * nas.c (Err): Fix a memory leak.
6164         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6165         Don't create the buffer if there is nothing to do.
6166         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6167         * redisplay-output.c (redisplay_output_layout): Ditto.
6168         * redisplay-tty.c (tty_output_display_block): Ditto.
6169         * redisplay-x.c (x_output_display_block): Ditto.
6170         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6171         dereference instance->scrollbar_data if it is NULL.
6172         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6173         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6174         for sb->scrollbar_data.
6175         * sound.c (init_native_sound): Avoid a buffer overflow by
6176         allocating a buffer with the appropriate size.
6177
6178 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6179
6180         * EmacsShell-sub.c (RootGeometryManager):
6181         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6182         Based on a suggestion by Francois L'Archeveque.
6183
6184 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6185
6186         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6187         current values found in GNU Emacs.
6188
6189 2006-03-17  Vin Shelton  <acs@xemacs.org>
6190
6191         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6192         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6193
6194         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6195         'hex_initialized' because it conflicts with 'initialized' in
6196         lisp.h.
6197
6198 2006-01-28  Vin Shelton  <acs@xemacs.org>
6199
6200         * XEmacs 21.4.19 is released
6201
6202 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6203
6204         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6205
6206 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6207
6208         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6209         5000 to INT_MAX.
6210
6211 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6212
6213         * database.c: Suppress compiler warning under Cygwin.
6214         * database.c: Removed __FreeBSD__ check, should be handled by
6215         HAVE_U_xxx_T defines.
6216
6217 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6218
6219         * console.c (stuff_buffered_input): Compile body only if
6220         HAVE_TTY.
6221
6222 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6223
6224         * callproc.c: #include sysdir.h, so that any appropriate Mule
6225         magic happens with the chdir() call when calling a subprocess. 
6226
6227 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6228
6229         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6230         * mule-ccl.c: Check that a character set exists before using it
6231         to create a character. 
6232
6233 2005-12-06  Vin Shelton  <acs@xemacs.org>
6234
6235         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6236         to INT_MAX.
6237
6238 2005-12-03  Vin Shelton <acs@xemacs.org>
6239
6240         * XEmacs 21.4.18 is released
6241
6242 2005-11-27  Kean Johnston <kean@armory.com>
6243
6244         * redisplay-tty.c (set_tty_modes):
6245         (reset_tty_modes): disable auto-margins if the terminal supports
6246         them.
6247         (init_tty_for_redisplay): fix cursor shape.
6248
6249 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6250
6251         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6252         for control-1 characters properly, both when reading multibyte
6253         characters and writing them. 
6254
6255 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6256
6257         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6258         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6259         were seeing with incremental selection transfer failing. 
6260
6261 2005-11-26  Vin Shelton  <acs@xemacs.org>
6262
6263         * callproc.c (Fold_call_process_internal): Create the buffer if it
6264         does not already exist.  The original patch came from Ben Wing in
6265         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6266
6267 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6268
6269         * callproc.c: Process-related docstring improvements spurred by
6270         Norbert Koch.
6271
6272 2005-11-25  Vin Shelton  <acs@xemacs.org>
6273
6274         * depend: Regenerated.
6275
6276 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6277
6278         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6279         says it clashes with a global with the same name.
6280
6281 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6282
6283         * sysdll.c (dll_open): Under MacOS X return NULL under the
6284         filename is NULL.  Fixes problems finding local symbols under 10.4
6285         (Tiger)
6286
6287 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6288         
6289         * config.h.in: New HAVE_U_INT*_T defines.
6290         
6291         * database.c: Only use u_int*_t typedefs if not already
6292         defined.
6293
6294 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6295
6296         * src/process-unix.c (unix_open_network_stream): moved
6297           'portbuf' buffer out of an inner block as it is used in the
6298           entire function. With gcc4, the stack may get corrupted
6299           after leaving this block. This patches adjusts the size of
6300           the used buffer also; static '128' bytes are far too much
6301           currently and might not suffice for future architectures
6302           (e.g. for 512 bit ones ;)). Instead of, use only the really
6303           required space (max octets * ln(256)/ln(10) chars + space
6304           for '\0' and the sign)
6305
6306 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6307
6308         * callproc.c: Include sysdir.h, so any necessary Mule processing
6309         is done on the current directory name before starting a new
6310         process.
6311
6312 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6313
6314         * chartab.c (Fchar_table_p):
6315         (Fget_range_char_table):
6316         (Fput_char_table):
6317         (Fmap_char_table):
6318         Describe range representation and fix typo.
6319
6320 2005-02-12  Vin Shelton  <acs@xemacs.org>
6321
6322         * emacs.c (shut_down_emacs): Advise users to send email to the
6323         xemacs-beta list instead of crashes@xemacs.org.
6324
6325 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6326
6327         * process-unix.c (unix_send_process): Flush the last chunk, even
6328         when the pipe is blocked.
6329
6330 2005-02-06  Vin Shelton <acs@xemacs.org>
6331
6332         * XEmacs 21.4.17 is released
6333
6334 2005-01-31  Ben Wing  <ben@xemacs.org>
6335
6336         * emacs.c:
6337         Define assert_failed() always.
6338         * lisp.h:
6339         Always define ABORT().
6340
6341 2005-01-25  Ben Wing  <ben@xemacs.org>
6342
6343         * Makefile.in.in:
6344         * Makefile.in.in (%.o):
6345         Don't compile executable as Windows (-mwindows) under Cygwin.
6346         Semi-recent changes to Cygwin's executable-startup handling make
6347         it impossible to access the TTY this way.
6348
6349         Don't use special linker file under Cygwin (cygwin.sc) except
6350         when non-PDUMP (even in this case it is highly questionable); you
6351         get errors like
6352
6353       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6354    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6355
6356 2005-01-29  Ben Wing  <ben@xemacs.org>
6357
6358         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6359
6360         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6361
6362 2005-01-29  Ben Wing  <ben@xemacs.org>
6363
6364         * bytecode.c (optimize_compiled_function):
6365         * print.c (FROB):
6366         * print.c (long_to_string):
6367         Add casts to avoid warning.
6368         
6369         * glyphs-eimage.c:
6370         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6371         #### The better solution is to move the TIFF and JPEG code to
6372         different files.
6373         
6374         * glyphs-msw.c (mswindows_xbm_instantiate):
6375         Define __STDC__ to avoid problems with compface.h.
6376         
6377         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6378         * EmacsShell-sub.c:
6379         * EmacsShell-sub.c (ABORT):
6380         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6381         * EmacsShell-sub.c (RootGeometryManager):
6382         * EmacsShell.c:
6383         * EmacsShell.c (ABORT):
6384         * EmacsShell.c (EmacsShellUpdateSizeHints):
6385         * alloc.c (free_lcrecord):
6386         * alloca.c (i00afunc):
6387         * buffer.c (delete_from_buffer_alist):
6388         * buffer.c (MARKED_SLOT):
6389         * bytecode.c (execute_rare_opcode):
6390         * bytecode.c (optimize_byte_code):
6391         * bytecode.c (Ffetch_bytecode):
6392         * chartab.c (char_table_type_to_symbol):
6393         * chartab.c (Freset_char_table):
6394         * chartab.c (decode_char_table_range):
6395         * chartab.c (Fget_range_char_table):
6396         * chartab.c (check_valid_char_table_value):
6397         * chartab.c (map_char_table):
6398         * chartab.c (slow_map_char_table_fun):
6399         * chartab.c (chartab_instantiate):
6400         * cm.c (cmcheckmagic):
6401         * console-msw.c (DHEADER):
6402         * console.c (MARKED_SLOT):
6403         * data.c (finish_marking_weak_lists):
6404         * data.c (encode_weak_list_type):
6405         * debug.h (DASSERT):
6406         * device-gtk.c (gtk_init_device):
6407         * device-msw.c (mswindows_get_default_margin):
6408         * device-tty.c (tty_init_device):
6409         * device-x.c (get_device_from_display):
6410         * device-x.c (x_get_visual_depth):
6411         * doprnt.c (parse_doprnt_spec):
6412         * doprnt.c (get_doprnt_args):
6413         * dumper.c (pdump_get_indirect_count):
6414         * dumper.c (pdump_register_sub):
6415         * dumper.c (pdump_register_object):
6416         * dumper.c (pdump_register_struct):
6417         * dumper.c (pdump_dump_data):
6418         * dumper.c (pdump_reloc_one):
6419         * elhash.c (print_hash_table):
6420         * elhash.c (make_standard_lisp_hash_table):
6421         * elhash.c (hash_table_instantiate):
6422         * emacs.c:
6423         * emacs.c (Fforce_debugging_signal):
6424         * emacs.c (sort_args):
6425         * emacs.c (main):
6426         * emacs.c (assert_failed):
6427         * eval.c (throw_or_bomb_out):
6428         * eval.c (signal_1):
6429         * eval.c (Fsignal):
6430         * event-Xt.c:
6431         * event-Xt.c (emacs_Xt_mapping_action):
6432         * event-Xt.c (Xt_process_to_emacs_event):
6433         * event-msw.c:
6434         * event-stream.c (check_event_stream_ok):
6435         * event-stream.c (Fadd_timeout):
6436         * event-stream.c (Fadd_async_timeout):
6437         * event-stream.c (Fdiscard_input):
6438         * event-stream.c (execute_internal_event):
6439         * event-stream.c (Frecent_keys):
6440         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6441         * event-stream.c (lookup_command_event):
6442         * event-unixoid.c (poll_fds_for_input):
6443         * events.c:
6444         * events.c (mark_event):
6445         * events.c (event_equal):
6446         * events.c (event_hash):
6447         * events.c (Fmake_event):
6448         * events.c (Fdeallocate_event):
6449         * events.c (event_chain_find_previous):
6450         * events.c (event_to_character):
6451         * events.c (format_event_object):
6452         * events.c (Fevent_type):
6453         * events.c (event_pixel_translation):
6454         * events.c (Fevent_properties):
6455         * extents.c (extent_in_region_p):
6456         * extents.c (print_extent):
6457         * extents.c (process_extents_for_insertion_mapper):
6458         * extents.c (report_extent_modification_mapper):
6459         * extents.c (glyph_layout_to_symbol):
6460         * faces.c (face_validate):
6461         * file-coding.c (eol_type_to_symbol):
6462         * file-coding.c (subsidiary_coding_system):
6463         * file-coding.c (Fcoding_system_type):
6464         * file-coding.c (Fcoding_system_property):
6465         * file-coding.c (mule_decode):
6466         * file-coding.c (mule_encode):
6467         * file-coding.c (encode_coding_ucs4):
6468         * file-coding.c (encode_coding_utf8):
6469         * file-coding.c (parse_iso2022_esc):
6470         * file-coding.c (encode_coding_iso2022):
6471         * fileio.c:
6472         * fns.c (concat):
6473         * fns.c (Fsubseq):
6474         * fns.c (mapcar1):
6475         * fns.c (Fbase64_encode_region):
6476         * fns.c (Fbase64_encode_string):
6477         * fns.c (Fbase64_decode_region):
6478         * fns.c (Fbase64_decode_string):
6479         * font-lock.c (find_context):
6480         * font-lock.c (context_to_symbol):
6481         * frame-gtk.c (gtk_set_frame_pointer):
6482         * frame-gtk.c (gtk_update_frame_external_traits):
6483         * frame-x.c (x_wm_mark_shell_size_user_specified):
6484         * frame-x.c (x_wm_mark_shell_position_user_specified):
6485         * frame-x.c (x_wm_set_shell_iconic_p):
6486         * frame-x.c (x_wm_set_cell_size):
6487         * frame-x.c (x_wm_set_variable_size):
6488         * frame-x.c (x_wm_store_class_hints):
6489         * frame-x.c (x_wm_maybe_store_wm_command):
6490         * frame-x.c (x_initialize_frame_size):
6491         * frame-x.c (x_update_frame_external_traits):
6492         * frame.c:
6493         * frame.c (delete_frame_internal):
6494         * frame.c (mouse_pixel_position_1):
6495         * frame.c (change_frame_size_1):
6496         * free-hook.c (check_free):
6497         * free-hook.c (check_realloc):
6498         * free-hook.c (note_block_input):
6499         * free-hook.c (log_gcpro):
6500         * gccache-gtk.c (gc_cache_lookup):
6501         * glyphs-eimage.c (tiff_memory_write):
6502         * glyphs-gtk.c (gtk_finalize_image_instance):
6503         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6504         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6505         * glyphs-gtk.c (gtk_xpm_instantiate):
6506         * glyphs-gtk.c (gtk_unmap_subwindow):
6507         * glyphs-gtk.c (gtk_map_subwindow):
6508         * glyphs-gtk.c (gtk_button_redisplay):
6509         * glyphs-msw.c:
6510         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6511         * glyphs-x.c (init_image_instance_from_xbm_inline):
6512         * glyphs-x.c (extract_xpm_color_names):
6513         * glyphs-x.c (x_xpm_instantiate):
6514         * glyphs.c (get_image_instantiator_governing_domain):
6515         * glyphs.c (print_image_instance):
6516         * glyphs.c (image_instance_equal):
6517         * glyphs.c (image_instance_hash):
6518         * glyphs.c (encode_image_instance_type):
6519         * glyphs.c (make_image_instance_1):
6520         * glyphs.c (inherit_instantiate):
6521         * glyphs.c (image_instantiate):
6522         * glyphs.c (allocate_glyph):
6523         * glyphs.c (Fglyph_type):
6524         * glyphs.c (redisplay_subwindow):
6525         * glyphs.c (display_table_entry):
6526         * gtk-glue.c (xemacs_list_to_gtklist):
6527         * gtk-glue.c (xemacs_gtklist_to_list):
6528         * gtk-glue.c (xemacs_list_to_array):
6529         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6530         * gutter.c (gutter_was_visible):
6531         * gutter.c (get_gutter_coords):
6532         * input-method-xlib.c (get_XIM_input):
6533         * insdel.c (bufpos_to_bytind_func):
6534         * insdel.c (bytind_to_bufpos_func):
6535         * insdel.c (move_gap):
6536         * intl.c (x_get_composed_input):
6537         * keymap.c (keymap_lookup_directly):
6538         * keymap.c (keymap_delete_inverse_internal):
6539         * keymap.c (ensure_meta_prefix_char_keymapp):
6540         * keymap.c (accessible_keymaps_mapper_1):
6541         * keymap.c (where_is_recursive_mapper):
6542         * lisp.h:
6543         * lisp.h (ABORT):
6544         * lread.c (read_atom):
6545         * lstream.c (Lstream_delete):
6546         * lstream.c (make_lisp_buffer_stream_1):
6547         * macros.c (pop_kbd_macro_event):
6548         * malloc.c (malloc):
6549         * malloc.c (free):
6550         * marker.c (bi_marker_position):
6551         * marker.c (set_bi_marker_position):
6552         * menubar-gtk.c (menu_descriptor_to_widget_1):
6553         * menubar-msw.c (prune_menubar):
6554         * menubar-x.c (set_frame_menubar):
6555         * mule-charset.c (get_unallocated_leading_byte):
6556         * mule-charset.h (CHAR_LEADING_BYTE):
6557         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6558         * nt.c (init_environment):
6559         * nt.c (generate_inode_val):
6560         * ntproc.c (delete_child):
6561         * ntproc.c (_sys_read_ahead):
6562         * ntproc.c (create_child):
6563         * objects.c (color_instantiate):
6564         * objects.c (font_instantiate):
6565         * objects.c (face_boolean_instantiate):
6566         * print.c (printing_major_badness):
6567         * process-nt.c (nt_send_process):
6568         * process-unix.c (unix_send_process):
6569         * process.c (get_process):
6570         * ralloc.c (obtain):
6571         * ralloc.c (relinquish):
6572         * ralloc.c (relocate_blocs):
6573         * ralloc.c (resize_bloc):
6574         * ralloc.c (r_alloc_free):
6575         * ralloc.c (r_re_alloc):
6576         * ralloc.c (r_alloc_thaw):
6577         * ralloc.c (init_ralloc):
6578         * ralloc.c (Free_Addr_Block):
6579         * ralloc.c (r_alloc):
6580         * redisplay-gtk.c (gtk_output_display_block):
6581         * redisplay-msw.c (mswindows_output_display_block):
6582         * redisplay-output.c (get_next_display_block):
6583         * redisplay-output.c (get_cursor_size_and_location):
6584         * redisplay-output.c (redisplay_output_layout):
6585         * redisplay-output.c (redisplay_clear_region):
6586         * redisplay-tty.c (tty_output_display_block):
6587         * redisplay-x.c (x_output_display_block):
6588         * redisplay.c (add_propagation_runes):
6589         * redisplay.c (add_glyph_rune):
6590         * redisplay.c (create_text_block):
6591         * redisplay.c (add_margin_runes):
6592         * redisplay.c (create_left_glyph_block):
6593         * redisplay.c (create_right_glyph_block):
6594         * redisplay.c (create_string_text_block):
6595         * redisplay.c (regenerate_window):
6596         * redisplay.c (REGEN_INC_FIND_START_END):
6597         * redisplay.c (redisplay_frame):
6598         * redisplay.c (point_in_line_start_cache):
6599         * regex.c:
6600         * regex.c (ABORT):
6601         * regex.c (re_compile_fastmap):
6602         * regex.c (re_match_2_internal):
6603         * regex.c (regerror):
6604         * scrollbar-gtk.c (gtk_scrollbar_loop):
6605         * scrollbar-gtk.c (scrollbar_cb):
6606         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6607         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6608         * scrollbar-x.c (x_update_scrollbar_instance_status):
6609         * scrollbar-x.c (x_scrollbar_loop):
6610         * scrollbar-x.c (x_update_frame_scrollbars):
6611         * search.c (search_command):
6612         * search.c (Fmatch_data):
6613         * select-x.c (motif_clipboard_cb):
6614         * signal.c (interrupt_signal):
6615         * specifier.c (specifier_add_spec):
6616         * specifier.c (specifier_instance_from_inst_list):
6617         * specifier.c (specifier_instance):
6618         * specifier.h:
6619         * specifier.h (struct specifier_methods):
6620         * strftime.c (add_num_time_t):
6621         * sunplay.c (init_device):
6622         * symbols.c (Fsetplist):
6623         * symbols.c (do_symval_forwarding):
6624         * symbols.c (store_symval_forwarding):
6625         * symbols.c (Fset):
6626         * symbols.c (Fbuilt_in_variable_type):
6627         * symbols.c (decode_magic_handler_type):
6628         * symbols.c (handler_type_from_function_symbol):
6629         * syntax.c (update_syntax_cache):
6630         * sysdep.c (init_baud_rate):
6631         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6632         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6633         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6634         * toolbar.c (get_toolbar_coords):
6635         * ui-gtk.c (build_gtk_boxed):
6636         * ui-gtk.c (describe_gtk_arg):
6637         * ui-gtk.c (gtk_type_to_lisp):
6638         * ui-gtk.c (lisp_to_gtk_type):
6639         * ui-gtk.c (lisp_to_gtk_ret_type):
6640         * ui-gtk.c (lisp_to_flag):
6641         * unexnt.c (read_in_bss):
6642         * unexnt.c (map_in_heap):
6643         * window.c (real_window):
6644         * window.c (window_display_lines):
6645         * window.c (window_display_buffer):
6646         * window.c (set_window_display_buffer):
6647         * window.c (window_modeline_height):
6648         * window.c (unshow_buffer):
6649         * window.c (window_loop):
6650         * window.c (Fget_lru_window):
6651         * window.c (Fsplit_window):
6652         * window.c (Fset_window_configuration):
6653         * window.c (saved_window_index):
6654         * xgccache.c (gc_cache_lookup):
6655         abort() -> ABORT().  Eliminate preprocessor games with abort()
6656         since it creates huge problems in VC7, solvable only by including
6657         massive amounts of files in every compile (and not worth it).
6658
6659         * sysdep.c:
6660         * sysproc.h:
6661         Inclusion of process.h does not need to be before lisp.h any more.
6662         Move later and remove comment about abort().
6663
6664 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6665
6666         * regex.c (re_match_2_internal):
6667         Correctly initialize loop which clears uninitialized registers.
6668
6669 2005-01-28  Vin Shelton  <acs@xemacs.org>
6670
6671         * sheap.c (more_static_core): Applied Ben's version of the long
6672         string patch.
6673
6674 2005-01-24  Vin Shelton  <acs@xemacs.org>
6675
6676         * sheap.c (more_static_core): Reformatted printf string so
6677         gcc-3.3.3 will compile this on Cygwin.
6678
6679 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6680
6681         * console.c (function_key_map): Reference `key-binding'.
6682
6683         * keymap.c (Vkey_translation_map): Improve docstring.
6684
6685 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6686
6687         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6688         * window.c (window_loop): [fix] Take into account
6689         `allow-deletion-of-last-visible-frame' variable.
6690         * window.c (replace-buffer-in-windows): Ditto.
6691
6692 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6693
6694         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6695
6696 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6697
6698         * event-gtk.c: Recognise AltGr as a valid modifier.
6699
6700 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6701
6702         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6703
6704 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6705
6706         Fix backreference bug caught by test suite.
6707
6708         * regex.c (regex_compile):
6709         Make backref duplicate internal register.
6710
6711 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6712
6713         Documentation, code clarification, and warning suppression.
6714         
6715         * regex.c (regex_compile):
6716         Improve comments.
6717         (re_match_2_internal):
6718         Improve comments and avoid redundant braces.  [Most of the big hunk
6719         at l. 4710 is indentation; use diff -w to see the real changes.]
6720         (alt_match_null_string_p):
6721         (common_op_match_null_string_p):
6722         Avoid shadowing global on Mac OS X 10.4, at least.
6723
6724 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6725
6726         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6727         introduced with shy groups fix).  [Already applied, probably
6728         with the second "fix shy groups" patch of 2004-10-07.] 
6729
6730 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6731
6732         From Andrey Slusar <anrays@gmail.com>:
6733
6734         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6735
6736 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6737
6738         * Makefile (RECURSIVE_MAKE): Removed.
6739         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6740         handling parallel builds.
6741
6742 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6743
6744         * Makefile.in.in: Enable support for parallel builds.
6745
6746 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6747
6748         From Andrey Slusar <anrays@gmail.com>:
6749
6750         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6751         FreeBSD version is >= 199701 _and_ < 600006.
6752
6753 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6754
6755         * scrollbar.c (compute_scrollbar_instance_usage):
6756         Only call device method compute_scrollbar_instance_usage() if it
6757         is defined.
6758
6759 2004-12-05  Vin Shelton <acs@xemacs.org>
6760
6761         * XEmacs 21.4.16 is released
6762
6763 2004-12-04  Vin Shelton  <acs@xemacs.org>
6764
6765         * depend: Regenerated.
6766
6767 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6768
6769         * regex.c (re_match_2_internal): Map internal to external
6770         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6771         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6772
6773 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6774
6775         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6776         to fix a crash.  Also, check the buffer is live and it
6777         really exists in buffer_list.  If the buffer is not in the list,
6778         prepend it.
6779
6780 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6781
6782         Fix shy groups by implementing recording of all groups for
6783         repetition and backtracking.  Backport from 21.5.
6784         
6785         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6786         external_to_internal_register, external_to_internal_register_size,
6787         and update comments for re_nsub.
6788
6789         * regex.c (re_opcode_t): Update comments.
6790         (print_compiled_pattern): Ouput external_to_internal_register,
6791         external_to_internal_register_size, and re_ngroups for debugging.
6792         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6793         (regex_compile): Update header comment.
6794         Ensure that all groups are recorded so that repeat matches and
6795         backtracking work correctly.  Comment related warning for groups >
6796         255.
6797         (re_search_2): Construct map of API indexes (which count only
6798         nonshy groups) to internal register numbers, and keep it updated.
6799
6800 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6801
6802         * frame-gtk.c (gtk_make_frame_visible):
6803         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6804         show/hide.  This is what X uses and is prevents previously hidden
6805         widgets from suddenly reappearing.
6806         * gtk-xemacs.c (gtk_xemacs_paint):
6807         * gtk-xemacs.c (gtk_xemacs_draw):
6808         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6809         drawable.
6810         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6811         size and location changes so that they can be seen before the next
6812         idle event.  Without this rapid changes to scrollbar properties
6813         are not seen.
6814
6815 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6816
6817         * console-gtk.h:
6818         * console-gtk.h (struct gtk_frame):
6819         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6820           Add hash tables track tab_control callback data.
6821           Added #defines for GTK object data names.
6822           Declaration of gtk_widget_to_frame().
6823         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6824         * frame-gtk.c (gtk_widget_to_frame): New.
6825         * frame-gtk.c (gtk_create_widgets):
6826         * frame-gtk.c (allocate_gtk_frame_struct):
6827         * frame-gtk.c (gtk_mark_frame):
6828         Manage frame callbakc hash tables.
6829         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6830         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6831         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6832         of widget size.
6833         * glyphs-gtk.c (gtk_widget_query_geometry): New
6834         * glyphs-gtk.c (gtk_register_gui_item): New
6835         * glyphs-gtk.c (gtk_add_tab_item): New
6836         * glyphs-gtk.c (gtk_tab_control_callback): New
6837         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6838         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6839         Use correct list when loading item.
6840         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6841         Register new methods.
6842         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6843         default size, for widgets.
6844         * gui-x.c:  Improved comment.
6845         * menubar-gtk.c (__generic_button_callback): Use
6846         gtk_widget_to_frame instead of __get_channel.
6847         * scrollbar-gtk.c:
6848         * ui-gtk.c: Use symbolic names for GTK object data.
6849
6850 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6851
6852         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6853
6854 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6855
6856         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6857
6858 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6859
6860         * malloc.c (morecore): siz is a long because in some architectures
6861         (eg ia-64) an int cannot hold the address range.  Additional patch
6862         from the SuSe distribution.
6863
6864 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6865
6866         * emacs.c:
6867         * malloc.c: lim_data is a long because in some architectures
6868         (eg ia-64) an int cannot hold the address range.
6869         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6870         instead of ulimit() because ulimit() always returns -1.
6871
6872 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6873
6874         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6875
6876 2004-06-11  David Kastrup  <dak@gnu.org>
6877
6878         * search.c (match_limit): Don't flag an error if match-data
6879         exceeding the allocated search_regs.num_regs gets requested, just
6880         return Qnil.
6881
6882 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6883
6884         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6885         replace symbolic color entries with the real colors specified in
6886         xpm-color-symbols, before passing the XPM to gtk.
6887         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6888         instead of a GTK specific field, so that it is used in by generic
6889         code.
6890
6891 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6892
6893        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6894         coredump from deref of NULL ptr (ExtData)
6895
6896 2004-04-19  Jerry James  <james@xemacs.org>
6897
6898         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6899         VALBITS to compute the location of the sign bit.
6900         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6901         of VALBITS with EMACS_INT_MAX.
6902         * events.c (Fevent_timestamp): Ditto.
6903         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6904         compute the halfway point to timestamp wraparound.
6905         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6906         EMACS_INT_MIN instead of using VALBITS.
6907         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6908         incorrect number with VALBITS.
6909         * fns.c (Frandom): Correct number of integer bits in docstring.
6910         Use INT_VALBITS instead of VALBITS to compute the denominator.
6911         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6912         build random numbers.
6913
6914 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6915         * event-gtk.c:
6916         * event-gtk.c (gtk_event_to_emacs_event):
6917         * menubar-gtk.c:
6918         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6919         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6920         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6921         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6922         * menubar-gtk.c (__activate_menu):
6923         * menubar-gtk.c (convert_underscores):
6924         * menubar-gtk.c (remove_underscores):
6925         * menubar-gtk.c (menu_convert):
6926         * menubar-gtk.c (menu_descriptor_to_widget_1):
6927         * menubar-gtk.c (menu_descriptor_to_widget):
6928         * menubar-gtk.c (menu_can_reuse_widget):
6929         * menubar-gtk.c (menu_create_menubar):
6930         * menubar-gtk.c (gtk_popup_menu):
6931         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6932         Added support for Gtk menu bar and menu item mnemonics.
6933
6934 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6935
6936         * sysdll.c: (dll_function): Added support for finding symbols in
6937         Darwin shared libraries as well in Darwin bundles.
6938         * sysdll.c (image_for_address): New
6939         * sysdll.c (my_find_image): New
6940         * sysdll.c (search_linked_libs): New
6941
6942 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6943
6944         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6945         return to GTK requires a different API to marshalling data to use
6946         as GTK parameters.
6947         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6948
6949 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6950
6951         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6952
6953 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6954
6955         * glyphs.c (process_image_string_instantiator):
6956         (Fset_console_type_image_conversion_list):
6957         Stop GCC from warning about shadowing of `exp'.
6958
6959         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6960
6961 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6962
6963         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6964
6965 2004-02-03  Vin Shelton  <acs@xemacs.org>
6966
6967         * glyphs.c (image_instance_layout): Remove pointless assertion.
6968         * regex.c (regex_grow_registers): Return type is void.
6969
6970 2004-02-02  Vin Shelton <acs@xemacs.org>
6971
6972         * XEmacs 21.4.15 is released
6973
6974 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6975
6976         * device-x.c (x_error_handler): Don't call stderr_out
6977
6978 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6979
6980         * buffer.c (other-buffer): Clarify documentation of order of
6981         arguments for FSF Emacs.
6982
6983 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6984
6985         * window.c (Fdelete_window): Dirty the mirror structure _before_
6986         marking the window deleted.
6987
6988 2003-09-15  Jerry James  <james@xemacs.org>
6989
6990         * event-msw.c (debug_mswin_messages): Conditionally compile
6991         messages missing from the Cygwin headers.
6992
6993 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6994
6995         * data.c (eq_with_ebola_notice): Fix typo in comment.
6996         (Ftrue_list_p): Improve docstring.
6997
6998 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6999
7000         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
7001
7002 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
7003
7004         * search.c (trivial_regexp_p): Regexps containing "\{" are
7005         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
7006         Stefan Monnier for suggesting a diagnosis.
7007
7008 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
7009
7010         * elhash.c (make-hash-table): Clarify use of :test #'equal.
7011
7012 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
7013
7014         * search.c (Fsearch_forward):
7015         (Fsearch_backward):
7016         Document negative count.
7017
7018 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
7019
7020         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
7021
7022 2003-09-13  Martin Buchholz  <martin@xemacs.org>
7023
7024         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
7025
7026 2003-09-15  Vin Shelton  <acs@xemacs.org>
7027
7028         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
7029         21.5.
7030
7031 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7032
7033         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
7034         (re_search_2): Match the first byte of Bufbyte, not Emchar.
7035         (re_match_2_internal): Use TRANSLATE instead of
7036         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
7037         non-ASCII char case conversion.
7038
7039 2003-09-08  Mike Sperber  <mike@xemacs.org>
7040
7041         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
7042         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
7043
7044 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
7045
7046        * .gdbinit (pobj): fix printing of symbol name.
7047
7048 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
7049
7050         * frame-x.c (x_layout_widgets): When resizing is about to cause
7051         frame size slip, mark it for redisplay.
7052
7053 2003-08-18  Jerry James  <james@xemacs.org>
7054
7055         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
7056
7057 2003-09-03  Vin Shelton <acs@xemacs.org>
7058
7059         * XEmacs 21.4.14 is released
7060
7061 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
7062
7063         * config.h.in (REGEX_MALLOC): Make it configure'able.
7064
7065 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
7066
7067         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
7068         linking.
7069         * sysdll.c (dll_init):
7070         * sysdll.c (dll_open):
7071         * sysdll.c (dll_close):
7072         * sysdll.c (dll_function):
7073         * sysdll.c (dll_variable):
7074         * sysdll.c (dll_error):
7075         Add support for loading bundles using Darwin/MacOSX
7076         native API.
7077
7078 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
7079
7080         * process.c (start-process-internal): Document coding systems.
7081
7082 2003-07-30  Jerry James  <james@xemacs.org>
7083
7084         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
7085
7086 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
7087
7088         * event-msw.c (mswindows_enqueue_mouse_button_event):
7089         * event-msw.c (mswindows_wnd_proc):
7090           enqueue button event when scrollwheel event isn't handled by 
7091           mswindows_handle_mousewheel_event, such as when the scrollbars
7092           are not showing.
7093
7094 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
7095
7096         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7097
7098 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
7099
7100         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7101
7102 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
7103
7104         * regex.c (re_match_2_internal): Fix matching degenerate word
7105         boundaries.
7106
7107 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7108
7109         * XEmacs 21.4.13 is released
7110
7111 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7112
7113         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7114         * lisp.h (<inttypes.h>):
7115         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7116         the definition.
7117
7118 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7119
7120         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7121         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7122         Result: "temacs can only be run in -batch mode."
7123         Fix: Check xemacs executable candidate for directory-ness.
7124
7125 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7126
7127         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7128           they conflict with <sys/types.h>.
7129
7130 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7131
7132         * database.c: Berkeley DB wants __STDC__ to be defined.
7133
7134 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7135
7136         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7137
7138 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7139
7140         * process-unix.c (unix_send_process): Fix C++ compile error.
7141
7142 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7143
7144         * Added .dylib as an acceptable shared library file extension
7145         * to support MacOSX.
7146
7147 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7148
7149         * EmacsFrameP.h (EmacsFramePart):
7150         Kludge to allow compiling with Motif1, but linking with Motif2.
7151
7152 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7153
7154         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7155
7156
7157 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7158
7159         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7160
7161 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7162
7163         * sysdll.c: Included lisp.h to define needed alloca_array.
7164
7165 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7166
7167         Make XEmacs redisplay 10 times faster.
7168         If, that is, you're using a slow X connection and MoveOpaque.
7169         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7170         Use compress_motion = TRUE.
7171         * EmacsFrame.c (emacsFrameClassRec): 
7172         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7173         * EmacsManager.c (emacsManagerClassRec):
7174         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7175
7176 2003-01-30  Vin Shelton  <acs@xemacs.org>
7177
7178         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7179
7180 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7181
7182         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7183         Patch by Martin Buchholz.
7184
7185 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7186
7187         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7188         Thanks to icc for warning and Martin Buchholz for reporting.
7189
7190 2003-01-29  Vin Shelton <acs@xemacs.org>
7191
7192         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7193
7194         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7195         remember to multiply by the element size.
7196
7197 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7198
7199         * XEmacs 21.4.12 "Portable Code" is released.
7200
7201 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7202
7203         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7204         * s/cygwin.sc: new linker file.
7205
7206 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7207
7208         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7209
7210         * redisplay-x.c (x_output_string): Use X11-specified types.
7211         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7212         * emacs.c (__free_hook): Use typeof with Intel compiler.
7213         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7214
7215 2003-01-08  Andy Piper  <andy@xemacs.org>
7216
7217         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7218         reserve size during unexec().
7219
7220 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7221
7222         * process-unix.c (unix_create_process): Don't let outchannel block.
7223
7224 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7225
7226         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7227         Needed for IsBadReadPtr().
7228
7229 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7230
7231         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7232
7233 2002-12-14  Ben Wing  <ben@xemacs.org>
7234
7235         * callint.c: Declaration error.
7236         * dumper.c (pdump):
7237         * dumper.c (pdump_load): Warning fix.
7238         * process.c: GCPRO error.
7239         * glyphs.c (unmap_subwindow):
7240         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7241         * event-stream.c (maybe_kbd_translate): Wrong argument to
7242         character_to_event().
7243
7244         * alloc.c (garbage_collect_1):
7245         * emacs.c:
7246         * emacs.c (debug_can_access_memory):
7247         * emacs.c (fatal_error_signal):
7248         * emacs.c (mswindows_handle_hardware_exceptions):
7249         * emacs.c (main_1):
7250         * emacs.c (main):
7251         * emacs.c (assert_failed):
7252         * emacs.c (syms_of_emacs):
7253         * lisp.h:
7254         * print.c:
7255         * print.c (std_handle_out_va):
7256         * print.c (write_string_to_stdio_stream):
7257         * print.c (write_fmt_string):
7258         * print.c (printing_badness):
7259         * print.c (printing_major_badness):
7260         * print.c (print_internal):
7261         * print.c (debug_print_no_newline):
7262         * print.c (debug_backtrace):
7263         Be more defensive in handling bad values when printing.  Add code
7264         from trunk involving inhibit_non_essential_printing_operations.
7265         When going down or in debug_print(), don't do external conversion
7266         and such and try really, really hard when printing to avoid core
7267         dumping.  Add force-debugging-signal, debug_break().
7268
7269 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7270
7271         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7272         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7273
7274 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7275
7276         * database.c: Fix open_database. Berkeley DB API has changed in
7277         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7278
7279 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7280
7281         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7282
7283 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7284
7285         * event-Xt.c (Xt_timeout):
7286         (Xt_timeout_callback):
7287         (emacs_Xt_add_timeout):
7288         (emacs_Xt_remove_timeout):
7289         (Xt_timeout_to_emacs_event):
7290         Turn completed_timeouts from a stack into a queue.  Fixes
7291         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7292
7293 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7294
7295         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7296         * emacs.c (main): Assert that mmap'd allocation is disabled.
7297
7298 2002-10-14  Andy Piper  <andy@xemacs.org>
7299
7300         * glyphs-widget.c (layout_query_geometry): add in fiddle
7301         factor. Include border text in width layout calculation.
7302         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7303
7304 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7305
7306         * XEmacs 21.4.10 "Military Intelligence" is released.
7307
7308 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7309
7310         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7311         using the NAS private array SoundFileInfo that no longer exists in
7312         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7313         and earlier.  This is broken for some versions between 1.5a and
7314         1.5f.
7315
7316 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7317
7318         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7319
7320         * emacs.c (shut_down_emacs): Improve crash message.
7321
7322 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7323
7324         * file-coding.c (determine_real_coding_system): Check for coding
7325         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7326         shebangs and Python PEP 263.
7327
7328 2002-10-08  Andy Piper  <andy@xemacs.org>
7329
7330         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7331         if static sizes haven't been set.
7332
7333 2002-08-30  Mike Alexander  <mta@arbortext.com>
7334
7335         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7336         to close a socket.
7337
7338 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7339
7340         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7341
7342 2002-09-20  Mike Sperber <mike@xemacs.org>
7343
7344         (This partially gets back my patch from 2002-07-20 without the
7345         bug.)
7346         * callproc.c (child_setup): Remove Ben's comment noting confusion
7347         over the file descriptors >= 3: close_process_descs() doesn't
7348         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7349         * process-unix.c (unix_create_process): Call
7350         begin_dont_check_for_quit to inhibit unwanted interaction (and
7351         thus breaking of X event synchronicity) in the child.
7352
7353 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7354
7355         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7356         widget.
7357
7358 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7359
7360         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7361         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7362         the xemacs process did not exit, but looped infinitely here.  This
7363         fixes that problem.
7364
7365 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7366
7367         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7368         (find_context): Improve comments.
7369
7370         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7371         (re_match_2): An XCHAR_TABLE operation was missing.
7372
7373         Many of the following changes were inspired by Andy Piper's (now
7374         obsolete) patch to make syntax-table text property lookup optional.
7375
7376         [Documentation]
7377
7378         * syntax.h (top level): Document semantics of syntax flags.
7379         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7380         * syntax.c, syntax.h (top level): Document syntax cache better in
7381         comments.
7382
7383         [Instrument syntax caching (temporary change)]
7384
7385         * syntax.h (enum syntax_cache_statistics_functions, struct
7386         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7387         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7388         * syntax.c (scan_words, Fforward_comment, scan_lists,
7389         Fbackward_prefix_characters):
7390         * font-lock.c (find_context):
7391         Use them to instrument syntax caching. 
7392         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7393         syntax_cache_statistics_function_names): New type and variables.
7394         * syntax.c (update_syntax_cache): Update and report statistics.
7395
7396         [Major syntax cache optimizations]
7397
7398         syntax.c (lookup_syntax_properties): Default off.
7399
7400         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7401         * syntax.c (update_syntax_cache):
7402         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7403
7404         [Minor syntax cache optimizations and code clarifications]
7405
7406         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7407         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7408         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7409         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7410         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7411         (Code clarification.)
7412
7413         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7414         scan_lists): Compute code from syncode, use Boolean macros instead
7415         of redundant masking operations.  (Code clarification; any decent
7416         compiler can do this optimization.)
7417
7418         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7419         for clarity.
7420
7421         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7422         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7423         use F*_single_property_change instead of F*_extent_change.
7424         Currently F*_single_property_change is _much_ less efficient.
7425
7426         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7427         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7428         syntax_cache.object properly, don't leave Qt or Qnil.
7429         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7430         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7431         tests for Qt or Qnil.
7432
7433 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7434
7435         * redisplay.c (point_in_line_start_cache): 
7436         * extents.c (print_extent_1):
7437         Fix warnings.
7438
7439         * extents.c (Fset_extent_property): Document `syntax-table' property.
7440
7441         * extents.h (Fnext_single_property_change): EXFUN it.
7442
7443 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7444
7445         * search.c (clear_unused_search_regs): New static function.
7446         (search_buffer): 
7447         (simple_search): 
7448         (boyer_moore):
7449         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7450         Minor clarifications in comments.
7451
7452         * regex.c (re_match_2_internal): Ensure no stale submatches.
7453
7454 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7455
7456         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7457
7458 2002-08-29  Jerry James  <james@xemacs.org>
7459
7460         * lisp.h: structrures -> structures.
7461
7462 2002-06-03  Andy Piper  <andy@xemacs.org>
7463
7464         * frame.c (frame_conversion_internal): add conversion appropriate
7465         for setting frame dimensions in pixels.
7466
7467         * console.h (struct console_methods): add device-specific widget
7468         layout functions.
7469
7470         * emacs.c (main_1): initialize glyph vars.
7471
7472         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7473         (handle_focus_event_2): new function. Allow focus to
7474         be set to a particular window and widget.
7475         (enqueue_focus_event): new function. Create a
7476         synthetic focus event.
7477         (emacs_Xt_handle_magic_event): call
7478         handle_focus_event_2.
7479
7480         * frame.c (Fset_frame_pixel_height): new function. Allow
7481         pixel-based sizing. Does the right thing on character-oriented
7482         displays.
7483         (Fset_frame_pixel_width): ditto.
7484         (Fset_frame_pixel_size): ditto.
7485         (syms_of_frame): declare.
7486
7487         * general-slots.h: add :vertically-justify and
7488         :horizontally-justify.
7489
7490         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7491         (mswindows_widget_border_width): new function.
7492         (mswindows_combo_box_instantiate): set border widths.
7493         (console_type_create_glyphs_mswindows): declare.
7494
7495         * glyphs-widget.c:
7496         (check_valid_justification): allow vertical and horizontal
7497         justification.
7498         (widget_border_width): new function. Call device methods.
7499         (widget_instance_border_width): ditto.
7500         (logical_unit_height): new function. Determine the height of a
7501         logical-unit. Logical units are intended to provide grid-like
7502         layout for subcontrols in a layout. If the layout is
7503         :vertically-justify top then subcontrols will be positioned on
7504         logical-unit boundaries, thus allowing adjacent subcontrols to
7505         line up.
7506         (widget_logical_unit_height): ditto for widgets.
7507         (redisplay_widget): misc cleanup.
7508         (widget_spacing): new function. Call device specific
7509         methods. Intended to be the default gap between adjacent widgets.
7510         (widget_query_geometry): use new spacing functions to determine
7511         appropriate geometry.
7512         (initialize_widget_image_instance): initialize horizontal and
7513         vertical justification.
7514         (widget_instantiate): use logica-units where appropriate for
7515         sizing large widgets.
7516         (button_query_geometry): use widget_instance_border_width.
7517         (tree_view_query_geometry): ditto.
7518         (tab_control_query_geometry): ditto.
7519         (edit_field_query_geometry): new function.
7520         (layout_update): pick up :justify, :horizontally-justify and
7521         :vertically-justify none of which worked previously. :justify is
7522         used as a fallback for both horizontal and vertical justification.
7523         (layout_query_geometry): use logical units to size appropriately.
7524         (layout_layout): ditto.
7525         (Fwidget_logical_to_character_width): new function. Allow users to
7526         convert from logical units to characters so that frame sizes can
7527         be set appropriately.
7528         (Fwidget_logical_to_character_height): ditto.
7529         (syms_of_glyphs_widget): declare.
7530         (image_instantiator_edit_fields): add edit_field_query_geometry.
7531         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7532         :horizontally-justify.
7533         (specifier_vars_of_glyphs_widget): new function. Declare
7534         Vwidget_border_width which is not yet used.
7535
7536         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7537         (x_widget_border_width): new function.
7538         (x_widget_instantiate): create a sensible name for widgets.
7539         (console_type_create_glyphs_x): declare x_widget_border_width.
7540
7541         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7542         (struct Lisp_Image_Instance): add :vertically-justify and
7543         :horizontally-justify.
7544         (LAYOUT_JUSTIFY_TOP): new.
7545         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7546         (ROUND_UP): new macro. Round argument up to next integral
7547         interval.
7548
7549         * redisplay-output.c (redisplay_output_layout): misc formatting.
7550
7551         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7552
7553 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7554
7555         * XEmacs 21.4.9 "Informed Management" is released.
7556
7557 2002-08-19  Andy Piper  <andy@xemacs.org>
7558
7559         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7560         win32 format.
7561
7562         * realpath.c (xrealpath): normalize drive spec also so that dir
7563         sep chars are not mixed on cygwin.
7564
7565 2002-08-06  Jerry James  <james@xemacs.org>
7566
7567         * window.c (Fsplit_window): Count only half of the divider width
7568         against the left window when splitting horizontally. 
7569
7570 2002-06-24  Andy Piper  <andy@xemacs.org>
7571
7572         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7573         toolbar was cleared.
7574
7575         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7576         function. Split out from mswindows_output_frame_toolbars.
7577         (mswindows_output_frame_toolbars): move clear pieces to
7578         mswindows_output_frame_toolbars.
7579
7580         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7581         out from gtk_output_frame_toolbars.
7582         (gtk_output_frame_toolbars): move clear pieces to
7583         gtk_clear_frame_toolbars.
7584
7585         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7586         the frame is cleared. How this ever worked before is a mystery.
7587         (x_output_frame_toolbars): Only output toolbars.
7588         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7589
7590         * gutter.c (update_gutter_geometry):
7591         Mark frame layout changed.
7592         (update_frame_gutter_geometry, update_frame_gutters):
7593         Respect frame_layout_changed.
7594
7595         * console.h (struct console_methods): add
7596         clear_frame_toolbars_method.
7597
7598         * redisplay.c (redisplay_frame): call
7599         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7600
7601         * toolbar.h: declare update_frame_toolbars_geometry.
7602
7603         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7604         out from update_frame_toolbars.  Call clear_frame_toolbars.
7605         (update_frame_toolbars): only output, do not change geometry.
7606
7607         * redisplay.c: add frame_layout_changed.
7608
7609         * redisplay.h: add frame_layout_changed.
7610         (CLASS_RESET_CHANGED_FLAGS): set it.
7611         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7612         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7613         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7614
7615         * device.h (struct device): add frame_layout_changed.
7616         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7617
7618         * frame.h (struct frame): add frame_layout_changed.
7619         (MARK_FRAME_LAYOUT_CHANGED): new.
7620
7621 2002-06-30  Mike Alexander  <mta@arbortext.com>
7622
7623         * event-msw.c (mswindows_need_event): Don't wait for a new message
7624         if the queue is not empty.  Suggested by Paul Moore.
7625
7626 2002-06-12  Andy Piper  <andy@xemacs.org>
7627
7628         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7629         for printing on accurately.
7630
7631 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7632
7633         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7634         WM_ACTIVATE message. Make sure that the frame is visible if the
7635         window is visible. This seemss to fix the problem where XEmacs
7636         appears to freeze after switching desktops with certain virtual
7637         window managers.
7638         (debug_output_mswin_message): Added code to output message
7639         parameters for WM_WINDOWPOSCHANGED, 
7640         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7641
7642 2002-05-25  Andy Piper  <andy@xemacs.org>
7643
7644         * select-x.c (vars_of_select_x): Fix docstring of
7645         x-selection-strict-motif-ownership
7646
7647 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7648
7649         * keymap.c (get_keymap):
7650         Add comment about do_autoload GCPROs own args.
7651
7652 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7653
7654         * bytecode.c (execute_optimized_program): check_opcode ifdef
7655         ERROR_CHECK_BYTE_CODE.
7656
7657 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7658
7659         Thanks to Ben Wing and Michael Sperber.
7660
7661         * eval.c (Fcommand_execute):
7662         (Feval):
7663         (Ffuncall):
7664         (Fmacroexpand_internal):
7665         (function_argcount):
7666         callint.c (Fcall_interactively):
7667         Add comment about do_autoload GCPROs own args.
7668
7669         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7670
7671         * eval.c (Ffuncall): Extra braces to placate GCC.
7672
7673 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7674
7675         * backtrace.h (grow_specpdl):
7676         (SPECPDL_RESERVE):
7677         * EmacsFrame.c (EmacsFrameSetValues):
7678         * eval.c (grow_specpdl):
7679         * ExternalShell.c (hack_event_masks_1):
7680         * glyphs-x.c (convert_EImage_to_XImage): 
7681         (x_finalize_image_instance):
7682         * ralloc.c (page_size):
7683         (r_alloc_sbrk):
7684         * xgccache.c (gc_cache_hash):
7685         Fix unsigned comparison warnings.
7686
7687 2002-07-29  Jerry James  <james@xemacs.org>
7688
7689         * lread.c (locate_file): Any nonnegative return value indicates
7690         success if MODE is nonnegative.
7691
7692 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7693
7694         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7695         argument. 
7696
7697 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7698
7699         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7700
7701         * dumper.c (pdump_get_indirect_count):
7702         (pdump_scan_by_alignment):
7703         (pdump_dump_root_struct_ptrs):
7704         (pdump_dump_rtables):
7705         (pdump_dump_root_objects):
7706         (pdump):
7707         * nas.c (WaveOpenDataForReading):
7708         * fns.c (print_bit_vector):
7709         * font-lock.c (SINGLE_SYNTAX_STYLE):
7710         * glyphs.c (check_for_ignored_expose):
7711         (find_matching_subwindow):
7712         * glyphs-eimage.c:
7713         * imgproc.c (get_histogram):
7714         * redisplay.c (point_in_line_start_cache):
7715         * redisplay-output.c (redisplay_unmap_subwindows):
7716         * symbols.c (defsymbol_massage_name_1):
7717         (defkeyword_massage_name):
7718         (deferror_massage_name_and_message):
7719         * redisplay-x.c (x_output_string): 
7720         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7721         * frame.h (struct frame):
7722         * filelock.c (current_lock_owner):
7723         * doprnt.c (emacs_doprnt_1):
7724         * lisp.h (struct Lisp_Bit_Vector):
7725         (DO_REALLOC):
7726         Fix warnings.
7727
7728 2002-02-13  Ben Wing  <ben@xemacs.org>
7729
7730         * event-stream.c (reset_key_echo):
7731         * event-stream.c (reset_this_command_keys):
7732         * event-stream.c (execute_command_event):
7733         If console is dead as a result of C-x 5 0, then post-command stuff
7734         needs to be careful and do only non-console-specific stuff.
7735
7736 2002-07-01  Mike Sperber <mike@xemacs.org>
7737
7738         * process-unix.c (unix_send_process): Mark coding_outstream as
7739         non-open upon SIGPIPE.
7740
7741         * event-stream.c (Fnext_event): Reorder switch cases to something
7742         that makes sense.
7743
7744 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7745
7746         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7747         Don't bogusly reinitialize ascii_character property.
7748
7749 2002-07-08  Mike Sperber <mike@xemacs.org>
7750
7751         * process.c (Fstart_process_internal): Do error checking before we
7752         fork off the child, so the child can't muck with the state of the
7753         parent.
7754
7755 2002-07-08  Mike Sperber <mike@xemacs.org>
7756
7757         * ralloc.c (init_ralloc): Allocate properly for pdump.
7758
7759 2002-06-12  Andy Piper  <andy@xemacs.org>
7760
7761         * glyphs.c (query_string_geometry): check the string.
7762
7763         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7764         widget names.
7765
7766 2002-06-17  Jerry James  <james@xemacs.org>
7767
7768         * sysdll.c: Remove RTLD_GLOBAL initialization.
7769         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7770
7771 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7772
7773         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7774
7775 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7776
7777         * sysdep.c (sys_rename): Make sys_rename work for the case where
7778         Windows rename sets errno to EACCES if target file exists.
7779
7780 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7781
7782         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7783         Fix detection of metric units to work on Win95
7784
7785 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7786
7787         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7788
7789 2002-04-25  Andy Piper  <andy@xemacs.org>
7790
7791         * redisplay.c (create_text_block): Remove extra comment trailer.
7792
7793 2002-04-24  Andy Piper  <andy@xemacs.org>
7794
7795         * redisplay.c (create_text_block): Don't actually add propagation
7796         data if the line ends after we have added a glyph.
7797
7798 2002-04-22  Andy Piper  <andy@xemacs.org>
7799
7800         * extents.c (extent_fragment_update): check for glyphs we have
7801         previously displayed.
7802         * extents.c (print_extent_1): warning removal.
7803         * extents.h: change prototype.
7804         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7805         widths correctly for wide glyphs.
7806         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7807         * redisplay.c (prop_type): add PROP_GLYPH.
7808         * redisplay.c (struct prop_block): add glyph type
7809         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7810         to the propagation data.
7811         * redisplay.c (create_text_block): if there is a glyph in the
7812         propagation data use it to salt extent_fragment_update.
7813         * redisplay.c (create_string_text_block): ditto.
7814
7815 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7816
7817         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7818         * redisplay-output.c (compare_runes): Compare them.
7819         * redisplay.c: Update copyright date.
7820         * redisplay.c (pos_data): Add need_baseline_computation field.
7821         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7822         need_baseline_computation; zero yoffset. Set max_pixmap_height
7823         for all pixmaps, not just automatically positioned ones.
7824         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7825         * redisplay.c (calculate_baseline): New, compute textual baseline.
7826         * redisplay.c (add_glyph_rune): Call them.
7827         * redisplay.c (create_text_block): Likewise.
7828         * redisplay.c (create_overlay_glyph_block): Likewise.
7829         * redisplay.c (add_margin_runes): Likewise.
7830         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7831
7832         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7833         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7834         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7835         * redisplay-msw.c (mswindows_output_string): Likewise.
7836         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7837         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7838         * redisplay-x.c (x_output_display_block): Likewise.
7839
7840 2002-03-28  Ben Wing  <ben@xemacs.org>
7841
7842         * redisplay.c: Fixed bug in redisplay
7843         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7844         and down of the lines, since they're bigger than the line
7845         size. (It was seen most obviously when there's a horizontal scroll
7846         bar, e.g. do C-h a glyph or something like that.) The problem was
7847         that the glyph-contrib-p setting on glyphs was ignored even if it
7848         was set properly, which it wasn't until now.
7849
7850 2002-04-24  Andy Piper  <andy@xemacs.org>
7851
7852         * lisp.h (Dynarr_end): Fix definition.
7853
7854 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7855
7856         * redisplay.c (mark_redisplay): Remove call to
7857         update_frame_window_mirror.
7858
7859 2001-11-15  Andy Piper  <andy@xemacs.org>
7860
7861         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7862         cygwin (again).
7863
7864 2002-02-13  Andy Piper  <andy@xemacs.org>
7865
7866         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7867         we did in fact enqueue the XM_MAPFRAME event.
7868
7869 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7870
7871         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7872         to fix problem switching between virtual desktops under virtuawin
7873         virtual window manager.
7874
7875 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7876
7877         * event-msw.c: Typo fix.
7878         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7879         magic XM_MAPFRAME event has been sent.
7880
7881 2001-11-23  Andy Piper  <andy@xemacs.org>
7882
7883         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7884
7885 2001-11-21  Andy Piper  <andy@xemacs.org>
7886
7887         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7888         mouse events outside the frame.
7889
7890 2002-03-20  Andy Piper  <andy@xemacs.org>
7891
7892         * menubar-msw.c (mswindows_popup_menu): warning removal.
7893         * dialog-msw.c (dialog_popped_down): ditto.
7894
7895 2001-12-11  Andy Piper  <andy@xemacs.org>
7896
7897         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7898         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7899         popup_up_p.
7900         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7901         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7902         * menubar-msw.c (mswindows_popup_menu): ditto.
7903
7904 2001-10-29  Andy Piper  <andy@xemacs.org>
7905
7906         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7907         cancels.
7908
7909 2002-01-03  Andy Piper  <andy@xemacs.org>
7910
7911         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7912         letters.
7913         (xrealpath): ditto.
7914
7915 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7916
7917         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7918         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7919         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7920         Detect and handle case where machine is set up for metric units
7921
7922 2002-04-02  Andy Piper  <andy@xemacs.org>
7923
7924         * dired-msw.c (mswindows_get_files): 
7925         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7926         completely handled by XEmacs. Suggested by Thomas Vogler
7927         <mail@thomas-vogler.de>.
7928
7929 2001-11-14  Andy Piper  <andy@xemacs.org>
7930
7931         * nt.c (REG_ROOT): change registry key to XEmacs.
7932
7933 2002-04-27  Andy Piper  <andy@xemacs.org>
7934
7935         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7936
7937 2002-04-26  Andy Piper  <andy@xemacs.org>
7938
7939         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7940         behavior.
7941
7942 2002-03-14  Mike Alexander  <mta@arbortext.com>
7943
7944         * event-msw.c (mswindows_unwait_process): New, remove process from
7945         wait list
7946         * process-nt.c (nt_finalize_process_data): Call
7947         mswindows_unwait_process
7948         * console-msw.h: Declare mswindows_unwait_process
7949
7950 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7951
7952         * editfns.c (Fdecode_time):
7953         (Fformat_time_string):
7954         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7955         (make_time): Warning elimination (change arg name).
7956
7957 2001-11-24  Andy Piper  <andy@xemacs.org>
7958
7959         * window.c (Fsplit_window): Doc return type.
7960
7961 2002-04-01  Andy Piper  <andy@xemacs.org>
7962
7963         * emacs.c (Fkill_emacs): Only output message box in interactive
7964         mode.
7965
7966 2002-04-26  Andy Piper  <andy@xemacs.org>
7967  
7968         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7969         cygwin.
7970
7971 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7972
7973         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7974         bit platform.
7975
7976 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7977
7978         * XEmacs 21.4.8 "Honest Recruiter" is released.
7979
7980 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7981
7982         Supersedes 2002-04-17 patch.
7983
7984         * process.h (PROCESS_LIVE_P): Use the process status as
7985         evidence of health, not the state of the input stream.
7986         (PROCESS_READABLE_P): Say if the process is readable
7987         from. (It may be dead nonetheless.)
7988         (CHECK_READABLE_PROCESS): Test for that condition.
7989
7990         * process.c (create_process): Use PROCESS_READABLE_P.
7991         (read_process_output, set_process_filter): Likewise.
7992
7993         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7994         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7995
7996         This code is #if 0'd, this is not the time to add new functions:
7997
7998         * process.c (Fprocess_readable_p): Report readability status.
7999         * process.c (Qprocess_readable_p): New, associated symbol...
8000         * process.c (syms_of_process): ... initialize it.
8001
8002 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
8003
8004         * XEmacs 21.4.7 "Economic Science" is released.
8005
8006 2002-04-17  Nix  <nix@esperi.demon.co.uk>
8007
8008         * process.h (PROCESS_LIVE_P): Use the process status as
8009         evidence of health, not the state of the input stream.
8010
8011 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
8012
8013         * sysdep.c (sys_siglist): change "signum" to "signal"
8014
8015 2001-04-21  Martin Buchholz  <martin@xemacs.org>
8016
8017         * s/darwin.h: New file.
8018         Thanks to Greg Parker <gparker@cs.stanford.edu>.
8019         
8020 2002-04-23  Andreas Jaeger  <aj@suse.de>
8021
8022         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
8023         which use lib64 for 64-bit libs.
8024         (START_FILES): Likewise.
8025
8026 2002-02-11  Mike Sperber  <mike@xemacs.org>
8027
8028         * device-x.c: 
8029         (x_IO_error_handler):
8030         (x_init_device): Temporarily keep device in static variable
8031         `device_being_initialized' so we can recover gracefully from
8032         internal XOpenDevice failure.  (XOpenDevice is documented to
8033         return NULL on failure, but sometimes calls the IO error handler
8034         instead.)
8035
8036 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
8037
8038         * dired.c (Ffile_name_all_completions): Change documentation --
8039         remove reference to completion-ignored-extensions.
8040         * dired.c (vars_of_dired): Change documentation for
8041         completion-ignored-extensions -- remove reference to
8042         file-name-all-completions.
8043
8044 2002-03-06  Jerry James  <james@xemacs.org>
8045
8046         * emodules.c (emodules_load): Fix multiple loading of same module.
8047
8048 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
8049         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
8050         RTLD_LAZY to avoid incorrect symbol binding when using nested
8051         shared libraries on Solaris.
8052
8053 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
8054
8055         * fileio.c (Ffind_file_name_handler): Improve docstring.
8056
8057 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
8058
8059         * fns.c (Fmapconcat): Improve docstring.
8060
8061 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
8062
8063         * device-gtk.c: Add prototype for
8064         emacs_gtk_selection_clear_event_handle.
8065         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
8066         selection.  Setup signal handler for "selection_clear_event"
8067         (emacs_gtk_selection_clear_event_handle).
8068
8069         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
8070         other applications owning the clipboard (based on
8071         x_handle_selection_clear).
8072
8073 2001-12-23  William M. Perry  <wmperry@gnu.org>
8074
8075         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
8076         
8077 2002-01-04  Martin Buchholz  <martin@xemacs.org>
8078
8079         * keymap.c (define_key_alternate_name): Parenthesize EQ.
8080
8081 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
8082
8083         * XEmacs 21.4.6 "Common Lisp" is released.
8084
8085 2001-12-16  Torsten Duwe  <duwe@caldera.de>
8086
8087         * search.c (Freplace_match): Add missing sub-expression functionality.
8088
8089         * buffer.c (decode_buffer): Add a check for pointer type to
8090         decode_buffer, before gcc's CSE optimization reorders a
8091         dereference in front of the allow_string test.
8092
8093 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
8094
8095         * window.c (window_loop): Fix bug that sometimes prevented
8096         window_loop() from iterating across multiple devices.  Also, at
8097         Ben's request, changed infloop-detecting code to abort() instead
8098         of silently terminating window_loop().
8099
8100 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
8101
8102         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8103         * editfns.c (make_time): New function.
8104         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8105         * lisp.h (make_time): Prototype and comment it.
8106         * dired.c (wasteful_word_to_lisp): Deprecate.
8107         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8108
8109 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8110
8111         * fileio.c (auto_save_1): Use current coding system, not
8112         escape-quoted.
8113
8114 2001-11-13  Ben Wing  <ben@xemacs.org>
8115
8116         * window.c:
8117         * window.c (window_truncation_on):
8118         * window.c (syms_of_window):
8119         truncate-partial-width-windows should respect the buffer being
8120         displayed, like other redisplay vars.
8121
8122 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8123
8124         * event-stream.c (Fread_key_sequence): save current buffer.
8125
8126 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8127
8128         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8129
8130 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8131
8132         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8133
8134 2001-10-26  Mike Alexander  <mta@arbortext.com>
8135
8136         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8137
8138 2001-10-25  Andy Piper  <andy@xemacs.org>
8139
8140         * ChangeLog:
8141         * dialog-msw.c (handle_directory_proc): new function.
8142          (handle_directory_dialog_box): new fucntion.
8143          (handle_file_dialog_box): use new directory dialog support.
8144          (mswindows_make_dialog_box_internal): ditto.
8145         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8146         handling.
8147         (mswindows_find_frame): make global.
8148         * fileio.c (Fexpand_file_name): build fix.
8149         * general-slots.h: add Qdirectory.
8150         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8151         handling.
8152         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8153         cygwin not leaving win32 paths unchanged.
8154         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8155         cygwin runtime to do path conversion.
8156         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8157         (syms_of_win32): add new function.
8158         * window.c (window_loop): build fix.
8159
8160 2001-10-15  Andy Piper  <andy@xemacs.org>
8161
8162         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8163
8164 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8165
8166         * XEmacs 21.4.5 "Civil Service" is released.
8167
8168 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8169
8170         * glyphs-x.c: Force buffer-tab highlight update when moving the
8171         buffer, avoiding an ugly black border, used for keyboard focus
8172         indication, on a widget that can never have keyboard focus, the
8173         buffer tab.
8174
8175 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8176
8177         * process-unix.c (unix_open_multicast_group): Remove too much
8178         conversion between host and network byte order.
8179
8180 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8181
8182         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8183         before replacing them.
8184
8185         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8186         operation.
8187
8188         * src/window.c (undedicate_windows): Use it.
8189         * src/window.h: Add prototype.
8190
8191 2001-09-17  Ben Wing  <ben@xemacs.org>
8192
8193         * fileio.c (normalize_filename):
8194         * fileio.c (Fexpand_file_name):
8195         Fix various C++ compile errors in Andy's recent code.
8196         
8197         * callint.c (Fcall_interactively):
8198         * editfns.c (Ftemp_directory):
8199         * editfns.c (Fuser_full_name):
8200         * emacs.c (argmatch):
8201         * lread.c (locate_file_map_suffixes):
8202         * redisplay-x.c (x_ring_bell):
8203         Fix sign-compare warnings.
8204         
8205 2001-09-08  Andy Piper  <andy@xemacs.org>
8206
8207         * fileio.c (normalize_filename): copied from nt.c
8208         * (Ffile_name_directory): enable win32 paths under cygwin.
8209         * (Ffile_name_nondirectory): ditto.
8210         * (directory_file_name): ditto.
8211         * (Fexpand_file_name): ditto.
8212         * (Ffile_truename): ditto.
8213         * (Fsubstitute_in_file_name): ditto.
8214         * (Ffile_name_absolute_p): ditto.
8215         * (Ffile_readable_p): ditto.
8216
8217 2001-09-08  Andy Piper  <andy@xemacs.org>
8218
8219         * device-msw.c (mswindows_finish_init_device): remove dde
8220         initialization.
8221         * device-msw.c (mswindows_init_dde): factor out from
8222         mswindows_finish_init_device()
8223         * device-msw.c (init_mswindows_very_early): new function
8224         initialize but don't enable dde.
8225         * emacs.c (main_1): call init_mswindows_very_early.
8226         * event-msw.c:
8227         * event-msw.c (mswindows_dde_callback): only execute when we are
8228         ready.
8229         * symsinit.h: declare init_mswindows_very_early.
8230
8231 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8232
8233         [sjt: This has been in 21.5 for months with no complaints.]
8234
8235         * console.h (struct console_methods): Added flags member.
8236         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8237         (CONMETH_IMPL_FLAG):
8238         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8239         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8240
8241         * device.c (window_system_pixelated_geometry): Use the above macros.
8242
8243         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8244         implememntation flag.
8245         * device.h (DEVICE_DISPLAY_P): Use it.
8246
8247         * frame.c (delete_frame_internal): Use the above macro.
8248
8249         * redisplay.c (redisplay_device): Use it.
8250         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8251         (redisplay_frame): Ditto.
8252
8253         * device-msw.c (mswindows_device_implementation_flags): Removed.
8254         (msprinter_device_implementation_flags): Removed.
8255         (console_type_create_device_mswindows): Removed references to
8256         implementation_flags methods, set implementation flags here.
8257         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8258
8259         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8260         (console_type_create_device_gtk): Removed method declaration.
8261         Added commented out statement which semantically matches the
8262         commented out statement in the above removed method.
8263
8264 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8265
8266         The attached patch fixes a few warnings. 
8267
8268         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8269         * src/frame-gtk.c: guard against GNOME calls in GTK only
8270         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8271         * src/select-gtk.c: prototype lisp_to_time
8272
8273 2001-06-08  Ben Wing  <ben@xemacs.org>
8274
8275         ------ gc-in-window-procedure fixes ------
8276         
8277         * alloc.c:
8278         * alloc.c (struct post_gc_action):
8279         * alloc.c (register_post_gc_action):
8280         * alloc.c (run_post_gc_actions):
8281         * alloc.c (garbage_collect_1):
8282         Create "post-gc actions", to avoid those dreaded "GC during window
8283         procedure" problems.
8284
8285         * event-msw.c:
8286         Abort, clean and simple, when GC in window procedure.  We want
8287         to flush these puppies out.
8288
8289         * glyphs-msw.c:
8290         * glyphs-msw.c (finalize_destroy_window):
8291         * glyphs-msw.c (mswindows_finalize_image_instance):
8292         Use a post-gc action when destroying subwindows.
8293
8294         * lisp.h:
8295         Declare register_post_gc_action().
8296
8297         * scrollbar-msw.c:
8298         * scrollbar-msw.c (unshow_that_mofo):
8299         Use a post-gc action when unshowing scrollbar windows, if in gc.
8300
8301         * redisplay.c (mark_redisplay):
8302         Add comment about the utter evilness of what's going down here.
8303
8304         ------ cygwin setitimer fixes ------
8305         
8306         * Makefile.in.in (sheap_objs):
8307         * Makefile.in.in (profile_objs):
8308         * Makefile.in.in (objs):
8309         Compile profile.c only when HAVE_SETITIMER.
8310         
8311         * nt.c (mswindows_sigset):
8312         * nt.c (mswindows_sighold):
8313         * nt.c (mswindows_sigrelse):
8314         * nt.c (mswindows_sigpause):
8315         * nt.c (mswindows_raise):
8316         * nt.c (close_file_data):
8317         Style fixes.
8318         
8319         * nt.c:
8320         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8321         
8322         * profile.c:
8323         * profile.c (Fstart_profiling):
8324         * profile.c (Fstop_profiling):
8325         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8326         instead of just plain setitimer().
8327         
8328         * signal.c:
8329         * signal.c (set_one_shot_timer):
8330         * signal.c (alarm):
8331         Define qxe_setitimer() as an encapsulation around setitimer() --
8332         call setitimer() directly unless Cygwin or MS Win, in which case
8333         we use our simulated version in win32.c.
8334         
8335         * systime.h:
8336         * systime.h (struct itimerval):
8337         * systime.h (ITIMER_REAL):
8338         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8339         comment about "qxe" and the policy regarding encapsulation.
8340
8341         * win32.c:
8342         * win32.c (setitimer_helper_proc):
8343         * win32.c (setitimer_helper_period):
8344         * win32.c (setitimer_helper):
8345         * win32.c (mswindows_setitimer):
8346         Move setitimer() emulation here, so Cygwin can use it.
8347         Rename a couple of functions and variables to be longer and more
8348         descriptive.  In setitimer_helper_proc(), send the signal
8349         using either mswindows_raise() or (on Cygwin) kill().  If for
8350         some reason we are still getting lockups, we'll change the kill()
8351         to directly invoke the signal handlers.
8352
8353         ------ windows shell fixes ------
8354         
8355         * callproc.c:
8356         * ntproc.c:
8357         Comments about how these two files must die.
8358
8359         * callproc.c (init_callproc):
8360         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8361         not just COMSPEC. (more correct and closer to FSF.) Don't
8362         force a value for SHELL into the environment. (Comments added
8363         to explain why not.)
8364         
8365         * nt.c (init_user_info):
8366         Don't shove a fabricated SHELL into the environment.  See above.
8367
8368 2001-06-01  Ben Wing  <ben@xemacs.org>
8369
8370         * Makefile.in.in (ldflags):
8371         eliminate that pesky "defaulting to 00401000" warning.
8372         * nt.h:
8373         eliminate warnings.
8374
8375 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8376
8377         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8378         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8379
8380 2001-04-24  Jerry James <james@xemacs.org>
8381
8382         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8383         correct order.
8384
8385 2001-06-01  Ben Wing  <ben@xemacs.org>
8386
8387         * event-msw.c (debug_mswin_messages):
8388         conditionalize the messages that were causing compile errors.
8389         (if only macros could generate #ifdef statements ...)
8390
8391 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8392
8393         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8394
8395 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8396
8397         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8398
8399 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8400
8401         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8402         * process-unix.c (unix_canonicalize_host_name):
8403         sysdep.c (init_system_name):
8404         Use it to conditionally support IPv6 canonicalization.
8405
8406 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8407
8408         * event-msw.c:
8409         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8410
8411 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8412
8413         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8414         attempt is made to scroll when no scroll bar is available.
8415
8416 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8417
8418         * input-method-motif.c (XIM_delete_frame): New callback.
8419         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8420         got deleted from 21.4.3.)
8421
8422 2001-06-01  Ben Wing  <ben@xemacs.org>
8423
8424         * nt.c (mswindows_utime):
8425         * nt.c (close_file_data):
8426         fix off-by-one-indirection error.
8427
8428 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8429
8430         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8431         because set_file_times() now takes Lisp_Object path, instead of
8432         char*.
8433         * nt.c: Include buffer.h.
8434         * nt.c (convert_from_time_t): New.
8435         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8436         not set mtime correctly.
8437         * nt.h: Declare mswindows_utime().
8438         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8439         path, instead of char*.
8440         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8441
8442 2001-05-30  Ben Wing  <ben@xemacs.org>
8443
8444         For 21.4:
8445
8446         (Stephen, just take all event-msw.c patches.  This includes
8447         the "iconify" fix below.)
8448
8449         * event-msw.c:
8450         * event-msw.c (mswindows_dequeue_dispatch_event):
8451         * event-msw.c (assert):
8452         * event-msw.c (emacs_mswindows_quit_p):
8453         * event-msw.c (debug_mswin_messages):
8454         * event-msw.c (debug_output_mswin_message):
8455         * event-msw.c (vars_of_event_mswindows):
8456         Fix yet more problems with C-g handling.
8457         Implement debug-mswindows-events.
8458         
8459 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8460
8461         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8462         
8463 2001-05-23  Ben Wing  <ben@xemacs.org>
8464
8465         * event-msw.c (winsock_writer):
8466         * event-msw.c (winsock_closer):
8467         prior kludgy code was clobbering the buffer, thinking it was
8468         "unused" space to store an unneeded return value; instead, use
8469         the variable we've already got staring us in the face.
8470
8471 2001-05-17  Andy Piper  <andy@xemacs.org>
8472
8473         * sysfile.h: don't assume that file attributes are boolean
8474
8475 2001-05-23  Ben Wing  <ben@xemacs.org>
8476
8477         * device-msw.c (msprinter_init_device):
8478         signal an error rather than crash with an unavailable network
8479         printer (from Mike Alexander).
8480         
8481         * event-msw.c:
8482         * event-msw.c (struct winsock_stream):
8483         * event-msw.c (winsock_writer):
8484         * event-msw.c (winsock_closer):
8485         * event-msw.c (make_winsock_stream_1):
8486         cleanup headers.  fix (hopefully) an error with data corruption
8487         when sending to a network connection.
8488
8489         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8490         to handle the ~user prefix by (a) always assuming we're referencing
8491         ourselves and not even verifying the user -- hence any file with
8492         a tilde as its first char is invalid! (b) if there wasn't a slash
8493         following the filename, the pointer was set *past* the end of
8494         file and we started reading from uninitialized memory.  Now we
8495         simply treat these as files, always.
8496
8497         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8498         
8499 2001-05-19  Ben Wing  <ben@xemacs.org>
8500
8501         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8502
8503         * process-nt.c:
8504         * process-nt.c (vars_of_process_nt):
8505         remove unused mswindows-quote-process-args.  rec for 21.4.
8506         
8507 2001-05-12  Ben Wing  <ben@xemacs.org>
8508
8509         * event-msw.c (mswindows_dde_callback):
8510         * event-msw.c (mswindows_wnd_proc):
8511         eliminate cygwin warnings.
8512
8513 2001-05-06  Ben Wing  <ben@xemacs.org>
8514
8515         * console-msw.h:
8516         * device-msw.c:
8517         * device-msw.c (print_dialog_worker):
8518         * device-msw.c (mswindows_handle_print_dialog_box):
8519         * device-msw.c (syms_of_device_mswindows):
8520         * dialog-msw.c (mswindows_make_dialog_box_internal):
8521         * general-slots.h:
8522         implement printing the selection when it's selected.
8523
8524 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8525
8526         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8527
8528 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8529
8530         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8531         EMACS_INT is signed.
8532
8533 2001-04-15  Michael Lausch  <mla@1012surf.net>
8534
8535         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8536         gtk_widget_request_size() to give scrollbar >0 width for
8537         GTK >1.2.8.
8538
8539 2001-05-30  William M. Perry  <wmperry@gnu.org>
8540
8541         * event-gtk.c: Check for buttons as modifier keys.
8542
8543 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8544
8545         * s\mingw32.h:
8546         Properly find MinGW's <process.h> inside Cygwin's restructured
8547         include directories.  Don't try to include <cygwin/version.h>
8548         since we are dropping support for MinGW in versions of Cygwin
8549         earlier than b21.
8550         * nt.c:
8551         Drop support for MinGW in versions of Cygwin before b21.
8552         * sysdep.c:
8553         Properly find MinGW's <process.h> inside Cygwin's restructured
8554         include directories.
8555         * syswindows.h:
8556         Drop support for MinGW in versions of Cygwin before b21.
8557         * unexcw.c:
8558         Even though a.out.h is no longer detected by configure, allow
8559         MinGW to use it until we figure out how to do the job with Win32.
8560
8561 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8562
8563         * syntax.c (find_start_of_comment):
8564         Fix `unbalanced parentheses' bug when dealing with mixed comment
8565         styles in c++/java/etc. mode
8566
8567 2001-05-29  Mike Alexander  <mta@arbortext.com>
8568
8569         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8570         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8571
8572 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8573
8574         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8575
8576 2001-03-31  Mike Sperber <mike@xemacs.org>
8577
8578         * search.c (Freplace_match): Support FSF-style specification of
8579         match subexpression when applied to a buffer.
8580
8581 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8582
8583         * event-stream.c (is_scrollbar_event): add missing semicolon
8584
8585 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8586
8587         * Makefile.in.in: Use TAR macro instead of hardcoding
8588           tar.  Allows use of GNU tar instead of system tar
8589
8590 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8591
8592         * event-stream.c (is_scrollbar_event): add missing semicolon
8593
8594 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8595
8596         * XEmacs 21.4.3 "Academic Rigor" is released.
8597
8598 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8599
8600         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8601
8602 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8603
8604         * buffer.c (Vcase_fold_search): Remove obsolete
8605           comment about non ASCII case-fold-search.  This
8606           bug has been fixed by case-table changes.
8607
8608 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8609
8610         * event-msw.c: Restore include of events-mod.h.
8611
8612 2001-04-22   zhaoway  <zw@debian.org>
8613
8614         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8615         !HAVE_SCROLLBARS.
8616
8617 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8618
8619         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8620
8621 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8622
8623         * mule-charset.c (Fmake_charset): Add missing else.
8624
8625 2001-04-23  Ben Wing  <ben@xemacs.org>
8626
8627         * event-msw.c (FAKE_MOD_QUIT):
8628         * event-msw.c (mswindows_dequeue_dispatch_event):
8629         * event-msw.c (mswindows_wnd_proc):
8630         * event-msw.c (emacs_mswindows_quit_p):
8631         Get critical quit working.
8632
8633 2001-05-05  Ben Wing  <ben@xemacs.org>
8634
8635         * console-msw.h:
8636         * device-msw.c:
8637         * device-msw.c (mswindows_get_default_margin):
8638         * frame-msw.c (mswindows_size_frame_internal):
8639         * frame-msw.c (msprinter_init_frame_1):
8640         * frame-msw.c (vars_of_frame_mswindows):
8641         Change top/bottom margin defaults to 0.5 inches.
8642
8643 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8644
8645         Fix link error with gcc 3.0 on Linux.
8646         * terminfo.c (UP): Remove.
8647         * terminfo.c (BC): Remove.
8648         * terminfo.c (PC): Remove.
8649         They weren't used, and in any case, these symbols should be
8650         defined in the *library*.
8651
8652 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8653
8654         * s/aix4.h: Fix crash with xlc -O3.
8655         Improve comment explaining how -O3 works.
8656
8657 2001-04-15  Ben Wing  <ben@xemacs.org>
8658
8659         * event-stream.c:
8660         * event-stream.c (Fnext_event):
8661         * event-stream.c (is_scrollbar_event):
8662         * event-stream.c (execute_command_event):
8663         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8664         crash' problem.  His fix introduces other problems.  We filter
8665         out scrollbar events specifically, making them somewhat invisible
8666         to command-building, and not appearing in `this-command-keys'.
8667         More work is still needed (see comments in event-stream.c), but
8668         this fixes all the major problems.
8669
8670 2001-04-20  Ben Wing  <ben@xemacs.org>
8671
8672         * .cvsignore: Added stuff for Windows.
8673
8674 2001-04-28  Ben Wing  <ben@xemacs.org>
8675
8676         * buffer.c (Ferase_buffer):
8677         * editfns.c (buffer_insert1):
8678         * editfns.c (Finsert_before_markers):
8679         * editfns.c (Finsert_string):
8680         * editfns.c (Finsert_char):
8681         * editfns.c (Fdelete_region):
8682         * editfns.c (Fwiden):
8683         * editfns.c (Fnarrow_to_region):
8684         remove bogus lines setting zmacs_region_stays to 0.
8685         
8686 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8687
8688         * process-unix.c (unix_open_network_stream): If connect() fails
8689         invalidate file descriptor after closing it.
8690
8691 2001-03-08  Mike Alexander  <mta@arbortext.com>
8692
8693         * event-msw.c (mswindows_need_event_in_modal_loop):
8694         Don't dispatch a message if we didn't get one.
8695         (mswindows_need_event):
8696         Terminate the correct process when one exits instead of the first
8697         one on Vprocess_list and look for process termination when in
8698         mswindows_protect_modal_loop.
8699
8700 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8701
8702         * XEmacs 21.4.1 "Copyleft" is released.
8703
8704 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8705
8706         * input-method-motif.c (XIM_delete_frame): New callback.
8707         (XIM_init_frame): Register it.
8708
8709 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8710
8711         * XEmacs 21.4.0 "Solid Vapor" is released.
8712
8713 2001-04-15  Ben Wing  <ben@xemacs.org>
8714
8715         * cmdloop.c (call_command_loop):
8716         Fix braino in bit-rotting code.
8717         
8718 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8719
8720         * extents.c (Fset_extent_endpoints): Force creation of extent info
8721         in buffer_or_string.
8722
8723         * extents.c (process_extents_for_insertion_mapper): Correctly
8724         check for open-open zero-length extents.
8725
8726 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8727
8728         * lisp.h: New typedefs Memory_count, Element_count.
8729         * regex.c:
8730         * regex.h:
8731         Sign-compare warning elimination: several unsigned -> signed.
8732         Based on work by Ben Wing <ben@xemacs.org>.
8733
8734 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8735
8736         * XEmacs 21.2.47 "Zephir" is released.
8737
8738 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8739
8740         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8741
8742 2001-04-03  Mike Sperber <mike@xemacs.org>
8743
8744         * search.c: Revert previous patch due because of release.
8745
8746 2001-03-30  Ben Wing  <ben@xemacs.org>
8747
8748         * s\cygwin32.h:
8749         Add missing killpg prototype.
8750
8751         * elhash.c:
8752         Add a comment about fixing problems when a new entry is added
8753         while mapping.
8754
8755         * frame-msw.c (mswindows_init_frame_1):
8756         Fix compile warnings.
8757
8758         * menubar.c (vars_of_menubar):
8759         Provide `menu-accelerator-support' to indicate that we properly
8760         support %_ in menu specifications, so that package code can
8761         conditionalize on this (and remove %_ from menu specifications
8762         on older versions).
8763
8764         * event-msw.c:
8765         * scrollbar-msw.c:
8766         * scrollbar-msw.c (can_scroll):
8767         * scrollbar-msw.h:
8768         Fix handling of mouse wheel under Windows to follow standards --
8769         now scrolls window under pointer, not selected window.
8770
8771 2001-03-31  Mike Sperber <mike@xemacs.org>
8772
8773         * search.c (Freplace_match): Support FSF-style specification of
8774         match subexpression when applied to a buffer.
8775
8776 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8777
8778         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8779         function to modify KEYMAP, so map over a copy of the hash table.
8780
8781 2001-03-21  Martin Buchholz <martin@xemacs.org>
8782
8783         * XEmacs 21.2.46 "Urania" is released.
8784
8785 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8786
8787         * realpath.c (xrealpath): Make file-truename work with symlinks to
8788         /cygdrive paths on cygwin. Always lowercase drive-letters on
8789         native windows.
8790         (cygwin_readlink): Don't try to find canonical filename unless
8791         file exists.
8792
8793 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8794
8795         * ChangeLog: Log GTK merge.
8796
8797         * dumper.c:
8798         * select-x.c:
8799         * specifier.c:
8800         * symeval.h:
8801         Revert gratuitous whitespace changes from GTK merge.
8802
8803         * emacs.c: Document end of complex #ifdef @ l. 1495.
8804
8805
8806 2001-03-12  Andy Piper  <andy@xemacs.org>
8807
8808         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8809         have to do likewise.
8810
8811 2001-03-12  Andy Piper  <andy@xemacs.org>
8812
8813         * sysdep.c: we only support mingw now.
8814
8815 2001-03-09  Andy Piper  <andy@xemacs.org>
8816
8817         * unexcw.c (copy_executable_and_dump_data_section): making approx
8818         overrun a warning only.
8819
8820 2001-03-10  William M. Perry  <wmperry@aventail.com>
8821
8822         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8823         satisfy Stephen's identical-after-cpp plea.
8824
8825 2001-03-02  Ben Wing  <ben@xemacs.org>
8826
8827         * cmds.c:
8828         * cmds.c (Fforward_char):
8829         * syntax.c:
8830         * window.c:
8831
8832         Augment documentation of the most common motion commands to make
8833         note of the shifted-motion support.
8834         
8835 2001-03-02  Ben Wing  <ben@xemacs.org>
8836
8837         * nt.c (mswindows_fstat):
8838         * nt.c (mswindows_stat):
8839         * search.c (boyer_moore):
8840         Fix compile warnings under Windows.
8841         
8842         * sysdep.c (sys_readdir):
8843         Fix buggy filename-conversion code under Mule.
8844
8845 2001-03-09  William M. Perry  <wmperry@aventail.com>
8846
8847         * Makefile.in.in:
8848         * config.h.in:
8849         * console.c:
8850         * console.h:
8851         * device.c:
8852         * device.h:
8853         * dragdrop.c:
8854         * emacs.c:
8855         * event-stream.c:
8856         * events.c:
8857         * events.h:
8858         * faces.c:
8859         * frame.h:
8860         * general-slots.h:
8861         * glyphs.c:
8862         * gutter.c:
8863         * inline.c:
8864         * lisp.h:
8865         * lrecord.h:
8866         * make-src-depend:
8867         * redisplay-output.c:
8868         * redisplay.c:
8869         * symsinit.h:
8870         * sysfile.h:
8871         * toolbar.c:
8872         * window.c:
8873         The Great GTK Merge.
8874
8875         * ChangeLog.GTK:
8876         * console-gtk.c:
8877         * console-gtk.h:
8878         * device-gtk.c:
8879         * emacs-marshals.c:
8880         * emacs-widget-accessors.c:
8881         * event-gtk.c:
8882         * frame-gtk.c:
8883         * gccache-gtk.c:
8884         * gccache-gtk.h:
8885         * glade.c:
8886         * glyphs-gtk.c:
8887         * glyphs-gtk.h:
8888         * gtk-glue.c:
8889         * gtk-xemacs.c:
8890         * gtk-xemacs.h:
8891         * gui-gtk.c:
8892         * gui-gtk.h:
8893         * menubar-gtk.c:
8894         * native-gtk-toolbar.c:
8895         * objects-gtk.c:
8896         * objects-gtk.h:
8897         * redisplay-gtk.c:
8898         * scrollbar-gtk.c:
8899         * scrollbar-gtk.h:
8900         * select-gtk.c:
8901         * toolbar-gtk.c:
8902         * ui-byhand.c:
8903         * ui-gtk.c:
8904         * ui-gtk.h:
8905         The Great GTK Merge: new files.
8906
8907 2001-02-26  Ben Wing  <ben@xemacs.org>
8908
8909         Reapplied Lstream change.
8910
8911 2001-02-26  Ben Wing  <ben@xemacs.org>
8912
8913         Undid the last change, since it is more controversial than I
8914         thought.  It should be back in at some point soon.
8915         
8916 2001-02-25  Ben Wing  <ben@xemacs.org>
8917
8918         * buffer.c:
8919         * callproc.c (Fold_call_process_internal):
8920         * event-msw.c (ntpipe_slurp_reader):
8921         * event-msw.c (ntpipe_shove_writer):
8922         * event-msw.c (winsock_reader):
8923         * event-msw.c (winsock_writer):
8924         * file-coding.c:
8925         * file-coding.c (detect_eol_type):
8926         * file-coding.c (detect_coding_type):
8927         * file-coding.c (determine_real_coding_system):
8928         * file-coding.c (Fdetect_coding_region):
8929         * file-coding.c (decoding_reader):
8930         * file-coding.c (decoding_writer):
8931         * file-coding.c (mule_decode):
8932         * file-coding.c (Fdecode_coding_region):
8933         * file-coding.c (encoding_reader):
8934         * file-coding.c (encoding_writer):
8935         * file-coding.c (mule_encode):
8936         * file-coding.c (Fencode_coding_region):
8937         * file-coding.c (detect_coding_sjis):
8938         * file-coding.c (decode_coding_sjis):
8939         * file-coding.c (encode_coding_sjis):
8940         * file-coding.c (detect_coding_big5):
8941         * file-coding.c (decode_coding_big5):
8942         * file-coding.c (encode_coding_big5):
8943         * file-coding.c (detect_coding_ucs4):
8944         * file-coding.c (decode_coding_ucs4):
8945         * file-coding.c (encode_coding_ucs4):
8946         * file-coding.c (detect_coding_utf8):
8947         * file-coding.c (decode_coding_utf8):
8948         * file-coding.c (encode_coding_utf8):
8949         * file-coding.c (detect_coding_iso2022):
8950         * file-coding.c (decode_coding_iso2022):
8951         * file-coding.c (encode_coding_iso2022):
8952         * file-coding.c (decode_coding_no_conversion):
8953         * file-coding.c (encode_coding_no_conversion):
8954         * glyphs-x.c (write_lisp_string_to_temp_file):
8955         * gpmevent.c (tty_get_foreign_selection):
8956         * lisp.h:
8957         * lstream.c:
8958         * lstream.c (Lstream_flush_out):
8959         * lstream.c (Lstream_adding):
8960         * lstream.c (Lstream_write_1):
8961         * lstream.c (Lstream_write):
8962         * lstream.c (Lstream_raw_read):
8963         * lstream.c (Lstream_read_more):
8964         * lstream.c (Lstream_read):
8965         * lstream.c (Lstream_unread):
8966         * lstream.c (Lstream_fputc):
8967         * lstream.c (stdio_reader):
8968         * lstream.c (stdio_writer):
8969         * lstream.c (filedesc_reader):
8970         * lstream.c (filedesc_writer):
8971         * lstream.c (lisp_string_reader):
8972         * lstream.c (struct fixed_buffer_stream):
8973         * lstream.c (make_fixed_buffer_input_stream):
8974         * lstream.c (make_fixed_buffer_output_stream):
8975         * lstream.c (fixed_buffer_reader):
8976         * lstream.c (fixed_buffer_writer):
8977         * lstream.c (struct resizing_buffer_stream):
8978         * lstream.c (resizing_buffer_writer):
8979         * lstream.c (dynarr_writer):
8980         * lstream.c (lisp_buffer_reader):
8981         * lstream.c (lisp_buffer_writer):
8982         * lstream.h:
8983         * lstream.h (lstream_implementation):
8984         * lstream.h (struct lstream):
8985         * md5.c (Fmd5):
8986         * process-nt.c (nt_send_process):
8987         * process-unix.c (unix_send_process):
8988         
8989         Correct Lstream lossage due to mixing of signed and unsigned
8990         quantities.  All Lstream uses of size_t and ssize_t are now a
8991         single signed data type Lstream_data_count.  This fixes problems
8992         under Windows with sending large quantities of data to a process,
8993         and may well fix other subtle bugs.
8994
8995 2001-02-23  Martin Buchholz <martin@xemacs.org>
8996
8997         * XEmacs 21.2.45 "Thelxepeia" is released.
8998
8999 2001-02-21  Martin Buchholz  <martin@xemacs.org>
9000
9001         * lisp-union.h (XSETINT): 
9002         (XSETCHAR):
9003         (XSETOBJ): 
9004         Reverse previous change of 2001-02-06.
9005
9006 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
9007
9008         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
9009         buffers.
9010         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9011         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
9012         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
9013         * regex.c (POS_AS_IN_BUFFER): removed
9014         * regex.c (re_search_2):
9015         * regex.c (re_match_2):
9016         Don't use an offset of 1 when calculating buffer positions, since
9017         `BI_BUF_BEGV' does it already.
9018
9019 2001-02-18  Wim Dumon  <wim@easics.be>
9020
9021         * insdel.c (prepare_to_modify_buffer): Also check for
9022         supersession when clash-detection is enabled. 
9023
9024 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
9025
9026         * regex.c (re_match_2_internal):
9027         Convert temp characters from 'const unsigned char' to 're_char'.
9028         Fix crashing bug with extended characters under mule.
9029         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
9030         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
9031         font-lock, pdump, and new syntax-table code.
9032         * syntax.c (find_start_of_comment):
9033         (find_end_of_comment):
9034         (forward-comment):
9035         Fix crashing bugs involving moving beyond end of buffer.
9036         * syntax.c (find_start_of_comment):
9037         Fixed logic to allow proper detection of cases where the same
9038         character is used to end both a two-char comment start and a
9039         two-char comment end sequence. Fixes `(forward-comment -1)'.
9040         * syntax.c (find_start_of_comment):
9041         Return position just past last comment-end character for all cases
9042         (previously was only done for two-char comment-end sequences).
9043         * syntax.c (forward-comment):
9044         Take value returned from `find_end_of_comment', rather than
9045         incrementing it.
9046         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9047         Properly deal with BUFFERP (syntax_cache.object)
9048
9049 2001-02-17  Martin Buchholz  <martin@xemacs.org>
9050
9051         * alloc.c (Fgarbage_collect): 
9052         * alloc.c (make_bit_vector_from_byte_vector):
9053         -Wsign-compare-correctness.
9054
9055 2001-02-16  Martin Buchholz  <martin@xemacs.org>
9056
9057         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
9058         (XSETCHAR): Likewise.
9059         (XSETOBJ): Likewise.
9060
9061 2001-02-15  Martin Buchholz  <martin@xemacs.org>
9062
9063         * mule-canna.c (canna-func-delete_previous): 
9064         Rename to canna-func-delete-previous.
9065
9066 2001-02-14  Martin Buchholz  <martin@xemacs.org>
9067
9068         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
9069
9070 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
9071
9072         * font-lock.c (find_context): Fix C++ compile errors introduced by
9073         recent patch
9074
9075 2001-02-13  Martin Buchholz  <martin@xemacs.org>
9076
9077         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
9078         pragma, but earlier ones barf on the same pragma.
9079
9080 2001-02-06  Mike Sperber <mike@xemacs.org>
9081
9082         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
9083         `configure-mule-lisp-directory'.
9084
9085 2001-02-12  Martin Buchholz  <martin@xemacs.org>
9086
9087         Make sure dump-id.c is compiled in the same way as other .c's.
9088         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9089         * dump-id.h: Remove.
9090         * emacs.c: Move dump-id.h into dumper.h.
9091         * dumper.h: Move dump-id.h into dumper.h.
9092         * Makefile.in.in:
9093         Use standard .c.o rule for building dump-id.o.
9094         Remove preprocessor flags from link command.
9095         Add dump-id.o to ${otherobjs} if PDUMP.
9096
9097 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
9098
9099         Port FSF 20.7 syntax table improvements.
9100         * syntax.c.
9101         * syntax.h.
9102
9103         Fixups for new syntax table stuff.
9104         * dired.c: Include syntax.c.
9105         (Fdirectory_files): Initialize regex_match_object and
9106         regex_emacs_buffer.
9107         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9108         and Fget_char_property.
9109
9110         Use ported FSF 20.7 syntax table improvements.
9111         * font-lock.c.
9112         * regex.c.
9113         * search.c.
9114         
9115 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9116
9117         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9118         Unixware's enum boolean from sys/types.h.
9119
9120 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9121
9122         Fix support for building with latest Purify.
9123         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9124         (PURIFY_FLAGS): Likewise.
9125
9126 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9127
9128         * fileio.c (lisp_string_set_file_times): New.
9129         * fileio.c (Fcopy_file): Use it.
9130         Fixes bug:
9131         (copy-file filename non-ascii-filename t t)
9132         ==> No such file or directory, non-ascii-filename
9133
9134 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9135
9136         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9137         USHRT_MAX seems clearer than ~0 anyways.
9138
9139 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9140
9141         dumper improvements.  Inspired by Olivier.
9142         * dumper.c (pdump_max_align): New.
9143         * dumper.c (pdump_add_entry): Use pdump_max_align.
9144         * dumper.c (pdump_get_entry_list): Likewise.
9145         * dumper.c (pdump_scan_by_alignment): Likewise.
9146         Don't iterate through unnecessary alignments.
9147         * dumper.c (pdump_file_get): No need to align result of malloc().
9148         * dumper.c (pdump_mallocadr): Remove.  
9149         The result of malloc() is guaranteed to be maximally aligned.
9150         * dumper.c: s/elmt/elt/g;
9151         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9152         * dumper.c (pdump_alert_undump_object): Likewise.
9153         * dumper.c (pdump_align_table): 
9154         Don't support alignments > 64.
9155         Store ALIGNOF's, not shift counts, in table.
9156
9157 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9158
9159         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9160         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9161         * systime.h: Use HAVE_UTIME.
9162         * sysdep.c (struct utimbuf): Remove.
9163         * sysdep.c (set_file_times): Prefer utime() to utimes().
9164         * config.h.in (HAVE_UTIME): New.
9165         * config.h.in (HAVE_UTIME_H): Remove.
9166         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9167
9168 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9169
9170         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9171
9172 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9173
9174         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9175
9176 2001-02-08  Martin Buchholz <martin@xemacs.org>
9177
9178         * XEmacs 21.2.44 "Thalia" is released.
9179
9180 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9181
9182         Fixes crashes in kill-emacs on some systems.
9183         * process-unix.c (unix_kill_child_process):
9184         It's OK for kill() to fail with ESRCH.
9185
9186 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9187
9188         Contortions to make .gdbinit tricks work on most systems.
9189         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9190         * alloc.c (dbg_valmask): Make non-const.
9191         * alloc.c (dbg_typemask): Make non-const.
9192         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9193         * alloc.c (dbg_valbits): Make non-const.
9194         * alloc.c (dbg_gctypebits): Make non-const.
9195         * .gdbinit (decode_object): Make it work with AIX cc.
9196
9197 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9198
9199         * elhash.c (make_general_lisp_hash_table):
9200         Use simpler and more efficient calloc to clear entries.
9201
9202 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9203
9204         * window.c (window_scroll): Work around an AIX C compiler bug.
9205         Fixes 'scroll-up' does nothing problem with xlC.
9206
9207 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9208
9209         * .gdbinit: Remove obsolete comment.
9210
9211 2001-01-31  Mike Alexander  <mta@arbortext.com>
9212
9213         * select.c (Fown_selection_internal): Set owned_p for device
9214         method correctly.
9215
9216 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9217
9218         Port to g++ 2.97.
9219         "not" cannot be used as a macro name as it is an operator in C++
9220         * config.h.in: Stop #defining `not'.
9221         * chartab.c (check_category_char): not ==> not_p
9222         * chartab.h: Likewise.
9223         * regex.c (re_match_2_internal): Likewise.
9224
9225 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9226
9227         * lisp-disunion.h: Fix up comments.
9228
9229 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9230
9231         * keymap.c (define_key_check_and_coerce_keysym):
9232         (syms_of_keymap):
9233         Support mouse-6 and mouse-7 bindings in the obvious way.
9234
9235 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9236
9237         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9238
9239 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9240
9241         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9242         Previous patch missed DEFVAR_INT_MAGIC.
9243         Make sure future DEFVAR_foo use correct types.
9244         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9245         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9246         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9247         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9248         * (DEFVAR_INT): Likewise.
9249         * redisplay.c (vertical_clip): Should be of type Fixnum.
9250         * redisplay.c (horizontal_clip): Likewise.
9251         * lisp.h (dump_add_opaque_int): New.
9252         (dump_add_opaque_fixnum): New.
9253
9254 2001-01-29  Andy Piper  <andy@xemacs.org>
9255
9256         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9257         since they can be eval'ed
9258
9259 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9260
9261         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9262         Oops, XEmacs redefines `class'.  Use `typename' instead.
9263
9264 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9265
9266         * dumper.c: Fix C++ compile errors.
9267
9268 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9269
9270         * tparam.c: Use correct prototypes.
9271
9272 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9273
9274         * sysproc.h: #include util.h for NetBSD's openpty.
9275
9276 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9277
9278         More 64-bit correctness.
9279         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9280         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9281         Fix up comments.
9282         This finally finishes the 64-bit SGI port.
9283         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9284         * symbols.c: Fix up comments and type casts.
9285         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9286         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9287         * symeval.h (Fixnum): New type.
9288         * symeval.h (symbol_value_type): Fix up comment.
9289
9290         * commands.h:
9291         * nt.c:
9292         * emacs.c:
9293         * data.c:
9294         * redisplay.c:
9295         * abbrev.c:
9296         * dired-msw.c:
9297         * event-Xt.c:
9298         * eldap.c:
9299         * window.c:
9300         * sound.c:
9301         * event-stream.c:
9302         * eval.c:
9303         * buffer.c:
9304         * mule-canna.c: A million DEFVAR_INTs here...
9305         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9306         * extents.c:
9307         * cmdloop.c:
9308         * lisp.h:
9309         * select-x.c:
9310         * console-x.h:
9311         * event-msw.c:
9312         * mule-wnnfns.c:
9313         * hpplay.c:
9314         * ralloc.c:
9315         * alloc.c:
9316         * keymap.c:
9317         * profile.c:
9318         s/int/Fixnum/g in DEFVAR_INT declarations.
9319
9320 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9321
9322         Port pdump to SGI alignment-sensitive environment.
9323         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9324         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9325         properly aligned.
9326         Define and use aligned reading and writing macros.
9327         Use buffered stdio instead of posix i/o for faster dumping.
9328         Eliminate kludgy 256 byte space for header.
9329         Read and write from dump file using structs for alignment safety.
9330         * dumper.c (pdump_align_stream): New.
9331         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9332         * dumper.c (PDUMP_READ_ALIGNED): New.
9333         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9334         * dumper.c (pdump_static_Lisp_Object): New struct.
9335         * dumper.c (pdump_static_pointer): New struct.
9336         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9337         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9338         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9339         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9340
9341         * dumper.c (pdump_backtrace):
9342         * dumper.c (pdump_get_indirect_count):
9343         * dumper.c (pdump_register_object):
9344         * dumper.c (pdump_register_struct):
9345         * dumper.c (pdump_reloc_one):
9346         * dumper.c (pdump_scan_by_alignment):
9347         * dumper.c (pdump_dump_from_root_struct_ptrs):
9348         * dumper.c (pdump_dump_opaques):
9349         * dumper.c (pdump_dump_rtables):
9350         * dumper.c (pdump_dump_from_root_objects):
9351         * dumper.c (pdump):
9352         * dumper.c (pdump_load_finish):
9353         Use aligned reading and writing.
9354
9355         * dumper.c (pdump_free): Make static.
9356         * dumper.c (pdump_hFile): Likewise.
9357         * dumper.c (pdump_hMap): Likewise.
9358
9359 2001-01-26  Martin Buchholz <martin@xemacs.org>
9360
9361         * XEmacs 21.2.43 "Terspichore" is released.
9362
9363 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9364
9365         Type fiddling for window_config.saved_windows_count
9366         * window.c (struct window_config): 
9367         Make saved_windows_count member unsigned.
9368         * window.c (sizeof_window_config_for_n_windows): 
9369         Make parameter unsigned.
9370         * window.c (mark_window_config):
9371         * window.c (window_config_equal):
9372         * window.c (free_window_configuration):
9373         * window.c (Fset_window_configuration):
9374         * window.c (count_windows):
9375         * window.c (Fcurrent_window_configuration):
9376         * window.c (reinit_vars_of_window):
9377         Update all callers and users.
9378
9379 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9380
9381         Alignment correctness for flexible arrays.
9382         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9383         Make alignment-correct. Add interesting comments.
9384         * alloc.c (size_vector):
9385         * alloc.c (make_vector_internal):
9386         * alloc.c (make_bit_vector_internal):
9387         * alloc.c (sweep_bit_vectors_1):
9388         * fns.c (size_bit_vector):
9389         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9390         * window.c (sizeof_window_config_for_n_windows): 
9391         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9392
9393 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9394
9395         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9396
9397 2001-01-23  Andy Piper  <andy@xemacs.org>
9398
9399         * select.c (Fown_selection_internal): pass owned_p
9400
9401         * select-msw.c (mswindows_own_selection): New Signature.
9402
9403         * console.h (struct console_methods): add owned_p to
9404         _own_selection.
9405
9406         * select-x.c (x_own_selection): pass owned_p
9407         (hack_motif_clipboard_selection): use owned_p
9408         (vars_of_select_x): new variable -
9409         x_selection_strict_motif_ownership.
9410
9411 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9412
9413         * specifier.h (specifier_data_offset): Remove pointless parens.
9414         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9415
9416 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9417
9418         Make Lisp_Object sizeof methods be alignment-correct.
9419         pdump must restore objects to the same alignment as the C compiler
9420         assumes.  It really matters on SGIs.
9421         * lstream.c (aligned_sizeof_lstream): New.
9422         (sizeof_lstream): Use aligned_sizeof_lstream.
9423         (Lstream_new): Likewise.
9424         * opaque.c (aligned_sizeof_opaque): New.
9425         (sizeof_opaque): Use aligned_sizeof_opaque.
9426         (make_opaque): Likewise.
9427         * specifier.c (aligned_sizeof_specifier): New.
9428         (sizeof_specifier): Use aligned_sizeof_specifier.
9429         (make_specifier_internal): Likewise.
9430
9431 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9432
9433         * lstream.h (struct lstream): Use max_align_t for trailing data.
9434         * specifier.h (struct Lisp_Specifier): Likewise.
9435
9436 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9437
9438         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9439         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9440         (CCL_SUSPEND): Likewise.
9441         (CCL_INVALID_CMD): Likewise.
9442         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9443         (ccl_driver): Likewise.
9444         (CCL_WRITE_CHAR): Macro hygiene.
9445         (CCL_WRITE_STRING): Macro hygiene.
9446
9447 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9448
9449         Port "portable" dumper to SunOS 4 and HP-UX.
9450         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9451         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9452         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9453
9454 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9455
9456         * lisp.h (ALIGNOF): A better definition for C++.
9457
9458 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9459
9460         Macro hygiene.
9461         Fix printf warnings: int format, long int arg.
9462         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9463         (PUSH_FAILURE_POINT): Use correct printf formats.
9464         (POP_FAILURE_POINT): Use correct printf formats.  
9465         Use do {...} while (0)
9466
9467 2001-01-20  Martin Buchholz <martin@xemacs.org>
9468
9469         * XEmacs 21.2.42 "Poseidon" is released.
9470
9471 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9472
9473         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9474
9475 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9476
9477         De-kludgify FIXED_TYPE free list frobbing.
9478         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9479         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9480         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9481         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9482         * alloc.c (LRECORD_FREE_P): New.
9483         * alloc.c (MARK_LRECORD_AS_FREE): New.
9484         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9485         * alloc.c (STRUCT_FREE_P): Deleted.
9486         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9487         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9488         * alloc.c (STRING_CHARS_FREE_P): New.
9489         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9490         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9491         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9492         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9493         * alloc.c (resize_string): Use new definitions.
9494         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9495         * alloc.c (verify_string_chars_integrity): Use new definitions.
9496         * alloc.c (compact_string_chars): Use new definitions.
9497         * alloc.c: Update monster comments.
9498         * lrecord.h (lrecord_type): Add some new lrecord types for
9499         alloc.c's use.
9500
9501 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9502
9503         Improve alignment hackery.
9504         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9505         (max_align_t): Moved from opaque.h - general purpose.
9506         (ALIGN_PTR): Use size_t, not long.
9507         * opaque.h (max_align_t): Move to lisp.h.
9508
9509 2001-01-18  Norbert Koch  <nk@LF.net>
9510
9511         * gui.h: Fix and add prototypes to fix build problems.
9512
9513 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9514
9515         temacs is going away, so `dump-temacs' is now a bad name.
9516         * .dbxrc (dump-temacs): Rename to `dmp'.
9517         * .gdbinit (dump-temacs): Rename to `dmp'.
9518
9519 2001-01-17  Andy Piper  <andy@xemacs.org>
9520
9521         * glyphs.c (print_image_instance): comment to make martin happy.
9522
9523         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9524         change.
9525
9526         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9527         activation.
9528         (mswindows_tab_control_redisplay): warning suppression.
9529
9530         * glyphs-widget.c (widget_update): re-write to cope with updated
9531         items.
9532         (widget_instantiate): use new gui_item functions.
9533         (tab_control_update): deleted.
9534         (progress_gauge_update): deleted.
9535         (image_instantiator_progress_guage): take out update reference.
9536         (image_instantiator_tree_view): ditto.
9537         (image_instantiator_tab_control): ditto.
9538
9539         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9540         Right the new way.
9541         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9542         return whether anything was changed.
9543         (update_gui_item_keywords): as it sounds.
9544
9545         * gui.h: declare widget_gui_parse_item_keywords.
9546
9547         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9548         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9549
9550 2001-01-17  Martin Buchholz <martin@xemacs.org>
9551
9552         * XEmacs 21.2.41 "Polyhymnia" is released.
9553
9554 2001-01-16  Didier Verna  <didier@xemacs.org>
9555
9556         * glyphs.c (image_instantiate): don't use fallbacks when
9557         instantiating a face's background pixmap by inheritance.
9558
9559 2001-01-14  Mike Sperber <mike@xemacs.org>
9560
9561         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9562         Conditionalize accordingly.
9563
9564 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9565
9566         * dumper.c (pdump_file_get): Fix a compiler warning.
9567
9568 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9569
9570         Make Purify happy when pdumping.
9571         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9572         iniitalizing all bits of new lisp object memory.
9573         * symbols.c (Fmake_local_variable): Likewise.
9574         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9575         * symbols.c (Fdefvaralias): Likewise.
9576         * mule-charset.c (vars_of_mule_charset): Likewise.
9577
9578 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9579         Add the `-nd' flag when running pre-dump operations under the debugger.
9580         * .dbxrc (run-temacs): Add `-nd'.
9581         * .dbxrc (update-elc): Likewise.
9582         * .dbxrc (dump-temacs): Likewise.
9583         * .gdbinit (run-temacs): Likewise.
9584         * .gdbinit (check-temacs): Likewise.
9585         * .gdbinit (update-elc): Likewise.
9586         * .gdbinit (dump-temacs): Likewise.
9587
9588 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9589
9590         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9591         export OBJECT_MODE=64
9592         configure --pdump --use-union-type=no
9593         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9594         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9595
9596         * miscplay.c (sndcnv8U_2mono):
9597         Avoid two uses of `++' in the same expression.
9598         Suppresses a GCC warning.
9599
9600 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9601
9602         Make sure future compilers don't miscompile alloc.c.
9603         * alloc.c:
9604         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9605         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9606
9607 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9608
9609         * dumper.c: A little post-pdump-rename comment fixup.
9610
9611 2001-01-09  Jerry James  <james@eecs.ku.edu>
9612
9613         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9614
9615 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9616
9617         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9618         script:
9619         #!/bin/sh
9620         replace_symbol () {
9621           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9622         }
9623
9624         replace_symbol pdump_wire_lists pdump_weak_object_chains
9625         replace_symbol pdump_wire_list dump_add_weak_object_chain
9626
9627         replace_symbol pdump_wires pdump_root_objects
9628         replace_symbol pdump_wire dump_add_root_object
9629
9630         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9631         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9632
9633         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9634         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9635         replace_symbol dumpstructinfo pdump_root_struct_ptr
9636         replace_symbol dumpstruct dump_add_root_struct_ptr
9637
9638         replace_symbol dumpopaque dump_add_opaque
9639         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9640         replace_symbol dumpopaqueinfos pdump_opaques
9641         replace_symbol dumpopaqueinfo pdump_opaque
9642
9643         replace_symbol nb_structdump nb_root_struct_ptrs
9644         replace_symbol nb_opaquedump nb_opaques
9645
9646         replace_symbol align_table pdump_align_table
9647         replace_symbol dump_header pdump_header
9648
9649         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9650         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9651
9652
9653 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9654
9655         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9656         optimizing bytecount_to_charcount().
9657
9658 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9659
9660         * config.h.in:
9661         (HAVE_DLFCN_H): Removed.
9662         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9663
9664 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9665
9666         Portable dumper maintainability improvements.
9667         * alloc.c (staticpro):
9668         * alloc.c (staticpro_nodump):
9669         * alloc.c (garbage_collect_1):
9670         * alloc.c (reinit_alloc_once_early):
9671         * alloc.c (init_alloc_once_early):
9672         * alloc.c: Move dumper functions to alloc.c.
9673         * dumper.c (pdump_backtrace):
9674         * dumper.c (pdump_dump_structs):
9675         * dumper.c (pdump_dump_opaques):
9676         * dumper.c (pdump_dump_rtables):
9677         * dumper.c (pdump_dump_wired):
9678         * dumper.c (pdump):
9679         * dumper.c (pdump_load_check):
9680         * dumper.c (pdump_load_finish):
9681         * dumper.c (pdump_file_unmap):
9682         * dumper.c (pdump_file_get):
9683         * dumper.c (pdump_resource_free):
9684         * dumper.c (pdump_resource_get):
9685         * dumper.c (pdump_file_free):
9686         * dumper.c (pdump_file_try):
9687         * dumper.c (pdump_load):
9688         Remove fixed size limits on staticpro(), staticpro_nodump(),
9689         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9690         Remove custom code for dumping lrecord_implementations_table - use
9691         dumpopaque instead.
9692         Remove (most of the) custom code for dumping staticpros - dump it
9693         like any other dynarr.
9694
9695         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9696         * dumper.c: Moved functions from alloc.c.
9697         * alloc.c (dumpstruct): Moved to dumper.c.
9698         * alloc.c (dumpopaque): Likewise.
9699         * alloc.c (pdump_wire): Likewise.
9700         * alloc.c (pdump_wire_list): Likewise.
9701
9702         * lisp.h (Dynarr_sizeof): New.
9703         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9704         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9705         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9706
9707         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9708         * lisp.h (dumpopaque): ditto.
9709         * lisp.h (pdump_wire): ditto.
9710         * lisp.h (pdump_wire_list): ditto.
9711
9712 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9713
9714         * make-src-depend (PrintPatternDeps):
9715         Use `sort' to make output independent of perl version.
9716
9717 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9718
9719         Port to Netbsd 1.5.
9720         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9721         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9722
9723 2001-01-03  Didier Verna  <didier@xemacs.org>
9724
9725         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9726         that `focus_frame' is alive before thinking of calling
9727         `redisplay_redraw_cursor' on it.
9728
9729 2001-01-08  Martin Buchholz <martin@xemacs.org>
9730
9731         * XEmacs 21.2.40 is released.
9732
9733 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9734
9735         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9736
9737 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9738
9739         * alloc.c (dbg_valmask): Make const.
9740         * alloc.c (dbg_typemask): Make const.
9741         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9742         * alloc.c (dbg_valbits): Make const.
9743         * alloc.c (dbg_gctypebits): Make const.
9744
9745 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9746
9747         * redisplay-x.c (x_bevel_area):
9748         redisplay.h (struct rune):
9749         Typo fixes in comments.
9750
9751 2001-01-05  Andy Piper  <andy@xemacs.org>
9752
9753         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9754         adjustment.
9755
9756         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9757
9758 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9759
9760         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9761
9762         * mule-ccl.c (stack_idx_of_map_multiple):
9763         Non const global data must not be initialized!
9764         Found by MIYASHITA Hisashi.
9765
9766 2001-01-02  Andy Piper  <andy@xemacs.org>
9767
9768         * frame.c (change_frame_size): make sure frame size is always
9769         marked as changed.
9770
9771         * glyphs.c (image_instance_layout): minor code reuse.
9772
9773         * window.c (Fcurrent_window_configuration): revert previous
9774         change.
9775
9776 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9777
9778         * glyphs.h:
9779         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9780
9781 2000-12-31  Andy Piper  <andy@xemacs.org>
9782
9783         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9784         when widget gets unmapped.
9785
9786         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9787         function. Make sure widgets losing focus don't just drop it.
9788         (handle_focus_event_1): record the widget with focus.
9789
9790 2000-12-31  Andy Piper  <andy@xemacs.org>
9791
9792         * window.c (allocate_window): use
9793         make_image_instance_cache_hash_table.
9794         (make_dummy_parent): ditto.
9795         (Fset_window_configuration): ditto.
9796
9797         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9798
9799         * glyphs.c (process_image_string_instantiator): use
9800         INSTANTIATOR_TYPE.
9801         (get_image_instantiator_governing_domain): ditto.
9802         (normalize_image_instantiator): ditto.
9803         (instantiate_image_instantiator): ditto.
9804         (make_image_instance_1): ditto.
9805         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9806         (instantiator_eq_equal): new function for use with instance hash
9807         tables.
9808         (instantiator_eq_hash): ditto.
9809         (make_image_instance_cache_hash_table): create a suitable hash
9810         table for storing image instances.
9811
9812         * elhash.h (hash_table_weakness): new internal weakness type
9813         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9814         declare new functions.
9815
9816         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9817         another weakness type for glyphs.
9818         (make_standard_lisp_hash_table): new function split out from
9819         make_general_lisp_hash_table.
9820         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9821         (hash_table_instantiate): ditto.
9822         (Fmake_hash_table): ditto.
9823
9824 2000-12-31  Martin Buchholz <martin@xemacs.org>
9825
9826         * XEmacs 21.2.39 is released.
9827
9828 2000-12-29  Andy Piper  <andy@xemacs.org>
9829
9830         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9831
9832         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9833         the frame has changed so that we pick up geometry changes such as
9834         menubar visibility.
9835
9836 2000-12-28  Andy Piper  <andy@xemacs.org>
9837
9838         * lastfile.c (my_ebss): make a char array so we can pad the
9839         bss. Fixes cygwin unexec.
9840
9841         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9842
9843 2000-12-26  Andy Piper  <andy@xemacs.org>
9844
9845         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9846         comments and try and be more precise about a non-/SIGIO world.
9847         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9848         SIGIO.
9849
9850         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9851         we don't normalize to zero width or height.
9852
9853 2000-12-24  Andy Piper  <andy@xemacs.org>
9854
9855         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9856
9857 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9858
9859         * s/sco5.h: SCO 5 has pty support.
9860
9861 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9862
9863         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9864         input-method-xlib.c contains whole contents of input-method-xfs.c,
9865         so we can use input-method-xlib.c's code for USE_XFONTSET
9866         using #ifdefs.
9867         * input-method-xfs.c: removed.
9868
9869 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9870
9871         * file-coding.h (enum coding_category_type): reorder enumerators to
9872         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9873         (now one greater than largest real coding_category_type enumerator).
9874         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9875         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9876         Fcoding_category_list, Fset_coding_priority_list,
9877         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9878         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9879
9880 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9881
9882         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9883         * redisplay-output.c (redisplay_output_window): Clear top of window
9884         when face is changed.
9885         * redisplay-x.c (x_redraw_exposed_window): Call
9886         redisplay_clear_top_of_window.
9887         * redisplay.h: Publish redisplay_clear_top_of_window.
9888
9889 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9890
9891         * buffer.c (Fkill_buffer): Map over all devices.
9892         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9893         (list_windows): New function.
9894         (list_all_windows): Ditto.
9895         (Freplace_buffer_in_windows): Use them.
9896
9897 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9898
9899         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9900         (Fopen_database): Use `db_create' instead of `db_open'.
9901         (syms_of_database): Initialize Qqueue.
9902
9903 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9904
9905         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9906         buffer_local_face_property.
9907         * buffer.h (struct buffer): New member buffer_local_face_property.
9908         * window.c (Fset_window_buffer):  Mark window's face as changed
9909         when buffer has buffer local face.
9910         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9911         * objects.c (color_after_change): Set buffer_local_face_property
9912         when locale of face specifier is buffer.
9913         * objects.c (font_after_change): Ditto.
9914         * objects.c (face_boolean_after_change): Ditto.
9915         * glyphs.c (image_after_change): Ditto.
9916
9917 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9918
9919         * nt.c (mswindows_fstat): Report file permissions, volume serial
9920         number, etc. Code adapted from FSF Emacs 20.7.
9921
9922 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9923
9924         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9925         of stat when we don't have symbolic links, to make sure
9926         mswindows_stat is called on mswindows.
9927
9928 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9929
9930         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9931
9932 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9933
9934         * doprnt.c (emacs_doprnt_1): More printing fixes.
9935         Make printing of numbers compatible with libc and FSF Emacs.
9936         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9937         Use the system printf to do most of the hard work of formatting,
9938         instead of doprnt_1().
9939         Calculate memory to allocate for format string.
9940         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9941         (doprnt_1): Cleaner code and documentation.
9942
9943 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9944
9945         * Makefile.in.in: Use the loop variable to install headers.
9946
9947 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9948
9949         * window.c (Fsplit_window): Don't invalidate face cache.
9950
9951 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9952
9953         * minibuf.c (Fall_completions): Undo the previous change
9954         which removed checking elements start with space.
9955
9956 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9957
9958         * mule-canna.c: Didier suppression.
9959
9960 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9961
9962         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9963         (warning suppression).  Add English comment translations.
9964
9965 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9966
9967         * unexelfsgi.c (unexec): Better test for mmap failure.
9968
9969 2000-12-05  Martin Buchholz <martin@xemacs.org>
9970
9971         * XEmacs 21.2.38 is released.
9972
9973 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9974
9975         * redisplay.c (bar-cursor): Make a user variable.
9976
9977         * symsinit.h: Add init_postgresql_from_environment.
9978
9979 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9980
9981         * regex.c: Convert to clean C.
9982
9983 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9984
9985         * realpath.c:
9986         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9987         initialization.
9988         (sys_readlink): renamed to system_readlink to avoid conflict with
9989         the other sys_readlink.
9990
9991 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9992
9993         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9994
9995 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9996
9997         * postgresql.c (init_postgresql_from_environment): new function.
9998         (vars_of_postgresql): Move code initializing Lisp variables out and
9999         into init_postgresql_from_environment.
10000         emacs.c (main_1): Call init_postgresql_from_environment if and only
10001         if running a dumped XEmacs.
10002
10003 2000-08-31  Dan Holmsand  <dan@eyebee.com>
10004
10005         * buffer.c: Make find-file-compare-truenames default to true on
10006         windows.
10007
10008         * realpath.c (win32_abs_start):
10009         (cygwin_readlink):
10010         (win32_readlink): New functions.
10011         (xrealpath): Return really real filenames on windows.
10012
10013         * fileio.c (Ffile_truename): Make file-truename work on windows.
10014
10015 2000-11-29  Didier Verna  <didier@xemacs.org>
10016
10017         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
10018         * faces.c (update_face_cachel_data): use it.
10019         * faces.c (add_face_cachel): use it. Complete background pixmap
10020         frobbing in face cache if `update_face_cachel_data' has not done so.
10021
10022 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
10023
10024         * search.c (string_match_1): Don't set last_thing_searched
10025         when search failed.
10026
10027 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
10028
10029         * buffer.c: Include casetab.h
10030         (common_init_complex_vars_of_buffer): Use new case-table object.
10031         * buffer.h: Include casetab.h
10032         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
10033         (DOWNCASE_TABLE_OF): Ditto.
10034         * bufslots.h: Remove char-tables and add case-table.
10035         * casetab.c: Include casetab.h
10036         (CASE_TABLE_P): Removed.
10037         (mark_case_table): New function.
10038         (allocate_case_table): New function.
10039         (Fcase_table_p): Use new case-table.
10040         (case_table_char): New function.
10041         (Fget_case_table): Ditto.
10042         (Fput_case_table): Ditto.
10043         (Fput_case_table_pair): Ditto.
10044         (Fcopy_case_table): Ditto.
10045         (Fcurrent_case_table): Return case-table.
10046         (Fstandard_case_table): Return case-table.
10047         (Fset_case_table): Fix doc-string.
10048         (set_case_table): Use case-table
10049         (syms_of_casetab): DEFSUBR new functions.
10050         (complex_vars_of_casetab): Set up standard case-table.
10051         * casetab.h: New file.
10052         * editfns.c: Include casetab.h
10053         (Fcompare_buffer_substrings): Use case-table.
10054         * inline.c: Include casetab.h
10055         * lisp.h: Remove bogus extern.
10056         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
10057         * search.c: Include casetab.h
10058         (TRANSLATE_ASCII): Removed.
10059         (TRANSLATE): Unconditionally translate character.
10060         (looking_at_1): Use case-table.
10061         (string_match_1): Ditto.
10062         (fast_string_match): Ditto.
10063         (search_command): Ditto.
10064         (search_buffer): Separate boyer_moore.  Check whether
10065         boyer_moore is possible.
10066         (simple_search): New function.
10067         (boyer_moore): Separated from search_buffer. Translate char.
10068
10069 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10070
10071         * regex.c (RE_TR_ASCII): Removed.
10072         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
10073         (PATFETCH): Call PATFETCH_RAW.
10074         (PATFETCH_RAW): Fetch Emchar.
10075         (PATUNFETCH): Decrement charptr.
10076         (GET_BUFFER_SPACE): Rename b to buf_end.
10077         (BUF_PUSH): Ditto.
10078         (BUF_PUSH_2): Ditto.
10079         (BUF_PUSH_3): Ditto.
10080         (EXTEND_BUFFER): Ditto.
10081         (SET_LIST_BIT): Ditto.
10082         (regex_compile): Ditto.  Translate non ASCII char.
10083         (compile_range): Ditto.
10084         (re_search_2): Ditto.
10085         (re_match_2_internal): Compare Emchar.
10086         (bcmp_translate): Ditto.
10087
10088 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
10089
10090         * lisp.h (basic char/int typedefs):  comment improvement.
10091
10092 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
10093
10094         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
10095         unstomp inhibit_site_lisp.  Improve comments.
10096
10097 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
10098
10099         * mule-charset.c (Fcharset_property):  improve type checking, comments.
10100
10101 2000-11-28  Andy Piper  <andy@xemacs.org>
10102
10103         * redisplay-output.c (redisplay_output_subwindow): make sure we do
10104         clipped display for windows in the gutter also.
10105         (redisplay_display_boxes_in_window_p): change semantics of return
10106         codes to be more intuitive.
10107
10108         * gutter.h: declare display_boxes_in_gutter_p.
10109
10110         * gutter.c (display_boxes_in_gutter_p): new function for
10111         redisplay.
10112
10113 2000-11-22  Andy Piper  <andy@xemacs.org>
10114
10115         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10116         autodetect domain.
10117
10118 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10119
10120         * callproc.c (Fold_call_process_internal):
10121         * gpm.c (Freceive_gpm_event):
10122         (tty_get_foreign_selection): Might be just warning supression.
10123         * fileio.c (Fwrite_region_internal):
10124         (Fset_visited_file_modtime):
10125         * keymap.c (event_matches_key_specifier_p):
10126         Initialize GCPROed variable.
10127
10128         * menubar-x.c (command_builder_find_menu_accelerator):
10129         Initialize before use.
10130
10131 2000-11-23  Andy Piper  <andy@xemacs.org>
10132
10133         * unexcw.c (unexec): make the resulting executable executable.
10134
10135 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10136
10137         * doc.c (get_doc_string):
10138         Use size_t, not int, for result of XSTRING_LENGTH.
10139
10140         * cmds.c (Fdelete_char):
10141         * cmds.c (Fpoint_at_eol):
10142         * cmds.c (Fself_insert_command):
10143         Use EMACS_INT, not int, for result of XINT.
10144         Someday, someone will want to insert more than 2**31 identical characters.
10145
10146         * cmds.c (Fdelete_char):
10147         * cmds.c (Fdelete_backward_char):
10148         * syntax.c (Fforward_word):
10149         * syntax.c (Fforward_comment):
10150         Make COUNT argument optional, for consistency with forward-char et al.
10151
10152 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10153
10154         * lisp.h:
10155         * print.c (long_to_string):
10156         Return a useful value: the pointer at end of data written.
10157
10158         * doprnt.c:
10159         Use `static const char * const' for constant strings.
10160         (union printf_arg): Delete `i', `ui' members.
10161         (get_doprnt_args):
10162         (emacs_doprnt_1):
10163         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10164         Do all printf-ing via the `l' specifier.
10165         Use EMACS_INT instead of int.
10166         Optimize.
10167
10168 2000-11-20  Didier Verna  <didier@xemacs.org>
10169
10170         * faces.c (update_face_cachel_data): don't frob the background
10171         pixmap when the window is being created. The face is needed but
10172         does not exist yet.
10173
10174 2000-11-20  Andy Piper  <andy@xemacs.org>
10175
10176         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10177         messing with a debug environment.
10178
10179 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10180
10181         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10182
10183 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10184
10185         * casetab.c (Fcase_table_p): Fix compile error and crash.
10186
10187 2000-11-18  Philip Aston  <philipa@mail.com>
10188
10189         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10190
10191 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10192
10193         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10194         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10195
10196 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10197
10198         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10199         * unexelf.c: Use HAVE_ELF_H.
10200         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10201         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10202         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10203         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10204         for testing.
10205         So this is an unexelfsgi.c from a different line of development.
10206
10207 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10208
10209         * regex.c (RE_TR_ASCII): New function.
10210         (RE_TRANSLATE): Call it.
10211
10212 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10213
10214         * buffer.h (TRT_TABLE_OF): Remove assert.
10215         (IN_TRT_TABLE_DOMAIN): Removed.
10216
10217 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10218
10219         * free-hook.c (log_gcpro):
10220         (show_gcprohist): Add support for GCPRO5.
10221
10222 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10223
10224         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10225
10226 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10227
10228         * symeval.h: Declare flush_all_buffer_local_cache.
10229
10230         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10231         (flush_buffer_local_cache): Added.
10232         (flush_all_buffer_local_cache): Added.
10233
10234         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10235
10236         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10237         (pdump_dump_data): Ditto.
10238         (pdump_reloc_one): Ditto.
10239         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10240         before dumping.
10241
10242
10243 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10244
10245         * buffer.c: Remove if 0'ed entry.
10246         * buffer.h: Rewrite TRT to use char-table.
10247         * bufslots.h: Remove mirror tables.
10248         * casetab.c: Remove mirror tables.
10249         (CASE_TABLE_P): New macro.
10250         (Fcase_table_p): Element of a case table is string or char-table.
10251         (make_mirror_trt_table): Removed.
10252         (set_case_table): Setup char-table from strings for backward
10253         compatibility.
10254         * dired.c (Fdirectory_files):
10255         * dired-msw.c: (mswindows_get_files):
10256         * lisp.h: Change prototype of re_pattern_buffer.
10257         * regex.c: (RE_TRANSLATE): New macro.
10258         (TRANSLATE_P): Ditto.
10259         Change translate to type RE_TRANSLATE_TYPE.
10260         * regex.h: Define RE_TRANSLATE_TYPE
10261         * search.c (TRANSLATE): New macro.
10262         (TRANSLATE_ASCII): New macro.
10263         Translate table is changed to Lisp_Object.
10264         (signal_failure): Inhibit return.
10265
10266 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10267
10268         * device-msw.c:
10269         * eldap.c:
10270         * event-Xt.c:
10271         * event-stream.c:
10272         * print.c:
10273         Do UNGCPRO before return.
10274
10275 2000-11-14  Martin Buchholz <martin@xemacs.org>
10276
10277         * XEmacs 21.2.37 is released.
10278
10279 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10280
10281         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10282         Add comments about discarded return value.
10283
10284 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10285
10286         * callint.c:
10287         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10288
10289 2000-10-27  Andy Piper  <andy@xemacs.org>
10290
10291         * gutter.c (Fset_default_gutter_position): default left and right
10292         gutters to visible.
10293         (calculate_gutter_size): calculate resonable heuristic for left
10294         and right gutter sizes.
10295         (specifier_vars_of_gutter): change left and right gutter sizes to
10296         autodetect.
10297         (calculate_gutter_size_from_display_lines): new function.
10298         (output_gutter): check for resizing on left and right gutters.
10299         (clear_gutter): don't special case top and left gutters.
10300         (specifier_vars_of_gutter): use new signature for
10301         set_specifier_caching.
10302
10303         * glyphs-x.c (x_redisplay_widget): spelling fix.
10304         * glyphs.c (specifier_vars_of_glyphs):
10305         * menubar.c (specifier_vars_of_menubar):
10306         * redisplay.c (specifier_vars_of_redisplay):
10307         * toolbar.c (specifier_vars_of_toolbar):
10308         * window.c (specifier_vars_of_window):
10309         * scrollbar.c (specifier_vars_of_scrollbar):
10310         (complex_vars_of_scrollbar): use new signature for
10311         set_specifier_caching.
10312
10313         * specifier.c (set_specifier_caching): include recompute flag.
10314         (recompute_one_cached_specifier_in_window): always recompute if
10315         flag set.
10316         (recompute_one_cached_specifier_in_frame): ditto.
10317
10318         * specifier.h (struct specifier_caching): add recompute flag.
10319
10320 2000-10-24  Andy Piper  <andy@xemacs.org>
10321
10322         * unexcw.c (copy_executable_and_dump_data_section): add new
10323         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10324         5.0 happy.
10325
10326 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10327
10328         * console-x.h (x_device): New member modifier_release_time.
10329         * event-Xt.c (x_handle_sticky_modifiers):
10330         Bound interval modifier keys are sticky.
10331         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10332         * events.h: extern it.
10333
10334 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10335
10336         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10337
10338 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10339
10340         * event-stream.c (execute_command_event): Preserve current_events
10341         and the like when event is misc-user-event.
10342         Inhibit quit during the call to maybe_echo_keys.
10343
10344 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10345
10346         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10347         symlink when buffer is killed.
10348         (inhibit_clash_detection): New variable.
10349
10350 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10351
10352         * console.c (Fset_input_method): Trigger redisplay on tty.
10353
10354 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10355
10356         * process.c (Fprocess_status): Revert to previous behavior:
10357         (process-status "nosuchprocess") ==> nil
10358
10359 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10360
10361         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10362         Work around another GCC 2.95.2 optimizer bug.
10363
10364 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10365
10366         * process.c (Fget_process): Use LIST_LOOP_2.
10367         (kill_buffer_processes): Use LIST_LOOP_2.
10368
10369         * minibuf.c (Fall_completions):
10370         Delete old non-functional code for FSF fourth argument.
10371
10372         * frame.c (frame_matches_frame_spec):
10373         Renamed from `frame_matches_frametype'.  Update all callers.
10374         (device_matches_device_spec):
10375         Renamed from 'device_matches_console_spec'.  Update all callers.
10376
10377         * doc.c (Fsubstitute_command_keys):
10378         Remove buffer overflow crash.  Small code cleanups.
10379
10380         * casetab.c (check_case_table): Simpler code.
10381
10382         * window.c (Freplace_buffer_in_windows):
10383         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10384         (and similar implementation) as Fdelete_windows_on.
10385         Update all callers.
10386
10387         * alloc.c (Fmake_list):
10388         * alloc.c (make_vector):
10389         * alloc.c (Fmake_vector):
10390         * alloc.c (make_bit_vector):
10391         * alloc.c (Fmake_bit_vector):
10392         * alloc.c (Fbit_vector):
10393         * alloc.c (Fmake_string):
10394         * alloc.c (Fpurecopy):
10395         * alloc.c (Fmemory_limit):
10396         * buffer.c:
10397         * buffer.c (Fget_buffer):
10398         * buffer.c (Fkill_buffer):
10399         * buffer.c (complex_vars_of_buffer):
10400         * bytecode.c (Fcompiled_function_stack_depth):
10401         * callint.c (Fprefix_numeric_value):
10402         * event-stream.c:
10403         * event-stream.c (Fread_key_sequence):
10404         * casetab.c:
10405         * casetab.c (Fcase_table_p):
10406         * casetab.c (check_case_table):
10407         * casetab.c (Fset_case_table):
10408         * casetab.c (Fset_standard_case_table):
10409         * chartab.c:
10410         * chartab.c (Fchar_table_type):
10411         * chartab.c (Freset_char_table):
10412         * chartab.c (Fget_char_table):
10413         * chartab.c (Fget_range_char_table):
10414         * chartab.c (Fput_char_table):
10415         * chartab.c (Fmap_char_table):
10416         * chartab.c (Fcategory_table_p):
10417         * chartab.c (Fcheck_category_at):
10418         * chartab.c (Fchar_in_category_p):
10419         * chartab.c (Fcategory_table):
10420         * chartab.c (Fcopy_category_table):
10421         * chartab.c (Fset_category_table):
10422         * chartab.c (Fcategory_designator_p):
10423         * chartab.c (Fcategory_table_value_p):
10424         * cmds.c (Fdelete_char):
10425         * cmds.c (Fdelete_backward_char):
10426         * cmds.c (Fself_insert_command):
10427         * cmds.c (Fself_insert_internal):
10428         * console.c (Fvalid_console_type_p):
10429         * console.c (Fcdfw_console):
10430         * console.c (Fconsole_type):
10431         * console.c (Fconsole_name):
10432         * console.c (Fconsole_device_list):
10433         * console.c (Fconsole_on_window_system_p):
10434         * data.c:
10435         * data.c (Feq):
10436         * data.c (Fold_eq):
10437         * data.c (Fsubr_interactive):
10438         * data.c (Fchar_to_int):
10439         * data.c (Fint_to_char):
10440         * data.c (Fsetcar):
10441         * data.c (Fsetcdr):
10442         * data.c (Fnumber_to_string):
10443         * data.c (Fstring_to_number):
10444         * data.c (Frem):
10445         * database.c (mark_database):
10446         * database.c (finalize_database):
10447         * database.c (Fdatabase_live_p):
10448         * database.c (Fdatabasep):
10449         * device-x.c (Fx_get_resource):
10450         * device.c (Fdfw_device):
10451         * dired.c:
10452         * dired.c (Ffile_name_completion):
10453         * dired.c (Ffile_name_all_completions):
10454         * dired.c (Fuser_name_completion):
10455         * dired.c (Fuser_name_completion_1):
10456         * dired.c (Fuser_name_all_completions):
10457         * doc.c (Fdocumentation):
10458         * doc.c (Fdocumentation_property):
10459         * doc.c (Fsubstitute_command_keys):
10460         * editfns.c:
10461         * editfns.c (Fchar_to_string):
10462         * editfns.c (Fstring_to_char):
10463         * editfns.c (Ftemp_directory):
10464         * editfns.c (Finsert_char):
10465         * editfns.c (Fbuffer_substring_no_properties):
10466         * editfns.c (Fnarrow_to_region):
10467         * editfns.c (Fchar_equal):
10468         * editfns.c (Fchar_Equal):
10469         * editfns.c (Ftranspose_regions):
10470         * emacs.c (Fdump_emacs):
10471         * eval.c (Fthrow):
10472         * eval.c (Fcommand_execute):
10473         * eval.c (Fautoload):
10474         * eval.c (Fbacktrace):
10475         * eval.c (Fbacktrace_frame):
10476         * events.c:
10477         * events.c (Fcopy_event):
10478         * events.c (Fcharacter_to_event):
10479         * events.c (Fevent_button):
10480         * events.c (Fevent_process):
10481         * extents.c:
10482         * extents.c (Fnext_extent_change):
10483         * extents.c (Fextent_property):
10484         * faces.c (Ffacep):
10485         * faces.c (Fmake_face):
10486         * file-coding.c:
10487         * file-coding.c (Fencode_shift_jis_char):
10488         * file-coding.c (Fencode_big5_char):
10489         * fileio.c (Ffile_name_directory):
10490         * fileio.c (Ffile_name_nondirectory):
10491         * fileio.c (Ffile_name_as_directory):
10492         * fileio.c (Fdirectory_file_name):
10493         * fileio.c (Ffile_truename):
10494         * fileio.c (Fsubstitute_in_file_name):
10495         * fileio.c (Ffile_modes):
10496         * fileio.c (Fset_file_modes):
10497         * fileio.c (Fset_default_file_modes):
10498         * fileio.c (Fverify_visited_file_modtime):
10499         * floatfns.c (Facos):
10500         * floatfns.c (Fasin):
10501         * floatfns.c (Fatan):
10502         * floatfns.c (Fcos):
10503         * floatfns.c (Fsin):
10504         * floatfns.c (Ftan):
10505         * floatfns.c (Fbessel_j0):
10506         * floatfns.c (Fbessel_j1):
10507         * floatfns.c (Fbessel_jn):
10508         * floatfns.c (Fbessel_y0):
10509         * floatfns.c (Fbessel_y1):
10510         * floatfns.c (Fbessel_yn):
10511         * floatfns.c (Ferf):
10512         * floatfns.c (Ferfc):
10513         * floatfns.c (Flog_gamma):
10514         * floatfns.c (Fexp):
10515         * floatfns.c (Fexpt):
10516         * floatfns.c (Flog):
10517         * floatfns.c (Flog10):
10518         * floatfns.c (Fsqrt):
10519         * floatfns.c (Fcube_root):
10520         * floatfns.c (Facosh):
10521         * floatfns.c (Fasinh):
10522         * floatfns.c (Fatanh):
10523         * floatfns.c (Fcosh):
10524         * floatfns.c (Fsinh):
10525         * floatfns.c (Ftanh):
10526         * floatfns.c (Fabs):
10527         * floatfns.c (Ffloat):
10528         * floatfns.c (Flogb):
10529         * floatfns.c (Fceiling):
10530         * floatfns.c (Ffloor):
10531         * floatfns.c (Fround):
10532         * floatfns.c (Ftruncate):
10533         * floatfns.c (Ffceiling):
10534         * floatfns.c (Fffloor):
10535         * floatfns.c (Ffround):
10536         * floatfns.c (Fftruncate):
10537         * fns.c (Fstring_equal):
10538         * fns.c (Fstring_lessp):
10539         * fns.c (concat2):
10540         * fns.c (concat3):
10541         * fns.c (vconcat2):
10542         * fns.c (vconcat3):
10543         * fns.c (Fsubstring):
10544         * fns.c (Fassoc):
10545         * fns.c (Fold_assoc):
10546         * fns.c (assoc_no_quit):
10547         * fns.c (Fassq):
10548         * fns.c (Fold_assq):
10549         * fns.c (assq_no_quit):
10550         * fns.c (Frassoc):
10551         * fns.c (Fold_rassoc):
10552         * fns.c (Frassq):
10553         * fns.c (Fold_rassq):
10554         * fns.c (rassq_no_quit):
10555         * fns.c (Fremassoc):
10556         * fns.c (remassoc_no_quit):
10557         * fns.c (Fremassq):
10558         * fns.c (remassq_no_quit):
10559         * fns.c (Fremrassoc):
10560         * fns.c (Fremrassq):
10561         * fns.c (remrassq_no_quit):
10562         * fns.c (Fsort):
10563         * fns.c (Fplist_get):
10564         * fns.c (Fplist_put):
10565         * fns.c (Fplist_remprop):
10566         * fns.c (Fplist_member):
10567         * fns.c (Flax_plist_get):
10568         * fns.c (Flax_plist_put):
10569         * fns.c (Flax_plist_remprop):
10570         * fns.c (Flax_plist_member):
10571         * fns.c (Fequal):
10572         * fns.c (Fold_equal):
10573         * fns.c (Frequire):
10574         * fns.c (Fbase64_encode_region):
10575         * fns.c (Fbase64_encode_string):
10576         * fns.c (Fbase64_decode_region):
10577         * frame.c:
10578         * frame.c (frame_matches_frame_spec):
10579         * frame.c (device_matches_device_spec):
10580         * frame.c (next_frame):
10581         * frame.c (previous_frame):
10582         * frame.c (Fnext_frame):
10583         * frame.c (Fprevious_frame):
10584         * frame.c (Fframe_property):
10585         * frame.c (Fset_frame_height):
10586         * frame.c (Fset_frame_size):
10587         * frame.h:
10588         * glyphs.c:
10589         * glyphs.c (if):
10590         * glyphs.c (decode_error_behavior_flag):
10591         * glyphs.c (Fmake_image_instance):
10592         * indent.c (Findent_to):
10593         * intl.c (Fignore_defer_gettext):
10594         * keymap.c (Fkeymapp):
10595         * keymap.c (Flookup_key):
10596         * lread.c:
10597         * lread.c (Fload_internal):
10598         * lread.c (Feval_buffer):
10599         * lread.c (Feval_region):
10600         * macros.c (Fexecute_kbd_macro):
10601         * marker.c (set_marker_internal):
10602         * marker.c (Fset_marker):
10603         * marker.c (set_marker_restricted):
10604         * marker.c (Fcopy_marker):
10605         * marker.c (noseeum_copy_marker):
10606         * menubar.c:
10607         * menubar.c (Fpopup_menu):
10608         * minibuf.c:
10609         * mule-charset.c (Fcharset_name):
10610         * mule-charset.c (Fchar_charset):
10611         * mule-charset.c (Fchar_octet):
10612         * mule-charset.c (Fsplit_char):
10613         * mule-wnnfns.c (Fwnn_open):
10614         * mule-wnnfns.c (Fwnn_dict_comment):
10615         * mule-wnnfns.c (Fwnn_quit_henkan):
10616         * mule-wnnfns.c (Fwnn_word_toroku):
10617         * mule-wnnfns.c (Fwnn_word_sakujo):
10618         * mule-wnnfns.c (Fwnn_word_use):
10619         * mule-wnnfns.c (Fwnn_hindo_set):
10620         * objects.c:
10621         * objects.c (Fmake_color_instance):
10622         * objects.c (Fmake_font_instance):
10623         * print.c (Fwrite_char):
10624         * process.c:
10625         * process.c (mark_process):
10626         * process.c (print_process):
10627         * process.c (get_process_from_usid):
10628         * process.c (Fprocessp):
10629         * process.c (Fprocess_live_p):
10630         * process.c (Fget_process):
10631         * process.c (Fget_buffer_process):
10632         * process.c (get_process):
10633         * process.c (Fprocess_id):
10634         * process.c (Fprocess_name):
10635         * process.c (Fprocess_command):
10636         * process.c (init_process_io_handles):
10637         * process.c (start_process_unwind):
10638         * process.c (Fstart_process_internal):
10639         * process.c (Fopen_multicast_group_internal):
10640         * process.c (Fset_process_window_size):
10641         * process.c (read_process_output):
10642         * process.c (send_process):
10643         * process.c (Fprocess_tty_name):
10644         * process.c (Fset_process_buffer):
10645         * process.c (Fprocess_buffer):
10646         * process.c (Fprocess_mark):
10647         * process.c (set_process_filter):
10648         * process.c (Fset_process_filter):
10649         * process.c (Fprocess_filter):
10650         * process.c (Fprocess_send_region):
10651         * process.c (Fprocess_send_string):
10652         * process.c (exec_sentinel):
10653         * process.c (Fset_process_sentinel):
10654         * process.c (Fprocess_sentinel):
10655         * process.c (status_notify):
10656         * process.c (Fprocess_status):
10657         * process.c (Fprocess_exit_status):
10658         * process.c (process_send_signal):
10659         * process.c (Fprocess_send_eof):
10660         * process.c (deactivate_process):
10661         * process.c (remove_process):
10662         * process.c (Fdelete_process):
10663         * process.c (kill_buffer_processes):
10664         * process.c (Fprocess_kill_without_query):
10665         * process.c (Fprocess_kill_without_query_p):
10666         * rangetab.c:
10667         * rangetab.c (Fget_range_table):
10668         * rangetab.c (Fput_range_table):
10669         * rangetab.c (Fremove_range_table):
10670         * rangetab.c (Fclear_range_table):
10671         * search.c:
10672         * search.c (Fskip_chars_forward):
10673         * search.c (Fskip_chars_backward):
10674         * search.c (Fskip_syntax_forward):
10675         * search.c (Fskip_syntax_backward):
10676         * search.c (search_command):
10677         * search.c (Freplace_match):
10678         * search.c (Fregexp_quote):
10679         * select.c (Fown_selection_internal):
10680         * select.c (Fselection_owner_p):
10681         * select.c (Fselection_exists_p):
10682         * select.c (Fget_selection_internal):
10683         * specifier.c:
10684         * symbols.c:
10685         * symbols.c (Fintern):
10686         * symbols.c (Fintern_soft):
10687         * symbols.c (Funintern):
10688         * symbols.c (Fapropos_internal):
10689         * symbols.c (Fset_default):
10690         * syntax.c:
10691         * syntax.c (Fsyntax_table_p):
10692         * syntax.c (Fcopy_syntax_table):
10693         * syntax.c (Fset_syntax_table):
10694         * syntax.c (Fchar_syntax):
10695         * syntax.c (syntax_match):
10696         * syntax.c (Fmatching_paren):
10697         * syntax.c (Fforward_word):
10698         * syntax.c (scan_lists):
10699         * syntax.c (Fscan_lists):
10700         * syntax.c (Fscan_sexps):
10701         * syntax.c (Fparse_partial_sexp):
10702         * toolbar.c (Fcheck_toolbar_button_syntax):
10703         * tooltalk.doc:
10704         * window.c:
10705         * window.c (Fwindowp):
10706         * window.c (Fwindow_live_p):
10707         * window.c (Fwindow_point):
10708         * window.c (Fdelete_window):
10709         * window.c (Fnext_window):
10710         * window.c (Fprevious_window):
10711         * window.c (Fother_window):
10712         * window.c (window_loop):
10713         * window.c (Fget_lru_window):
10714         * window.c (Fsplit_window):
10715         * window.c (Fenlarge_window):
10716         * window.c (Fenlarge_window_pixels):
10717         * window.c (Fshrink_window):
10718         * window.c (Fshrink_window_pixels):
10719         * window.c (change_window_height):
10720         * window.c (Fwindow_configuration_p):
10721         * window.c (Fcurrent_window_configuration):
10722         * window.h:
10723         * casefiddle.c (casify_object):
10724         * casefiddle.c (Fupcase):
10725         * casefiddle.c (Fdowncase):
10726         * casefiddle.c (Fcapitalize):
10727         * casefiddle.c (Fupcase_initials):
10728         * casefiddle.c (casify_region_internal):
10729         * casefiddle.c (casify_region):
10730         * casefiddle.c (Fupcase_region):
10731         * casefiddle.c (Fdowncase_region):
10732         * casefiddle.c (Fcapitalize_region):
10733         * casefiddle.c (Fupcase_initials_region):
10734         * casefiddle.c (Fupcase_word):
10735         * casefiddle.c (Fdowncase_word):
10736         * casefiddle.c (Fcapitalize_word):
10737         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10738         Replace 0 with '\0' when working with bytes.
10739         Replace initial "(" with "\(" in docstrings.
10740
10741 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10742
10743         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10744
10745         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10746
10747 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10748
10749         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10750
10751 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10752
10753         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10754         correctly.
10755
10756 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10757
10758         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10759         (inhibit_auto_save_session): New variable.
10760         (vars_of_fileio): Declare and initialize them.
10761         * fileio.c (Fdo_auto_save): Don't create session file if
10762         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10763
10764 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10765
10766         * sgiplay.c (play_internal): C++ compilability.
10767         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10768         * callproc.c (Fold_call_process_internal):
10769         Remove unused vars `env', `first'.
10770         * scrollbar.c (update_scrollbar_instance):
10771         #### unused var `current_window'.
10772         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10773         etc. within #ifdef NOT_YET.
10774         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10775         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10776         * specifier.c (specifier_instance):
10777         #### unused var `tag'.
10778         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10779
10780 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10781
10782         * fns.c (Fbutlast):
10783         * fns.c (list_sort):
10784         * fns.c (Ffillarray):
10785         * fns.c (bytecode_nconc2):
10786         * fns.c (Fnconc):
10787         * fns.c (mapcar1):
10788         * fns.c (Fmapconcat):
10789         Be pedantically 64-bit correct.  For the time when someone will
10790         want to have a list with length > 2**32.
10791
10792         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10793         Work around MIPSpro compiler bug.
10794
10795         * process-unix.c (unix_kill_child_process): Add snarky comment.
10796         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10797
10798         * config.h.in: Oops, _getpt ==> _getpty
10799
10800 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10801
10802         * config.h.in:
10803         * regex.c:
10804         Use void*, not char*, as return type of alloca().
10805
10806         * alloc.c (free_marker): Side effect inside assert expression!
10807
10808 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10809
10810         * mule-charset.c (Fset_charset_ccl_program): To check
10811         if the given ccl program is valid, use setup_ccl_program()
10812         instead of CHECK_VECTOR().
10813         (Fmake_charset): Likewise.
10814
10815 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10816
10817         * faces.c (get_extent_fragment_face_cache_index):
10818         Fix cachel.merged_faces memory leak.
10819
10820 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10821
10822         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10823         Reset MSB of octets obtained by DECODE_SJIS
10824         because of the incompatibility with Emacs.
10825         (ccl_driver)<CCL_ENCODE_SJIS>:
10826         Set MSB of octets before passing them to
10827         ENCODE_SJIS because of the incompatibility
10828         with Emacs.
10829
10830 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10831
10832         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10833         (DECLARE_LRECORD): Undo the last change.
10834         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10835
10836 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10837
10838         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10839         the implementation to lrecord_implementations_table.
10840
10841 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10842
10843         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10844         initial value of `lrecord_type_##c_name' and
10845         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10846         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10847         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10848         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10849         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10850
10851 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10852
10853         * miscplay.c (sndcnv8S_2mono):
10854         (sndcnv2monounsigned):
10855         (sndcnvULaw_2linear):
10856         (sndcnv16swap):
10857         Remove implementation-defined behavior.
10858
10859 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10860
10861         * input-method-xlib.c: Warning suppression.
10862
10863 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10864
10865         * mule-ccl.c: Sync up with Emacs 21.0.90.
10866         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10867         Do nothing.
10868         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10869         Likewise.
10870         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10871         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10872         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10873         leading char belongs to official 2-dimensional charset.
10874         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10875         write the given character as is.  Otherwise,
10876         if it is a multibyte char, convert it by
10877         non_ascii_set_charptr_emchar, then write it.
10878         (CCL_WRITE_STRING): Likewise.
10879         (ccl_get_compiled_code): New function.
10880         (setup_ccl_program): When ccl_prog is invalid,
10881         return -1.
10882         (Fregister_code_conversion_map): New function.
10883         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10884
10885         * mule-ccl.h: Sync up with Emacs 21.0.90.
10886         (Fregister_ccl_program): export it.
10887
10888         * redisplay-msw.c (separate_textual_runs):
10889         If ccl program is not valid, don't do ccl conversion.
10890
10891         * redisplay-x.c (separate_textual_runs): Ditto.
10892
10893         * file-coding.c (Fmake_coding_system):
10894         When type is ccl and value is vector, register it
10895         with a proper symbol.  And checks whether the
10896         given ccl program is valid.
10897         (mule_decode): When calling ccl_driver, if src indicates
10898         NULL pointer, set an empty string instead.
10899         (mule_encode): Likewise.
10900
10901 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10902
10903         The following large batch of changes gets us back to a state of
10904         C++ compilability.  Extbyte is now a char, which means that
10905         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10906
10907         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10908
10909         * sound.c (Fplay_sound): Type correctness.
10910
10911         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10912         (x_get_window_property): Type correctness.
10913         (receive_incremental_selection): unsigned char ==> Extbyte
10914         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10915         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10916         (Fx_store_cutbuffer_internal): Type correctness.
10917
10918         * process-unix.c (try_to_initialize_subtty): Type correctness.
10919
10920         * objects-x.c (x_print_color_instance): Type correctness.
10921         (x_print_font_instance): Type correctness.
10922         (x_list_fonts): SExtbyte ==> Extbyte.
10923         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10924         (x_find_charset_font): SExtbyte ==> Extbyte.
10925         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10926         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10927         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10928         Use bufbyte_strcmp.
10929
10930         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10931         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10932         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10933         (BYTE_C0_P): Use bit ops for char-signedness safety.
10934         (BYTE_C1_P): Use bit ops for char-signedness safety.
10935         (CHARSET_BY_LEADING_BYTE):
10936         (CHARSET_BY_ATTRIBUTES):
10937         Always use inline function.
10938         Use type_checking_assert.
10939         Hide chlook.
10940
10941         * mule-charset.c (non_ascii_charptr_copy_char):
10942         Modify to work with both ASCII and non-ASCII characters.
10943         Improve docs and variable names.
10944         Replace over-clever fall-through switch with a simple loop.
10945         (Lstream_get_emchar_1):
10946         Replace over-clever fall-through switch with a simple loop.
10947
10948         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10949         Warning suppression.
10950
10951         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10952         the return value of Lstream_getc, which could be EOF as well.
10953
10954         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10955
10956         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10957         APIs can be used on Extbytes without casts.  Risky!
10958         (SExtbyte): Remove.
10959         (UExtbyte): Remove.
10960
10961         * input-method-xlib.c (XIM_init_device):
10962         Use Xlib.h instead of IntrinsicP.h.
10963         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10964         which will break in X11R7.
10965         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10966         to call XRegisterIMInstantiateCallback with correct types.
10967
10968         * gui-x.c (button_item_to_widget_value): Type correctness.
10969
10970         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10971
10972         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10973         (xbm_instantiate_1): Type correctness.
10974         (BUILD_GLYPH_INST):  Type correctness.
10975
10976         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10977
10978         * file-coding.c:
10979         (decode_coding_sjis):
10980         (decode_coding_big5):
10981         (decode_coding_ucs4):
10982         (decode_coding_utf8):
10983         (decode_coding_iso2022):
10984         (decode_coding_no_conversion):
10985         Make all decoding functions take an Extbyte * arg.
10986         (encode_coding_sjis):
10987         (encode_coding_big5):
10988         (encode_coding_ucs4):
10989         (encode_coding_utf8):
10990         (encode_coding_iso2022):
10991         (encode_coding_no_conversion):
10992         Make all encoding functions take a Bufbyte * arg.
10993         Use size_t instead of unsigned int for memory sizes.
10994         Only cast to unsigned char whenever dereferencing Extbyte *.
10995
10996         * doc.c (unparesseuxify_doc_string): Type correctness.
10997
10998         * console-x.c (split_up_display_spec):
10999         Rewrite without using details of internal string representation.
11000         (x_semi_canonicalize_device_connection): Type correctness.
11001
11002         * config.h.in:
11003         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
11004         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
11005         (HAVE_XFREE386): Removed.
11006
11007         * buffer.h (DEC_CHARPTR): `const' correctness.
11008         (bufbyte_strcmp): New.
11009         (bufbyte_memcmp): New.
11010
11011         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
11012
11013         * buffer.h (XCHAR_OR_CHAR_INT):
11014         Always use inline function.
11015         Remove redundant type checking assert() - XINT will abort quite nicely.
11016
11017 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11018
11019         * search.c (Freplace_match): Set newtext to an empty string.
11020
11021 2000-10-10  Martin Buchholz  <martin@xemacs.org>
11022
11023         * s/decosf1-3.h: Remove #include of stropts.h
11024         * s/ptx.h: Remove #include of stropts.h
11025         * s/usg5-4.h: Remove #include of stropts.h
11026         * sysproc.h:
11027         * config.h.in:
11028         Use stropts.h, not sys/stropts.h.
11029         Use strtio.h, not sys/strtio.h.
11030
11031 2000-10-04  Martin Buchholz <martin@xemacs.org>
11032
11033         * XEmacs 21.2.36 is released.
11034
11035 2000-09-21  Andy Piper  <andy@xemacs.org>
11036
11037         * glyphs-x.c (x_redisplay_widget): make sure non-structural
11038         changes still involve copying the widget tree.
11039         (update_widget_face): make sure a change is register in the widget
11040         tree. Call update_tab_widget_face appropriately.
11041         (update_tab_widget_face): ditto.
11042         (x_tab_control_redisplay): make sure non-structural changes still
11043         involve copying the widget tree.
11044
11045 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
11046
11047         * lread.c (locate_file): Check the path element is non-nil.
11048
11049 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11050
11051         * lisp.h: Warning suppression for SCO compilers.
11052
11053         * redisplay-tty.c (reset_tty_modes): Fix crash.
11054         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
11055
11056 2000-09-27  Martin Buchholz  <martin@xemacs.org>
11057
11058         Big signal/process handling overhaul.  Bugs fixed:
11059         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
11060         M-x comint-kill-subjob should work for both values nil and t of
11061         process-connection-type. It was broken on most platforms.
11062         Testing on Irix and Cygwin still needed.  Other plaforms tested.
11063         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
11064         * process-unix.c: Signal/Process handling overhaul.
11065         (pty_name): make 64 bytes, as `expect' does, for paranoia.
11066         (allocate_pty): Use all available modern methods of allocating
11067         ptys, falling back to old style BSD allocation as a last resort.
11068         Use allegedly more secure Unix98 pty allocation by default.
11069         (allocate_pty_the_old_fashioned_way): New. the last resort.
11070         (unix_create_process): Push ptem, ldterm, ttcompat where
11071         available.  Autoconfiscate.
11072         (try_to_initialize_subtty): New.
11073         (unix_kill_child_process): Proper signal handling for ptys on most
11074         platforms, using special knowledge of AIX, BSD, etc...
11075         (unix_create_process): Always disconnect_controlling_terminal() for
11076         subprocesses, whether using ptys or not.
11077         * process.h: Remove old getpt-dependent PTY code.
11078         * process.c (Fprocess_send_signal): New, obvious generic function.
11079         (decode_signal): New.
11080         (Finterrupt_process):
11081         (Fkill_process):
11082         (Fquit_process):
11083         (Fstop_process):
11084         (Fcontinue_process):
11085         (Fsignal_process): Use decode_signal.
11086         (process_send_signal):
11087         Many docstring corrections.
11088         Allow any signal to be sent to a process object.
11089         * config.h.in: Add symbols for big signal/process overhaul.
11090         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11091         * sysproc.h: Include process-related headers, where available:
11092         sys/stropts.h sys/strtio.h pty.h libutil.h
11093         * s/irix4-0.h:
11094         * s/irix5-0.h:
11095         * s/cygwin32.h:
11096         * s/gnu.h:
11097         * s/linux.h:
11098         * s/hpux.h:
11099         * s/aix3-1.h:
11100         Remove old S&M pty stuff.
11101         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11102         * systty.h: Simplify cpp hackery, improve comments.
11103         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11104
11105         * editfns.c (Fformat_time_string):
11106         Be a little more paranoid with the return value of ctime.
11107
11108         * fileio.c (check_executable):
11109         (check_writable):
11110         Use symbolic constants X_OK, W_OK.
11111
11112         * console-x.c (split_up_display_spec): Fix a warning.
11113
11114 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11115
11116         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11117         * ntproc.c (sys_spawnve): make_string ==> build_string
11118         Small clarity improvements.
11119
11120 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11121
11122         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11123
11124         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11125
11126         * config.h.in (HAVE_STRCASECMP): Remove.
11127
11128 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11129
11130         * redisplay-output.c (redisplay_output_pixmap):
11131         Cleaner and possibly more 64-bit correct code.
11132
11133 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11134
11135         * dumper.c (pdump_load_finish): move restoration of
11136         `noninteractive1' to emacs.c (main_1).
11137         * emacs.c (main_1): protect LISP-visible command-line flags
11138         from pdump_load().
11139
11140 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11141
11142         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11143         DUMP_TARGET instead of literal program names.
11144
11145 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11146
11147         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11148
11149 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11150
11151         * *: Spelling mega-patch
11152
11153 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11154
11155         * fns.c (bad_bad_turtle):
11156         Delete "Eek!" comment, since we fixed the bug to which it refers.
11157
11158 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11159
11160         * alloca.c: Replace REGISTER with register.
11161
11162 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11163
11164         * file-coding.c (ucs_to_char): Use countof.
11165
11166 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11167
11168         * file-coding.c: (ucs_to_char):
11169         (complex_vars_of_file_coding):
11170         Use countof instead of sizeof.
11171         Use CHECK_NATNUM instead of CHECK_INT.
11172
11173         * sysdep.c (strcasecmp): Remove.
11174         * device-x.c (ascii_strcasecmp): New.
11175         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11176         Avoid using non-standard non-portable strcasecmp.
11177
11178 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11179
11180         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11181         * font-lock.c: remove reference to emacsfns.h.
11182         * search.c: small doc improvement.
11183         * event-Xt.c: correct file names in comments.
11184         * console-x.h Correct file names in comments.
11185         * frame.c: Correct file names in comments.
11186         * event-stream.c: remove Energize from comments.
11187
11188 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11189
11190         * symeval.h (DEFERROR_STANDARD):
11191         (DEFERROR):
11192         (DEFSYMBOL):
11193         (DEFSYMBOL_NO_DUMP):
11194         (DEFSYMBOL_MULTIWORD_PREDICATE):
11195         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11196         (DEFKEYWORD):
11197         The construct &##name is not sensible C.
11198         Fixes compilation errors with Unixware native compiler.
11199
11200 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11201
11202         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11203         (next_frame_internal): Removed.  We now just have next_frame.
11204         (next_frame):
11205         Write a simpler and cleaner one-pass algorithm.
11206         Remove called_from_delete_device arg and #ifdefed-out code.
11207         (previous_frame):
11208         Renamed from prev_frame.  Update callers.
11209         Cleaned up to have an analogous implementation to next_frame.
11210         (other_visible_frames_internal): Remove the
11211         called_from_delete_device bogus arg, and hence, remove this
11212         function.  Just use other_visible_frames().
11213
11214         * window.c (Fnext_window):
11215         Prettify docstring.
11216         Since next_frame() is guaranteed to return a frame, remove check
11217         for nil inserted in previous patch.
11218         (Fprevious_window):
11219         Prettify docstring.
11220         Make code look more like Fnext_window.
11221         (window_loop):
11222         Respect the `console' arg when iterating through windows.
11223         Fixes bug: (get-buffer-window buffer t device) not respecting
11224         the `device' arg.
11225         This function needs more work, as others have pointed out.
11226
11227         * frame.h: Rename prev_frame to previous_frame.
11228         device_matches_console_spec no longer takes a `frame' arg.
11229
11230         * s/gnu.h:
11231         * s/linux.h:
11232         * s/hpux.h:
11233         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11234         From "Golubev I. N." <gin@mo.msk.ru>.
11235
11236         * make-src-depend: Fix typo.
11237
11238 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11239
11240         * window.c (Fnext_window):
11241         next_frame() might return nil, not a frame.
11242         Fixes this crash:
11243         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11244
11245         * frame.c (next_frame_internal):
11246         We've passed a frame if we've passed its device.
11247         Fixes this crash:
11248         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11249 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11250
11251 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11252
11253         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11254         Allow option to suppress accelerators in menu/dialog items.
11255         (populate_or_checksum_helper): Pass dialog title through above.
11256
11257 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11258
11259         * event-msw.c (mswindows_key_to_emacs_keysym):
11260         Add "pause" key, fix "menu" key.
11261
11262 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11263
11264         * eval.c (reinit_vars_of_eval):
11265         Increase max_lisp_eval_depth to 1000,
11266         required for thai-xtis.el to byte-compile under some circumstances.
11267
11268 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11269
11270         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11271         From Kenichi Handa.
11272
11273 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11274
11275         * make-src-depend: Make the generated Makefiles smaller.
11276
11277         * s/hpux.h (SETUP_SLAVE_PTY):
11278         Provide a %d in the format string for the errno argument.
11279
11280         * editfns.c (Ftemp_directory):
11281         Warning fix.
11282         Avoid buffer overrun on very long file name.
11283
11284         * input-method-xlib.c (XIM_init_device):
11285         6th parameter of XRegisterIMInstantiateCallback has different
11286         pointer types on different OSes, so simply cast to (void *).
11287
11288         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11289
11290         * sysdll.c (dll_open):
11291         shl_load will hang hard if passed a NULL filename.
11292         Simply return NULL for compatibility with dlopen.
11293         * sysdll.c: Conform to XEmacs coding standards.
11294
11295         * sysdep.c (get_pty_max_bytes):
11296         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11297
11298 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11299
11300         * tooltalk.c: Add #include <syssignal.h>
11301
11302 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11303
11304         * s/hpux.h: Don't use undefined function sigunblock().
11305
11306 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11307
11308         * config.h.in: Add HAVE_BALLOON_HELP.
11309         * emacs.c: Use HAVE_BALLOON_HELP.
11310         * Makefile.in.in (x_objs):
11311         Make Balloon Help conditional on finding shape.h.
11312
11313 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11314
11315         * syntax.c (regex_emacs_buffer_p): New variable.
11316         * syntax.h (regex_emacs_buffer_p): extern.
11317         * search.c (looking_at_1):
11318         (string_match_1):
11319         (fast_string_match):
11320         (search_buffer): Set regex_emacs_buffer_p.
11321         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11322         when before_dot, at_dot, after_dot.
11323
11324 2000-08-23  Andy Piper  <andy@xemacs.org>
11325
11326         * gui-x.c (popup_selection_callback): Only set action_occurred
11327         when we really have an image instance.
11328         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11329
11330 2000-08-23  Andy Piper  <andy@xemacs.org>
11331
11332         * gui-msw.c (mswindows_handle_gui_wm_command): set
11333         action_occurred.
11334         * gui-x.c (popup_selection_callback): ditto.
11335
11336         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11337         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11338         (struct Lisp_Image_Instance): add action_occurred flag.
11339
11340         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11341         (image_instance_changed): ditto.
11342         (reset_frame_subwindow_instance_cache): only unmap windows - do
11343         not remove them from the cache also.
11344
11345         * glyphs-widget.c (tab_control_update): better debug.
11346         (progress_gauge_update): ditto.
11347         (layout_update): ditto.
11348         (layout_instantiate): ditto.
11349         (tab_control_order_only_changed): cope with null pending items.
11350
11351         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11352         debug. Force selection of an item when an action occurred. Cope
11353         with null pending_items.
11354         (mswindows_progress_gauge_redisplay): better debug.
11355         * glyphs-x.c (x_tab_control_redisplay): ditto.
11356
11357         * redisplay.c (redisplay_frame): reset the frame cache if the
11358         frame is garbaged.
11359
11360         * window.c (Fset_window_configuration): potentially re-enable
11361         frame cache reset.
11362         (window_unmap_subwindows): need to finalize instances here since
11363         it is only used in mark_window_as_deleted.
11364
11365 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11366
11367         * nas.c (SndOpenDataForReading):
11368         nas.c (WaveOpenDataForReading):
11369         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11370         Somehow escaped from the 2000-08-14 patch.
11371
11372 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11373
11374         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11375         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11376
11377 2000-08-21  Andy Piper  <andy@xemacs.org>
11378
11379         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11380         window if it is not already displayed.
11381
11382         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11383         it is not already displayed.
11384
11385         * window.c (Fset_window_configuration): don't reset the frame
11386         cache.
11387
11388         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11389         instances from the frame cache if we are actually finalizing them.
11390         (reset_frame_subwindow_instance_cache): reset frame cache only
11391         after unmapping everything.
11392         (map_subwindow): set displayed flag after mapping.
11393
11394 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11395
11396         * data.c (indirect_function):
11397         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11398
11399         * eval.c (function_argcount):
11400         Use original function when signaling errors.
11401
11402 2000-08-18  Andy Piper  <andy@xemacs.org>
11403
11404         * frame.c (delete_frame_internal): use new
11405         free_frame_subwindow_instances name.
11406
11407         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11408         (add_tab_item): make return type correct.
11409         (mswindows_tab_control_instantiate): assert index of tab.
11410         (mswindows_tab_control_redisplay): Re-code to use
11411         gui_item_equal_sans_selected and gui_item_list_find_selected.
11412
11413         * glyphs-widget.c (tab_control_update): Correct comment.
11414
11415         * window.c (window_unmap_subwindows): use new
11416         unmap_subwindow_instance_cache_mapper.
11417         (window_unmap_subwindows_cache_mapper): deleted.
11418         (Fset_window_configuration): comparisons should now be with
11419         EQ. Preserve the subwindow instance cache across configuration
11420         changes.
11421         (allocate_window): ditto.
11422         (make_dummy_parent): ditto.
11423
11424         * glyphs.c (free_frame_subwindow_instances): rename from
11425         free_frame_subwindow_instance_cache. finalize all instances rather
11426         than just those in the display cache.
11427         (finalize_all_subwindow_instances): walk windows unmapping and
11428         finalizing subwindows.
11429         (unmap_subwindow_instance_cache_mapper): moved from
11430         window.c. Allow finalization as well as unmapping.
11431
11432         * gui.c (gui_item_list_find_selected): new function.
11433
11434         * gui.h (gui_item_list_find_selected): declare.
11435
11436         * glyphs-x.c (x_tab_control_redisplay): pick tab
11437         explicitly. Re-code to use gui_item_equal_sans_selected and
11438         gui_item_list_find_selected.
11439
11440         * glyphs-x.h: add lwlib-utils.h
11441
11442         * buffer.c (Frecord_buffer): undo previous change.
11443
11444 2000-08-09  Vin Shelton  <acs@xemacs.org>
11445
11446         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11447         possible.  Create temporary files more securely.  The patch was
11448         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11449         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11450         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11451         for details.
11452
11453 2000-08-07  Ben Wing  <ben@xemacs.org>
11454
11455         * getloadavg.c: remove duplicate (and windows-breaking)
11456         includes of fcntl.h and sys/file.h.
11457
11458         * nt.c: remove duplicate getloadavg() definition.
11459
11460         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11461         encodings.
11462
11463 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11464
11465         * eval.c (function_argcount): If function needs to be autoloaded
11466         actually use the loaded definition.
11467         GCPRO function.
11468
11469 2000-08-05  Ben Wing  <ben@xemacs.org>
11470
11471         * getloadavg.c: add prototype for getloadavg().  remove
11472         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11473         of the code).  remove duplicate header includes.
11474
11475         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11476
11477         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11478         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11479         useful load average.
11480
11481         * alloc.c (reinit_alloc_once_early): removed references to
11482         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11483         the lisp vars are the only things referencing the malloc_sbrk_*
11484         vars, and they were already if 0'd out.  these vars only exist
11485         in the older malloc.c, which is basically unused, and they're
11486         only for informational purposes.
11487
11488         * m\*.h: removed useless VIRT_ADDR_VARIES.
11489
11490         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11491
11492 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11493
11494         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11495         color if the image is a mono pixmap.
11496
11497 2000-07-30  Ben Wing  <ben@xemacs.org>
11498
11499         * Makefile.in.in (release):
11500         Remove stray @.
11501
11502         * buffer.c (directory_is_current_directory):
11503         * dired-msw.c (mswindows_get_files):
11504         * dired.c:
11505         * dired.c (Fdirectory_files):
11506         * dired.c (file_name_completion_stat):
11507         * dired.c (Ffile_attributes):
11508         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11509         preprocessor tricks, to avoid problems on some machines
11510         (e.g. SCO).
11511
11512         * callproc.c (egetenv): GC docs.
11513
11514         * console-msw.h:
11515         * console-msw.h (struct mswindows_dialog_id):
11516         * lrecord.h (lrecord_type):
11517         New object for use with MSW dialogs.
11518
11519         * console.h (struct console_methods):
11520         New enable/disable frame methods, for proper modal dialogs.
11521
11522         * device-msw.c (msprinter_default_printer): Fix to follow
11523         proper Mule conventions.
11524
11525         * device-msw.c:
11526         * device-msw.c (signal_open_printer_error):
11527         * device-msw.c (msprinter_init_device):
11528         * device-msw.c (ensure_not_printing):
11529         * device-msw.c (plist_get_margin):
11530         * device-msw.c (Fmsprinter_select_settings):
11531         * device-msw.c (finalize_devmode):
11532         * device-msw.c (Fmsprinter_settings_despecialize):
11533         * device-msw.c (signal_enum_priner_error):
11534         * extents.c (decode_extent):
11535         * extents.c (decode_map_extents_flags):
11536         * extents.c (decode_extent_at_flag):
11537         * extents.c (Fextent_at):
11538         * extents.c (Fextents_at):
11539         * extents.c (symbol_to_glyph_layout):
11540         [[[[2]]]] Use structured errors.
11541
11542         * dialog-msw.c:
11543         * dialog-msw.c (mswindows_is_dialog_msg):
11544         * dialog-msw.c (mark_mswindows_dialog_id):
11545         * dialog-msw.c (dialog_proc):
11546         * dialog-msw.c (handle_question_dialog_box):
11547         * dialog-msw.c (syms_of_dialog_mswindows):
11548         Define new object to clean up marking; use it as a dialog identifier.
11549         Call new delete-dialog-box-hook.
11550
11551         * dialog-x.c (dbox_selection_callback):
11552         * dialog-x.c (dbox_descriptor_to_widget_value):
11553         * dialog-x.c (x_make_dialog_box_internal):
11554         Call new delete-dialog-box-hook.
11555         Return an id.
11556
11557         * dialog.c:
11558         * dialog.c (syms_of_dialog):
11559         * dialog.c (vars_of_dialog):
11560         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11561
11562         * eval.c:
11563         * eval.c (signal_call_debugger):
11564         when noninteractive, output stack traces on the console instead
11565         of in a (never-seen) buffer.
11566
11567         * eval.c (signal_type_error):
11568         * eval.c (invalid_argument_2):
11569         * lisp.h:
11570         new funs for use w/structured errors.
11571
11572         * event-Xt.c:
11573         * event-Xt.c (x_to_emacs_keysym):
11574         * event-Xt.c (describe_event):
11575         * event-Xt.c (emacs_Xt_event_handler):
11576         * event-Xt.c (vars_of_event_Xt):
11577         * event-msw.c:
11578         * event-msw.c (mswindows_wnd_proc):
11579         * event-msw.c (vars_of_event_mswindows):
11580         rename {x,mswindows}-debug-events to debug-{}-events for
11581         consistency with other debug-foo variables.
11582
11583         * event-stream.c:
11584         document next-event more clearly.
11585
11586         * fileio.c (Ffile_name_directory):
11587         * fileio.c (Ffile_name_nondirectory):
11588         * fileio.c (Funhandled_file_name_directory):
11589         * fileio.c (file_name_as_directory):
11590         * fileio.c (Ffile_name_as_directory):
11591         * fileio.c (directory_file_name):
11592         * fileio.c (Fdirectory_file_name):
11593         * fileio.c (Fmake_temp_name):
11594         * fileio.c (Ffile_truename):
11595         * fileio.c (Fsubstitute_in_file_name):
11596         * fileio.c (expand_and_dir_to_file):
11597         * fileio.c (barf_or_query_if_file_exists):
11598         * fileio.c (check_executable):
11599         * fileio.c (Ffile_exists_p):
11600         * fileio.c (Ffile_writable_p):
11601         * fileio.c (Ffile_directory_p):
11602         * fileio.c (Ffile_regular_p):
11603         * fileio.c (Ffile_modes):
11604         * fileio.c (Ffile_newer_than_file_p):
11605         * fileio.c (Fverify_visited_file_modtime):
11606         * fileio.c (Fset_visited_file_modtime):
11607         * fileio.c (auto_save_1):
11608         (1). (2).
11609         fix up gcpro's.
11610
11611         * frame-msw.c:
11612         * frame-msw.c (mswindows_init_frame_1):
11613         * frame-msw.c (mswindows_enable_frame):
11614         * frame-msw.c (error_frame_unsizable):
11615         * frame-msw.c (msprinter_init_frame_1):
11616         * frame-msw.c (msprinter_init_frame_3):
11617         * frame-msw.c (console_type_create_frame_mswindows):
11618         (2).
11619         implement new enable/disable frame methods.
11620
11621         * frame-x.c:
11622         * frame-x.c (x_enable_frame):
11623         * frame-x.c (console_type_create_frame_x):
11624         implement new enable/disable frame methods.
11625
11626         * frame.c:
11627         * frame.c (Fdisable_frame):
11628         * frame.c (syms_of_frame):
11629         * frame.h (struct frame):
11630         implement new enable/disable frame methods/functions.
11631
11632         * general-slots.h:
11633         add initial-focus.
11634
11635         * glyphs-msw.c (mswindows_widget_instantiate):
11636         comment that initial-focus should be implemented.
11637
11638         * glyphs-widget.c:
11639         * glyphs-widget.c (check_valid_instantiator):
11640         * glyphs-widget.c (check_valid_orientation):
11641         * glyphs-widget.c (check_valid_tab_orientation):
11642         * glyphs-widget.c (check_valid_justification):
11643         * glyphs-widget.c (check_valid_border):
11644         * glyphs-widget.c (check_valid_callback):
11645         * glyphs-widget.c (check_valid_int_or_function):
11646         * glyphs-widget.c (check_valid_string_or_vector):
11647         * glyphs-widget.c (check_valid_item_list_1):
11648         * glyphs-widget.c (widget_validate):
11649         * glyphs-widget.c (combo_box_validate):
11650         * glyphs-widget.c (widget_instantiate):
11651         * glyphs-widget.c (syms_of_glyphs_widget):
11652         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11653         * glyphs-widget.c (image_instantiator_combo_box):
11654         * glyphs-widget.c (image_instantiator_scrollbar):
11655         * glyphs-widget.c (image_instantiator_tab_control):
11656         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11657         (2).
11658         support (unimplemented) keyword initial-focus.
11659         reindent long macros.
11660
11661         * glyphs-x.c (x_redisplay_widget):
11662         * glyphs-x.c (x_button_instantiate):
11663         * glyphs-x.c (x_button_redisplay):
11664         * glyphs-x.c (x_progress_gauge_instantiate):
11665         * glyphs-x.c (x_edit_field_instantiate):
11666         * glyphs-x.c (x_combo_box_instantiate):
11667         * glyphs-x.c (x_tab_control_instantiate):
11668         * glyphs-x.c (x_label_instantiate):
11669         * gui-x.c:
11670         * gui-x.c (button_item_to_widget_value):
11671         * gui-x.c (gui_items_to_widget_values_1):
11672         * gui-x.c (gui_item_children_to_widget_values):
11673         * gui-x.c (gui_items_to_widget_values):
11674         * gui-x.h:
11675         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11676         add new flag to gui-parsing routines to indicate whether
11677         accelerator specs should be supported.
11678
11679         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11680
11681         * glyphs.h (struct Lisp_Image_Instance):
11682         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11683         add initial-focus flag.
11684
11685         * gui.c:
11686         * gui.c (syms_of_gui):
11687         * gui.c (vars_of_gui):
11688         clean up menu-no-selection-hook.
11689
11690         * gui.h:
11691         support delete-dialog-box-hook.
11692
11693         * lread.c (Fload_internal):
11694         * lread.c (locate_file_in_directory_mapper):
11695         (1).
11696
11697         * lrecord.h:
11698         * lrecord.h (struct toolbar_button):
11699         * lrecord.h (syms_of_toolbar):
11700         document how to create a new object.
11701
11702         * menubar-msw.c (mswindows_char_is_accelerator):
11703         may be called on frames w/o menus.
11704
11705         * menubar.c (vars_of_menubar):
11706         clean up :filter docs.
11707
11708         * nt.c (readdir):
11709         * ntproc.c:
11710         (1).
11711
11712         * process-nt.c:
11713         * process-nt.c (validate_signal_number):
11714         * process-nt.c (signal_cannot_launch):
11715         * process-nt.c (nt_create_process):
11716         * process-nt.c (nt_send_process):
11717         * process-nt.c (nt_kill_child_process):
11718         * process-nt.c (nt_open_network_stream):
11719         * process-nt.c (syms_of_process_nt):
11720         (2).
11721         delete quote-handling.  call new lisp code that does it better.
11722
11723         * process-unix.c (connect_to_file_descriptor):
11724         * process-unix.c (allocate_pty):
11725         * process-unix.c (unix_send_process):
11726         * process-unix.c (unix_kill_child_process):
11727         * process-unix.c (unix_open_network_stream):
11728         * process-unix.c (unix_open_multicast_group):
11729         (1). (2).
11730
11731         * process.c:
11732         * process.c (Fstart_process_internal):
11733         (2).  need to canonicalize process path even if absolute.
11734
11735         * select-msw.c (symbol_to_ms_cf):
11736         * select-msw.c (ms_cf_to_symbol):
11737         * select-msw.c (cf_is_autofreed):
11738         * select-msw.c (mswindows_destroy_selection):
11739         * select.c:
11740         * select.c (syms_of_select):
11741         * select.h:
11742         support dibv5, fix bugs. (from Mike Alexander)
11743
11744         * select.c (Fget_selection_internal):
11745         * select.c (select_convert_out):
11746
11747         * sysdep.c:
11748         * sysdep.c (xemacs_stat):
11749         renamed.
11750
11751         * sysdep.c (mkdir):
11752         * sysdep.c (rmdir):
11753         but keep original stat() here because we provide encapsulation
11754         around these funs.
11755
11756         * sysfile.h:
11757         * sysfile.h (fstat):
11758         remove stat garbage.
11759
11760         * syswindows.h:
11761         fix X/MSW conflict.
11762         don't include tchar.h.  it's inappropriate because it makes
11763         compile-time distinctions when we want runtime distinctions.
11764         (we provide our own tchar replacements)
11765
11766         * toolbar.c:
11767         use default object printer for toolbar-button.
11768
11769         * unexcw.c:
11770         make sure we don't encapsulate.
11771
11772         * window.c (vars_of_window):
11773         emphasize that temp-buffer-show-hook is obsolete.
11774
11775 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11776
11777         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11778         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11779
11780         * events.c (Fevent_timestamp_lessp):
11781         Not 64-bit clean.  Use EMACS_INT, not int.
11782
11783 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11784
11785         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11786         unsigned int and changed the last enum to
11787         lrecord_type_last_built_in_type.
11788         (lrecord_implementations_table): changed prototype to know how
11789         long the array is supposed to be.
11790         (lrecord_type_count): new unsigned int to keep track of the
11791         current number of lisp lrecord types.
11792         (DEFINE_EXTERNAL_LRECORD):
11793         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11794         dynamic-modules to declare new lisp types. They are the same
11795         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11796         int for each new type, and increment lrecord_type_count by 1.
11797
11798         * alloc.c (lrecord_implementations_table): Changed to reference
11799         lrecord_type_last_built_in_type for the size of the array.
11800         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11801
11802 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11803
11804         * glyphs.h (check_valid_item_list): Renamed from
11805         check_valid_item_list_1.
11806
11807 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11808
11809         * select.c (Qselect_coerce): New.
11810         * select.c (Vselection_coercion_alist): New.
11811         * select.c (syms_of_select): Declare.
11812         * select.c (get-selection-internal): Use it.
11813         Use the new select-coerce functionality.
11814
11815         * select.c (select_coerce): New.
11816         * select.h (select_coerce): Declare.
11817         New function to coerce one type of data into another.
11818
11819 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11820
11821         * callproc.c (Fcall_process_internal):
11822         (Fcall_process_internal):
11823         * process-unix.c (unix_create_process):
11824         Save and restore the value of errno, so that error messages are accurate.
11825
11826 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11827
11828         * elhash.c (print_hash_table):
11829         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11830         Prettify docstrings and indentation.
11831
11832 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11833
11834         * window.c (Fwindow_pixel_edges): Subtract frame border and
11835         gutter size.
11836
11837 2000-07-31  Andy Piper  <andy@xemacs.org>
11838
11839         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11840         will acknowledge the change.
11841
11842         * glyphs.h: declare tab_control_order_only_changed.
11843
11844         * glyphs-x.c (x_tab_control_redisplay): use
11845         tab_control_order_only_changed.
11846
11847         * glyphs-widget.c (tab_control_order_only_changed): new function.
11848
11849         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11850         tab_control_order_only_changed.
11851
11852         * gui.c (gui_item_equal_sans_selected): new function.
11853         (gui_item_equal): use it.
11854
11855         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11856         :properties in favor of :items..
11857
11858         * glyphs-widget.c (check_valid_item_list): rename from
11859         check_valid_item_list_1.
11860         (check_valid_item_list_1): renamed.
11861         (combo_box_validate): deprecate :properties in favor of :items.
11862         (widget_instantiate): ditto.
11863         (tab_control_update): ditto.
11864         (image_instantiator_combo_box): ditto.
11865         (image_instantiator_tree_view): ditto.
11866         (image_instantiator_tab_control): ditto.
11867         (layout_post_instantiate): remove dead code.
11868
11869         * print.c (debug_print_no_newline): only write to debugger if in
11870         WIN32_NATIVE.
11871
11872         * elhash.c (Fmake_hash_table): update doc string.
11873
11874         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11875         messages whilst in GC. This at least stops XEmacs crashing but has
11876         the potential for wierd behaviour.
11877
11878 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11879
11880         * config.h.in:
11881         Make existence of s&m files optional.
11882
11883         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11884         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11885         * s/gnu.h: Remove HAVE_GETLOADAVG.
11886         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11887         * s/sol2.h: Remove HAVE_GETLOADAVG.
11888         * lisp.h: Remove getloadavg() declaration.
11889         * fns.c:
11890         Include <sys/loadavg.h> if available.
11891         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11892         * config.h.in:  Group together getloadavg()-related macros.
11893         Use only configure-time tests to detect getloadavg().
11894
11895 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11896
11897         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11898
11899 2000-07-25  Andy Piper  <andy@xemacs.org>
11900
11901         * syswindows.h: add tchar.h for native builds.
11902
11903         * frame.c (syms_of_frame): remove set-glyph-image.
11904
11905         * general-slots.h: add Qset_glyph_image.
11906
11907         * glyphs-widget.c (layout_update): add domain arg to
11908         set-glyph-image.
11909         (syms_of_glyphs_widget): remove set-glyph-image.
11910
11911 2000-07-23  Ben Wing  <ben@xemacs.org>
11912
11913         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11914         Vpopup_frame_list.
11915
11916 2000-07-22  Andy Piper  <andy@xemacs.org>
11917
11918         * symsinit.h: add syms_of_win32().
11919
11920         * gui-msw.c (syms_of_gui_mswindows): remove
11921         Fmswindows_shell_execute.
11922         (Fmswindows_shell_execute): moved to win32.c.
11923
11924         * emacs.c (main_1): add syms_of_win32 ().
11925
11926         * win32.c (init_potentially_nonexistent_functions): rewrite in
11927         compiler-friendly terms.
11928         (Fmswindows_shell_execute): move here from gui-msw.c.
11929         (syms_of_win32): new.
11930
11931         * device-msw.c (Fmswindows_printer_list): clean up args to
11932         EnumPrinters.
11933         Don't include tchar under cygwin or mingw.
11934         (msprinter_default_printer): make cygwin-friendly.
11935
11936 2000-07-21  Andy Piper  <andy@xemacs.org>
11937
11938         * glyphs-widget.c (image_instantiator_tree_view): use tab
11939         control's update function.
11940         (layout_property): new function. Retrieve items.
11941
11942         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11943         function. Re-populate the tree view from the pending items.
11944
11945         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11946         is designated the parent if the domain is an image instance. This
11947         is needed so that dirtiness can be cascade up the hierarchy and
11948         thus for layout children to be redisplayed correctly.
11949         (allocate_image_instance): rename glyph -> parent.
11950
11951         * redisplay.h: change redisplay_output_layout signature.
11952
11953         * redisplay-msw.c (mswindows_output_display_block): use domain
11954         arg.
11955
11956         * redisplay-x.c (x_output_display_block): use domain arg.
11957
11958 2000-07-10  Andy Piper  <andy@xemacs.org>
11959
11960         * window.c (Fset_window_configuration): add comment.
11961
11962         * redisplay-output.c (compare_runes):
11963         (redisplay_output_subwindow): redisplay rather than update subwindow.
11964         (redisplay_output_layout): ditto.
11965
11966         * redisplay-msw.c (mswindows_frame_output_end):
11967         (mswindows_frame_output_end): make defer window pos optional.
11968
11969         * lisp.h: add Flast.
11970
11971         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11972         normalize method. Change update method to be for changed
11973         instantiators. Add redisplay method. Change signature of layout
11974         method.
11975         (struct Lisp_Image_Instance): add instantiator.
11976         (IMAGE_INSTANCE_INSTANTIATOR): new.
11977         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11978         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11979         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11980
11981         * glyphs.c:
11982         (find_instantiator_differences): new function.
11983         (Fset_instantiator_property): new convenience function.
11984         (check_image_instance_structure): strictly check for vector
11985         instantiators.
11986         (normalize_image_instantiator): make non-static.
11987         (instantiate_image_instantiator): pass on dest_mask and use new
11988         signatures for image_instance_layout and friends.
11989         (mark_image_instance): mark the instantiator. Mark the subwindow
11990         face not the widget face.
11991         (image_instance_equal): add instantiator.
11992         (image_instance_hash): ditto.
11993         (allocate_image_instance): ditto.
11994         (Fset_image_instance_property): removed.
11995         (Fimage_instance_file_name): ditto.
11996         (Fcolorize_image_instance): ditto.
11997         (image_instance_layout): add offsets to be set.
11998         (update_image_instance): new function. update an image instance
11999         from its changed instantiator.
12000         (inherit_normalize): add dest_mask.
12001         (xbm_normalize): ditto.
12002         (xface_normalize): ditto.
12003         (xpm_normalize): ditto.
12004         (text_update): set_property -> update.
12005         (image_instantiate): use the glyph identity as a hash key, not the
12006         instantiator.
12007         (glyph_width): use new image_instance_layout signature.
12008         (glyph_ascent): ditto.
12009         (glyph_descent): ditto.
12010         (glyph_height): ditto.
12011         (glyph_query_geometry): ressurrect.
12012         (glyph_layout): ditto.
12013         (redisplay_subwindow): update -> redisplay.
12014         (syms_of_glyphs): add Fset_instantiator_property.
12015         (image_instantiator_format_create): set_property -> update.
12016
12017         * glyphs-x.c:
12018         (autodetect_normalize): add dest_maks to signature.
12019         (x_redisplay_subwindow): update -> redisplay.
12020         (x_redisplay_widget): ditto.
12021         (x_button_redisplay): ditto.
12022         (x_progress_gauge_redisplay): ditto.
12023         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
12024         stacking order.
12025         (console_type_create_glyphs_x): update -> redisplay.
12026         (image_instantiator_format_create_glyphs_x): ditto.
12027
12028         * glyphs-widget.c:
12029         (check_valid_instantiator): disallow glyphs in the instantiator,
12030         they must now be vectors.
12031         (check_valid_instantiator_list): ditto.
12032         (glyph_instantiator_to_glyph): use internal symbol rather than
12033         intern.
12034         (widget_update): renamed from widget_set_property. Call cascaded
12035         update methods.
12036         (redisplay_widget): renamed from update_widget.
12037         (widget_layout): image_instance_layout now takes position as well
12038         as size.
12039         (widget_normalize): ditto.
12040         (widget_instantiate): ditto.
12041         (tab_control_query_geometry) ditto.:
12042         (tab_control_update): renamed from tab_control_set_property.
12043         (progress_gauge_update): set_property -> update.
12044         (layout_normalize): rewrite so that child instantiators are
12045         normalized also.
12046         (layout_update): new function. Create glyphs from the normalized
12047         children and cope with any other layout keywords. We do not
12048         instantiate children here that will be take care of by
12049         redisplay_output_layout.
12050         (layout_instantiate): call layout_update and not much else.
12051         (layout_post_instantiate): not sure whether this is needed
12052         anymore.
12053         (layout_query_geometry): query glyph geometry rather than
12054         image_instance geometry.
12055         (layout_layout): set offsets from pass in parameters. Use glyph
12056         geometry and layout functions rather than image instance ones.
12057         (native_layout_layout): ditto.
12058         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
12059         (image_instantiator_widget): set_property -> update.
12060         (image_instantiator_buttons): ditto.
12061         (image_instantiator_progress_guage): ditto.
12062         (image_instantiator_tab_control): ditto.
12063         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
12064         (image_instantiator_layout): add update method.
12065
12066         * glyphs-msw.c (bmp_normalize):
12067         (mswindows_resource_normalize): add dest_mask so that it can be
12068         proprogated by layout_normalize.
12069         (begin_defer_window_pos): make optional because it may not be the
12070         right thing to do and it introduces differences with X.
12071         (mswindows_unmap_subwindow): ditto.
12072         (mswindows_map_subwindow): ditto.
12073         (mswindows_redisplay_subwindow): renamed from
12074         mswindows_update_subwindow.
12075         (mswindows_redisplay_widget): ditto.
12076         (mswindows_button_redisplay): renamed from
12077         mswindows_button_update. Update is now what the instantiation
12078         function does for a changed instantiator.
12079         (mswindows_progress_gauge_instantiate): set the progress value
12080         here if appropriate.
12081         (mswindows_tab_control_redisplay): cope with re-ordering of the
12082         members of the tab widget by simply selecting the new top
12083         widget. This makes things appear ok if you click on a tab.
12084         (mswindows_combo_box_instantiate): image_instance_layout now takes
12085         position as well as size.
12086         (mswindows_progress_gauge_redisplay): renamed from
12087         mswindows_progress_gauge_update.
12088         (console_type_create_glyphs_mswindows): fix update -> redisplay.
12089         (image_instantiator_format_create_glyphs_mswindows): ditto.
12090
12091         * glyphs-eimage.c (jpeg_normalize):
12092         (gif_normalize):
12093         (png_normalize):
12094         (tiff_normalize): add dest_mask so that it can be proprogated by
12095         layout_normalize.
12096
12097         * elhash.c:
12098         (print_hash_table):
12099         (hash_table_weakness_validate):
12100         (decode_hash_table_weakness):
12101         (Fhash_table_weakness):
12102         (Fhash_table_type):
12103         (syms_of_elhash): use Ben's naming scheme for hashtable types..
12104
12105         * console.h (struct console_methods): move update_* to
12106         redisplay_*.
12107
12108 2000-07-20  Ben Wing  <ben@xemacs.org>
12109
12110         * *.[ch] (XSETOBJ): remove unused middle argument.
12111         lisp-disunion.h: correct wrap_object() to one argument.
12112
12113 2000-07-15  Ben Wing  <ben@xemacs.org>
12114
12115         * s/cygwin32.h:
12116         * s/cygwin32.h (CYGWIN_CONV_PATH):
12117         Add missing logb prototype for v1.1.
12118         Use post-b20 names and alias to pre-b20 names when pre-b20.
12119
12120         * s/windowsnt.h: [5].
12121
12122 2000-07-15  Ben Wing  <ben@xemacs.org>
12123
12124         * Makefile.in.in (x_objs):
12125         * Makefile.in.in (sheap_objs):
12126         * Makefile.in.in (objs):
12127         added win32.o, cosmetic cleanups.
12128
12129         * alloc.c (Fmake_byte_code):
12130         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12131         etc. macros which declare their own args now.
12132
12133         * alloc.c (syms_of_alloc):
12134         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12135
12136         * buffer.c:
12137         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12138
12139         * buffer.c (Fget_file_buffer):
12140         Fixed GCPRO problem.
12141
12142         * buffer.c (get_truename_buffer):
12143         Fixed comment about GC checking.
12144
12145         * buffer.c (syms_of_buffer):
12146         Undeclared those dedicated frame funs.
12147         [2].
12148
12149         * buffer.h:
12150         Define convenience macros for internal/external conversions.
12151         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12152         and Qenvironment_variable_encoding for cleaner code.
12153
12154         * bufslots.h:
12155         Remove dedicated-frame; in lisp.
12156
12157         * bytecode.c (funcall_compiled_function):
12158         [1].
12159
12160         * bytecode.c (syms_of_bytecode):
12161         [2].
12162
12163         * console-msw.c:
12164         * console-msw.c (mswindows_show_console): Rewrote.
12165
12166         * console-msw.c (Fmswindows_debugging_output): New.
12167         Sends to OutputDebugString (special MSWin debugger interface).
12168
12169         * console-msw.c (Fmswindows_message_box):
12170         Fixed stupid bugs so it works when called from kill-emacs.
12171
12172         * console-msw.c (syms_of_console_mswindows):
12173         Declare Fmswindows_debugging_output.
12174
12175         * console-msw.h:
12176         New MSWin prototypes.
12177
12178         * console-msw.h (struct mswindows_frame):
12179         New entry last-click-mods for improved button-modifier support.
12180
12181         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12182         New struct entry `popup' with corresponding accessor.
12183
12184         * console-x.c:
12185         * console-x.c (split_up_display_spec):
12186         * console-x.c (get_display_arg_connection):
12187         * console-x.c (x_semi_canonicalize_console_connection):
12188         * console-x.c (x_canonicalize_device_connection):
12189         [[[6]]]: Change char to more specific type.
12190         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12191
12192         * console-x.c (x_semi_canonicalize_console_connection):
12193         * console-x.c (x_canonicalize_device_connection):
12194         [[[9]]]: Fix up error signalling to use new structured error system.
12195
12196         * console-x.h:
12197         [[[4]]]: Define codesys aliases:
12198         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12199         Qx_color_name_encoding, Qx_display_name_encoding.
12200
12201         * console.h (struct console_methods):
12202         New method make_dialog_box_internal supersedes older
12203         popup_dialog_box method.
12204
12205         * data.c:
12206         Define many new errors, part of new structured errors.
12207
12208         * data.c (init_errors_once_early):
12209         * data.c (syms_of_data):
12210         [2].
12211
12212         * device-msw.c (mswindows_init_device):
12213         [[[5]]]: Cleanup to support NT 3.51.
12214
12215         * device-msw.c (decode_devmode): Cleanup.
12216
12217         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12218         * device-msw.c (mswindows_handle_print_dialog_box):
12219         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12220         * device-msw.c (syms_of_device_mswindows):
12221         Delete the dialog box primitives recently introduced by Kirill and
12222         instead interface to general dialog box interface.
12223
12224         * device-x.c:
12225         * device-x.c (compute_x_app_name):
12226         * device-x.c (x_init_device):
12227         * device-x.c (Fx_valid_keysym_name_p):
12228         * device-x.c (Fx_set_font_path):
12229         [6].
12230         [7].
12231
12232         * device.h (wrap_device): New.
12233         First of its kind; meant to replace XSETDEVICE.
12234
12235         * dialog-msw.c: Many file-dialog symbols.
12236
12237         * dialog-msw.c (mswindows_register_popup_frame): New.
12238         * dialog-msw.c (mswindows_is_dialog_msg): New.
12239         For supporting kbd traversal in dialog boxes.
12240
12241         * dialog-msw.c (dialog_proc):
12242         Support hitting ESC in dialogs.
12243
12244         * dialog-msw.c (struct):
12245         Common dialog box errors.
12246
12247         * dialog-msw.c (handle_file_dialog_box): New.
12248         Add file dialog code.
12249
12250         * dialog-msw.c (handle_question_dialog_box):
12251         Redo existing code to support new question dialog syntax.
12252
12253         * dialog-msw.c (console_type_create_dialog_mswindows):
12254         We support new dialog console method.
12255
12256         * dialog-msw.c (syms_of_dialog_mswindows):
12257         * dialog-msw.c (vars_of_dialog_mswindows):
12258         New file dialog symbols, vars.
12259
12260         * dialog-x.c:
12261         * dialog-x.c (maybe_run_dbox_text_callback):
12262         * dialog-x.c (dbox_descriptor_to_widget_value):
12263         * dialog-x.c (x_make_dialog_box_internal):
12264         * dialog-x.c (console_type_create_dialog_x):
12265         Mule-ize entire file.
12266         Redo to support question dialog syntax.
12267         [6].
12268
12269         * dialog.c:
12270         * dialog.c (Fmake_dialog_box_internal):
12271         * dialog.c (syms_of_dialog):
12272         Kill old popup-dialog-box, replace with new primitive.
12273         Just call device method or signal error.
12274
12275         * eldap.c (Fldap_open):
12276         * eldap.c (Fldap_search_basic):
12277         * eldap.c (Fldap_add):
12278         * eldap.c (Fldap_modify):
12279         [1].
12280         [7].
12281
12282         * emacs.c:
12283         * emacs.c (make_arg_list_1):
12284         * emacs.c (make_arg_list):
12285         Mule-ize call to dll_init().
12286         [6].
12287         [8].
12288
12289         * emacs.c (make_argc_argv):
12290         * emacs.c (free_argc_argv):
12291         * emacs.c (init_cmdargs):
12292         * emacs.c (main_1):
12293         * emacs.c (Fkill_emacs):
12294         * emacs.c (Fdump_emacs):
12295         Update comments about what can be used in syms_* etc.
12296         Call init_win32() when necessary.
12297         Fix up MS Win dialog box in kill-buffer to actually work right.
12298         [7].
12299
12300         * eval.c:
12301         * eval.c (For):
12302         * eval.c (Fand):
12303         * eval.c (Fprogn):
12304         * eval.c (Fprog1):
12305         * eval.c (Fprog2):
12306         * eval.c (FletX):
12307         * eval.c (Flet):
12308         * eval.c (condition_case_3):
12309         * eval.c (Feval):
12310         * eval.c (function_argcount):
12311         * eval.c (funcall_lambda):
12312         [1].
12313
12314         * eval.c (type_error): New.
12315         * eval.c (maybe_type_error): New.
12316         * eval.c (continuable_type_error): New.
12317         * eval.c (maybe_continuable_type_error): New.
12318         * eval.c (type_error_with_frob): New.
12319         * eval.c (maybe_type_error_with_frob): New.
12320         * eval.c (continuable_type_error_with_frob): New.
12321         * eval.c (maybe_continuable_type_error_with_frob): New.
12322         New functions for use with structured errors.
12323
12324         * event-Xt.c:
12325         * event-Xt.c (x_event_to_emacs_event):
12326         Buttons are now modifiers too.
12327
12328         * event-Xt.c (emacs_Xt_current_event_timestamp):
12329         Implement new event method.
12330         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12331
12332         * event-msw.c:
12333         * event-msw.c (ntpipe_shove_writer): [5].
12334         * event-msw.c (mswindows_enqueue_mouse_button_event):
12335         * event-msw.c (mswindows_drain_windows_queue):
12336         * event-msw.c (mswindows_wnd_proc): [7].
12337         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12338         * event-msw.c (mswindows_modifier_state):
12339         Throughout: support new button modifiers.
12340
12341         * event-msw.c (emacs_mswindows_current_event_timestamp):
12342         Implement new event method.
12343         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12344
12345         * event-stream.c:
12346         * event-stream.c (event_stream_current_event_timestamp): New.
12347         * event-stream.c (maybe_kbd_translate): New functionality.
12348         * event-stream.c (vars_of_event_stream):
12349         Document new kbd-translate-table functionality.
12350
12351         * event-stream.c (Fcurrent_event_timestamp): New.
12352         New primitive for use in fabricated events.
12353         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12354
12355         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12356
12357         * events.c:
12358         * events.c (Fmake_event):
12359         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12360         [1].
12361         [9].
12362
12363         * events.c (format_event_object): fix gcc warnings.
12364
12365         * events.c (Fevent_timestamp): Document new primitives.
12366
12367         * events.c (TIMESTAMP_HALFSPACE): New.
12368
12369         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12370         comparing timestamps correctly (half-space algorithm).
12371
12372         * events.c (Fevent_modifier_bits): Doc fix.
12373
12374         * events.c (Fevent_modifiers): Major doc addition.
12375         * events.c (event_x_y_pixel_internal): Typo fix.
12376         * events.c (syms_of_events): Declare new primitives.
12377
12378         * events.h:
12379         Update long comment for button modifiers, timestamps.
12380
12381         * events.h (struct event_stream):
12382         New current_event_timestamp method.
12383
12384         * extents.c:
12385         * extents.c (extent_in_region_p):
12386         * extents.c (decode_extent):
12387         * extents.c (Fset_extent_parent):
12388         * extents.c (decode_map_extents_flags):
12389         Fix gcc warnings.
12390         [9].
12391
12392         * extents.c (struct extent_at_arg):
12393         * extents.c (decode_extent_at_flag):
12394         * extents.c (extent_at_mapper):
12395         * extents.c (extent_at_bytind):
12396         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12397         * extents.c (Fextents_at): New primitive. [9].
12398         * extents.c (symbol_to_glyph_layout): [9].
12399         Support new primitive `extents-at'.
12400
12401
12402         * extents.c (get_text_property_bytind):
12403         extent_at_bytind has another arg.
12404         [9].
12405
12406         * extents.c (syms_of_extents): New primitive.
12407
12408         * file-coding.c (Fmake_coding_system): [1].
12409         * file-coding.c (subsidiary_coding_system): fix gcc warning
12410         * file-coding.c (syms_of_file_coding): [2].
12411
12412         * fileio.c (Fexpand_file_name):
12413         * fileio.c (Fsysnetunam):
12414         * fileio.c (Ffile_exists_p):
12415         * fileio.c (Ffile_executable_p):
12416         * fileio.c (Fverify_visited_file_modtime):
12417         Clean up GCPROing.
12418
12419         * fileio.c (syms_of_fileio): [2].
12420
12421         * filelock.c (lock_file_1):
12422         * filelock.c (current_lock_owner):
12423         * filelock.c (lock_if_free):
12424         * filelock.c (lock_file):
12425         * filelock.c (unlock_file):
12426         Clean up GCPROing.
12427
12428         * fns.c (concat): Fix gcc warning.
12429
12430         * fns.c (Fmember):
12431         * fns.c (Fold_member):
12432         * fns.c (Fmemq):
12433         * fns.c (Fold_memq):
12434         * fns.c (memq_no_quit):
12435         * fns.c (Fassoc):
12436         * fns.c (Fold_assoc):
12437         * fns.c (Fassq):
12438         * fns.c (Fold_assq):
12439         * fns.c (assq_no_quit):
12440         * fns.c (Frassoc):
12441         * fns.c (Fold_rassoc):
12442         * fns.c (Frassq):
12443         * fns.c (Fold_rassq):
12444         * fns.c (rassq_no_quit):
12445         * fns.c (Fdelete):
12446         * fns.c (Fold_delete):
12447         * fns.c (Fdelq):
12448         * fns.c (Fold_delq):
12449         * fns.c (delq_no_quit):
12450         * fns.c (Fremassoc):
12451         * fns.c (Fremassq):
12452         * fns.c (remassq_no_quit):
12453         * fns.c (Fremrassoc):
12454         * fns.c (Fremrassq):
12455         * fns.c (remrassq_no_quit):
12456         * fns.c (Freverse):
12457         * fns.c (mapcar1):
12458         [1].
12459
12460         * frame-msw.c (mswindows_init_frame_1):
12461         * frame-msw.c (mswindows_delete_frame):
12462         Register popups with dialog code so keyboard traversing works.
12463
12464         * frame-tty.c (tty_raise_frame_no_select): [1].
12465
12466         * frame-x.c:
12467         * frame-x.c (x_set_frame_text_value):
12468         * frame-x.c (x_set_frame_properties):
12469         * frame-x.c (x_create_widgets):
12470         [7].
12471
12472         * frame.c:
12473         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12474
12475         * frame.h (wrap_frame): New.
12476         Macro like wrap_device.
12477
12478         * general.c:
12479         * general.c (SYMBOL):
12480         * general.c (syms_of_general):
12481         Major reorg.  This is now just a wrapper and symbols themselves
12482         are listed in general-slots.h.
12483
12484         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12485         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12486
12487         * glyphs-msw.c (mswindows_native_layout_instantiate):
12488         Add DS_CONTROL so keyboard traversal will work.
12489
12490         * glyphs-widget.c:
12491         * glyphs-widget.c (syms_of_glyphs_widget):
12492         Move some symbols to general-slots.h.
12493
12494         * glyphs-x.c:
12495         * glyphs-x.c (xbm_instantiate_1):
12496         * glyphs-x.c (x_xbm_instantiate):
12497         * glyphs-x.c (x_xface_instantiate):
12498         * glyphs-x.c (autodetect_instantiate):
12499         * glyphs-x.c (cursor_font_instantiate):
12500         * glyphs-x.c (x_update_widget):
12501         * glyphs-x.c (x_widget_instantiate):
12502         * glyphs.c (bitmap_to_lisp_data):
12503         * glyphs.c (pixmap_to_lisp_data):
12504         [7].
12505
12506         * glyphs.c (syms_of_glyphs):
12507         [2].
12508
12509         * gui-x.c:
12510         * gui-x.c (print_widget_value):
12511         * gui-x.c (menu_separator_style_and_to_external):
12512         * gui-x.c (add_accel_and_to_external):
12513         * gui-x.c (button_item_to_widget_value):
12514         * gui-x.c (gui_items_to_widget_values_1):
12515         * gui-x.c (gui_items_to_widget_values):
12516         * gui-x.c (syms_of_gui_x):
12517         * gui-x.c (vars_of_gui_x):
12518         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12519         [9].
12520
12521         * gui-x.h:
12522         Muleize, prototype changes matching gui-x.c.
12523
12524         * gui.c:
12525         * gui.c (separator_string_p):
12526         * gui.c (gui_item_add_keyval_pair):
12527         * gui.c (make_gui_item_from_keywords_internal):
12528         * gui.c (signal_too_long_error):
12529         * gui.c (parse_gui_item_tree_item):
12530         * gui.c (syms_of_gui):
12531         * gui.c (vars_of_gui):
12532         * gui.h:
12533         menu-no-selection-hook moved here (used by MSWin).
12534         Move some symbols to general-slots.h.
12535         [6].
12536         [9].
12537
12538         * insdel.c (get_buffer_pos_char):
12539         * insdel.c (get_buffer_range_char):
12540         Add GC comments.
12541
12542         * keymap.c (keymap_lookup_directly):
12543         * keymap.c (keymap_store):
12544         * keymap.c (ensure_meta_prefix_char_keymapp):
12545         * keymap.c (describe_map):
12546         * keymap.h:
12547         Support new button modifiers.
12548
12549         * lisp-disunion.h (wrap_object):
12550         * lisp-disunion.h (XSETOBJ):
12551         Rename make_obj to wrap_object.
12552
12553         * lisp-union.h:
12554         * lisp-union.h (make_int):
12555         * lisp-union.h (make_char):
12556         Support wrap_object.
12557
12558         * lisp.h:
12559         * lisp.h (LIST_LOOP):
12560         * lisp.h (EXTERNAL_LIST_LOOP):
12561         * lisp.h (LIST_LOOP_2):
12562         * lisp.h (EXTERNAL_LIST_LOOP_1):
12563         * lisp.h (EXTERNAL_LIST_LOOP_2):
12564         * lisp.h (EXTERNAL_LIST_LOOP_3):
12565         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12566         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12567         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12568         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12569         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12570         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12571         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12572         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12573         * lisp.h (struct Lisp_Symbol):
12574         * lisp.h (maybe_continuable_error_with_frob):
12575         Fix up section comments.
12576         Add new types for char to indicate usage.
12577         Delete symbols auto-generated from general-slots.h.
12578         Add prototypes for structured error functions.
12579         Add long comments describing looping macros and change interface
12580         so that lvalues are automatically declared.
12581         Add NO_DECLARE macro in case callers want to declare lvalues
12582         themselves.
12583
12584         * lread.c (read_syntax_error):
12585         * lread.c (continuable_read_syntax_error):
12586         * lread.c (read_structure):
12587         * lread.c (sequence_reader):
12588         * lread.c (read_list_conser):
12589         * lread.c (read_compiled_function):
12590         Rename syntax_error and continuable_syntax_error to avoid clash
12591         with same-named structured error functions.
12592
12593         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12594         * menubar-msw.c (populate_menu_add_item):
12595         * menubar-msw.c (populate_or_checksum_helper):
12596         [5].
12597         [9].
12598
12599         * menubar-x.c:
12600         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12601         Mule-ize whole file.
12602
12603         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12604
12605         * mule-charset.c (Fmake_charset):
12606         * mule-wnnfns.c (Fwnn_set_param):
12607         [1].
12608
12609         * ntproc.c (create_child):
12610         * ntproc.c (Fwin32_set_current_locale):
12611         Add comments portending doom.
12612
12613         * objects-msw.c:
12614         * objects-msw.c (old_font_enum_callback_2):
12615         * objects-msw.c (font_enum_callback_1):
12616         * objects-msw.c (mswindows_enumerate_fonts):
12617         [5].
12618
12619         * objects-x.c:
12620         * objects-x.c (allocate_nearest_color):
12621         * objects-x.c (x_parse_nearest_color):
12622         * objects-x.c (x_initialize_color_instance):
12623         * objects-x.c (x_print_color_instance):
12624         * objects-x.c (x_finalize_color_instance):
12625         * objects-x.c (x_valid_color_name_p):
12626         * objects-x.c (x_initialize_font_instance):
12627         * objects-x.c (x_print_font_instance):
12628         * objects-x.c (valid_x_font_name_p):
12629         * objects-x.c (truename_via_FONT_prop):
12630         * objects-x.c (truename_via_random_props):
12631         * objects-x.c (truename_via_XListFonts):
12632         * objects-x.c (x_font_truename):
12633         * objects-x.c (x_font_instance_truename):
12634         * objects-x.c (x_font_instance_properties):
12635         * objects-x.c (x_list_fonts):
12636         * objects-x.c (x_find_charset_font):
12637         Mule-ize entire file.
12638         [7].
12639
12640         * objects-x.h:
12641         Mule-verify.
12642
12643         * print.c:
12644         * print.c (std_handle_out_external):
12645         * print.c (debug_print_no_newline):
12646         * print.c (syms_of_print):
12647         Output to all debugger kinds in debug-print.
12648         Fix console-output code under MSWin to actually work.
12649
12650         * process-nt.c (send_signal):
12651         * process-nt.c (nt_create_process):
12652         Use newer Unicode macros.
12653
12654         * process-unix.c (unix_create_process):
12655         * process-unix.c (unix_canonicalize_host_name):
12656         * process-unix.c (unix_open_network_stream):
12657         [7].
12658
12659         * scrollbar-x.c:
12660         Mule-verify.
12661
12662         * search.c (syms_of_search):
12663         [2].
12664
12665         * select-msw.c (mswindows_destroy_selection):
12666         Use LIST_LOOP_2.
12667
12668         * select-x.c (symbol_to_x_atom):
12669         [7].
12670
12671         * select.c (syms_of_select):
12672         [2].
12673
12674         * sound.c (Fplay_sound_file):
12675         [7].
12676
12677         * specifier.c:
12678         * specifier.c (decode_specifier_type):
12679         * specifier.c (Fvalid_specifier_locale_type_p):
12680         * specifier.c (check_valid_locale_or_locale_type):
12681         * specifier.c (decode_locale):
12682         * specifier.c (decode_locale_type):
12683         * specifier.c (decode_locale_list):
12684         * specifier.c (check_valid_domain):
12685         * specifier.c (decode_specifier_tag_set):
12686         * specifier.c (Fcanonicalize_tag_set):
12687         * specifier.c (Fdefine_specifier_tag):
12688         * specifier.c (Fspecifier_tag_predicate):
12689         * specifier.c (check_valid_inst_list):
12690         * specifier.c (check_valid_spec_list):
12691         * specifier.c (decode_how_to_add_specification):
12692         * specifier.c (check_modifiable_specifier):
12693         * specifier.c (specifier_add_spec):
12694         * specifier.c (boolean_validate):
12695         * specifier.c (display_table_validate):
12696         [9].
12697
12698         * specifier.c (syms_of_specifier):
12699         Move some symbols to general-slots.h.
12700         [2].
12701
12702         * symbols.c:
12703         * symbols.c (Fmapatoms):
12704         * symbols.c (Fapropos_internal):
12705         Add GCPROs.
12706
12707         * symbols.c (set_default_buffer_slot_variable):
12708         * symbols.c (set_default_console_slot_variable):
12709         [1].
12710
12711         * symbols.c (defsymbol_massage_name_1):
12712         * symbols.c (defkeyword_massage_name):
12713         * symbols.c (deferror_1):
12714         * symbols.c (deferror):
12715         * symbols.c (deferror_massage_name_and_message):
12716         * symeval.h:
12717         * symeval.h (DEFSYMBOL):
12718         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12719
12720         * symbols.c (syms_of_symbols):
12721         [2].
12722
12723         * symsinit.h:
12724         * symsinit.h (init_win32): New.
12725         Also new is syms_of_dialog_mswindows.
12726
12727         * syswindows.h:
12728         Add new Unicode macros, missing Cygwin wide-char functions,
12729         convenience conversion macros for Qmswindows_tstr, macros for
12730         encapsulating required MSWin <-> Cygwin filename conversions,
12731         prototype for dynamically-extracted (not in NT 3.51) functions.
12732
12733         * toolbar-x.c:
12734         Mule-verify.
12735
12736         * tooltalk.c (Fadd_tooltalk_message_arg):
12737         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12738         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12739         [7].
12740
12741         * tooltalk.c (syms_of_tooltalk):
12742         [2].
12743
12744         * unexnt.c:
12745         * unexnt.c (unexec):
12746         Fix up headers, declaration of unexec() to be more standard.
12747
12748 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12749
12750         * offix.h: Revert change to guard macros - they're used in offix.c!
12751
12752 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12753
12754         * lisp.h: Defsubred Fdelete.
12755
12756         * console-msw.h:  (msprinter_default_printer): Added.
12757
12758         * console-msw.c (msprinter_canonicalize_console_connection):
12759         (msprinter_canonicalize_device_connection): Added.
12760
12761         * device-msw.c (msprinter_default_printer):
12762         (Fmswingows_get_default_printer):
12763         (signal_enum_priner_error):
12764         (Fmswingows_printer_list): Added.
12765
12766 2000-07-19  Martin Buchholz <martin@xemacs.org>
12767
12768         * XEmacs 21.2.35 is released.
12769
12770 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12771
12772         * select-x.c (x_handle_selection_request):
12773         Text selected in xemacs and pasted into xterm failed to appear.
12774         Spelling fixes and cosmetic changes.
12775
12776 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12777
12778         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12779         XEmacs frame (fix for doubling chars in dialog boxes).
12780
12781 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12782
12783         * select.c (select_convert_in, select_convert_out):
12784         Don't call intern() every time.
12785
12786         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12787         * select.c (vars_of_select): Initialise them.
12788
12789 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12790
12791         * select.c (selection-coercible-types): New.
12792
12793         * select.c (own-selection-internal):
12794         * select.c (get-selection-internal):
12795         MULE bug fix - these should default to COMPOUND_TEXT and not
12796         STRING for MULE. I think.
12797
12798         * select.c (select_convert_out): Use selection-coercible-types
12799         to find types that we can attempt to perform coercions on.
12800
12801 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12802
12803         * mule-wnnfns.c:
12804         * mule-canna.c:
12805         Add coding: cookie to identify encoding.
12806
12807         * mule-canna.c (CANNA_mode_keys): make static.
12808         Use proper prototypes, even for functions of no arguments.
12809         Remove external prototype for Fding().
12810
12811         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12812
12813         * select.c (syms_of_select): Add missing DEFSUBR.
12814
12815 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12816
12817         * select.c (get_selection_internal, own_selection_internal):
12818         Make the type default to STRING, rather than placing a nil type
12819         into Vselection_alist.
12820
12821 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12822
12823         * gpmevent.c (tty_selection_exists_p):
12824         * gpmevent.c (tty_own_selection):
12825         Updated parameter lists.
12826
12827 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12828
12829         * select.h (selection-alist): Removed declaration.
12830
12831         * select.h (get_local_selection):
12832         * select.c (get_local_selection):
12833         Made static.
12834
12835         * select.h (convert_selection): Removed declaration.
12836         * select.c (convert_selection): Removed.
12837         This function belongs in Lisp.
12838
12839         * select.h (select_convert_in): Declare.
12840         * select.h (select_convert_out): Declare.
12841         * select.c (select_convert_in): New.
12842         * select.c (select_convert_out): New.
12843         New conversion functions for other files to call.
12844
12845         * select.h (select_notify_buffer_kill): Declare.
12846         * select.c (select_notify_buffer_kill): New.
12847         New functions that get called from kill-buffer.
12848
12849         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12850         X-specific lisp code.
12851
12852         * select.h: Declare some of the lisp-visible functions for
12853         external use.
12854
12855         * select.c (clean_local_selection_data): Removed. This was
12856         a disgusting function, and previously should have been in
12857         select-x.c in any case. The functionality is now provided
12858         in select-convert-from-integer (select.el).
12859
12860         * select.c (available-selection-types): Fixed stupidity where
12861         INTEGER and ATOM got added twice. Also add STRING when we see an
12862         extent.
12863
12864         * select.c (get-selection-internal): Removed symbol stripping. No
12865         longer causes conversion when data comes from the internal cache.
12866
12867         * select.c (syms_of_select): Added new functions.
12868
12869         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12870         error checking - previously this called abort!
12871
12872         * select-x.c (x_own_selection): Changed comment.
12873
12874         * select-x.c (x_handle_selection_request): Use select_convert_out.
12875         Don't mess with selection-alist; it's an internal variable of select.c.
12876
12877         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12878
12879         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12880         rather than messing with selection-alist.
12881
12882         * select-msw.c (mswindows_get_foreign_selection):
12883         Use TO_INTERNAL_FORMAT rather than hacking.
12884
12885 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12886
12887         * process-unix.c (unix_open_multicast_group):
12888         (unix_open_multicast_group): Remove useless casts.
12889
12890 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12891
12892         * sound.c (Fplay_sound): Fix `unused variable' warning.
12893
12894         * emacs.c (main): Use correct type for _environ on SCO5.
12895
12896 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12897
12898         * console.h (own_selection_method):
12899         * console.h (selection_exists_p_method):
12900         * console.h (available_selection_types_method): New.
12901         * console.h (register_selection_data_type_method): New.
12902         * console.h (selection_data_type_name): New.
12903
12904         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12905         function & alist to track GlobalAlloc()'d handles that need
12906         releasing when the clipboard data gets replaced or emptied.
12907
12908         * event-msw.c (mswindows_wnd_proc): Call it.
12909
12910         * lisp.h, general.c (Qappend): New symbol representing a
12911         `how-to-add' mode.
12912
12913         * select.c (own-selection-internal):
12914         * select.c (selection-exists-p):
12915         * select.c (available-selection-types): New.
12916         * select.c (register-selection-data-type): New.
12917         * select.c (selection-data-type-name): New.  New functions to deal
12918         with device-specific selection data formats.
12919         * select.c (selection-converter-out-alist): Renamed.
12920         * select.c (selection-converter-in-alist): New.
12921         * select.c (selection-appender-alist): New.  Added new alists.
12922         * select.c (syms_of_select, vars_of_select): Added new symbols &
12923         variables.
12924         * select.c (get_local_selection): Split.
12925         * select.c: Removed spurious type checking - selections may now be
12926         of any type, not just strings.
12927         * select.c (own-selection-internal):
12928
12929         * select.h, select.c (convert_selection): New. Created
12930         convert_selection() function based on get_local_selection().
12931         * select.h, select.c (QCF_*): New symbols representing mswindows
12932         clipboard formats.
12933         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12934         symbols representing `how-to-add' modes.
12935
12936         * select-msw.c (x_sym_p): New.
12937         * select-msw.c (symbol_to_ms_cf): New.
12938         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12939         symbols & clipboard formats. Can also handle string names.
12940         * select-msw.c (mswindows_own_selection):
12941         * select-msw.c (mswindows_selection_exists_p):
12942         Added `data-type' parameter. Use it.
12943         * select-msw.c (mswindows_available_selection_types): New.
12944         * select-msw.c (mswindows_register_selection_data_type): New.
12945         * select-msw.c (mswindows_selection_data_type_name): New.
12946         * select-msw.c (mswindows_own_selection):
12947         * select-msw.c (mswindows_get_foreign_selection):
12948         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12949         * select-msw.c (console_create_select_mswindows): Added new methods.
12950         * select-msw.c (mswindows_destroy_selection): New.
12951         * select-msw.c (Vhandle_alist): New list.
12952         * select-msw.c (mswindows_own_selection):
12953
12954         * select-x.c (x_own_selection):
12955         * select-x.c (x_selection_exists_p):
12956         * select-x.c: Added some comments about maybe using new
12957         functionality.
12958         * select-x.c (x_own_selection):
12959
12960         * specifier.c: Remove definition of Qappend (now in general.c)
12961         * specifier.c (syms_of_specifier): Remove Qappend.
12962
12963 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12964
12965         * config.h.in: Add socklen_t.
12966
12967         * s/decosf4-0.h: No special compiler flags needed or desired.
12968         In particular, undefine _BSD for DEC OSF 4.0.
12969
12970 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12971
12972         * redisplay-msw.c (msprinter_frame_output_end): Added.
12973         (console_type_create_redisplay_mswindows): Referred the above.
12974
12975         * frame.c (setup_frame_without_minibuffer): Do not create a
12976         default minibuffer frame on a printer device.
12977
12978         * frame-msw.c (apply_dc_geometry): Added.
12979         (msprinter_start_page):
12980         (msprinter_init_frame_3):
12981         (msprinter_eject_page): Use it.
12982
12983         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12984         and removed residual duplex and orientation properties.
12985
12986 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12987
12988         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12989
12990         * unexalpha.c: Remove system prototypes from C sources!
12991
12992 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12993
12994         * eval.c: Remove references to M-x edit-options in DEFUNs for
12995         `defvar' and `defconst'.
12996
12997 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12998
12999         * config.h.in: Remove SMART_INCLUDE hackery.
13000
13001         PostgreSQL hacking:
13002         * config.h.in: Don't use SMART_INCLUDE.
13003
13004         * postgresql.h: Include libpq-fe.h here.  Fix typo.
13005         * inline.c: Simply #include "postgresql.h"
13006         * postgresql.c:
13007         - Don't use SMART_INCLUDE
13008         - Use simply "const".
13009         - Use standard doc string conventions.
13010         - Use correct type for result of PQstatus.
13011
13012 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13013
13014         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
13015
13016         C++ compilation changes.
13017         * config.h.in (EXTERN_C): Define.
13018         * config.h.in (not): This is also a C++ keyword.
13019         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
13020         * cm.c: Use EXTERN_C.
13021         * redisplay-tty.c: Use EXTERN_C.
13022         * sysdep.c: Use EXTERN_C.  Remove Gould support.
13023
13024 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13025
13026         * general.c: Remove duplicate definition for Qfunction.
13027
13028 2000-07-08  Ben Wing  <ben@xemacs.org>
13029
13030         * device-msw.c (msprinter_init_device):
13031         * device-msw.c (sync_printer_with_devmode):
13032         * device-msw.c (handle_devmode_changes):
13033         * device-msw.c (print_dialog_worker):
13034         * device-msw.c (Fmsprinter_apply_settings):
13035         * device-msw.c (hash_devmode):
13036         * device-msw.c (Fmsprinter_settings_despecialize):
13037         use Qmswindows_tstr, not Qctext.
13038
13039         * vm-limit.c (check_memory_limits):
13040         avoid infinite loop printing warning messages.
13041
13042 2000-07-05  Craig Lanning  <lanning@scra.org>
13043
13044         * Makefile.in.in: Add support for including the Windows resources
13045         when building with the cygwin and mingw targets.
13046
13047         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
13048         not set or not correct.
13049         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
13050         (init_initial_directory): Don't try to use $PWD on the
13051         WIN32_NATIVE target.
13052
13053         * s\cygwin32.h:
13054         [[Add -mwindows to eliminate console window.]] not required --ben
13055         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13056         (MAIL_USE_POP): removed; now handled by configure.
13057
13058         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
13059         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
13060         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13061         (MAIL_USE_POP): removed; now handled by configure.
13062         (ENCAPSULATE_STAT): from Dan Holmsand, added.
13063         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
13064         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
13065         constant string.
13066         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
13067         up from <winsock.h> via systime.h.
13068         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
13069         (getpagesize): from Dan Holmsand, added.
13070         Added #endif which was left dangling by Ben's mega patch; added
13071         comment to help prevent this in the future.
13072
13073         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
13074
13075 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13076
13077         * console-msw.h (struct mswindows_device): Removed unnecessary
13078         cached device geometry values.
13079         Added update_tick and an accessor macro.
13080         (Lisp_Devmode): Added lrecord declaration.
13081         (struct msprinter_device): Contain devmode as a Lisp object.
13082         Added mswindows_get_selected_frame_hwnd();
13083
13084         * console.h (struct console_methods): Indentation nitpicking.
13085
13086         * device-msw.c (mswindows_init_device): Do not initialize geometry
13087         cache. Initialize update tick.
13088         (mswindows_device_system_metrics): Ask the device for its geometry.
13089         (global_free_2_maybe):
13090         (devmode_to_hglobal):
13091         (handle_printer_changes):
13092         (ensure_not_printing):
13093         (print_dialog_worker):
13094         (Fmsprinter_print_setup_dialog):
13095         (Fmsprinter_print_dialog):
13096         (plist_get_margin):
13097         (plist_set_margin):
13098         (Fmsprinter_page_setup_dialog): Added functions.
13099         (sync_printer_with_devmode):
13100         (handle_devmode_changes):
13101         (Fmsprinter_get_settings):
13102         (Fmsprinter_select_settings):
13103         (Fmsprinter_apply_settings):
13104         (allocate_devmode):
13105         (Fmsprinter_settings_copy):
13106         (Fmsprinter_settings_despecialize):
13107         (print_devmode):
13108         (finalize_devmode):
13109         (equal_devmode):
13110         (hash_devmode): Added functions
13111         (syms_of_device_mswindows): Init devmode lrecord class.
13112
13113         * device.h: Added an exfun for find-device.
13114
13115         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13116         geometry; although, recreate the device compatible DC.
13117
13118         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13119         (msprinter_init_frame_3):
13120         (msprinter_frame_property):
13121         (msprinter_internal_frame_property_p):
13122         (msprinter_frame_properties):
13123         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13124         print job properties (will move to device settings).
13125
13126         * lisp.h: Added symbols.
13127
13128         * general.c (syms_of_general): Declared them.
13129
13130         * hash.c (string_hash): Added.
13131
13132         * lrecord.h (lrecord_type): Added devmode lrecord type.
13133
13134 2000-07-02  Mike Sperber <mike@xemacs.org>
13135
13136         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13137         FreeBSD 4.0.
13138
13139 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13140
13141         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13142         integer.
13143
13144 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13145
13146         * data.c (Fstring_to_number): Don't recognize floating point if
13147         base is not 10.
13148
13149 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13150
13151         * glyphs-widget.c (tab_control_query_geometry):
13152         (widget_query_geometry):
13153         (button_query_geometry):
13154         * glyphs.c (text_query_geometry):
13155         Enforce type correctness.
13156
13157 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13158
13159         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13160         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13161
13162 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13163
13164         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13165         conflicts with gcc's fixincluded version of FOO.h.
13166
13167         * glyphs.h (image_instance_geometry): Remove trailing `,'
13168
13169 2000-06-08  Mike Alexander  <mta@arbortext.com>
13170
13171         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13172         (shove_thread): Don't write the same output twice
13173         (make_ntpipe_output_stream): Increase priority of shove thread
13174         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13175         chance to run
13176         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13177         it.
13178
13179 2000-06-12  Ben Wing  <ben@xemacs.org>
13180
13181         * s\mingw32.h (sigset):
13182         * s\windowsnt.h (sigset):
13183         rename msw_ to mswindows_ for consistency with general convention.
13184
13185 2000-06-12  Ben Wing  <ben@xemacs.org>
13186
13187         * console-msw.c:
13188         * console-msw.c (mswindows_get_console_hwnd):
13189         * console-msw.c (mswindows_ensure_console_allocated):
13190         * console-msw.c (mswindows_hide_console):
13191         * console-msw.c (mswindows_show_console):
13192         * console-msw.c (mswindows_ensure_console_buffered):
13193         * console-msw.c (mswindows_output_console_string):
13194         * console-msw.c (mswindows_windows9x_p):
13195         * console-msw.h:
13196         * device-msw.c (mswindows_get_workspace_coords):
13197         * device-msw.c (mswindows_device_system_metrics):
13198         * dialog-msw.c (mswindows_popup_dialog_box):
13199         * event-msw.c (mswindows_wnd_proc):
13200         * frame-msw.c (mswindows_size_frame_internal):
13201         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13202         * menubar-msw.c (displayable_menu_item):
13203         * menubar-msw.c (mswindows_char_is_accelerator):
13204         * nt.c:
13205         * nt.c (mswindows_sigset):
13206         * nt.c (mswindows_sigrelse):
13207         * nt.c (mswindows_sigpause):
13208         * nt.c (mswindows_raise):
13209         * nt.c (timer_proc):
13210         * ntproc.c:
13211         * ntproc.c (find_child_console):
13212         * ntproc.c (sys_kill):
13213         * print.c:
13214         * print.c (std_handle_out_external):
13215         * process-nt.c (find_child_console):
13216         * process-nt.c (send_signal_the_95_way):
13217         * process-nt.c (ensure_console_window_exists):
13218         * process-nt.c (nt_create_process):
13219         * syssignal.h:
13220         rename msw_ to mswindows_ for consistency with general convention.
13221
13222         * emacs.c:
13223         * dumper.c:
13224         include nt.h, not syswindows.h.
13225
13226         * nt.c (mswindows_fstat):
13227         * nt.c (mswindows_stat):
13228         prefix mswindows_ instead of attempting to directly override the
13229         library functions.  fix declarations.
13230
13231         * nt.h:
13232         include syswindows.h.  move some sysdep.h stuff here.
13233
13234         * ntheap.h:
13235         include syswindows.h, not <windows.h>.
13236
13237         * ntplay.c:
13238         clean up headers.
13239
13240         * sysdep.c:
13241         clean up headers.
13242
13243         * sysdep.c (sys_fstat):
13244         * sysdep.c (sys_stat):
13245         call mswindows versions when appropriate.
13246
13247         * sysdep.h:
13248         move mswin decls to nt.h.
13249
13250         * syswindows.h:
13251         add long comment describing appropriate use of the various windows
13252         headers.
13253
13254 2000-06-11  Ben Wing  <ben@xemacs.org>
13255
13256         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13257
13258 2000-06-10  Ben Wing  <ben@xemacs.org>
13259
13260         * Makefile.in.in (release):
13261         Correction to make sure xemacs.exe always dumped when correct.
13262
13263         * alloca.c:
13264         * balloon_help.c:
13265         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13266
13267         * buffer.c (set_buffer_internal):
13268         [[[[2]]]]: Remove HAVE_FEP code.
13269
13270         * buffer.c (init_initial_directory):
13271         [3].
13272
13273         * bytecode.c:
13274         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13275         individual files.
13276
13277         * callproc.c:
13278         * callproc.c (call_process_cleanup):
13279         * callproc.c (Fold_call_process_internal):
13280         * callproc.c (child_setup):
13281         * callproc.c (getenv_internal):
13282         * callproc.c (init_callproc):
13283         * callproc.c (vars_of_callproc):
13284         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13285         __CYGWIN32__ -> CYGWIN.
13286         DOS_NT -> WIN32_NATIVE.
13287         Remove MSDOS support/references, converting to WIN32_NATIVE
13288           where correct.
13289         __MINGW32__ -> MINGW.
13290         Fix windows.h includes.
13291         Remove bogus HAVE_NTGUI.
13292
13293         * config.h.in:
13294         [2].
13295
13296         * console-msw.c:
13297         mswindows_message_outputted added for use in allowing startup
13298         errors on the console to be seen.
13299
13300         * console-msw.c (msw_ensure_console_allocated):
13301         * console-msw.c (msw_output_console_string):
13302         * console-msw.c (DHEADER):
13303         * console-msw.c (DOPAQUE_DATA):
13304         * console-msw.c (DEVENT):
13305         * console-msw.c (DCONS):
13306         * console-msw.c (DCONSCDR):
13307         * console-msw.c (DSTRING):
13308         * console-msw.c (DVECTOR):
13309         * console-msw.c (DSYMBOL):
13310         * console-msw.c (DSYMNAME):
13311         Fix warnings.
13312
13313         * console-stream.c (stream_init_console):
13314         Fix text/binary problems.
13315
13316         * device-msw.c:
13317         * device-msw.c (mswindows_finish_init_device):
13318         * device-msw.c (mswindows_delete_device):
13319         [1].
13320
13321         * device.c (handle_asynch_device_change):
13322         [3].
13323
13324         * dgif_lib.c:
13325         * dgif_lib.c (DGifOpenFileName):
13326         * dgif_lib.c (DGifOpenFileHandle):
13327         * dgif_lib.c (DGifGetLine):
13328         * dgif_lib.c (DGifGetPixel):
13329         Added config.h/lisp.h, fix up includes.
13330         [1].
13331
13332         * dired-msw.c:
13333         [4].
13334
13335         * dired.c:
13336         * dired.c (file_name_completion):
13337         * dired.c (Ffile_attributes):
13338         * dired.c (syms_of_dired):
13339         [1].
13340
13341         * dumper.c:
13342         * dumper.c (pdump_file_unmap):
13343         * dumper.c (pdump_load):
13344         [1].
13345
13346         * editfns.c:
13347         * editfns.c (Ftemp_directory):
13348         * editfns.c (user_login_name):
13349         * editfns.c (Fuser_real_login_name):
13350         * editfns.c (get_home_directory):
13351         [1].
13352
13353         * elhash.c (finish_marking_weak_hash_tables):
13354         [[[[5]]]]: Fix GCC warnings.
13355
13356         * emacs.c:
13357         * emacs.c (mswindows_handle_hardware_exceptions):
13358         * emacs.c (make_arg_list_1):
13359         * emacs.c (main_1):
13360         * emacs.c (Fkill_emacs):
13361         * emacs.c (Fdump_emacs):
13362         [1].
13363         Fix problems with nested crashes, add long comment.
13364
13365         * event-Xt.c (init_event_Xt_late):
13366         [1].
13367
13368         * event-msw.c:
13369         * event-msw.c (mswindows_dde_callback):
13370         * event-msw.c (mswindows_handle_sticky_modifiers):
13371         * event-msw.c (mswindows_wnd_proc):
13372         [1].
13373         [5].
13374
13375         * events.c (character_to_event):
13376         [1].
13377
13378         * fileio.c:
13379         * fileio.c (Ffile_name_directory):
13380         * fileio.c (Ffile_name_nondirectory):
13381         * fileio.c (directory_file_name):
13382         * fileio.c (Fexpand_file_name):
13383         * fileio.c (Fsubstitute_in_file_name):
13384         * fileio.c (Ffile_name_absolute_p):
13385         * fileio.c (check_executable):
13386         * fileio.c (Ffile_readable_p):
13387         * fileio.c (Ffile_accessible_directory_p):
13388         * fileio.c (Ffile_modes):
13389         * fileio.c (Funix_sync):
13390         * fileio.c (vars_of_fileio):
13391         [1]. [4].
13392
13393         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13394
13395         Expand getdefdir defn.
13396         Fix bogus rename() comment.
13397
13398         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13399         to use standard XEmacs include files, e.g. sysfile.h, rather
13400         than system-specific includes.
13401
13402         * fns.c:
13403         * fns.c (Fsubseq):
13404         [5]. [6].
13405
13406         * frame.c (vars_of_frame):
13407         [1].
13408
13409         * getloadavg.c:
13410         * getloadavg.c (getloadavg):
13411         [1]. [6].
13412         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13413         (We don't use it elsewhere in the code; just add a comment.)
13414
13415         * gif_io.c:
13416         [6].
13417         Add config.h.
13418
13419         * glyphs-msw.c:
13420         * glyphs-msw.c (mswindows_resource_instantiate):
13421         [1].
13422
13423         * glyphs-x.c (x_native_layout_instantiate):
13424         [5].
13425
13426         * gui-msw.c (Fmswindows_shell_execute):
13427         [1].
13428
13429         * insdel.c:
13430         [4].
13431
13432         * lisp.h:
13433         [4]. [5].
13434
13435         * lread.c (locate_file_in_directory_mapper):
13436         [1].
13437
13438         * lstream.c:
13439         [4].
13440
13441         * mem-limits.h:
13442         * mem-limits.h (get_lim_data):
13443         [1].
13444
13445         * menubar-msw.c:
13446         [4].
13447
13448         * ndir.h:
13449         [1].
13450
13451         * nt.c:
13452         * nt.c (getwd):
13453         * nt.c (closedir):
13454         * nt.c (rva_to_section):
13455         * nt.c (mswindows_executable_type):
13456         [1]. [6].
13457         Fix closedir() defn.
13458
13459         * nt.h:
13460         [[[[8]]]]: *_OK defs moved to sysfile.h.
13461
13462         * ntproc.c:
13463         [6]. [7].
13464
13465         * objects-x.c:
13466         [4].
13467
13468         * print.c:
13469         * print.c (std_handle_out_external):
13470         [1]. [4].
13471
13472         * process-nt.c:
13473         * process-nt.c (nt_create_process):
13474         [6].
13475         try to fix process quoting somewhat.
13476
13477         * process-unix.c (unix_create_process):
13478         [1].
13479
13480         * process.c:
13481         * process.c (vars_of_process):
13482         Add Vnull_device.
13483
13484         * process.h:
13485         [1].
13486
13487         * realpath.c:
13488         * realpath.c (xrealpath):
13489         [1].
13490
13491         * redisplay-tty.c (init_tty_for_redisplay):
13492         [3].
13493
13494         * redisplay.c:
13495         [4]. [6].
13496
13497         * scrollbar-msw.c:
13498         [4].
13499
13500         * sheap.c:
13501         * sheap.c (more_static_core):
13502         * sheap.c (report_sheap_usage):
13503         [5]. [6].
13504
13505         * signal.c:
13506         * signal.c (alarm_signal):
13507         [1]. [6].
13508
13509         * sound.c:
13510         [6].
13511
13512         * strftime.c:
13513         * strftime.c (zone_name):
13514         [1]. [5].
13515
13516         * symsinit.h (init_sunpro):
13517         [1].
13518
13519         * syscommctrl.h:
13520         commctrl.h not in Cygwin b20.1.
13521
13522         * sysdep.c:
13523         * sysdep.c (endif):
13524         * sysdep.c (sys_subshell):
13525         * sysdep.c (init_baud_rate):
13526         * sysdep.c (emacs_get_tty):
13527         * sysdep.c (emacs_set_tty):
13528         * sysdep.c (tty_init_sys_modes_on_device):
13529         * sysdep.c (init_system_name):
13530         * sysdep.c (sys_open):
13531         * sysdep.c (interruptible_open):
13532         * sysdep.c (sys_fopen):
13533         * sysdep.c (sys_mkdir):
13534         * sysdep.c (sys_rename):
13535         * sysdep.c (get_process_times_1):
13536         [1]. [6].
13537
13538         * sysdep.h:
13539         [1].
13540
13541         * sysdir.h:
13542         * sysdir.h (DIRENTRY_NONEMPTY):
13543         [1]. [6].
13544
13545         * sysdll.c (dll_init):
13546         * sysdll.h:
13547         [1].
13548
13549         * sysfile.h:
13550         [1]. [6]. [8].
13551         added text/binary defs.
13552
13553         * sysfloat.h:
13554         [1].
13555
13556         * sysproc.h:
13557         * sysproc.h (EDESTADDRREQ):
13558         * sysproc.h (poll_fds_for_input):
13559         [1]. [6].
13560
13561         * syspwd.h:
13562         [6].
13563
13564         * syssignal.h:
13565         [1].
13566
13567         * systime.h:
13568         [1]. [6].
13569
13570         * systty.h:
13571         [1].
13572
13573         * syswindows.h:
13574         [1].
13575         Always define WIN32_LEAN_AND_MEAN.
13576
13577         * unexcw.c (unexec):
13578         [5].
13579
13580         * unexec.c:
13581         * unexec.c (copy_text_and_data):
13582         * unexec.c (adjust_lnnoptrs):
13583         [1].
13584
13585         * unexnt.c:
13586         * unexnt.c (_start):
13587         [1].
13588
13589 2000-06-07  Ben Wing  <ben@xemacs.org>
13590
13591         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13592         was used only as a model.  We've long since extracted any useful
13593         logic or code out of this. (I just did an exhaustive search.)
13594
13595         * s\msdos.h: Removed.
13596
13597         * s\windows95.h: Removed.
13598
13599 2000-06-10  Ben Wing  <ben@xemacs.org>
13600
13601         * s\cygwin32.h:
13602         [1]. [5].
13603         Don't use extern with fun defs.
13604
13605         * s\mingw32.h:
13606         [1]. [7].
13607         Remove nt\inc include.
13608         Remove getdisk, getdefdir. (The former is unused, the latter
13609         expanded in fileio.h.)
13610
13611         * s\windowsnt.h:
13612         * s\windowsnt.h (WIN32_NATIVE):
13613         * s\windowsnt.h (HAVE_STRCASECMP):
13614         [1]. [7].
13615         Add long comment about preprocessor changes.
13616         Remove getdisk, getdefdir. (The former is unused, the latter
13617         expanded in fileio.h.)
13618
13619 2000-06-10  Ben Wing  <ben@xemacs.org>
13620
13621         * m\arm.h:
13622         * m\delta.h:
13623         * m\intel386.h:
13624         * m\sequent.h:
13625         * m\template.h:
13626         * m\windowsnt.h:
13627         [1].
13628         Remove bogus/unused NO_SOCK_SIGIO.
13629
13630 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13631
13632         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13633         not an Emchar.
13634
13635 2000-06-04  Mike Sperber <mike@xemacs.org>
13636
13637         * casetab.c (set_case_table): For `set-standard-case-table',
13638         actually deposit the new case tables where the rest of XEmacs can
13639         see them.
13640
13641 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13642
13643         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13644
13645 2000-06-05  Ben Wing  <ben@xemacs.org>
13646
13647         * callproc.c (child_setup): Don't do close_load_descs() under
13648         MS Windows.  Put in a comment explaining why.
13649
13650 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13651
13652         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13653         Toolkit shell" which breaks `kill-compilation' on Windows NT
13654         native, retaining STDERR handling improvements.
13655
13656 2000-06-01  Andreas Jaeger  <aj@suse.de>
13657
13658         * s/s390.h: Support for S390, based on a patch by Martin
13659         Schwidefsky <schwidefsky@de.ibm.com>.
13660
13661 2000-05-30  Andy Piper  <andy@xemacs.org>
13662
13663         * window.c (allocate_window):
13664         (make_dummy_parent):
13665         (Fset_window_configuration): use new hashtable type.
13666
13667         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13668         (struct image_instantiator_methods):
13669         (struct Lisp_Image_Instance): make instance geometry signed.
13670
13671         * glyphs.c (instantiate_image_instantiator):
13672         (image_instance_query_geometry):
13673         (image_instance_layout):
13674         (image_instance_layout):
13675         (query_string_geometry):
13676         (text_query_geometry):
13677         (image_instantiate):
13678         (image_instantiate):
13679         (cache_subwindow_instance_in_frame_maybe):
13680         (subwindow_query_geometry): make instance geometry signed.
13681
13682         * glyphs-widget.c (widget_query_geometry):
13683         (widget_layout):
13684         (button_query_geometry):
13685         (tree_view_query_geometry):
13686         (tab_control_query_geometry):
13687         (layout_query_geometry):
13688         (layout_layout):
13689         (native_layout_layout): make instance geometry signed.
13690
13691 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13692
13693         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13694         constant.
13695
13696         * general.c (syms_of_general): Add Qfull_assoc symbol.
13697
13698         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13699         correctly.
13700         (decode_weak_list_type): Decode full-assoc type.
13701         (encode_weak_list_type): Encode full-assoc type.
13702         (Fmake_weak_list): Update doc string.
13703
13704 2000-05-30  Andy Piper  <andy@xemacs.org>
13705
13706         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13707
13708         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13709         (decode_hash_table_weakness): ditto.
13710         (Fhash_table_weakness): ditto.
13711         (Fhash_table_type): ditto.
13712         (finish_marking_weak_hash_tables): ditto.
13713         (hash_table_weakness_validate): ditto.
13714         (syms_of_elhash): ditto.
13715
13716 2000-05-28  Martin Buchholz <martin@xemacs.org>
13717
13718         * XEmacs 21.2.34 is released.
13719
13720 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13721
13722         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13723         start cache.
13724         (updating_line_start_cache): Gone.
13725         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13726         generic code to force a minimum of 1 line laid out in the
13727         CMOTION_DISP case.
13728
13729 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13730
13731         * glyphs.c (instantiate_image_instantiator): Check for initialized
13732         height & width no longer special cases IMAGE_NOTHING.
13733         (nothing_instantiate): Set height and width of instance.
13734
13735 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13736
13737         * unexelf.c (unexec): Search for ".data" section.
13738         Initialize new_data2_offset from old_data_index.
13739         Remove redundant check for ElfW.
13740
13741 2000-05-23  Andy Piper  <andy@xemacs.org>
13742
13743         * glyphs.c (get_image_instantiator_governing_domain): allow more
13744         specific domains as the governing domain rather than expecting an
13745         exact match. This fixes problems with layouts.
13746
13747 2000-05-22  Andy Piper  <andy@xemacs.org>
13748
13749         * redisplay-output.c (compare_runes): check for non-images
13750
13751         * glyphs.c (set_glyph_dirty_p): ditto.
13752         (update_glyph_cachel_data): ditto.
13753
13754         * glyphs-widget.c (layout_post_instantiate): ditto.
13755         (layout_post_instantiate): ditto.
13756
13757         * event-msw.c (mswindows_wnd_proc): warning removal.
13758
13759 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13760
13761         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13762
13763         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13764
13765         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13766
13767         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13768         (mswindows_executable_type): mingw32 now has enough headers for
13769         this to work.
13770
13771 2000-05-20  Andy Piper  <andy@xemacs.org>
13772
13773         * console-msw.c (mswindows_output_last_error): ; -> ,
13774
13775 2000-05-12  Andy Piper  <andy@xemacs.org>
13776
13777         * console-msw.c (FROB): compare ints with ints.
13778
13779 2000-05-11  Andy Piper  <andy@xemacs.org>
13780
13781         * glyphs-x.c (x_finalize_image_instance): make minimal build
13782         happy.
13783
13784 2000-05-20  Ben Wing  <ben@xemacs.org>
13785
13786         * event-Xt.c:
13787         * event-Xt.c (vars_of_event_Xt):
13788         move modifier-keys-are-sticky to event-stream.c.
13789
13790         * event-msw.c:
13791         * event-msw.c (mswindows_enqueue_mouse_button_event):
13792         * event-msw.c (key_needs_default_processing_p):
13793         * event-msw.c (XEMSW_LCONTROL):
13794         * event-msw.c (mswindows_handle_sticky_modifiers):
13795         * event-msw.c (FROB):
13796         * event-msw.c (clear_sticky_modifiers):
13797         * event-msw.c (output_modifier_keyboard_state):
13798         * event-msw.c (output_alt_keyboard_state):
13799         * event-msw.c (mswindows_wnd_proc):
13800         * event-msw.c (mswindows_modifier_state):
13801         * event-msw.c (emacs_mswindows_handle_magic_event):
13802         implement sticky modifiers.
13803
13804         * event-stream.c:
13805         * event-stream.c (vars_of_event_stream):
13806         move modifier-keys-are-sticky here.
13807
13808         * lisp.h:
13809         add CHECK_FUNCTION.
13810
13811         * rangetab.c:
13812         implement map-range-table.
13813
13814
13815 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13816
13817         * redisplay-tty.c (reset_tty_modes):
13818         (tty_redisplay_shutdown): Adjust argument type to
13819         tty_frame_output_end.
13820
13821 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13822
13823         * eval.c (Fbacktrace): Don't output a line with only right
13824         parenthesis.
13825
13826 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13827
13828         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13829         (Fpq_reset_poll): Ditto.
13830
13831 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13832
13833         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13834
13835 2000-05-16  Ben Wing  <ben@xemacs.org>
13836
13837         * buffer.c:
13838         * buffer.c (dfc_convert_to/from_internal_format):
13839         * buffer.c (reinit_vars_of_buffer):
13840         Fix conversion functions to allow reentrancy.
13841
13842         * console-msw.c:
13843         * console-msw.c (mswindows_output_last_error):
13844         New fun, generally useful -- output a human-readable
13845         version of GetLastError() on the console.
13846
13847         * console-msw.h:
13848         * console-msw.h (struct mswindows_frame):
13849         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13850
13851         * console-stream.c (stream_output_begin):
13852         * console-stream.c (stream_output_end):
13853         * console-stream.c (stream_output_vertical_divider):
13854         * console-stream.c (stream_clear_region):
13855         * console-stream.c (stream_flash):
13856         * console-stream.c (console_type_create_stream):
13857         Delete blank stream methods, not needed.
13858
13859         * console.h (struct console_methods):
13860         Split begin/end methods into window and frame.
13861
13862         * event-msw.c:
13863         * event-msw.c (mswindows_handle_paint):
13864         * event-msw.c (output_alt_keyboard_state):
13865         * event-msw.c (mswindows_wnd_proc):
13866         * event-msw.c (vars_of_event_mswindows):
13867         Comment about problems with ignored-expose.
13868         Define mswindows-debug-events; not really implemented.
13869
13870         * frame-msw.c (mswindows_init_frame_1):
13871         random cleanups.
13872
13873         * glyphs-msw.c:
13874         * glyphs-msw.c (begin_defer_window_pos):
13875         * glyphs-msw.c (mswindows_unmap_subwindow):
13876         * glyphs-msw.c (mswindows_map_subwindow):
13877         * glyphs-msw.c (mswindows_resize_subwindow):
13878         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13879
13880         * glyphs.c (make_image_instance_1):
13881         Fix crash.
13882
13883         * gutter.c (Fredisplay_gutter_area):
13884         Use new begin/end methods.
13885
13886         * lisp.h (Dynarr_new2):
13887         New creation fun.
13888
13889         * redisplay-msw.c:
13890         * redisplay-msw.c (mswindows_frame_output_begin):
13891         * redisplay-msw.c (mswindows_frame_output_end):
13892         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13893         New begin/end methods -- handle DeferWindowPos.
13894
13895         * redisplay-output.c (redisplay_move_cursor):
13896         * redisplay-output.c (redraw_cursor_in_window):
13897         * redisplay-output.c (redisplay_update_line):
13898         * redisplay-output.c (redisplay_output_window):
13899         New begin/end methods.
13900
13901         * redisplay-tty.c:
13902         * redisplay-tty.c (tty_frame_output_begin):
13903         * redisplay-tty.c (tty_frame_output_end):
13904         * redisplay-tty.c (console_type_create_redisplay_tty):
13905         New begin/end methods.
13906
13907         * redisplay-x.c:
13908         * redisplay-x.c (x_window_output_begin):
13909         * redisplay-x.c (x_window_output_end):
13910         * redisplay-x.c (console_type_create_redisplay_x):
13911         New begin/end methods.
13912
13913         * redisplay.c (redisplay_frame):
13914         * redisplay.c (Fredisplay_echo_area):
13915         New begin/end methods.
13916         use MAYBE_DEVMETH for clear_frame; it may not exist.
13917
13918         * window.h (WINDOW_XFRAME):
13919         WINDOW_XFOO macros -- get locale and decode struct pointer.
13920
13921
13922 2000-05-12  Ben Wing  <ben@xemacs.org>
13923
13924         * emacs.c:
13925         * emacs.c (ensure_no_quitting_from_now_on):
13926         * emacs.c (fatal_error_signal):
13927         * emacs.c (mswindows_handle_hardware_exceptions):
13928         * emacs.c (main):
13929         * emacs.c (Fkill_emacs):
13930         * emacs.c (shut_down_emacs):
13931         * emacs.c (assert_failed):
13932         various improvements in fatal error handling.
13933
13934         * eval.c:
13935         move preparing_for_armageddon to emacs.c.
13936
13937         * lisp.h:
13938         declare fatal_error_in_progress.
13939
13940         * print.c:
13941         * print.c (std_handle_out_external):
13942         * print.c (std_handle_out_va):
13943         * print.c (stderr_out):
13944         * print.c (stdout_out):
13945         use console under mswin when no standard output.
13946         don't do code conversion during fatal error.
13947
13948         * scrollbar.c (Fscrollbar_page_up):
13949         * scrollbar.c (Fscrollbar_page_down):
13950         fix missing else.  reindent.
13951
13952 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13953
13954         Emergency fix.
13955
13956         * glyphs.h (GLYPH_CACHEL_DESCENT):
13957         (GLYPH_CACHEL_DESCENT):
13958         (GLYPH_CACHEL_DESCENT):
13959         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13960         used in case these are inline functions.
13961         Use more absurd values to error check.
13962
13963         include window.h for error check functions.
13964
13965 2000-05-11  Ben Wing  <ben@xemacs.org>
13966
13967         * cmdloop.c (Freally_early_error_handler):
13968         Display message box under windows; otherwise, message will disappear
13969         before it can be viewed.
13970
13971         * console-msw.c:
13972         * console-msw.c (Fmswindows_message_box):
13973         * console-msw.c (FROB):
13974         * console-msw.c (syms_of_console_mswindows):
13975         Define new fun `mswindows-message-box'.
13976         #### I will merge this into `popup-dialog-box'; just give me
13977         a bit of time.
13978
13979         * general.c:
13980         * general.c (syms_of_general):
13981         Some new symbols used in `mswindows-message-box'.
13982
13983         * glyphs.c:
13984         * glyphs.c (Fset_image_instance_property):
13985         put warning in this fun.
13986
13987         * glyphs.h:
13988         * glyphs.h (GLYPH_CACHEL_WIDTH):
13989         * glyphs.h (GLYPH_CACHEL_ASCENT):
13990         * glyphs.h (GLYPH_CACHEL):
13991         * glyphs.h (GLYPH_CACHEL_GLYPH):
13992         define error-checking versions to try to catch a bug i've seen --
13993         redisplay gets in an infinite loop because the glyph width of the
13994         continuation glyph is 65535.
13995
13996         * lisp.h:
13997         Extern message-box stuff.
13998
13999         * window.c (allocate_window):
14000         * window.c (make_dummy_parent):
14001         * window.c (Fset_window_configuration):
14002         Use EQUAL not EQ for subwindow caches to make them work a bit
14003         better. (Something is still very broken.)
14004
14005
14006 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14007
14008         * glyphs.c (image_instantiate): Suppress gcc warnings.
14009         (Fmake_image_instance): Fix doc string.
14010         * specifier.c (Fmake_specifier): Ditto.
14011
14012 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
14013
14014         * paths.h.in (PATH_LOCK): Removed.
14015         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
14016         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
14017
14018 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14019
14020         * fns.c (Ffeaturep): Update e-mail address in doc-string.
14021         Document (featurep '(and xemacs 21.02)).
14022
14023 2000-05-09  Ben Wing  <ben@xemacs.org>
14024
14025         * buffer.c (complex_vars_of_buffer):
14026         update modeline-format doc.
14027
14028         * device.h:
14029         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
14030
14031         * emacs.c:
14032         timeline of all released versions of Emacs, for use in creating
14033         authorship comments and in synching up.
14034
14035         * glyphs-widget.c (image_instantiator_buttons):
14036         * glyphs-widget.c (image_instantiator_edit_fields):
14037         * glyphs-widget.c (image_instantiator_combo_box):
14038         * glyphs-widget.c (image_instantiator_scrollbar):
14039         * glyphs-widget.c (image_instantiator_progress_guage):
14040         * glyphs-widget.c (image_instantiator_tree_view):
14041         * glyphs-widget.c (image_instantiator_tab_control):
14042         * glyphs-widget.c (image_instantiator_labels):
14043         * glyphs-widget.c (image_instantiator_layout):
14044         * glyphs-widget.c (image_instantiator_native_layout):
14045         rename decode_domain method to governing_domain.
14046
14047         * glyphs.c:
14048         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
14049         * glyphs.c (add_entry_to_device_ii_format_list):
14050         make sure we don't put an entry more than once into the list.
14051         * glyphs.c (check_instance_cache_mapper):
14052         *************************************************************
14053         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14054         HAVE BEEN GETTING.
14055         *************************************************************
14056         * glyphs.c (get_image_instantiator_governing_domain):
14057         clean up, expand on new concept of governing domain.
14058         * glyphs.c (instantiate_image_instantiator):
14059         * glyphs.c (allocate_image_instance):
14060         use governing_domain instead of cache_domain in naming.
14061         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
14062         * glyphs.c (make_image_instance_1):
14063         * glyphs.c (Fmake_image_instance):
14064         allow for any domain (not just device), and process the
14065         governing domain correctly.  very big doc fix.
14066         * glyphs.c (Fimage_instance_domain):
14067         new primitive, to retrieve the governing domain of an image instance.
14068         * glyphs.c (image_instantiate):
14069         use new governing_domain stuff.  this fixes a crash you could get
14070         by instantiating certain widget glyphs in frame locales. (should
14071         signal an error instead of crashing.)
14072         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
14073         * glyphs.c (Fglyphp): clean up doc.
14074         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
14075         * glyphs.c (syms_of_glyphs):
14076         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
14077         * glyphs.c (image_instantiator_format_create): add some comments about
14078         bogus code.
14079         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
14080         for current-display-table. (Apparently Hrjove implemented in 1998 a
14081         design I wrote up in 1996, but didn't update the doc string.)
14082
14083         * glyphs.h: clean up a doc string.
14084         * glyphs.h (governing_domain):
14085         * glyphs.h (struct image_instantiator_methods):
14086         changes for governing_domain stuff.
14087
14088         * gutter.c:
14089         * gutter.c (Fgutter_specifier_p):
14090         * gutter.c (Fgutter_size_specifier_p):
14091         * gutter.c (Fgutter_visible_specifier_p):
14092         * objects.c:
14093         * objects.c (Fcolor_specifier_p):
14094         * objects.c (Ffont_specifier_p):
14095         * objects.c (Fface_boolean_specifier_p):
14096         doc strings moved to make-*-specifier.
14097
14098         * redisplay.c (add_disp_table_entry_runes_1):
14099         * redisplay.c (generate_fstring_runes):
14100         * redisplay.c (screen):
14101         add random comments and doc strings.
14102
14103         * specifier.c:
14104         * specifier.c (Fmake_specifier):
14105         major overhaul of this doc string.
14106
14107         * specifier.c (Fvalid_specifier_domain_p):
14108         comment about the bogosity of image instances being domains.
14109         * specifier.c (decode_domain):
14110         now non-static, used in glyphs.c.
14111         * specifier.c (specifier_instance):
14112         comment about the bogosity of image instances being domains.
14113         * specifier.c (Fgeneric_specifier_p):
14114         move doc string to make-generic-specifier.
14115         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14116         rebackslashify.
14117
14118         * specifier.h:
14119         * specifier.h (DOMAIN_FRAME):
14120         * specifier.h (DOMAIN_LIVE_P):
14121         * specifier.h (DOMAIN_XDEVICE):
14122         rebackslashify.
14123         add comments about problems with these macros.
14124         prototype for decode_domain.
14125
14126         * toolbar.c:
14127         * toolbar.c (Ftoolbar_specifier_p):
14128         move doc string to `make-toolbar-specifier'.
14129
14130         * window.c (window_unmap_subwindows_cache_mapper):
14131         *************************************************************
14132         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14133         HAVE BEEN GETTING.
14134         *************************************************************
14135
14136 2000-05-09  Andy Piper  <andy@xemacs.org>
14137
14138         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14139
14140         * window.c (Fset_window_configuration): reset the frame subwindow
14141         cache and re-initialize the window subwindow caches.
14142
14143         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14144
14145 2000-05-09  Ben Wing  <ben@xemacs.org>
14146
14147         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14148         DWORD.
14149
14150 2000-04-26  Mike Woolley  <mike@bulsara.com>
14151
14152         * ntheap.c: Changed recreate_heap to limit the amount reserved
14153         for the heap to that which is actually available. Also now
14154         displays a message box (with some dignostics) in the event that
14155         it still can't start.
14156
14157 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14158
14159         * callproc.c (Fold_call_process_internal): GCPRO path
14160
14161 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14162
14163         Patch by Bill Perry.
14164
14165         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14166         back data instead of #ifdef.
14167         (Fscrollbar_page_down): ditto.
14168
14169 2000-05-07  Ben Wing  <ben@xemacs.org>
14170
14171         * buffer.h:
14172         Kludge for defining Qmswindows_tstr.
14173
14174         * nt.c:
14175         * nt.c (open_input_file):
14176         * nt.c (open_output_file):
14177         * nt.c (rva_to_section):
14178         * nt.c (mswindows_executable_type):
14179         Move all memory-mapped-file routines here (some were in unexnt.c,
14180         which is bad because they are used by process-nt.c, and unexnt
14181         won't be around when portable dumping).  Synched the above routines
14182         with FSF 20.6.
14183
14184         * nt.h:
14185         Removed ifdef'd out bogus code.
14186         Fixed some prototypes.
14187
14188         * nt.h (file_data):
14189         * nt.h (OFFSET_TO_RVA):
14190         * nt.h (RVA_TO_OFFSET):
14191         * nt.h (RVA_TO_PTR):
14192         Moved the memory-mapped-file structures, macros and prototypes
14193         here, to parallel nt.c.  ntheap.h should really be removed
14194         entirely, and it's a non-portable-dumper specific file.
14195
14196         * ntheap.h (round_to_next):
14197         Moved the memory-mapped-file structures, macros and prototypes
14198         to nt.h.
14199
14200         * ntproc.c (compare_env):
14201         Moved rva_to_section and mswindows_executable_type to nt.c.
14202         Moved compare_env to process-nt.c.
14203         ntproc.c will die, one day.
14204
14205         * ntproc.c (sys_spawnve):
14206         Account for win32_ -> mswindows_.
14207
14208         * process-nt.c:
14209         * process-nt.c (struct nt_process_data):
14210         * process-nt.c (ensure_console_window_exists):
14211         * process-nt.c (compare_env):
14212         * process-nt.c (nt_create_process):
14213         * process-nt.c (nt_kill_process_by_pid):
14214         * process-nt.c (syms_of_process_nt):
14215         * process-nt.c (vars_of_process_nt):
14216         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14217         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14218         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14219         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14220         Move compare_env here from ntproc.c.
14221
14222         * process.c (Fprocess_send_region):
14223         Takes an optional fourth argument, BUFFER, which should fix some
14224         problems with call-process.
14225
14226         * syscommctrl.h:
14227         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14228
14229         * syswindows.h:
14230         Move ICC_BAR_CLASSES to syscommctrl.h.
14231         Add preliminary macros for MSWindows/Mule.  More to come.
14232
14233         * unexnt.c:
14234         * unexnt.c (unexec):
14235         open_output_file moved to nt.c.
14236
14237
14238 2000-05-05  Andy Piper  <andy@xemacs.org>
14239
14240         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14241         instance from the frame cache also since GC may catch up too late
14242         to make frame deletion sane.
14243
14244 2000-05-04  Andy Piper  <andy@xemacs.org>
14245
14246         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14247         (x_finalize_image_instance): ungcpro on deletion.
14248
14249         * glyphs.c (image_instantiator_format_create): give pointers a
14250         query geometry method so that the geometry is at least set.
14251
14252         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14253         initialize layouts if using widgets.
14254
14255 2000-05-03  Andy Piper  <andy@xemacs.org>
14256
14257         * nt.c: remove bogus reference to sysmmsystem.h
14258
14259         * gui-x.c (popup_selection_callback): fix no selection abort.
14260
14261 2000-05-02  Andy Piper  <andy@xemacs.org>
14262
14263         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14264         (mswindows_widget_instantiate): ditto.
14265
14266         * glyphs-widget.c (initialize_widget_image_instance): initialize
14267         children correctly.
14268         (widget_instantiate): cope with children and items in the same
14269         instance.
14270
14271         * glyphs.c (mark_image_instance): cope with children as a first
14272         class member.
14273         (image_instance_equal): ditto.
14274         (image_instance_hash): ditto.
14275         (image_instance_changed): ditto.
14276
14277 2000-04-30  Andy Piper  <andy@xemacs.org>
14278
14279         * glyphs.c (subwindow_query_geometry): new function. Return some
14280         defaults.
14281         (subwindow_instantiate): don't assign dimensions if none have been
14282         given.
14283         (image_instantiator_format_create): add subwindow_query_geometry.
14284         (print_image_instance): cope with layouts as widgets.
14285
14286 2000-04-29  Andy Piper  <andy@xemacs.org>
14287
14288         * frame.c (delete_frame_internal): call
14289         free_frame_subwindow_instance_cache so that all subwindows are
14290         finalized before their parent.
14291         (mark_frame): remove subwindow_cachels.
14292         (Fmake_frame): remove subwindow_cachel manipulation.
14293         (allocate_frame_core): subwindow_instance_cache is a weak list.
14294         (delete_frame_internal): set subwindow_instance_cache to nil.
14295
14296         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14297         finalization safe.
14298         (mswindows_finalize_image_instance): use the device
14299         not the domain as the domain may have died already.
14300
14301         * glyphs-x.c (x_finalize_image_instance): ditto.
14302         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14303         HEIGHT.
14304
14305         * redisplay-output.c (redisplay_unmap_subwindows): update for
14306         subwindow instance cache as a weak list.
14307         (redisplay_unmap_subwindows_maybe): ditto.
14308         (redisplay_unmap_subwindows_except_us): ditto.
14309
14310         * glyphs.c (unmap_subwindow): error checking will check the domain
14311         so don't deal with it here. Don't use cachels anymore.
14312         (map_subwindow): ditto.
14313         (update_subwindow_cachel_data): remove old accessor names.
14314         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14315         (Fresize_subwindow): don't update cachel.
14316         (mark_subwindow_cachels):
14317         (update_subwindow_cachel_data):
14318         (add_subwindow_cachel):
14319         (get_subwindow_cachel_index):
14320         (update_subwindow_cachel):
14321         (reset_subwindow_cachels):
14322         (mark_subwindow_cachels_as_not_updated): deleted.
14323         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14324         subwindow instance to the frame cache.
14325         (find_matching_subwindow): update for subwindow instance cache as
14326         a weak list.
14327         (update_widget_instances): ditto.
14328         (image_instance_type_to_mask):inlined.
14329         (free_frame_subwindow_instance_cache): new function. finalize all
14330         subwindows that are instantiated.
14331
14332         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14333         of cachel information.
14334         (IMAGE_INSTANCE_DISPLAY_X):
14335         (IMAGE_INSTANCE_DISPLAY_Y):
14336         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14337         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14338         (XIMAGE_INSTANCE_DISPLAY_X):
14339         (XIMAGE_INSTANCE_DISPLAY_Y):
14340         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14341         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14342         remove subwindow_cachel structure and function references.
14343         (image_instance_type_to_mask): inline from glyphs.c
14344
14345         * redisplay.c (redisplay_frame): remove subwindow_cachel
14346         references.
14347
14348         * frame.h (struct frame): remove subwindow_cachels.
14349         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14350
14351         * frameslots.h: add subwindow_instance_cache.
14352
14353         * window.c (replace_window): check subwindow cache of replacement.
14354         (window_unmap_subwindows_cache_mapper):
14355         (window_unmap_subwindows): new functions. Unmap all subwindows
14356         cached on this window.
14357         (mark_window_as_deleted): unmap all subwindows.
14358
14359 2000-04-27  Andy Piper  <andy@xemacs.org>
14360
14361         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14362
14363         * glyphs-widget.c (widget_layout): return something.
14364         (layout_layout): return something. Fail if not initialized.
14365         (layout_query_geometry): ditto.
14366         (image_instantiator_native_layout): new function. Initialized the
14367         native layout type.
14368         (widget_instantiate): don't do layout stuff here.
14369
14370         * glyphs.c (instantiate_image_instantiator): reorded calling or
14371         instantiate and post_instantiate with layout in between.
14372         (image_instance_layout): be more selective about deciding whether
14373         the layout has been done or not.
14374
14375         * glyphs.h (struct image_instantiator_methods): return a value
14376         from layout_method.
14377
14378 2000-04-26  Andy Piper  <andy@xemacs.org>
14379
14380         * glyphs.c (allocate_image_instance): make initial width and
14381         height unspecified. Set initialized to 0.
14382
14383         * syscommctrl.h new file. Encapsulates commctrl.h.
14384
14385         * syswindows.h new file. Encapsulates windows.h.
14386
14387         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14388         * nt.c: ditto.
14389         * console-msw.h: ditto.
14390
14391         * redisplay-tty.c (tty_output_display_block): remove layout references.
14392
14393         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14394         window handle rather than just the frame.
14395
14396         * glyphs.c (mark_image_instance): remove layout references.
14397         (print_image_instance): ditto.
14398         (image_instance_equal): ditto.
14399         (image_instance_hash): ditto.
14400         (decode_image_instance_type): ditto.
14401         (encode_image_instance_type): ditto.
14402         (image_instantiate): ditto.
14403         (allocate_glyph): ditto.
14404         (Fimage_instance_height): ditto.
14405         (Fimage_instance_width): ditto.
14406         (update_subwindow): ditto.
14407
14408         * redisplay-x.c (x_output_display_block): recode for layouts as
14409         widgets.
14410
14411         * redisplay-output.c (redisplay_output_layout): recode for layouts
14412         as widgets.
14413         (compare_runes): remove layout references.
14414
14415         * redisplay-msw.c (mswindows_output_display_block): recode for
14416         layouts as widgets.
14417
14418         * glyphs-widget.c (image_instantiator_layout): remove
14419         layout_possible_dest_types.
14420         (layout_possible_dest_types): deleted.
14421
14422         * glyphs.h (image_instance_type): remove layout references.
14423         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14424         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14425         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14426
14427 2000-04-25  Andy Piper  <andy@xemacs.org>
14428
14429         * glyphs-widget.c (image_instantiator_buttons):
14430         (image_instantiator_edit_fields):
14431         (image_instantiator_combo_box):
14432         (image_instantiator_scrollbar):
14433         (image_instantiator_progress_guage):
14434         (image_instantiator_tree_view):
14435         (image_instantiator_tab_control):
14436         (image_instantiator_labels):
14437         (image_instantiator_layout): call default post_instantiate method.
14438         (widget_post_instantiate): new function. Simply lays out the
14439         widgets.
14440
14441         * glyphs.h (struct image_instantiator_methods): add
14442         post_instantiate method.
14443
14444         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14445         method calls.
14446
14447 2000-04-23  Andy Piper  <andy@xemacs.org>
14448
14449         * glyphs.h (struct image_instantiator_methods): add
14450         decode_domain_method.
14451         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14452         derived from the domain.
14453         (IMAGE_INSTANCE_FRAME): new accessor.
14454         (XIMAGE_INSTANCE_FRAME): ditto.
14455
14456         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14457         instead of _SUBWINDOW_FRAME.
14458         (finalize_image_instance): ditto.
14459         (Fimage_instance_foreground): ditto.
14460         (Fimage_instance_background): ditto.
14461         (image_instantiate): ditto.
14462         (update_subwindow_cachel): ditto.
14463         (update_subwindow): ditto.
14464         (unmap_subwindow): ditto.
14465         (map_subwindow): ditto
14466         (subwindow_instantiate): ditto.
14467         * glyphs-msw.c (mswindows_update_widget): ditto.
14468         (mswindows_progress_gauge_instantiate): ditto.
14469         (mswindows_tab_control_update): ditto.
14470         * glyphs-x.c (x_update_widget): ditto.
14471         (x_widget_instantiate): ditto.
14472         (x_tab_control_instantiate): ditto.
14473         (x_tab_control_update): ditto.
14474         * event-msw.c (mswindows_wnd_proc): ditto
14475
14476         * glyphs-widget.c (image_instantiator_layout): use
14477         subwindow_decode_domain.
14478         (image_instantiator_buttons): ditto.
14479         (image_instantiator_edit_fields): ditto.
14480         (image_instantiator_combo_box): ditto.
14481         (image_instantiator_scrollbar): ditto.
14482         (image_instantiator_progress_guage): ditto.
14483         (image_instantiator_tree_view): ditto.
14484         (image_instantiator_tab_control): ditto.
14485         (image_instantiator_labels): ditto.
14486         (image_instantiator_layout): ditto.
14487
14488         * glyphs.c: add instance error checking to many functions.
14489         (instantiate_image_instantiator): decode device from cache_domain.
14490         (image_instantiate): partially rewrite by using
14491         decode_image_instantiator_domain to determine what domain the
14492         instance needs to be cached in.
14493         (decode_image_instantiator_domain): new function. Determine what
14494         domain the image needs to be cached in.
14495         (check_window_subwindow_cache): new error checking function.
14496         (check_instance_cache_mapper): ditto.
14497         (check_image_instance_structure): ditto.
14498         (subwindow_decode_domain): new function. Encodes a window as a
14499         subwindow's cache domain.
14500         (image_instantiator_format_create): use it for text and
14501         subwindows.
14502
14503 2000-04-21  Andy Piper  <andy@xemacs.org>
14504
14505         * glyphs.c (image_instance_device): new function.
14506         (image_instance_frame): new function.
14507         (image_instance_window): new function.
14508         (image_instance_live_p): new function.
14509
14510         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14511         cache to nil.
14512
14513         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14514         (IMAGE_INSTANCE_DOMAIN): new accessor.
14515         (XIMAGE_INSTANCE_DOMAIN): ditto.
14516
14517         * glyphs-x.c (x_finalize_image_instance): device->domain.
14518
14519         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14520         (mswindows_finalize_image_instance): ditto.
14521
14522         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14523         (gif_instantiate): ditto.
14524         (png_instantiate): ditto.
14525         (tiff_instantiate): ditto.
14526
14527         * glyphs.c (instantiate_image_instantiator): use domain rather
14528         than device.
14529         (mark_image_instance): device -> domain.
14530         (print_image_instance): ditto.
14531         (finalize_image_instance): ditto.
14532         (image_instance_equal): ditto.
14533         (allocate_image_instance): ditto.
14534         (Fcolorize_image_instance): ditto.
14535         (query_string_geometry): ditto.
14536         (image_instantiate): ditto
14537         (query_string_font): ditto.
14538         (image_instantiate): ditto.
14539         (update_subwindow): ditto.
14540         (unmap_subwindow): ditto.
14541         (map_subwindow): ditto.
14542         (subwindow_instantiate): ditto.
14543
14544         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14545         (DOMAIN_FRAME): ditto.
14546         (DOMAIN_WINDOW): ditto.
14547         (DOMAIN_LIVE_P): ditto.
14548         (XDOMAIN_DEVICE): ditto.
14549         (XDOMAIN_FRAME): ditto.
14550         (XDOMAIN_WINDOW): ditto.
14551
14552         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14553         a valid specifier domain.
14554
14555 2000-04-19  Andy Piper  <andy@xemacs.org>
14556
14557         * glyphs-widget.c (syms_of_glyphs_widget): remove
14558         widget-callback-current-channel.
14559         (vars_of_glyphs_widget): ditto.
14560         * glyphs.h: ditto
14561
14562         * gui.c (get_gui_callback): revert to previous behaviour.
14563
14564 2000-04-18  Andy Piper  <andy@xemacs.org>
14565
14566         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14567         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14568         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14569
14570         * glyphs.c (image_instance_equal): add margin_width.
14571         (image_instance_hash): ditto.
14572
14573         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14574         (layout_query_geometry): ditto.
14575         (layout_layout): ditto.
14576         (syms_of_glyphs_widget): add margin-width.
14577         (image_instantiator_layout): allow margin-width.
14578
14579         * glyphs.c (update_widget_instances): make a normal function.
14580         (syms_of_glyphs): remove Qupdate_widget_instances.
14581         * glyphs.h: ditto.
14582
14583         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14584         so that we don't corrupt ideas about the last event or
14585         command. Remove widget-callback-current-channel fiddling.
14586         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14587
14588 2000-05-01  Martin Buchholz <martin@xemacs.org>
14589
14590         * XEmacs 21.2.33 is released.
14591
14592 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14593
14594         * make-src-depend: Allow dots in header file name.
14595
14596 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14597
14598         * mule-charset.h (struct charset_lookup): Add
14599         next_allocated_1_byte_leading_byte and
14600         next_allocated_2_byte_leading_byte.
14601         * mule-charset.c: Move above two variables so that those values
14602         will be dumped.
14603
14604 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14605
14606         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14607         when string length is zero.
14608         (find_charsets_in_emchar_string): Ditto.
14609
14610 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14611
14612         * lisp.h: extern Qdialog and Qmenubar.
14613
14614         * gui-x.c: added events.h.
14615                 also fixed typo which made the file uncompilable.
14616
14617         * general.c: Added Qmenubar and Qdialog
14618
14619 2000-04-28  Ben Wing  <ben@xemacs.org>
14620
14621         * frame-msw.c (mswindows_init_frame_1):
14622         * frame-msw.c (mswindows_mark_frame):
14623         * event-msw.c (mswindows_enqueue_dispatch_event):
14624         * console-msw.h:
14625         * console-msw.h (struct mswindows_frame):
14626         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14627         there are now three hash tables for callbacks.
14628         mswindows_enqueue_dispatch_event is no longer static.
14629
14630         * dialog-x.c (maybe_run_dbox_text_callback):
14631         * dialog-x.c (dbox_descriptor_to_widget_value):
14632         switch to new cons3 form for callbacks.
14633
14634         * glyphs-msw.c (mswindows_register_gui_item):
14635         * glyphs-msw.c (mswindows_widget_instantiate):
14636         * glyphs-msw.c (add_tree_item):
14637         * glyphs-msw.c (add_tab_item):
14638         new image instance parameter, so it can be passed to callback-ex.
14639         respect :callback-ex as well as :callback.
14640
14641         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14642         add :callback-ex.
14643
14644         * glyphs.c (print_image_instance):
14645         prettify, e.g. now prints widget type.
14646
14647         * gui-x.h:
14648         certain funs have new image instance parameter.
14649
14650         * gui.c:
14651         * gui.c (get_gui_callback):
14652         * gui.c (gui_item_add_keyval_pair):
14653         * gui.c (gui_item_init):
14654         * gui.c (gui_add_item_keywords_to_plist):
14655         * gui.c (mark_gui_item):
14656         * gui.c (gui_item_hash):
14657         * gui.c (gui_item_equal):
14658         * gui.c (copy_gui_item):
14659         * gui.c (syms_of_gui):
14660         recognize callback-ex in a number of places.
14661         also, fix the annoying "can't get out of yes-no dialog" bug.
14662
14663         * gui.h:
14664         * gui.h (struct Lisp_Gui_Item):
14665         recognize callback-ex in a number of places.
14666
14667         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14668         new parameter in button_item_to_widget_value.
14669
14670         * glyphs-x.c (x_update_widget):
14671         * glyphs-x.c (x_button_instantiate):
14672         * glyphs-x.c (x_button_update):
14673         * glyphs-x.c (x_progress_gauge_instantiate):
14674         * glyphs-x.c (x_edit_field_instantiate):
14675         * glyphs-x.c (x_combo_box_instantiate):
14676         * glyphs-x.c (x_tab_control_instantiate):
14677         * glyphs-x.c (x_label_instantiate):
14678         new image instance parameter in various places.
14679
14680         * event-Xt.c:
14681         * event-Xt.c (enqueue_Xt_dispatch_event):
14682         this fun gets exported.
14683
14684         * gui-msw.c:
14685         * gui-msw.c (mswindows_handle_gui_wm_command):
14686         handle both :callback and :callback-ex, and generate our own
14687         event because it's one of the callback-ex arguments.
14688
14689         * gui-x.c:
14690         * gui-x.c (popup_selection_callback):
14691         handle both :callback and :callback-ex, and generate our own
14692         event because it's one of the callback-ex arguments.
14693         * gui-x.c (button_item_to_widget_value):
14694         * gui-x.c (gui_items_to_widget_values_1):
14695         * gui-x.c (gui_item_children_to_widget_values):
14696         * gui-x.c (gui_items_to_widget_values):
14697         new image instance parameter in various places.
14698
14699         * fns.c (Freplace_list):
14700         fix small typo in doc string.
14701
14702         * lisp.h:
14703         declare enqueue_Xt_dispatch_event.
14704
14705 2000-04-28  Ben Wing  <ben@xemacs.org>
14706
14707         * buffer.c:
14708         * buffer.c (Frecord_buffer):
14709         * buffer.c (syms_of_buffer):
14710         delete record-buffer-hook.
14711
14712         * fns.c:
14713         * fns.c (Freplace_list):
14714         * fns.c (syms_of_fns):
14715         new primitive replace-list.
14716
14717         * frameslots.h:
14718         slot for old buffer-alist.
14719
14720         * lisp.h:
14721         exfun replace-list.
14722
14723         * redisplay.c:
14724         * redisplay.c (redisplay_frame):
14725         * redisplay.c (syms_of_redisplay):
14726         * redisplay.c (vars_of_redisplay):
14727         new hook buffer-list-changed-hook.
14728         call it.
14729
14730 2000-04-27  Ben Wing  <ben@xemacs.org>
14731
14732         * extents.h: extern in_modeline_generation.
14733
14734         * redisplay.c (generate_formatted_string_db): set
14735         in_modeline_generation.
14736
14737         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14738         flags if in modeline generation.  otherwise frame-modified-tick
14739         is ticked far too often.
14740         Declare in_modeline_generation.
14741
14742 2000-04-26  Ben Wing  <ben@xemacs.org>
14743
14744         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14745         option.
14746         (vars_of_emacs): add quick-build as an error-checking option.
14747         A bit kludgy, but there doesn't seem much point in creating
14748         a real var for this.
14749
14750         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14751
14752 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14753
14754         * redisplay.h (struct display_line): Add a new variable,
14755         line_continuation.
14756
14757         * redisplay.c (create_text_block): Set dl->line_continuation if
14758         the line continues.
14759         (create_string_text_block): Ditto.
14760         (regenerate_window_incrementally): Use line_continuation instead
14761         of searching continuation glyph.
14762         (add_margin_runes): Call add_glyph_rune.
14763         (add_glyph_rune): Handle margin glyph.
14764
14765 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14766
14767         * filelock.c (fill_in_lock_file_name):
14768         ANSIfy.
14769         Check for IS_ANY_SEP instead of '/'.
14770         (lock_file_1):
14771         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14772         Never check errno without first seeing that system call failed.
14773         (unlock_file): Add GCPRO.
14774         (Flock_buffer): Fix docstring.
14775         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14776
14777 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14778
14779         * sysdep.c (get_pty_max_bytes):
14780         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14781         strings longer than 252 bytes.
14782
14783         * md5.c: Unconditionally include ANSI header <limits.h>
14784
14785         * glyphs-x.c (convert_EImage_to_XImage):
14786         * lisp-union.h (union Lisp_Object):
14787         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14788
14789 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14790
14791         * filelock.c (current_lock_owner): Remove unused variable o, p.
14792
14793 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14794
14795         * callint.c: Remove multiply defined symbol Qlet
14796         (syms_of_callint): ditto.
14797
14798 2000-04-14  Andy Piper  <andy@xemacs.org>
14799
14800         * general.c (syms_of_general): add last-command, this-command, let
14801         and funcall.
14802
14803         * lisp.h: declare various symbols.
14804
14805         * glyphs.h: declare Qwidget_callback_current_channel;
14806
14807         * glyphs-widget.c (syms_of_glyphs_widget): add
14808         Qgui_callback_current_channel.
14809         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14810
14811         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14812         widget-callback-current-channel when invoking the interactive
14813         arg. Also bind last-command and next-command when invoking the
14814         widget updates.
14815         * gui-x.c (popup_selection_callback): ditto.
14816
14817         * gui.c (get_gui_callback): massage args so that we are always
14818         calling eval. This allows us to add our own variable bindings
14819         outside.
14820
14821         * glyphs-x.c (x_button_instantiate): use
14822         gui_items_to_widget_values since this is GC safe.
14823         (x_progress_gauge_instantiate): ditto.
14824         (x_edit_field_instantiate): ditto.
14825         (x_label_instantiate): ditto.
14826
14827         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14828         (emacs_Xt_event_widget_focus_out): new function
14829         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14830         focus.
14831         (emacs_Xt_event_add_widget_actions): new function. add focus
14832         functions as actions.
14833         (init_event_Xt_late): use it.
14834
14835 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14836
14837         * event-stream.c (Fdispatch_event): Doc fix.
14838
14839 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14840
14841         * postgresql.c: Remove all references to PQsetenv*.
14842
14843         * postgresql.h: Remove references to PGsetenvHandler object.
14844         * lrecord.h (lrecord_type): Ditto.
14845
14846 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14847
14848         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14849         real_heigh and real_width members, and accessor macros for these.
14850
14851         * glyphs-msw.c (init_image_instance_geometry): New function.
14852         (init_image_instance_from_dibitmap): Use it.
14853         (mswindows_resource_instantiate): Use it.
14854         (init_image_instance_from_xbm_inline): Use it.
14855         (mswindows_initialize_image_instance_mask): Use real bitmap
14856         geometry.
14857         (mswindows_create_resized_bitmap): Ditto.
14858         (mswindows_create_resized_mask): Ditto.
14859
14860         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14861         and bitmap to their surface size.
14862
14863 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14864
14865         * process-unix.c (unix_send_process): Guard against process MIA
14866         after Faccept_process_output.
14867
14868 2000-04-11  Ben Wing  <ben@xemacs.org>
14869
14870         * eval.c (unbind_to_hairy): fix brokenness introduced by
14871         nanosecond speed improvements.
14872
14873 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14874
14875         * sunplay.c (init_device): To play sounds correctly, the device
14876         apparently needs to be initialized at least once by XEmacs.  Make
14877         it so.
14878
14879 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14880
14881         * redisplay.c (add_margin_runes): Add text image glyph
14882           handling.
14883
14884 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14885
14886         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14887         gcc is newer than 2.5.
14888
14889 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14890
14891         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14892
14893         * fns.c (size_bit_vector):
14894         * alloc.c (size_vector):
14895         (make_vector_internal):
14896         (make_bit_vector_internal):
14897         (sweep_bit_vectors_1):
14898         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14899
14900 2000-04-06  Andy Piper  <andy@xemacs.org>
14901
14902         * gmalloc.c (malloc): undo previous change.
14903         (malloc): ditto.
14904         (free): ditto.
14905         (realloc): ditto.
14906
14907 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14908
14909         * line-number.c (buffer_line_number): Revert to former version.
14910
14911 2000-04-06  Andy Piper  <andy@xemacs.org>
14912
14913         * gmalloc.c (malloc): add error checking.
14914         (malloc): ditto.
14915         (free): ditto.
14916         (realloc): ditto.
14917
14918         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14919         button_item_to_widget_value arg.
14920
14921         * glyphs-x.c (x_button_instantiate): add extra
14922         button_item_to_widget_value arg.
14923         (x_progress_gauge_instantiate): ditto.
14924         (x_edit_field_instantiate): ditto.
14925         (x_label_instantiate): ditto.
14926
14927         * gui-x.c (gui_items_to_widget_values_1): add extra
14928         button_item_to_widget_value arg.
14929         (button_item_to_widget_value): add extra menu_item_p arg.
14930
14931         * gui-x.h: change signature of button_item_to_widget_value.
14932
14933         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14934         button_item_to_widget_value arg.
14935
14936 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14937
14938         * buffer.h (struct buffer): auto_save_modified should be long.
14939
14940 2000-04-05  Andy Piper  <andy@xemacs.org>
14941
14942         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14943         type.
14944         (button_query_geometry): give a little more room so that athena
14945         buttons fit.
14946
14947 2000-04-05  Andy Piper  <andy@xemacs.org>
14948
14949         * faces.c (complex_vars_of_faces): The widget face should inherit
14950         the font of the gui-element face.
14951
14952 2000-04-04  Andy Piper  <andy@xemacs.org>
14953
14954         * glyphs-x.c (x_button_update): new function. unconditionally
14955         update a button's state when the instance is dirty.
14956         (image_instantiator_format_create_glyphs_x): add x_button_update.
14957         (x_widget_instantiate): remove old resize cruft.
14958
14959 2000-04-02  Andy Piper  <andy@xemacs.org>
14960
14961         * frame.c (change_frame_size_1): The introduction of gutters means
14962         that we need to allow 0 as a potential frame dimension.
14963
14964 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14965
14966         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14967         image glyph if allow_cursor.
14968         (add_hscroll_rune): Don't allow cursor to border glyph.
14969         (create_text_block): Ditto.
14970
14971         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14972         text not in buffer.
14973         (redisplay_output_layout): Call ensure_face_cachel_complete for
14974         text image glyph.
14975
14976
14977 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14978
14979         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14980
14981         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14982         not in buffer
14983
14984         * redisplay-tty.c (tty_output_display_block): Delete the routine
14985         for text image glyph
14986         * redisplay-x.c (x_output_display_block): ditto
14987         * redisplay-msw.c (mswindows_output_display_block): ditto
14988
14989 2000-02-02  Mike Alexander  <mta@arbortext.com>
14990
14991         Note: Some of these were committed by accident as part of other
14992         patches.
14993
14994         * regex.c (regex_compile): Avoid compiler warnings.
14995
14996         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14997
14998         * nt.h: Declare term_ntproc correctly.
14999
15000         * nt.c: Remove incorrect declaration of get_home_directory which
15001         is declared correctly in lisp.h.
15002
15003         * keymap.c (get_keyelt): Avoid compiler warnings.
15004         (raw_lookup_key_mapper): Avoid compiler warnings.
15005
15006         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
15007
15008         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
15009
15010         * filemode.c (mode_string): Avoid compiler warnings.
15011
15012         * file-coding.c (Fcoding_system_aliasee): Add return statement to
15013         avoid warning.
15014
15015         * events-mod.h: Undef some things that winuser.h defines differently.
15016
15017         * data.c (Faset): Avoid compiler warnings.
15018
15019         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
15020
15021 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15022
15023         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
15024         Fall through to simple beep on error.
15025         Replace "extern" by real header file.
15026
15027         * linuxplay.c: Use nativesound.h
15028         (play_sound_data): Return error code. Be less verbose on error.
15029
15030         * sunplay.c: Use nativesound.h
15031         (play_sound_data): Return error code. Be less verbose on error.
15032
15033         * ntplay.c: Use nativesound.h
15034         (play_sound_data): Return fake error code
15035
15036         * sgiplay.c: Use nativesound.h
15037         (play_sound_data): Return error code
15038
15039         * hpplay.c: Use nativesound.h, partially implement
15040         new error code. Break compilation until finished.
15041         (play_sound_data): error code.
15042
15043         * nativesound.h (play_sound_file):
15044           (play_sound_data): Prototype in new header.
15045
15046 2000-03-31  Andy Piper  <andy@xemacs.org>
15047
15048         * glyphs-widget.c: (button_query_geometry): new function. Adjust
15049         for toggle and radio buttons.
15050         (image_instantiator_buttons): use it.
15051
15052 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15053
15054         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
15055         (x_update_horizontal_scrollbar_callback): Return if no mirror was
15056         found. Scrollbar event probably belonged to some old config.
15057
15058 2000-03-31  Andy Piper  <andy@xemacs.org>
15059
15060         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
15061         than 1.
15062         (initialize_widget_image_instance): default layout to
15063         LAYOUT_HORIZONTAL rather than 0.
15064         (widget_instantiate): reverse the item list at the end rather than
15065         every iteration.
15066         (layout_layout): re-code for the border text at the front of the
15067         item list rather than at the end.
15068         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
15069         provided by the user.
15070         (widget_query_geometry): comment.
15071
15072 2000-03-30  Andy Piper  <andy@xemacs.org>
15073
15074         * glyphs-widget.c (image_instantiator_layout): allow standard
15075         widget keywords in layouts.
15076
15077         * gutter.c (output_gutter): cope with nil gutter contents.
15078
15079         * frame.c (Fset_frame_properties): add gutter docs.
15080
15081 2000-03-29  Andy Piper  <andy@xemacs.org>
15082
15083         * toolbar-msw.c (TBSTYLE_FLAT): add.
15084         (mswindows_output_toolbar): minor fiddling.
15085
15086 2000-03-29  Andy Piper  <andy@xemacs.org>
15087
15088         * gutter.c (output_gutter): force gutter size recalculation if
15089         what we are trying to display won't fit.
15090         (update_gutter_geometry): new function. A per-gutter version of
15091         update_frame_gutter_geometry.
15092         (update_frame_gutter_geometry): use it.
15093         (redraw_exposed_gutter): add extra debugging output.
15094
15095 2000-03-28  Mike Alexander  <mta@arbortext.com>
15096
15097         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15098         (pdump_file_unmap): Implement it on Windows
15099         (pdump_file_get): Save alocated handles for pdump_file_unmap
15100
15101 2000-03-28  Andy Piper  <andy@xemacs.org>
15102
15103         * gui.c (get_gui_callback): treat Quit specially.
15104
15105 2000-03-27  Andy Piper  <andy@xemacs.org>
15106
15107         * glyphs.c (image_instantiate): be careful to check in the same
15108         way we assigned.
15109
15110 2000-03-27  Didier Verna  <didier@xemacs.org>
15111
15112         * config.h.in: define the proper SMART_INCLUDE macro.
15113         handle renaming of `foo_h_path' to `foo_h_file'.
15114
15115         * database.c: ditto.
15116
15117         * emacs.c: ditto.
15118
15119         * linuxplay.c: ditto.
15120
15121         * terminfo.c: ditto.
15122
15123         * tooltalk.h: ditto.
15124
15125 2000-03-27  Andy Piper  <andy@xemacs.org>
15126
15127         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15128         gets updated whenever the face might have changed.
15129
15130 2000-03-26  Mike Alexander  <mta@arbortext.com>
15131
15132         * dumper.c (pdump_resource_free): Fix the comment.
15133
15134 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15135
15136         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15137
15138 2000-03-22  Mike Alexander  <mta@arbortext.com>
15139
15140         * dumper.c: Include Windows headers on Windows
15141         (pdump_resource_free): Add a body to the function
15142         (pdump_load): exe_name -> exe_path and add some comments.
15143
15144 2000-03-25  Mike Alexander  <mta@arbortext.com>
15145
15146         * gui.c (copy_gui_item_tree): Return a value in all cases
15147
15148 2000-03-21  Didier Verna  <didier@xemacs.org>
15149
15150         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15151         lwlib/config.h.in.
15152         (SMART_INCLUDE): new macro.
15153         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15154         the proper location.
15155
15156         * postgresql.c: use it.
15157
15158         * inline.c: ditto.
15159
15160 2000-03-24  Andy Piper  <andy@xemacs.org>
15161
15162         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15163         do this.
15164
15165 2000-03-24  Andy Piper  <andy@xemacs.org>
15166
15167         * redisplay-output.c (compare_runes): use image_instance_changed
15168         to detect changes. Do not depend on glyphs_changed, only depend on
15169         dirtiness.
15170          (redisplay_output_layout): add debug messages.
15171         (compare_runes): ditto.
15172
15173         * glyphs.h: declare new functions.
15174         (struct Lisp_Image_Instance): remove percent and associated
15175         accessors.
15176
15177         * gui.h: declare new copying functions.
15178
15179         * gui.c (copy_gui_item_tree): new function.
15180         (copy_gui_item): new function.
15181         (gui_item_id_hash): revert to standard hash.
15182         (gui_item_hash): ditto.
15183         (gui_item_hash_internal): deleted.
15184         (mark_gui_item): mark value.
15185         (gui_item_add_keyval_pair): add value.
15186         (gui_item_init): ditto.
15187         (gui_add_item_keywords_to_plist): ditto.
15188         (gui_item_equal): ditto.
15189         (syms_of_gui): add Q_value.
15190
15191         * glyphs-x.c (x_progress_gauge_update): use pending items and
15192         value for setting the state.
15193         (x_update_widget): don't set items from pending here.
15194
15195         * glyphs-widget.c (update_widget): update items here.
15196         (progress_gauge_set_property): use items for storing value. Put
15197         new value in pending items.
15198
15199         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15200         items for new value. Convert percent -> value.
15201         (mswindows_tab_control_update): don't update items here.
15202
15203         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15204         (update_subwindow): ditto.
15205         (image_instance_changed): new function. Compare hash values and
15206         past and present widget items.
15207         (image_instantiate): We more careful about where we instantiate
15208         things.
15209         (image_instantiate): add error checking.
15210
15211         * gutter.c (syms_of_gutter): use -hook.
15212
15213 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15214
15215         * console-tty.c (Fset_console_tty_input_coding_system): Use
15216         Qkeyboard.
15217         (Fset_console_tty_output_coding_system): Use Qterminal.
15218         (tty_init_console): Use Qkeyboard and Qterminal.
15219
15220 2000-03-21  Ben Wing  <ben@xemacs.org>
15221
15222         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15223         From Mike Alexander <mta@arbortext.com>.
15224
15225 2000-03-21  Ben Wing  <ben@xemacs.org>
15226
15227         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15228         process brokenness.  Proper implementation to come.
15229         * callproc.c:
15230         Rename call-process-internal to old-call-process-internal.
15231         New impl. in process.el.
15232
15233 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15234
15235         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15236
15237 2000-03-20  Andy Piper  <andy@xemacs.org>
15238
15239         * glyphs.c (full_list_hash): make hashes of the same elements in
15240         different orders return different values.
15241
15242 2000-03-20  Martin Buchholz <martin@xemacs.org>
15243
15244         * XEmacs 21.2.32 is released.
15245
15246 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15247
15248         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15249         (DFC_MALLOC_USE_CONVERTED_DATA):
15250         Add aliasing-safe casts to allow use with char* or unsigned char*
15251         lvalues.
15252
15253         * eldap.c (Fldap_open):
15254         (Fldap_search_basic):
15255         (Fldap_add):
15256         (Fldap_modify):
15257         Make C++-compilable.
15258         Make sure GCPRO'ed variables are initialized.
15259         Use temp variables to avoid repeated calls to Flength.
15260
15261 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15262
15263         * sysfile.h:
15264         Make sure PATH_MAX is always defined.
15265         Include limits.h for PATH_MAX.
15266         Deprecate use of MAXPATHLEN.
15267
15268 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15269
15270         * emacs.c: Add reinit_vars_of_fileio.
15271         * symsinit.h: Add reinit_vars_of_fileio.
15272         * fileio.c (reinit_vars_of_fileio): New.
15273         * fileio.c (Fmake_temp_name):
15274         Initialize temp_name random number from microseconds to make
15275         collisions even less likely.  Initialize always at process startup
15276         time.  (make-temp-name) used to return the same file name twice in
15277         a row when PDUMP.
15278         Random stylistic fiddling.
15279         Comment fixes.
15280
15281 2000-03-20  Andy Piper  <andy@xemacs.org>
15282
15283         * glyphs.c (image_instantiate): allow text glyphs to be
15284         instantiated in the minibuffer window.
15285
15286 2000-03-19  Andy Piper  <andy@xemacs.org>
15287
15288         * glyphs.c (image_instance_hash): be careful about which items we
15289         hash on.
15290
15291         * glyphs-widget.c (tab_control_set_property): record into pending
15292         items rather than the actual items.
15293
15294         * glyphs-x.c (x_update_widget): use pending items to update with.
15295
15296         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15297         to update with.
15298
15299         * glyphs.c (mark_image_instance): mark pending items.
15300
15301         * window.c (Fset_window_configuration): record the buffer.
15302         (Fselect_window): totally revert previous change which breaks many
15303         things.
15304
15305 2000-03-18  Andy Piper  <andy@xemacs.org>
15306
15307         * glyphs-msw.c (mswindows_tab_control_update): force selected
15308         item.
15309
15310         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15311         window domain cache, otherwise we get inconsistencies at
15312         startup. There is something fishy at startup which can lead to the
15313         minibuffer being the selected window when the gutter content is
15314         instantiated.
15315
15316         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15317         gcpros.
15318         (parse_gui_item_tree_children): ditto.
15319         (parse_gui_item_tree_item): ditto.
15320
15321         * glyphs.c (Fupdate_widget_instances): return something.
15322
15323 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15324
15325         * window.c (Fselect_window): Undo 2000-03-17 change.
15326
15327 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15328
15329         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15330         against v7.0 libraries.  Insta-coredump city until the postgres
15331         folks fix it.
15332
15333 2000-03-17  Andy Piper  <andy@xemacs.org>
15334
15335         * faces.c (complex_vars_of_faces): don't give the widget face an
15336         inherited background pixmap.
15337
15338         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15339         selected item.
15340
15341         * event-stream.c (Fdispatch_non_command_events): return something.
15342
15343         * gutter.c (output_gutter): use widget face.
15344         (clear_gutter): ditto.
15345
15346         * NEWS: adjust again.
15347
15348         * window.c (Fselect_window): make sure this runs to completion to
15349         avoid oddities with Fset_window_configuration.
15350         (Fcurrent_window_configuration): in general do not save the
15351         minibuffer as the selected window.
15352
15353         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15354
15355 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15356
15357         * emacs.c (Frunning_temacs_p): Revert previous patch.
15358         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15359
15360 2000-03-16  Andy Piper  <andy@xemacs.org>
15361
15362         * glyphs-x.c (x_tab_control_update): if no widget values then
15363         return.
15364
15365         * NEWS: update for new features.
15366
15367         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15368         synthetic event to the native system.
15369         (reinit_vars_of_event_Xt): set force_event_pending to
15370         emacs_Xt_force_event_pending.
15371
15372         * events.h (struct event_stream): add force_event_pending.
15373
15374         * specifier.c (recompute_one_cached_specifier_in_window): add
15375         comment.
15376
15377         * redisplay.c (redisplay_frame): don't call
15378         update_frame_subwindows. Reset subwindow cachels when
15379         subwindows_changed, removing this was an optimization too far.
15380
15381         * redisplay-output.c (compare_runes): reorganize so that we catch
15382         glyph changes when we want them. Set optimize_output when this
15383         would help layouts.
15384         (redisplay_output_layout): remove frame_really_changed, use
15385         optimize_output instead.
15386
15387         * redisplay-msw.c (mswindows_output_display_block): reset
15388         optimize_output after outputting a glyph.
15389         * redisplay-x.c (x_output_display_block): ditto.
15390         * redisplay-tty.c (tty_output_display_block): ditto.
15391
15392         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15393         functions.
15394         (gutter_specs_changed): do specific gutter positions.
15395         (top_gutter_specs_changed): new function. Only update the
15396         specified gutter specs.
15397         (bottom_gutter_specs_changed): ditto.
15398         (left_gutter_specs_changed): ditto.
15399         (right_gutter_specs_changed): ditto.
15400
15401         * gui.c (gui_item_hash_internal): new function, does a real hash.
15402         (gui_item_id_hash): use it.
15403         (gui_item_hash): hash the eval'ed gui_item.
15404
15405         * gui-x.c (popup_selection_callback): send an eval event to call
15406         Fupdate_widget_instances.
15407
15408         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15409         to call Fupdate_widget_instances.
15410
15411         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15412         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15413
15414         * glyphs.c: (update_frame_subwindows): deleted.
15415         (Fupdate_widget_instances): new function for updating the dirty
15416         state of widgets that might have changed.
15417         (syms_of_glyphs): add Qupdate_widget_instances.
15418         (full_list_hash): hash a list completely.
15419         (image_instance_hash): use it for items and properties.
15420
15421         * frame-msw.c (mswindows_size_frame_internal): remove unused
15422         variable.
15423
15424         * faces.h (struct face_cachel): fix comment.
15425
15426         * event-stream.c (Fdispatch_non_command_events): new
15427         function. Process non-command events, forcing an event cycle
15428         beforehand.
15429         (syms_of_event_stream): declare.
15430         (event_stream_force_event_pending): new function. Force an event
15431         on the native event queue so that an event cycle will occur next
15432         time we check.
15433
15434         * event-msw.c:
15435         (struct ntpipe_shove_stream):
15436         (mswindows_enqueue_dispatch_event):
15437         (mswindows_dequeue_dispatch_event):
15438         (mswindows_cancel_dispatch_event):
15439         (mswindows_pump_outstanding_events):
15440         (mswindows_drain_windows_queue):
15441         (mswindows_handle_paint):
15442         (mswindows_wnd_proc):
15443         (mswindows_key_to_emacs_keysym):
15444         (get_process_input_waitable):
15445         (emacs_mswindows_delete_stream_pair): re-indent file.
15446         (mswindows_need_event): do not process further fds if the windows
15447         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15448         fixes the 100% cpu problem.
15449         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15450
15451 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15452
15453         * alloc.h: New.
15454         * dumper.h: New.
15455         * dumper.c: New.
15456
15457         * emacs.c: Moved dump file searching to dumper.c.
15458         (Frunning_temacs_p): Fixed.
15459
15460         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15461         last_lrecord_type_index_assigned.
15462
15463 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15464
15465         * symsinit.h: Added reinit parameter to init_console_stream
15466         declaration.
15467
15468         * lisp.h: Added file parameter to pdump_load declaration.
15469
15470         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15471         support.  Added dump file searching.
15472
15473         * config.h.in: Added EMACS_PROGNAME.
15474
15475         * console-stream.c (init_console_stream): Fix reinitialisation
15476         when running from temacs.
15477
15478         * alloc.c (pdump): Add id support.
15479         (pdump_load): Add file parameter and signature/id support.
15480
15481         * Makefile.in.in: Add full pdump support.
15482
15483 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15484
15485         * postgresql.c: Update documentation to reflect latest code
15486         status.
15487         (print_result): Show tuple counts in printed representation when
15488         appropriate.
15489         (Fpq_put_nbytes): MULE-ize.
15490         (Fpq_get_line_async): Ditto.
15491
15492 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15493
15494         * postgresql.c (Fpq_lo_import): Fix return value.
15495         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15496
15497 2000-03-13  Ben Wing  <ben@xemacs.org>
15498
15499         * alloc.c (pdump_load):
15500         Fix compile warning under mswin.
15501
15502 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15503
15504         * postgresql.c: Mule-ization, bug fixes.
15505         Use PG_CODING to encapsulate coding system name changes.
15506         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15507         (pg-coding-system): Create.
15508
15509         (Fpq_conn_defaults): Mule-ize.
15510         (Fpq_connectdb): Mule-ize & bug fix.
15511         (Fpq_connect_start): Mule-ize.
15512         (Fpq_set_client_encoding): Mule-ize.
15513         (Fpq_finish): Document `DEAD' connection status.
15514         (Fpq_clear): Ditto.
15515         (Fpq_pgconn): Mule-ize.
15516         (Fpq_exec): Mule-ize & bug fix.
15517         (Fpq_send_query): Ditto.
15518         (Fpq_get_result): Ditto.
15519         (Fpq_res_status): Mule-ize.
15520         (Fpq_result_error_message): Mule-ize.
15521         (Fpq_ntuples): fix comments.
15522         (Fpq_fname): Mule-ize.
15523         (Fpq_fnumber): Mule-ize.
15524         (Fpq_ftype): fix comments.
15525         (Fpq_get_value): Mule-ize.
15526         (Fpq_cmd_status): Ditto.
15527         (Fpq_cmd_tuples): Ditto.
15528         (Fpq_oid_value): Ditto.
15529         (Fpq_notifies): Ditto.
15530         (Fpq_lo_import): Ditto.
15531         (Fpq_lo_export): Ditto.
15532         (Fpq_get_line): Ditto.
15533         (Fpq_put_line): Mule-ize and bug fix.
15534         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15535
15536 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15537
15538         * postgresql.c (vars_of_postgresql): Mule-ize.
15539         (Fpq_conn_defaults): Ditto.
15540
15541 2000-03-12  Ben Wing  <ben@xemacs.org>
15542
15543         * alloc.c (Fmake_byte_code):
15544         * alloc.c (debug_string_purity_print):
15545         * alloc.c (pdump_backtrace):
15546         * alloc.c (pdump_get_indirect_count):
15547         * alloc.c (pdump_register_sub):
15548         * alloc.c (pdump_register_object):
15549         * alloc.c (pdump_register_struct):
15550         * alloc.c (pdump_dump_data):
15551         * alloc.c (pdump_reloc_one):
15552         Minor cleanups.
15553
15554         * console-msw.c:
15555         * console-msw.c (GetConsoleHwnd):
15556         * console-msw.c (msw_hide_console):
15557         * console-msw.c (msw_show_console):
15558         * console-msw.c (msw_ensure_console_buffered):
15559         * console-msw.c (msw_output_console_string):
15560         * console-msw.c (console_type_create_mswindows):
15561
15562         a) Added functions to manipulate the console window for use with
15563         shell support.
15564
15565         b) Added support for writing text to the console, which is now
15566         used under Windows when xemacs is not being run non-interactively,
15567         to write text that would otherwise be destined for stdout because
15568         under these circumstances, text written to stdout tends to
15569         disappear and not be seen.
15570
15571         * console-msw.h:
15572         * event-Xt.c:
15573         * event-Xt.c (x_event_to_emacs_event):
15574         * event-Xt.c (describe_event_window):
15575         * events-mod.h (XEMACS_MOD_CONTROL):
15576         * events.c:
15577         * events.c (Fmake_event):
15578         * events.c (character_to_event):
15579         * events.c (event_to_character):
15580         * events.c (format_event_object):
15581         * events.c (Fevent_modifiers):
15582         * events.h:
15583         * events.h (struct key_data):
15584         * events.h (struct button_data):
15585         * events.h (struct misc_user_data):
15586         * frame-x.c (Fcde_start_drag_internal):
15587         * frame-x.c (Foffix_start_drag_internal):
15588         * gpmevent.c (Freceive_gpm_event):
15589         * keymap.c:
15590         * keymap.c (bucky_sym_to_bucky_bit):
15591         * keymap.c (control_meta_superify):
15592         * keymap.c (make_key_description):
15593         * keymap.c (keymap_lookup_directly):
15594         * keymap.c (create_bucky_submap):
15595         * keymap.c (keymap_store):
15596         * keymap.c (define_key_check_and_coerce_keysym):
15597         * keymap.c (define_key_parser):
15598         * keymap.c (define_key_alternate_name):
15599         * keymap.c (Fdefine_key):
15600         * keymap.c (raw_lookup_key_mapper):
15601         * keymap.c (struct map_keymap_unsorted_closure):
15602         * keymap.c (map_keymap_unsorted_mapper):
15603         * keymap.c (map_keymap_sort_predicate):
15604         * keymap.c (map_keymap_sorted):
15605         * keymap.c (accessible_keymaps_mapper_1):
15606         * keymap.c (where_is_recursive_mapper):
15607         * keymap.c (describe_map_mapper):
15608         * keymap.c (describe_map_sort_predicate):
15609         * keymap.c (describe_map):
15610         * keymap.c (complex_vars_of_keymap):
15611         And a number of other files, the key modifier preprocessor
15612         constants that xemacs uses have names that conflict with constants
15613         defined under MS Windows for other purposes, so they were renamed
15614         to begin with the prefix XEMACS_. The variables that hold such
15615         modifiers were changed to consistently be of type int to fix
15616         various compile warnings.
15617
15618         * console.c (complex_vars_of_console):
15619         * device.c:
15620         * device-msw.c:
15621         * device-msw.c (mswindows_finish_init_device):
15622         * device-msw.c (msw_get_workspace_coords):
15623         * device-msw.c (mswindows_device_system_metrics):
15624         and various other files, added support for a new
15625         device property called offset-workspace which returns the position
15626         of the upper left corner of the workspace area and goes along with
15627         the existing size-workspace property.
15628
15629         * dialog-msw.c:
15630         * dialog-msw.c (push_bufbyte_string_as_unicode):
15631         * dialog-msw.c (mswindows_popup_dialog_box):
15632         Added support for XEmacs-style accelerator specifications in
15633         button text.  Note: I didn't add support for this under X Windows,
15634         and somebody needs to do this.
15635
15636         * dialog.c:
15637         * dialog.c (Fpopup_dialog_box):
15638         Documented the support for accelerators that was just mentioned.
15639
15640         editfns.c (get_home_directory): Changed behavior under Windows
15641         when HOME not defined; former behavior was irretrievably broken.
15642
15643         * emacs.c:
15644         * emacs.c (main_1):
15645         * emacs.c (main):
15646         * minibuf.c (clear_echo_area_internal):
15647         * minibuf.c (echo_area_append):
15648         * print.c:
15649         * print.c (std_handle_out_external):
15650         * print.c (std_handle_out_va):
15651         * print.c (fatal):
15652         * print.c (write_string_to_stdio_stream):
15653         * print.c (output_string):
15654         * print.c (debug_print):
15655         * print.c (debug_backtrace):
15656         * print.c (debug_short_backtrace):
15657         Cleaned up the code that prints text to stdout so that this can be
15658         changed to output into a console window instead under MS Windows,
15659         as described above.
15660
15661         * eval.c:
15662         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15663         * eval.c (internal_catch):
15664         * eval.c (unwind_to_catch):
15665         * eval.c (throw_or_bomb_out):
15666         * eval.c (condition_case_1):
15667         * eval.c (signal_1):
15668         * eval.c (check_error_state_sanity):
15669         * eval.c (call_with_suspended_errors_1):
15670         * eval.c (call_with_suspended_errors):
15671         * eval.c (reinit_vars_of_eval):
15672         Added code to catch throw loops and check for a pesky bug that may
15673         be gone now.
15674
15675         * event-msw.c:
15676         * event-msw.c (key_needs_default_processing_p):
15677         * event-msw.c (mswindows_wnd_proc):
15678         * event-msw.c (mswindows_modifier_state):
15679         * event-msw.c (emacs_mswindows_quit_p):
15680         * event-msw.c (vars_of_event_mswindows):
15681         a) Added support for using the alt key to select menu items as is
15682         standard under MS Windows.  This is controlled using the variable
15683         menu-accelerator-enabled, just like under X Windows.  There is an
15684         option on the options menu to turn this support on.  I really
15685         think that it should be on by default under Windows, but I'm not
15686         going to make this change yet.
15687
15688         b)  Added support for dynamic display size changes under Windows.
15689
15690         * event-stream.c:
15691         * event-stream.c (maybe_echo_keys):
15692         * event-stream.c (Fnext_event):
15693         * event-stream.c (command_builder_find_leaf):
15694         * event-stream.c (lookup_command_event):
15695         * event-stream.c (execute_command_event):
15696         * event-stream.c (pre_command_hook):
15697         * event-stream.c (post_command_hook):
15698         * event-stream.c (syms_of_event_stream):
15699         * event-stream.c (vars_of_event_stream):
15700         * event-stream.c (complex_vars_of_event_stream):
15701         * events.h (struct command_builder):
15702
15703         a) Tried to clean up a little bit the horribly written x-specific
15704         accelerator code that crept into this file.  I moved this code
15705         into menubar-x.c where it belongs. I also needed to move the
15706         command builder structure into the file events.h because it is
15707         accessed directly by this accelerator code.  What I didn't do, but
15708         which should be done at some point, is to properly abstract this
15709         code using device methods instead of the kludgy way that it
15710         currently hooks into the event code.
15711
15712         b) Added the lisp variables this-command-properties and
15713         last-command- properties, which should be used to synchronize two
15714         adjacent commands in preference to playing games with the variable
15715         this-command, which is typically what happens.
15716
15717         c) Added some slightly nasty code to hook into the lisp support
15718         for shifted- motion-key selection.  This is actually necessary for
15719         somewhat complicated reasons, which are described in
15720         simple.el. (NB: I think the proper thing would be to have the code
15721         that calls the pre and post command hooks also call out to generic
15722         lisp functions in simple.el, where all built-in stuff could be
15723         added.  I will think about this more.)
15724
15725         * event-unixoid.c (poll_fds_for_input):
15726         * lread.c (readchar):
15727         * redisplay-tty.c (tty_clear_frame):
15728         * redisplay-x.c (x_get_gc):
15729         * signal.c (interrupt_signal):
15730         And a whole bunch of other files: fixed up places that printed
15731         directly to stderr to instead call the function stderr_out so that
15732         the changes I made under Windows work correctly.
15733
15734         * filemode.c (mode_string):
15735         Warning fixes.
15736
15737         * frame-msw.c:
15738         * frame-msw.c (mswindows_size_frame_internal):
15739         Fixed the computation of frame size and position to keep the frame
15740         within the workspace area, rather than within the physical
15741         dimensions of the screen, so that the frame doesn't overlap window
15742         manager decorations, such as the start menu and toolbar, typically
15743         at the bottom of the screen.
15744
15745         * frame.c (vars_of_frame):
15746         Changed the default frame title format under MS Windows to consist
15747         of buffername-XEmacs, which is standard under MS Windows.  I think
15748         it might be a good idea to change this everywhere because I think
15749         it is superior to the current frame title format, but this is the
15750         kind of change that is likely to cause some people to get annoyed,
15751         so I'm not making it.
15752
15753         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15754
15755         * gui-msw.c (mswindows_handle_gui_wm_command):
15756         Fixed compile warnings.
15757
15758         * gui-x.c:
15759         * gui-x.c (strdup_and_add_accel):
15760         * gui-x.c (button_item_to_widget_value):
15761         * gui-x.h:
15762         Added code to automatically put an accelerator onto the beginning
15763         of menu items that don't have one as is now the standard, and is
15764         described more later.  Also fixed things so that the menu item
15765         name can be an evaluated expression, again a new standard.
15766
15767         * gui.c:
15768         * gui.c (gui_item_add_keyval_pair):
15769         * gui.c (make_gui_item_from_keywords_internal):
15770         * gui.c (gui_add_item_keywords_to_plist):
15771         * gui.c (gui_item_accelerator):
15772         * gui.c (gui_name_accelerator):
15773         * gui.c (gui_item_included_p):
15774         * gui.c (gui_item_display_flush_left):
15775         * gui.c (gui_item_display_flush_right):
15776         * gui.c (parse_gui_item_tree_item):
15777         * gui.c (parse_gui_item_tree_children):
15778         * gui.c (parse_gui_item_tree_list):
15779         Mule-ized.  Cleanup.  GCPRO addition.
15780
15781         * line-number.c (buffer_line_number):
15782         * lisp.h:
15783         * lisp.h (EMACS_INT_MAX):
15784         Added the manifest constant EMACS_INT_MIN corresponding to the
15785         existing constant EMACS_INT_MAX.  This is partially to fix compile
15786         warnings under Windows, and partly for cleanliness.
15787
15788         * menubar-msw.c:
15789         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15790         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15791         * menubar-msw.c (displayable_menu_item):
15792         * menubar-msw.c (populate_menu_add_item):
15793         * menubar-msw.c (populate_or_checksum_helper):
15794         * menubar-msw.c (populate_menu):
15795         * menubar-msw.c (update_frame_menubar_maybe):
15796         * menubar-msw.c (prune_menubar):
15797         * menubar-msw.c (msw_char_is_accelerator):
15798         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15799         * menubar-msw.c (mswindows_handle_wm_command):
15800         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15801         * menubar-msw.c (mswindows_handle_wm_initmenu):
15802         * menubar-msw.c (mswindows_update_frame_menubars):
15803         * menubar-msw.c (mswindows_free_frame_menubars):
15804         * menubar-msw.c (mswindows_popup_menu):
15805         Fixed a bug in handling accelerators where an extra character
15806         would be displayed in the menu item.  Also generalized the
15807         function displayable_menu_item because it is now used by the
15808         dialog box code as well.  And finally, added code in the functions
15809         that create the menubar to extract a list of accelerators for the
15810         top level menubar, which is used in the event code to determine
15811         whether a particular alt-key combination should be used to invoke
15812         a menu item, or should be passed through to access the standard
15813         XEmacs keymap binding for this key combination.
15814
15815         Much needed GCPROing.
15816
15817         * menubar-x.c:
15818         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15819         * menubar-x.c (menu_item_descriptor_to_widget_value):
15820         * menubar-x.c (restore_in_menu_callback):
15821         * menubar-x.c (x_popup_menu):
15822         * menubar-x.c (menu_move_up):
15823         * menubar-x.c (menu_move_down):
15824         * menubar-x.c (menu_move_left):
15825         * menubar-x.c (menu_move_right):
15826         * menubar-x.c (menu_select_item):
15827         * menubar-x.c (command_builder_operate_menu_accelerator):
15828         * menubar-x.c (menu_accelerator_junk_on_error):
15829         * menubar-x.c (command_builder_find_menu_accelerator):
15830         * menubar-x.c (Faccelerate_menu):
15831         * menubar.h:
15832         Moved a whole bunch of code here that was previously in
15833         event-stream.c as described above.  There is also code connected
15834         to the new standard of adding an accelerator to the beginning of
15835         menu items that don't have one as described above and below.
15836
15837         * menubar.c:
15838         * menubar.c (menu_parse_submenu_keywords):
15839         * menubar.c (Fmenu_find_real_submenu):
15840         * menubar.c (Fnormalize_menu_item_name):
15841         * menubar.c (syms_of_menubar):
15842         * menubar.c (vars_of_menubar):
15843         * menubar.c (complex_vars_of_menubar):
15844
15845         a) Cleaned up a bunch of documentation and improved it.
15846
15847         b) XEmacs now automatically adds an accelerator onto the beginning
15848         of any menu items that don't have one.  I did this because there
15849         will inevitably be some menu items on the main menubar that don't
15850         have accelerators on them because the package that adds that
15851         particular menu item hasn't yet been fixed up to have accelerators
15852         in them and it looked rather strange to have some items with and
15853         some items without accelerators, especially since even in items
15854         without accelerators, you can, at least under windows, still
15855         access the item through an accelerator corresponding to the first
15856         character in the item's name.  If people don't like this behavior,
15857         I can add a variable to turn it off optionally, but I'm not sure
15858         this is a good idea because we really do need to have accelerators
15859         on all of the menu items, and if a package doesn't like the
15860         accelerators being put on the first character, then it should put
15861         the accelerators where they belong.
15862
15863         c) I made a behavior change, which is that the descriptor that
15864         specifies the text of the menu item, which formerly was just a
15865         string, can now also be an evaluated expression.  This makes this
15866         descriptor parallel with all of the others, which could also be
15867         evaluated expressions.  This also obviates the need for the
15868         keyword :label, which was previously listed in the documentation
15869         as unimplemented, and which was for the same purpose.
15870
15871         d) GCPROing.
15872
15873         * ntproc.c:
15874         * ntproc.c (new_child):
15875         * ntproc.c (sys_spawnve):
15876         * ntproc.c (find_child_console):
15877         * ntproc.c (sys_kill):
15878         Fixed compile warnings.  By the way, this file should really go
15879         away entirely, and this will happen as soon as Kirill makes his
15880         final round of process cleanups, which affect the function
15881         call-process.
15882
15883         * process-nt.c:
15884         * process-nt.c (struct nt_process_data):
15885         * process-nt.c (find_process_from_pid):
15886         * process-nt.c (send_signal_the_nt_way):
15887         * process-nt.c (enable_child_signals):
15888         * process-nt.c (find_child_console):
15889         * process-nt.c (send_signal_the_95_way):
15890         * process-nt.c (nt_finalize_process_data):
15891         * process-nt.c (ensure_console_window_exists):
15892         * process-nt.c (nt_create_process):
15893         * process-nt.c (nt_kill_child_process):
15894         * process-nt.c (nt_kill_process_by_pid):
15895         * process-nt.c (nt_open_network_stream):
15896         * process-nt.c (vars_of_process_nt):
15897         Copied over code from Emacs 20.5 to correctly send signals to sub-
15898         processes under Windows 95.  Also added code to automatically
15899         create and hide console window when a sub-process is created under
15900         Windows 95, which obviates the need for the separate runemacs.exe
15901         executable, and finally implemented some variables that were
15902         implemented in Emacs 20.5, but previously not in XEmacs.  These
15903         include mswindows- start-process-share-console and
15904         mswindows-start-process-inherit-error-mode. (Both of these only
15905         apply to Windows 95.)
15906
15907         * regex.c (regex_compile): Fixed a compile warning.
15908
15909         * select-msw.c:
15910         * select-msw.c (mswindows_own_selection):
15911         * select-msw.c (mswindows_get_foreign_selection):
15912         * select-msw.c (mswindows_disown_selection):
15913         * select-msw.c (console_type_create_select_mswindows):
15914         * select-msw.c (syms_of_select_mswindows):
15915         Cleaned up the file and implemented the device method
15916         selection_exists_p, which had accidentally been left out.  Also
15917         removed four lisp functions that were remnants from before the
15918         time when the selection code was properly device abstracted.
15919         These functions are no longer needed because there are generic
15920         equivalents, and because they were added recently and don't exist
15921         in FSF Emacs, I don't think there's any problem with just deleting
15922         them.
15923
15924         * sysdep.c:
15925         * sysdep.c (sys_subshell):
15926         Fixed a compile warning, although in this case there's probably
15927         something wrong with this code, and it ought to be looked into
15928         more thoroughly by somebody who understands it.
15929
15930         * window.c:
15931         * window.c (Fwindow_text_area_height):
15932         * window.c (Fwindow_width):
15933         * window.c (Fwindow_full_width):
15934         * window.c (Fwindow_pixel_width):
15935         * window.c (debug_print_window):
15936         * window.c (syms_of_window):
15937         Added functions window-text-area-height and window-full-width,
15938         which are functions for returning various width and height
15939         characteristics of a window. (One of these functions is necessary
15940         for making the file dialog box work correctly, and the other one
15941         was added for completeness.)  Also added a table to the
15942         documentation for window-height which describes the entire scheme
15943         for accessing width and height characteristics of a window.
15944
15945 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15946
15947         * nt.c (fstat): Added a comment for another problem with
15948         non-encapsulated [f]stat(), reported by Adrian Aichner
15949         <aichner@ecf.teradyne.com>.
15950
15951 2000-03-11  Andy Piper  <andy@xemacs.org>
15952
15953         * window.c (make_dummy_parent): initialize subwindow instance
15954         cache.
15955         (Fset_window_configuration): zero extent_modiff.
15956
15957 2000-03-10  Andy Piper  <andy@xemacs.org>
15958
15959         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15960         more changes can be triggered.
15961         (Fredisplay_frame): ditto.
15962         (Fredraw_device): ditto.
15963         (Fredisplay_device): ditto.
15964         (redisplay_frame): make non-static.
15965         (redisplay_frame): call update_frame_gutter_geometry outside of
15966         display proper.
15967
15968         * gutter.h: declare update_frame_gutter_geometry.
15969
15970         * redisplay.h: declare redisplay_frame.
15971
15972         * gutter.c (update_frame_gutter_geometry): move geometry changes
15973         in update_frame_gutters here. Geometry changes can only occur
15974         outside of redisplay.
15975         (update_frame_gutters): remove geometry change code.
15976         (Fredisplay_gutter_area): make sure that we are in display when we
15977         update and that we have flushed any size changes.
15978
15979 2000-03-11  Andy Piper  <andy@xemacs.org>
15980
15981         * alloc.c (pdump_dump_data): remove i & count shadows.
15982
15983 2000-02-27  Mike Alexander  <mta@arbortext.com>
15984
15985         * sysdep.h: Declare pdump_read_file
15986
15987         * sysdep.c (pdump_read_file): New function
15988
15989         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15990         dump data
15991
15992 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15993
15994         * lrecord.h: add `lrecord_type_pgsetenv'.
15995
15996 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15997
15998         * symsinit.h: declare (vars|syms)_of* functions.
15999         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
16000
16001 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
16002
16003         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
16004
16005         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
16006         GCCs.
16007
16008         * emacs.c (main_1): Call postgres initialization code.
16009
16010         * postgresql.h: New file.  PostgreSQL RDBMS support.
16011         * postgresql.c: New file.
16012
16013 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
16014
16015         * redisplay-output.c (redisplay_output_display_block): Disable
16016         redundant code.
16017
16018 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16019
16020         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
16021         (Fcanna_henkan_next): Ditto.
16022         (Fcanna_bunsetu_henkou): Ditto.
16023         (Fcanna_henkan_kakutei): Ditto.
16024         (Fcanna_henkan_end): Ditto.
16025         (Fcanna_henkan_quit): Ditto.
16026         (Fcanna_henkan_next): Set retun value correctly.
16027         (c2mu): Use unsigned char instead of signed char.
16028
16029 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16030
16031         * emacs.c (main_1): Always call syms_of_gui.
16032         * inline.c: include gui.h
16033
16034 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16035
16036         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
16037         converted to Lisp_Object.
16038         (Qtop_bottom): New variable.
16039         (syms_of_redisplay): Initialize it.
16040         * redisplay.h (Vvisible_bell): Ditto.
16041         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
16042         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
16043         only flash top and bottom.
16044
16045 2000-03-08  Andy Piper  <andy@xemacs.org>
16046
16047         * buffer.c (Frename_buffer): record new buffer name the right way.
16048
16049 2000-03-08  Andy Piper  <andy@xemacs.org>
16050
16051         * glyphs.c (update_subwindow): increase hash depth so that widget
16052         items get picked up properly.
16053
16054         * redisplay-output.c (compare_runes): increase hash depth so that
16055         widget items get picked up properly.
16056
16057 2000-03-08  Andy Piper  <andy@xemacs.org>
16058
16059         * gutter.c (output_gutter): add some debug.
16060
16061         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
16062         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
16063         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
16064
16065         * redisplay-output.c (compare_runes): use display_hash to
16066         determine if glyphs really are not the same.
16067
16068         * glyphs.c (update_subwindow): check display_hash to see if
16069         anything really needs to be updated. If not then do
16070         nothing. Record the display_hash after updating.
16071         (image_instance_equal): compare the image_instance face also.
16072
16073 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
16074
16075         * redisplay.h: Fix comment style.
16076
16077 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16078
16079         * consle-msw.h (struct mswindows_frame):
16080         Added new member paint_pending to indicate whether a WM_PAINT
16081         magic event has been queued for this frame.
16082
16083         * event-msw.c (mswindows_drain_windows_queue):
16084         Don't queue a WM_PAINT magic event if one is already queued.
16085         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
16086
16087         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
16088
16089 2000-03-07  Didier Verna  <didier@xemacs.org>
16090
16091         * dired.c: #include `regex.h' after `sysfile.h'.
16092
16093 2000-03-06  Martin Buchholz  <martin@xemacs.org>
16094
16095         * sound.c (init_nas_sound): Fix compiler warning.
16096
16097         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16098         (FREE_STRUCT_P):
16099         (MARK_STRUCT_AS_FREE):
16100         (MARK_STRUCT_AS_NOT_FREE):
16101         Make `gcc -fstrict-aliasing' work properly.
16102
16103 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16104
16105         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16106         (mswindows_delete_device): Call CoUnnitialize().
16107
16108         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16109
16110 2000-02-25    <CraigL@DyCon.com>
16111
16112         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16113         <errno.h>.
16114
16115         * sysdep.c: This extern declaration for environ prevents MinGW
16116         from finding the variable in CRTDLL.DLL.
16117
16118         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16119         windows headers.
16120         (SHGFI_EXETYPE): ..
16121         (WM_MOUSEWHEEL): ..
16122         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16123         definitions.
16124         (MMRESULT): Removed, now defined in cygwin's windows headers.
16125         (TIMECAPS): ..
16126         (uid_t,gid_t,pid_t,ssize_t): ..
16127         (_timeb): Removed, MinGW defines both _timeb and timeb.
16128         (HAVE_H_ERRNO): Added.
16129         (HAVE_TZNAME): Added, configure is not detecting this.
16130
16131 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16132
16133         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16134         * syntax.c (syntax_match): Use it.
16135
16136         * cmds.c: Import auto-fill-chars from FSF Emacs.
16137         (Vauto_fill_chars): New variables.
16138         (internal_self_insert): Check Vauto_fill_chars.
16139         (vars_of_cmds):
16140         Declare auto-fill-chars as a Lisp variable and initialize it.
16141
16142 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16143
16144         * fileio.c (Fmake_symbolic_link):
16145         (Ffile_symlink_p):
16146         Run handlers even if local machine doesn't have symlinks.
16147
16148 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16149
16150         * event-msw.c (mswindows_drain_windows_queue):
16151         Don't generate paint magic events for non-XEmacs frames.
16152
16153 2000-03-05  Andy Piper  <andy@xemacs.org>
16154
16155         * redisplay.c (redisplay_frame): generate_displayable_area and
16156         friends assumes that we are not in GC, we therefore have to make
16157         sure that this doesn't happen.
16158
16159         * gutter.c (calculate_gutter_size): generate_displayable_area
16160         assumes that we are not in GC, we therefore have to make sure that
16161         this doesn't happen.
16162
16163 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16164
16165         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16166
16167 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16168
16169         * redisplay.c (regenerate_window): Make sure we set a sane value
16170         for end_pos even if we jump out of the loop.
16171         (regenerate_window): Answer Ben's question :-).
16172         (start_end_of_last_line): Add may_error argument.
16173         (start_of_last_line):
16174         (end_of_last_line): Pass may_error = 0.
16175         (end_of_last_line_may_error): New function.
16176         (pixel_to_glyph_translation): Use it, so we don't crash in
16177         event_to_glyph.
16178
16179 2000-03-04  Andy Piper  <andy@xemacs.org>
16180
16181         * window.h (struct window): add gutter_extent_modiff.
16182
16183         * window.c (allocate_window): zero out gutter_extent_modiff.
16184
16185         * redisplay.h: declare sync_display_line_structs.
16186
16187         * redisplay.c (add_glyph_rune): add a better comment.
16188
16189         * redisplay-output.c (sync_display_line_structs): made non-static.
16190         (compare_runes): remove unneccesary glyph cachel access.
16191
16192         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16193
16194         * gutter.c (output_gutter): don't output the gutter if extent
16195         changes only involve extents in buffers. use 4 sets of display
16196         lines.
16197         (gutter_extent_signal_changed_region_maybe): new function. Mark
16198         extents in gutters as changed.
16199         (update_frame_gutters): use 4 sets of display lines.
16200         (reset_gutter_display_lines): ditto.
16201         (free_frame_gutters): ditto.
16202         (redraw_exposed_gutter): force output of gutters.
16203
16204         * frame.h (struct frame): add 4 sets of gutter display lines.
16205
16206         * extents.c: (extent_changed_for_redisplay): signal changes to
16207         extents in strings in the gutter as well as extents in buffers.
16208
16209 2000-03-02  Andy Piper  <andy@xemacs.org>
16210
16211         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16212
16213         * frame.c (Fmake_frame): make sure the gutters get initialized
16214         after the frame is visible.
16215         (set_frame_selected_window): re-arrange compilation macros a
16216         little.
16217         (change_frame_size_1): mark gutters changed.
16218
16219         * device.c (Fset_device_class): mark gutters changed.
16220
16221 2000-03-01  Andy Piper  <andy@xemacs.org>
16222
16223         * window.c (window_top_frame_gutter_height): deleted.
16224         (window_bottom_frame_gutter_height): ditto.
16225         (window_left_frame_gutter_height): ditto.
16226         (window_right_frame_gutter_height): ditto.
16227         (window_top_gutter_height): don't use them.
16228         (window_bottom_gutter_height): ditto.
16229         (window_left_gutter_width): ditto.
16230         (window_right_gutter_width): ditto.
16231         (Fsplit_window): ditto.
16232         (Fwindow_pixel_edges): don't use border dimensions here.
16233
16234         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16235         (update_scrollbar_instance): ditto.
16236
16237         * redisplay.c (generate_modeline): don't take gutters into account.
16238         (generate_modeline): ditto.
16239         (redisplay_frame): small gutter display optimization.
16240
16241         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16242
16243         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16244         gutters into account.
16245
16246         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16247         for window position and type.
16248
16249         * gutter.c (get_gutter_coords): fix for frame gutters.
16250         (update_frame_gutters): update frame geometry if the gutters have
16251         changed.
16252         (init_frame_gutters): record current gutter geometries.
16253
16254         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16255         var.
16256         (mswindows_widget_instantiate): ditto.
16257
16258         * frame.h (struct frame): add current_gutter_bounds.
16259
16260         * frame.c (change_frame_size_1): position window and minibuffer
16261         appropriately taking into account the frame gutters.
16262
16263         * frame-x.c: (x_initialize_frame_size): take into account the
16264         frame gutters.
16265
16266 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16267
16268         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16269
16270 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16271
16272         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16273
16274 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16275
16276         * file-coding.c (reset_decoding_stream): Clear previous
16277         detection state when autodetect.
16278
16279 2000-02-29  Didier Verna  <didier@xemacs.org>
16280
16281         * extents.c (set_extent_glyph_1): don't require extents to be
16282         attached.
16283
16284 2000-02-27  Andy Piper  <andy@xemacs.org>
16285
16286         * gutter.c (Fset_default_gutter_position): don't default left and
16287         right gutter visibility to t.
16288         (Fset_default_gutter_position): run
16289         default-gutter-position-changed-hook.
16290         (syms_of_gutter): add default-gutter-position-changed-hook.
16291
16292 2000-02-26  Andy Piper  <andy@xemacs.org>
16293
16294         * specifier.c (Fmake_specifier): add gutter references.
16295
16296         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16297
16298         * lisp.h: declare Fvalid_plist_p.
16299
16300         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16301         as changed.
16302         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16303         well as its visibility so that it gets reconstructed.
16304         (construct_window_gutter_spec): new function. Construct a string
16305         to be displayed in the gutter from a plist of strings. Take care
16306         to only use elements that are declared as visible.
16307         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16308         WINDOW_GUTTER.
16309         (gutter_validate): allow plists of strings in the specifier.
16310         (gutter_specs_changed): construct the real_gutter from the gutter
16311         specs using construct_window_gutter_spec.
16312         (gutter_visible_validate): gutter-visible is a new specifier type.
16313         (Fgutter_visible_specifier_p): new function for the new specifier.
16314         (syms_of_gutter): declare gutter-visible and
16315         Fgutter_visible_specifier_p.
16316         (specifier_type_create_gutter): intitalize new gutter-visible
16317         specifier.
16318         (reinit_specifier_type_create_gutter): ditto.
16319         (specifier_vars_of_gutter): use new specifier type for gutter
16320         visibility.
16321         (init_frame_gutters): construct real_gutter correctly.
16322         (Fgutter_specifier_p): beef up documentation.
16323         (Fgutter_size_specifier_p): ditto.
16324
16325         * winslots.h: add real_gutter slots.
16326
16327 2000-02-25  Andy Piper  <andy@xemacs.org>
16328
16329         * device-msw.c: Be kind to older cygwin versions. From Raymond
16330         Toy <toy@rtp.ericsson.se>.
16331
16332         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16333         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16334
16335 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16336
16337         * elhash.c (MARK_OBJ): Practice macro hygiene.
16338
16339 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16340
16341         * miscplay.c: s/__inline__/inline/g;
16342         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16343         (get_device_compdc): INLINE ==> static inline
16344         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16345         find -name '*.h' | \
16346         xargs global-replace \
16347         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16348
16349 2000-02-25  Andy Piper  <andy@xemacs.org>
16350
16351         * window.c (window_top_frame_gutter_height): new function.
16352         (window_top_window_gutter_height): ditto.
16353         (window_top_gutter_height): use them.
16354         (window_bottom_frame_gutter_height): new function.
16355         (window_bottom_window_gutter_height): ditto.
16356         (window_bottom_gutter_height): use them.
16357         (window_left_window_gutter_width): new function.
16358         (window_left_frame_gutter_width): ditto.
16359         (window_left_gutter_width): use them.
16360         (window_right_window_gutter_width): new function.
16361         (window_right_frame_gutter_width): ditto.
16362         (window_right_gutter_width): use them.
16363         (window_pixel_height): new function. calulate window pixel height
16364         with frame gutter involvement.
16365         (Fsplit_window): calculate new sizes taking frame gutters into
16366         account.
16367         (window_char_height_to_pixel_height): don't include frame gutters.
16368         (window_char_height): use window_pixel_height.
16369         (window_pixheight): rename from window_pixel_height.
16370         (change_window_height): use it.
16371         (window_pixel_height_to_char_height): don't include frame gutters.
16372         (window_char_width_to_pixel_width): ditto.
16373
16374 2000-02-25  Andy Piper  <andy@xemacs.org>
16375
16376         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16377         if it is.
16378
16379 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16380
16381         * alloc.c (staticpro):
16382         (staticpro_nodump):
16383         (dumpstruct):
16384         (dumpopaque):
16385         (pdump_wire):
16386         (pdump_wire_list):
16387         (compact_string_chars):
16388         (pdump_dump_wired):
16389         Convert:  if (foo) abort();  ==>  assert (! foo);
16390
16391         * eldap.c (Fldap_search_basic):
16392         (Fldap_add):
16393         (Fldap_modify):
16394         (Fldap_delete):
16395         Fix compiler warnings, and possible crashes if (random) return
16396         value were to be used.
16397
16398 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16399
16400         * device-msw.c: Workaround ResetDC failure.
16401
16402         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16403         applying a devmode.
16404
16405         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16406         (mswindows_text_width): Do not start printer page.
16407
16408         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16409
16410         * glyphs-msw.c: Added image methods to msprinter console and
16411         msprinter-specific image instantiation.
16412
16413 2000-02-20  Mike Alexander  <mta@arbortext.com>
16414
16415         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16416         to avoid crashes when selection-sets-clipboard is on
16417         (mswindows_own_selection): ditto
16418
16419 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16420
16421         * glyphs-msw.c:
16422         * redisplay-msw.c (get_frame_dc):
16423         (get_frame_compdc):
16424         * console-msw.h:
16425         * device-msw.c (mswindows_init_device):
16426         (mswindows_delete_device):
16427         (msprinter_init_device):
16428         (msprinter_delete_device):
16429         * frame-msw.c (mswindows_init_frame_1):
16430         (mswindows_delete_frame):
16431         (msprinter_init_frame_3):
16432         (msprinter_delete_frame): Move compatible DC to device object from
16433         frame object, for both mswindows and msprinter. Only one at a time
16434         is needed, it is a real waste to have one per frame!
16435
16436 2000-02-23  Andy Piper  <andy@xemacs.org>
16437
16438         * glyphs.c: add dynamic width and height elements.
16439         (image_instance_equal): ditto.
16440
16441         * glyphs-widget.c (widget_query_geometry): calculate width and
16442         height dynamically if required.
16443         (initialize_widget_image_instance): initialize dynamic dimensions.
16444         (widget_instantiate): pick-up dynamic dimensions.
16445
16446         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16447         dynamic determination. Add appropriate macros.
16448
16449         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16450         dimensions safe.
16451         (WINDOW_GUTTER_SIZE): ditto.
16452         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16453
16454         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16455         inline.
16456         (get_frame_dc): ditto.
16457
16458         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16459         here.
16460
16461 2000-02-23  Martin Buchholz <martin@xemacs.org>
16462
16463         * XEmacs 21.2.31 is released.
16464
16465 2000-02-22  Ben Wing <ben@xemacs.org>
16466
16467         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16468
16469 2000-02-22  Andy Piper  <andy@xemacs.org>
16470
16471         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16472
16473 2000-02-21  Mike Sperber <mike@xemacs.org>
16474
16475         * .dbxrc:
16476         * .gdbinit:
16477         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16478         variables.
16479
16480 2000-02-21  Mike Sperber <mike@xemacs.org>
16481
16482         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16483
16484 2000-02-21  Martin Buchholz <martin@xemacs.org>
16485
16486         * XEmacs 21.2.30 is released.
16487
16488 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16489
16490         Performance hacking.
16491         * *.c (syms_of_*):
16492         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16493         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16494         * emacs.c (main_1):
16495         * lisp.h (DEFUN):
16496         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16497         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16498         * symeval.h (DEFVAR_SYMVAL_FWD):
16499         * symbols.c (guts_of_unbound_marker):
16500         Make all c_readonly objects also lisp_readonly and marked for life.
16501         * lrecord.h (struct lrecord_implementation):
16502         Document flags better.
16503         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16504         * lrecord.h (DECLARE_LRECORD):
16505         * lrecord.h (XSETRECORD):
16506         * lrecord.h (RECORDP):
16507         * lrecord.h (RECORD_TYPEP):
16508         * lrecord.h (RECORD_MARKER): New.
16509         * lrecord.h (error_check_*):
16510         * lrecord.h (CONCHECK_NONRECORD):
16511         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16512         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16513         * lrecord.h (set_lheader_implementation):
16514         * lrecord.h (enum lrecord_type): New.
16515         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16516         * alloc.c (disksave_object_finalization_1):
16517         * alloc.c (mark_object):
16518         * alloc.c (lrecord_type_index):
16519         * alloc.c (tick_lcrecord_stats):
16520         * alloc.c (Fgarbage_collect):
16521         * alloc.c (init_alloc_once_early):
16522         * alloc.c (pdump_load):
16523         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16524         * alloc.c (lrecord_type_index): Delete.
16525         Make lisp object type indexes be constant.
16526           Makes (byte-compile) 5% faster.
16527         Put all marker functions into their own array.
16528           Makes (garbage-collect) 5% faster.
16529         Optimize SYMBOL_VALUE_MAGIC_P.
16530           Makes (byte-compile) 2-3% faster.
16531         * config.h.in (gc_checking_assert): New.
16532         * alloc.c: Use gc_checking_assert().
16533         * .dbxrc: Make compatible with new object type implementation.
16534         * .gdbinit: Make compatible with new object type implementation.
16535         * alloc.c: Delete all symbols defined only for debugging, such as
16536         Lisp_Type_Vector and lrecord_charset.
16537
16538 2000-02-21  Andy Piper  <andy@xemacs.org>
16539
16540         * gui-msw.c (Fmswindows_shell_execute): fix file location
16541         problems.
16542
16543         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16544         unshowing so that set_window_buffer doesn't undo
16545         kill_buffer_hook's hard work.
16546
16547         * glyphs-widget.c (tab_control_query_geometry): don't count the
16548         first item when calculating geometry.
16549
16550         * glyphs.c (map_subwindow): remove redundant code.
16551         (update_frame_subwindows): be more circumspect about when to
16552         update subwindows.
16553
16554         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16555         when items haven't changed. Update faces if faces have changed as
16556         well as just the widget face.
16557         (x_tab_control_update): Update faces if faces have changed as well
16558         as just the widget face.
16559
16560 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16561
16562         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16563         registration.
16564         (build_syscolor_string): Use mswindows_color_to_string to try to
16565         get a named color.
16566         (mswindows_device_system_metrics): Reverse the foreground and
16567         background colors so that they match the documentation.
16568
16569         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16570         they match the default Windows palette.
16571         (mswindows_color_to_string): New function.
16572
16573 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16574
16575         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16576
16577 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16578
16579         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16580         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16581
16582         * symbols.c (init_symbols_once_early): Removed obsolete
16583         DATA_SEG_BITS related kludge.
16584         (defvar_magic): Ditto.
16585
16586         * malloc.c: Removed obsolete DATA_SEG_BITS
16587         * ralloc.c: Ditto.
16588         * mem-limits.h: Ditto.
16589
16590         * Makefile.in.in: Removed obsolete HAVE_SHM
16591         * emacs.c: Ditto.
16592
16593 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16594
16595         *  device-msw.c (mswindows_delete_device): Free DDE string
16596         handles.
16597
16598 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16599
16600         * keymap.c (get_keyelt):
16601         * unexnt.c (unexec):
16602         * vm-limit.c (memory_warnings):
16603         * ntheap.c (recreate_heap):
16604         * ntheap.h (UNINIT_PTR):
16605         * select-msw.c (Fmswindows_get_clipboard):
16606         (Fmswindows_set_clipboard):
16607         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16608         * objects-msw.c:
16609         * menubar-msw.c (displayable_menu_item):
16610         * glyphs-msw.c:
16611         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16612         * sysdep.c (sys_subshell):
16613         * process-nt.c (nt_create_process):
16614         * nt.c (normalize_filename):
16615         (dostounix_filename):
16616         (unixtodos_filename):
16617         * ntproc.c (win32_executable_type):
16618         * ntplay.c (play_sound_data_1):
16619         (play_sound_file):
16620         * editfns.c (get_home_directory):
16621         * event-msw.c (struct winsock_stream):
16622         (mswindows_dde_callback):
16623         * device-msw.c (msprinter_init_device):
16624         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16625
16626         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16627         mswindows_clear_toolbar were swapped!
16628
16629         * objects-msw.c:(colormap_t):
16630         (fontmap_t):
16631         * emacs.c (struct standard_args): Fixed const jumble.
16632
16633         * glyphs-widget.c (update_widget): Fixed comparison notation.
16634
16635         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16636
16637         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16638         __declspec(noreturn) syntax.
16639
16640 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16641
16642         * eldap.c (Fldap_open):
16643         (Fldap_search_basic):
16644         (Fldap_add):
16645         (Fldap_modify):
16646         Use new coding system conversion macros.
16647
16648 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16649
16650         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16651
16652 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16653
16654         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16655         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16656
16657         * eldap.c (Qadd, Qreplace): New constant symbols
16658         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16659         interruptions by XEmacs signals
16660         Remove unnecessary calls to slow_down_interrupts and
16661         speed_up_interrupts
16662         (Fldap_search_basic): Renamed from Fldap_search_internal
16663         Added new optional parameter VERBOSE that triggers the
16664         display of progress messages
16665         Remove unnecessary calls to slow_down_interrupts and
16666         speed_up_interrupts
16667         LDAP result code analysis rewritten
16668         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16669         (syms_of_eldap): Define the new symbols and functions
16670
16671
16672 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16673
16674         * realpath.c: Determine PATH_MAX maximally portably.
16675
16676         * insdel.c (bytecount_to_charcount): Optimize.
16677         The function used to be optimized for entirely ASCII sequences.
16678         Now it is optimized for successive characters from the same
16679         charset.  This also wins big for _mostly_ ASCII sequences.
16680
16681         * fileio.c (Ffile_truename): convert return from realpath() using
16682         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16683         - Rewrite GCPROing slightly.
16684
16685         * sysdep.c (sys_open): Do filename conversion, like all other
16686         sys_* functions.  Fixes bug:
16687         (let ((file-name-coding-system 'iso-8859-2))
16688            (write-region x y latin2-name))
16689         ==> writes filename using internal encoding.
16690
16691 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16692
16693         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16694         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16695         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16696         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16697         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16698         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16699         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16700         (CONST_IF_NOT_DEBUG): Delete.
16701         * alloc.c (this_one_is_unmarkable): Delete.
16702         (mark_object): Don't check for this_one_is_unmarkable. Use the
16703         c_readonly flag instead.
16704         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16705
16706 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16707
16708         * event-msw.c (mswindows_drain_windows_queue):
16709         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16710         away redundant repaint events.
16711
16712 2000-02-17  Andy Piper  <andy@xemacs.org>
16713
16714         * redisplay.h: declare mark_redisplay_structs.
16715
16716         * redisplay.c (redisplay_window):
16717         (redisplay_frame): don't check subwindows_state_changed.
16718         (mark_redisplay): mark gutters here.
16719
16720         * glyphs.c: (instantiate_image_instantiator): always layout if we
16721         haven't done so already.
16722         (allocate_image_instance): don't mark as dirty.
16723         (update_subwindow): bind inhibit_quit.
16724
16725         * gutter.c (mark_gutters): new function.
16726
16727         * glyphs-x.c (x_update_widget): Always resize to get round a
16728         widget bug.
16729
16730         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16731         breaking absolutely everything.
16732
16733         * gutter.h: declare mark_gutters.
16734
16735 2000-02-16  Martin Buchholz <martin@xemacs.org>
16736
16737         * XEmacs 21.2.29 is released.
16738
16739 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16740
16741         * fns.c (size_bit_vector): Fix computation of the size.
16742
16743 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16744
16745         * *.[ch]: Change CONST to const globally.
16746         find -name '*.[ch]' | \
16747         xargs global-replace \
16748         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16749         - Remove vestigial references to CONST_IS_LOSING
16750
16751 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16752
16753         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16754         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16755         events instead of dispatching them directly.
16756         (mswindows_handle_paint): New function to do repainting.
16757         (mswindows_wnd_proc):
16758         (emacs_mswindows_handle_magic_event): Call above function.
16759
16760 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16761
16762         * objects-msw.c (mswindows_create_font_variant): Return the new
16763         font handle.
16764         (initialize_font_instance): Get font metrics from the underlined
16765         variant of the font to cope with the case where the underlined
16766         font has a bigger descent.
16767
16768 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16769
16770         * gui.c (gui_item_accelerator): Return the first underlined
16771         character in item name.
16772
16773 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16774
16775         * lisp.h: Added Qprinter.
16776
16777         * general.c (syms_of_general): Initialized it.
16778
16779         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16780         (get_frame_dc):
16781         (get_frame_compdc): Made inline.
16782
16783         * console.h (struct console_methods): Added eject_page method.
16784
16785         * frame.h: Added FRAME_DISPLAY_P and friends.
16786         Aligned backslahes in many macros in more readable fashion.
16787         Added page_number to struct frame, and an accessor macro
16788         for it.
16789
16790         * defice.h: Added DEVICE_DISPLAY_P and friends.
16791
16792         * device.c (Fdevice_printer_p): Used these.
16793
16794         * frame.c (allocate_frame_core): Initialize page number.
16795         (Fprint_job_page_number):
16796         (Fprint_job_eject_page): Implemented.
16797
16798         * frame-msw.c (msprinter_eject_page): Added method.
16799         (msprinter_start_page): Added.
16800
16801         * window.c (Fwindow_truncated_p): Fixed docstring.
16802         (Fwindow_last_line_visible_height): Implemented.
16803
16804 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16805
16806         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16807
16808 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16809
16810         * syntax.c (scan_words): Always advance at least one character.
16811
16812 2000-02-13  Andy Piper  <andy@xemacs.org>
16813
16814         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16815         to make sure the glyph is in the cachels.
16816
16817         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16818         global image instance flag.
16819         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16820         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16821
16822         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16823         (Fset_image_instance_property): mark layout as changed.
16824         (invalidate_glyph_geometry_maybe): mark layout as changed.
16825         (glyph_width): use new NEEDS_LAYOUT macro.
16826         (glyph_ascent): ditto.
16827         (glyph_descent): ditto.
16828         (glyph_height): ditto.
16829         (image_instance_layout): mark layout as clean after laying out.
16830         (update_subwindow): don't mark layout as clean here.
16831
16832         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16833         should no longer be needed.
16834
16835         * glyphs-x.c (x_update_widget): sanitize asserts.
16836         (x_finalize_image_instance): sanitize assignment to widgets.
16837
16838         * glyphs-widget.c (widget_instantiate): don't need to clear the
16839         layout flag here.
16840
16841 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16842
16843         * sysdep.c (getcwd): Use standard prototype.
16844         * sysdep.h (getcwd): Use standard prototype.
16845
16846         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16847         (sequence, start, end).
16848         Remove redundant type checking.
16849         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16850         view of `caller-protects') to avoid a crash where the real fix was
16851         found elsewhere.
16852
16853 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16854
16855         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16856
16857         * s/sol2.h: Remove feature macro initialization.
16858
16859         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16860         (vector_hash): New.  Code from internal_hash.
16861         * lrecord.h:
16862         Fix up allocation subsystem comments.
16863
16864         * config.h.in: Add __EXTENSIONS__ for Solaris.
16865
16866         * systime.h (EMACS_GETTIMEOFDAY): New.
16867         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16868         Remove Solaris-specific code.
16869         Use void* for the (ignored) second arg for gettimeofday().
16870
16871         * elhash.c (hash_table_hash): Implement it, finally.
16872         * elhash.c:  Use hashcode_t.
16873
16874         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16875         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16876
16877         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16878         * fns.c (size_bit_vector):
16879         * alloc.c (size_vector):
16880         (make_vector_internal):
16881         (make_bit_vector_internal):
16882         (sweep_bit_vectors_1):
16883         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16884
16885 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16886
16887         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16888         Include strings.h to avoid warnings for bzero and strcasecmp.
16889
16890 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16891
16892         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16893         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16894
16895         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16896         sequence.
16897
16898 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16899
16900         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16901         use a value field instead.
16902         (symbol_value_forward_forward): Use value field.
16903         (DEFVAR_SYMVAL_FWD): Use value field.
16904         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16905         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16906         (DEFVAR_CONST_INT): Ditto.
16907         (DEFVAR_BOOL): Ditto.
16908         (DEFVAR_CONST_BOOL): Ditto.
16909         (DEFVAR_INT_MAGIC): Ditto.
16910         (DEFVAR_BOOL_MAGIC): Ditto.
16911
16912         * symbols.c (guts_of_unbound_marker): Use value field.
16913         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16914         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16915
16916         * lisp.h: Declare dumpopaque and noninteractive1.
16917
16918         * alloc.c (dumpopaque): Added.
16919         (pdump_dump_opaquevec): Added.
16920         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16921         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16922         noninteractive.
16923
16924 2000-02-10  Andy Piper  <andy@xemacs.org>
16925
16926         * glyphs.c (image_instance_layout): if the size changes, mark it
16927         as such.
16928
16929         * redisplay-output.c (redisplay_output_layout): Update the
16930         subwindow here.
16931         (redisplay_output_subwindow): ditto.
16932
16933         * glyphs.c (update_subwindow): make sure we reset flags for
16934         layouts as well as everything else.
16935
16936         * glyphs-widget.c (layout_layout): don't need to set the instances
16937         dimensions here.
16938
16939 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16940
16941         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16942         not HAVE_DLOPEN, which is a lower-level thing.
16943
16944         * .cvsignore: Ignore gmon.out
16945
16946 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16947
16948         * .cvsignore: Ignore portable dumper xemacs.dmp file
16949
16950 2000-02-09  Andy Piper  <andy@xemacs.org>
16951
16952         * redisplay-output.c (redisplay_output_layout): be more clever
16953         about when we output based on the changed flags.
16954
16955         * glyphs.h (struct image_instantiator_methods): add update_method.
16956         (struct Lisp_Image_Instance): add changed flags. Declare new
16957         macros for manipulating them.
16958
16959         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16960         (image_instance_parent_glyph): find an image_instance's parent
16961         glyph or image_instance.
16962         (image_instance_layout): mark the size as changed.
16963         (set_image_instance_dirty_p): new function. mark an image
16964         instance, plus all of its parents, as dirty.
16965         (Fset_image_instance_property): use it.
16966         (Fglyph_animated_timeout_handler): use it.
16967         (update_subwindow): call update_widget and device methods for
16968         update_subwindow. Mark all changed flags as clean.
16969         (Fresize_subwindow): mark size as changed.
16970
16971         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16972         failures.
16973         (x_update_subwindow): only resize subwindows here.
16974         (x_update_widget): new function. Update all changed properties of
16975         a widget.
16976         (x_resize_subwindow): deleted.
16977         (x_widget_set_property): deleted.
16978         (x_progress_gauge_set_property): deleted.
16979         (x_progress_gauge_update): new function. Implement recorded
16980         changes.
16981         (x_tab_control_update): ditto.
16982         (x_tab_control_set_property): deleted.
16983         (console_type_create_glyphs_x): declare new functions.
16984         (image_instantiator_format_create_glyphs_x): ditto.
16985
16986         * glyphs-widget.c (widget_set_property): mark text changed.
16987         (update_widget): new function. Update properties of a widget.
16988         (widget_instantiate): for layouts make sure we set their
16989         children's parent correctly.
16990         (tab_control_set_property): new function. Record changes that will
16991         take place under redisplay's control.
16992         (progress_gauge_set_property): ditto.
16993         (image_instantiator_progress_guage): declare new functions.
16994         (image_instantiator_tab_control): ditto.
16995
16996         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16997         now.
16998         (mswindows_update_widget): new function. Update all properties on
16999         a widget that have changed.
17000         (mswindows_button_update): new function. Update a button's set
17001         state.
17002         (mswindows_tab_control_update): new function. Update the items in
17003         a tab.
17004         (mswindows_tab_control_set_property): deleted.
17005         (mswindows_progress_gauge_update): new function. Update the
17006         progress gauge's progress.
17007         (mswindows_widget_set_property): deleted. This is all done
17008         asynchronously now.
17009         (mswindows_progress_gauge_set_property): ditto.
17010         (console_type_create_glyphs_mswindows): declare new methods.
17011         (image_instantiator_format_create_glyphs_mswindows): ditto.
17012
17013         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
17014         (msprinter_set_frame_properties): ditto.
17015
17016         * console.h (struct console_methods): Add update_widget_method.
17017
17018 2000-02-09  Andy Piper  <andy@xemacs.org>
17019
17020         * gui-msw.c (Fmswindows_shell_execute): Make
17021         mswindows-shell-execute industrial strength.
17022
17023 2000-02-08  Martin Buchholz  <martin@xemacs.org>
17024
17025         * lrecord.h: Make macro argument `props' match member function `plist'.
17026         * fns.c (Fget):
17027         * fns.c (Fput):
17028         * fns.c (Fremprop):
17029         * fns.c (Fobject_plist):
17030         * alloc.c:
17031         * symbols.c:
17032         Object property list frobbing cleanup.
17033         - Allow any lisp object (compared with `eq'), not just symbols, as
17034           keys in object plists.
17035         - Move symbol plist frobbing into symbols.c, where it belongs.
17036         - Move string plist frobbing into alloc.c, where it belongs.
17037         - Everything's an lrecord now, so no need to test for symbolp, etc.
17038         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
17039
17040         * extents.c: Reorder code to remove declarations.
17041
17042         * frame.h (store_in_alist): Remove useless declaration.
17043
17044 2000-02-07  Martin Buchholz  <martin@xemacs.org>
17045
17046         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
17047         * config.h.in: Add HAVE_XCONVERTCASE.
17048
17049 2000-02-07  Andy Piper  <andy@xemacs.org>
17050
17051         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
17052         it breaks many things.
17053
17054 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
17055
17056         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
17057         actually can start a common comment type.
17058         * src/syntax.h (SYNTAX_END_P): ditto for end.
17059
17060 2000-02-07  Martin Buchholz <martin@xemacs.org>
17061
17062         * XEmacs 21.2.28 is released.
17063
17064 2000-02-06  Martin Buchholz  <martin@xemacs.org>
17065
17066         * event-Xt.c (x_keysym_to_character): New.
17067         (maybe_define_x_key_as_self_inserting_character): New.
17068         (x_has_keysym): New.
17069         Auto-define all keys on the keyboard as self-insert-key.
17070
17071 2000-02-02  Martin Buchholz  <martin@xemacs.org>
17072
17073         * menubar.c (vars_of_menubar): A small code simplification.
17074
17075         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17076
17077         * ExternalShell.c:
17078         * ExternalClient.c:
17079         * EmacsShell-sub.c:
17080         * EmacsManager.c:
17081         * EmacsFrame.c:
17082         Use consistent style for specifying X resources.
17083
17084         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
17085         This makes (dontusethis-set-symbol-value-handler) actually usable.
17086
17087         * lrecord.h (lrecord_decription_type):
17088         * alloc.c (pdump_register_sub):
17089         (pdump_dump_data):
17090         (pdump_reloc_one):
17091         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17092         Comply with XEmacs coding style.
17093         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17094         args, and XD_LISP_OBJECT_ARRAY with 3 args.
17095
17096         * keymap.c (Faccessible_keymaps):
17097         Make (accessible-keymaps map "\C-h") do the Right Thing.
17098         Make (accessible-keymaps map []) do the Right Thing.
17099         Make (accessible-keymaps map "") do the Right Thing.
17100         (check_keymap_definition_loop): New function.
17101         (keymap_store_internal): Keep luser from shooting self in foot,
17102           via (define-key ctl-x-4-map "p" global-map).
17103         Remove fullness slot from struct Lisp_Keymap, since hash tables
17104         are now reliable.
17105         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17106
17107 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17108
17109         * redisplay.c (init_redisplay): Fix small memory leak.
17110         * elhash.h:
17111         * elhash.c (pdump_reorganize_hash_table):
17112         Rename from reorganize_hash_table. Change prototype.
17113         Reuse the original memory for hentries.  Save 100k.
17114         * alloc.c (PDUMP_READ): new macro.
17115         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17116         * alloc.c: No need to #ifndef before #undef.
17117
17118         * print.c: Allow debug_print() to print readably by modifying
17119         debug_print_readably.  Use consistent variable names.
17120
17121         * .dbxrc: Try to get things to work even if stopped in a function
17122         without source available by explicitly specifying source files.
17123 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17124
17125         * unexnt.c (_start): Removed bogus code which caused loading heap
17126         from differrent executable file.
17127         Removed bogus assignment to _fmode, which caused inconsistencies.
17128
17129 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17130
17131         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17132         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17133         Do not preliminary `#define signal sigset'.
17134
17135         * systime.h: Do not prototype environ on windows nt and cygwin,
17136         this conflicts with system header.
17137
17138         * syssignal.h: Use correct define for WINDOWSNT
17139
17140         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17141         with system header.
17142
17143         * sysdep.c (near start of file): Fixed commentary and rearranged
17144         ifdefs in readable order.
17145         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17146         (start_of_text):
17147         (end_of_text):
17148         (end_of_data): Do not compile in if using PDUMP.
17149
17150         * symsinit.h: Prototyped vars_of_nt().
17151
17152         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17153         (find_child_console): Use it.
17154         (sys_kill): Use it.
17155
17156         * ntheap.h: Do not extern os_subtype.
17157
17158         * ntheap.c (cache_system_info): Do not cache unneeded:
17159         nt_major_version, nt_minor_version and os_subtype.
17160         (recreate_heap): Do not compile in when PDUMPing.
17161
17162         * nt.c (geteuid and friends): Use the new varibale
17163         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17164         (init_user_info): Removed the above mentioned hackery.
17165         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17166         stat has been fixed in the C runtime.
17167         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17168
17169         * file-coding.c (struct file_coding_dump): Do not define
17170         ucs_to_mule_table in the struct if not MULE.
17171         (struct struct lrecord_description fcd_description_1): Do not dump
17172         the above.
17173
17174         * emacs.c (main_1): Call vars_of_nt().
17175         (right before Fdump_emacs_data): Don't need lastfile if using both
17176         portabe dumper and system malloc.
17177
17178         * alloc.c (Fmemory_limit): Conditionalized out.
17179         (pdump): Use OPEN_BINARY for the portable dump file.
17180         (pdump_load): Ditto.
17181
17182 2000-02-02  Mike Alexander  <mta@arbortext.com>
17183
17184         * nt.c (convert_time): Set tm_isdst before calling mktime and
17185         avoid calling it at all if the compiler supports 64 bit integers.
17186         Also initialize utc_base_ft before using it.
17187
17188 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17189
17190         * frame.c (change_frame_size_1): Take f->internal_border_width
17191         into consideration when calculating the width of the frame.
17192
17193 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17194
17195         * window.c (frame_min_height):
17196         (frame_size_valid_p):
17197         (frame_pixsize_valid_p): Added.
17198         (check_frame_size): Generalized.
17199
17200         * window.h: Prototyped the above.
17201
17202         * lisp.h:
17203         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17204         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17205         Deleted Vwin32_* and Vbinary_process_* unused variables.
17206
17207         * device-msw.c (msprinter_init_device): Do not get printer font
17208         list; Added DEVMODE functions.
17209
17210         * frame-msw.c: Added lots of printer code.
17211
17212         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17213         general.c.
17214
17215         * console-msw.h: Added more msprinter device private slots.
17216
17217 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17218
17219         * event-msw.c (key_needs_default_processing_p): Added.
17220         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17221
17222 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17223
17224         * glyphs.c (image_instance_layout): Mark image instance as clean
17225         after layout.
17226         (glyph_dirty_p): Removed redundant function.
17227         (invalidate_glyph_geometry_maybe): Added.
17228         (update_glyph_cachel_data): Call it.
17229
17230         * glyphs.h: Prototyped it.
17231
17232         * redisplay.c (add_glyph_rune): Call it.
17233         (redisplay_window): Reset glyphs cachels when frame faces have
17234         changed, thus forcing recomputation of built-in border glyphs.
17235
17236 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17237
17238         * Makefile.in.in: Make portable dumper and purify play well together.
17239         Add imperfect, but better than nothing, support for pdump.
17240         Remove xemacs.dmp when temacs is re-generated.
17241         Don't ignore errors when dumping xemacs.
17242
17243         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17244
17245 2000-01-28  Andy Piper  <andy@xemacs.org>
17246
17247         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17248         (setup_normal_frame): ditto.
17249         (setup_frame_without_minibuffer): ditto.
17250         (setup_minibuffer_frame): ditto.
17251         (delete_frame_internal): ditto.
17252         (Fmake_frame_invisible): ditto.
17253         (Ficonify_frame): ditto.
17254
17255         * window.h: change Fset_window_buffer signature.
17256
17257         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17258         (Fset_window_buffer): allow recording of buffer if the window is
17259         the selected window.
17260         (window_loop): Use new Fset_window signature.
17261
17262 2000-01-23  Daniel Pittman  <daniel@danann.net>
17263
17264         * config.h.in: Added template for `HAVE_ATHENA_3D'
17265
17266 2000-01-29  Andy Piper  <andy@xemacs.org>
17267
17268         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17269
17270         * gutter.c (output_gutter): Don't output if the window isn't live.
17271
17272 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17273
17274         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17275         of 01/12/00: Moved SetFocus back here where it belongs.
17276
17277 2000-01-23  Andy Piper  <andy@xemacs.org>
17278
17279         * s/cygwin32.h: declare printer things.
17280
17281 2000-01-26  Andy Piper  <andy@xemacs.org>
17282
17283         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17284         Alexander.
17285
17286 2000-01-24  Andy Piper  <andy@xemacs.org>
17287
17288         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17289         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17290
17291         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17292
17293         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17294
17295         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17296
17297         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17298         (mswindows_output_display_block): Avoid local shadows.
17299
17300         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17301         (mswindows_enqueue_mouse_button_event): ditto.
17302         (mswindows_handle_gui_wm_command): remove declaration.
17303
17304         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17305         warnings.
17306
17307         * console-msw.h: Avoid shadows.
17308         (mswindows_get_toolbar_button_text):
17309         (emacs_mswindows_create_stream_pair):
17310         (emacs_mswindows_delete_stream_pair):
17311         (mswindows_handle_toolbar_wm_command): declare.
17312
17313         * device-msw.c (build_syscolor_string): Avoid shadows.
17314
17315 2000-01-23  Andy Piper  <andy@xemacs.org>
17316
17317         * glyphs-widget.c (widget_instantiate): reverse the items for
17318         layouts so that children are in the expected order.
17319
17320 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17321
17322         * ralloc.c: safe_bcopy ==> memmove
17323         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17324         * s/msdos.h: Remove BCOPY macros.
17325         * insdel.c (gap_right): Remove BCOPY conditional code.
17326         * insdel.c (gap_left): Remove BCOPY conditional code.
17327         XEmacs demands a working ANSI C compiler - hence memmove.
17328
17329         * regex.c (regex_compile): Remove accidental use of trigraphs.
17330
17331 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17332
17333         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17334         event timestamp.
17335
17336 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17337
17338         * event-msw.c (mswindows_drain_windows_queue): Added the
17339         parameter.
17340         (mswindows_need_event): Commented the call to
17341         mswindows_drain_windows_queue().
17342         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17343         only.
17344
17345         * console-msw.h: Moved a few function prototypes here from
17346         event-msw.c.
17347
17348         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17349         parameter from unsigned short to unsigned long.
17350         (Fmswindows_shell_execute): Added return value.
17351
17352 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17353
17354         * sysdep.c (init_system_name):
17355           process-unix.c (unix_canonicalized_host_name):
17356         Don't call freeaddrinfo() if getaddrinfo() fails.
17357
17358         * process-unix.c (unix_open_unix_network_stream):
17359         Moved the code to get a port # into address loop.
17360
17361 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17362
17363         * buffer.c (reinit_vars_of_buffer):
17364         The right place to initialize conversion_in_dynarr and
17365         conversion_out_dynarr.
17366
17367         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17368
17369         * process-unix.c (unix_canonicalize_host_name): Muleize.
17370         (unix_open_network_stream): Muleize.
17371
17372         * buffer.h: Fix up prototypes for ralloc.c functions.
17373
17374 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17375         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17376         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17377                 instead of gethostbyname()
17378         * process-unix.c: In unix_canonicalize_host_name() and
17379                 unix_open_network_stream(), add code to use getaddrinfo()
17380                 instead of gethostbyname().
17381
17382 2000-01-27  Daniel Pittman <daniel@danann.net>
17383
17384         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17385         libs when built with flat Athena.
17386
17387 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17388
17389         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17390         Use coding standards for function prototypes.
17391
17392 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17393
17394         * dialog-msw.c (push_lisp_string_as_unicode):
17395         * doc.c (unparesseuxify_doc_string):
17396         * dired.c (Fuser_name_completion_1):
17397         * dired.c (Fuser_name_all_completions):
17398         * dired.c (free_user_cache):
17399         * dired.c (user_name_completion):
17400         * console-x.c (get_display_arg_connection):
17401         * minibuf.c (clear_echo_area_internal):
17402         * minibuf.c (echo_area_append):
17403         * eldap.c (Fldap_open):
17404         * eldap.c (Fldap_search_internal):
17405         * frame-x.c (x_set_frame_text_value):
17406         * frame-x.c (x_set_frame_properties):
17407         * frame-x.c (x_create_widgets):
17408         * redisplay-tty.c (term_get_fkeys_1):
17409         * objects-x.c (x_parse_nearest_color):
17410         * objects-x.c (x_valid_color_name_p):
17411         * objects-x.c (x_initialize_font_instance):
17412         * objects-x.c (x_list_fonts):
17413         * objects-x.c (x_find_charset_font):
17414         * tooltalk.c (Fadd_tooltalk_message_arg):
17415         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17416         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17417         * process-unix.c (unix_create_process):
17418         * ntproc.c (sys_spawnve):
17419         * sound.c (Fplay_sound_file):
17420         * sound.c (Fplay_sound):
17421         * buffer.c (init_initial_directory):
17422         * buffer.c (init_buffer):
17423         * editfns.c (init_editfns):
17424         * editfns.c (Ftemp_directory):
17425         * editfns.c (Fuser_full_name):
17426         * editfns.c (uncache_home_directory):
17427         * editfns.c (get_home_directory):
17428         * editfns.c (Fuser_home_directory):
17429         * editfns.c (Fformat_time_string):
17430         * editfns.c (Fcurrent_time_string):
17431         * gui-x.c (button_item_to_widget_value):
17432         * database.c (Fopen_database):
17433         * event-Xt.c (x_to_emacs_keysym):
17434         * event-Xt.c (x_event_to_emacs_event):
17435         * event-Xt.c (describe_event_window):
17436         * event-msw.c (mswindows_wnd_proc):
17437         * glyphs-eimage.c (jpeg_instantiate):
17438         * glyphs-eimage.c (gif_instantiate):
17439         * glyphs-eimage.c (png_instantiate):
17440         * glyphs-eimage.c (tiff_instantiate):
17441         * glyphs-x.c (xbm_instantiate_1):
17442         * glyphs-x.c (x_xbm_instantiate):
17443         * glyphs-x.c (x_xface_instantiate):
17444         * glyphs-x.c (autodetect_instantiate):
17445         * glyphs-x.c (cursor_font_instantiate):
17446         * glyphs-x.c (x_widget_instantiate):
17447         * glyphs-x.c (x_widget_set_property):
17448         * glyphs-x.c (x_widget_property):
17449         * glyphs-x.c (BUILD_GLYPH_INST):
17450         * print.c (write_string_to_stdio_stream):
17451         * print.c (output_string):
17452         * print.c (Falternate_debugging_output):
17453         * print.c (Fexternal_debugging_output):
17454         * glyphs-msw.c (extract_xpm_color_names):
17455         * glyphs-msw.c (mswindows_xpm_instantiate):
17456         * glyphs-msw.c (bmp_instantiate):
17457         * glyphs-msw.c (resource_name_to_resource):
17458         * glyphs-msw.c (mswindows_resource_instantiate):
17459         * glyphs-msw.c (xbm_instantiate_1):
17460         * glyphs-msw.c (mswindows_xbm_instantiate):
17461         * glyphs-msw.c (mswindows_xface_instantiate):
17462         * glyphs-msw.c (mswindows_widget_instantiate):
17463         * glyphs-msw.c (add_tree_item):
17464         * glyphs-msw.c (add_tab_item):
17465         * glyphs-msw.c (mswindows_combo_box_instantiate):
17466         * glyphs-msw.c (mswindows_widget_property):
17467         * glyphs-msw.c (mswindows_combo_box_property):
17468         * glyphs-msw.c (mswindows_widget_set_property):
17469         * console.c (stuff_buffered_input):
17470         * objects-msw.c (mswindows_initialize_color_instance):
17471         * objects-msw.c (mswindows_valid_color_name_p):
17472         * objects-msw.c (mswindows_list_fonts):
17473         * objects-msw.c (mswindows_font_instance_truename):
17474         * bytecode.c (optimize_compiled_function):
17475         * select-x.c (symbol_to_x_atom):
17476         * select-x.c (x_atom_to_symbol):
17477         * select-x.c (hack_motif_clipboard_selection):
17478         * select-x.c (selection_data_to_lisp_data):
17479         * select-x.c (lisp_data_to_selection_data):
17480         * select-x.c (Fx_get_cutbuffer_internal):
17481         * select-x.c (Fx_store_cutbuffer_internal):
17482         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17483         * buffer.h (TO_INTERNAL_FORMAT): New function.
17484         * emacs.c (make_arg_list_1):
17485         * emacs.c (make_argc_argv):
17486         * emacs.c (main_1):
17487         * emacs.c (Fdump_emacs):
17488         * emacs.c (split_string_by_emchar_1):
17489         * file-coding.h:
17490         * lisp.h:
17491         * lstream.h:
17492         * symsinit.h:
17493         * device-x.c (x_init_device):
17494         * device-x.c (Fx_valid_keysym_name_p):
17495         * device-x.c (Fx_get_font_path):
17496         * device-x.c (Fx_set_font_path):
17497         * glyphs.c (bitmap_to_lisp_data):
17498         * glyphs.c (pixmap_to_lisp_data):
17499         * alloc.c (make_ext_string): Use coding system arguments.  Update
17500         all callers.
17501         * alloc.c (build_string):
17502         * callproc.c (child_setup):
17503         * callproc.c (init_callproc):
17504         * fileio.c (lisp_strerror):
17505         * fileio.c (directory_file_name):
17506         * fileio.c (Fexpand_file_name):
17507         * fileio.c (Ffile_truename):
17508         * fileio.c (Fsysnetunam):
17509         * fileio.c (Fdo_auto_save):
17510         * sysdep.c (sys_readdir):
17511         * tests.c: New file.  Allow adding C tests.
17512         Replace GET_* macros with a more comprehensible and flexible
17513         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17514         Modify all calls.
17515         Any coding system can be used to do format conversion.
17516         Eliminate enum external_data_format.
17517         Eliminate convert_to_external_format.
17518         Eliminate convert_to_internal_format.
17519         Make sure file-name, keyboard, terminal, and ctext are always
17520         defined as coding systems or aliases.  Make
17521         file-name-coding-system, terminal-coding-system, and
17522         keyboard-coding-system magical variables that are equivalent to
17523         defining the corresponding coding system aliases.
17524
17525         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17526         * file-coding.c (Fcoding_system_alias_p): New function.
17527         * file-coding.c (Fcoding_system_aliasee): New function.
17528         * file-coding.c (append_suffix_to_symbol): New function.
17529         * file-coding.c (dangling_coding_system_alias_p): New function.
17530         * file-coding.c (Ffind_coding_system):
17531         * file-coding.c (Fcopy_coding_system):
17532         * file-coding.c (encode_coding_no_conversion):
17533         * file-coding.c (syms_of_file_coding):
17534         * file-coding.c (vars_of_file_coding):
17535         Rewrite coding system alias code.
17536         Allow nested aliases, like symbolic links.
17537         Allow redefinition of coding system aliases.
17538         Prevent existence of dangling coding system aliases.
17539
17540         * dired.c (Fuser_name_completion_1):
17541         * dired.c (Fuser_name_all_completions):
17542         A crash would happen if user did QUIT in the middle of building
17543         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17544
17545         * lisp.h:
17546         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17547
17548         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17549         an unsigned char *.  Update all callers.
17550
17551 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17552
17553         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17554
17555 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17556
17557         * elhash.c (hentry_description): Use more portable definition.
17558         (resize_hash_table): Initialize new hentries using
17559         xnew_array_and_zero, thereby simplifying the code.
17560
17561         * mule-charset.c (make_charset): Make sure entire object is
17562         initialized, to avoid Purify warnings.
17563
17564         * alloc.c (resize_string): Fix unlikely crash with big strings.
17565
17566 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17567
17568         * realpath.c (xrealpath):
17569         Don't call getwd().
17570
17571 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17572
17573         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17574
17575 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17576
17577         * unexelfsgi.c (unexec): Change the way we decide which segment
17578         should be extended.
17579
17580         Assumption that .bss section should be outside the PT_LOADable
17581         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17582         it's present) is inside the 'data' segment. This would fail the
17583         test which was used to find a segment to grow and cover new
17584         heap. Instead of this assumption, I created another one - on IRIX
17585         the segment to grow should start below .bss and it's address
17586         should extent above the end of .bss. Once this segment is
17587         identified, it's grown to accommodate the new heap and new
17588         zero-length .bss section is added at the end of .data2.
17589
17590 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17591
17592         * eval.c (Feval): Wrong number of arguments should use original
17593         function, not the indirect_function version of it.
17594
17595 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17596
17597         * glyphs-x.c (x_button_instantiate): Don't add image if
17598         it is not a pixmap.
17599         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17600         is relative.
17601
17602 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17603
17604         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17605         declaration.
17606         (DEFVAR_INT_MAGIC): Ditto.
17607         (DEFVAR_BOOL_MAGIC): Ditto.
17608         * glyphs.h: Reindent backslash.
17609
17610 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17611
17612         * glyphs-widget.c (layout_query_geometry):
17613         (layout_layout): Use correct types for gheight, gwidth.
17614
17615 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17616
17617         * EmacsManager.c (QueryGeometry): Purified.
17618
17619 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17620
17621         * alloc.c (make_float): Make sure entire object is initialized, to
17622         avoid Purify warnings.
17623         (pdump_register_sub): Remove useless assignment.
17624         (pdump): Use xmalloc, not malloc.
17625         (pdump_load): Use xmalloc, not malloc.
17626
17627 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17628
17629         * callproc.c:
17630         * dired-msw.c:
17631         * fileio.c:
17632         * process-nt.c:
17633         * redisplay-msw.c:
17634         * sysdep.c: Removed redundant #include <windows.h>
17635
17636 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17637
17638         * frame.c (delete_frame_internal): Do not delete device when its
17639         implementation so declares.
17640         (delete_frame_internal): Set device selected frame to nil when
17641         last frame goes away.
17642
17643         * device-msw.c (msprinter_device_system_metrics): Implemented.
17644         (mswindows_device_system_metrics): Added 'device-dpi property.
17645
17646         * device.c: (Fdevice_printer_p): Added.
17647         Added 'offset-workspace device metric.
17648
17649         * console.h (device_metrics): Declared DM_offset_workspace.
17650
17651 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17652
17653         * fileio.c (Ffile_truename): Remove pointless and confusing
17654         initialization of elen.
17655
17656         * glyphs-widget.c: Compiler warning fixes.
17657
17658 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17659
17660         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17661         instead of a Lisp_Object as argument to make it consistent with
17662         the other LIVE_P macros.
17663         (CHECK_LIVE_PROCESS): New macro.
17664
17665         * process.c: Declare Qprocess_live_p.
17666         (Fprocess_live_p): New function.
17667         (create_process): Use PROCESS_LIVE_P.
17668         (read_process_output): Ditto.
17669         (set_process_filter): Ditto.
17670         (Fdelete_process): Ditto.
17671         (kill_buffer_processes): Ditto
17672         (process_send_signal): Use CHECK_LIVE_PROCESS.
17673         (Fprocess_input_coding_system): Check whether process is still
17674         alive (fix PR#1061).
17675         (Fprocess_output_coding_system): Ditto.
17676         (Fprocess_coding_system): Ditto.
17677         (Fset_process_input_coding_system): Ditto.
17678         (Fset_process_output_coding_system): Ditto.
17679
17680 2000-01-23  Andy Piper  <andy@xemacs.org>
17681
17682         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17683         layout and widget.
17684
17685         * glyphs.c (mark_image_instance): take into account changed
17686         image_instance format.
17687         (image_instance_equal): ditto.
17688         (image_instance_hash): ditto.
17689
17690         * glyphs-widget.c (widget_instantiate): Incorporate layout
17691         instantiation here. Delay layout of the layout until later.
17692         (layout_instantiate): deleted.
17693         (layout_query_geometry): new function. get the geometry of a
17694         layout.
17695         (layout_layout): layout a layout dynamically.
17696         (image_instantiator_widget): New function - splitting up
17697         image_instantiator_format_create_glyphs_widget for netwinder
17698         compilation.
17699         (image_instantiator_buttons):
17700         (image_instantiator_edit_fields):
17701         (image_instantiator_combo_box):
17702         (image_instantiator_scrollbar):
17703         (image_instantiator_progress_guage):
17704         (image_instantiator_tree_view):
17705         (image_instantiator_tab_control):
17706         (image_instantiator_labels):
17707         (image_instantiator_layout): ditto.
17708         (image_instantiator_format_create_glyphs_widget): Call preceding
17709         functions.
17710
17711 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17712
17713         * process.c (Fset_process_coding_system):
17714         * device-x.c (Fx_keysym_hash_table):
17715         Docstring fixes.
17716
17717         * lstream.c (Lstream_write): Return documented value, not 0.
17718
17719         * fileio.c (directory_file_name):
17720         (Fsubstitute_in_file_name):
17721         (Fsubstitute_insert_file_contents_internal):
17722         (Fwrite_region_internal):
17723         * emacs.c:
17724         * sysdep.c:
17725         * getloadavg.c:
17726         * systty.h:
17727         Remove vestigial APOLLO-conditional code.
17728
17729 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17730
17731         * getpagesize.h: Add guard macros.
17732         * libsst.h: Add guard macros.
17733         * libst.h: Add guard macros.
17734         * line-number.h: Add guard macros.
17735         * ndir.h: Add guard macros.
17736         * sysfloat.h: Add guard macros.
17737         * sysfile.h: Add guard macros.
17738         * sysproc.h: Add guard macros.
17739         * syswait.h: Add guard macros.
17740         * xintrinsic.h: Add guard macros.
17741         * xintrinsicp.h: Add guard macros.
17742         * xmmanager.h: Add guard macros.
17743         * xmmanagerp.h: Add guard macros.
17744         * xmprimitive.h: Add guard macros.
17745         * xmu.h: Add guard macros.
17746         * gpmevent.h: Add copyright statement. Add guard macros.
17747         * miscplay.h: Add guard macros.
17748         * *.h: Use consistent C-standards-approved guard macro names.
17749
17750         * opaque.c (make_opaque): Switch parameter order.
17751         * opaque.h (make_opaque): Switch parameter order.
17752         Update all callers.
17753         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17754
17755         * config.h.in (type_checking_assert): Added.
17756         (bufpos_checking_assert): Added.
17757
17758 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17759
17760         * alloc.c: Harmless pdump changes.
17761         - Use countof().
17762         - spell alignment correctly.
17763         * sysdep.c: Use countof()
17764
17765 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17766
17767         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17768         initially_selected_for_input() console method, default to 0.
17769         (semi_canonicalize_console_connection): Try to delegate to
17770         canonicalize_console_connection if no such console method.
17771         (canonicalize_console_connection): Vice versa.
17772         (print_console): Do not print nil connection.
17773
17774         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17775         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17776         (XDEVIMPF_FRAMELESS_OK): Added.
17777         (CONSOLE_INHERITS_METHOD): Added.
17778
17779         * console-msw.c (mswindows_canonicalize_console_connection):
17780         Added.
17781         (mswindows_canonicalize_device_connection): Added.
17782
17783         * console-msw.h (struct msprinter_device): Added this struct and
17784         accessor macros.
17785         (mswindows_device): Made fontlist a lisp object.
17786
17787         * device.c (semi_canonicalize_device_connection):  Try to delegate
17788         to canonicalize_device_connection if no such console method.
17789         (canonicalize_device_connection): Vice versa.
17790         (print_device): Do not print nil connection.
17791
17792         * device-msw.c (mswindows_init_device): Call InitCommonControls
17793         when have widgets.
17794         (mswindows_delete_device): Removed fontlist deallocation.
17795         (mswindows_mark_device): Added.
17796
17797         * events.c (event_equal): Added abort() at unreached code.
17798         (event_hash): Ditto.
17799
17800         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17801         fallback tags of Windows devices.
17802
17803         * general.c (syms_of_general): Initialized Qmsprinter.
17804
17805         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17806         of fallback tags of Windows devices.
17807
17808         * lisp.h: Declared Qmsprinter.
17809
17810         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17811         of strings.
17812         (mswindows_list_fonts): Ditto.
17813         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17814         that it can be used by both mswindows and msprinter devices.
17815         (initialize_font_instance): Added.
17816         (mswindows_initialize_font_instance): Use it.
17817         (msprinter_initialize_font_instance): Added.
17818
17819         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17820         and implementation flags check.
17821         (redisplay_without_hooks): Changed the call to the above.
17822         (Fredraw_device): Ditto.
17823         (Fredisplay_device): Ditto.
17824
17825         * redisplay-msw.c (get_frame_dc): Implemented.
17826         (get_frame_compdc): Implemented.
17827         (many functions): Use the two functions above to get device
17828         contexts, ether for a window or a printer.
17829
17830 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17831
17832         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17833         initialization here.
17834         (init_symbols_once_early): Call it.
17835         * emacs.c (main_1): Call it.
17836         * symsinit.h: Declare it.
17837
17838 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17839
17840         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17841         Lisp_Object.
17842         (pdump_backtrace): Ditto.
17843         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17844         (pdump_get_entry): Abort if trying to register a null pointer.
17845         (pdump_dump_data): Cleanup types when relocating.
17846         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17847         (pdump_dump_rtables): Remove bad casts.
17848         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17849         Lisp_Object instead of a EMACS_INT for the hashtable
17850         reorganization.
17851
17852 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17853
17854         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17855
17856         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17857
17858         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17859
17860         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17861
17862 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17863
17864         * faces.h (FACE_STRIKETHRU_P): Added.
17865
17866         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17867         of font variants.
17868
17869         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17870         (mswindows_set_dc_font): New function, aware of font variants,
17871         separated from mswindows_update_dc.
17872
17873         * objects-msw.h (struct mswindows_font_instance_data): Added
17874         definition.
17875
17876         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17877         cached fonts and the data structure.
17878         (mswindows_initialize_font_instance): Added creation of font data
17879         structure.
17880         (mswindows_print_font_instance): Print at least something.
17881         (mswindows_create_font_variant): Implemented.
17882         (mswindows_get_hfont): Implemented.
17883
17884 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17885
17886         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17887         prototyping problem with msvc.
17888
17889         * emacs.c (main_1): added syms_of_gui_mswindows() call
17890
17891         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17892         syms_of_gui_mswindows() function
17893
17894         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17895
17896 2000-01-18  Martin Buchholz <martin@xemacs.org>
17897
17898         * XEmacs 21.2.27 is released.
17899
17900 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17901
17902         * glyphs-eimage.c (struct tiff_error_struct):
17903         (tiff_error_func):
17904         (tiff_warning_func):
17905         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17906
17907         * unexmips.c:
17908         * unexhp9k3.c:
17909         * unexfreebsd.c:
17910         * unexec.c: Remove vestigial Lucid C code.
17911         * unexalpha.c:
17912         * unexaix.c:
17913         * termcap.c:
17914         * libsst.c: Ansify.
17915         Remove declarations of errno and strerror().
17916
17917         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17918
17919         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17920
17921 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17922
17923         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17924         Optimize.
17925
17926 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17927
17928         * md5.c:
17929         * file-coding.c:
17930         * file-coding.h:
17931         Change enum eol_type to eol_type_t.
17932
17933 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17934
17935         * gui.c (get_gui_callback): Check cons before accessing car.
17936
17937 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17938
17939         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17940         (XSETSPECIFIER_TYPE): Ditto.
17941
17942 2000-01-17  Didier Verna  <didier@xemacs.org>
17943
17944         * redisplay.c (generate_fstring_runes): compute string size in
17945         characters, not bytes.
17946
17947 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17948
17949         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17950
17951 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17952
17953         * print.c (print_error_message): Call print_prepare().
17954
17955 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17956
17957         * .dbxrc: Renamed from dbxrc.
17958
17959         * events.c (event_to_character):
17960         Use `assert (foo)' instead of `if (!foo) abort()'
17961
17962         * .gdbinit (xtype): Add documentation.
17963         * .gdbinit (check-temacs): New function.
17964         * .gdbinit (check-xemacs): New function.
17965         * dbxrc (check-xemacs): New function.
17966         * dbxrc (check-xemacs): New function.
17967
17968 2000-01-14  Andy Piper  <andy@xemacs.org>
17969
17970         * glyphs-widget.c (widget_query_geometry): Make sure that we
17971         calculate default dimensions correctly.
17972
17973 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17974
17975         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17976
17977         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17978         pdump_wire'd variable.
17979
17980         * emacs.c: (main_1): Conditionalized calls to
17981         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17982
17983 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17984
17985         * window.c (Fset_window_configuration):
17986         * sysdep.c (_start):
17987         * input-method-motif.c (res):
17988         * event-Xt.c (Xt_process_to_emacs_event):
17989         Simple compiler warning fixes.
17990
17991         * bytecode.c (funcall_compiled_function): Use the original
17992         function symbol on the backtrace list in preference to the
17993         compiled_function object in error messages.
17994
17995 2000-01-13  Andy Piper  <andy@xemacs.org>
17996
17997         * glyphs-x.c (update_widget_face): Make sure we update the widget
17998         background as well as foreground.
17999
18000 2000-01-13  Andy Piper  <andy@xemacs.org>
18001
18002         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
18003         fields to subwindow.
18004         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
18005         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
18006         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18007         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18008
18009         * glyphs-widget.c (check_valid_tab_orientation): new function.
18010         (initialize_widget_image_instance): zero orientation and
18011         justification.
18012         (widget_instantiate): pick up orientation.
18013         (tab_control_query_geometry): return appropriate values for
18014         vertical tabs.
18015
18016         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
18017         appropriate creation flags for left, right and bottom tabs.
18018
18019         * s/cygwin32.h: add tab definitions.
18020
18021 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18022
18023         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
18024         frame upon hiding a subwindow.
18025         (mswindows_button_instantiate): Changed the push button style to
18026         BS_PUSHBUTTON.
18027         (mswindows_button_instantiate): Removed button BS_NOTIFY
18028         style.
18029         (mswindows_button_instantiate): Removed redundant check for
18030         a disabled gui item.
18031         (mswindows_button_instantiate): Made use of WS_TABSTOP
18032         consistent: "operable" controls (edit, button, tree, scroll) have
18033         this style, "display-only" ones (static, progress gauge) do
18034         not. This style is currently ignored by XEmacs though. Also,
18035         removed the WS_EX_CONTROLPARENT style - it is not for children,
18036         it is for their parents!
18037         (mswindows_edit_field_instantiate): Ditto.
18038         (mswindows_progress_gauge_instantiate): Ditto.
18039         (mswindows_tree_view_instantiate): Ditto.
18040         (mswindows_tab_control_instantiate): Ditto.
18041         (mswindows_scrollbar_instantiate): Ditto.
18042         (mswindows_combo_box_instantiate): Ditto.
18043         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
18044         style to the "clip" window.
18045         (mswindows_button_instantiate): Removed compilation warning by
18046         equally typing terms of the ?: operator.
18047
18048 2000-01-12  Didier Verna  <didier@xemacs.org>
18049
18050         * redisplay.c (generate_fstring_runes): new parameter holding the
18051         last modeline-format extent.
18052         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
18053         extent, fill the glyph block with it.
18054         (generate_fstring_runes): handle these parameters.
18055         (generate_formatted_string_db): ditto.
18056
18057         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
18058         glyphs'extents in the modeline.
18059
18060 1999-01-11  Mike Woolley  <mike@bulsara.com>
18061
18062         * ntheap.c: Reduced the reserved heap space from 1Gb down to
18063         256Mb, as a workaround for the non-starting problem many people
18064         have experienced.
18065
18066 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18067
18068         * console-tty.c (Fset_console_tty_output_coding_system):
18069         Force redrawing tty frame.
18070
18071 2000-01-10  Didier Verna  <didier@xemacs.org>
18072
18073         * redisplay.c (generate_fstring_runes): fix size computation bug.
18074
18075 2000-01-09  William M. Perry <wmperry@aventail.com>
18076
18077         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
18078
18079 2000-01-09  Andy Piper  <andy@xemacs.org>
18080
18081         * glyphs-msw.c: index -> i to avoid shadows.
18082         (xbm_create_bitmap_from_data): make static.
18083         (check_valid_string_or_int): deleted.
18084         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
18085
18086         * glyphs-x.c (x_update_subwindow): remove unused args.
18087
18088         * glyphs.c (glyph_image_instance): return the thing. Don't set the
18089         back pointer - this is done in allocate_image_instance.
18090         (query_string_font): return Qnil to make the compiler happy.
18091         (unmap_subwindow): set to ~0 to make the compiler happy.
18092         (glyph_query_geometry): comment out until used.
18093         (glyph_layout): ditto.
18094
18095 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18096
18097         * insdel.c (signal_after_change): Remove extraneous unbind_to().