update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2010-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.25
4         (Ōkawara).
5
6 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * chartab.c (save_uint8_byte_table): Fixed problem when a property
9         is unloaded.
10         (save_uint16_byte_table): Likewise.
11
12 2010-02-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
13
14         * chartab.c (Fchar_feature_property): New function when LIBCHISE
15         is enabled.
16         (Fput_char_feature_property): Likewise.
17         (syms_of_chartab): Add new builtin functions
18         `char-feature-property' and `put-char-feature-property' when
19         LIBCHISE is enabled.
20
21 2009-04-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
22
23         * mule-charset.c (Fmake_charset): Add DOC-string of 'iso-ir and
24         '=>iso-ir.
25         (Fcharset_property): Regard '=>iso-ir as same as `iso_ir.
26
27 2009-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
28
29         * mule-charset.c (Qto_iso_ir): New variable for XEmacs CHISE.
30         (make_charset): Add new argument `iso_ir'.
31         (Fmake_charset): Add new property `=>iso-ir' in XEmacs CHISE.
32         (Fmake_reverse_direction_charset): Copy CHARSET_ISO_IR(cs) in
33         XEmacs CHISE.
34         (Fcharset_property): Support `iso-ir' in XEmacs CHISE.
35         (syms_of_mule_charset): Add new builtin symbol `=>iso-ir' in
36         XEmacs CHISE.
37         (complex_vars_of_mule_charset): Specify argument `iso_ir' of
38         function `make_charset'.
39
40         * char-ucs.h (LEADING_BYTE_*): Enclose negative value with ( ).
41         (struct Lisp_Charset): Add new member `iso_ir'.
42         (CHARSET_ISO_IR): New macro.
43
44 2009-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
45
46         * mule-charset.c (Fdecode_char): Fix problem when decoding GR
47         code-point by GL charset.
48
49 2008-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
50
51         * concord.c (concord_id_validate): New function.
52         (structure_type_create_concord): Use `concord_id_validate' instead
53         of `concord_name_validate' to accept integer and character as =id.
54
55 2008-09-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
56
57         * concord.c (func_for_each_object): Fix bug about GC-protection.
58
59 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
60
61         * concord.c (Fconcord_object_put): Check argument FEATURE is a
62         symbol.
63
64 2008-09-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * text-coding.c (struct decoding_stream): Add new member
67         `bom_flag' in XEmacs CHISE.
68         (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
69         in XEmacs CHISE.
70
71 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
72
73         * mule-charset.c: Move definition of `=jis-x0208@1978' to
74         lisp/mule/mule-conf.el.
75
76 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
77
78         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
79         (make_charset): Add new argument `partial'.
80         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
81         (Fmake_reverse_direction_charset): Modify for `make_charset'.
82         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
83         CHISE.
84         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
85         `=jis-x0208' as a partial coded-charset.
86
87 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
88
89         * text-coding.c (decode_add_er_char): Fix problem when a character
90         represented by an entity-reference is not defined.
91
92 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
93
94         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
95         Qrep_*.
96
97 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
98
99         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
100         (Kasagi).
101
102 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
103
104         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
105         is a relation feature.
106
107 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
108
109         * chartab.c (syms_of_chartab): Define
110         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
111
112         * chartab.h (Q_denotational): New extern when UTF2000 or
113         HAVE_CONCORD is defined.
114         (Q_denotational_from): Likewise.
115         (Q_subsumptive): Likewise.
116         (Q_subsumptive_from): Likewise.
117
118 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
119
120         * concord.c (concord_object_put): New function.
121         (Fconcord_object_put): Use `concord_object_put'.
122
123 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
124
125         * concord.c (Fconcord_define_object): New function.
126         (syms_of_concord): Add new builtin function
127         `concord-define-object'.
128
129 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
130
131         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
132         (Kamo).
133
134 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
135
136         * concord.c: Add EXFUN for Fconcord_object_get.
137         (Vconcord_genre_object_hash_table): New variable.
138         (concord_genre_cache_get_object): New function.
139         (concord_genre_cache_put_object): New function.
140         (Fconcord_make_object): Use object cache; put object-ID into `=id'
141         feature.
142         (Fconcord_object_put): Call `concord_index_sync' after
143         `concord_index_strid_put_obj'.
144         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
145
146 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
147
148         * concord.c (Fconcord_decode_object): Do GCPRO for
149         Fconcord_make_object.
150         (func_for_each_object): Likewise; do GCPRO for
151         for_each_object_closure->function.
152         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
153         for_each_object_closure->function, for_each_object_closure->genre,
154         for_each_object_closure->ds and for_each_object_closure->ret.
155         (concord_object_validate): Do GCPRO for Fconcord_make_object.
156
157 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
158
159         * concord.c: Add EXFUNs for Fconcord_decode_object and
160         Fconcord_object_put.
161         (Fconcord_make_object): Change order of arguments.
162         (Fconcord_decode_object): Modify for Fconcord_make_object.
163         (func_for_each_object): Likewise.
164         (concord_object_validate): Likewise.
165         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
166
167 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
168
169         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
170
171 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
172
173         * concord.c (Fconcord_decode_object): Try to use readable print
174         form as a key of Concord-index.
175         (Fconcord_object_get): Try to use readable print form as an ID of
176         Concord-object.
177         (Fconcord_object_put): Try to use readable print form as an ID of
178         Concord-object and a feature value.
179         (Fconcord_object_spec): Try to use readable print form as an ID of
180         Concord-object.
181
182 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
183
184         * concord.c (print_concord_object): Support readable form.
185
186 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
187
188         * emacs.c (main_1): Call `structure_type_create_concord' when
189         HAVE_CONCORD is defined.
190
191         * symsinit.h (structure_type_create_concord): New prototype.
192
193         * concord.c (Qconcord_object): New variable.
194         (Qgenre): Likewise.
195         (Q_id): Likewise.
196         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
197         for directory.
198         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
199         char*> for genre-name.
200         (Fconcord_feature_list): Likewise.
201         (Fconcord_make_object): Likewise.
202         (Fconcord_decode_object): Likewise; use <char*> instead of
203         <unsigned char*> for feature_name and strid.
204         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
205         c_obj and feature_name.
206         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
207         char*> for c_value.
208         (struct closure_for_object_spec): Use <char*> instead of <unsigned
209         char*> for member `object_id'.
210         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
211         char*> for feature-name.
212         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
213         for c_obj.
214         (func_for_each_object): Cast to avoid warnings.
215         (Fconcord_foreach_object_in_feature): Use <char*> instead of
216         <unsigned char*> for genre_name and feature_name.
217         (concord_name_validate): New function.
218         (concord_object_validate): Likewise.
219         (concord_object_instantiate): Likewise.
220         (syms_of_concord): Add new builtin symbols `concord-object',
221         `genre' and `=id'.
222         (structure_type_create_concord): New function.
223
224 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * concord.c (Vconcord_ds_hash_table): New variable.
227         (Vconcord_genre_hash_table): New variable.
228         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
229         (Fconcord_ds_directory): New function.
230         (Fconcord_assign_genre): New function.
231         (Fconcord_genre_directory): New function.
232         (Fconcord_genre_ds): New function.
233         (Fconcord_feature_list): Allow to omit `ds'.
234         (Fconcord_make_object): Likewise.
235         (Fconcord_decode_object): Likewise.
236         (Fconcord_foreach_object_in_feature): Likewise.
237         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
238         Fconcord_assign_genre, Fconcord_genre_directory and
239         Fconcord_genre_ds.
240         (vars_of_concord): Setup Vconcord_ds_hash_table and
241         Vconcord_genre_hash_table.
242
243 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
244
245         * concord.c (struct closure_for_each_object): Add new member
246         `ret'.
247         (func_for_each_object): Setup the return value to
248         `for_each_object_closure->ret'.
249         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
250         returns the value instead of Qt.
251
252 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
253
254         * concord.c: New file.
255
256 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
257
258         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
259         `lrecord_type_concord_object'.
260
261 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
262
263         * symsinit.h (syms_of_concord): New prototype.
264         (vars_of_concord): New prototype.
265
266         * emacs.c (main_1): Setup symbols and variable about concord if
267         HAVE_CONCORD is defined.
268
269         * config.h.in (HAVE_CONCORD): New macro.
270
271 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
272
273         * chartab.c (Fput_char_attribute): For each character relation
274         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
275
276 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
277
278         * chartab.c (Fput_char_attribute): Use
279         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
280         calling `put_char_composition'.
281
282 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
283
284         * chartab.c (Q_halfwidth_of): New variable.
285         (put_char_composition): Return `<-halfwidth' instead of
286         `=decomposition' for compatibility mapping to single character
287         tagged `narrow'.
288         (Fput_char_attribute): Convert char-specs in value of
289         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
290         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
291         for `<-halfwidth'.
292         (syms_of_chartab): Add new symbol `<-halfwidth'.
293
294 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
295
296         * chartab.c (put_char_composition): Return
297         `<-formed@{isolated|initial|medial|final}' for compatibility
298         mapping to single character tagged
299         `{isolated|initial|medial|final}'.
300
301 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
302
303         * chartab.c (Q_compat_of): Deleted.
304         (put_char_composition): Return `<-FOO' for compatibility mapping
305         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
306         of `symbol_name (XSYMBOL(...))'.
307         (Fput_char_attribute): Convert char-specs in value of
308         `{<-|->}font[^*]*' to characters and put reverse links.
309         (Fsave_char_attribute_table): Don't refer Q_compat_of.
310         (syms_of_chartab): Delete builtin symbol `<-compat'.
311
312 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
313
314         * chartab.c (Q_circled_of): New variable.
315         (put_char_composition): Return `<-circled' instead of
316         `=decomposition' for compatibility mapping to single character
317         tagged `circle'.
318         (Fput_char_attribute): Convert char-specs in value of
319         `{<-|->}circled[^*]*' to characters and put reverse links.
320         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
321         for `<-circled'.
322         (syms_of_chartab): Add new symbol `<-circled'.
323
324 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
325
326         * chartab.c (Qto_decomposition_at_circled): New variable.
327         (put_char_composition): Return `=>decomposition@circled' instead
328         of `=decomposition' for compatibility decomposition mapping tagged
329         `circle'.
330         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
331
332 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
333
334         * chartab.c (Q_subscript_of): New variable.
335         (put_char_composition): Return `<-subscript' instead of
336         `=decomposition' for compatibility mapping to single character
337         tagged `sub'.
338         (Fput_char_attribute): Convert char-specs in value of
339         `{<-|->}subscript[^*]*' to characters and put reverse links.
340         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
341         for `<-subscript'.
342         (syms_of_chartab): Add new symbol `<-subscript'.
343
344 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
345
346         * chartab.c (Q_superscript_of): New variable.
347         (put_char_composition): Return `<-superscript' instead of
348         `=decomposition' for compatibility mapping to single character
349         tagged `super'.
350         (Fput_char_attribute): Convert char-specs in value of
351         `{<-|->}superscript[^*]*' to characters and put reverse links.
352         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
353         for `<-superscript'.
354         (syms_of_chartab): Add new symbol `<-superscript'.
355
356 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
357
358         * chartab.c (Qto_decomposition_at_compat): Deleted.
359         (Qto_decomposition_at_superscript): New variable.
360         (put_char_composition): Use `=>decomposition@superscript' instead
361         of `=decomposition' for compatibility decomposition mapping tagged
362         `super'.
363         (Fput_char_attribute): Fix condition about `put_char_composition'.
364         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
365         add news symbol `=>decomposition@superscript'.
366
367 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
368
369         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
370         for compatibility decomposition mapping tagged FOO.
371         (Fput_char_attribute): Modify for `put_char_composition'.
372
373 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
374
375         * chartab.c (Qto_decomposition_at_compat): New variable.
376         (Q_compat_of): Renamed from `Q_compatibility_of'.
377         (put_char_composition): Rename `Q_compatibility_of' to
378         `Q_compat_of'; return `=>decomposition@compat' for compatibility
379         decomposition mapping.
380         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
381         `Q_compat_of'.
382         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
383         `<-compatibility' to `<-compat'.
384
385 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
386
387         * chartab.c (Q_compatibility_of): New variable.
388         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
389         object is proved to be a cons cell; return `<-compatibility' if
390         the first element of argument `value' is `compat'.
391         (Fput_char_attribute): Eliminate the first value if
392         `put_char_composition' returns `<-compatibility'.
393         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
394         for `<-compatibility'.
395         (syms_of_chartab): Add new symbol `<-compatibility'.
396
397 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
398
399         * chartab.c (Q_canonical): New variable.
400         (put_char_composition): Return a feature name: return
401         `->canonical' if argument `value' specifies single character.
402         (Fput_char_attribute): Use `put_char_composition' to determine
403         feature name for `=decomposition' or `->denotational'.
404         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
405         for `->canonical'.
406         (syms_of_chartab): Add new symbol `->canonical'.
407
408 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
409
410         * chartab.c (Qmap_decomposition): New variable.
411         (Fput_char_attribute): Convert `->decomposition' to
412         `=decomposition'.
413         (syms_of_chartab): Add new symbol `=decomposition'.
414
415 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
416
417         * chartab.c (Fget_range_char_table): Fix serious problem when
418         `range' is nil.
419
420 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
421
422         * chartab.c (char_table_get_db): Use `read_from_c_string'.
423
424 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
425
426         * lread.c (read_from_c_string): New function.
427
428         * lisp.h (read_from_c_string): New prototype.
429
430 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
431
432         * chartab.c (Fput_char_attribute): Convert char-specs in value of
433         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
434         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
435         for `{<-|->}Oracle-Bones[^*]*'.
436
437 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
438
439         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
440         (Kizu).
441
442 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
443
444         * text-coding.c (Qccs_priority_list): New variable in XEmacs
445         CHISE.
446         (Fmake_coding_system): Support new property `ccs-priority-list' in
447         XEmacs CHISE.
448         (Fcoding_system_property): Likewise.
449         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
450         Vdefault_coded_charset_priority_list in XEmacs CHISE.
451         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
452         XEmacs CHISE.
453         (complex_vars_of_file_coding): Define new coding-system-property
454         `ccs-priority-list' in XEmacs CHISE.
455
456         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
457
458 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
459
460         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
461         changed to normal function.
462         (encode_char_2): Likewise.
463
464         * mule-charset.c (decoding_table_put_char): Copied from
465         char-ucs.h; changed to normal function.
466         (encode_char_2): Likewise.
467
468 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
469
470         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
471         New extern.
472         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
473         (encode_char_2_search_children): New inline function.
474         (encode_char_2): Refer
475         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
476         and use `encode_char_2_search_children'.
477
478 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
479
480         * mule-charset.c
481         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
482         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
483         (vars_of_mule_charset): Add new variable
484         `display-coded-charset-priority-use-inheritance' and
485         `display-coded-charset-priority-use-hierarchy-order'.
486
487 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
488
489         * char-ucs.h (Q_subsumptive): New extern.
490         (Q_denotational): Likewise.
491         (encode_char_2): Search children specified by `->subsumptive' and
492         `->denotational'.
493
494 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
495
496         * mule-charset.c (complex_vars_of_mule_charset): Modify the
497         X-registry of `ucs-bmp'.
498
499 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
500
501         * chartab.c (char-variants): Refer `->subsumptive',
502         `->denotational' and `->identical' as same as `->ucs-unified'.
503
504 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
505
506         * chartab.c (Fput_char_attribute): Convert char-specs in value of
507         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
508         links.
509
510 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
511
512         * text-coding.c: Add EXFUN for `Fregexp_quote'.
513         (decode_add_er_char): Fix problem about infinite loop when a CCS
514         specified in `coded-charset-entity-reference-alist' is not
515         existed.
516
517 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
518
519         * mule-charset.c (syms_of_mule_charset): Rename
520         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
521
522 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
523
524         * fns.c (simplify_char_spec): Don't allocate new character-object
525         if specified char_spec does not have any CCS-features.
526
527         * chartab.h: Add EXFUN for Fdefine_char.
528
529         * chartab.c: Delete EXFUN for Fdefine_char.
530
531 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
532
533         * fns.c (simplify_char_spec): Use Fdefine_char instead of
534         Ffind_char for char-spec.
535
536 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
537
538         * lisp-disunion.h (XCHARVAL): Fix condition about
539         SIZEOF_EMACS_INT.
540
541 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
542
543         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
544         <int> for `code'.
545         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
546         point; use <Emchar> instead of <int> for character-id.
547
548 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
549
550         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
551         (make_char): Likewise.
552         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
553         environment.
554         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
555         instead of <int> as the type of return value; use <Lisp_Object>
556         instead of <Emchar> as the type of argument.
557         (XCHARVAL[macro version]): Cast the result into <Emchar>.
558
559         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
560         syntaxcode> instead of <int>.
561
562 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
563
564         * chartab.c (put_char_composition): Use DECODE_CHAR to get
565         character corresponding with UCS code point.
566         (Fput_char_attribute): Likewise.
567
568         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
569         character in the UCS decoding-table if the char-id is not equal to
570         the UCS code point.
571
572 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
573
574         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
575         for aliases; write `description'; write
576         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
577         not 0.
578
579 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
580
581         * chartab.c (Fsave_char_attribute_table): Don't use
582         `save_charset_properties'.
583
584         * mule-charset.c (Fsave_charset_properties): Renamed from
585         `save_charset_properties' and changed to Lisp function again;
586         write property `type' as `CCS'; write properties `final-byte' and
587         `mother' if they exists.
588         (syms_of_mule_charset): Revive builtin function
589         `save-charset-properties' when HAVE_LIBCHISE is defined.
590
591 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
592
593         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
594         instead of Vexec_directory.
595         (char_attribute_system_db_file): Likewise.
596
597 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
598
599         * chartab.c (Fsave_char_attribute_table): Use
600         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
601         defined.
602
603         * mule-charset.c (save_charset_properties): Renamed from
604         `Fsave_charset_properties'; changed to non-Lisp function.
605         (syms_of_mule_charset): Abolish builtin function
606         `save-charset-properties'.
607
608 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
609
610         * mule-charset.c (Fsave_charset_properties): New function when
611         HAVE_LIBCHISE is defined.
612         (syms_of_mule_charset): Add new builtin function
613         `save-charset-properties' when HAVE_LIBCHISE is defined.
614
615 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
616
617         * chartab.c (Fput_char_attribute): Convert char-specs in value of
618         `{<-|->}ancient[^*]*' to characters and put reverse links.
619         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
620         for `{<-|->}ancient[^*]*'.
621
622 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
623
624         * chartab.c (Fput_char_attribute): Convert char-specs in value of
625         `{<-|->}original[^*]*' to characters and put reverse links.
626         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
627         for `{<-|->}original[^*]*'.
628
629 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
630
631         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
632
633 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
634
635         * mule-charset.c (Qsystem_char_id): New variable.
636
637         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
638         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
639
640 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
641
642         * chartab.c (Fput_char_attribute): When processing a reference of
643         a character, put into the end of the reversed reference of each
644         target character.
645
646 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
647
648         * chartab.c (Q_same): Deleted.
649         (Q_same_of): Deleted.
650         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
651         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
652         for `{<-|->}same'.
653         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
654
655 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
656
657         * chartab.c (Q_vulgar): Deleted.
658         (Q_vulgar_of): Deleted.
659         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
660         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
661         for `{<-|->}vulgar'.
662         (syms_of_chartab): Don't define `{<-|->}vulgar'.
663
664 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
665
666         * chartab.c (Fput_char_attribute): Convert char-specs in value of
667         `{<-|->}wrong[^*]*' to characters and put reverse links.
668         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
669         for `{<-|->}wrong[^*]*'.
670
671 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
672
673         * chartab.c (Q_vulgar): New variable.
674         (Q_vulgar_of): New variable.
675         (Fput_char_attribute): Convert char-specs in value of
676         `{->|<-}vulgar' to characters and put reverse links.
677         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
678         for `{->|<-}vulgar'.
679         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
680
681 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
682
683         * text-coding.c (decode_add_er_char): Must to quote prefix string
684         as regexp.
685
686 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
687
688         * mule-charset.c (put_char_ccs_code_point): Store characters of
689         =ucs whose code_points >= 0xF0000.
690
691 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
692
693         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
694         CHISE.
695         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
696         CHISE.
697         (complex_vars_of_mule_charset): Add new coded-charset
698         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
699         builtin characters over 0xEFFFF.
700
701         * chartab.c (syms_of_chartab): Don't define symbol
702         `system-char-id' in every case.
703
704         * char-ucs.h (Qsystem_char_id): New extern variable.
705         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
706
707 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
708
709         * text-coding.c (char_encode_utf8): Try to use entity-references
710         for U-000F0000 ...  U-0010FFFF.
711
712 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
713
714         * text-coding.c (ER_BUF_SIZE): New macro.
715         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
716         `er_buf'.
717         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
718         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
719
720 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
721
722         * chartab.c (find_char_feature_in_family): New function.
723         (Fchar_feature): Use `find_char_feature_in_family' with
724         `->identical', `<-subsumptive' and `<-denotational'.
725
726 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
727
728         * text-coding.c (char_encode_as_entity_reference): Allow prefix
729         within 8 characters; fix infinite loop.
730
731 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
732
733         * chartab.c (Q_same): New variable.
734         (Q_same_of): New variable.
735         (Fput_char_attribute): Convert char-specs in value of
736         `{->|<-}same' to characters and put reverse links.
737         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
738         for `{->|<-}same'.
739         (syms_of_chartab): Add new symbols `{->|<-}same'.
740
741 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
742
743         * chartab.c (Q_component): New variable.
744         (Q_component_of): Likewise.
745         (Fput_char_attribute): Convert char-specs in value of
746         `{->|<-}ideographic-component-forms' to characters and put reverse
747         links.
748         (syms_of_chartab): Add new symbols
749         `{->|<-}ideographic-component-forms'.
750
751 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
752
753         * chartab.c (Q_identical): New variable.
754         (Q_identical_from): New variable.
755         (Fchar_feature): Regard `->identical' as a feature to find
756         ancestors.
757         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
758         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
759         for `{->|<-}identical'.
760         (syms_of_chartab): Add new symbols `{->|<-}identical'.
761
762 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
763
764         * char-ucs.h (encode_char_2): New inline function.
765         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
766
767 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
768
769         * chartab.c (Fput_char_attribute): Convert char-specs to
770         characters in value of `ideographic-structure'.
771         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
772         for `{<-|->}simplified(@...)'.
773         (Fdefine_char): Try to use predefined character's id.
774
775 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
776
777         * fns.c (simplify_char_spec): Try to convert builtin chars to
778         defined chars.
779
780 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
781
782         * chartab.c (Fput_char_attribute): Convert char-specs in value of
783         `<-simplified[^*]*' to characters and put reverse links.
784
785 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
786
787         * chartab.c (Q_subsumptive): Renamed from Q_unified.
788         (Q_subsumptive_from): Renamed from Q_unified_from.
789         (Fchar_feature): Use `Q_subsumptive_from' instead of
790         `Q_unified_from'.
791         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
792         `Q_unified'.
793         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
794         `<-unified' to `<-subsumptive'.
795
796 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
797
798         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
799         inheritance itself; fix typo; stop recursive search if cyclic
800         inheritance is found.
801
802 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
803
804         * chartab.c (Q_denotational): New variable.
805         (Q_denotational_from): New variable.
806         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
807         (put_char_attribute): New function.
808         (Fput_char_attribute): Use `put_char_attribute'; regard
809         `->denotational' and `<-denotational' as same as `->unified' and
810         `<-unified'.
811         (syms_of_chartab): Add new symbols `->denotational' and
812         `<-denotational'.
813
814 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
815
816         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
817         `Fget_char_attribute'.
818         (Fchar_variants): Likewise.
819         (get_char_table): Likewise.
820         (Fchar_feature): New function.
821         (put_char_composition): Use `Fchar_feature' instead of
822         `Fget_char_attribute'.
823         (Fput_char_attribute): Likewise; don't put the target character
824         into its `->unified' value.
825         (syms_of_chartab): Add new builtin function `char-feature'.
826
827 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
828
829         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
830         `Fget_char_attribute'.
831         (char_encode_utf8): Likewise.
832
833         * chartab.h: Add an EXFUN for `Fchar_feature'.
834
835 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
836
837         * chartab.c (Vnext_defined_char_id): New variable.
838         (Fput_char_attribute): Accept characters in `->unified'.
839         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
840         new characters which are not related with builtin char-id ranges.
841         (vars_of_chartab): Add new variable `next-defined-char-id'.
842
843 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
844
845         * chartab.c (Q_unified): New variable.
846         (Q_unified_from): New variable.
847         (Fput_char_attribute): Add code for `->unified'.
848         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
849         XEmacs CHISE.
850
851 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
852
853         * mule-charset.c (decode_ccs_conversion): New function.
854         (decode_defined_char): Use `decode_ccs_conversion'.
855         (decode_builtin_char): Likewise.
856
857 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
858
859         * char-ucs.h: Change some charset-ids of private coded-charsets.
860
861 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
862
863         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
864         (char_encode_as_entity_reference): Likewise.
865         (decode_coding_big5): Modify for `decode_defined_char' and
866         `DECODE_CHAR'.
867         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
868         avoid compiler warning.
869         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
870
871         * mule-charset.c (decode_defined_char): Add new argument
872         `without_inheritance'.
873         (Fdecode_char): Add new optional argument `without_inheritance'.
874         (Fdecode_builtin_char): Modify for `Fdecode_char'.
875
876         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
877         (simplify_char_spec): Likewise.
878
879         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
880         setting.
881
882         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
883         (map_char_table): Likewise.
884         (Fdefine_char): Use `Fdecode_char' without inheritance.
885         (Ffind_char): Modify for `Fdecode_char'.
886
887         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
888
889         * char-ucs.h (decode_defined_char): Add new argument
890         `without_inheritance'.
891         (DECODE_CHAR): Likewise.
892         (MAKE_CHAR): Modify for `DECODE_CHAR'.
893
894 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
895
896         * chartab.c (Vchise_system_db_directory): New variable.
897         (vars_of_chartab): Add new variable `chise-system-db-directory'.
898
899 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
900
901         * chartab.c: EXFUN `Fmount_char_attribute_table'.
902         (print_chartab_range): Don't define when `UTF2000' is defined.
903         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
904         `CHISE_DS_open'.
905
906 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
907
908         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
909         and optional argument `rehash' is specified, call
910         `open_chise_data_source_maybe' before
911         `chise_ds_foreach_char_feature_name' is called.
912
913 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
914
915         * chartab.c (char_attribute_list_reset_map_func): New function
916         when HAVE_LIBCHISE is defined.
917         (Fchar_attribute_list): Add new optional argument `rehash' when
918         HAVE_LIBCHISE is defined.
919         (open_chise_data_source_maybe): Use "chise-db" instead of
920         "char-db".
921         (char_attribute_system_db_file): Likewise.
922         (Fload_char_attribute_table): Use
923         `chise_feature_foreach_char_with_value' instead of
924         `chise_char_feature_value_iterate'.
925
926 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
927
928         * chartab.c (Vchise_db_directory): New variable.
929         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
930
931 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
932
933         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
934         instead of HAVE_CHISE to specify using with libchise.
935
936         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
937
938         * chartab.h: Don't use HAVE_CHISE_CLIENT.
939
940         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
941         defined or HAVE_LIBCHISE_LIBCHISE is defined.
942         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
943         is defined.
944         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
945         HAVE_CHISE to specify using with libchise.
946         (syms_of_chartab): Don't define symbol `system-char-id' when
947         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
948
949 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
950
951         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
952         specify CHISE DB support.
953         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
954         of `char_attribute_system_db_file' to check feature DB file.
955
956         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
957         HAVE_CHISE_CLIENT to specify CHISE DB support.
958
959         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
960         specify CHISE DB support.
961         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
962         not defined.
963         (Freset_char_attribute_table): Use `chise_feature_setup_db'
964         instead of `char_attribute_system_db_file' to check feature DB
965         file.
966
967 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
968
969         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
970         `HAVE_CHISE_CLIENT'.
971
972 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
973
974         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
975         (Fsave_charset_mapping_table): Don't use
976         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
977
978         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
979         (HAVE_LIBCHISE): New macro.
980
981         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
982
983         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
984         (Fsave_char_attribute_table): Don't use
985         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
986
987 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
988
989         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
990         defined.
991         (save_uint16_byte_table): Likewise.
992         (save_byte_table): Likewise.
993         (char_table_get_db): Use `chise_ds_load_char_feature_value'
994         instead of `chise_char_load_feature_value'.
995         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
996
997 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
998
999         * chartab.h (struct Lisp_Char_Table): Delete member
1000         `feature_table' if CHISE is defined.
1001
1002         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
1003         (Fcopy_char_table): Likewise.
1004         (char_table_open_db_maybe): Likewise.
1005         (char_table_close_db_maybe): Likewise.
1006         (char_table_get_db): Likewise.
1007         (Fmount_char_attribute_table): Likewise.
1008         (Fload_char_attribute_table): Likewise.
1009
1010 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1011
1012         * mule-charset.c (load_char_decoding_entry_maybe): Use
1013         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
1014         `chise_ccs_decode'.
1015
1016 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1017
1018         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
1019         instead of `chise_open_data_source'.
1020         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
1021         `chise_ds_close'.
1022
1023 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1024
1025         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
1026         instead of `chise_ds_open_feature_table'.
1027         (char_table_close_db_maybe): Don't use `chise_ft_close'.
1028
1029 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1030
1031         * mule-charset.c (Fsave_charset_mapping_table): Use
1032         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
1033         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
1034         `chise_ccs_sync' instead of `chise_ccst_close'.
1035         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
1036
1037         * chartab.c (open_chise_data_source_maybe): Modify for
1038         `chise_open_data_source'.
1039         (char_table_open_db_maybe): Modify for
1040         `chise_ds_open_feature_table'.
1041
1042 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1043
1044         * mule-charset.c (load_char_decoding_entry_maybe): Use
1045         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
1046         `chise_ccst_close'.
1047
1048 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1049
1050         * mule-charset.c (Fsave_charset_mapping_table): Use
1051         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
1052         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
1053         `chise_dt_put_char' and `chise_dt_close'.
1054         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1055         `chise_ccs_decode' and `chise_ccst_close' instead of
1056         `chise_ds_open_decoding_table', `chise_dt_get_char' and
1057         `chise_dt_close'.
1058
1059         * chartab.c (char_table_get_db): Use
1060         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1061         (load_char_attribute_table_map_func): Modify for
1062         `chise_char_feature_value_iterate'.
1063         (Fload_char_attribute_table): Use
1064         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1065
1066 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1067
1068         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1069
1070 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1071
1072         * chartab.c (put_char_table): Modify for inherited coded-charsets
1073         in XEmacs CHISE.
1074
1075 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1076
1077         * chartab.c (Fput_char_table_map_function): Fixed.
1078         (word_boundary_p): Don't check charset in XEmacs CHISE.
1079
1080 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1081
1082         * mule-charset.c (Fsave_charset_mapping_table): Use
1083         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1084         instead of `chise_open_decoding_table'; refer
1085         `default_chise_data_source'; use `chise_dt_close' instead of
1086         `chise_close_decoding_table'.
1087         (load_char_decoding_entry_maybe): Likewise.
1088
1089         * chartab.c (default_chise_data_source): New variable when `CHISE'
1090         is defined.
1091         (Fcopy_char_table): `ct->ds' is deleted.
1092         (open_chise_data_source_maybe): New function.
1093         (Fclose_char_data_source): New function.
1094         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1095         use `chise_ds_open_feature_table' instead of
1096         `chise_open_feature_table'.
1097         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1098         `chise_close_feature_table'; `cit->ds' is deleted.
1099         (syms_of_chartab): Add new builtin function
1100         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1101
1102         * chartab.h (default_chise_data_source): New extern variable.
1103         (open_chise_data_source_maybe): New prototype.
1104         (struct Lisp_Char_Table): Delete `ds'.
1105
1106 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1107
1108         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1109         `CHISE' is defined.
1110
1111 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1112
1113         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1114         not defined; add code for non-libchise setting.
1115         (char_table_close_db_maybe): Likewise.
1116         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1117         defined.
1118         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1119         even if `CHISE' is not defined.
1120         (Freset_char_attribute_table): Likewise.
1121         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1122         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1123         `char_table_get_db'.
1124         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1125         `char_table_close_db_maybe' even if `CHISE' is not defined.
1126
1127 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1128
1129         * chartab.c (char_table_open_db_maybe): New function.
1130         (char_table_close_db_maybe): New function.
1131         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1132         (Freset_char_attribute_table): Likewise.
1133         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1134         `char_table_close_db_maybe'.
1135         (Fload_char_attribute_table): Likewise.
1136
1137 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1138
1139         * chartab.c: Don't include <chise.h> because it is included in
1140         chartab.h.
1141         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1142         defined.
1143         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1144         `CHISE' is defined.
1145         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1146         `CHISE' is defined.
1147         (Fclose_char_attribute_table): Close `ct->feature_table' and
1148         `ct->ds' when `CHISE' is defined.
1149         (Freset_char_attribute_table): Likewise.
1150         (load_char_attribute_maybe): Use `cit->ds' and
1151         `cit->feature_table' when `CHISE' is defined.
1152         (Fload_char_attribute_table): Likewise.
1153
1154         * chartab.h: Include <chise.h> when `CHISE' is defined.
1155         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1156         when `CHISE' is defined.
1157
1158 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1159
1160         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1161         is defined.
1162         (char_table_description): Likewise.
1163         (Fmake_char_table): Likewise.
1164         (Fcopy_char_table): Likewise.
1165         (Fmount_char_attribute_table): Likewise.
1166         (Fclose_char_attribute_table): Likewise.
1167         (Freset_char_attribute_table): Likewise.
1168         (load_char_attribute_maybe): Likewise.
1169         (Fload_char_attribute_table): Likewise.
1170
1171         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1172         defined.
1173
1174 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1175
1176         * chartab.c (load_char_attribute_table_map_func): New function
1177         when CHISE is defined.
1178         (Qload_char_attribute_table_map_function): Don't define when CHISE
1179         is defined.
1180         (Fload_char_attribute_table_map_function): Likewise.
1181         (Fload_char_attribute_table): Use libchise when `CHISE' is
1182         defined.
1183         (syms_of_chartab): Don't define
1184         `load-char-attribute-table-map-function' when CHISE is defined.
1185
1186 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1187
1188         * chartab.c: Include <chise.h> when `CHISE' is defined.
1189         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1190
1191 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1192
1193         * mule-charset.c (charset_code_point): Fix problem when searching
1194         in mother CCS fails with `defined_only' mode.
1195
1196 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1197
1198         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1199         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1200         (put_char_composition): Likewise.
1201         (Fput_char_attribute): Likewise.
1202         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1203
1204 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1205
1206         * chartab.c (Q_ucs): Deleted.
1207         (Fput_char_attribute): Don't refer `->ucs'.
1208         (Fdefine_char): Likewise.
1209         (Ffind_char): Likewise.
1210         (syms_of_chartab): Delete `->ucs'.
1211
1212 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1213
1214         * mule-charset.c (Qmap_cns11643_2): Renamed from
1215         `Qchinese_cns11643_2'.
1216         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1217         `chinese-cns11643-2'.
1218         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1219         `=cns11643-2'.
1220
1221 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1222
1223         * mule-charset.c (Qmap_cns11643_1): Renamed from
1224         `Qchinese_cns11643_1'.
1225         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1226         `chinese-cns11643-1'.
1227         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1228         `=cns11643-1'.
1229
1230 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1231
1232         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1233         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1234         `chinese-gb12345'.
1235         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1236         `=gb12345'.
1237
1238 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1239
1240         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1241         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1242         `chinese-gb2312'.
1243         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1244         `=gb2312'.
1245
1246 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1247
1248         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1249         (syms_of_mule_charset): Add new symbol `=big5' instead of
1250         `chinese-big5'.
1251         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1252
1253 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1254
1255         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1256         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1257         `korean-ksc5601'.
1258         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1259         `=ks-x1001'.
1260
1261 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1262
1263         * mule-charset.c (Qmap_jis_x0212): Renamed from
1264         `Qjapanese_jisx0212'.
1265         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1266         `japanese-jisx0212'.
1267         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1268         `=jis-x0212'.
1269
1270 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1271
1272         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1273         `Qjapanese_jisx0208'.
1274         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1275         of `japanese-jisx0208'.
1276         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1277         `=jis-x0208-1983'.
1278
1279 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1280
1281         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1282         `Qjapanese_jisx0208_1978'.
1283         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1284         of `japanese-jisx0208-1978'.
1285         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1286         `=jis-x0208-1978'.
1287
1288 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1289
1290         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1291         only for XEmacs CHISE.
1292
1293 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1294
1295         * char-ucs.h: Compact non-ISO-IR charset-ids.
1296         (LEADING_BYTE_UCS): Changed to -177.
1297         (LEADING_BYTE_CONTROL_1): Changed to -77.
1298         (LEADING_BYTE_UCS_BMP): Changed to -176.
1299         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1300
1301 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1302
1303         * mule-charset.c (Qiso_ir): New variable.
1304         (Fmake_charset): Recognise new property `iso-ir'.
1305         (syms_of_mule_charset): Add new symbol `iso-ir'.
1306
1307 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1308
1309         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1310         n to -n; charset-id of non ISO-IR sets are changed to positive
1311         numbers.
1312
1313 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1314
1315         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1316         for &MCS-XXXXXXXX; values.
1317
1318 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1319
1320         * mule.c (Vxemacs_chise_version): Renamed from
1321         `Vutf_2000_version'.
1322         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1323         `utf-2000-version' as an alias for `xemacs-chise-version'.
1324
1325 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1326
1327         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1328         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1329         defined.
1330
1331         * config.h.in (CHISE): New macro.
1332
1333 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1334
1335         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1336         of `ucs'.
1337         (Qmap_ucs): New variable.
1338         (syms_of_mule_charset): Add new symbol `=ucs'.
1339         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1340
1341         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1342         (simplify_char_spec): Likewise.
1343
1344         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1345
1346         * char-ucs.h (Qmap_ucs): New extern variable.
1347
1348 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1349
1350         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1351         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1352         don't define it when UTF2000 is not defined.
1353         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1354         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1355         when UTF2000 is not defined.
1356         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1357         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1358
1359 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1360
1361         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1362
1363         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1364         (Qucs_gb): Deleted.
1365         (syms_of_mule_charset): Delete `ucs-gb'.
1366         (complex_vars_of_mule_charset): Likewise.
1367
1368 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1369
1370         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1371
1372         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1373         (Qucs_cns): Deleted.
1374         (syms_of_mule_charset): Delete `ucs-cns'.
1375         (complex_vars_of_mule_charset): Likewise.
1376
1377 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1378
1379         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1380
1381         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1382         (Qucs_jis): Deleted.
1383         (syms_of_mule_charset): Delete `ucs-jis'.
1384         (complex_vars_of_mule_charset): Likewise.
1385
1386 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1387
1388         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1389
1390         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1391         (Qucs_ks): Deleted.
1392         (syms_of_mule_charset): Delete `ucs-ks'.
1393         (complex_vars_of_mule_charset): Likewise.
1394
1395 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1396
1397         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1398         (Qideograph_daikanwa_2): Deleted.
1399         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1400         (complex_vars_of_mule_charset): Likewise.
1401
1402         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1403         (LEADING_BYTE_DAIKANWA_1): Deleted.
1404         (LEADING_BYTE_DAIKANWA_2): Deleted.
1405         (MIN_CHAR_DAIKANWA): Deleted.
1406         (MAX_CHAR_DAIKANWA): Deleted.
1407
1408 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1409
1410         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1411         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1412         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1413
1414         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1415         (Vcharset_ideograph_daikanwa): Deleted.
1416         (Qideograph_hanziku_{1..12}): Deleted.
1417         (Qideograph_daikanwa): Deleted.
1418         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1419         Vcharset_ideograph_daikanwa.
1420         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1421         `ideograph-hanziku-{1..12}'.
1422         (complex_vars_of_mule_charset): Likewise.
1423
1424 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1425
1426         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1427
1428         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1429         (Qideograph_gt_pj_{1..11}): Deleted.
1430         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1431         (complex_vars_of_mule_charset): Likewise.
1432
1433 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1434
1435         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1436         (Vcharset_ideograph_gt): Deleted.
1437         (Qucs_big5): Deleted.
1438         (Qideograph_gt): Deleted.
1439         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1440         `ideograph-gt'.
1441         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1442         and `ideograph-gt'.
1443
1444         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1445         (LEADING_BYTE_GT): Deleted.
1446         (MIN_CHAR_GT): Deleted.
1447         (MAX_CHAR_GT): Deleted.
1448
1449 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1450
1451         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1452
1453 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1454
1455         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1456         (save_uint16_byte_table): Likewise.
1457         (save_byte_table): Likewise; convert values by it.
1458         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1459         for `ideographic-structure'.
1460         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1461         as the filter for `ideographic-structure'.
1462
1463 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1464
1465         * chartab.c (put_char_composition): New function.
1466         (Fput_char_attribute): Use `put_char_composition'; use
1467         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1468
1469         * fns.c (simplify_char_spec): New function.
1470         (char_ref_simplify_spec): New function.
1471         (Fchar_refs_simplify_char_specs): New function.
1472         (syms_of_fns): Add new builtin function
1473         `char-refs-simplify-char-specs'.
1474
1475 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1476
1477         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1478         (Qideograph_cbeta): Deleted.
1479         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1480         (complex_vars_of_mule_charset): Likewise.
1481
1482         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1483         (MIN_CHAR_CBETA): Comment out.
1484         (MAX_CHAR_CBETA): Likewise.
1485
1486 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1487
1488         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1489         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1490         CHISE client feature.
1491
1492 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1493
1494         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1495
1496 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1497
1498         * mule-charset.c (charset_lookup_description_1): Use
1499         `NUM_LEADING_BYTES' in UTF-2000.
1500
1501 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1502
1503         * char-ucs.h (GC_CHARSETP): Deleted.
1504
1505 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1506
1507         * char-ucs.h (MAX_CHAR_GT): Updated.
1508
1509 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1510
1511         * text-coding.c: Sync with XEmacs 21.4.10.
1512
1513 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1514
1515         * mule-charset.c (Vcharset_china3_jef): Deleted.
1516         (Qchina3_jef): Deleted.
1517         (syms_of_mule_charset): Don't define `china3-jef'.
1518         (complex_vars_of_mule_charset): Likewise.
1519
1520         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1521         (MIN_CHAR_CHINA3_JEF): Comment out.
1522         (MAX_CHAR_CHINA3_JEF): Comment out.
1523
1524 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1525
1526         * mule-charset.c (Vcharset_ucs_gb): New variable.
1527         (Qucs_gb): New variable.
1528         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1529         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1530
1531         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1532
1533 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1534
1535         * mule-charset.c (charset_code_point): if a coded-charset has a
1536         final-byte, don't inherit the builtin range of the mother CCS.
1537
1538 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1539
1540         * mule-charset.c (charset_code_point): Fix problem about
1541         inheritance.
1542
1543 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1544
1545         * mule-charset.c (decode_builtin_char): Reorganized.
1546
1547 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1548
1549         * text-coding.c (char_encode_as_entity_reference): Modify for
1550         `charset_code_point'.
1551         (char_encode_shift_jis): Likewise.
1552         (char_encode_big5): Likewise.
1553         (char_encode_utf8): Likewise.
1554         (char_encode_iso2022): Likewise.
1555
1556         * mule-charset.c (charset_code_point): Add new argument
1557         `defined_only'.
1558         (Fencode_char): Add new optional argument `defined_only'.
1559
1560         * chartab.c (put_char_table): Modify for `charset_code_point'.
1561
1562         * char-ucs.h (charset_code_point): Add new argument
1563         `defined_only'.
1564         (encode_char_1): Modify for `charset_code_point'.
1565
1566 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1567
1568         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1569         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1570
1571 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1572
1573         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1574         (Qjis_x0208): Likewise.
1575         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1576         XCHARSET_FINAL(charset).
1577         (charset_code_point): Modify condition for final-byte based
1578         builtin-chars.
1579         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1580         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1581         in UTF-2000; specify `=jis-x0208' as the mother of
1582         `japanese-jisx0208-1978', `japanese-jisx0208' and
1583         `japanese-jisx0208-1990' in UTF-2000.
1584
1585 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1586
1587         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1588
1589 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1590
1591         * text-coding.c (decode_coding_utf16): Support UTF-16.
1592         (char_encode_utf16): Fixed.
1593
1594 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1595
1596         * text-coding.c (Qutf16): New variable in MULE.
1597         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1598         (Fcoding_system_type): Add `utf-16' in MULE.
1599         (struct detection_state): Add a structure for utf16 in MULE.
1600         (detect_coding_type): Setup st->utf16.mask in MULE.
1601         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1602         MULE.
1603         (reset_encoding_stream): Use `char_encode_utf16' and
1604         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1605         (detect_coding_utf16): New function [incomplete].
1606         (decode_coding_utf16): New function [support only UCS-2].
1607         (char_encode_utf16): New function.
1608         (char_finish_utf16): New function.
1609         (syms_of_file_coding): Add new symbol `utf-16'; setup
1610         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1611
1612         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1613         UTF-2000.
1614         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1615         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1616
1617 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1618
1619         * chartab.c (put_char_table): When a charset is specified as a
1620         range in UTF-2000, don't support builtin characters.
1621
1622 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1623
1624         * mule-charset.c (decode_defined_char): Don't refer external
1625         database if Qunbound or Qnil are found.
1626         (Fsave_charset_mapping_table): Don't define it if
1627         HAVE_CHISE_CLIENT is not defined.
1628         (Freset_charset_mapping_table): New function.
1629         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1630         found in external database.
1631         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1632         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1633         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1634
1635 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1636
1637         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1638         not.
1639
1640 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1641
1642         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1643         Q_lowercase, Q_uppercase in UTF-2000.
1644
1645         * chartab.c (get_char_table): Add special code for the standard
1646         case table to use character attribute `->downcase' and
1647         `->uppercase' for case operations in UTF-2000.
1648
1649         * casetab.c (Qflippedcase): New variable in UTF-2000.
1650         (Q_lowercase): Likewise.
1651         (Q_uppercase): Likewise.
1652         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1653         and `->uppercase' in UTF-2000.
1654         (complex_vars_of_casetab): Assign attribute name `downcase' to
1655         downcase and CANON table of Vstandard_case_table in UTF-2000;
1656         assign attribute name `flippedcase' to upcase and EQV table of
1657         Vstandard_case_table in UTF-2000.
1658
1659 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1660
1661         * text-coding.c (decode_add_er_char): Support isolated-chars.
1662         (char_encode_as_entity_reference): Likewise.
1663
1664 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1665
1666         * emacs.c (Vutf_2000_lisp_directory): New variable.
1667         (Vconfigure_utf_2000_lisp_directory): Likewise.
1668         (complex_vars_of_emacs): Add new variable
1669         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1670
1671 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1672
1673         * char-ucs.h (DECODE_CHAR): Delete special code for
1674         `chinese-big5-1' and `chinese-big5-2'.
1675
1676         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1677         (Qbig5_2): Likewise.
1678         (decode_defined_char): Support CONVERSION_BIG5_1 and
1679         CONVERSION_BIG5_2.
1680         (decode_builtin_char): Likewise.
1681         (charset_code_point): Likewise.
1682         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1683         'conversion in UTF-2000.
1684         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1685         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1686         `chinese-big5-2' as children of `chinese-big5'.
1687
1688         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1689         (CONVERSION_BIG5_2): New macro.
1690
1691 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1692
1693         * text-coding.c (char_encode_big5): Support entity-reference.
1694
1695 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1696
1697         * text-coding.c (char_encode_as_entity_reference): New function.
1698         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1699
1700 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1701
1702         * text-coding.c (decode_coding_big5): Support entity-reference
1703         decoding feature.
1704
1705 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1706
1707         * text-coding.c (allocate_coding_system): Initialize initial
1708         charsets for CODESYS_UTF8.
1709         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1710         charset-g2 for CODESYS_UTF8.
1711         (decode_coding_utf8): Use charset-g0.
1712         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1713         to force variants to map to UCS.
1714
1715 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1716
1717         * text-coding.c (Qutf_8_mcs): New variable.
1718         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1719         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1720         instead of `utf-8' in UTF-2000.
1721
1722 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1723
1724         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1725         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1726         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1727         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1728         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1729         CONVERSION_96x96x96x96 are introduced.
1730         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1731         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1732         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1733
1734         * char-ucs.h (CONVERSION_94): New macro.
1735         (CONVERSION_96): New macro.
1736         (CONVERSION_94x94): New macro.
1737         (CONVERSION_96x96): New macro.
1738         (CONVERSION_94x94x94): New macro.
1739         (CONVERSION_96x96x96): New macro.
1740         (CONVERSION_94x94x94x60): New macro.
1741         (CONVERSION_94x94x94x94): New macro.
1742         (CONVERSION_96x96x96x96): New macro.
1743
1744 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1745
1746         * chartab.c (Vcharacter_variant_table): Deleted.
1747         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1748         of `Vcharacter_variant_table'.
1749         (Fput_char_attribute): Likewise.
1750         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1751         (complex_vars_of_chartab): Likewise.
1752
1753 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1754
1755         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1756
1757         * fns.c (Qideographic_structure): New variable.
1758         (Qkeyword_char): New variable.
1759         (ids_format_unit): New function.
1760         (Fideographic_structure_to_ids): New function.
1761         (syms_of_fns): Add new symbols `ideographic-structure' and
1762         `:char'; add new builtin function `ideographic-structure-to-ids'.
1763
1764         * data.c (Fchar_ref_p): New function.
1765         (syms_of_data): Add new builtin function `char-ref-p'.
1766
1767         * chartab.h: Add an EXFUN for `Ffind_char'.
1768
1769 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1770
1771         * text-coding.c (Vcharacter_composition_table): Deleted.
1772         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1773         in every UTF-2000.
1774
1775         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1776         UTF-2000.
1777         (Vcharacter_composition_table): Deleted.
1778         (Fget_composite_char): Use the implementation for external-DB
1779         support in every UTF-2000.
1780         (Fput_char_attribute): Likewise.
1781         (char_attribute_system_db_file): Don't define if external-DB
1782         feature is not available.
1783         (Fsave_char_attribute_table): Likewise.
1784         (Fmount_char_attribute_table): Likewise.
1785         (Fclose_char_attribute_table): Likewise.
1786         (Freset_char_attribute_table): Likewise.
1787         (Fload_char_attribute_table): Likewise.
1788         (syms_of_chartab): Don't define `save-char-attribute-table',
1789         `mount-char-attribute-table', `reset-char-attribute-table',
1790         `close-char-attribute-table' and `load-char-attribute-table' if
1791         external-DB feature is not available.
1792         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1793
1794 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1795
1796         * text-coding.c (Qcomposition): Add extern if external-DB feature
1797         is supported.
1798         (Vcharacter_composition_table): Don't add extern if external-DB
1799         feature is supported.
1800         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1801         character composition rule if external-DB feature is supported.
1802
1803         * chartab.c (Vcharacter_composition_table): Don't define if
1804         external-DB feature is supported.
1805         (Qcomposition): New variable.
1806         (Fget_composite_char): New implementation for external-DB support.
1807         (Fput_char_attribute): Use `composition' property of each
1808         character instead of `Vcharacter_composition_table' to store
1809         character-composition rules if external-DB feature is supported.
1810         (syms_of_chartab): Add new symbol `composition'.
1811         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1812         external-DB feature is supported.
1813
1814 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1815
1816         * chartab.c (Vchar_db_stingy_mode): New variable.
1817         (load_char_attribute_maybe): Close database if
1818         Vchar_db_stingy_mode is not NIL.
1819         (Fload_char_attribute_table_map_function): Use
1820         `get_char_id_table_0' instead of `get_char_id_table'.
1821         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1822
1823         * chartab.h (get_char_id_table_0): New inline function.
1824         (get_char_id_table): Use `get_char_id_table_0'.
1825
1826 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1827
1828         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1829         and `COMPOSE_ADD_CHAR'.
1830         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1831
1832 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1833
1834         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1835         instead of `DECODE_ADD_UCS_CHAR'.
1836         (COMPOSE_ADD_CHAR): Likewise.
1837
1838 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1839
1840         * text-coding.c (decode_flush_er_chars): New inline function.
1841         (decode_add_er_char): New function.
1842         (decode_coding_utf8): Use `decode_flush_er_chars' and
1843         `decode_add_er_char'.
1844
1845 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1846
1847         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1848         done before `decode_output_utf8_partial_char'.
1849
1850         * mule-charset.c (complex_vars_of_mule_charset): Specify
1851         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1852         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1853
1854 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1855
1856         * mule-charset.c (decode_defined_char): New function; search
1857         mother.
1858         (decode_builtin_char): Don't search mother if
1859         XCHARSET_MAX_CODE(charset) == 0.
1860         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1861         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1862         (Fdecode_char): Use `decode_defined_char' instead of
1863         `DECODE_DEFINED_CHAR'.
1864         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1865         mother of `Vcharset_ucs_jis'.
1866
1867         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1868         instead of `DECODE_DEFINED_CHAR'.
1869
1870         * char-ucs.h (decode_defined_char): Renamed from
1871         `DECODE_DEFINED_CHAR'; changed to normal function.
1872         (DECODE_CHAR): Use `decode_defined_char' instead of
1873         `DECODE_DEFINED_CHAR'.
1874
1875         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1876
1877 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1878
1879         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1880
1881         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1882         variable.
1883         (Quse_entity_reference): New variable.
1884         (Qd): New variable.
1885         (Qx): New variable.
1886         (QX): New variable.
1887         (coding_system_description): Add description for
1888         `ccs_priority_list'.
1889         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1890         (allocate_coding_system): Initialize `ccs_priority_list' in
1891         UTF-2000.
1892         (Fmake_coding_system): Add description about
1893         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1894         (codesys).
1895         (Fcoding_system_property): Accept `disable-composition' and
1896         `use-entity-reference' in UTF-2000.
1897         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1898         in UTF-2000.
1899         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1900         (decode_coding_utf8): Decode entity-reference if
1901         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1902         (char_encode_utf8): Encode non-Unicode characters as
1903         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1904         (str->codesys).
1905         (syms_of_file_coding): Add new symbols `use-entity-reference',
1906         `d', `x', `X'.
1907         (vars_of_file_coding): Add new variable
1908         `coded-charset-entity-reference-alist'.
1909         (complex_vars_of_file_coding): Declare `disable-composition' and
1910         `use-entity-reference' to be coding-system-properties in UTF-2000.
1911
1912         * file-coding.h (struct Lisp_Coding_System): Add new member
1913         `use_entity_reference' and `ccs_priority_list'.
1914         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1915         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1916         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1917
1918 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1919
1920         * chartab.c (save_uint8_byte_table): Don't clear the table.
1921         (save_uint16_byte_table): Likewise.
1922         (save_byte_table): Likewise.
1923         (Fmount_char_attribute_table): New function.
1924         (syms_of_chartab): Add new builtin function
1925         `mount-char-attribute-table'.
1926
1927 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1928
1929         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1930         "w+" mode.
1931         (load_char_decoding_entry_maybe): Open database as read-only mode.
1932
1933         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1934         open database as "w+" mode.
1935         (load_char_attribute_maybe): Open database as read-only mode.
1936         (Fload_char_attribute_table): Likewise.
1937
1938 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1939
1940         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1941         (char_table_description): Delete member `db_file'.
1942         (Fmake_char_table): Don't refer `ct->db_file'.
1943         (Fcopy_char_table): Likewise.
1944         (Fsave_char_attribute_table): Likewise.
1945         (Fclose_char_attribute_table): Likewise.
1946         (Freset_char_attribute_table): Likewise.
1947         (load_char_attribute_maybe): Likewise.
1948         (Fload_char_attribute_table): Likewise.
1949
1950         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1951
1952 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1953
1954         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1955         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1956         `ct->db' is living.
1957         (load_char_attribute_maybe): Likewise.
1958         (Fload_char_attribute_table): Likewise.
1959
1960 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1961
1962         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1963         `ct->db_file' unconditionally.
1964
1965 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1966
1967         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1968         UTF-2000.
1969         (char_table_description): Add description for `db_file' and `db'
1970         in UTF-2000.
1971         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1972         UTF-2000.
1973         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1974         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1975         (Fclose_char_attribute_table): New function.
1976         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1977         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1978         and `cit->db'.
1979         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1980         (syms_of_chartab): Add new builtin function
1981         `Fclose_char_attribute_table'.
1982
1983 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1984
1985         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1986         `db' in UTF-2000.
1987         (load_char_attribute_maybe): Change interface.
1988         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1989
1990 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1991
1992         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1993
1994 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1995
1996         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1997         instead of `DECODE_CHAR' for mother; don't use special code for
1998         chinese-big5 to use code space of chinese-big5-1 and
1999         chinese-big5-2.
2000         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
2001         `MAX_CHAR_BIG5_CDP' for chinese-big5.
2002
2003         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
2004         (MAX_CHAR_BIG5_CDP): Revival.
2005
2006 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2007
2008         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
2009         the XLFD registry-encoding name of `chinese-big5'.
2010
2011 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2012
2013         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
2014         (Qchinese_big5_cdp): Deleted.
2015         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
2016         (complex_vars_of_mule_charset): Delete coded-charset
2017         `chinese-big5-cdp'.
2018
2019         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
2020         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
2021         `CHARSET_ID_OFFSET - n' for private CCS.
2022         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
2023         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
2024         of `MIN_LEADING_BYTE'.
2025         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
2026         `(CHARSET_ID_OFFSET - 97)'.
2027         (MIN_CHAR_BIG5_CDP): Deleted.
2028         (MAX_CHAR_BIG5_CDP): Deleted.
2029
2030 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2031
2032         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
2033
2034 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2035
2036         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
2037         (vars_of_mule): Add new variable `utf-2000-version' [moved from
2038         chartab.c].
2039
2040         * chartab.c (Vutf_2000_version): Moved to mule.c.
2041         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
2042
2043 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2044
2045         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
2046         when HAVE_CHISE_CLIENT is not defined.
2047
2048         * mule.c (vars_of_mule): Provide feature `chise' when
2049         HAVE_CHISE_CLIENT is defined.
2050
2051 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2052
2053         * config.h.in (UTF2000): Add comment.
2054         (HAVE_CHISE_CLIENT): New macro.
2055
2056 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2057
2058         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2059         CONSP.
2060         (Fput_char_attribute): Likewise.
2061         (char_attribute_system_db_file): Encode file-name of attribute.
2062         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2063         the initial value.
2064
2065 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2066
2067         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2068         (Fsave_charset_mapping_table): Use
2069         `char_attribute_system_db_file'.
2070         (load_char_decoding_entry_maybe): Likewise.
2071
2072         * chartab.h (Qsystem_char_id): New external variable.
2073         (char_attribute_system_db_file): New prototype.
2074
2075         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2076         (char_attribute_system_db_file): New function.
2077         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2078         (Freset_char_attribute_table): Likewise.
2079         (load_char_attribute_maybe): Likewise.
2080         (Fload_char_attribute_table): Likewise.
2081         (syms_of_chartab): Add new symbol `system-char-id'.
2082
2083 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2084
2085         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2086         `XCHARSET_GRAPHIC(ccs)'.
2087
2088 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2089
2090         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2091
2092 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2093
2094         * chartab.c (Q_ucs_variants): New variable.
2095         (syms_of_chartab): Add new symbol `->ucs-variants'.
2096         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2097         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2098         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2099
2100         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2101
2102         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2103         `HAVE_DATABASE' is defined.
2104         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2105         `HAVE_DATABASE' is defined.
2106
2107 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2108
2109         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2110         attribute-table.
2111         (Freset_char_attribute_table): New function.
2112         (syms_of_chartab): Add new builtin function
2113         `reset-char-attribute-table'.
2114
2115 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2116
2117         * chartab.c (load_char_attribute_maybe): Don't make directories.
2118
2119 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2120
2121         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2122
2123         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2124         for decoding-table.
2125
2126 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2127
2128         * mule-charset.c (Fsave_charset_mapping_table): Use
2129         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2130
2131         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2132         instead of `XCHARSET_CHARS'.
2133
2134 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2135
2136         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2137         (XCHARSET_BYTE_SIZE): Likewise.
2138
2139         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2140         mule-charset.c].
2141         (XCHARSET_BYTE_SIZE): Likewise.
2142
2143 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2144
2145         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2146         data-directory to store database.
2147         (Fsave_char_attribute_table): Likewise.
2148         (load_char_attribute_maybe): Likewise.
2149         (Fload_char_attribute_table): Likewise.
2150
2151 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2152
2153         * mule-charset.c (Fsave_charset_mapping_table): New function.
2154         (syms_of_mule_charset): Add new builtin function
2155         `save-charset-mapping-table'.
2156
2157 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2158
2159         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2160         (get_ccs_octet_table): New inline function.
2161         (put_ccs_octet_table): Likewise.
2162         (decoding_table_put_char): Use `get_ccs_octet_table' and
2163         `put_ccs_octet_table'.
2164         (decoding_table_remove_char): Use `decoding_table_put_char'.
2165         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2166
2167         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2168         into encoding_table.
2169         (make_charset): Use Qunbound instead Qnil as initial value of
2170         decoding_table.
2171
2172 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2173
2174         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2175         element is Qunloaded.
2176         (map_over_uint16_byte_table): Likewise.
2177         (map_over_byte_table): Likewise.
2178         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2179         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2180         database support, load encoding-table of the specified
2181         coded-charset if it is not loaded yet.
2182         (save_uint8_byte_table): New function of UTF-2000 with external
2183         database support.
2184         (save_uint16_byte_table): Likewise.
2185         (save_byte_table): Likewise.
2186         (Fput_char_attribute): Don't store value into external database
2187         even if the external database feature is supported in UTF-2000;
2188         set `attribute' as name of char-table if the external database
2189         feature is supported.
2190         (Fsave_char_attribute_table): New function in UTF-2000.
2191         (syms_of_chartab): Add new builtin function
2192         `save-char-attribute-table' in UTF-2000.
2193
2194 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2195
2196         * chartab.c (char_attribute_table_to_put): New variable in
2197         UTF-2000.
2198         (Qput_char_table_map_function): Likewise.
2199         (value_to_put): Likewise.
2200         (Fput_char_table_map_function): New function in UTF-2000.
2201         (put_char_table): Use `Fmap_char_attribute' for
2202         CHARTAB_RANGE_CHARSET in UTF-2000.
2203         (Fput_char_attribute): Store symbol instead of string in
2204         `XCHAR_TABLE_NAME (table)'.
2205         (load_char_attribute_maybe): Likewise.
2206         (syms_of_chartab): Add new symbol/function
2207         `put-char-table-map-function'.
2208
2209 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2210
2211         * database.h: Add new EXFUN for `Fmap_database'.
2212
2213         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2214         (syms_of_database): Likewise.
2215
2216         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2217         UTF-2000.
2218         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2219         (XCHAR_TABLE_UNLOADED): Likewise.
2220
2221         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2222         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2223         HAVE_DATABASE is defined.
2224         (char_attribute_table_to_load): New variable of UTF-2000 with
2225         external database support.
2226         (Qload_char_attribute_table_map_function): Likewise.
2227         (Fload_char_attribute_table_map_function): New function of
2228         UTF-2000 with external database support.
2229         (Fload_char_attribute_table): New function of UTF-2000.
2230         (Fmap_char_attribute): Call Fload_char_attribute_table if
2231         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2232         (syms_of_chartab): Add new symbol and function
2233         `load-char-attribute-table-map-function' in UTF-2000 with external
2234         database support; add new function `load-char-attribute-table' in
2235         UTF-2000.
2236
2237 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2238
2239         * chartab.h (load_char_attribute_maybe): New prototype for
2240         UTF-2000 with DATABASE support.
2241         (get_char_id_table): Use `load_char_attribute_maybe' if
2242         HAVE_DATABASE is defined.
2243
2244         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2245         with DATABASE support.
2246
2247 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2248
2249         * chartab.c (Fput_char_attribute): Use S-expression as key of
2250         external database.
2251
2252         * chartab.h (get_char_id_table): Use S-expression as key of
2253         external database.
2254
2255 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2256
2257         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2258         if an element is not loaded, load the corresponding attributes
2259         from an external database.
2260         (map_over_uint16_byte_table): Likewise.
2261         (map_over_byte_table): Likewise.
2262         (map_char_table): Modify for `map_over_uint8_byte_table',
2263         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2264         element is not loaded, load the corresponding attributes from an
2265         external database.
2266         (Fput_char_attribute): Change initial values to Qunloaded.
2267
2268         * chartab.h (get_char_id_table): If a character attribute is not
2269         loaded and the attribute value is not found in an external
2270         database, store Qunbound as the attribute value.
2271
2272 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2273
2274         * chartab.c (BT_UINT8_unloaded): New macro.
2275         (UINT8_VALUE_P): Accept Qunloaded.
2276         (UINT8_ENCODE): Likewise.
2277         (UINT8_DECODE): Likewise.
2278         (BT_UINT16_unloaded): New macro.
2279         (UINT16_VALUE_P): Accept Qunloaded.
2280         (UINT16_ENCODE): Likewise.
2281         (UINT16_DECODE): Likewise.
2282         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2283         BT_UINT16_unloaded.
2284         (mark_char_table): Mark `ct->name' in UTF-2000.
2285         (char_table_description): Add `name' in UTF-2000.
2286         (Fmake_char_table): Initialize `ct->name'.
2287         (Fcopy_char_table): Copy `ct->name'.
2288         (Fput_char_attribute): Store value into an external database if
2289         HAVE_DATABASE is defined.
2290
2291         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2292         UTF-2000.
2293         (CHAR_TABLE_NAME): New macro in UTF-2000.
2294         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2295         (get_char_id_table): Try to read an external database if Qunloaded
2296         is stored in a table.
2297
2298         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2299         Qunloaded.
2300
2301 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2302
2303         * database.h: Add EXFUN definitions for Fopen_database,
2304         Fput_database, Fget_database and Fclose_database.
2305
2306         * data.c (Qunloaded): New variable in UTF-2000.
2307
2308         * lisp.h (Qunloaded): New variable in UTF-2000.
2309
2310 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2311
2312         * mule-charset.c (put_char_ccs_code_point): Modify for
2313         `decoding_table_remove_char' and `decoding_table_put_char'.
2314         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2315
2316         * char-ucs.h (decoding_table_remove_char): Change arguments to
2317         hide decoding_table vector.
2318         (decoding_table_put_char): Likewise.
2319
2320 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2321
2322         * mule-charset.c (decoding_table_remove_char): Moved to
2323         char-ucs.h.
2324         (decoding_table_put_char): Likewise.
2325
2326         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2327         from mule-charset.c].
2328         (decoding_table_remove_char): New inline function [moved from
2329         mule-charset.c].
2330         (decoding_table_put_char): Likewise.
2331
2332 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2333
2334         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2335         extension.
2336
2337 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2338
2339         * mule-charset.c (decode_builtin_char): Support mother charsets.
2340
2341 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2342
2343         * mule-charset.c (Q94x94x60): New variable.
2344         (charset_code_point): Support conversion `94x94x60'.
2345         (Fmake_charset): Likewise.
2346         (syms_of_mule_charset): Add new symbol `94x94x60'.
2347
2348         * char-ucs.h (CONVERSION_94x94x60): New macro.
2349
2350 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2351
2352         * mule-charset.c (charset_code_point): Unify code about
2353         `code-offset'.
2354
2355 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2356
2357         * mule-charset.c (charset_code_point): Merge code about builtin
2358         characters into code about mother charsets; don't use
2359         `range_charset_code_point'.
2360         (range_charset_code_point): Deleted.
2361
2362 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2363
2364         * mule-charset.c (Qcode_offset): New variable.
2365         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2366         `max-code'; accept new property `code-offset'.
2367         (syms_of_mule_charset): Add new symbol `code-offset'.
2368
2369 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2370
2371         * mule-charset.c (range_charset_code_point): Fixed.
2372
2373 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2374
2375         * mule-charset.c (decode_builtin_char): Change semantics of
2376         code-offset of coded-charset.
2377         (charset_code_point): Likewise.
2378         (range_charset_code_point): Likewise.
2379         (complex_vars_of_mule_charset): Modify for the change.
2380
2381 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2382
2383         * mule-charset.c (Fencode_char): Reverse arguments.
2384
2385         * mule-charset.c (charset_code_point): Fixed.
2386
2387 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2388
2389         * mule-charset.c (Vcharset_mojikyo): Deleted.
2390         (Vcharset_mojikyo_2022_1): Deleted.
2391         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2392         (Qmin_code): New variable in UTF-2000.
2393         (Qmax_code): Likewise.
2394         (Qmother): Likewise.
2395         (Qconversion): Likewise.
2396         (Q94x60): Likewise.
2397         (Qmojikyo): Deleted.
2398         (Qmojikyo_2022_1): Deleted.
2399         (Qmojikyo_pj_{1..22}): Deleted.
2400         (mark_charset): Mark `cs->mother'.
2401         (charset_description): Add description for `mother'.
2402         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2403         new arguments `mother' and `conversion'; use
2404         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2405         (charset_code_point): Moved from char-ucs.h; support `mother'
2406         charset feature.
2407         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2408         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2409         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2410         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2411         allow 2 as the value of `graphic' in UTF-2000; add new properties
2412         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2413         require `final' in UTF-2000; modify for `make_charset'.
2414         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2415         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2416         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2417         (Fencode_char): New function.
2418         (syms_of_mule_charset): Add new builtin function `encode-char' in
2419         UTF-2000; add new symbols `min-code', `max-code', `mother',
2420         `conversion' and `94x60'; delete symbols `mojikyo',
2421         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2422         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2423         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2424         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2425
2426         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2427         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2428
2429         * char-ucs.h (Vcharset_mojikyo): Deleted.
2430         (Vcharset_mojikyo_2022_1): Deleted.
2431         (LEADING_BYTE_MOJIKYO): Deleted.
2432         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2433         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2434         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2435         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2436         add new member `mother'; add new member `conversion'.
2437         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2438         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2439         (CHARSET_MOTHER): New macro.
2440         (CHARSET_CONVERSION): New macro.
2441         (CONVERSION_IDENTICAL): New macro.
2442         (CONVERSION_94x60): New macro.
2443         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2444         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2445         (XCHARSET_MOTHER): New macro.
2446         (XCHARSET_CONVERSION): New macro.
2447         (MIN_CHAR_MOJIKYO): Deleted.
2448         (MAX_CHAR_MOJIKYO): Deleted.
2449         (DECODE_MOJIKYO_2022): Deleted.
2450         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2451         (charset_code_point): Changed to non-inline function.
2452         (encode_char_1): Use `charset_code_point'.
2453         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2454
2455 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2456
2457         * lread.c (read_compiled_function): Fix prototype.
2458         (read_vector): Likewise.
2459
2460 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2461
2462         * lrecord.h (struct lrecord_header): Delete `older'.
2463         (set_lheader_implementation): Delete code for `older'.
2464         (set_lheader_older_implementation): Deleted.
2465         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2466         (OLDER_RECORD_P): Deleted.
2467         (OLDER_RECORD_HEADER_P): Deleted.
2468         (alloc_older_lcrecord): Deleted.
2469         (alloc_older_lcrecord_type): Deleted.
2470
2471         * alloc.c (all_older_lcrecords): Deleted.
2472         (alloc_older_lcrecord): Deleted.
2473         (disksave_object_finalization_1): Delete code for older objects.
2474         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2475         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2476
2477 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2478
2479         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2480         instead of `make_older_vector'.
2481         (put_char_ccs_code_point): Likewise.
2482         (mark_charset): Mark `cs->decoding_table'.
2483         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2484
2485         * lisp.h (make_older_vector): Deleted.
2486         (make_vector_newer): Deleted.
2487
2488         * config.h.in (HAVE_GGC): Deleted.
2489
2490         * alloc.c (make_older_vector): Deleted.
2491         (make_vector_newer_1): Deleted.
2492         (make_vector_newer): Deleted.
2493
2494 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2495
2496         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2497         (Qideograph_daikanwa_2): New variable.
2498         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2499         (complex_vars_of_mule_charset): Add new coded-charset
2500         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2501         `LEADING_BYTE_DAIKANWA'.
2502
2503         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2504         (LEADING_BYTE_DAIKANWA_1): New macro.
2505         (LEADING_BYTE_DAIKANWA_2): New macro.
2506         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2507
2508 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2509
2510         * mule-charset.c (complex_vars_of_mule_charset): Change
2511         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2512         the second revised version.
2513
2514 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2515
2516         * mule-charset.c (Vcharset_ucs_smp): New variable.
2517         (Vcharset_ucs_sip): New variable.
2518         (Qucs_smp): New variable.
2519         (Qucs_sip): New variable.
2520         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2521         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2522         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2523         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2524         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2525         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2526
2527         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2528         (LEADING_BYTE_UCS_SIP): New macro.
2529         (MIN_CHAR_SMP): New macro.
2530         (MAX_CHAR_SMP): New macro.
2531         (MIN_CHAR_SIP): New macro.
2532         (MAX_CHAR_SIP): New macro.
2533
2534 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2535
2536         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2537         utf-2000.
2538
2539 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2540
2541         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2542         value; don't store value into `encoding_table' of `Lisp_Charset'.
2543         (mark_charset): `encoding_table' was deleted.
2544         (charset_description): Likewise.
2545         (make_charset): Likewise.
2546         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2547         `put_char_ccs_code_point'.
2548
2549         * chartab.h (Fput_char_attribute): New EXFUN.
2550
2551         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2552         is unified with normal symbol space.
2553         (Fget_char_attribute): Likewise.
2554         (Fput_char_attribute): Likewise; behavior of
2555         `put_char_ccs_code_point' is changed.
2556
2557         * char-ucs.h: Include "elhash.h".
2558         (Vchar_attribute_hash_table): New external variable.
2559         (struct Lisp_Charset): Delete `encoding_table'.
2560         (CHARSET_ENCODING_TABLE): New implementation; refer
2561         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2562         `Lisp_Charset'.
2563
2564 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2565
2566         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2567         (cs) == 0.
2568
2569 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2570
2571         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2572         `chinese-big5'.
2573
2574 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2575
2576         * chartab.c (uint8_byte_table_description): New constant.
2577         (uint8-byte-table): Use `uint8_byte_table_description'.
2578         (uint16_byte_table_description): New constant.
2579         (uint16-byte-table): Use `uint16_byte_table_description'.
2580
2581 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2582
2583         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2584         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2585
2586 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2587
2588         * mule-charset.c (Vcharset_ucs_ks): New variable.
2589         (Qucs_ks): New variable.
2590         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2591         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2592
2593         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2594
2595 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2596
2597         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2598         (Fdecode_char): Likewise.
2599
2600         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2601         chartab.h.
2602         (Fdefine_char): Modify for Fdecode_char.
2603         (Ffind_char): Likewise.
2604
2605         * mule-charset.c (Fdecode_char): Add new optional argument
2606         `defined-only'.
2607         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2608
2609 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2610
2611         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2612         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2613         (allocate_coding_system): Initialize initial-charsets of
2614         CODESYS_BIG5 in XEmacs UTF-2000.
2615         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2616         CODESYS_BIG5 in XEmacs UTF-2000.
2617         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2618         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2619
2620         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2621         variables.
2622         (Qideograph_hanziku_{1 .. 12}): Likewise.
2623         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2624         .. 12}'.
2625         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2626         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2627         `ideograph-hanziku-{1 .. 12}'.
2628
2629         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2630         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2631         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2632         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2633         (DECODE_DEFINED_CHAR): New inline function.
2634         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2635
2636 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2637
2638         * mule-charset.c (Vcharset_china3_jef): Renamed from
2639         `Vcharset_japanese_jef_china3'.
2640         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2641         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2642         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2643         (syms_of_mule_charset): Rename `china3-jef' from
2644         `japanese-jef-china3'.
2645         (complex_vars_of_mule_charset): Likewise; rename
2646         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2647
2648         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2649         `LEADING_BYTE_JEF_CHINA3'.
2650         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2651         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2652
2653 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2654
2655         * mule-charset.c (encode_builtin_char_1): Comment out special code
2656         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2657
2658         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2659         (MAX_CHAR_MOJIKYO_0): Comment out.
2660         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2661         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2662         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2663         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2664
2665 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2666
2667         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2668         (Qideograph_cbeta): New variable.
2669         (encode_builtin_char_1): Comment out special code for
2670         coded-charset `mojikyo' and `japanese-jef-china3'.
2671         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2672         (complex_vars_of_mule_charset): Add new coded-charset
2673         `ideograph-cbeta'.
2674
2675         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2676         (MIN_CHAR_CBETA): New macro.
2677         (MAX_CHAR_CBETA): New macro.
2678
2679 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2680
2681         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2682         (LEADING_BYTE_JEF_CHINA3): New macro.
2683         (MIN_CHAR_JEF_CHINA3): New macro.
2684         (MAX_CHAR_JEF_CHINA3): Likewise.
2685         (DECODE_CHAR): Fixed.
2686
2687 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2688
2689         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2690         (Qjapanese_jef_china3): New variable.
2691         (encode_builtin_char_1): Support `japanese-jef-china3'.
2692         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2693         (complex_vars_of_mule_charset): Add new coded-charset
2694         `japanese-jef-china3'.
2695
2696 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2697
2698         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2699         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2700         94^4, 96^3, 96^4, 128^n and 256^n set.
2701         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2702         (map_char_table): Likewise.
2703
2704 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2705
2706         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2707         UTF-2000.
2708
2709 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2710
2711         * chartab.h (get_char_id_table): New inline function.
2712
2713         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2714         function.
2715
2716 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2717
2718         * chartab.h (decode_char_table_range): New prototype in XEmacs
2719         UTF-2000.
2720         (put_char_id_table): New inline function in XEmacs UTF-2000.
2721
2722         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2723         function.
2724         (decode_char_table_range): Delete static declaration in XEmacs
2725         UTF-2000.
2726
2727 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2728
2729         * chartab.c (put_char_id_table): Use `put_char_table'.
2730
2731 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2732
2733         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2734         (map_over_uint16_byte_table): Likewise.
2735         (map_over_byte_table): Likewise.
2736         (map_char_table): Modify for `map_over_uint8_byte_table',
2737         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2738         UTF-2000.
2739
2740 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2741
2742         * chartab.c (struct map_char_table_for_charset_arg): New
2743         structure.
2744         (map_char_table_for_charset_fun): New function.
2745         (map_char_table): Use `map_char_table' for encoding_table of
2746         `range->charset'.
2747
2748 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2749
2750         * chartab.c (map_char_table): Check a character is found in
2751         range->charset instead of non default value is defined in
2752         char-table when range is CHARTAB_RANGE_ROW.
2753
2754 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2755
2756         * chartab.c (map_char_id_table): Deleted.
2757         (Fmap_char_attribute): Use `map_char_table' instead of
2758         `map_char_id_table'.
2759
2760 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2761
2762         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2763         UTF-2000.
2764         (update_syntax_table): Deleted in XEmacs UTF-2000.
2765
2766         * syntax.c (find_defun_start): Use `syntax_table' instead of
2767         `mirror_syntax_table' in XEmacs UTF-2000.
2768         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2769         UTF-2000.
2770         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2771         XEmacs UTF-2000.
2772         (Fmatching_paren): Likewise.
2773         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2774         in XEmacs UTF-2000.
2775         (find_start_of_comment): Likewise.
2776         (find_end_of_comment): Likewise.
2777         (Fforward_comment): Likewise.
2778         (scan_lists): Likewise.
2779         (char_quoted): Likewise.
2780         (Fbackward_prefix_chars): Likewise.
2781         (scan_sexps_forward): Likewise.
2782         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2783         (update_syntax_table): Likewise.
2784
2785         * search.c (skip_chars): Use `syntax_table' instead of
2786         `mirror_syntax_table' in XEmacs UTF-2000.
2787         (wordify): Likewise.
2788         (Freplace_match): Likewise.
2789
2790         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2791         `mirror_syntax_table' in XEmacs UTF-2000.
2792         (WORDCHAR_P_UNSAFE): Likewise.
2793         (re_match_2_internal): Likewise.
2794
2795         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2796         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2797
2798         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2799         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2800
2801         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2802         XEmacs UTF-2000.
2803
2804         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2805         UTF-2000.
2806         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2807         (char_table_description): Delete `mirror_table' in XEmacs
2808         UTF-2000.
2809         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2810         UTF-2000.
2811         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2812         (Fcopy_char_table): Likewise.
2813         (put_char_table): Don't call `update_syntax_table' in XEmacs
2814         UTF-2000.
2815
2816         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2817         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2818         (casify_region_internal): Likewise.
2819
2820         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2821
2822         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2823         `mirror_syntax_table' in XEmacs UTF-2000.
2824
2825         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2826         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2827         (Fexpand_abbrev): Likewise.
2828
2829 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2830
2831         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2832
2833 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2834
2835         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2836         (map_over_uint16_byte_table): Likewise.
2837         (map_over_byte_table): Likewise.
2838         (get_char_id_table): Refer `cit->default_value'.
2839         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2840         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2841         of character-id ranges.
2842         (mark_char_table): Mark `ct->default_value'.
2843         (char_table_description): Add `default_value'.
2844         (fill_char_table): Use `default_value'.
2845         (decode_char_table_range): Decode `nil' as
2846         `CHARTAB_RANGE_DEFAULT'.
2847         (get_char_id_table): Refer `cit->default_value'.
2848         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2849         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2850         temporary hack; check value of char-table is bound or not.
2851         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2852
2853         * chartab.h (struct Lisp_Char_Table): Add new member
2854         `default_value' in XEmacs UTF-2000.
2855         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2856         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2857         UTF-2000.
2858
2859 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2860
2861         * chartab.h (Lisp_Char_ID_Table): Deleted.
2862
2863         * chartab.c (char_table_description): Fix typo.
2864         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2865         `Lisp_Char_ID_Table'.
2866
2867 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2868
2869         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2870         `CHAR_ID_TABLE_P'.
2871
2872         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2873         `CHAR_ID_TABLE_P'.
2874
2875         * chartab.h (XCHAR_ID_TABLE): Deleted.
2876         (XSETCHAR_ID_TABLE): Deleted.
2877         (CHAR_ID_TABLE_P): Deleted.
2878
2879         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2880         `CHAR_ID_TABLE_P'.
2881         (Fget_composite_char): Likewise.
2882         (put_char_table): Likewise.
2883         (add_char_attribute_alist_mapper): Fixed.
2884         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2885         `CHAR_ID_TABLE_P'.
2886         (Fget_char_attribute): Likewise.
2887         (Fget_char_attribute): Likewise.
2888         (Fmap_char_attribute): Likewise.
2889
2890         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2891         `CHAR_ID_TABLE_P'.
2892         (encode_char_1): Likewise.
2893
2894 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2895
2896         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2897         `XCHAR_ID_TABLE'.
2898
2899         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2900         instead of `XCHAR_ID_TABLE'.
2901         (remove_char_ccs): Likewise.
2902
2903         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2904         `XCHAR_ID_TABLE'.
2905         (Fget_composite_char): Likewise.
2906         (Fchar_variants): Likewise.
2907         (put_char_table): Likewise.
2908         (add_char_attribute_alist_mapper): Likewise.
2909         (Fchar_attribute_alist): Likewise.
2910         (Fget_char_attribute): Likewise.
2911         (Fput_char_attribute): Likewise.
2912         (Fmap_char_attribute): Likewise.
2913         (Fmap_char_attribute): Likewise.
2914
2915         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2916         `XCHAR_ID_TABLE'.
2917         (encode_char_1): Likewise.
2918
2919 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2920
2921         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2922         `Lisp_Char_ID_Table'.
2923         (mark_char_id_table): Deleted.
2924         (print_char_id_table): Likewise.
2925         (char_id_table_equal): Likewise.
2926         (char_id_table_hash): Likewise.
2927         (char_id_table_description): Likewise.
2928         (char_id_table): Likewise.
2929         (make_char_id_table): Use `Fmake_char_table' and
2930         `fill_char_table'.
2931         (get_char_id_table): Use `Lisp_Char_Table' instead of
2932         `Lisp_Char_ID_Table'.
2933         (put_char_id_table): Likewise.
2934         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2935         `XCHAR_ID_TABLE'.
2936         (Fremove_char_attribute): Likewise.
2937         (syms_of_chartab): Don't define type `char-id-table'.
2938
2939         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2940         (char_id_table): Likewise.
2941         (GC_CHAR_ID_TABLE_P): Likewise.
2942         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2943         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2944         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2945         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2946         (get_char_id_table): Use `Lisp_Char_Table' instead of
2947         `Lisp_Char_ID_Table'.
2948         (put_char_id_table_0): Likewise.
2949         (put_char_id_table): Likewise.
2950
2951 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2952
2953         * chartab.h: Lisp_Byte_Table related codes are moved from
2954         chartab.h.
2955
2956         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2957
2958 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2959
2960         * chartab.h: Don't include "chartab.h".
2961         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2962         (Lisp_Char_ID_Table): Likewise.
2963         (char_id_table): Likewise.
2964         (XCHAR_ID_TABLE): Likewise.
2965         (XSETCHAR_ID_TABLE): Likewise.
2966         (CHAR_ID_TABLE_P): Likewise.
2967         (GC_CHAR_ID_TABLE_P): Likewise.
2968         (get_char_id_table): Likewise.
2969
2970         * char-ucs.h: Include "chartab.h".
2971         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2972         (Lisp_Char_ID_Table): Likewise.
2973         (char_id_table): Likewise.
2974         (XCHAR_ID_TABLE): Likewise.
2975         (XSETCHAR_ID_TABLE): Likewise.
2976         (CHAR_ID_TABLE_P): Likewise.
2977         (GC_CHAR_ID_TABLE_P): Likewise.
2978         (get_char_id_table): Likewise.
2979
2980 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2981
2982         * chartab.c (copy_uint8_byte_table): New function.
2983         (copy_uint16_byte_table): New function.
2984         (copy_byte_table): New function.
2985         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2986         characters to call.
2987         (map_over_uint16_byte_table): Likewise.
2988         (map_over_byte_table): Likewise.
2989         (get_byte_table): Move prototype to chartab.h.
2990         (put_byte_table): Likewise.
2991         (put_char_id_table_0): Moved to chartab.h.
2992         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2993         (char_table_entry_equal): Likewise.
2994         (char_table_entry_hash): Likewise.
2995         (char_table_entry_description): Likewise.
2996         (char_table_entry): Likewise.
2997         (make_char_table_entry): Likewise.
2998         (copy_char_table_entry): Likewise.
2999         (get_non_ascii_char_table_value): Likewise.
3000         (map_over_charset_ascii): Likewise.
3001         (map_over_charset_control_1): Likewise.
3002         (map_over_charset_row): Likewise.
3003         (map_over_other_charset): Likewise.
3004         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
3005         (print_char_table): Likewise.
3006         (char_table_equal): Likewise.
3007         (char_table_hash): Likewise.
3008         (char_table_description): Likewise.
3009         (fill_char_table): Likewise.
3010         (Fcopy_char_table): Likewise.
3011         (get_char_table): Likewise.
3012         (Fget_range_char_table): Likewise.
3013         (put_char_table): Likewise.
3014         (map_char_table): Likewise.
3015         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
3016         UTF-2000.
3017
3018 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3019
3020         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
3021         `Vauto_fill_chars' in XEmacs UTF-2000.
3022
3023         * chartab.h (get_byte_table): New prototype [moved from
3024         chartab.c].
3025         (put_byte_table): Likewise [moved from chartab.c].
3026         (put_char_id_table_0): New inline function [moved from chartab.c].
3027         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
3028         (Lisp_Char_Table_Entry): Likewise.
3029         (char_table_entry): Likewise.
3030         (XCHAR_TABLE_ENTRY): Likewise.
3031         (XSETCHAR_TABLE_ENTRY): Likewise.
3032         (CHAR_TABLE_ENTRYP): Likewise.
3033         (CHECK_CHAR_TABLE_ENTRY): Likewise.
3034         (NUM_ASCII_CHARS): Likewise.
3035         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
3036         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
3037
3038 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3039
3040         * chartab.c (get_char_id_table): Change interface.
3041         (put_char_id_table_0): New function.
3042         (put_char_id_table): Change interface; new implementation.
3043         (Fget_composite_char): Modify for interface change of
3044         `get_char_id_table'.
3045         (Fchar_variants): Likewise.
3046         (add_char_attribute_alist_mapper): Likewise.
3047         (Fchar_attribute_alist): Likewise.
3048         (Fget_char_attribute): Likewise.
3049         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
3050         as same as character as the first argument like `put-char-table';
3051         modify for interface change of `put_char_id_table'.
3052         (Fremove_char_attribute): Modify for interface change of
3053         `put_char_id_table'.
3054
3055 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3056
3057         * text-coding.c: Sync up with XEmacs 21.2.41.
3058         (COMPOSE_ADD_CHAR): Modify for interface change of
3059         `get_char_id_table'.
3060
3061         * mule-charset.c (put_char_ccs_code_point): Modify for interface
3062         change of `put_char_id_table'.
3063         (remove_char_ccs): Likewise.
3064
3065         * chartab.h (put_char_id_table): Change interface.
3066
3067         * char-ucs.h (get_char_id_table): Change interface.
3068         (charset_code_point): Modify for interface change of
3069         `get_char_id_table'.
3070         (encode_char_1): Likewise.
3071
3072 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3073
3074         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3075         argument `ccs'.
3076         (map_over_uint16_byte_table): Likewise.
3077         (map_over_byte_table): Likewise.
3078         (map_char_id_table): Add new argument `range' like
3079         `map_char_table'.
3080         (Fmap_char_attribute): Add new argument `range' like
3081         `Fmap_char_table'.
3082
3083 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3084
3085         * chartab.c (map_over_uint8_byte_table): Change interface of
3086         mapping function to use struct chartab_range instead of Emchar.
3087         (map_over_uint16_byte_table): Likewise.
3088         (map_over_byte_table): Likewise.
3089         (map_char_id_table): Likewise.
3090         (struct slow_map_char_id_table_arg): Deleted.
3091         (slow_map_char_id_table_fun): Deleted.
3092         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3093         function `slow_map_char_table_fun' instead of struct
3094         `slow_map_char_id_table_arg' and function
3095         `slow_map_char_id_table_fun'.
3096
3097 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3098
3099         * mule-charset.c: Move char-it-table related codes to chartab.c.
3100         (Vutf_2000_version): Moved to chartab.c.
3101         (Fdefine_char): Likewise.
3102         (Ffind_char): Likewise.
3103         (syms_of_mule_charset): Move types `uint8-byte-table',
3104         `uint16-byte-table', `byte-table' and `char-id-table' to
3105         chartab.c; move functions `char_attribute_list,
3106         `find_char_attribute_table, `char_attribute_alist,
3107         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3108         `map_char_attribute, `define_char, `find_char, `char_variants and
3109         `get_composite_char to chartab.c; move symbols `=>ucs',
3110         `->decomposition', `compat', `isolated', `initial', `medial',
3111         `final', `vertical', `noBreak', `fraction', `super', `sub',
3112         `circle', `square', `wide', `narrow', `small' and `font' to
3113         chartab.c.
3114         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3115         setting codes for `Vcharacter_composition_table' and
3116         `Vcharacter_variant_table' to chartab.c.
3117         (complex_vars_of_mule_charset): Move setting code for
3118         `Vchar_attribute_hash_table' to chartab.c.
3119
3120         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3121         (make_char_id_table): New prototype.
3122         (put_char_id_table): Likewise.
3123         (Fget_char_attribute): Likewise.
3124
3125         * chartab.c: Move char-id-table related code from mule-charset.c.
3126         (Vutf_2000_version): Moved from mule-charset.c.
3127
3128         * char-ucs.h (Qucs): New external variable.
3129         (put_char_ccs_code_point): New prototype.
3130         (remove_char_ccs): Likewise.
3131
3132 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3133
3134         * mule-charset.c (Vcharset_ucs_jis): New variable.
3135         (Qucs_jis): Likewise.
3136         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3137         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3138
3139         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3140
3141 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3142
3143         * mule-charset.c (map_over_uint8_byte_table): New function.
3144         (map_over_uint16_byte_table): Likewise.
3145         (map_over_byte_table): Likewise.
3146         (map_char_id_table): Likewise.
3147         (slow_map_char_id_table_fun): Likewise.
3148         (Fmap_char_attribute): Likewise.
3149         (syms_of_mule_charset): Add new function `map-char-attribute'.
3150
3151 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3152
3153         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3154         (syms_of_mule_charset): Add new function `find-char'.
3155
3156 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3157
3158         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3159         XEmacs UTF-2000.
3160         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3161         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3162         XEmacs UTF-2000.
3163         (complex_vars_of_mule_charset): Add new coded-charset
3164         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3165         `ideograph-gt-pj-*'.
3166
3167         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3168
3169 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3170
3171         * mule-charset.c (encode_builtin_char_1): Purge codes about
3172         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3173         {MIN|MAX}_CHAR_HEBREW.
3174         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3175         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3176
3177         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3178         (MAX_CHAR_GREEK): Purged.
3179         (MIN_CHAR_CYRILLIC): Purged.
3180         (MAX_CHAR_CYRILLIC): Purged.
3181         (MIN_CHAR_HEBREW): Commented out.
3182         (MAX_CHAR_HEBREW): Likewise.
3183
3184 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3185
3186         * mule-charset.c (Qto_ucs): New variable.
3187         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3188         (Fdefine_char): Likewise.
3189         (syms_of_mule_charset): Add new symbol `=>ucs'.
3190
3191 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3192
3193         * mule-charset.c (Fdecode_char): Fixed.
3194
3195 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3196
3197         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3198         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3199         "tcvn5712-1".
3200
3201 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3202
3203         * mule-charset.c (Vcharset_ucs_big5): New variable.
3204         (Qucs_big5): Likewise.
3205         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3206         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3207
3208         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3209
3210 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3211
3212         * mule-charset.c (decode_builtin_char): Check Big5 code range
3213         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3214
3215 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3216
3217         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3218         (Qchinese_gb12345): Likewise.
3219         (Fdecode_builtin_char): Fixed.
3220         (syms_of_mule_charset): Add `chinese-gb12345'.
3221         (complex_vars_of_mule_charset): Add coded-charset
3222         `chinese-gb12345'.
3223
3224         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3225         (LEADING_BYTE_CHINESE_GB12345): New macro.
3226
3227 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3228
3229         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3230         and `latin-viscii-upper' for `latin-viscii'.
3231
3232 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3233
3234         * mule-charset.c (Fdecode_builtin_char): Comment out
3235         regularization code for ISO-IR GR representation.
3236
3237 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3238
3239         * mule-charset.c (decode_builtin_char): New function; renamed from
3240         `make_builtin_char'; return -1 instead of signal.
3241         (Fdecode_builtin_char): Use `decode_builtin_char'.
3242
3243         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3244         `make_builtin_char'.
3245         (DECODE_CHAR): Use `decode_builtin_char' instead of
3246         `make_builtin_char'; use mapping table of `chinese-big5' for
3247         `chinese-big5-{1,2}'.
3248
3249 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3250
3251         * text-coding.c (char_encode_big5): New function.
3252         (char_finish_big5): Likewise.
3253         (reset_encoding_stream): Use `char_encode_big5' and
3254         `char_finish_big5' for CODESYS_BIG5.
3255         (mule_encode): Don't use `encode_coding_big5'.
3256         (encode_coding_big5): Deleted.
3257
3258 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3259
3260         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3261         0x81- in XEmacs UTF-2000.
3262         (detect_coding_big5): Likewise.
3263
3264 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3265
3266         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3267         generate character-id if the CCS property does not have
3268         corresponding predefined character.
3269         (make_builtin_char): Return -1 if corresponding predefined
3270         character is not found.
3271         (Fdecode_char): Return nil if corresponding character is not
3272         found.
3273         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3274         don't map to builtin ucs space.
3275
3276 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3277
3278         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3279         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3280
3281 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3282
3283         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3284         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3285         (Qideograph_gt): Likewise.
3286         (Qideograph_gt_pj_{1..11}): Likewise.
3287         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3288         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3289         `ideograph-gt-pj-11'.
3290         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3291         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3292         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3293
3294         * char-ucs.h (LEADING_BYTE_GT): New macro.
3295         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3296         (MIN_CHAR_GT): Likewise.
3297         (MAX_CHAR_GT): Likewise.
3298
3299 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3300
3301         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3302         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3303
3304         * doprnt.c (unsigned_int_converters): Add `c'.
3305         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3306
3307         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3308         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3309         `MIN_CHAR_MOJIKYO'.
3310         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3311         (MAX_CHAR_MOJIKYO_0): New macro.
3312         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3313
3314 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3315
3316         * mule-charset.c (Fdefine_char): Delete cemented out code.
3317         (encode_builtin_char_1): Modify for new allocation of builtin
3318         Mojikyo characters.
3319
3320         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3321
3322 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3323
3324         * mule-charset.c (Vcharset_ucs_cns): New variable.
3325         (Qucs_cns): New variable.
3326         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3327         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3328
3329 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3330
3331         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3332
3333 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3334
3335         * search.c (search_buffer): Make `charset_base_code' as
3336         character-id >> 6 to eliminate the corresponding last byte in
3337         UTF-8 representation [I'm not sure it is right thing].
3338         (boyer_moore): Likewise.
3339
3340 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3341
3342         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3343         representation in MULE.
3344
3345 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3346
3347         * text-coding.c (Fmake_coding_system): Use
3348         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3349         `EXTERNAL_PROPERTY_LIST_LOOP'.
3350
3351 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3352
3353         * text-coding.c (decode_output_utf8_partial_char): New function.
3354         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3355
3356 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3357
3358         * text-coding.c (decode_coding_utf8): Output original byte
3359         sequence if it is broken; change order of conditions.
3360
3361         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3362         of conditions.
3363
3364         * mb-multibyte.h (BYTE_ASCII_P):
3365         Use bit ops for char-signedness safety.
3366         (BYTE_C0_P): Use bit ops for char-signedness safety.
3367         (BYTE_C1_P): Use bit ops for char-signedness safety.
3368
3369         * character.h: (XCHAR_OR_CHAR_INT):
3370         Always use inline function.
3371         Remove redundant type checking assert() - XINT will abort quite
3372         nicely.
3373
3374 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3375
3376         * text-coding.c: (Fencode_shift_jis_char):
3377         (Fencode_big5_char):
3378         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3379         Replace 0 with '\0' when working with bytes.
3380         Replace initial "(" with "\(" in docstrings.
3381
3382         (Fmake_coding_system):
3383         When type is ccl and value is vector, register it with a proper
3384         symbol.  And checks whether the given ccl program is valid.
3385         (mule_decode): When calling ccl_driver, if src indicates
3386         NULL pointer, set an empty string instead.
3387         (mule_encode): Likewise.
3388
3389         (detect_eol_type):
3390         (detect_coding_sjis):
3391         (decode_coding_sjis):
3392         (detect_coding_big5):
3393         (decode_coding_big5):
3394         (detect_coding_ucs4):
3395         (decode_coding_ucs4):
3396         (detect_coding_utf8):
3397         (decode_coding_utf8):
3398         (detect_coding_iso2022):
3399         (decode_coding_iso2022):
3400         (decode_coding_no_conversion):
3401         (mule_decode):
3402         Make all detecting and decoding functions take an Extbyte * arg.
3403         (text_encode_generic):
3404         (encode_coding_big5):
3405         (encode_coding_no_conversion):
3406         (mule_encode):
3407         Make all encoding functions take a Bufbyte * arg.
3408         Use size_t instead of unsigned int for memory sizes.
3409         Only cast to unsigned char whenever dereferencing Extbyte *.
3410
3411         (struct lrecord_description fcd_description_1): Use countof.
3412         (complex_vars_of_file_coding):
3413         Use countof instead of sizeof.
3414         Use CHECK_NATNUM instead of CHECK_INT.
3415
3416 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3417
3418         * mule-charset.c (Fget_char_attribute): Add new optional argument
3419         `default-value'.
3420         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3421         (remove_char_ccs): Likewise.
3422
3423 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3424
3425         * text-coding.c (char_encode_shift_jis): New implementation in
3426         UTF-2000.
3427         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3428         ...)'.
3429
3430         * mule-charset.c (Vcharset_chinese_big5): New variable in
3431         UTF-2000.
3432         (Qchinese_big5): New variable in UTF-2000.
3433         (BIG5_SAME_ROW): New macro in UTF-2000.
3434         (make_builtin_char): Use builtin characters of
3435         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3436         characters of `Vcharset_chinese_big5'.
3437         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3438         (complex_vars_of_mule_charset): Add new coded-charset
3439         `chinese-big5' in UTF-2000.
3440
3441         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3442         (Vcharset_chinese_big5): New external variable declaration.
3443         (Vcharset_japanese_jisx0208_1990): Likewise.
3444
3445 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3446
3447         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3448         function.
3449         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3450
3451 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3452
3453         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3454         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3455         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3456         `mojikyo-pj-*'.
3457
3458 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3459
3460         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3461
3462 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3463
3464         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3465         to 0.17.
3466
3467 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3468
3469         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3470         for `CHARSET_BY_ATTRIBUTES'.
3471         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3472         `CHARSET_BY_ATTRIBUTES'.
3473
3474         * text-coding.c (struct decoding_stream): Rename member `CH' to
3475         `CPOS'.
3476         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3477         (decode_coding_sjis): Likewise.
3478         (decode_coding_big5): Likewise.
3479         (decode_coding_ucs4): Likewise.
3480         (decode_coding_utf8): Likewise.
3481         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3482         `CHARSET_BY_ATTRIBUTES'.
3483         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3484         `str->counter'; decode 3, 4 bytes sets.
3485         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3486         sets.
3487         (decode_coding_no_conversion): Use `str->cpos' instead of
3488         `str->ch'.
3489
3490         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3491         (Qmojikyo_2022_1): New variable.
3492         (make_charset): Don't use `CHARSET_TYPE_*'.
3493         (range_charset_code_point): Support coded-charset
3494         `mojikyo-2022-1'.
3495         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3496         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3497         `CHARSET_BY_ATTRIBUTES'.
3498         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3499         `CHARSET_BY_ATTRIBUTES'.
3500         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3501         (complex_vars_of_mule_charset): Add new coded-charset
3502         `mojikyo-2022-1'.
3503
3504         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3505         interface; changed to inline function.
3506
3507         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3508         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3509         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3510         (CHARSET_TYPE_94): Deleted.
3511         (CHARSET_TYPE_94X94): Deleted.
3512         (CHARSET_TYPE_96): Deleted.
3513         (CHARSET_TYPE_96X96): Deleted.
3514         (CHARSET_TYPE_128): Deleted.
3515         (CHARSET_TYPE_128X128): Deleted.
3516         (CHARSET_TYPE_256): Deleted.
3517         (CHARSET_TYPE_256X256): Deleted.
3518         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3519         to inline function.
3520         (DECODE_MOJIKYO_2022): New inline function.
3521         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3522         `Vcharset_mojikyo_2022_1'.
3523
3524 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3525
3526         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3527         instead of `EQ'.
3528         (put_byte_table): Likewise.
3529         (char_id_table_equal): Use `get_byte_table' [new implementation].
3530
3531 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3532
3533         * mule-charset.c: Include <limits.h> in UTF-2000.
3534         (BT_UINT8_MIN): New macro in UTF-2000.
3535         (BT_UINT8_MAX): New macro in UTF-2000.
3536         (BT_UINT8_t): New macro in UTF-2000.
3537         (BT_UINT8_nil): New macro in UTF-2000.
3538         (BT_UINT8_unbound): New macro in UTF-2000.
3539         (INT_UINT8_P): New inline function in UTF-2000.
3540         (UINT8_VALUE_P): New inline function in UTF-2000.
3541         (UINT8_ENCODE): New inline function in UTF-2000.
3542         (UINT8_DECODE): New inline function in UTF-2000.
3543         (mark_uint8_byte_table): New function in UTF-2000.
3544         (print_uint8_byte_table): New function in UTF-2000.
3545         (uint8_byte_table_equal): New function in UTF-2000.
3546         (uint8_byte_table_hash): New function in UTF-2000.
3547         (make_uint8_byte_table): New function in UTF-2000.
3548         (uint8_byte_table_same_value_p): New function in UTF-2000.
3549         (BT_UINT16_MIN): New macro in UTF-2000.
3550         (BT_UINT16_MAX): New macro in UTF-2000.
3551         (BT_UINT16_t): New macro in UTF-2000.
3552         (BT_UINT16_nil): New macro in UTF-2000.
3553         (BT_UINT16_unbound): New macro in UTF-2000.
3554         (INT_UINT16_P): New inline function in UTF-2000.
3555         (UINT16_VALUE_P): New inline function in UTF-2000.
3556         (UINT16_ENCODE): New inline function in UTF-2000.
3557         (UINT16_DECODE): New inline function in UTF-2000.
3558         (UINT8_TO_UINT16): New inline function in UTF-2000.
3559         (mark_uint16_byte_table): New function in UTF-2000.
3560         (print_uint16_byte_table): New function in UTF-2000.
3561         (uint16_byte_table_equal): New function in UTF-2000.
3562         (uint16_byte_table_hash): New function in UTF-2000.
3563         (make_uint16_byte_table): New function in UTF-2000.
3564         (uint16_byte_table_same_value_p): New function in UTF-2000.
3565         (print_byte_table): New function in UTF-2000.
3566         (byte-table): Use `print_byte_table' as printer.
3567         (make_byte_table): Delete second argument `older'.
3568         (byte_table_same_value_p): New function in UTF-2000.
3569         (copy_byte_table): Deleted.
3570         (get_byte_table): New function in UTF-2000.
3571         (put_byte_table): New function in UTF-2000.
3572         (print_char_id_table): New function in UTF-2000.
3573         (char-id-table): Use `print_char_id_table' as printer.
3574         (make_char_id_table): Delete second argument `older'.
3575         (get_char_id_table): Use `get_byte_table [new implementation].
3576         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3577         implementation].
3578         (Ffind_char_attribute_table): New function in UTF-2000.
3579         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3580         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3581         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3582         (syms_of_mule_charset): Add new function
3583         `find-char-attribute-table' in UTF-2000.
3584
3585         * lrecord.h (enum lrecord_type): Add
3586         `lrecord_type_uint16_byte_table' and
3587         `lrecord_type_uint8_byte_table'.
3588
3589         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3590         (Lisp_Uint8_Byte_Table): New type.
3591         (XUINT8_BYTE_TABLE): New macro.
3592         (XSETUINT8_BYTE_TABLE): New macro.
3593         (UINT8_BYTE_TABLE_P): New macro.
3594         (GC_UINT8_BYTE_TABLE_P): New macro.
3595         (struct Lisp_Uint16_Byte_Table): New structure.
3596         (Lisp_Uint16_Byte_Table): New type.
3597         (XUINT16_BYTE_TABLE): New macro.
3598         (XSETUINT16_BYTE_TABLE): New macro.
3599         (UINT16_BYTE_TABLE_P): New macro.
3600         (GC_UINT16_BYTE_TABLE_P): New macro.
3601
3602 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3603
3604         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3605         (Vcharacter_ideographic_strokes_table): Deleted.
3606         (Vcharacter_total_strokes_table): Deleted.
3607         (Vcharacter_morohashi_daikanwa_table): Deleted.
3608         (Vcharacter_decomposition_table): Deleted.
3609         (Qname): Deleted because it is duplicated.
3610         (Qideographic_radical): Deleted.
3611         (Qideographic_strokes): Deleted.
3612         (Qtotal_strokes): Deleted.
3613         (Qmorohashi_daikanwa): Deleted.
3614         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3615         `ideographic-radical', `ideographic-strokes', `total-strokes',
3616         `morohashi-daikanwa' and `->decomposition'.
3617         (Fget_char_attribute): Likewise.
3618         (Fput_char_attribute): Likewise; use `make-vector' instead of
3619         `make_older_vector' for `->decomposition' value.
3620         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3621         `ideograph-daikanwa'.
3622         (syms_of_mule_charset): Delete builtin symbols `name',
3623         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3624         `morohashi-daikanwa'.
3625         (vars_of_mule_charset): Don't setup
3626         `Vcharacter_ideographic_radical_table',
3627         `Vcharacter_ideographic_strokes_table',
3628         `Vcharacter_total_strokes_table',
3629         `Vcharacter_morohashi_daikanwa_table' and
3630         `Vcharacter_decomposition_table'.
3631
3632 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3633
3634         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3635         `make_older_vector', `make_vector_newer_1' and
3636         `make_vector_newer'.
3637
3638         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3639         `make_older_vector' and `make_vector_newer'.
3640
3641         * config.h.in (HAVE_GGC): New macro.
3642
3643 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3644
3645         * mule-charset.c (struct char_attribute_list_closure): New
3646         structure in UTF-2000.
3647         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3648         (Fchar_attribute_list): Likewise.
3649         (Fset_charset_mapping_table): Use `make_vector_newer'.
3650         (Fdecode_builtin_char): New function in UTF-2000.
3651         (syms_of_mule_charset): Add new function `char-attribute-list' and
3652         `decode-builtin-char' in UTF-2000.
3653
3654         * lisp.h (make_vector_newer): New prototype.
3655
3656         * alloc.c (make_vector_newer_1): New function.
3657         (make_vector_newer): New function.
3658
3659 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3660
3661         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3662         50100)'.
3663
3664 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3665
3666         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3667         (Vcharacter_attribute_table): Deleted.
3668         (Vcharacter_name_table): Deleted.
3669         (put_char_attribute): Deleted.
3670         (remove_char_attribute): Deleted.
3671         (struct char_attribute_alist_closure): New structure.
3672         (add_char_attribute_alist_mapper): New function.
3673         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3674         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3675         (Fget_char_attribute): Likewise.
3676         (Fput_char_attribute): Likewise.
3677         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3678         of `remove_char_attribute'.
3679         (Fdefine_char): Return character.
3680         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3681         and `Vcharacter_name_table'.
3682         (complex_vars_of_mule_charset): Likewise
3683         `Vchar_attribute_hash_table'.
3684
3685 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3686
3687         * character.h (CHARC_CHARSET): New macro.
3688         (CHARC_CHARSET_ID): New macro.
3689         (CHARC_CODE_POINT): New macro.
3690         (CHARC_COLUMNS): New macro.
3691         (CHARC_TO_CHAR): New inline function.
3692         (CHARC_EQ): New inline function.
3693         (CHARC_ASCII_EQ): New inline function.
3694         (CHARC_IS_SPACE): New inline function.
3695         (ASCII_TO_CHARC): New inline function.
3696
3697         * char-ucs.h (encode_char_2): Deleted.
3698         (ENCODE_CHAR): Use `encode_char_1' again.
3699         (breakup_char_1): Likewise.
3700         (CHAR_TO_CHARC): New inline function.
3701
3702         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3703
3704 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3705
3706         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3707         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3708         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3709         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3710         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3711         `CHARC_IS_SPACE'.
3712         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3713
3714         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3715         `CHARC_CODE_POINT'.
3716         (x_output_display_block): Use `CHARC_CHARSET' and
3717         `CHARC_ASCII_EQ'.
3718
3719         * redisplay-tty.c (tty_output_display_block): Use
3720         `CHARC_ASCII_EQ'.
3721         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3722
3723         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3724
3725         * insdel.c (find_charsets_in_charc_string): Use
3726         `CHARC_CHARSET_ID'.
3727         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3728         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3729         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3730         (convert_charc_string_into_malloced_string): Likewise.
3731
3732 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3733
3734         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3735         instead of <Emchar_dynarr *> for buf; use
3736         `convert_bufbyte_string_into_charc_dynarr' instead of
3737         `convert_bufbyte_string_into_emchar_dynarr'; use
3738         `find_charsets_in_charc_string' instead of
3739         `find_charsets_in_emchar_string'.
3740
3741         * redisplay.h:
3742         - Include "character.h".
3743         (struct rune): New member `cglyph'; delete member `chr'.
3744
3745         * redisplay.c (redisplay_text_width_charc_string): New function;
3746         delete `redisplay_text_width_emchar_string'.
3747         (rtw_charc_dynarr): New variable; renamed from
3748         `rtw_emchar_dynarr'.
3749         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3750         `rtw_emchar_dynarr'; use
3751         `convert_bufbyte_string_into_charc_dynarr' instead of
3752         `convert_bufbyte_string_into_emchar_dynarr'; use
3753         `redisplay_text_width_charc_string' instead of
3754         `redisplay_text_width_emchar_string'.
3755         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3756         instead of `rtw_emchar_dynarr'; use
3757         `convert_bufbyte_string_into_charc_dynarr' instead of
3758         `convert_bufbyte_string_into_emchar_dynarr'.
3759         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3760         `redisplay_text_width_charc_string' instead of
3761         `redisplay_text_width_emchar_string'.
3762         (create_text_block): Modify for <struct rune> change.
3763         (generate_formatted_string_db): Likewise.
3764         (create_string_text_block): Likewise.
3765         (pixel_to_glyph_translation): Likewise.
3766
3767         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3768         instead of <const Emchar *>.
3769         (x_text_width): Likewise.
3770         (x_output_display_block): Use <Charc_dynarr *> instead
3771         <Emchar_dynarr *>; modify for <structure rune> change.
3772         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3773         *>.
3774
3775         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3776         <const Emchar *>; use `charc_string_displayed_columns' instead of
3777         `emchar_string_displayed_columns'.
3778         (tty_output_display_block): Use <Charc_dynarr *> instead of
3779         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3780         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3781         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3782         `tty_output_emchar_dynarr_dynarr'.
3783         (tty_output_charc_dynarr): New function; delete
3784         `tty_output_charc_dynarr'.
3785
3786         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3787         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3788         <Emchar_dynarr *> for buf; use
3789         `convert_bufbyte_string_into_charc_dynarr' instead of
3790         `convert_bufbyte_string_into_emchar_dynarr'.
3791
3792         * frame.c (title_string_charc_dynarr): New variable; renamed from
3793         `title_string_emchar_dynarr'.
3794         (generate_title_string): Use `title_string_charc_dynarr' instead
3795         of `title_string_emchar_dynarr'; use
3796         `convert_charc_string_into_malloced_string' instead of
3797         `convert_emchar_string_into_malloced_string'.
3798         (init_frame): Use `title_string_charc_dynarr' instead of
3799         `title_string_emchar_dynarr'.
3800
3801         * console.h:
3802         - Include "character.h".
3803         (struct console_methods): Use <const Charc *> instead of <const
3804         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3805         <Emchar_dynarr *> in output_string_method.
3806
3807         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3808         <Emchar_dynarr *>.
3809
3810         * console-stream.c (stream_text_width): Use <const Charc *>
3811         instead of <const Emchar *>.
3812
3813         * character.h (Charc_dynarr): New type.
3814
3815         * char-ucs.h (structure Charc): New structure; define new type
3816         `Charc'.
3817
3818         * char-lb.h (DECODE_CHAR): New inline function.
3819         (encode_char_1): New inline function.
3820         (ENCODE_CHAR): New macro.
3821         (structure Charc): New structure; define new type `Charc'.
3822
3823         * char-1byte.h (Vcharset_control_1): New macro.
3824         (Vcharset_latin_iso8859_1): New macro.
3825         (DECODE_CHAR): New inline function.
3826         (encode_char_1): New inline function.
3827         (ENCODE_CHAR): New macro.
3828         (structure Charc): New structure; define new type `Charc'.
3829
3830         * insdel.c (find_charsets_in_charc_string): New function; delete
3831         `find_charsets_in_emchar_string'.
3832         (charc_string_displayed_columns): New function; delete
3833         `emchar_string_displayed_columns'.
3834         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3835         `convert_bufbyte_string_into_emchar_dynarr'.
3836         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3837         `convert_charc_string_into_bufbyte_dynarr'.
3838         (convert_charc_string_into_malloced_string): New function; delete
3839         `convert_charc_string_into_malloced_string'.
3840
3841         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3842         `find_charsets_in_emchar_string'.
3843         (charc_string_displayed_columns): New prototype; delete
3844         `emchar_string_displayed_columns'.
3845         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3846         `convert_charc_string_into_bufbyte_dynarr'.
3847         (convert_charc_string_into_malloced_string): New prototype; delete
3848         `convert_charc_string_into_malloced_string'.
3849
3850 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3851
3852         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3853
3854 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3855
3856         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3857
3858         * char-ucs.h: Use <short> for <Charset_ID>.
3859
3860         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3861         <Charset_ID>.
3862
3863 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3864
3865         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3866         to 0.16.
3867
3868 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3869
3870         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3871         variable.
3872         (Qmorohashi_daikanwa): New variable.
3873         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3874         for `morohashi-daikanwa' attribute.
3875         (Fget_char_attribute): Likewise.
3876         (Fput_char_attribute): Likewise.
3877         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3878         has the same value of `ideograph-daikanwa'.
3879         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3880         (vars_of_mule_charset): Setup
3881         `Vcharacter_morohashi_daikanwa_table'.
3882
3883 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3884
3885         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3886         attributes.
3887         (add_charset_to_list_mapper): Add `key' instead of
3888         `XCHARSET_NAME (value)' to return aliases.
3889
3890 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3891
3892         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3893         variable.
3894         (Vcharacter_ideographic_strokes_table): New variable.
3895         (Qideographic_radical): New variable.
3896         (Qideographic_strokes): New variable.
3897         (Fchar_attribute_alist): Use
3898         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3899         attribute; use `Vcharacter_ideographic_strokes_table' for
3900         `ideographic-strokes' attribute.
3901         (Fget_char_attribute): Likewise.
3902         (Fput_char_attribute): Likewise.
3903         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3904         `ideographic-strokes'.
3905         (vars_of_mule_charset): Setup
3906         `Vcharacter_ideographic_radical_table' and
3907         `Vcharacter_ideographic_strokes_table'.
3908
3909 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3910
3911         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3912         (Qtotal_strokes): New variable.
3913         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3914         `total-strokes' attribute.
3915         (Fget_char_attribute): Likewise.
3916         (Fput_char_attribute): Likewise.
3917         (syms_of_mule_charset): Add new symbol `total-strokes'.
3918         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3919
3920 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3921
3922         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3923         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3924         are found.
3925         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3926         `->decomposition' attribute.
3927         (Fput_char_attribute): Likewise.
3928         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3929
3930 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3931
3932         * mule-charset.c (decoding_table_check_elements): New function.
3933         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3934
3935 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3936
3937         * mule-charset.c (Fset_charset_mapping_table): Use
3938         `put_char_ccs_code_point'.
3939
3940 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3941
3942         * mule-charset.c (decoding_table_put_char): New inline function.
3943         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3944
3945 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3946
3947         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3948         (XCHARSET_BYTE_SIZE): New macro.
3949         (decoding_table_remove_char): New inline function.
3950         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3951         `decoding_table_remove_char'.
3952         (remove_char_ccs): Use `decoding_table_remove_char'.
3953         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3954
3955 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3956
3957         * mule-charset.c (Vcharacter_name_table): New variable.
3958         (Qname): New variable.
3959         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3960         attribute.
3961         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3962         `Vcharacter_name_table' for `name' attribute.
3963         (Fremove_char_attribute): Use function `remove_char_ccs'.
3964         (put_char_ccs_code_point): New function.
3965         (remove_char_ccs): New function.
3966         (syms_of_mule_charset): Add new symbol `name'.
3967         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3968
3969 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3970
3971         * mule-charset.c (make_byte_table): Add new argument `older'.
3972         (make_char_id_table): Likewise.
3973         (copy_char_id_table): Comment out because it is not used.
3974         (put_char_id_table): Modify for `make_byte_table'.
3975         (Fput_char_attribute): Make encoding_table as older object;
3976         inherit older bit of `Vcharacter_composition_table'.
3977         (mark_charset): Don't mark `cs->encoding_table'.
3978         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3979         normal object; make `Vcharacter_composition_table' as an older
3980         object; delete staticpro for `Vcharacter_composition_table'; make
3981         `Vcharacter_variant_table' as a normal object.
3982
3983         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3984         (mark_object): Don't check older object in UTF-2000.
3985
3986         * lrecord.h (struct lrecord_header): Add new member `older' in
3987         UTF-2000.
3988         (set_lheader_implementation): Setup `SLI_header->older' in
3989         UTF-2000.
3990         (set_lheader_older_implementation): New macro in UTF-2000.
3991         (OLDER_RECORD_P): New macro in UTF-2000.
3992         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3993         (alloc_older_lcrecord): New prototype in UTF-2000.
3994         (alloc_older_lcrecord_type): New macro in UTF-2000.
3995
3996 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3997
3998         * mule-charset.c (byte_table_description): Use
3999         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
4000         (char_id_table_description): Delete bogus `, 1'.
4001         (Fget_char_attribute): Refer encoding_table of each coded-charset
4002         to get value of coded-charset attribute of a character.
4003         (Fput_char_attribute): Use `make_older_vector' instead of
4004         `make_vector'; use encoding_table of each coded-charset to store
4005         value of coded-charset attribute of a character.
4006         (Fremove_char_attribute): Use encoding_table of each coded-charset
4007         to store value of coded-charset attribute of a character.
4008         (mark_charset): Mark `cs->encoding_table'; don't mark
4009         `cs->decoding_table'.
4010         (charset_description): Add description of new member
4011         `encoding_table'.
4012         (make_charset): Initialize `encoding_table'.
4013
4014         * char-ucs.h (struct Lisp_Charset): Add new member
4015         `encoding_table'.
4016         (CHARSET_ENCODING_TABLE): New macro.
4017         (XCHARSET_ENCODING_TABLE): New macro.
4018         (charset_code_point): New implementation.
4019         (encode_char_1): Likewise.
4020
4021         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
4022         (disksave_object_finalization_1): Call finalizers of
4023         `all_older_lcrecords' in UTF-2000.
4024         (make_older_vector): New function in UTF-2000.
4025         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
4026         UTF-2000.
4027
4028         * lisp.h (make_older_vector): New prototype in UTF-2000.
4029
4030 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4031
4032         * lrecord.h (enum lrecord_type): Rename
4033         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
4034
4035         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
4036         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
4037         `get_char_code_table'.
4038
4039         * mule-charset.c (mark_char_id_table): Renamed from
4040         `mark_char_code_table'.
4041         (char_id_table_equal): Renamed from `char_code_table_equal'.
4042         (char_id_table_hash): Renamed from `char_code_table_hash'.
4043         (make_char_id_table): Renamed from `make_char_code_table'.
4044         (copy_char_id_table): Renamed from `copy_char_code_table'.
4045         (get_char_id_table): Renamed from `get_char_code_table'.
4046         (put_char_id_table): Renamed from `put_char_code_table'.
4047         (to_char_id): Renamed from `to_char_code'.
4048
4049         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
4050         `Lisp_Char_Code_Table'.
4051         (char_id_table): Renamed from `char_code_table'.
4052         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
4053         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4054         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4055         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4056         (get_char_id_table): Renamed from `get_char_code_table'.
4057
4058 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4059
4060         * lrecord.h (enum lrecord_type): Rename
4061         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4062
4063         * mule-charset.c (mark_byte_table): Renamed from
4064         `mark_char_byte_table'.
4065         (byte_table_equal): Renamed from `char_byte_table_equal'.
4066         (byte_table_hash): Renamed from `byte_table_hash'.
4067         (make_byte_table): Renamed from `make_byte_table'.
4068         (copy_byte_table): Renamed from `copy_char_byte_table'.
4069
4070         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4071         `Lisp_Char_Byte_Table'.
4072         (byte_table): Renamed from `char_byte_table'.
4073         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4074         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4075         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4076         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4077
4078 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4079
4080         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4081         (dfc_convert_to_internal_format): Likewise.
4082         
4083         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4084         * text-coding.c (Fcoding_system_alias_p): New function.
4085         * text-coding.c (Fcoding_system_aliasee): New function.
4086         * text-coding.c (append_suffix_to_symbol): New function.
4087         * text-coding.c (dangling_coding_system_alias_p): New function.
4088         * text-coding.c (Ffind_coding_system):
4089         * text-coding.c (Fcopy_coding_system):
4090         * text-coding.c (encode_coding_no_conversion):
4091         * text-coding.c (syms_of_file_coding):
4092         * text-coding.c (vars_of_file_coding):
4093         Rewrite coding system alias code.
4094         Allow nested aliases, like symbolic links.
4095         Allow redefinition of coding system aliases.
4096         Prevent existence of dangling coding system aliases.
4097         Eliminate convert_to_external_format.
4098         Eliminate convert_to_internal_format.
4099         
4100         * text-coding.c: Change enum eol_type to eol_type_t.
4101
4102 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4103
4104         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4105         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4106
4107         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4108         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4109
4110 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4111
4112         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4113         `ideograph-daikanwa'.
4114
4115         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4116         (Vcharset_ucs_bmp): Likewise.
4117         (Vcharset_mojikyo): Add new extern variable definition.
4118         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4119         (Vcharset_latin_iso8859_3): Likewise.
4120         (Vcharset_latin_iso8859_4): Likewise.
4121         (Vcharset_latin_iso8859_9): Likewise.
4122         (Vcharset_latin_viscii_lower): Likewise.
4123         (Vcharset_latin_viscii_upper): Likewise.
4124         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4125         `mojikyo' code-point is used to decode.
4126         (encode_char_2): New function [to convert `mojikyo' code-point to
4127         Mojikyo font encoding].
4128         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4129         (breakup_char_1): Likewise.
4130         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4131
4132 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4133
4134         * text-coding.c (Fmake_coding_system): Add document about
4135         `disable-composition' property.
4136
4137 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4138
4139         * text-coding.c (Qdisable_composition): New variable; delete
4140         `Qcomposite'.
4141         (Fmake_coding_system): Add new property `disable-composite';
4142         delete property `composite'.
4143         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4144         instead of `!CODING_SYSTEM_COMPOSITE'.
4145         (syms_of_file_coding): Add new symbol `disable-composition';
4146         delete symbol `composite'.
4147
4148         * file-coding.h (struct Lisp_Coding_System): Add
4149         `disable_composition'; delete `enable_composition'.
4150         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4151         `CODING_SYSTEM_COMPOSITE'.
4152         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4153         `XCODING_SYSTEM_COMPOSITE'.
4154
4155 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4156
4157         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4158         to 0.15.
4159
4160 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4161
4162         * text-coding.c (Qcomposite): New variable.
4163         (Fmake_coding_system): Add new property `composite'.
4164         (struct decoding_stream): Add `combined_char_count',
4165         `combined_chars' and `combining_table' in UTF-2000.
4166         (COMPOSE_FLUSH_CHARS): New macro.
4167         (COMPOSE_ADD_CHAR): New macro.
4168         (reset_decoding_stream): Reset `str->combined_char_count' and
4169         `str->combining_table' in UTF-2000.
4170         (decode_coding_iso2022): Modify for character-decomposition.
4171         (syms_of_file_coding): Add new symbol `composite'.
4172
4173 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4174
4175         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4176         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4177         of `Vcharacter_composition_table' if `->decomposition' property
4178         has only 1 element.
4179         (Qlatin_tcvn5712): New variable.
4180         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4181         (complex_vars_of_mule_charset): Add new coded-charset
4182         `latin-tcvn5712'.
4183
4184         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4185
4186 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4187
4188         * file-coding.h (struct Lisp_Coding_System): Add
4189         `enable_composition'.
4190         (CODING_SYSTEM_COMPOSITE): New macro.
4191         (XCODING_SYSTEM_COMPOSITE): New macro.
4192
4193 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4194
4195         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4196
4197 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4198
4199         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4200         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4201
4202 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4203
4204         * mule-charset.c (Vcharset_mojikyo): New variable.
4205         (Fdefine_char): Don't use coded-charset which does not have
4206         non-builtin character range to allocate character-id.
4207         (Qmojikyo): New variable.
4208         (syms_of_mule_charset): Add new symbol `mojikyo'.
4209         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4210
4211         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4212         (LEADING_BYTE_MOJIKYO): New macro.
4213         (MIN_CHAR_MOJIKYO): New macro.
4214         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4215         (MAX_CHAR_MOJIKYO): New macro.
4216
4217 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4218
4219         * mule-charset.c (remove_char_attribute): Fixed.
4220
4221 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4222
4223         * mule-charset.c (remove_char_attribute): New function.
4224         (Fremove_char_attribute): New function.
4225         (encode_builtin_char_1): Comment out builtin-support for
4226         greek-iso8859-7 and cyrillic-iso8859-5.
4227         (Fdecode_char): Check `code' is an integer.
4228         (syms_of_mule_charset): Add `remove-char-attribute'.
4229         (MIN_CHAR_GREEK): Deleted.
4230         (MAX_CHAR_GREEK): Likewise.
4231         (MIN_CHAR_CYRILLIC): Likewise.
4232         (MAX_CHAR_CYRILLIC): Likewise.
4233         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4234         MAX_CHAR_GREEK for `greek-iso8859-7'.
4235
4236         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4237         (MAX_CHAR_GREEK): Likewise.
4238         (MIN_CHAR_CYRILLIC): Likewise.
4239         (MAX_CHAR_CYRILLIC): Likewise.
4240
4241 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4242
4243         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4244         format is used without `ucs' property.
4245         (Fdecode_char): Fix problem with GR representation.
4246         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4247         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4248
4249 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4250
4251         * mule-charset.c (make_builtin_char): New function.
4252         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4253         (Fset_charset_mapping_table): Modify for new representation of
4254         code-point.
4255         (Fdecode_char): New function.
4256         (syms_of_mule_charset): Add new builtin function `decode-char' in
4257         UTF-2000.
4258
4259         * char-ucs.h (make_builtin_char): New prototype.
4260         (DECODE_CHAR): New inline function.
4261         (MAKE_CHAR): Use `DECODE_CHAR'.
4262
4263 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4264
4265         * text-coding.c (parse_charset_conversion_specs): Use
4266         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4267         `XCHARSET_TYPE'.
4268         (iso2022_designate): Likewise.
4269
4270         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4271         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4272
4273         * mule-charset.c (Vcharset_ucs): New variable.
4274         (print_charset): Change design; use `CHARSET_CHARS' and
4275         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4276         (make_charset): Change signature to specify `chars' and
4277         `dimension' instead of `type'.
4278         (range_charset_code_point): Modify for 256^n-set.
4279         (encode_builtin_char_1): Encode as `ucs' in default.
4280         (Fmake_charset): Modify for `make_charset'.
4281         (Fmake_reverse_direction_charset): Likewise.
4282         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4283         UTF-2000.
4284         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4285         for `make_charset'.
4286
4287         * char-ucs.h (Vcharset_ucs): New variable.
4288         (LEADING_BYTE_UCS): New macro.
4289         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4290         and `chars' to `unsigned short' from `unsigned int'.
4291         (CHARSET_TYPE): Deleted.
4292         (XCHARSET_TYPE): Deleted.
4293
4294 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4295
4296         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4297
4298         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4299         (ENCODE_CHAR): New macro.
4300
4301 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4302
4303         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4304         to 0.14 (Kawachi-Katakami).
4305
4306 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4307
4308         * text-coding.c (char_encode_shift_jis): Modify for
4309         `charset_code_point'.
4310         (char_encode_iso2022): Likewise.
4311
4312         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4313         (integer) instead of list of <Lisp_Object>s (integers) as the
4314         format of code-point of a coded-charset.
4315         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4316         (encode_builtin_char_1): New function; delete
4317         `split_builtin_char'.
4318         (charset_code_point): Return <int> instead of <Lisp_Object>.
4319         (Fsplit_char): Don't use `SPLIT_CHAR'.
4320
4321         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4322         prototype for `split_builtin_char'.
4323         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4324         (charset_code_point): Likewise.
4325         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4326         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4327
4328 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4329
4330         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4331         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4332
4333 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4334
4335         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4336
4337         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4338         (MAX_CHAR_OBS_94x94): Deleted.
4339
4340 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4341
4342         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4343
4344         * char-ucs.h (MAX_CHAR_BMP): New macro.
4345
4346 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4347
4348         * text-coding.c: Sync with r21-2-24.
4349
4350 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4351
4352         * file-coding.c: Modify for UTF-2000.
4353
4354 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4355
4356         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4357         to 0.13 (Takaida).
4358
4359 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4360
4361         * mule-charset.c (split_builtin_char): Delete builtin support for
4362         `katakana-jisx0201'.
4363         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4364         BMP area in builtin representation.
4365
4366         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4367         `Vcharset_katakana_jisx0201'.
4368
4369 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4370
4371         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4372         (Qisolated): New variable.
4373         (Qinitial): New variable.
4374         (Qmedial): New variable.
4375         (Qfinal): New variable.
4376         (Qvertical): New variable.
4377         (Qsmall): New variable.
4378         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4379         `Qvertical' and `Qsmall'.
4380         (Qmojikyo_pj_[1 .. 21]): New variable.
4381         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4382         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4383         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4384         .. 21]'.
4385
4386 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4387
4388         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4389         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4390         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4391
4392 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4393
4394         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4395         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4396         BMP.
4397         (Qjapanese_jisx0208_1990): New variable.
4398         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4399         (complex_vars_of_mule_charset): Add new coded-charset
4400         `japanese-jisx0208-1990'.
4401
4402         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4403         (MIN_CHAR_JIS_X0208_1990): New macro.
4404         (MAX_CHAR_JIS_X0208_1990): New macro.
4405
4406 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4407
4408         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4409         coded-charset is not found.
4410
4411 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4412
4413         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4414         (Fdefine_char): Use `Fmake_char'.
4415
4416 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4417
4418         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4419         (Vcharset_hiragana_jisx0208): Deleted.
4420         (Vcharset_katakana_jisx0208): Deleted.
4421         (Qideograph_daikanwa): New variable.
4422         (Qhiragana_jisx0208): Deleted.
4423         (Qkatakana_jisx0208): Deleted.
4424         (split_builtin_char): Split `ideograph-daikanwa'.
4425         (Fsplit_char): New implementation for UTF-2000.
4426         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4427         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4428         (complex_vars_of_mule_charset): Add new coded-charset
4429         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4430         `katakana-jisx0208'.
4431
4432         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4433         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4434         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4435         (MIN_CHAR_DAIKANWA): New macro.
4436         (MAX_CHAR_DAIKANWA): New macro.
4437
4438 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4439
4440         * data.c (Fstring_to_number): Don't recognize floating point if
4441         base is not 10.
4442
4443 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4444
4445         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4446
4447 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4448
4449         * mule-charset.c (Qsquare): New variable.
4450         (to_char_code): Add `Qsquare'.
4451         (syms_of_mule_charset): Add new symbol `square'.
4452
4453 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4454
4455         * mule-charset.c (Qcircle): New variable.
4456         (to_char_code): Add `Qcircle'.
4457         (syms_of_mule_charset): Add new symbol `circle'.
4458
4459 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4460
4461         * mule-charset.c (Qfont): New variable.
4462         (to_char_code): Add `Qfont'.
4463         (syms_of_mule_charset): Add new symbol `font'.
4464
4465 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4466
4467         * mule-charset.c (Qsub): New variable.
4468         (to_char_code): Add `Qsub'.
4469         (syms_of_mule_charset): Add new symbol `sub'.
4470
4471 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4472
4473         * mule-charset.c (Fput_char_attribute): Convert each element of
4474         VALUE to GL position if ATTRIBUTE is a GR-set,
4475
4476 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4477
4478         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4479         coded-charset is a GR-set.
4480
4481 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4482
4483         * mule-charset.c (Fput_char_attribute): Check each element of
4484         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4485
4486 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4487
4488         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4489         UTF-2000.
4490         (Qethiopic_ucs): New variable in UTF-2000.
4491         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4492         (complex_vars_of_mule_charset): Add new coded-charset
4493         `ethiopic-ucs' in UTF-2000.
4494
4495         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4496         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4497         9)'.
4498         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4499         10)'.
4500         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4501
4502 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4503
4504         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4505         `ascii'.
4506
4507 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4508
4509         * mule-charset.c (Vcharacter_variant_table): New variable.
4510         (Q_ucs): New variable.
4511         (Fchar_variants): New function.
4512         (Fput_char_attribute): Register `->ucs' value to
4513         `Vcharacter_variant_table'.
4514         (syms_of_mule_charset): Add new function `char-variants' and new
4515         symbol `->ucs'.
4516         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4517
4518 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4519
4520         * mule-charset.c (get_char_code_table): Allow negative character
4521         code.
4522         (put_char_code_table): Likewise.
4523         (Vcharacter_composition_table): New variable.
4524         (Q_decomposition): New variable.
4525         (Qwide): New variable.
4526         (Qnarrow): New variable.
4527         (Qcompat): New variable.
4528         (QnoBreak): New variable.
4529         (Qsuper): New variable.
4530         (Qfraction): New variable.
4531         (to_char_code): New function.
4532         (Fget_composite_char): New function.
4533         (Fput_char_attribute): Register `->decomposition' value to
4534         `Vcharacter_composition_table'.
4535         (syms_of_mule_charset): Add new function `get-composite-char', new
4536         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4537         `super' and `fraction'.
4538         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4539
4540 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4541
4542         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4543         character; copy the return value.
4544
4545 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4546
4547         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4548
4549         * mule-charset.c (range_charset_code_point): Must use make_int.
4550         (split_builtin_char): New function.
4551
4552 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4553
4554         * mule-charset.c (char_byte_table): Change name from
4555         "char-code-table" to "char-byte-table".
4556         (mark_char_code_table): New function.
4557         (char_code_table_equal): New function.
4558         (char_code_table_hash): New function.
4559         (char_code_table_description): New constant.
4560         (char_code_table): New type.
4561         (make_char_code_table): New function.
4562         (copy_char_code_table): New function.
4563         (get_char_code_table): Modify for `char_code_table' type.
4564         (put_char_code_table): Likewise.
4565         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4566         (Kashiwara).
4567
4568         * char-ucs.h (char_code_table): New type.
4569         (XCHAR_CODE_TABLE): New macro.
4570         (XSETCHAR_CODE_TABLE): New macro.
4571         (CHAR_CODE_TABLE_P): New macro.
4572         (GC_CHAR_CODE_TABLE_P): New macro.
4573         (struct Lisp_Char_Code_Table): New structure.
4574
4575 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4576
4577         * mule-charset.c (Fmake_charset): Setup byte_offset for
4578         {94|96}^n-set.
4579
4580 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4581
4582         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4583         character.
4584
4585 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4586
4587         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4588         is found.
4589
4590 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4591
4592         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4593         charset, it is regarded as a charset.
4594         (put_char_attribute): New function in UTF-2000.
4595         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4596         charset, mapping-table of the charset is modified.
4597         (Fdefine_char): New function in UTF-2000.
4598         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4599         `Fput_char_attribute'.
4600         (syms_of_mule_charset): Add new function `define-char' and new
4601         symbol `ucs' in UTF-2000.
4602         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4603
4604 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4605
4606         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4607         non-UTF-2000 configuration.
4608
4609 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4610
4611         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4612         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4613
4614         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4615         deleted.
4616         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4617         (Fset_charset_mapping_table): Likewise.
4618
4619         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4620         (CHARSET_ENCODING_TABLE): Delete.
4621         (XCHARSET_ENCODING_TABLE): Delete.
4622         (charset_code_point): New interface.
4623
4624 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4625
4626         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4627         instead of `charset_get_byte1' and `charset_get_byte2'.
4628
4629         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4630         (charset_get_byte2): Deleted.
4631
4632 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4633
4634         * char-ucs.h (SPLIT_CHAR): New inline function.
4635         (breakup_char_1): Use `SPLIT_CHAR'.
4636
4637         * mule-charset.c (range_charset_code_point): New function.
4638         (charset_code_point): New function.
4639
4640         * char-ucs.h (range_charset_code_point): New interface.
4641         (breakup_char_1): Use `range_charset_code_point'.
4642
4643 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4644
4645         * mule-charset.c (Fmake_charset): Delete unused local variable
4646         `code_offset'.
4647
4648         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4649         (breakup_char_1): Find a charset and code-point in
4650         `Vcharacter_attribute_table'.
4651
4652 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4653
4654         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4655         to 0.10 (Yao).
4656
4657 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4658
4659         * mule-charset.c (Vcharacter_attribute_table): New variable.
4660         (Fchar_attribute_alist): New function.
4661         (Fget_char_attribute): New function.
4662         (Fput_char_attribute): New function.
4663         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4664         too.
4665         (syms_of_mule_charset): Add new function `char-attribute-alist',
4666         `get-char-attribute' and `put-char-attribute'.
4667         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4668
4669 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4670
4671         * mule-charset.c (Fmake_charset): Just use
4672         `get_unallocated_leading_byte'.
4673
4674         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4675         sets; don't use final-byte based number for private sets.
4676
4677 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4678
4679         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4680         integer.
4681
4682 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4683
4684         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4685         to 0.9.
4686
4687 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4688
4689         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4690         of `CHAR_LEADING_BYTE' in UTF-2000.
4691
4692         * insdel.c (find_charsets_in_bufbyte_string): Use
4693         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4694         (find_charsets_in_emchar_string): Likewise.
4695
4696         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4697         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4698
4699         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4700         (CHAR_CHARSET_ID): New macro.
4701
4702 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4703
4704         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4705         charset-id - MIN_LEADING_BYTE.
4706         (put_char_table): Likewise.
4707
4708 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4709
4710         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4711         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4712         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4713         (CHARSET_ID_OFFSET): New macro.
4714         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4715         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4716         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4717         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4718         4).
4719         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4720         5).
4721         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4722         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4723         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4724         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4725         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4726
4727 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4728
4729         * mule-charset.c (next_allocated_leading_byte): New variable in
4730         UTF-2000.
4731         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4732         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4733         (get_unallocated_leading_byte): Simply use
4734         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4735         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4736         UTF-2000.
4737
4738         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4739         (MAX_LEADING_BYTE_PRIVATE): New macro.
4740         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4741         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4742
4743 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4744
4745         * mule-charset.c (Fmake_charset): Allocate final-byte based
4746         charset-id for 94-set, 96-set and 94x94-set.
4747
4748 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4749
4750         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4751         ambiguous `else'.
4752         (Fmake_charset): Likewise.
4753         (complex_vars_of_mule_charset): Modify the font registry of
4754         `ucs-bmp' not to match `Ethiopic-Unicode'.
4755
4756 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4757
4758         * mule-charset.c (complex_vars_of_mule_charset): Add font
4759         registory of `ucs-bmp'.
4760
4761 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4762
4763         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4764         coded-charsets in `default-coded-charset-priority-list' when
4765         breaking up a character.
4766
4767         * mule-charset.c (Vcharset_latin_viscii): New variable.
4768         (Qlatin_viscii): New variable.
4769         (make_charset): Don't use `decoding_table'.
4770         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4771         byte_offset.
4772         (Fset_charset_mapping_table): New implementation.
4773         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4774         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4775         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4776         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4777         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4778         charset `latin_viscii'.
4779
4780         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4781         (CHARSET_TYPE_94X94): Change to 1 from 2.
4782         (CHARSET_TYPE_96): Change to 2 from 1.
4783         (CHARSET_TYPE_128): New macro.
4784         (CHARSET_TYPE_128X128): Change to 5 from 4.
4785         (CHARSET_TYPE_256): New macro.
4786         (CHARSET_TYPE_256X256): Change to 7 from 5.
4787         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4788
4789 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4790
4791         * text-coding.c (char_encode_shift_jis): Refer
4792         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4793         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4794
4795         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4796         (char_byte_table_equal): New function in UTF-2000.
4797         (char_byte_table_hash): New function in UTF-2000.
4798         (char_byte_table_description): New constant in UTF-2000.
4799         (char_byte_table): New type in UTF-2000.
4800         (make_char_byte_table): New function in UTF-2000.
4801         (copy_char_byte_table): New function in UTF-2000.
4802         (make_char_code_table): New macro in UTF-2000.
4803         (get_char_code_table): New function in UTF-2000.
4804         (put_char_code_table): New function in UTF-2000.
4805         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4806         (charset_description): Add setting in UTF-2000.
4807         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4808         `CHARSET_TO_BYTE1_TABLE(cs)'.
4809         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4810         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4811         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4812         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4813         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4814         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4815         `CHARSET_TO_BYTE2_TABLE(cs)'.
4816
4817         * char-ucs.h (char_byte_table): New type.
4818         (XCHAR_BYTE_TABLE): New macro.
4819         (XSETCHAR_BYTE_TABLE): New macro.
4820         (CHAR_BYTE_TABLE_P): New macro.
4821         (GC_CHAR_BYTE_TABLE_P): New macro.
4822         (struct Lisp_Char_Byte_Table): New structure.
4823         (get_char_code_table): New interface.
4824         (Emchar_to_byte_table): Deleted.
4825         (get_byte_from_character_table): Deleted.
4826         (struct Lisp_Charset): Add `encoding_table'; delete
4827         `to_byte1_table' and `to_byte2_table'.
4828         (CHARSET_ENCODING_TABLE): New macro.
4829         (CHARSET_TO_BYTE1_TABLE): Deleted.
4830         (CHARSET_TO_BYTE2_TABLE): Deleted.
4831         (XCHARSET_ENCODING_TABLE): New macro.
4832         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4833         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4834
4835 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4836
4837         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4838         `vietnamese-viscii-*'.
4839
4840 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4841
4842         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4843         (Qvietnamese_viscii_upper): New variable.
4844         (Fdefine_charset_alias): New function.
4845         (syms_of_mule_charset): Add new function `define-charset-alias'.
4846         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4847         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4848         `latin-viscii-*'.
4849
4850 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4851
4852         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4853         (MAX_CHAR_OBS_94x94): New macro.
4854         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4855         for 94x94 sets.
4856
4857         * mule-charset.c (put_byte_from_character_table): Change unit size
4858         from 128 to 256.
4859         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4860         not defined.
4861         (Fmake_reverse_direction_charset): Modify dummy argument of
4862         `make_charset' for non-UTF-2000 environment.
4863
4864 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4865
4866         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4867
4868         * mule-charset.c (destroy_byte_from_character_table): New macro.
4869         (latin_jisx0201_to_ucs): Deleted.
4870         (latin_iso8859_2_to_ucs): Deleted.
4871         (latin_iso8859_3_to_ucs): Deleted.
4872         (latin_iso8859_4_to_ucs): Deleted.
4873         (latin_iso8859_9_to_ucs): Deleted.
4874         (latin_viscii_lower_to_ucs): Deleted.
4875         (latin_viscii_upper_to_ucs): Deleted.
4876         (mark_charset): Mark `cs->decoding_table'.
4877         (Fcharset_mapping_table): Fix DOC-string.
4878         (Fset_charset_mapping_table): New function.
4879         (syms_of_mule_charset): Add nwe function
4880         `set-charset-mapping-table'.
4881         (complex_vars_of_mule_charset): Don't setup and use
4882         `latin_*_to_ucs'.
4883
4884 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4885
4886         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4887         charset.
4888
4889 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4890
4891         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4892         (Vcharset_katakana_jisx0208): New variable.
4893         (Qhiragana_jisx0208): New variable.
4894         (Qkatakana_jisx0208): New variable.
4895         (make_charset): Add new argument `byte_offset'.
4896         (charset_get_byte1): Modify for new coded-charset definition; use
4897         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4898         `XCHARSET_BYTE_OFFSET'.
4899         (Fmake_charset): Modify for `make_charset'.
4900         (Fmake_reverse_direction_charset): Likewise.
4901         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4902         `katakana-jisx0208'.
4903         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4904         `.'  in font registry of charset `katakana-jisx0201',
4905         `latin-jisx0201', `vietnamese-viscii-lower' and
4906         `vietnamese-viscii-upper'; modify DOC-string of charset
4907         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4908         registry of charset `japanese-jisx0208' not to use font for JIS
4909         X0208:1990; add new charset `hiragana-jisx0208' and
4910         `katakana-jisx0208'.
4911
4912         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4913         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4914         (struct Lisp_Charset): Add `byte_offset'.
4915         (CHARSET_BYTE_OFFSET): New macro.
4916         (XCHARSET_UCS_MIN): New macro.
4917         (XCHARSET_UCS_MAX): New macro.
4918         (XCHARSET_CODE_OFFSET): New macro.
4919         (XCHARSET_BYTE_OFFSET): New macro.
4920         (MIN_CHAR_HIRAGANA): New macro.
4921         (MAX_CHAR_HIRAGANA): New macro.
4922         (MIN_CHAR_KATAKANA): New macro.
4923         (MAX_CHAR_KATAKANA): New macro.
4924         (MAKE_CHAR): Modify for new coded-charset definition; use
4925         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4926         `XCHARSET_BYTE_OFFSET'.
4927
4928 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4929
4930         * mule-charset.c (CHAR96): Deleted.
4931         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4932         <Lisp_Object>.
4933         (latin_iso8859_2_to_ucs): Likewise.
4934         (latin_iso8859_3_to_ucs): Likewise.
4935         (latin_iso8859_4_to_ucs): Likewise.
4936         (latin_iso8859_9_to_ucs): Likewise.
4937         (latin_viscii_lower_to_ucs): Likewise.
4938         (latin_viscii_upper_to_ucs): Likewise.
4939         (latin_tcvn5712_to_ucs): Commented out.
4940         (make_charset): Change type of argument `decoding_table' from
4941         <Emchar*> to <Lisp_Object> [vector of characters].
4942         (Fmake_charset): Modify for `make_charset'.
4943         (Fmake_reverse_direction_charset): Likewise.
4944         (Fcharset_mapping_table): New function in UTF-2000.
4945         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4946         UTF-2000.
4947         (complex_vars_of_mule_charset): Modify for type change of
4948         `*_to_ucs'; modify for `make_charset'.
4949
4950         * char-ucs.h (struct Lisp_Charset): Change type of
4951         `decoding_table' from <Emchar*> to <Lisp_Object>.
4952         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4953
4954 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4955
4956         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4957         error with non-UTF-2000-Mule.
4958
4959 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4960
4961         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4962         in lisp again].
4963         (Vcharset_chinese_cns11643_4): Likewise.
4964         (Vcharset_chinese_cns11643_5): Likewise.
4965         (Vcharset_chinese_cns11643_6): Likewise.
4966         (Vcharset_chinese_cns11643_7): Likewise.
4967         (Qchinese_cns11643_3): Likewise.
4968         (Qchinese_cns11643_4): Likewise.
4969         (Qchinese_cns11643_5): Likewise.
4970         (Qchinese_cns11643_6): Likewise.
4971         (Qchinese_cns11643_7): Likewise.
4972         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4973         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4974         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4975         (complex_vars_of_mule_charset): Likewise.
4976
4977 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4978
4979         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4980         96-set.
4981         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4982         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4983
4984 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4985
4986         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4987         0xFF60.
4988         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4989         (breakup_char_1): Likewise.
4990
4991         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4992         one of them includes the specified character.
4993
4994 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4995
4996         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4997
4998 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4999
5000         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
5001
5002 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5003
5004         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
5005         definition for non-UTF-2000 Mule.
5006         (latin_iso8859_3_to_ucs): Likewise.
5007         (latin_iso8859_4_to_ucs): Likewise.
5008         (latin_iso8859_9_to_ucs): Likewise.
5009         (latin_jisx0201_to_ucs): Likewise.
5010         (MIN_CHAR_THAI): Likewise.
5011         (MAX_CHAR_THAI): Likewise.
5012         (MIN_CHAR_GREEK): Likewise.
5013         (MAX_CHAR_GREEK): Likewise.
5014         (MIN_CHAR_HEBREW): Likewise.
5015         (MAX_CHAR_HEBREW): Likewise.
5016         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
5017         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
5018         (MIN_CHAR_CYRILLIC): Likewise.
5019         (MAX_CHAR_CYRILLIC): Likewise.
5020
5021 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5022
5023         * char-ucs.h (breakup_char_1): Use
5024         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
5025         thai-tis620 and katakana-jisx0201 area.
5026
5027 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5028
5029         * char-ucs.h (breakup_char_1): Use
5030         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
5031         area.
5032
5033         * text-coding.c (reset_encoding_stream): Fixed.
5034         (char_encode_ucs4): Delete `& 255'.
5035
5036         * char-ucs.h (breakup_char_1): Use
5037         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
5038
5039 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5040
5041         * file-coding.c (Fmake_coding_system): Don't set up
5042         `codesys->fixed.size'.
5043         (encode_coding_no_conversion): Don't refer
5044         `str->codesys->fixed.size'.
5045
5046 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5047
5048         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
5049         (latin_a_char_to_byte1): Deleted.
5050         (latin_a_char_to_byte2): Deleted.
5051
5052 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5053
5054         * mule-charset.c (make_charset): Add new argument `ucs_min',
5055         `ucs_max' and `code_offset'.
5056         (charset_get_byte1): New implementation [delete specific charset
5057         depended implementations].
5058         (Fmake_charset): Modify for `make_charset'.
5059         (Fmake_reverse_direction_charset): Likewise.
5060         (complex_vars_of_mule_charset): Likewise.
5061
5062         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5063         `code_offset'.
5064         (CHARSET_UCS_MIN): New macro.
5065         (CHARSET_UCS_MAX): New macro.
5066         (CHARSET_CODE_OFFSET): New macro.
5067         (MAKE_CHAR): Delete charset depended definitions [except
5068         katakana-jisx0201].
5069
5070 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5071
5072         * char-ucs.h (breakup_char_1): Use
5073         `Vdefault_coded_charset_priority_list' for C0-Controls,
5074         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5075
5076 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5077
5078         * char-ucs.h (charset_get_byte1): New function.
5079         (XCHARSET_GET_BYTE1): Deleted.
5080         (charset_get_byte2): New function.
5081         (XCHARSET_GET_BYTE2): Deleted.
5082         (Vdefault_coded_charset_priority_list): New external variable.
5083         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5084         `Vdefault_preferred_coded_charset_list'.
5085
5086         * mule-charset.c (charset_get_byte1): New function.
5087         (charset_get_byte2): New function.
5088         (Vdefault_coded_charset_priority_list): New variable.
5089         (vars_of_mule_charset): Add new variable
5090         `default-coded-charset-priority-list'.
5091
5092 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5093
5094         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5095         (XCHARSET_GET_BYTE2): New inline function.
5096         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5097         `XCHARSET_GET_BYTE2'.
5098
5099 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5100
5101         * mule-charset.c (make_charset): Initialize
5102         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5103         NULL if table is not defined.
5104
5105 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5106
5107         * text-coding.c (char_encode_shift_jis): Use
5108         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5109         `ucs_to_latin_jisx0201'.
5110
5111         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5112         (ucs_to_latin_iso8859_2): Deleted.
5113         (ucs_to_latin_iso8859_3): Deleted.
5114         (ucs_to_latin_iso8859_4): Deleted.
5115         (ucs_to_latin_iso8859_9): Deleted.
5116         (ucs_to_latin_viscii_lower): Deleted.
5117         (ucs_to_latin_viscii_upper): Deleted.
5118         (ucs_to_latin_tcvn5712): Deleted.
5119         (make_charset): Add new argument `decoding_table'; set up
5120         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5121         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5122         `decoding_table' is defined in UTF-2000.
5123         (Fmake_charset): Modify for `make_charset'.
5124         (Fmake_reverse_direction_charset): Likewise.
5125         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5126         and `GENERATE_96_SET'.
5127
5128         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5129         (ucs_to_latin_jisx0201): Deleted.
5130         (latin_iso8859_2_to_ucs): Deleted.
5131         (ucs_to_latin_iso8859_2): Deleted.
5132         (latin_iso8859_3_to_ucs): Deleted.
5133         (ucs_to_latin_iso8859_3): Deleted.
5134         (latin_iso8859_4_to_ucs): Deleted.
5135         (ucs_to_latin_iso8859_4): Deleted.
5136         (latin_iso8859_9_to_ucs): Deleted.
5137         (ucs_to_latin_iso8859_9): Deleted.
5138         (latin_viscii_lower_to_ucs): Deleted.
5139         (ucs_to_latin_viscii_lower): Deleted.
5140         (latin_viscii_upper_to_ucs): Deleted.
5141         (ucs_to_latin_viscii_upper): Deleted.
5142         (struct Lisp_Charset): Renamed `encoding_table' to
5143         `to_byte1_table'; add `to_byte2_table'.
5144         (CHARSET_DECODING_TABLE): New macro.
5145         (CHARSET_TO_BYTE1_TABLE): New macro.
5146         (CHARSET_TO_BYTE2_TABLE): New macro.
5147         (XCHARSET_DECODING_TABLE): New macro.
5148         (XCHARSET_TO_BYTE1_TABLE): New macro.
5149         (XCHARSET_TO_BYTE2_TABLE): New macro.
5150         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5151         tables.
5152         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5153         don't use `ucs_to_*' tables.
5154
5155 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5156
5157         * text-coding.c (Fmake_coding_system): Don't set up
5158         `codesys->fixed.size'.
5159         (encode_coding_no_conversion): Use `if' instead of `switch'.
5160
5161         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5162
5163 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5164
5165         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5166         (Fmake_charset): Modify for `make_charset'.
5167         (Fmake_reverse_direction_charset): Likewise.
5168         (complex_vars_of_mule_charset): Likewise.
5169
5170 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5171
5172         * text-coding.c (char_encode_shift_jis): Use table
5173         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5174
5175 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5176
5177         * text-coding.c (text_encode_generic): Use `if' instead of
5178         `switch'.
5179         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5180         decode JIS-Latin.
5181
5182 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5183
5184         * text-coding.c (encode_coding_sjis): Deleted.
5185         (char_encode_shift_jis): New function.
5186         (char_finish_shift_jis): New function.
5187         (reset_encoding_stream): Set up `encode_char' and `finish' for
5188         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5189         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5190         (char_encode_utf8): Treat `eol_type'.
5191
5192 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5193
5194         * file-coding.c (decode_coding_iso2022): Use
5195         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5196
5197 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5198
5199         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5200         to 0.7 (Hirano).
5201
5202 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5203
5204         * char-lb.h (CHAR_COLUMNS): New macro.
5205
5206 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5207
5208         * text-coding.c (char_encode_ucs4): New function.
5209         (char_finish_ucs4): New function.
5210         (encode_coding_ucs4): Deleted.
5211         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5212         (text_encode_generic): Delete local variable `charset' and `half'.
5213         (ucs_to_mule_table): Deleted.
5214         (mule_to_ucs_table): Deleted.
5215         (Fset_ucs_char): Deleted.
5216         (ucs_to_char): Deleted.
5217         (Fucs_char): Deleted.
5218         (Fset_char_ucs): Deleted.
5219         (Fchar_ucs): Deleted.
5220         (decode_ucs4): Deleted.
5221         (mule_char_to_ucs4): Deleted.
5222         (encode_ucs4): Deleted.
5223         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5224         (decode_coding_utf8): Likewise.
5225         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5226         (char_encode_iso2022): Fixed.
5227         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5228         `Fset_char_ucs' and `Fchar_ucs'.
5229         (complex_vars_of_file_coding): Don't initialize
5230         `ucs_to_mule_table'.
5231
5232         * objects-tty.c (tty_initialize_font_instance): Don't use
5233         `XCHARSET_COLUMNS'.
5234
5235         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5236         UTF-2000.
5237
5238         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5239         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5240
5241         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5242         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5243         (emchar_string_displayed_columns): Likewise.
5244
5245         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5246         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5247         (string_column_at_point): Likewise.
5248         (Fmove_to_column): Likewise.
5249
5250         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5251         `encoding_table' and `decoding_table'.
5252         (CHARSET_REP_BYTES): Deleted.
5253         (XCHARSET_REP_BYTES): Deleted.
5254         (XCHARSET_COLUMNS): Deleted.
5255         (CHAR_COLUMNS): New macro.
5256         (lookup_composite_char): Deleted unconditionally.
5257         (composite_char_string): Likewise.
5258
5259 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5260
5261         * char-ucs.h (Emchar_to_byte_table): New type.
5262         (get_byte_from_character_table): New function interface.
5263         (Vcharset_latin_jisx0201): New variable.
5264         (latin_jisx0201_to_ucs): New variable.
5265         (ucs_to_latin_jisx0201): New variable.
5266         (Vcharset_latin_iso8859_2): New variable.
5267         (latin_iso8859_2_to_ucs): New variable.
5268         (ucs_to_latin_iso8859_2): New variable.
5269         (Vcharset_latin_iso8859_3): New variable.
5270         (latin_iso8859_3_to_ucs): New variable.
5271         (ucs_to_latin_iso8859_3): New variable.
5272         (Vcharset_latin_iso8859_4): New variable.
5273         (latin_iso8859_4_to_ucs): New variable.
5274         (ucs_to_latin_iso8859_4): New variable.
5275         (Vcharset_latin_iso8859_9): New variable.
5276         (latin_iso8859_9_to_ucs): New variable.
5277         (ucs_to_latin_iso8859_9): New variable.
5278         (Vcharset_latin_viscii_lower): New variable.
5279         (latin_viscii_lower_to_ucs): New variable.
5280         (ucs_to_latin_viscii_lower): New variable.
5281         (Vcharset_latin_viscii_upper): New variable.
5282         (latin_viscii_upper_to_ucs): New variable.
5283         (ucs_to_latin_viscii_upper): New variable.
5284         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5285         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5286         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5287         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5288         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5289         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5290         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5291         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5292         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5293         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5294
5295         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5296         (Vcharset_latin_viscii_upper): New variable.
5297         (make_byte_from_character_table): New function.
5298         (put_byte_from_character_table): New function.
5299         (get_byte_from_character_table): New function.
5300         (CHAR96): New macro.
5301         (ucs_to_latin_jisx0201): New variable.
5302         (latin_jisx0201_to_ucs): New variable.
5303         (ucs_to_latin_iso8859_2): New variable.
5304         (latin_iso8859_2_to_ucs): New variable.
5305         (ucs_to_latin_iso8859_3): New variable.
5306         (latin_iso8859_3_to_ucs): New variable.
5307         (ucs_to_latin_iso8859_4): New variable.
5308         (latin_iso8859_4_to_ucs): New variable.
5309         (ucs_to_latin_iso8859_9): New variable.
5310         (latin_iso8859_9_to_ucs): New variable.
5311         (ucs_to_latin_viscii_lower): New variable.
5312         (latin_viscii_lower_to_ucs): New variable.
5313         (ucs_to_latin_viscii_upper): New variable.
5314         (latin_viscii_upper_to_ucs): New variable.
5315         (ucs_to_latin_tcvn5712): New variable.
5316         (latin_tcvn5712_to_ucs): New variable.
5317         (Qlatin_viscii_lower): New variable.
5318         (Qlatin_viscii_upper): New variable.
5319         (syms_of_mule_charset): Set up new symbol
5320         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5321         (complex_vars_of_mule_charset): Set up new charset
5322         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5323         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5324         `ucs_to_<CHARSET>' tables.
5325
5326 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5327
5328         * text-coding.c: New file.
5329
5330 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5331
5332         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5333
5334         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5335         (MAKE_CHAR): Modify for `ucs-bmp'.
5336         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5337         non-MULE characters of BMP.
5338
5339 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5340
5341         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5342         to 0.6.
5343
5344 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5345
5346         * lstream.h:
5347         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5348         - Include character.h for `CHAR_ASCII_P'.
5349
5350         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5351
5352         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5353         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5354
5355         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5356         (BYTE_C0_P): Likewise.
5357         (BYTE_C1_P): Likewise.
5358         (Lstream_get_emchar_1): Likewise.
5359         (Lstream_fput_emchar): Likewise.
5360         (Lstream_funget_emchar): Likewise.
5361         (copy_internal_to_external): Likewise.
5362         (copy_external_to_internal): Likewise.
5363
5364         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.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         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5374         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5375
5376         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5377         (BYTE_ASCII_P): Moved to mb-1byte.h.
5378
5379 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5380
5381         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5382
5383         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5384         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5385         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5386         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5387         (VALIDATE_CHARPTR_FORWARD): Likewise.
5388         (simple_charptr_emchar): Moved to mb-multibyte.h.
5389         (simple_set_charptr_emchar): Likewise.
5390         (simple_charptr_copy_char): Likewise.
5391         (non_ascii_charptr_emchar): Likewise.
5392         (non_ascii_set_charptr_emchar): Likewise.
5393         (non_ascii_charptr_copy_char): Likewise.
5394         (charptr_emchar): Moved to mb-*byte.h.
5395         (set_charptr_emchar): Likewise.
5396         (charptr_copy_char): Likewise.
5397
5398         * mb-1byte.h, mb-multibyte.h: New files.
5399
5400 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5401
5402         * mb-utf-8.h (MULTIBYTE): New macro.
5403         (MAX_EMCHAR_LEN): Moved from buffer.h.
5404         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5405
5406         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5407
5408         * mb-lb.h, multibyte.h: New files.
5409
5410         * char-1byte.h (Charset_ID): Moved from buffer.h.
5411         (MIN_LEADING_BYTE): Likewise.
5412         (LEADING_BYTE_ASCII): Likewise.
5413         (NUM_LEADING_BYTES): Likewise.
5414         (CHARSETP): Likewise.
5415         (CHARSET_BY_LEADING_BYTE): Likewise.
5416         (XCHARSET_LEADING_BYTE): Likewise.
5417         (XCHARSET_GRAPHIC): Likewise.
5418         (XCHARSET_COLUMNS): Likewise.
5419         (XCHARSET_DIMENSION): Likewise.
5420         (CHAR_CHARSET): Likewise.
5421         (CHAR_LEADING_BYTE): Likewise.
5422         (BREAKUP_CHAR): Likewise.
5423         (Vcharset_ascii): Likewise.
5424
5425         * buffer.h: Include multibyte.h unconditionally.
5426         (VALID_CHARPTR_P): Moved to multibyte.h.
5427         (ASSERT_VALID_CHARPTR): Likewise.
5428         (REAL_INC_CHARPTR): Likewise.
5429         (REAL_INC_CHARBYTIND): Likewise.
5430         (REAL_DEC_CHARPTR): Likewise.
5431         (INC_CHARPTR): Likewise.
5432         (INC_CHARBYTIND): Likewise.
5433         (DEC_CHARPTR): Likewise.
5434         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5435         (VALIDATE_CHARPTR_FORWARD): Likewise.
5436         (charptr_n_addr): Likewise.
5437         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5438         (simple_charptr_emchar): Moved to multibyte.h.
5439         (simple_set_charptr_emchar): Likewise.
5440         (simple_charptr_copy_char): Likewise.
5441         (non_ascii_charptr_emchar): Likewise.
5442         (non_ascii_set_charptr_emchar): Likewise.
5443         (non_ascii_charptr_copy_char): Likewise.
5444         (charptr_emchar): Likewise.
5445         (set_charptr_emchar): Likewise.
5446         (charptr_copy_char): Likewise.
5447         (charptr_emchar_n): Likewise.
5448         (Charset_ID): Moved to char-1byte.h.
5449         (Vcharset_ascii): Likewise.
5450         (CHAR_CHARSET): Likewise.
5451         (CHAR_LEADING_BYTE): Likewise.
5452         (LEADING_BYTE_ASCII): Likewise.
5453         (NUM_LEADING_BYTES): Likewise.
5454         (MIN_LEADING_BYTE): Likewise.
5455         (CHARSETP): Likewise.
5456         (CHARSET_BY_LEADING_BYTE): Likewise.
5457         (XCHARSET_LEADING_BYTE): Likewise.
5458         (XCHARSET_GRAPHIC): Likewise.
5459         (XCHARSET_COLUMNS): Likewise.
5460         (XCHARSET_DIMENSION): Likewise.
5461         (BREAKUP_CHAR): Likewise.
5462
5463 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5464
5465         * character.h: Add document about interface for characters.
5466
5467         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5468         (MAKE_CHAR): Delete comment about
5469         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5470         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5471         (BREAKUP_CHAR): Modify name of arguments.
5472         (CHAR_CHARSET): Modify name of argument.
5473
5474         * buffer.h: Delete document about Emchar accessors.
5475
5476 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5477
5478         * character.h (CHAR_INTP): Moved from buffer.h
5479         (CHAR_OR_CHAR_INTP): Likewise.
5480         (XCHAR_OR_CHAR_INT): Likewise.
5481         (CHECK_CHAR_COERCE_INT): Likewise.
5482
5483         * buffer.h (CHAR_INTP): Moved to character.h
5484         (CHAR_OR_CHAR_INTP): Likewise.
5485         (XCHAR_OR_CHAR_INT): Likewise.
5486         (CHECK_CHAR_COERCE_INT): Likewise.
5487
5488 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5489
5490         * character.h:
5491         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5492         - Include char-1byte.h, char-lb.h or char-ucs.h.
5493
5494         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5495
5496         * buffer.h: Include character unconditionally.
5497         (valid_char_p): Moved to char-*.h.
5498         (non_ascii_valid_char_p): Moved to char-lb.h.
5499
5500         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5501
5502 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5503
5504         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5505         in UTF-2000 because it is not ported yet and not to use
5506         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5507         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5508         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5509
5510         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5511         (CHAR_ASCII_P): Moved from character.h.
5512
5513         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5514         (CHAR_ASCII_P): Likewise.
5515         (CHAR_FIELD1_MASK): Deleted.
5516         (CHAR_FIELD2_MASK): Deleted.
5517         (CHAR_FIELD3_MASK): Deleted.
5518         (MAX_CHAR_BASIC_LATIN): New macro.
5519         (CHAR_FIELD1): Deleted.
5520         (CHAR_FIELD2_INTERNAL): Deleted.
5521         (CHAR_FIELD3_INTERNAL): Deleted.
5522         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5523         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5524         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5525         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5526         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5527         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5528         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5529         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5530         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5531         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5532         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5533         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5534         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5535         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5536         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5537         (MIN_CHAR_COMPOSITION): Deleted.
5538         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5539         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5540
5541 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5542
5543         * buffer.h: Include mb-utf-8.h in UTF-2000.
5544
5545         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5546
5547         * mb-utf-8.h: New file.
5548
5549 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5550
5551         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5552         instead of `int'.
5553
5554         * mule-charset.h, buffer.h (Charset_ID): New type.
5555
5556 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5557
5558         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5559         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5560         instead of `MULE_CHAR_PRIVATE_OFFSET',
5561         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5562         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5563         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5564
5565         * character.h (Vcharset_japanese_jisx0212): New variable
5566         definition.
5567
5568 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5569
5570         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5571         (charset_by_attributes): Delete array about direction.
5572         (latin_a_char_to_charset): New variable in UTF-2000.
5573         (latin_a_char_to_byte1): New variable in UTF-2000.
5574         (latin_a_char_to_byte2): New variable in UTF-2000.
5575         (Qucs_bmp): New variable.
5576         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5577         `Bufbyte'.
5578         (next_allocated_2_byte_leading_byte): Likewise.
5579         (non_ascii_set_charptr_emchar): Likewise.
5580         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5581         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5582         `charset_by_attributes'.
5583         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5584         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5585         and `CHARSET_BY_LEADING_BYTE'.
5586         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5587         `utf-2000-version' to `vars_of_mule_charset'.
5588         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5589         define `leading-code-private-11' in UTF-2000; move setting of
5590         `utf-2000-version' from `syms_of_mule_charset'.
5591         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5592         UTF-2000.
5593
5594         * character.h (Charset_ID): New type.
5595         (LEADING_BYTE_UCS_BMP): New macro.
5596         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5597         (CHARSET_ID_OFFSET_94): New macro.
5598         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5599         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5600         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5601         final-byte.
5602         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5603         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5604         (CHARSET_ID_OFFSET_96): New macro.
5605         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5606         CHARSET_ID_OFFSET_96 and final-byte.
5607         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5608         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5609         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5610         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5611         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5612         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5613         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5614         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5615         (LEADING_BYTE_THAI_TIS620): Likewise.
5616         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5617         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5618         (CHARSET_ID_OFFSET_94x94): New macro.
5619         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5620         CHARSET_ID_OFFSET_94x94 and final-byte.
5621         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5622         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5623         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5624         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5625         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5626         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5627         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5628         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5629         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5630         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5631         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5632         (CHARSET_TYPE_128X128): New macro.
5633         (CHARSET_TYPE_256X256): New macro.
5634         (XCHARSET_PRIVATE_P): Delete unconditionally.
5635         (charset_by_attributes): Delete array about direction.
5636         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5637         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5638         (MIN_CHAR_94): New macro.
5639         (MAX_CHAR_94): New macro.
5640         (MIN_CHAR_96): New macro.
5641         (MAX_CHAR_96): New macro.
5642         (MIN_CHAR_94x94): New macro.
5643         (MAX_CHAR_94x94): New macro.
5644         (MIN_CHAR_96x96): New macro.
5645         (MAX_CHAR_96x96): New macro.
5646         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5647         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5648         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5649         - 32)'.
5650         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5651         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5652         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5653         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5654         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5655         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5656         `XCHARSET_LEADING_BYTE' to make code-point.
5657         (latin_a_char_to_charset): New variable.
5658         (latin_a_char_to_byte1): New variable.
5659         (latin_a_char_to_byte2): New variable.
5660         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5661         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5662         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5663
5664         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5665         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5666         (find_charsets_in_emchar_string): Likewise.
5667         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5668
5669         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5670         `int'.
5671         (decode_coding_iso2022): Likewise.
5672
5673         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5674         of `unsigned char'.
5675
5676         * redisplay.c (redisplay_text_width_emchar_string): Use
5677         `Charset_ID' instead of `unsigned char'.
5678         (redisplay_frame_text_width_string): Likewise.
5679
5680         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5681         `unsigned char'.
5682
5683         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5684         instead of `unsigned char'.
5685         (face_cachel_charset_font_metric_info): Likewise.
5686
5687         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5688         (get_non_ascii_char_table_value): Likewise.
5689         (get_char_table): Likewise.
5690         (put_char_table): Likewise.
5691         (map_over_other_charset): Likewise.
5692         (map_char_table): Likewise.
5693
5694         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5695         instead of `unsigned char'.
5696
5697 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5698
5699         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5700         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5701
5702         * mule-charset.c (leading_code_private_11): Don't define in
5703         UTF-2000.
5704
5705         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5706         in UTF-2000 because it is not ported yet and not to use
5707         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5708
5709 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5710
5711         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5712
5713 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5714
5715         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5716         in UTF-2000.
5717
5718         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5719         of unsigned char to store leading-byte.
5720
5721         * chartab.c (get_non_ascii_char_table_value): Don't use
5722         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5723
5724         * file-coding.c (encode_coding_big5): Delete bogus implementation
5725         in UTF2000.
5726
5727         * character.h (LEADING_BYTE_*): Delete definition for
5728         non-UTF-2000.
5729         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5730         (LEADING_BYTE_PREFIX_P): Deleted.
5731         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5732         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5733         (BUFBYTE_LEADING_BYTE_P): Deleted.
5734         (CHARSET_PRIVATE_P): Deleted unconditionally.
5735         (rep_bytes_by_first_byte): Deleted unconditionally.
5736         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5737         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5738         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5739         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5740         (CHAR_FIELD2): Deleted.
5741         (CHAR_FIELD3): Deleted.
5742         (MAKE_CHAR): Delete definition for non-UTF-2000.
5743         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5744         (breakup_char_1): New implementation.
5745         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5746         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5747
5748 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5749
5750         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5751         condition.
5752
5753 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5754
5755         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5756         (CHARSET_PRIVATE_P): Likewise.
5757         (XCHARSET_PRIVATE_P): Likewise.
5758         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5759
5760         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5761         UTF2000.
5762         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5763
5764 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5765
5766         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5767         (NUM_LEADING_BYTES): Changed from 128 to 256.
5768         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5769         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5770         UTF2000.
5771         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5772
5773         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5774         UTF2000.
5775         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5776         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5777         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5778         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5779         (Qchinese_cns11643_3): New variable in UTF2000.
5780         (Qchinese_cns11643_4): New variable in UTF2000.
5781         (Qchinese_cns11643_5): New variable in UTF2000.
5782         (Qchinese_cns11643_6): New variable in UTF2000.
5783         (Qchinese_cns11643_7): New variable in UTF2000.
5784         (syms_of_mule_charset): Define `chinese-cns11643-3',
5785         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5786         and `chinese-cns11643-7' in UTF2000.
5787         (vars_of_mule_charset): Initialize
5788         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5789         + 1 in UTF2000.
5790         (complex_vars_of_mule_charset): Setup charset
5791         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5792         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5793
5794 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5795
5796         * mule-charset.c: Move setting for `leading-code-private-11' from
5797         `syms_of_mule_charset' to `vars_of_mule_charset'.
5798
5799 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5800
5801         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5802         and `NUM_LEADING_BYTES' in assert.
5803
5804 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5805
5806         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5807         instead of 128.
5808         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5809         `NUM_LEADING_BYTES' instead of 128.
5810
5811 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5812
5813         * mule-charset.h (charset_by_leading_byte): Use
5814         `NUM_LEADING_BYTES' instead of 128.
5815         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5816
5817         * mule-charset.c (charset_by_leading_byte): Use
5818         `NUM_LEADING_BYTES' instead of 128.
5819         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5820
5821         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5822         128.
5823
5824 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5825
5826         * mule-charset.c (syms_of_mule_charset): Update to
5827         0.4 (Shin-Imamiya).
5828
5829 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5830
5831         * file-coding.c (encode_coding_sjis): New implementation for
5832         UTF2000.  (decode_coding_sjis): Ditto.
5833
5834 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5835
5836         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5837         Don't define in UTF2000.
5838
5839         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5840         defined.
5841
5842         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5843         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5844         MULE.
5845
5846 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5847
5848         * config.h.in (CHAR_IS_UCS4): New macro.
5849
5850         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5851         conventional MULE representation.
5852         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5853
5854         * mule-charset.h: Reverted to original.
5855
5856         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5857         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5858         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5859
5860         * character.h: New file.
5861
5862         * file-coding.c (Fmake_coding_system): Set 1 to
5863         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5864         defined.
5865         (encode_coding_no_conversion): New implementation for UTF2000.
5866
5867         * file-coding.h (struct Lisp_Coding_System): Add new member
5868         `fixed.size'.
5869
5870 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5871
5872         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5873         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5874         (encode_coding_iso2022): New implementation for UTF2000.
5875
5876 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5877
5878         * mule-canna.c (c2mu): New implementation for UTF2000.
5879         (m2c): Likewise.
5880
5881 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5882
5883         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5884
5885 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5886
5887         * file-coding.c (reset_encoding_stream): Set 0 to
5888         `str->iso2022.current_char_boundary' in UTF2000.
5889         (encode_utf8): Don't define in UTF2000.
5890         (encode_coding_utf8): New implementation for UTF-8 representation
5891         of UTF2000.
5892         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5893
5894 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5895
5896         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5897
5898         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5899         UTF2000.
5900         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5901
5902         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5903
5904         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5905         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5906         as UTF-8 in UTF2000.
5907         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5908         (non_ascii_valid_char_p): Don't define in UTF2000.
5909         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5910         (Lstream_get_emchar_1): Likewise.
5911         (utf-2000-version): New variable in UTF2000.
5912
5913         * lread.c (read_escape): Add new reader `u'.
5914
5915         * insdel.c (three_to_one_table): Don't define in UTF2000.
5916         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5917         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5918         UTF2000.
5919         (bytind_to_bufpos_func): Likewise.
5920         (buffer_mule_signal_inserted_region): Likewise.
5921         (vars_of_insdel): Don't initialize `three_to_one_table'.
5922         (init_buffer_text): Use `buf->text->mule_size' instead of
5923         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5924         UTF2000.
5925
5926         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5927         UTF-8 representation in UTF2000.
5928         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5929         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5930         (decode_coding_iso2022): Don't define local variable `lb' in
5931         UTF2000; don't use LEADING_BYTE in UTF2000; use
5932         `DECODE_ADD_UCS_CHAR' in UTF2000.
5933         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5934
5935         * config.h.in (UTF2000): New macro.
5936
5937         * buffer.h (struct buffer_text): Add new member `mule_size' and
5938         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5939         (valid_char_p): Return always 1 in UTF2000.
5940         (MAX_EMCHAR_LEN): 6 in UTF2000.
5941         (three_to_one_table): Don't define in UTF2000.
5942         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5943         UTF2000.
5944         (real_bytind_to_bufpos): Likewise.
5945
5946         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5947
5948 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5949
5950         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5951         representation change.
5952         (Vutf_2000_version): New variable.
5953         (leading_code_private_11): New variable.
5954         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5955         `leading-code-private-11'.
5956
5957         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5958         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5959         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5960         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5961         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5962         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5963         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5964         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5965         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5966         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5967         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5968         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5969         (MIN_CHAR_GREEK): New macro.
5970         (MAX_CHAR_GREEK): New macro.
5971         (MIN_CHAR_CYRILLIC): New macro.
5972         (MAX_CHAR_CYRILLIC): New macro.
5973         (MIN_CHAR_HEBREW): New macro.
5974         (MAX_CHAR_HEBREW): New macro.
5975         (MIN_CHAR_THAI): New macro.
5976         (MAX_CHAR_THAI): New macro.
5977         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5978         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5979         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5980         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5981         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5982         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5983         (CHAR_FIELD2): New inline function.
5984         (CHAR_FIELD3): New inline function.
5985         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5986         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5987         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5988         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5989         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5990         (MIN_CHAR_COMPOSITION): Likewise.
5991         (CHAR_LEADING_BYTE): Modified for character representation change.
5992         (MAKE_CHAR): Likewise.
5993
5994         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5995         (Vcharset_greek_iso8859_7): Likewise.
5996         (Vcharset_cyrillic_iso8859_5): Likewise.
5997         (Vcharset_hebrew_iso8859_8): Likewise.
5998         (Vcharset_thai_tis620): Likewise.
5999         (Vcharset_katakana_jisx0201): Likewise.
6000
6001 2008-12-28  Vin Shelton  <acs@xemacs.org>
6002
6003         * XEmacs 21.4.22 is released
6004
6005 2008-12-27  Vin Shelton  <acs@xemacs.org>
6006
6007         * syswindows.h: Don't define wide character interfaces for Cygwin
6008         1.7 and up.
6009
6010 2008-03-05  Dominique Quatravaux  <domq@cpan.org>
6011
6012         * glyphs-gtk.c: Fixed compilation under gcc 4.x.
6013
6014 2008-11-01  Stephen J. Turnbull  <stephen@xemacs.org>
6015
6016         * regex.c (re_search_2): Fix at_dot by changing charpos to bytepos.
6017         From Julian Bradfield <18654.1143.304851.782755@krk.inf.ed.ac.uk>.
6018
6019 2008-12-25  Vin Shelton  <acs@xemacs.org>
6020
6021         * mule-ccl.c (ccl_driver): Fix off-by-one error.
6022         By Julian Bradfield in
6023         <18691.16568.526264.972026@krk.inf.ed.ac.uk>.
6024
6025         * mule-ccl.c (ccl_driver): 
6026
6027 2007-10-07  Vin Shelton  <acs@xemacs.org>
6028
6029         * XEmacs 21.4.21 is released
6030
6031 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
6032
6033         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
6034
6035 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
6036
6037         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
6038         (png_instantiate): Initialize setjmp_buffer early, and avoid
6039         recursive entry to error handler.
6040
6041 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
6042
6043         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
6044         a typo fix.
6045
6046 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
6047
6048         * event-Xt.c (x_reset_modifier_mapping):
6049         * event-gtk.c (gtk_reset_modifier_mapping):
6050         Zero out the device's modifier map once we've freed it, to prevent
6051         a double free on a re-entrant call. 
6052
6053 2007-05-17  Vin Shelton  <acs@xemacs.org>
6054
6055         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
6056         64-bit linux.  Patch from Hans de Graaff.
6057
6058 2007-05-02  Vin Shelton  <acs@xemacs.org>
6059
6060         * dumper.c (pdump): Don't close pdump_fd (already closed by
6061         fclose() call.  Patch from Steve Higham.
6062         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
6063         already closed.  Patch inspired by Steve Higham.
6064
6065 2007-05-01  Vin Shelton  <acs@xemacs.org>
6066
6067         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
6068         (mswindows_fstat): Ditto.
6069         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
6070
6071 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
6072
6073         * postgresql.c: Update Steve Baur's email address by his request.
6074         * postgresql.h: Ditto.
6075
6076 2007-01-04  Vin Shelton  <acs@xemacs.org>
6077
6078         * fileio.c (check_writable): Check old-style readonly bit only for
6079         non-directories.
6080
6081 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
6082
6083         * src/fileio.c (check_writable): 
6084         Cope with the fact that the read-only attribute trumps Windows NTFS
6085         ACLS.
6086
6087
6088 2006-12-09  Vin Shelton  <acs@xemacs.org>
6089
6090         * XEmacs 21.4.20 is released
6091
6092 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
6093
6094         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6095         relocated the definitions to be used sooner in file.
6096         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6097         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6098         overflow.
6099
6100 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6101
6102         * sound.c (init_native_sound):
6103         Only X11 and GTK devices can possibly not be on the console of the
6104         associated machine. Fixes a crash when init_native_sound is called
6105         on a msprinter device. 
6106
6107 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6108
6109         * buffer.c (buffer-file-name): Document invariant.
6110         (buffer-file-truename): Sync wording to buffer-file-name.
6111         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6112         and discussion.
6113
6114 2006-11-19  Benson Margulies  <benson@dchbk.us>
6115
6116         * fileio.c: Add code to use full Win32 API to check for write
6117         access.  Win32 has the general design policy that you aren't
6118         supposed to ask this question, since security checks change
6119         depending on asynchronous processes.  Nonetheless, there is a way,
6120         by acting as if we are a server doing interpretive access
6121         control.
6122
6123 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6124
6125         * bytecode.c: Use xnew_array instead of alloca.
6126
6127 2006-07-04  Vin Shelton  <acs@xemacs.org>
6128
6129         * redisplay-msw.c: Fix tiny, but crucial typo.
6130
6131 2006-06-22  Jerry James  <james@xemacs.org>
6132
6133         * EmacsShell-sub.c (ChangeManaged):
6134         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6135         NULL.
6136         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6137         checking if it is NULL.  Also fix a memory leak.
6138         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6139         dereference it, not the other way around.
6140         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6141         overflow check.
6142         * dumper.c (pdump_register_struct): Ditto.
6143         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6144         to (short) warnpath overflow warnpath.
6145         * extents.c (detach_all_extents): Call extent_list_delete_all with
6146         a non-NULL parameter only.
6147         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6148         NULL width and height.
6149         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6150         xic before checking if they are NULL.
6151         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6152         allocated array.
6153         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6154         * nas.c (Err): Fix a memory leak.
6155         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6156         Don't create the buffer if there is nothing to do.
6157         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6158         * redisplay-output.c (redisplay_output_layout): Ditto.
6159         * redisplay-tty.c (tty_output_display_block): Ditto.
6160         * redisplay-x.c (x_output_display_block): Ditto.
6161         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6162         dereference instance->scrollbar_data if it is NULL.
6163         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6164         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6165         for sb->scrollbar_data.
6166         * sound.c (init_native_sound): Avoid a buffer overflow by
6167         allocating a buffer with the appropriate size.
6168
6169 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6170
6171         * EmacsShell-sub.c (RootGeometryManager):
6172         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6173         Based on a suggestion by Francois L'Archeveque.
6174
6175 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6176
6177         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6178         current values found in GNU Emacs.
6179
6180 2006-03-17  Vin Shelton  <acs@xemacs.org>
6181
6182         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6183         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6184
6185         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6186         'hex_initialized' because it conflicts with 'initialized' in
6187         lisp.h.
6188
6189 2006-01-28  Vin Shelton  <acs@xemacs.org>
6190
6191         * XEmacs 21.4.19 is released
6192
6193 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6194
6195         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6196
6197 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6198
6199         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6200         5000 to INT_MAX.
6201
6202 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6203
6204         * database.c: Suppress compiler warning under Cygwin.
6205         * database.c: Removed __FreeBSD__ check, should be handled by
6206         HAVE_U_xxx_T defines.
6207
6208 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6209
6210         * console.c (stuff_buffered_input): Compile body only if
6211         HAVE_TTY.
6212
6213 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6214
6215         * callproc.c: #include sysdir.h, so that any appropriate Mule
6216         magic happens with the chdir() call when calling a subprocess. 
6217
6218 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6219
6220         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6221         * mule-ccl.c: Check that a character set exists before using it
6222         to create a character. 
6223
6224 2005-12-06  Vin Shelton  <acs@xemacs.org>
6225
6226         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6227         to INT_MAX.
6228
6229 2005-12-03  Vin Shelton <acs@xemacs.org>
6230
6231         * XEmacs 21.4.18 is released
6232
6233 2005-11-27  Kean Johnston <kean@armory.com>
6234
6235         * redisplay-tty.c (set_tty_modes):
6236         (reset_tty_modes): disable auto-margins if the terminal supports
6237         them.
6238         (init_tty_for_redisplay): fix cursor shape.
6239
6240 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6241
6242         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6243         for control-1 characters properly, both when reading multibyte
6244         characters and writing them. 
6245
6246 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6247
6248         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6249         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6250         were seeing with incremental selection transfer failing. 
6251
6252 2005-11-26  Vin Shelton  <acs@xemacs.org>
6253
6254         * callproc.c (Fold_call_process_internal): Create the buffer if it
6255         does not already exist.  The original patch came from Ben Wing in
6256         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6257
6258 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6259
6260         * callproc.c: Process-related docstring improvements spurred by
6261         Norbert Koch.
6262
6263 2005-11-25  Vin Shelton  <acs@xemacs.org>
6264
6265         * depend: Regenerated.
6266
6267 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6268
6269         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6270         says it clashes with a global with the same name.
6271
6272 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6273
6274         * sysdll.c (dll_open): Under MacOS X return NULL under the
6275         filename is NULL.  Fixes problems finding local symbols under 10.4
6276         (Tiger)
6277
6278 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6279         
6280         * config.h.in: New HAVE_U_INT*_T defines.
6281         
6282         * database.c: Only use u_int*_t typedefs if not already
6283         defined.
6284
6285 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6286
6287         * src/process-unix.c (unix_open_network_stream): moved
6288           'portbuf' buffer out of an inner block as it is used in the
6289           entire function. With gcc4, the stack may get corrupted
6290           after leaving this block. This patches adjusts the size of
6291           the used buffer also; static '128' bytes are far too much
6292           currently and might not suffice for future architectures
6293           (e.g. for 512 bit ones ;)). Instead of, use only the really
6294           required space (max octets * ln(256)/ln(10) chars + space
6295           for '\0' and the sign)
6296
6297 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6298
6299         * callproc.c: Include sysdir.h, so any necessary Mule processing
6300         is done on the current directory name before starting a new
6301         process.
6302
6303 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6304
6305         * chartab.c (Fchar_table_p):
6306         (Fget_range_char_table):
6307         (Fput_char_table):
6308         (Fmap_char_table):
6309         Describe range representation and fix typo.
6310
6311 2005-02-12  Vin Shelton  <acs@xemacs.org>
6312
6313         * emacs.c (shut_down_emacs): Advise users to send email to the
6314         xemacs-beta list instead of crashes@xemacs.org.
6315
6316 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6317
6318         * process-unix.c (unix_send_process): Flush the last chunk, even
6319         when the pipe is blocked.
6320
6321 2005-02-06  Vin Shelton <acs@xemacs.org>
6322
6323         * XEmacs 21.4.17 is released
6324
6325 2005-01-31  Ben Wing  <ben@xemacs.org>
6326
6327         * emacs.c:
6328         Define assert_failed() always.
6329         * lisp.h:
6330         Always define ABORT().
6331
6332 2005-01-25  Ben Wing  <ben@xemacs.org>
6333
6334         * Makefile.in.in:
6335         * Makefile.in.in (%.o):
6336         Don't compile executable as Windows (-mwindows) under Cygwin.
6337         Semi-recent changes to Cygwin's executable-startup handling make
6338         it impossible to access the TTY this way.
6339
6340         Don't use special linker file under Cygwin (cygwin.sc) except
6341         when non-PDUMP (even in this case it is highly questionable); you
6342         get errors like
6343
6344       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6345    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6346
6347 2005-01-29  Ben Wing  <ben@xemacs.org>
6348
6349         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6350
6351         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6352
6353 2005-01-29  Ben Wing  <ben@xemacs.org>
6354
6355         * bytecode.c (optimize_compiled_function):
6356         * print.c (FROB):
6357         * print.c (long_to_string):
6358         Add casts to avoid warning.
6359         
6360         * glyphs-eimage.c:
6361         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6362         #### The better solution is to move the TIFF and JPEG code to
6363         different files.
6364         
6365         * glyphs-msw.c (mswindows_xbm_instantiate):
6366         Define __STDC__ to avoid problems with compface.h.
6367         
6368         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6369         * EmacsShell-sub.c:
6370         * EmacsShell-sub.c (ABORT):
6371         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6372         * EmacsShell-sub.c (RootGeometryManager):
6373         * EmacsShell.c:
6374         * EmacsShell.c (ABORT):
6375         * EmacsShell.c (EmacsShellUpdateSizeHints):
6376         * alloc.c (free_lcrecord):
6377         * alloca.c (i00afunc):
6378         * buffer.c (delete_from_buffer_alist):
6379         * buffer.c (MARKED_SLOT):
6380         * bytecode.c (execute_rare_opcode):
6381         * bytecode.c (optimize_byte_code):
6382         * bytecode.c (Ffetch_bytecode):
6383         * chartab.c (char_table_type_to_symbol):
6384         * chartab.c (Freset_char_table):
6385         * chartab.c (decode_char_table_range):
6386         * chartab.c (Fget_range_char_table):
6387         * chartab.c (check_valid_char_table_value):
6388         * chartab.c (map_char_table):
6389         * chartab.c (slow_map_char_table_fun):
6390         * chartab.c (chartab_instantiate):
6391         * cm.c (cmcheckmagic):
6392         * console-msw.c (DHEADER):
6393         * console.c (MARKED_SLOT):
6394         * data.c (finish_marking_weak_lists):
6395         * data.c (encode_weak_list_type):
6396         * debug.h (DASSERT):
6397         * device-gtk.c (gtk_init_device):
6398         * device-msw.c (mswindows_get_default_margin):
6399         * device-tty.c (tty_init_device):
6400         * device-x.c (get_device_from_display):
6401         * device-x.c (x_get_visual_depth):
6402         * doprnt.c (parse_doprnt_spec):
6403         * doprnt.c (get_doprnt_args):
6404         * dumper.c (pdump_get_indirect_count):
6405         * dumper.c (pdump_register_sub):
6406         * dumper.c (pdump_register_object):
6407         * dumper.c (pdump_register_struct):
6408         * dumper.c (pdump_dump_data):
6409         * dumper.c (pdump_reloc_one):
6410         * elhash.c (print_hash_table):
6411         * elhash.c (make_standard_lisp_hash_table):
6412         * elhash.c (hash_table_instantiate):
6413         * emacs.c:
6414         * emacs.c (Fforce_debugging_signal):
6415         * emacs.c (sort_args):
6416         * emacs.c (main):
6417         * emacs.c (assert_failed):
6418         * eval.c (throw_or_bomb_out):
6419         * eval.c (signal_1):
6420         * eval.c (Fsignal):
6421         * event-Xt.c:
6422         * event-Xt.c (emacs_Xt_mapping_action):
6423         * event-Xt.c (Xt_process_to_emacs_event):
6424         * event-msw.c:
6425         * event-stream.c (check_event_stream_ok):
6426         * event-stream.c (Fadd_timeout):
6427         * event-stream.c (Fadd_async_timeout):
6428         * event-stream.c (Fdiscard_input):
6429         * event-stream.c (execute_internal_event):
6430         * event-stream.c (Frecent_keys):
6431         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6432         * event-stream.c (lookup_command_event):
6433         * event-unixoid.c (poll_fds_for_input):
6434         * events.c:
6435         * events.c (mark_event):
6436         * events.c (event_equal):
6437         * events.c (event_hash):
6438         * events.c (Fmake_event):
6439         * events.c (Fdeallocate_event):
6440         * events.c (event_chain_find_previous):
6441         * events.c (event_to_character):
6442         * events.c (format_event_object):
6443         * events.c (Fevent_type):
6444         * events.c (event_pixel_translation):
6445         * events.c (Fevent_properties):
6446         * extents.c (extent_in_region_p):
6447         * extents.c (print_extent):
6448         * extents.c (process_extents_for_insertion_mapper):
6449         * extents.c (report_extent_modification_mapper):
6450         * extents.c (glyph_layout_to_symbol):
6451         * faces.c (face_validate):
6452         * file-coding.c (eol_type_to_symbol):
6453         * file-coding.c (subsidiary_coding_system):
6454         * file-coding.c (Fcoding_system_type):
6455         * file-coding.c (Fcoding_system_property):
6456         * file-coding.c (mule_decode):
6457         * file-coding.c (mule_encode):
6458         * file-coding.c (encode_coding_ucs4):
6459         * file-coding.c (encode_coding_utf8):
6460         * file-coding.c (parse_iso2022_esc):
6461         * file-coding.c (encode_coding_iso2022):
6462         * fileio.c:
6463         * fns.c (concat):
6464         * fns.c (Fsubseq):
6465         * fns.c (mapcar1):
6466         * fns.c (Fbase64_encode_region):
6467         * fns.c (Fbase64_encode_string):
6468         * fns.c (Fbase64_decode_region):
6469         * fns.c (Fbase64_decode_string):
6470         * font-lock.c (find_context):
6471         * font-lock.c (context_to_symbol):
6472         * frame-gtk.c (gtk_set_frame_pointer):
6473         * frame-gtk.c (gtk_update_frame_external_traits):
6474         * frame-x.c (x_wm_mark_shell_size_user_specified):
6475         * frame-x.c (x_wm_mark_shell_position_user_specified):
6476         * frame-x.c (x_wm_set_shell_iconic_p):
6477         * frame-x.c (x_wm_set_cell_size):
6478         * frame-x.c (x_wm_set_variable_size):
6479         * frame-x.c (x_wm_store_class_hints):
6480         * frame-x.c (x_wm_maybe_store_wm_command):
6481         * frame-x.c (x_initialize_frame_size):
6482         * frame-x.c (x_update_frame_external_traits):
6483         * frame.c:
6484         * frame.c (delete_frame_internal):
6485         * frame.c (mouse_pixel_position_1):
6486         * frame.c (change_frame_size_1):
6487         * free-hook.c (check_free):
6488         * free-hook.c (check_realloc):
6489         * free-hook.c (note_block_input):
6490         * free-hook.c (log_gcpro):
6491         * gccache-gtk.c (gc_cache_lookup):
6492         * glyphs-eimage.c (tiff_memory_write):
6493         * glyphs-gtk.c (gtk_finalize_image_instance):
6494         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6495         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6496         * glyphs-gtk.c (gtk_xpm_instantiate):
6497         * glyphs-gtk.c (gtk_unmap_subwindow):
6498         * glyphs-gtk.c (gtk_map_subwindow):
6499         * glyphs-gtk.c (gtk_button_redisplay):
6500         * glyphs-msw.c:
6501         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6502         * glyphs-x.c (init_image_instance_from_xbm_inline):
6503         * glyphs-x.c (extract_xpm_color_names):
6504         * glyphs-x.c (x_xpm_instantiate):
6505         * glyphs.c (get_image_instantiator_governing_domain):
6506         * glyphs.c (print_image_instance):
6507         * glyphs.c (image_instance_equal):
6508         * glyphs.c (image_instance_hash):
6509         * glyphs.c (encode_image_instance_type):
6510         * glyphs.c (make_image_instance_1):
6511         * glyphs.c (inherit_instantiate):
6512         * glyphs.c (image_instantiate):
6513         * glyphs.c (allocate_glyph):
6514         * glyphs.c (Fglyph_type):
6515         * glyphs.c (redisplay_subwindow):
6516         * glyphs.c (display_table_entry):
6517         * gtk-glue.c (xemacs_list_to_gtklist):
6518         * gtk-glue.c (xemacs_gtklist_to_list):
6519         * gtk-glue.c (xemacs_list_to_array):
6520         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6521         * gutter.c (gutter_was_visible):
6522         * gutter.c (get_gutter_coords):
6523         * input-method-xlib.c (get_XIM_input):
6524         * insdel.c (bufpos_to_bytind_func):
6525         * insdel.c (bytind_to_bufpos_func):
6526         * insdel.c (move_gap):
6527         * intl.c (x_get_composed_input):
6528         * keymap.c (keymap_lookup_directly):
6529         * keymap.c (keymap_delete_inverse_internal):
6530         * keymap.c (ensure_meta_prefix_char_keymapp):
6531         * keymap.c (accessible_keymaps_mapper_1):
6532         * keymap.c (where_is_recursive_mapper):
6533         * lisp.h:
6534         * lisp.h (ABORT):
6535         * lread.c (read_atom):
6536         * lstream.c (Lstream_delete):
6537         * lstream.c (make_lisp_buffer_stream_1):
6538         * macros.c (pop_kbd_macro_event):
6539         * malloc.c (malloc):
6540         * malloc.c (free):
6541         * marker.c (bi_marker_position):
6542         * marker.c (set_bi_marker_position):
6543         * menubar-gtk.c (menu_descriptor_to_widget_1):
6544         * menubar-msw.c (prune_menubar):
6545         * menubar-x.c (set_frame_menubar):
6546         * mule-charset.c (get_unallocated_leading_byte):
6547         * mule-charset.h (CHAR_LEADING_BYTE):
6548         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6549         * nt.c (init_environment):
6550         * nt.c (generate_inode_val):
6551         * ntproc.c (delete_child):
6552         * ntproc.c (_sys_read_ahead):
6553         * ntproc.c (create_child):
6554         * objects.c (color_instantiate):
6555         * objects.c (font_instantiate):
6556         * objects.c (face_boolean_instantiate):
6557         * print.c (printing_major_badness):
6558         * process-nt.c (nt_send_process):
6559         * process-unix.c (unix_send_process):
6560         * process.c (get_process):
6561         * ralloc.c (obtain):
6562         * ralloc.c (relinquish):
6563         * ralloc.c (relocate_blocs):
6564         * ralloc.c (resize_bloc):
6565         * ralloc.c (r_alloc_free):
6566         * ralloc.c (r_re_alloc):
6567         * ralloc.c (r_alloc_thaw):
6568         * ralloc.c (init_ralloc):
6569         * ralloc.c (Free_Addr_Block):
6570         * ralloc.c (r_alloc):
6571         * redisplay-gtk.c (gtk_output_display_block):
6572         * redisplay-msw.c (mswindows_output_display_block):
6573         * redisplay-output.c (get_next_display_block):
6574         * redisplay-output.c (get_cursor_size_and_location):
6575         * redisplay-output.c (redisplay_output_layout):
6576         * redisplay-output.c (redisplay_clear_region):
6577         * redisplay-tty.c (tty_output_display_block):
6578         * redisplay-x.c (x_output_display_block):
6579         * redisplay.c (add_propagation_runes):
6580         * redisplay.c (add_glyph_rune):
6581         * redisplay.c (create_text_block):
6582         * redisplay.c (add_margin_runes):
6583         * redisplay.c (create_left_glyph_block):
6584         * redisplay.c (create_right_glyph_block):
6585         * redisplay.c (create_string_text_block):
6586         * redisplay.c (regenerate_window):
6587         * redisplay.c (REGEN_INC_FIND_START_END):
6588         * redisplay.c (redisplay_frame):
6589         * redisplay.c (point_in_line_start_cache):
6590         * regex.c:
6591         * regex.c (ABORT):
6592         * regex.c (re_compile_fastmap):
6593         * regex.c (re_match_2_internal):
6594         * regex.c (regerror):
6595         * scrollbar-gtk.c (gtk_scrollbar_loop):
6596         * scrollbar-gtk.c (scrollbar_cb):
6597         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6598         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6599         * scrollbar-x.c (x_update_scrollbar_instance_status):
6600         * scrollbar-x.c (x_scrollbar_loop):
6601         * scrollbar-x.c (x_update_frame_scrollbars):
6602         * search.c (search_command):
6603         * search.c (Fmatch_data):
6604         * select-x.c (motif_clipboard_cb):
6605         * signal.c (interrupt_signal):
6606         * specifier.c (specifier_add_spec):
6607         * specifier.c (specifier_instance_from_inst_list):
6608         * specifier.c (specifier_instance):
6609         * specifier.h:
6610         * specifier.h (struct specifier_methods):
6611         * strftime.c (add_num_time_t):
6612         * sunplay.c (init_device):
6613         * symbols.c (Fsetplist):
6614         * symbols.c (do_symval_forwarding):
6615         * symbols.c (store_symval_forwarding):
6616         * symbols.c (Fset):
6617         * symbols.c (Fbuilt_in_variable_type):
6618         * symbols.c (decode_magic_handler_type):
6619         * symbols.c (handler_type_from_function_symbol):
6620         * syntax.c (update_syntax_cache):
6621         * sysdep.c (init_baud_rate):
6622         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6623         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6624         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6625         * toolbar.c (get_toolbar_coords):
6626         * ui-gtk.c (build_gtk_boxed):
6627         * ui-gtk.c (describe_gtk_arg):
6628         * ui-gtk.c (gtk_type_to_lisp):
6629         * ui-gtk.c (lisp_to_gtk_type):
6630         * ui-gtk.c (lisp_to_gtk_ret_type):
6631         * ui-gtk.c (lisp_to_flag):
6632         * unexnt.c (read_in_bss):
6633         * unexnt.c (map_in_heap):
6634         * window.c (real_window):
6635         * window.c (window_display_lines):
6636         * window.c (window_display_buffer):
6637         * window.c (set_window_display_buffer):
6638         * window.c (window_modeline_height):
6639         * window.c (unshow_buffer):
6640         * window.c (window_loop):
6641         * window.c (Fget_lru_window):
6642         * window.c (Fsplit_window):
6643         * window.c (Fset_window_configuration):
6644         * window.c (saved_window_index):
6645         * xgccache.c (gc_cache_lookup):
6646         abort() -> ABORT().  Eliminate preprocessor games with abort()
6647         since it creates huge problems in VC7, solvable only by including
6648         massive amounts of files in every compile (and not worth it).
6649
6650         * sysdep.c:
6651         * sysproc.h:
6652         Inclusion of process.h does not need to be before lisp.h any more.
6653         Move later and remove comment about abort().
6654
6655 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6656
6657         * regex.c (re_match_2_internal):
6658         Correctly initialize loop which clears uninitialized registers.
6659
6660 2005-01-28  Vin Shelton  <acs@xemacs.org>
6661
6662         * sheap.c (more_static_core): Applied Ben's version of the long
6663         string patch.
6664
6665 2005-01-24  Vin Shelton  <acs@xemacs.org>
6666
6667         * sheap.c (more_static_core): Reformatted printf string so
6668         gcc-3.3.3 will compile this on Cygwin.
6669
6670 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6671
6672         * console.c (function_key_map): Reference `key-binding'.
6673
6674         * keymap.c (Vkey_translation_map): Improve docstring.
6675
6676 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6677
6678         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6679         * window.c (window_loop): [fix] Take into account
6680         `allow-deletion-of-last-visible-frame' variable.
6681         * window.c (replace-buffer-in-windows): Ditto.
6682
6683 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6684
6685         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6686
6687 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6688
6689         * event-gtk.c: Recognise AltGr as a valid modifier.
6690
6691 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6692
6693         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6694
6695 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6696
6697         Fix backreference bug caught by test suite.
6698
6699         * regex.c (regex_compile):
6700         Make backref duplicate internal register.
6701
6702 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6703
6704         Documentation, code clarification, and warning suppression.
6705         
6706         * regex.c (regex_compile):
6707         Improve comments.
6708         (re_match_2_internal):
6709         Improve comments and avoid redundant braces.  [Most of the big hunk
6710         at l. 4710 is indentation; use diff -w to see the real changes.]
6711         (alt_match_null_string_p):
6712         (common_op_match_null_string_p):
6713         Avoid shadowing global on Mac OS X 10.4, at least.
6714
6715 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6716
6717         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6718         introduced with shy groups fix).  [Already applied, probably
6719         with the second "fix shy groups" patch of 2004-10-07.] 
6720
6721 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6722
6723         From Andrey Slusar <anrays@gmail.com>:
6724
6725         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6726
6727 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6728
6729         * Makefile (RECURSIVE_MAKE): Removed.
6730         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6731         handling parallel builds.
6732
6733 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6734
6735         * Makefile.in.in: Enable support for parallel builds.
6736
6737 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6738
6739         From Andrey Slusar <anrays@gmail.com>:
6740
6741         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6742         FreeBSD version is >= 199701 _and_ < 600006.
6743
6744 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6745
6746         * scrollbar.c (compute_scrollbar_instance_usage):
6747         Only call device method compute_scrollbar_instance_usage() if it
6748         is defined.
6749
6750 2004-12-05  Vin Shelton <acs@xemacs.org>
6751
6752         * XEmacs 21.4.16 is released
6753
6754 2004-12-04  Vin Shelton  <acs@xemacs.org>
6755
6756         * depend: Regenerated.
6757
6758 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6759
6760         * regex.c (re_match_2_internal): Map internal to external
6761         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6762         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6763
6764 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6765
6766         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6767         to fix a crash.  Also, check the buffer is live and it
6768         really exists in buffer_list.  If the buffer is not in the list,
6769         prepend it.
6770
6771 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6772
6773         Fix shy groups by implementing recording of all groups for
6774         repetition and backtracking.  Backport from 21.5.
6775         
6776         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6777         external_to_internal_register, external_to_internal_register_size,
6778         and update comments for re_nsub.
6779
6780         * regex.c (re_opcode_t): Update comments.
6781         (print_compiled_pattern): Ouput external_to_internal_register,
6782         external_to_internal_register_size, and re_ngroups for debugging.
6783         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6784         (regex_compile): Update header comment.
6785         Ensure that all groups are recorded so that repeat matches and
6786         backtracking work correctly.  Comment related warning for groups >
6787         255.
6788         (re_search_2): Construct map of API indexes (which count only
6789         nonshy groups) to internal register numbers, and keep it updated.
6790
6791 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6792
6793         * frame-gtk.c (gtk_make_frame_visible):
6794         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6795         show/hide.  This is what X uses and is prevents previously hidden
6796         widgets from suddenly reappearing.
6797         * gtk-xemacs.c (gtk_xemacs_paint):
6798         * gtk-xemacs.c (gtk_xemacs_draw):
6799         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6800         drawable.
6801         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6802         size and location changes so that they can be seen before the next
6803         idle event.  Without this rapid changes to scrollbar properties
6804         are not seen.
6805
6806 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6807
6808         * console-gtk.h:
6809         * console-gtk.h (struct gtk_frame):
6810         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6811           Add hash tables track tab_control callback data.
6812           Added #defines for GTK object data names.
6813           Declaration of gtk_widget_to_frame().
6814         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6815         * frame-gtk.c (gtk_widget_to_frame): New.
6816         * frame-gtk.c (gtk_create_widgets):
6817         * frame-gtk.c (allocate_gtk_frame_struct):
6818         * frame-gtk.c (gtk_mark_frame):
6819         Manage frame callbakc hash tables.
6820         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6821         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6822         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6823         of widget size.
6824         * glyphs-gtk.c (gtk_widget_query_geometry): New
6825         * glyphs-gtk.c (gtk_register_gui_item): New
6826         * glyphs-gtk.c (gtk_add_tab_item): New
6827         * glyphs-gtk.c (gtk_tab_control_callback): New
6828         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6829         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6830         Use correct list when loading item.
6831         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6832         Register new methods.
6833         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6834         default size, for widgets.
6835         * gui-x.c:  Improved comment.
6836         * menubar-gtk.c (__generic_button_callback): Use
6837         gtk_widget_to_frame instead of __get_channel.
6838         * scrollbar-gtk.c:
6839         * ui-gtk.c: Use symbolic names for GTK object data.
6840
6841 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6842
6843         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6844
6845 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6846
6847         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6848
6849 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6850
6851         * malloc.c (morecore): siz is a long because in some architectures
6852         (eg ia-64) an int cannot hold the address range.  Additional patch
6853         from the SuSe distribution.
6854
6855 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6856
6857         * emacs.c:
6858         * malloc.c: lim_data is a long because in some architectures
6859         (eg ia-64) an int cannot hold the address range.
6860         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6861         instead of ulimit() because ulimit() always returns -1.
6862
6863 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6864
6865         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6866
6867 2004-06-11  David Kastrup  <dak@gnu.org>
6868
6869         * search.c (match_limit): Don't flag an error if match-data
6870         exceeding the allocated search_regs.num_regs gets requested, just
6871         return Qnil.
6872
6873 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6874
6875         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6876         replace symbolic color entries with the real colors specified in
6877         xpm-color-symbols, before passing the XPM to gtk.
6878         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6879         instead of a GTK specific field, so that it is used in by generic
6880         code.
6881
6882 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6883
6884        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6885         coredump from deref of NULL ptr (ExtData)
6886
6887 2004-04-19  Jerry James  <james@xemacs.org>
6888
6889         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6890         VALBITS to compute the location of the sign bit.
6891         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6892         of VALBITS with EMACS_INT_MAX.
6893         * events.c (Fevent_timestamp): Ditto.
6894         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6895         compute the halfway point to timestamp wraparound.
6896         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6897         EMACS_INT_MIN instead of using VALBITS.
6898         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6899         incorrect number with VALBITS.
6900         * fns.c (Frandom): Correct number of integer bits in docstring.
6901         Use INT_VALBITS instead of VALBITS to compute the denominator.
6902         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6903         build random numbers.
6904
6905 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6906         * event-gtk.c:
6907         * event-gtk.c (gtk_event_to_emacs_event):
6908         * menubar-gtk.c:
6909         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6910         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6911         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6912         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6913         * menubar-gtk.c (__activate_menu):
6914         * menubar-gtk.c (convert_underscores):
6915         * menubar-gtk.c (remove_underscores):
6916         * menubar-gtk.c (menu_convert):
6917         * menubar-gtk.c (menu_descriptor_to_widget_1):
6918         * menubar-gtk.c (menu_descriptor_to_widget):
6919         * menubar-gtk.c (menu_can_reuse_widget):
6920         * menubar-gtk.c (menu_create_menubar):
6921         * menubar-gtk.c (gtk_popup_menu):
6922         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6923         Added support for Gtk menu bar and menu item mnemonics.
6924
6925 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6926
6927         * sysdll.c: (dll_function): Added support for finding symbols in
6928         Darwin shared libraries as well in Darwin bundles.
6929         * sysdll.c (image_for_address): New
6930         * sysdll.c (my_find_image): New
6931         * sysdll.c (search_linked_libs): New
6932
6933 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6934
6935         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6936         return to GTK requires a different API to marshalling data to use
6937         as GTK parameters.
6938         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6939
6940 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6941
6942         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6943
6944 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6945
6946         * glyphs.c (process_image_string_instantiator):
6947         (Fset_console_type_image_conversion_list):
6948         Stop GCC from warning about shadowing of `exp'.
6949
6950         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6951
6952 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6953
6954         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6955
6956 2004-02-03  Vin Shelton  <acs@xemacs.org>
6957
6958         * glyphs.c (image_instance_layout): Remove pointless assertion.
6959         * regex.c (regex_grow_registers): Return type is void.
6960
6961 2004-02-02  Vin Shelton <acs@xemacs.org>
6962
6963         * XEmacs 21.4.15 is released
6964
6965 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6966
6967         * device-x.c (x_error_handler): Don't call stderr_out
6968
6969 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6970
6971         * buffer.c (other-buffer): Clarify documentation of order of
6972         arguments for FSF Emacs.
6973
6974 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6975
6976         * window.c (Fdelete_window): Dirty the mirror structure _before_
6977         marking the window deleted.
6978
6979 2003-09-15  Jerry James  <james@xemacs.org>
6980
6981         * event-msw.c (debug_mswin_messages): Conditionally compile
6982         messages missing from the Cygwin headers.
6983
6984 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6985
6986         * data.c (eq_with_ebola_notice): Fix typo in comment.
6987         (Ftrue_list_p): Improve docstring.
6988
6989 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6990
6991         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6992
6993 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6994
6995         * search.c (trivial_regexp_p): Regexps containing "\{" are
6996         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6997         Stefan Monnier for suggesting a diagnosis.
6998
6999 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
7000
7001         * elhash.c (make-hash-table): Clarify use of :test #'equal.
7002
7003 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
7004
7005         * search.c (Fsearch_forward):
7006         (Fsearch_backward):
7007         Document negative count.
7008
7009 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
7010
7011         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
7012
7013 2003-09-13  Martin Buchholz  <martin@xemacs.org>
7014
7015         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
7016
7017 2003-09-15  Vin Shelton  <acs@xemacs.org>
7018
7019         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
7020         21.5.
7021
7022 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7023
7024         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
7025         (re_search_2): Match the first byte of Bufbyte, not Emchar.
7026         (re_match_2_internal): Use TRANSLATE instead of
7027         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
7028         non-ASCII char case conversion.
7029
7030 2003-09-08  Mike Sperber  <mike@xemacs.org>
7031
7032         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
7033         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
7034
7035 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
7036
7037        * .gdbinit (pobj): fix printing of symbol name.
7038
7039 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
7040
7041         * frame-x.c (x_layout_widgets): When resizing is about to cause
7042         frame size slip, mark it for redisplay.
7043
7044 2003-08-18  Jerry James  <james@xemacs.org>
7045
7046         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
7047
7048 2003-09-03  Vin Shelton <acs@xemacs.org>
7049
7050         * XEmacs 21.4.14 is released
7051
7052 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
7053
7054         * config.h.in (REGEX_MALLOC): Make it configure'able.
7055
7056 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
7057
7058         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
7059         linking.
7060         * sysdll.c (dll_init):
7061         * sysdll.c (dll_open):
7062         * sysdll.c (dll_close):
7063         * sysdll.c (dll_function):
7064         * sysdll.c (dll_variable):
7065         * sysdll.c (dll_error):
7066         Add support for loading bundles using Darwin/MacOSX
7067         native API.
7068
7069 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
7070
7071         * process.c (start-process-internal): Document coding systems.
7072
7073 2003-07-30  Jerry James  <james@xemacs.org>
7074
7075         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
7076
7077 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
7078
7079         * event-msw.c (mswindows_enqueue_mouse_button_event):
7080         * event-msw.c (mswindows_wnd_proc):
7081           enqueue button event when scrollwheel event isn't handled by 
7082           mswindows_handle_mousewheel_event, such as when the scrollbars
7083           are not showing.
7084
7085 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
7086
7087         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7088
7089 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
7090
7091         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7092
7093 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
7094
7095         * regex.c (re_match_2_internal): Fix matching degenerate word
7096         boundaries.
7097
7098 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7099
7100         * XEmacs 21.4.13 is released
7101
7102 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7103
7104         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7105         * lisp.h (<inttypes.h>):
7106         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7107         the definition.
7108
7109 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7110
7111         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7112         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7113         Result: "temacs can only be run in -batch mode."
7114         Fix: Check xemacs executable candidate for directory-ness.
7115
7116 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7117
7118         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7119           they conflict with <sys/types.h>.
7120
7121 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7122
7123         * database.c: Berkeley DB wants __STDC__ to be defined.
7124
7125 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7126
7127         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7128
7129 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7130
7131         * process-unix.c (unix_send_process): Fix C++ compile error.
7132
7133 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7134
7135         * Added .dylib as an acceptable shared library file extension
7136         * to support MacOSX.
7137
7138 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7139
7140         * EmacsFrameP.h (EmacsFramePart):
7141         Kludge to allow compiling with Motif1, but linking with Motif2.
7142
7143 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7144
7145         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7146
7147
7148 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7149
7150         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7151
7152 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7153
7154         * sysdll.c: Included lisp.h to define needed alloca_array.
7155
7156 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7157
7158         Make XEmacs redisplay 10 times faster.
7159         If, that is, you're using a slow X connection and MoveOpaque.
7160         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7161         Use compress_motion = TRUE.
7162         * EmacsFrame.c (emacsFrameClassRec): 
7163         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7164         * EmacsManager.c (emacsManagerClassRec):
7165         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7166
7167 2003-01-30  Vin Shelton  <acs@xemacs.org>
7168
7169         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7170
7171 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7172
7173         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7174         Patch by Martin Buchholz.
7175
7176 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7177
7178         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7179         Thanks to icc for warning and Martin Buchholz for reporting.
7180
7181 2003-01-29  Vin Shelton <acs@xemacs.org>
7182
7183         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7184
7185         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7186         remember to multiply by the element size.
7187
7188 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7189
7190         * XEmacs 21.4.12 "Portable Code" is released.
7191
7192 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7193
7194         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7195         * s/cygwin.sc: new linker file.
7196
7197 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7198
7199         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7200
7201         * redisplay-x.c (x_output_string): Use X11-specified types.
7202         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7203         * emacs.c (__free_hook): Use typeof with Intel compiler.
7204         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7205
7206 2003-01-08  Andy Piper  <andy@xemacs.org>
7207
7208         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7209         reserve size during unexec().
7210
7211 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7212
7213         * process-unix.c (unix_create_process): Don't let outchannel block.
7214
7215 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7216
7217         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7218         Needed for IsBadReadPtr().
7219
7220 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7221
7222         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7223
7224 2002-12-14  Ben Wing  <ben@xemacs.org>
7225
7226         * callint.c: Declaration error.
7227         * dumper.c (pdump):
7228         * dumper.c (pdump_load): Warning fix.
7229         * process.c: GCPRO error.
7230         * glyphs.c (unmap_subwindow):
7231         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7232         * event-stream.c (maybe_kbd_translate): Wrong argument to
7233         character_to_event().
7234
7235         * alloc.c (garbage_collect_1):
7236         * emacs.c:
7237         * emacs.c (debug_can_access_memory):
7238         * emacs.c (fatal_error_signal):
7239         * emacs.c (mswindows_handle_hardware_exceptions):
7240         * emacs.c (main_1):
7241         * emacs.c (main):
7242         * emacs.c (assert_failed):
7243         * emacs.c (syms_of_emacs):
7244         * lisp.h:
7245         * print.c:
7246         * print.c (std_handle_out_va):
7247         * print.c (write_string_to_stdio_stream):
7248         * print.c (write_fmt_string):
7249         * print.c (printing_badness):
7250         * print.c (printing_major_badness):
7251         * print.c (print_internal):
7252         * print.c (debug_print_no_newline):
7253         * print.c (debug_backtrace):
7254         Be more defensive in handling bad values when printing.  Add code
7255         from trunk involving inhibit_non_essential_printing_operations.
7256         When going down or in debug_print(), don't do external conversion
7257         and such and try really, really hard when printing to avoid core
7258         dumping.  Add force-debugging-signal, debug_break().
7259
7260 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7261
7262         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7263         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7264
7265 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7266
7267         * database.c: Fix open_database. Berkeley DB API has changed in
7268         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7269
7270 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7271
7272         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7273
7274 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7275
7276         * event-Xt.c (Xt_timeout):
7277         (Xt_timeout_callback):
7278         (emacs_Xt_add_timeout):
7279         (emacs_Xt_remove_timeout):
7280         (Xt_timeout_to_emacs_event):
7281         Turn completed_timeouts from a stack into a queue.  Fixes
7282         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7283
7284 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7285
7286         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7287         * emacs.c (main): Assert that mmap'd allocation is disabled.
7288
7289 2002-10-14  Andy Piper  <andy@xemacs.org>
7290
7291         * glyphs-widget.c (layout_query_geometry): add in fiddle
7292         factor. Include border text in width layout calculation.
7293         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7294
7295 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7296
7297         * XEmacs 21.4.10 "Military Intelligence" is released.
7298
7299 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7300
7301         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7302         using the NAS private array SoundFileInfo that no longer exists in
7303         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7304         and earlier.  This is broken for some versions between 1.5a and
7305         1.5f.
7306
7307 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7308
7309         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7310
7311         * emacs.c (shut_down_emacs): Improve crash message.
7312
7313 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7314
7315         * file-coding.c (determine_real_coding_system): Check for coding
7316         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7317         shebangs and Python PEP 263.
7318
7319 2002-10-08  Andy Piper  <andy@xemacs.org>
7320
7321         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7322         if static sizes haven't been set.
7323
7324 2002-08-30  Mike Alexander  <mta@arbortext.com>
7325
7326         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7327         to close a socket.
7328
7329 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7330
7331         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7332
7333 2002-09-20  Mike Sperber <mike@xemacs.org>
7334
7335         (This partially gets back my patch from 2002-07-20 without the
7336         bug.)
7337         * callproc.c (child_setup): Remove Ben's comment noting confusion
7338         over the file descriptors >= 3: close_process_descs() doesn't
7339         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7340         * process-unix.c (unix_create_process): Call
7341         begin_dont_check_for_quit to inhibit unwanted interaction (and
7342         thus breaking of X event synchronicity) in the child.
7343
7344 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7345
7346         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7347         widget.
7348
7349 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7350
7351         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7352         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7353         the xemacs process did not exit, but looped infinitely here.  This
7354         fixes that problem.
7355
7356 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7357
7358         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7359         (find_context): Improve comments.
7360
7361         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7362         (re_match_2): An XCHAR_TABLE operation was missing.
7363
7364         Many of the following changes were inspired by Andy Piper's (now
7365         obsolete) patch to make syntax-table text property lookup optional.
7366
7367         [Documentation]
7368
7369         * syntax.h (top level): Document semantics of syntax flags.
7370         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7371         * syntax.c, syntax.h (top level): Document syntax cache better in
7372         comments.
7373
7374         [Instrument syntax caching (temporary change)]
7375
7376         * syntax.h (enum syntax_cache_statistics_functions, struct
7377         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7378         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7379         * syntax.c (scan_words, Fforward_comment, scan_lists,
7380         Fbackward_prefix_characters):
7381         * font-lock.c (find_context):
7382         Use them to instrument syntax caching. 
7383         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7384         syntax_cache_statistics_function_names): New type and variables.
7385         * syntax.c (update_syntax_cache): Update and report statistics.
7386
7387         [Major syntax cache optimizations]
7388
7389         syntax.c (lookup_syntax_properties): Default off.
7390
7391         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7392         * syntax.c (update_syntax_cache):
7393         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7394
7395         [Minor syntax cache optimizations and code clarifications]
7396
7397         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7398         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7399         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7400         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7401         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7402         (Code clarification.)
7403
7404         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7405         scan_lists): Compute code from syncode, use Boolean macros instead
7406         of redundant masking operations.  (Code clarification; any decent
7407         compiler can do this optimization.)
7408
7409         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7410         for clarity.
7411
7412         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7413         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7414         use F*_single_property_change instead of F*_extent_change.
7415         Currently F*_single_property_change is _much_ less efficient.
7416
7417         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7418         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7419         syntax_cache.object properly, don't leave Qt or Qnil.
7420         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7421         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7422         tests for Qt or Qnil.
7423
7424 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7425
7426         * redisplay.c (point_in_line_start_cache): 
7427         * extents.c (print_extent_1):
7428         Fix warnings.
7429
7430         * extents.c (Fset_extent_property): Document `syntax-table' property.
7431
7432         * extents.h (Fnext_single_property_change): EXFUN it.
7433
7434 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7435
7436         * search.c (clear_unused_search_regs): New static function.
7437         (search_buffer): 
7438         (simple_search): 
7439         (boyer_moore):
7440         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7441         Minor clarifications in comments.
7442
7443         * regex.c (re_match_2_internal): Ensure no stale submatches.
7444
7445 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7446
7447         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7448
7449 2002-08-29  Jerry James  <james@xemacs.org>
7450
7451         * lisp.h: structrures -> structures.
7452
7453 2002-06-03  Andy Piper  <andy@xemacs.org>
7454
7455         * frame.c (frame_conversion_internal): add conversion appropriate
7456         for setting frame dimensions in pixels.
7457
7458         * console.h (struct console_methods): add device-specific widget
7459         layout functions.
7460
7461         * emacs.c (main_1): initialize glyph vars.
7462
7463         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7464         (handle_focus_event_2): new function. Allow focus to
7465         be set to a particular window and widget.
7466         (enqueue_focus_event): new function. Create a
7467         synthetic focus event.
7468         (emacs_Xt_handle_magic_event): call
7469         handle_focus_event_2.
7470
7471         * frame.c (Fset_frame_pixel_height): new function. Allow
7472         pixel-based sizing. Does the right thing on character-oriented
7473         displays.
7474         (Fset_frame_pixel_width): ditto.
7475         (Fset_frame_pixel_size): ditto.
7476         (syms_of_frame): declare.
7477
7478         * general-slots.h: add :vertically-justify and
7479         :horizontally-justify.
7480
7481         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7482         (mswindows_widget_border_width): new function.
7483         (mswindows_combo_box_instantiate): set border widths.
7484         (console_type_create_glyphs_mswindows): declare.
7485
7486         * glyphs-widget.c:
7487         (check_valid_justification): allow vertical and horizontal
7488         justification.
7489         (widget_border_width): new function. Call device methods.
7490         (widget_instance_border_width): ditto.
7491         (logical_unit_height): new function. Determine the height of a
7492         logical-unit. Logical units are intended to provide grid-like
7493         layout for subcontrols in a layout. If the layout is
7494         :vertically-justify top then subcontrols will be positioned on
7495         logical-unit boundaries, thus allowing adjacent subcontrols to
7496         line up.
7497         (widget_logical_unit_height): ditto for widgets.
7498         (redisplay_widget): misc cleanup.
7499         (widget_spacing): new function. Call device specific
7500         methods. Intended to be the default gap between adjacent widgets.
7501         (widget_query_geometry): use new spacing functions to determine
7502         appropriate geometry.
7503         (initialize_widget_image_instance): initialize horizontal and
7504         vertical justification.
7505         (widget_instantiate): use logica-units where appropriate for
7506         sizing large widgets.
7507         (button_query_geometry): use widget_instance_border_width.
7508         (tree_view_query_geometry): ditto.
7509         (tab_control_query_geometry): ditto.
7510         (edit_field_query_geometry): new function.
7511         (layout_update): pick up :justify, :horizontally-justify and
7512         :vertically-justify none of which worked previously. :justify is
7513         used as a fallback for both horizontal and vertical justification.
7514         (layout_query_geometry): use logical units to size appropriately.
7515         (layout_layout): ditto.
7516         (Fwidget_logical_to_character_width): new function. Allow users to
7517         convert from logical units to characters so that frame sizes can
7518         be set appropriately.
7519         (Fwidget_logical_to_character_height): ditto.
7520         (syms_of_glyphs_widget): declare.
7521         (image_instantiator_edit_fields): add edit_field_query_geometry.
7522         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7523         :horizontally-justify.
7524         (specifier_vars_of_glyphs_widget): new function. Declare
7525         Vwidget_border_width which is not yet used.
7526
7527         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7528         (x_widget_border_width): new function.
7529         (x_widget_instantiate): create a sensible name for widgets.
7530         (console_type_create_glyphs_x): declare x_widget_border_width.
7531
7532         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7533         (struct Lisp_Image_Instance): add :vertically-justify and
7534         :horizontally-justify.
7535         (LAYOUT_JUSTIFY_TOP): new.
7536         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7537         (ROUND_UP): new macro. Round argument up to next integral
7538         interval.
7539
7540         * redisplay-output.c (redisplay_output_layout): misc formatting.
7541
7542         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7543
7544 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7545
7546         * XEmacs 21.4.9 "Informed Management" is released.
7547
7548 2002-08-19  Andy Piper  <andy@xemacs.org>
7549
7550         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7551         win32 format.
7552
7553         * realpath.c (xrealpath): normalize drive spec also so that dir
7554         sep chars are not mixed on cygwin.
7555
7556 2002-08-06  Jerry James  <james@xemacs.org>
7557
7558         * window.c (Fsplit_window): Count only half of the divider width
7559         against the left window when splitting horizontally. 
7560
7561 2002-06-24  Andy Piper  <andy@xemacs.org>
7562
7563         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7564         toolbar was cleared.
7565
7566         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7567         function. Split out from mswindows_output_frame_toolbars.
7568         (mswindows_output_frame_toolbars): move clear pieces to
7569         mswindows_output_frame_toolbars.
7570
7571         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7572         out from gtk_output_frame_toolbars.
7573         (gtk_output_frame_toolbars): move clear pieces to
7574         gtk_clear_frame_toolbars.
7575
7576         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7577         the frame is cleared. How this ever worked before is a mystery.
7578         (x_output_frame_toolbars): Only output toolbars.
7579         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7580
7581         * gutter.c (update_gutter_geometry):
7582         Mark frame layout changed.
7583         (update_frame_gutter_geometry, update_frame_gutters):
7584         Respect frame_layout_changed.
7585
7586         * console.h (struct console_methods): add
7587         clear_frame_toolbars_method.
7588
7589         * redisplay.c (redisplay_frame): call
7590         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7591
7592         * toolbar.h: declare update_frame_toolbars_geometry.
7593
7594         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7595         out from update_frame_toolbars.  Call clear_frame_toolbars.
7596         (update_frame_toolbars): only output, do not change geometry.
7597
7598         * redisplay.c: add frame_layout_changed.
7599
7600         * redisplay.h: add frame_layout_changed.
7601         (CLASS_RESET_CHANGED_FLAGS): set it.
7602         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7603         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7604         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7605
7606         * device.h (struct device): add frame_layout_changed.
7607         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7608
7609         * frame.h (struct frame): add frame_layout_changed.
7610         (MARK_FRAME_LAYOUT_CHANGED): new.
7611
7612 2002-06-30  Mike Alexander  <mta@arbortext.com>
7613
7614         * event-msw.c (mswindows_need_event): Don't wait for a new message
7615         if the queue is not empty.  Suggested by Paul Moore.
7616
7617 2002-06-12  Andy Piper  <andy@xemacs.org>
7618
7619         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7620         for printing on accurately.
7621
7622 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7623
7624         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7625         WM_ACTIVATE message. Make sure that the frame is visible if the
7626         window is visible. This seemss to fix the problem where XEmacs
7627         appears to freeze after switching desktops with certain virtual
7628         window managers.
7629         (debug_output_mswin_message): Added code to output message
7630         parameters for WM_WINDOWPOSCHANGED, 
7631         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7632
7633 2002-05-25  Andy Piper  <andy@xemacs.org>
7634
7635         * select-x.c (vars_of_select_x): Fix docstring of
7636         x-selection-strict-motif-ownership
7637
7638 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7639
7640         * keymap.c (get_keymap):
7641         Add comment about do_autoload GCPROs own args.
7642
7643 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7644
7645         * bytecode.c (execute_optimized_program): check_opcode ifdef
7646         ERROR_CHECK_BYTE_CODE.
7647
7648 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7649
7650         Thanks to Ben Wing and Michael Sperber.
7651
7652         * eval.c (Fcommand_execute):
7653         (Feval):
7654         (Ffuncall):
7655         (Fmacroexpand_internal):
7656         (function_argcount):
7657         callint.c (Fcall_interactively):
7658         Add comment about do_autoload GCPROs own args.
7659
7660         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7661
7662         * eval.c (Ffuncall): Extra braces to placate GCC.
7663
7664 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7665
7666         * backtrace.h (grow_specpdl):
7667         (SPECPDL_RESERVE):
7668         * EmacsFrame.c (EmacsFrameSetValues):
7669         * eval.c (grow_specpdl):
7670         * ExternalShell.c (hack_event_masks_1):
7671         * glyphs-x.c (convert_EImage_to_XImage): 
7672         (x_finalize_image_instance):
7673         * ralloc.c (page_size):
7674         (r_alloc_sbrk):
7675         * xgccache.c (gc_cache_hash):
7676         Fix unsigned comparison warnings.
7677
7678 2002-07-29  Jerry James  <james@xemacs.org>
7679
7680         * lread.c (locate_file): Any nonnegative return value indicates
7681         success if MODE is nonnegative.
7682
7683 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7684
7685         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7686         argument. 
7687
7688 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7689
7690         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7691
7692         * dumper.c (pdump_get_indirect_count):
7693         (pdump_scan_by_alignment):
7694         (pdump_dump_root_struct_ptrs):
7695         (pdump_dump_rtables):
7696         (pdump_dump_root_objects):
7697         (pdump):
7698         * nas.c (WaveOpenDataForReading):
7699         * fns.c (print_bit_vector):
7700         * font-lock.c (SINGLE_SYNTAX_STYLE):
7701         * glyphs.c (check_for_ignored_expose):
7702         (find_matching_subwindow):
7703         * glyphs-eimage.c:
7704         * imgproc.c (get_histogram):
7705         * redisplay.c (point_in_line_start_cache):
7706         * redisplay-output.c (redisplay_unmap_subwindows):
7707         * symbols.c (defsymbol_massage_name_1):
7708         (defkeyword_massage_name):
7709         (deferror_massage_name_and_message):
7710         * redisplay-x.c (x_output_string): 
7711         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7712         * frame.h (struct frame):
7713         * filelock.c (current_lock_owner):
7714         * doprnt.c (emacs_doprnt_1):
7715         * lisp.h (struct Lisp_Bit_Vector):
7716         (DO_REALLOC):
7717         Fix warnings.
7718
7719 2002-02-13  Ben Wing  <ben@xemacs.org>
7720
7721         * event-stream.c (reset_key_echo):
7722         * event-stream.c (reset_this_command_keys):
7723         * event-stream.c (execute_command_event):
7724         If console is dead as a result of C-x 5 0, then post-command stuff
7725         needs to be careful and do only non-console-specific stuff.
7726
7727 2002-07-01  Mike Sperber <mike@xemacs.org>
7728
7729         * process-unix.c (unix_send_process): Mark coding_outstream as
7730         non-open upon SIGPIPE.
7731
7732         * event-stream.c (Fnext_event): Reorder switch cases to something
7733         that makes sense.
7734
7735 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7736
7737         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7738         Don't bogusly reinitialize ascii_character property.
7739
7740 2002-07-08  Mike Sperber <mike@xemacs.org>
7741
7742         * process.c (Fstart_process_internal): Do error checking before we
7743         fork off the child, so the child can't muck with the state of the
7744         parent.
7745
7746 2002-07-08  Mike Sperber <mike@xemacs.org>
7747
7748         * ralloc.c (init_ralloc): Allocate properly for pdump.
7749
7750 2002-06-12  Andy Piper  <andy@xemacs.org>
7751
7752         * glyphs.c (query_string_geometry): check the string.
7753
7754         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7755         widget names.
7756
7757 2002-06-17  Jerry James  <james@xemacs.org>
7758
7759         * sysdll.c: Remove RTLD_GLOBAL initialization.
7760         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7761
7762 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7763
7764         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7765
7766 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7767
7768         * sysdep.c (sys_rename): Make sys_rename work for the case where
7769         Windows rename sets errno to EACCES if target file exists.
7770
7771 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7772
7773         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7774         Fix detection of metric units to work on Win95
7775
7776 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7777
7778         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7779
7780 2002-04-25  Andy Piper  <andy@xemacs.org>
7781
7782         * redisplay.c (create_text_block): Remove extra comment trailer.
7783
7784 2002-04-24  Andy Piper  <andy@xemacs.org>
7785
7786         * redisplay.c (create_text_block): Don't actually add propagation
7787         data if the line ends after we have added a glyph.
7788
7789 2002-04-22  Andy Piper  <andy@xemacs.org>
7790
7791         * extents.c (extent_fragment_update): check for glyphs we have
7792         previously displayed.
7793         * extents.c (print_extent_1): warning removal.
7794         * extents.h: change prototype.
7795         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7796         widths correctly for wide glyphs.
7797         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7798         * redisplay.c (prop_type): add PROP_GLYPH.
7799         * redisplay.c (struct prop_block): add glyph type
7800         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7801         to the propagation data.
7802         * redisplay.c (create_text_block): if there is a glyph in the
7803         propagation data use it to salt extent_fragment_update.
7804         * redisplay.c (create_string_text_block): ditto.
7805
7806 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7807
7808         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7809         * redisplay-output.c (compare_runes): Compare them.
7810         * redisplay.c: Update copyright date.
7811         * redisplay.c (pos_data): Add need_baseline_computation field.
7812         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7813         need_baseline_computation; zero yoffset. Set max_pixmap_height
7814         for all pixmaps, not just automatically positioned ones.
7815         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7816         * redisplay.c (calculate_baseline): New, compute textual baseline.
7817         * redisplay.c (add_glyph_rune): Call them.
7818         * redisplay.c (create_text_block): Likewise.
7819         * redisplay.c (create_overlay_glyph_block): Likewise.
7820         * redisplay.c (add_margin_runes): Likewise.
7821         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7822
7823         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7824         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7825         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7826         * redisplay-msw.c (mswindows_output_string): Likewise.
7827         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7828         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7829         * redisplay-x.c (x_output_display_block): Likewise.
7830
7831 2002-03-28  Ben Wing  <ben@xemacs.org>
7832
7833         * redisplay.c: Fixed bug in redisplay
7834         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7835         and down of the lines, since they're bigger than the line
7836         size. (It was seen most obviously when there's a horizontal scroll
7837         bar, e.g. do C-h a glyph or something like that.) The problem was
7838         that the glyph-contrib-p setting on glyphs was ignored even if it
7839         was set properly, which it wasn't until now.
7840
7841 2002-04-24  Andy Piper  <andy@xemacs.org>
7842
7843         * lisp.h (Dynarr_end): Fix definition.
7844
7845 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7846
7847         * redisplay.c (mark_redisplay): Remove call to
7848         update_frame_window_mirror.
7849
7850 2001-11-15  Andy Piper  <andy@xemacs.org>
7851
7852         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7853         cygwin (again).
7854
7855 2002-02-13  Andy Piper  <andy@xemacs.org>
7856
7857         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7858         we did in fact enqueue the XM_MAPFRAME event.
7859
7860 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7861
7862         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7863         to fix problem switching between virtual desktops under virtuawin
7864         virtual window manager.
7865
7866 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7867
7868         * event-msw.c: Typo fix.
7869         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7870         magic XM_MAPFRAME event has been sent.
7871
7872 2001-11-23  Andy Piper  <andy@xemacs.org>
7873
7874         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7875
7876 2001-11-21  Andy Piper  <andy@xemacs.org>
7877
7878         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7879         mouse events outside the frame.
7880
7881 2002-03-20  Andy Piper  <andy@xemacs.org>
7882
7883         * menubar-msw.c (mswindows_popup_menu): warning removal.
7884         * dialog-msw.c (dialog_popped_down): ditto.
7885
7886 2001-12-11  Andy Piper  <andy@xemacs.org>
7887
7888         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7889         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7890         popup_up_p.
7891         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7892         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7893         * menubar-msw.c (mswindows_popup_menu): ditto.
7894
7895 2001-10-29  Andy Piper  <andy@xemacs.org>
7896
7897         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7898         cancels.
7899
7900 2002-01-03  Andy Piper  <andy@xemacs.org>
7901
7902         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7903         letters.
7904         (xrealpath): ditto.
7905
7906 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7907
7908         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7909         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7910         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7911         Detect and handle case where machine is set up for metric units
7912
7913 2002-04-02  Andy Piper  <andy@xemacs.org>
7914
7915         * dired-msw.c (mswindows_get_files): 
7916         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7917         completely handled by XEmacs. Suggested by Thomas Vogler
7918         <mail@thomas-vogler.de>.
7919
7920 2001-11-14  Andy Piper  <andy@xemacs.org>
7921
7922         * nt.c (REG_ROOT): change registry key to XEmacs.
7923
7924 2002-04-27  Andy Piper  <andy@xemacs.org>
7925
7926         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7927
7928 2002-04-26  Andy Piper  <andy@xemacs.org>
7929
7930         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7931         behavior.
7932
7933 2002-03-14  Mike Alexander  <mta@arbortext.com>
7934
7935         * event-msw.c (mswindows_unwait_process): New, remove process from
7936         wait list
7937         * process-nt.c (nt_finalize_process_data): Call
7938         mswindows_unwait_process
7939         * console-msw.h: Declare mswindows_unwait_process
7940
7941 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7942
7943         * editfns.c (Fdecode_time):
7944         (Fformat_time_string):
7945         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7946         (make_time): Warning elimination (change arg name).
7947
7948 2001-11-24  Andy Piper  <andy@xemacs.org>
7949
7950         * window.c (Fsplit_window): Doc return type.
7951
7952 2002-04-01  Andy Piper  <andy@xemacs.org>
7953
7954         * emacs.c (Fkill_emacs): Only output message box in interactive
7955         mode.
7956
7957 2002-04-26  Andy Piper  <andy@xemacs.org>
7958  
7959         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7960         cygwin.
7961
7962 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7963
7964         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7965         bit platform.
7966
7967 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7968
7969         * XEmacs 21.4.8 "Honest Recruiter" is released.
7970
7971 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7972
7973         Supersedes 2002-04-17 patch.
7974
7975         * process.h (PROCESS_LIVE_P): Use the process status as
7976         evidence of health, not the state of the input stream.
7977         (PROCESS_READABLE_P): Say if the process is readable
7978         from. (It may be dead nonetheless.)
7979         (CHECK_READABLE_PROCESS): Test for that condition.
7980
7981         * process.c (create_process): Use PROCESS_READABLE_P.
7982         (read_process_output, set_process_filter): Likewise.
7983
7984         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7985         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7986
7987         This code is #if 0'd, this is not the time to add new functions:
7988
7989         * process.c (Fprocess_readable_p): Report readability status.
7990         * process.c (Qprocess_readable_p): New, associated symbol...
7991         * process.c (syms_of_process): ... initialize it.
7992
7993 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7994
7995         * XEmacs 21.4.7 "Economic Science" is released.
7996
7997 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7998
7999         * process.h (PROCESS_LIVE_P): Use the process status as
8000         evidence of health, not the state of the input stream.
8001
8002 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
8003
8004         * sysdep.c (sys_siglist): change "signum" to "signal"
8005
8006 2001-04-21  Martin Buchholz  <martin@xemacs.org>
8007
8008         * s/darwin.h: New file.
8009         Thanks to Greg Parker <gparker@cs.stanford.edu>.
8010         
8011 2002-04-23  Andreas Jaeger  <aj@suse.de>
8012
8013         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
8014         which use lib64 for 64-bit libs.
8015         (START_FILES): Likewise.
8016
8017 2002-02-11  Mike Sperber  <mike@xemacs.org>
8018
8019         * device-x.c: 
8020         (x_IO_error_handler):
8021         (x_init_device): Temporarily keep device in static variable
8022         `device_being_initialized' so we can recover gracefully from
8023         internal XOpenDevice failure.  (XOpenDevice is documented to
8024         return NULL on failure, but sometimes calls the IO error handler
8025         instead.)
8026
8027 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
8028
8029         * dired.c (Ffile_name_all_completions): Change documentation --
8030         remove reference to completion-ignored-extensions.
8031         * dired.c (vars_of_dired): Change documentation for
8032         completion-ignored-extensions -- remove reference to
8033         file-name-all-completions.
8034
8035 2002-03-06  Jerry James  <james@xemacs.org>
8036
8037         * emodules.c (emodules_load): Fix multiple loading of same module.
8038
8039 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
8040         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
8041         RTLD_LAZY to avoid incorrect symbol binding when using nested
8042         shared libraries on Solaris.
8043
8044 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
8045
8046         * fileio.c (Ffind_file_name_handler): Improve docstring.
8047
8048 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
8049
8050         * fns.c (Fmapconcat): Improve docstring.
8051
8052 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
8053
8054         * device-gtk.c: Add prototype for
8055         emacs_gtk_selection_clear_event_handle.
8056         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
8057         selection.  Setup signal handler for "selection_clear_event"
8058         (emacs_gtk_selection_clear_event_handle).
8059
8060         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
8061         other applications owning the clipboard (based on
8062         x_handle_selection_clear).
8063
8064 2001-12-23  William M. Perry  <wmperry@gnu.org>
8065
8066         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
8067         
8068 2002-01-04  Martin Buchholz  <martin@xemacs.org>
8069
8070         * keymap.c (define_key_alternate_name): Parenthesize EQ.
8071
8072 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
8073
8074         * XEmacs 21.4.6 "Common Lisp" is released.
8075
8076 2001-12-16  Torsten Duwe  <duwe@caldera.de>
8077
8078         * search.c (Freplace_match): Add missing sub-expression functionality.
8079
8080         * buffer.c (decode_buffer): Add a check for pointer type to
8081         decode_buffer, before gcc's CSE optimization reorders a
8082         dereference in front of the allow_string test.
8083
8084 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
8085
8086         * window.c (window_loop): Fix bug that sometimes prevented
8087         window_loop() from iterating across multiple devices.  Also, at
8088         Ben's request, changed infloop-detecting code to abort() instead
8089         of silently terminating window_loop().
8090
8091 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
8092
8093         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8094         * editfns.c (make_time): New function.
8095         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8096         * lisp.h (make_time): Prototype and comment it.
8097         * dired.c (wasteful_word_to_lisp): Deprecate.
8098         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8099
8100 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8101
8102         * fileio.c (auto_save_1): Use current coding system, not
8103         escape-quoted.
8104
8105 2001-11-13  Ben Wing  <ben@xemacs.org>
8106
8107         * window.c:
8108         * window.c (window_truncation_on):
8109         * window.c (syms_of_window):
8110         truncate-partial-width-windows should respect the buffer being
8111         displayed, like other redisplay vars.
8112
8113 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8114
8115         * event-stream.c (Fread_key_sequence): save current buffer.
8116
8117 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8118
8119         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8120
8121 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8122
8123         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8124
8125 2001-10-26  Mike Alexander  <mta@arbortext.com>
8126
8127         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8128
8129 2001-10-25  Andy Piper  <andy@xemacs.org>
8130
8131         * ChangeLog:
8132         * dialog-msw.c (handle_directory_proc): new function.
8133          (handle_directory_dialog_box): new fucntion.
8134          (handle_file_dialog_box): use new directory dialog support.
8135          (mswindows_make_dialog_box_internal): ditto.
8136         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8137         handling.
8138         (mswindows_find_frame): make global.
8139         * fileio.c (Fexpand_file_name): build fix.
8140         * general-slots.h: add Qdirectory.
8141         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8142         handling.
8143         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8144         cygwin not leaving win32 paths unchanged.
8145         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8146         cygwin runtime to do path conversion.
8147         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8148         (syms_of_win32): add new function.
8149         * window.c (window_loop): build fix.
8150
8151 2001-10-15  Andy Piper  <andy@xemacs.org>
8152
8153         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8154
8155 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8156
8157         * XEmacs 21.4.5 "Civil Service" is released.
8158
8159 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8160
8161         * glyphs-x.c: Force buffer-tab highlight update when moving the
8162         buffer, avoiding an ugly black border, used for keyboard focus
8163         indication, on a widget that can never have keyboard focus, the
8164         buffer tab.
8165
8166 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8167
8168         * process-unix.c (unix_open_multicast_group): Remove too much
8169         conversion between host and network byte order.
8170
8171 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8172
8173         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8174         before replacing them.
8175
8176         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8177         operation.
8178
8179         * src/window.c (undedicate_windows): Use it.
8180         * src/window.h: Add prototype.
8181
8182 2001-09-17  Ben Wing  <ben@xemacs.org>
8183
8184         * fileio.c (normalize_filename):
8185         * fileio.c (Fexpand_file_name):
8186         Fix various C++ compile errors in Andy's recent code.
8187         
8188         * callint.c (Fcall_interactively):
8189         * editfns.c (Ftemp_directory):
8190         * editfns.c (Fuser_full_name):
8191         * emacs.c (argmatch):
8192         * lread.c (locate_file_map_suffixes):
8193         * redisplay-x.c (x_ring_bell):
8194         Fix sign-compare warnings.
8195         
8196 2001-09-08  Andy Piper  <andy@xemacs.org>
8197
8198         * fileio.c (normalize_filename): copied from nt.c
8199         * (Ffile_name_directory): enable win32 paths under cygwin.
8200         * (Ffile_name_nondirectory): ditto.
8201         * (directory_file_name): ditto.
8202         * (Fexpand_file_name): ditto.
8203         * (Ffile_truename): ditto.
8204         * (Fsubstitute_in_file_name): ditto.
8205         * (Ffile_name_absolute_p): ditto.
8206         * (Ffile_readable_p): ditto.
8207
8208 2001-09-08  Andy Piper  <andy@xemacs.org>
8209
8210         * device-msw.c (mswindows_finish_init_device): remove dde
8211         initialization.
8212         * device-msw.c (mswindows_init_dde): factor out from
8213         mswindows_finish_init_device()
8214         * device-msw.c (init_mswindows_very_early): new function
8215         initialize but don't enable dde.
8216         * emacs.c (main_1): call init_mswindows_very_early.
8217         * event-msw.c:
8218         * event-msw.c (mswindows_dde_callback): only execute when we are
8219         ready.
8220         * symsinit.h: declare init_mswindows_very_early.
8221
8222 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8223
8224         [sjt: This has been in 21.5 for months with no complaints.]
8225
8226         * console.h (struct console_methods): Added flags member.
8227         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8228         (CONMETH_IMPL_FLAG):
8229         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8230         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8231
8232         * device.c (window_system_pixelated_geometry): Use the above macros.
8233
8234         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8235         implememntation flag.
8236         * device.h (DEVICE_DISPLAY_P): Use it.
8237
8238         * frame.c (delete_frame_internal): Use the above macro.
8239
8240         * redisplay.c (redisplay_device): Use it.
8241         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8242         (redisplay_frame): Ditto.
8243
8244         * device-msw.c (mswindows_device_implementation_flags): Removed.
8245         (msprinter_device_implementation_flags): Removed.
8246         (console_type_create_device_mswindows): Removed references to
8247         implementation_flags methods, set implementation flags here.
8248         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8249
8250         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8251         (console_type_create_device_gtk): Removed method declaration.
8252         Added commented out statement which semantically matches the
8253         commented out statement in the above removed method.
8254
8255 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8256
8257         The attached patch fixes a few warnings. 
8258
8259         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8260         * src/frame-gtk.c: guard against GNOME calls in GTK only
8261         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8262         * src/select-gtk.c: prototype lisp_to_time
8263
8264 2001-06-08  Ben Wing  <ben@xemacs.org>
8265
8266         ------ gc-in-window-procedure fixes ------
8267         
8268         * alloc.c:
8269         * alloc.c (struct post_gc_action):
8270         * alloc.c (register_post_gc_action):
8271         * alloc.c (run_post_gc_actions):
8272         * alloc.c (garbage_collect_1):
8273         Create "post-gc actions", to avoid those dreaded "GC during window
8274         procedure" problems.
8275
8276         * event-msw.c:
8277         Abort, clean and simple, when GC in window procedure.  We want
8278         to flush these puppies out.
8279
8280         * glyphs-msw.c:
8281         * glyphs-msw.c (finalize_destroy_window):
8282         * glyphs-msw.c (mswindows_finalize_image_instance):
8283         Use a post-gc action when destroying subwindows.
8284
8285         * lisp.h:
8286         Declare register_post_gc_action().
8287
8288         * scrollbar-msw.c:
8289         * scrollbar-msw.c (unshow_that_mofo):
8290         Use a post-gc action when unshowing scrollbar windows, if in gc.
8291
8292         * redisplay.c (mark_redisplay):
8293         Add comment about the utter evilness of what's going down here.
8294
8295         ------ cygwin setitimer fixes ------
8296         
8297         * Makefile.in.in (sheap_objs):
8298         * Makefile.in.in (profile_objs):
8299         * Makefile.in.in (objs):
8300         Compile profile.c only when HAVE_SETITIMER.
8301         
8302         * nt.c (mswindows_sigset):
8303         * nt.c (mswindows_sighold):
8304         * nt.c (mswindows_sigrelse):
8305         * nt.c (mswindows_sigpause):
8306         * nt.c (mswindows_raise):
8307         * nt.c (close_file_data):
8308         Style fixes.
8309         
8310         * nt.c:
8311         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8312         
8313         * profile.c:
8314         * profile.c (Fstart_profiling):
8315         * profile.c (Fstop_profiling):
8316         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8317         instead of just plain setitimer().
8318         
8319         * signal.c:
8320         * signal.c (set_one_shot_timer):
8321         * signal.c (alarm):
8322         Define qxe_setitimer() as an encapsulation around setitimer() --
8323         call setitimer() directly unless Cygwin or MS Win, in which case
8324         we use our simulated version in win32.c.
8325         
8326         * systime.h:
8327         * systime.h (struct itimerval):
8328         * systime.h (ITIMER_REAL):
8329         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8330         comment about "qxe" and the policy regarding encapsulation.
8331
8332         * win32.c:
8333         * win32.c (setitimer_helper_proc):
8334         * win32.c (setitimer_helper_period):
8335         * win32.c (setitimer_helper):
8336         * win32.c (mswindows_setitimer):
8337         Move setitimer() emulation here, so Cygwin can use it.
8338         Rename a couple of functions and variables to be longer and more
8339         descriptive.  In setitimer_helper_proc(), send the signal
8340         using either mswindows_raise() or (on Cygwin) kill().  If for
8341         some reason we are still getting lockups, we'll change the kill()
8342         to directly invoke the signal handlers.
8343
8344         ------ windows shell fixes ------
8345         
8346         * callproc.c:
8347         * ntproc.c:
8348         Comments about how these two files must die.
8349
8350         * callproc.c (init_callproc):
8351         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8352         not just COMSPEC. (more correct and closer to FSF.) Don't
8353         force a value for SHELL into the environment. (Comments added
8354         to explain why not.)
8355         
8356         * nt.c (init_user_info):
8357         Don't shove a fabricated SHELL into the environment.  See above.
8358
8359 2001-06-01  Ben Wing  <ben@xemacs.org>
8360
8361         * Makefile.in.in (ldflags):
8362         eliminate that pesky "defaulting to 00401000" warning.
8363         * nt.h:
8364         eliminate warnings.
8365
8366 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8367
8368         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8369         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8370
8371 2001-04-24  Jerry James <james@xemacs.org>
8372
8373         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8374         correct order.
8375
8376 2001-06-01  Ben Wing  <ben@xemacs.org>
8377
8378         * event-msw.c (debug_mswin_messages):
8379         conditionalize the messages that were causing compile errors.
8380         (if only macros could generate #ifdef statements ...)
8381
8382 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8383
8384         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8385
8386 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8387
8388         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8389
8390 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8391
8392         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8393         * process-unix.c (unix_canonicalize_host_name):
8394         sysdep.c (init_system_name):
8395         Use it to conditionally support IPv6 canonicalization.
8396
8397 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8398
8399         * event-msw.c:
8400         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8401
8402 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8403
8404         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8405         attempt is made to scroll when no scroll bar is available.
8406
8407 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8408
8409         * input-method-motif.c (XIM_delete_frame): New callback.
8410         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8411         got deleted from 21.4.3.)
8412
8413 2001-06-01  Ben Wing  <ben@xemacs.org>
8414
8415         * nt.c (mswindows_utime):
8416         * nt.c (close_file_data):
8417         fix off-by-one-indirection error.
8418
8419 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8420
8421         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8422         because set_file_times() now takes Lisp_Object path, instead of
8423         char*.
8424         * nt.c: Include buffer.h.
8425         * nt.c (convert_from_time_t): New.
8426         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8427         not set mtime correctly.
8428         * nt.h: Declare mswindows_utime().
8429         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8430         path, instead of char*.
8431         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8432
8433 2001-05-30  Ben Wing  <ben@xemacs.org>
8434
8435         For 21.4:
8436
8437         (Stephen, just take all event-msw.c patches.  This includes
8438         the "iconify" fix below.)
8439
8440         * event-msw.c:
8441         * event-msw.c (mswindows_dequeue_dispatch_event):
8442         * event-msw.c (assert):
8443         * event-msw.c (emacs_mswindows_quit_p):
8444         * event-msw.c (debug_mswin_messages):
8445         * event-msw.c (debug_output_mswin_message):
8446         * event-msw.c (vars_of_event_mswindows):
8447         Fix yet more problems with C-g handling.
8448         Implement debug-mswindows-events.
8449         
8450 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8451
8452         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8453         
8454 2001-05-23  Ben Wing  <ben@xemacs.org>
8455
8456         * event-msw.c (winsock_writer):
8457         * event-msw.c (winsock_closer):
8458         prior kludgy code was clobbering the buffer, thinking it was
8459         "unused" space to store an unneeded return value; instead, use
8460         the variable we've already got staring us in the face.
8461
8462 2001-05-17  Andy Piper  <andy@xemacs.org>
8463
8464         * sysfile.h: don't assume that file attributes are boolean
8465
8466 2001-05-23  Ben Wing  <ben@xemacs.org>
8467
8468         * device-msw.c (msprinter_init_device):
8469         signal an error rather than crash with an unavailable network
8470         printer (from Mike Alexander).
8471         
8472         * event-msw.c:
8473         * event-msw.c (struct winsock_stream):
8474         * event-msw.c (winsock_writer):
8475         * event-msw.c (winsock_closer):
8476         * event-msw.c (make_winsock_stream_1):
8477         cleanup headers.  fix (hopefully) an error with data corruption
8478         when sending to a network connection.
8479
8480         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8481         to handle the ~user prefix by (a) always assuming we're referencing
8482         ourselves and not even verifying the user -- hence any file with
8483         a tilde as its first char is invalid! (b) if there wasn't a slash
8484         following the filename, the pointer was set *past* the end of
8485         file and we started reading from uninitialized memory.  Now we
8486         simply treat these as files, always.
8487
8488         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8489         
8490 2001-05-19  Ben Wing  <ben@xemacs.org>
8491
8492         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8493
8494         * process-nt.c:
8495         * process-nt.c (vars_of_process_nt):
8496         remove unused mswindows-quote-process-args.  rec for 21.4.
8497         
8498 2001-05-12  Ben Wing  <ben@xemacs.org>
8499
8500         * event-msw.c (mswindows_dde_callback):
8501         * event-msw.c (mswindows_wnd_proc):
8502         eliminate cygwin warnings.
8503
8504 2001-05-06  Ben Wing  <ben@xemacs.org>
8505
8506         * console-msw.h:
8507         * device-msw.c:
8508         * device-msw.c (print_dialog_worker):
8509         * device-msw.c (mswindows_handle_print_dialog_box):
8510         * device-msw.c (syms_of_device_mswindows):
8511         * dialog-msw.c (mswindows_make_dialog_box_internal):
8512         * general-slots.h:
8513         implement printing the selection when it's selected.
8514
8515 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8516
8517         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8518
8519 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8520
8521         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8522         EMACS_INT is signed.
8523
8524 2001-04-15  Michael Lausch  <mla@1012surf.net>
8525
8526         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8527         gtk_widget_request_size() to give scrollbar >0 width for
8528         GTK >1.2.8.
8529
8530 2001-05-30  William M. Perry  <wmperry@gnu.org>
8531
8532         * event-gtk.c: Check for buttons as modifier keys.
8533
8534 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8535
8536         * s\mingw32.h:
8537         Properly find MinGW's <process.h> inside Cygwin's restructured
8538         include directories.  Don't try to include <cygwin/version.h>
8539         since we are dropping support for MinGW in versions of Cygwin
8540         earlier than b21.
8541         * nt.c:
8542         Drop support for MinGW in versions of Cygwin before b21.
8543         * sysdep.c:
8544         Properly find MinGW's <process.h> inside Cygwin's restructured
8545         include directories.
8546         * syswindows.h:
8547         Drop support for MinGW in versions of Cygwin before b21.
8548         * unexcw.c:
8549         Even though a.out.h is no longer detected by configure, allow
8550         MinGW to use it until we figure out how to do the job with Win32.
8551
8552 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8553
8554         * syntax.c (find_start_of_comment):
8555         Fix `unbalanced parentheses' bug when dealing with mixed comment
8556         styles in c++/java/etc. mode
8557
8558 2001-05-29  Mike Alexander  <mta@arbortext.com>
8559
8560         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8561         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8562
8563 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8564
8565         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8566
8567 2001-03-31  Mike Sperber <mike@xemacs.org>
8568
8569         * search.c (Freplace_match): Support FSF-style specification of
8570         match subexpression when applied to a buffer.
8571
8572 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8573
8574         * event-stream.c (is_scrollbar_event): add missing semicolon
8575
8576 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8577
8578         * Makefile.in.in: Use TAR macro instead of hardcoding
8579           tar.  Allows use of GNU tar instead of system tar
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-17  Stephen J. Turnbull  <stephen@xemacs.org>
8586
8587         * XEmacs 21.4.3 "Academic Rigor" is released.
8588
8589 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8590
8591         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8592
8593 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8594
8595         * buffer.c (Vcase_fold_search): Remove obsolete
8596           comment about non ASCII case-fold-search.  This
8597           bug has been fixed by case-table changes.
8598
8599 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8600
8601         * event-msw.c: Restore include of events-mod.h.
8602
8603 2001-04-22   zhaoway  <zw@debian.org>
8604
8605         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8606         !HAVE_SCROLLBARS.
8607
8608 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8609
8610         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8611
8612 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8613
8614         * mule-charset.c (Fmake_charset): Add missing else.
8615
8616 2001-04-23  Ben Wing  <ben@xemacs.org>
8617
8618         * event-msw.c (FAKE_MOD_QUIT):
8619         * event-msw.c (mswindows_dequeue_dispatch_event):
8620         * event-msw.c (mswindows_wnd_proc):
8621         * event-msw.c (emacs_mswindows_quit_p):
8622         Get critical quit working.
8623
8624 2001-05-05  Ben Wing  <ben@xemacs.org>
8625
8626         * console-msw.h:
8627         * device-msw.c:
8628         * device-msw.c (mswindows_get_default_margin):
8629         * frame-msw.c (mswindows_size_frame_internal):
8630         * frame-msw.c (msprinter_init_frame_1):
8631         * frame-msw.c (vars_of_frame_mswindows):
8632         Change top/bottom margin defaults to 0.5 inches.
8633
8634 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8635
8636         Fix link error with gcc 3.0 on Linux.
8637         * terminfo.c (UP): Remove.
8638         * terminfo.c (BC): Remove.
8639         * terminfo.c (PC): Remove.
8640         They weren't used, and in any case, these symbols should be
8641         defined in the *library*.
8642
8643 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8644
8645         * s/aix4.h: Fix crash with xlc -O3.
8646         Improve comment explaining how -O3 works.
8647
8648 2001-04-15  Ben Wing  <ben@xemacs.org>
8649
8650         * event-stream.c:
8651         * event-stream.c (Fnext_event):
8652         * event-stream.c (is_scrollbar_event):
8653         * event-stream.c (execute_command_event):
8654         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8655         crash' problem.  His fix introduces other problems.  We filter
8656         out scrollbar events specifically, making them somewhat invisible
8657         to command-building, and not appearing in `this-command-keys'.
8658         More work is still needed (see comments in event-stream.c), but
8659         this fixes all the major problems.
8660
8661 2001-04-20  Ben Wing  <ben@xemacs.org>
8662
8663         * .cvsignore: Added stuff for Windows.
8664
8665 2001-04-28  Ben Wing  <ben@xemacs.org>
8666
8667         * buffer.c (Ferase_buffer):
8668         * editfns.c (buffer_insert1):
8669         * editfns.c (Finsert_before_markers):
8670         * editfns.c (Finsert_string):
8671         * editfns.c (Finsert_char):
8672         * editfns.c (Fdelete_region):
8673         * editfns.c (Fwiden):
8674         * editfns.c (Fnarrow_to_region):
8675         remove bogus lines setting zmacs_region_stays to 0.
8676         
8677 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8678
8679         * process-unix.c (unix_open_network_stream): If connect() fails
8680         invalidate file descriptor after closing it.
8681
8682 2001-03-08  Mike Alexander  <mta@arbortext.com>
8683
8684         * event-msw.c (mswindows_need_event_in_modal_loop):
8685         Don't dispatch a message if we didn't get one.
8686         (mswindows_need_event):
8687         Terminate the correct process when one exits instead of the first
8688         one on Vprocess_list and look for process termination when in
8689         mswindows_protect_modal_loop.
8690
8691 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8692
8693         * XEmacs 21.4.1 "Copyleft" is released.
8694
8695 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8696
8697         * input-method-motif.c (XIM_delete_frame): New callback.
8698         (XIM_init_frame): Register it.
8699
8700 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8701
8702         * XEmacs 21.4.0 "Solid Vapor" is released.
8703
8704 2001-04-15  Ben Wing  <ben@xemacs.org>
8705
8706         * cmdloop.c (call_command_loop):
8707         Fix braino in bit-rotting code.
8708         
8709 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8710
8711         * extents.c (Fset_extent_endpoints): Force creation of extent info
8712         in buffer_or_string.
8713
8714         * extents.c (process_extents_for_insertion_mapper): Correctly
8715         check for open-open zero-length extents.
8716
8717 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8718
8719         * lisp.h: New typedefs Memory_count, Element_count.
8720         * regex.c:
8721         * regex.h:
8722         Sign-compare warning elimination: several unsigned -> signed.
8723         Based on work by Ben Wing <ben@xemacs.org>.
8724
8725 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8726
8727         * XEmacs 21.2.47 "Zephir" is released.
8728
8729 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8730
8731         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8732
8733 2001-04-03  Mike Sperber <mike@xemacs.org>
8734
8735         * search.c: Revert previous patch due because of release.
8736
8737 2001-03-30  Ben Wing  <ben@xemacs.org>
8738
8739         * s\cygwin32.h:
8740         Add missing killpg prototype.
8741
8742         * elhash.c:
8743         Add a comment about fixing problems when a new entry is added
8744         while mapping.
8745
8746         * frame-msw.c (mswindows_init_frame_1):
8747         Fix compile warnings.
8748
8749         * menubar.c (vars_of_menubar):
8750         Provide `menu-accelerator-support' to indicate that we properly
8751         support %_ in menu specifications, so that package code can
8752         conditionalize on this (and remove %_ from menu specifications
8753         on older versions).
8754
8755         * event-msw.c:
8756         * scrollbar-msw.c:
8757         * scrollbar-msw.c (can_scroll):
8758         * scrollbar-msw.h:
8759         Fix handling of mouse wheel under Windows to follow standards --
8760         now scrolls window under pointer, not selected window.
8761
8762 2001-03-31  Mike Sperber <mike@xemacs.org>
8763
8764         * search.c (Freplace_match): Support FSF-style specification of
8765         match subexpression when applied to a buffer.
8766
8767 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8768
8769         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8770         function to modify KEYMAP, so map over a copy of the hash table.
8771
8772 2001-03-21  Martin Buchholz <martin@xemacs.org>
8773
8774         * XEmacs 21.2.46 "Urania" is released.
8775
8776 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8777
8778         * realpath.c (xrealpath): Make file-truename work with symlinks to
8779         /cygdrive paths on cygwin. Always lowercase drive-letters on
8780         native windows.
8781         (cygwin_readlink): Don't try to find canonical filename unless
8782         file exists.
8783
8784 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8785
8786         * ChangeLog: Log GTK merge.
8787
8788         * dumper.c:
8789         * select-x.c:
8790         * specifier.c:
8791         * symeval.h:
8792         Revert gratuitous whitespace changes from GTK merge.
8793
8794         * emacs.c: Document end of complex #ifdef @ l. 1495.
8795
8796
8797 2001-03-12  Andy Piper  <andy@xemacs.org>
8798
8799         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8800         have to do likewise.
8801
8802 2001-03-12  Andy Piper  <andy@xemacs.org>
8803
8804         * sysdep.c: we only support mingw now.
8805
8806 2001-03-09  Andy Piper  <andy@xemacs.org>
8807
8808         * unexcw.c (copy_executable_and_dump_data_section): making approx
8809         overrun a warning only.
8810
8811 2001-03-10  William M. Perry  <wmperry@aventail.com>
8812
8813         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8814         satisfy Stephen's identical-after-cpp plea.
8815
8816 2001-03-02  Ben Wing  <ben@xemacs.org>
8817
8818         * cmds.c:
8819         * cmds.c (Fforward_char):
8820         * syntax.c:
8821         * window.c:
8822
8823         Augment documentation of the most common motion commands to make
8824         note of the shifted-motion support.
8825         
8826 2001-03-02  Ben Wing  <ben@xemacs.org>
8827
8828         * nt.c (mswindows_fstat):
8829         * nt.c (mswindows_stat):
8830         * search.c (boyer_moore):
8831         Fix compile warnings under Windows.
8832         
8833         * sysdep.c (sys_readdir):
8834         Fix buggy filename-conversion code under Mule.
8835
8836 2001-03-09  William M. Perry  <wmperry@aventail.com>
8837
8838         * Makefile.in.in:
8839         * config.h.in:
8840         * console.c:
8841         * console.h:
8842         * device.c:
8843         * device.h:
8844         * dragdrop.c:
8845         * emacs.c:
8846         * event-stream.c:
8847         * events.c:
8848         * events.h:
8849         * faces.c:
8850         * frame.h:
8851         * general-slots.h:
8852         * glyphs.c:
8853         * gutter.c:
8854         * inline.c:
8855         * lisp.h:
8856         * lrecord.h:
8857         * make-src-depend:
8858         * redisplay-output.c:
8859         * redisplay.c:
8860         * symsinit.h:
8861         * sysfile.h:
8862         * toolbar.c:
8863         * window.c:
8864         The Great GTK Merge.
8865
8866         * ChangeLog.GTK:
8867         * console-gtk.c:
8868         * console-gtk.h:
8869         * device-gtk.c:
8870         * emacs-marshals.c:
8871         * emacs-widget-accessors.c:
8872         * event-gtk.c:
8873         * frame-gtk.c:
8874         * gccache-gtk.c:
8875         * gccache-gtk.h:
8876         * glade.c:
8877         * glyphs-gtk.c:
8878         * glyphs-gtk.h:
8879         * gtk-glue.c:
8880         * gtk-xemacs.c:
8881         * gtk-xemacs.h:
8882         * gui-gtk.c:
8883         * gui-gtk.h:
8884         * menubar-gtk.c:
8885         * native-gtk-toolbar.c:
8886         * objects-gtk.c:
8887         * objects-gtk.h:
8888         * redisplay-gtk.c:
8889         * scrollbar-gtk.c:
8890         * scrollbar-gtk.h:
8891         * select-gtk.c:
8892         * toolbar-gtk.c:
8893         * ui-byhand.c:
8894         * ui-gtk.c:
8895         * ui-gtk.h:
8896         The Great GTK Merge: new files.
8897
8898 2001-02-26  Ben Wing  <ben@xemacs.org>
8899
8900         Reapplied Lstream change.
8901
8902 2001-02-26  Ben Wing  <ben@xemacs.org>
8903
8904         Undid the last change, since it is more controversial than I
8905         thought.  It should be back in at some point soon.
8906         
8907 2001-02-25  Ben Wing  <ben@xemacs.org>
8908
8909         * buffer.c:
8910         * callproc.c (Fold_call_process_internal):
8911         * event-msw.c (ntpipe_slurp_reader):
8912         * event-msw.c (ntpipe_shove_writer):
8913         * event-msw.c (winsock_reader):
8914         * event-msw.c (winsock_writer):
8915         * file-coding.c:
8916         * file-coding.c (detect_eol_type):
8917         * file-coding.c (detect_coding_type):
8918         * file-coding.c (determine_real_coding_system):
8919         * file-coding.c (Fdetect_coding_region):
8920         * file-coding.c (decoding_reader):
8921         * file-coding.c (decoding_writer):
8922         * file-coding.c (mule_decode):
8923         * file-coding.c (Fdecode_coding_region):
8924         * file-coding.c (encoding_reader):
8925         * file-coding.c (encoding_writer):
8926         * file-coding.c (mule_encode):
8927         * file-coding.c (Fencode_coding_region):
8928         * file-coding.c (detect_coding_sjis):
8929         * file-coding.c (decode_coding_sjis):
8930         * file-coding.c (encode_coding_sjis):
8931         * file-coding.c (detect_coding_big5):
8932         * file-coding.c (decode_coding_big5):
8933         * file-coding.c (encode_coding_big5):
8934         * file-coding.c (detect_coding_ucs4):
8935         * file-coding.c (decode_coding_ucs4):
8936         * file-coding.c (encode_coding_ucs4):
8937         * file-coding.c (detect_coding_utf8):
8938         * file-coding.c (decode_coding_utf8):
8939         * file-coding.c (encode_coding_utf8):
8940         * file-coding.c (detect_coding_iso2022):
8941         * file-coding.c (decode_coding_iso2022):
8942         * file-coding.c (encode_coding_iso2022):
8943         * file-coding.c (decode_coding_no_conversion):
8944         * file-coding.c (encode_coding_no_conversion):
8945         * glyphs-x.c (write_lisp_string_to_temp_file):
8946         * gpmevent.c (tty_get_foreign_selection):
8947         * lisp.h:
8948         * lstream.c:
8949         * lstream.c (Lstream_flush_out):
8950         * lstream.c (Lstream_adding):
8951         * lstream.c (Lstream_write_1):
8952         * lstream.c (Lstream_write):
8953         * lstream.c (Lstream_raw_read):
8954         * lstream.c (Lstream_read_more):
8955         * lstream.c (Lstream_read):
8956         * lstream.c (Lstream_unread):
8957         * lstream.c (Lstream_fputc):
8958         * lstream.c (stdio_reader):
8959         * lstream.c (stdio_writer):
8960         * lstream.c (filedesc_reader):
8961         * lstream.c (filedesc_writer):
8962         * lstream.c (lisp_string_reader):
8963         * lstream.c (struct fixed_buffer_stream):
8964         * lstream.c (make_fixed_buffer_input_stream):
8965         * lstream.c (make_fixed_buffer_output_stream):
8966         * lstream.c (fixed_buffer_reader):
8967         * lstream.c (fixed_buffer_writer):
8968         * lstream.c (struct resizing_buffer_stream):
8969         * lstream.c (resizing_buffer_writer):
8970         * lstream.c (dynarr_writer):
8971         * lstream.c (lisp_buffer_reader):
8972         * lstream.c (lisp_buffer_writer):
8973         * lstream.h:
8974         * lstream.h (lstream_implementation):
8975         * lstream.h (struct lstream):
8976         * md5.c (Fmd5):
8977         * process-nt.c (nt_send_process):
8978         * process-unix.c (unix_send_process):
8979         
8980         Correct Lstream lossage due to mixing of signed and unsigned
8981         quantities.  All Lstream uses of size_t and ssize_t are now a
8982         single signed data type Lstream_data_count.  This fixes problems
8983         under Windows with sending large quantities of data to a process,
8984         and may well fix other subtle bugs.
8985
8986 2001-02-23  Martin Buchholz <martin@xemacs.org>
8987
8988         * XEmacs 21.2.45 "Thelxepeia" is released.
8989
8990 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8991
8992         * lisp-union.h (XSETINT): 
8993         (XSETCHAR):
8994         (XSETOBJ): 
8995         Reverse previous change of 2001-02-06.
8996
8997 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8998
8999         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
9000         buffers.
9001         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9002         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
9003         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
9004         * regex.c (POS_AS_IN_BUFFER): removed
9005         * regex.c (re_search_2):
9006         * regex.c (re_match_2):
9007         Don't use an offset of 1 when calculating buffer positions, since
9008         `BI_BUF_BEGV' does it already.
9009
9010 2001-02-18  Wim Dumon  <wim@easics.be>
9011
9012         * insdel.c (prepare_to_modify_buffer): Also check for
9013         supersession when clash-detection is enabled. 
9014
9015 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
9016
9017         * regex.c (re_match_2_internal):
9018         Convert temp characters from 'const unsigned char' to 're_char'.
9019         Fix crashing bug with extended characters under mule.
9020         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
9021         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
9022         font-lock, pdump, and new syntax-table code.
9023         * syntax.c (find_start_of_comment):
9024         (find_end_of_comment):
9025         (forward-comment):
9026         Fix crashing bugs involving moving beyond end of buffer.
9027         * syntax.c (find_start_of_comment):
9028         Fixed logic to allow proper detection of cases where the same
9029         character is used to end both a two-char comment start and a
9030         two-char comment end sequence. Fixes `(forward-comment -1)'.
9031         * syntax.c (find_start_of_comment):
9032         Return position just past last comment-end character for all cases
9033         (previously was only done for two-char comment-end sequences).
9034         * syntax.c (forward-comment):
9035         Take value returned from `find_end_of_comment', rather than
9036         incrementing it.
9037         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9038         Properly deal with BUFFERP (syntax_cache.object)
9039
9040 2001-02-17  Martin Buchholz  <martin@xemacs.org>
9041
9042         * alloc.c (Fgarbage_collect): 
9043         * alloc.c (make_bit_vector_from_byte_vector):
9044         -Wsign-compare-correctness.
9045
9046 2001-02-16  Martin Buchholz  <martin@xemacs.org>
9047
9048         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
9049         (XSETCHAR): Likewise.
9050         (XSETOBJ): Likewise.
9051
9052 2001-02-15  Martin Buchholz  <martin@xemacs.org>
9053
9054         * mule-canna.c (canna-func-delete_previous): 
9055         Rename to canna-func-delete-previous.
9056
9057 2001-02-14  Martin Buchholz  <martin@xemacs.org>
9058
9059         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
9060
9061 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
9062
9063         * font-lock.c (find_context): Fix C++ compile errors introduced by
9064         recent patch
9065
9066 2001-02-13  Martin Buchholz  <martin@xemacs.org>
9067
9068         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
9069         pragma, but earlier ones barf on the same pragma.
9070
9071 2001-02-06  Mike Sperber <mike@xemacs.org>
9072
9073         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
9074         `configure-mule-lisp-directory'.
9075
9076 2001-02-12  Martin Buchholz  <martin@xemacs.org>
9077
9078         Make sure dump-id.c is compiled in the same way as other .c's.
9079         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9080         * dump-id.h: Remove.
9081         * emacs.c: Move dump-id.h into dumper.h.
9082         * dumper.h: Move dump-id.h into dumper.h.
9083         * Makefile.in.in:
9084         Use standard .c.o rule for building dump-id.o.
9085         Remove preprocessor flags from link command.
9086         Add dump-id.o to ${otherobjs} if PDUMP.
9087
9088 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
9089
9090         Port FSF 20.7 syntax table improvements.
9091         * syntax.c.
9092         * syntax.h.
9093
9094         Fixups for new syntax table stuff.
9095         * dired.c: Include syntax.c.
9096         (Fdirectory_files): Initialize regex_match_object and
9097         regex_emacs_buffer.
9098         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9099         and Fget_char_property.
9100
9101         Use ported FSF 20.7 syntax table improvements.
9102         * font-lock.c.
9103         * regex.c.
9104         * search.c.
9105         
9106 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9107
9108         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9109         Unixware's enum boolean from sys/types.h.
9110
9111 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9112
9113         Fix support for building with latest Purify.
9114         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9115         (PURIFY_FLAGS): Likewise.
9116
9117 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9118
9119         * fileio.c (lisp_string_set_file_times): New.
9120         * fileio.c (Fcopy_file): Use it.
9121         Fixes bug:
9122         (copy-file filename non-ascii-filename t t)
9123         ==> No such file or directory, non-ascii-filename
9124
9125 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9126
9127         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9128         USHRT_MAX seems clearer than ~0 anyways.
9129
9130 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9131
9132         dumper improvements.  Inspired by Olivier.
9133         * dumper.c (pdump_max_align): New.
9134         * dumper.c (pdump_add_entry): Use pdump_max_align.
9135         * dumper.c (pdump_get_entry_list): Likewise.
9136         * dumper.c (pdump_scan_by_alignment): Likewise.
9137         Don't iterate through unnecessary alignments.
9138         * dumper.c (pdump_file_get): No need to align result of malloc().
9139         * dumper.c (pdump_mallocadr): Remove.  
9140         The result of malloc() is guaranteed to be maximally aligned.
9141         * dumper.c: s/elmt/elt/g;
9142         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9143         * dumper.c (pdump_alert_undump_object): Likewise.
9144         * dumper.c (pdump_align_table): 
9145         Don't support alignments > 64.
9146         Store ALIGNOF's, not shift counts, in table.
9147
9148 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9149
9150         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9151         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9152         * systime.h: Use HAVE_UTIME.
9153         * sysdep.c (struct utimbuf): Remove.
9154         * sysdep.c (set_file_times): Prefer utime() to utimes().
9155         * config.h.in (HAVE_UTIME): New.
9156         * config.h.in (HAVE_UTIME_H): Remove.
9157         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9158
9159 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9160
9161         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9162
9163 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9164
9165         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9166
9167 2001-02-08  Martin Buchholz <martin@xemacs.org>
9168
9169         * XEmacs 21.2.44 "Thalia" is released.
9170
9171 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9172
9173         Fixes crashes in kill-emacs on some systems.
9174         * process-unix.c (unix_kill_child_process):
9175         It's OK for kill() to fail with ESRCH.
9176
9177 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9178
9179         Contortions to make .gdbinit tricks work on most systems.
9180         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9181         * alloc.c (dbg_valmask): Make non-const.
9182         * alloc.c (dbg_typemask): Make non-const.
9183         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9184         * alloc.c (dbg_valbits): Make non-const.
9185         * alloc.c (dbg_gctypebits): Make non-const.
9186         * .gdbinit (decode_object): Make it work with AIX cc.
9187
9188 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9189
9190         * elhash.c (make_general_lisp_hash_table):
9191         Use simpler and more efficient calloc to clear entries.
9192
9193 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9194
9195         * window.c (window_scroll): Work around an AIX C compiler bug.
9196         Fixes 'scroll-up' does nothing problem with xlC.
9197
9198 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9199
9200         * .gdbinit: Remove obsolete comment.
9201
9202 2001-01-31  Mike Alexander  <mta@arbortext.com>
9203
9204         * select.c (Fown_selection_internal): Set owned_p for device
9205         method correctly.
9206
9207 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9208
9209         Port to g++ 2.97.
9210         "not" cannot be used as a macro name as it is an operator in C++
9211         * config.h.in: Stop #defining `not'.
9212         * chartab.c (check_category_char): not ==> not_p
9213         * chartab.h: Likewise.
9214         * regex.c (re_match_2_internal): Likewise.
9215
9216 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9217
9218         * lisp-disunion.h: Fix up comments.
9219
9220 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9221
9222         * keymap.c (define_key_check_and_coerce_keysym):
9223         (syms_of_keymap):
9224         Support mouse-6 and mouse-7 bindings in the obvious way.
9225
9226 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9227
9228         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9229
9230 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9231
9232         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9233         Previous patch missed DEFVAR_INT_MAGIC.
9234         Make sure future DEFVAR_foo use correct types.
9235         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9236         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9237         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9238         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9239         * (DEFVAR_INT): Likewise.
9240         * redisplay.c (vertical_clip): Should be of type Fixnum.
9241         * redisplay.c (horizontal_clip): Likewise.
9242         * lisp.h (dump_add_opaque_int): New.
9243         (dump_add_opaque_fixnum): New.
9244
9245 2001-01-29  Andy Piper  <andy@xemacs.org>
9246
9247         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9248         since they can be eval'ed
9249
9250 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9251
9252         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9253         Oops, XEmacs redefines `class'.  Use `typename' instead.
9254
9255 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9256
9257         * dumper.c: Fix C++ compile errors.
9258
9259 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9260
9261         * tparam.c: Use correct prototypes.
9262
9263 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9264
9265         * sysproc.h: #include util.h for NetBSD's openpty.
9266
9267 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9268
9269         More 64-bit correctness.
9270         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9271         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9272         Fix up comments.
9273         This finally finishes the 64-bit SGI port.
9274         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9275         * symbols.c: Fix up comments and type casts.
9276         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9277         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9278         * symeval.h (Fixnum): New type.
9279         * symeval.h (symbol_value_type): Fix up comment.
9280
9281         * commands.h:
9282         * nt.c:
9283         * emacs.c:
9284         * data.c:
9285         * redisplay.c:
9286         * abbrev.c:
9287         * dired-msw.c:
9288         * event-Xt.c:
9289         * eldap.c:
9290         * window.c:
9291         * sound.c:
9292         * event-stream.c:
9293         * eval.c:
9294         * buffer.c:
9295         * mule-canna.c: A million DEFVAR_INTs here...
9296         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9297         * extents.c:
9298         * cmdloop.c:
9299         * lisp.h:
9300         * select-x.c:
9301         * console-x.h:
9302         * event-msw.c:
9303         * mule-wnnfns.c:
9304         * hpplay.c:
9305         * ralloc.c:
9306         * alloc.c:
9307         * keymap.c:
9308         * profile.c:
9309         s/int/Fixnum/g in DEFVAR_INT declarations.
9310
9311 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9312
9313         Port pdump to SGI alignment-sensitive environment.
9314         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9315         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9316         properly aligned.
9317         Define and use aligned reading and writing macros.
9318         Use buffered stdio instead of posix i/o for faster dumping.
9319         Eliminate kludgy 256 byte space for header.
9320         Read and write from dump file using structs for alignment safety.
9321         * dumper.c (pdump_align_stream): New.
9322         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9323         * dumper.c (PDUMP_READ_ALIGNED): New.
9324         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9325         * dumper.c (pdump_static_Lisp_Object): New struct.
9326         * dumper.c (pdump_static_pointer): New struct.
9327         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9328         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9329         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9330         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9331
9332         * dumper.c (pdump_backtrace):
9333         * dumper.c (pdump_get_indirect_count):
9334         * dumper.c (pdump_register_object):
9335         * dumper.c (pdump_register_struct):
9336         * dumper.c (pdump_reloc_one):
9337         * dumper.c (pdump_scan_by_alignment):
9338         * dumper.c (pdump_dump_from_root_struct_ptrs):
9339         * dumper.c (pdump_dump_opaques):
9340         * dumper.c (pdump_dump_rtables):
9341         * dumper.c (pdump_dump_from_root_objects):
9342         * dumper.c (pdump):
9343         * dumper.c (pdump_load_finish):
9344         Use aligned reading and writing.
9345
9346         * dumper.c (pdump_free): Make static.
9347         * dumper.c (pdump_hFile): Likewise.
9348         * dumper.c (pdump_hMap): Likewise.
9349
9350 2001-01-26  Martin Buchholz <martin@xemacs.org>
9351
9352         * XEmacs 21.2.43 "Terspichore" is released.
9353
9354 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9355
9356         Type fiddling for window_config.saved_windows_count
9357         * window.c (struct window_config): 
9358         Make saved_windows_count member unsigned.
9359         * window.c (sizeof_window_config_for_n_windows): 
9360         Make parameter unsigned.
9361         * window.c (mark_window_config):
9362         * window.c (window_config_equal):
9363         * window.c (free_window_configuration):
9364         * window.c (Fset_window_configuration):
9365         * window.c (count_windows):
9366         * window.c (Fcurrent_window_configuration):
9367         * window.c (reinit_vars_of_window):
9368         Update all callers and users.
9369
9370 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9371
9372         Alignment correctness for flexible arrays.
9373         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9374         Make alignment-correct. Add interesting comments.
9375         * alloc.c (size_vector):
9376         * alloc.c (make_vector_internal):
9377         * alloc.c (make_bit_vector_internal):
9378         * alloc.c (sweep_bit_vectors_1):
9379         * fns.c (size_bit_vector):
9380         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9381         * window.c (sizeof_window_config_for_n_windows): 
9382         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9383
9384 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9385
9386         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9387
9388 2001-01-23  Andy Piper  <andy@xemacs.org>
9389
9390         * select.c (Fown_selection_internal): pass owned_p
9391
9392         * select-msw.c (mswindows_own_selection): New Signature.
9393
9394         * console.h (struct console_methods): add owned_p to
9395         _own_selection.
9396
9397         * select-x.c (x_own_selection): pass owned_p
9398         (hack_motif_clipboard_selection): use owned_p
9399         (vars_of_select_x): new variable -
9400         x_selection_strict_motif_ownership.
9401
9402 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9403
9404         * specifier.h (specifier_data_offset): Remove pointless parens.
9405         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9406
9407 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9408
9409         Make Lisp_Object sizeof methods be alignment-correct.
9410         pdump must restore objects to the same alignment as the C compiler
9411         assumes.  It really matters on SGIs.
9412         * lstream.c (aligned_sizeof_lstream): New.
9413         (sizeof_lstream): Use aligned_sizeof_lstream.
9414         (Lstream_new): Likewise.
9415         * opaque.c (aligned_sizeof_opaque): New.
9416         (sizeof_opaque): Use aligned_sizeof_opaque.
9417         (make_opaque): Likewise.
9418         * specifier.c (aligned_sizeof_specifier): New.
9419         (sizeof_specifier): Use aligned_sizeof_specifier.
9420         (make_specifier_internal): Likewise.
9421
9422 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9423
9424         * lstream.h (struct lstream): Use max_align_t for trailing data.
9425         * specifier.h (struct Lisp_Specifier): Likewise.
9426
9427 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9428
9429         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9430         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9431         (CCL_SUSPEND): Likewise.
9432         (CCL_INVALID_CMD): Likewise.
9433         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9434         (ccl_driver): Likewise.
9435         (CCL_WRITE_CHAR): Macro hygiene.
9436         (CCL_WRITE_STRING): Macro hygiene.
9437
9438 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9439
9440         Port "portable" dumper to SunOS 4 and HP-UX.
9441         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9442         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9443         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9444
9445 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9446
9447         * lisp.h (ALIGNOF): A better definition for C++.
9448
9449 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9450
9451         Macro hygiene.
9452         Fix printf warnings: int format, long int arg.
9453         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9454         (PUSH_FAILURE_POINT): Use correct printf formats.
9455         (POP_FAILURE_POINT): Use correct printf formats.  
9456         Use do {...} while (0)
9457
9458 2001-01-20  Martin Buchholz <martin@xemacs.org>
9459
9460         * XEmacs 21.2.42 "Poseidon" is released.
9461
9462 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9463
9464         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9465
9466 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9467
9468         De-kludgify FIXED_TYPE free list frobbing.
9469         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9470         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9471         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9472         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9473         * alloc.c (LRECORD_FREE_P): New.
9474         * alloc.c (MARK_LRECORD_AS_FREE): New.
9475         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9476         * alloc.c (STRUCT_FREE_P): Deleted.
9477         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9478         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9479         * alloc.c (STRING_CHARS_FREE_P): New.
9480         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9481         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9482         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9483         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9484         * alloc.c (resize_string): Use new definitions.
9485         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9486         * alloc.c (verify_string_chars_integrity): Use new definitions.
9487         * alloc.c (compact_string_chars): Use new definitions.
9488         * alloc.c: Update monster comments.
9489         * lrecord.h (lrecord_type): Add some new lrecord types for
9490         alloc.c's use.
9491
9492 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9493
9494         Improve alignment hackery.
9495         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9496         (max_align_t): Moved from opaque.h - general purpose.
9497         (ALIGN_PTR): Use size_t, not long.
9498         * opaque.h (max_align_t): Move to lisp.h.
9499
9500 2001-01-18  Norbert Koch  <nk@LF.net>
9501
9502         * gui.h: Fix and add prototypes to fix build problems.
9503
9504 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9505
9506         temacs is going away, so `dump-temacs' is now a bad name.
9507         * .dbxrc (dump-temacs): Rename to `dmp'.
9508         * .gdbinit (dump-temacs): Rename to `dmp'.
9509
9510 2001-01-17  Andy Piper  <andy@xemacs.org>
9511
9512         * glyphs.c (print_image_instance): comment to make martin happy.
9513
9514         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9515         change.
9516
9517         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9518         activation.
9519         (mswindows_tab_control_redisplay): warning suppression.
9520
9521         * glyphs-widget.c (widget_update): re-write to cope with updated
9522         items.
9523         (widget_instantiate): use new gui_item functions.
9524         (tab_control_update): deleted.
9525         (progress_gauge_update): deleted.
9526         (image_instantiator_progress_guage): take out update reference.
9527         (image_instantiator_tree_view): ditto.
9528         (image_instantiator_tab_control): ditto.
9529
9530         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9531         Right the new way.
9532         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9533         return whether anything was changed.
9534         (update_gui_item_keywords): as it sounds.
9535
9536         * gui.h: declare widget_gui_parse_item_keywords.
9537
9538         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9539         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9540
9541 2001-01-17  Martin Buchholz <martin@xemacs.org>
9542
9543         * XEmacs 21.2.41 "Polyhymnia" is released.
9544
9545 2001-01-16  Didier Verna  <didier@xemacs.org>
9546
9547         * glyphs.c (image_instantiate): don't use fallbacks when
9548         instantiating a face's background pixmap by inheritance.
9549
9550 2001-01-14  Mike Sperber <mike@xemacs.org>
9551
9552         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9553         Conditionalize accordingly.
9554
9555 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9556
9557         * dumper.c (pdump_file_get): Fix a compiler warning.
9558
9559 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9560
9561         Make Purify happy when pdumping.
9562         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9563         iniitalizing all bits of new lisp object memory.
9564         * symbols.c (Fmake_local_variable): Likewise.
9565         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9566         * symbols.c (Fdefvaralias): Likewise.
9567         * mule-charset.c (vars_of_mule_charset): Likewise.
9568
9569 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9570         Add the `-nd' flag when running pre-dump operations under the debugger.
9571         * .dbxrc (run-temacs): Add `-nd'.
9572         * .dbxrc (update-elc): Likewise.
9573         * .dbxrc (dump-temacs): Likewise.
9574         * .gdbinit (run-temacs): Likewise.
9575         * .gdbinit (check-temacs): Likewise.
9576         * .gdbinit (update-elc): Likewise.
9577         * .gdbinit (dump-temacs): Likewise.
9578
9579 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9580
9581         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9582         export OBJECT_MODE=64
9583         configure --pdump --use-union-type=no
9584         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9585         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9586
9587         * miscplay.c (sndcnv8U_2mono):
9588         Avoid two uses of `++' in the same expression.
9589         Suppresses a GCC warning.
9590
9591 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9592
9593         Make sure future compilers don't miscompile alloc.c.
9594         * alloc.c:
9595         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9596         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9597
9598 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9599
9600         * dumper.c: A little post-pdump-rename comment fixup.
9601
9602 2001-01-09  Jerry James  <james@eecs.ku.edu>
9603
9604         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9605
9606 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9607
9608         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9609         script:
9610         #!/bin/sh
9611         replace_symbol () {
9612           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9613         }
9614
9615         replace_symbol pdump_wire_lists pdump_weak_object_chains
9616         replace_symbol pdump_wire_list dump_add_weak_object_chain
9617
9618         replace_symbol pdump_wires pdump_root_objects
9619         replace_symbol pdump_wire dump_add_root_object
9620
9621         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9622         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9623
9624         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9625         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9626         replace_symbol dumpstructinfo pdump_root_struct_ptr
9627         replace_symbol dumpstruct dump_add_root_struct_ptr
9628
9629         replace_symbol dumpopaque dump_add_opaque
9630         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9631         replace_symbol dumpopaqueinfos pdump_opaques
9632         replace_symbol dumpopaqueinfo pdump_opaque
9633
9634         replace_symbol nb_structdump nb_root_struct_ptrs
9635         replace_symbol nb_opaquedump nb_opaques
9636
9637         replace_symbol align_table pdump_align_table
9638         replace_symbol dump_header pdump_header
9639
9640         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9641         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9642
9643
9644 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9645
9646         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9647         optimizing bytecount_to_charcount().
9648
9649 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9650
9651         * config.h.in:
9652         (HAVE_DLFCN_H): Removed.
9653         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9654
9655 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9656
9657         Portable dumper maintainability improvements.
9658         * alloc.c (staticpro):
9659         * alloc.c (staticpro_nodump):
9660         * alloc.c (garbage_collect_1):
9661         * alloc.c (reinit_alloc_once_early):
9662         * alloc.c (init_alloc_once_early):
9663         * alloc.c: Move dumper functions to alloc.c.
9664         * dumper.c (pdump_backtrace):
9665         * dumper.c (pdump_dump_structs):
9666         * dumper.c (pdump_dump_opaques):
9667         * dumper.c (pdump_dump_rtables):
9668         * dumper.c (pdump_dump_wired):
9669         * dumper.c (pdump):
9670         * dumper.c (pdump_load_check):
9671         * dumper.c (pdump_load_finish):
9672         * dumper.c (pdump_file_unmap):
9673         * dumper.c (pdump_file_get):
9674         * dumper.c (pdump_resource_free):
9675         * dumper.c (pdump_resource_get):
9676         * dumper.c (pdump_file_free):
9677         * dumper.c (pdump_file_try):
9678         * dumper.c (pdump_load):
9679         Remove fixed size limits on staticpro(), staticpro_nodump(),
9680         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9681         Remove custom code for dumping lrecord_implementations_table - use
9682         dumpopaque instead.
9683         Remove (most of the) custom code for dumping staticpros - dump it
9684         like any other dynarr.
9685
9686         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9687         * dumper.c: Moved functions from alloc.c.
9688         * alloc.c (dumpstruct): Moved to dumper.c.
9689         * alloc.c (dumpopaque): Likewise.
9690         * alloc.c (pdump_wire): Likewise.
9691         * alloc.c (pdump_wire_list): Likewise.
9692
9693         * lisp.h (Dynarr_sizeof): New.
9694         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9695         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9696         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9697
9698         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9699         * lisp.h (dumpopaque): ditto.
9700         * lisp.h (pdump_wire): ditto.
9701         * lisp.h (pdump_wire_list): ditto.
9702
9703 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9704
9705         * make-src-depend (PrintPatternDeps):
9706         Use `sort' to make output independent of perl version.
9707
9708 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9709
9710         Port to Netbsd 1.5.
9711         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9712         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9713
9714 2001-01-03  Didier Verna  <didier@xemacs.org>
9715
9716         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9717         that `focus_frame' is alive before thinking of calling
9718         `redisplay_redraw_cursor' on it.
9719
9720 2001-01-08  Martin Buchholz <martin@xemacs.org>
9721
9722         * XEmacs 21.2.40 is released.
9723
9724 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9725
9726         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9727
9728 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9729
9730         * alloc.c (dbg_valmask): Make const.
9731         * alloc.c (dbg_typemask): Make const.
9732         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9733         * alloc.c (dbg_valbits): Make const.
9734         * alloc.c (dbg_gctypebits): Make const.
9735
9736 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9737
9738         * redisplay-x.c (x_bevel_area):
9739         redisplay.h (struct rune):
9740         Typo fixes in comments.
9741
9742 2001-01-05  Andy Piper  <andy@xemacs.org>
9743
9744         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9745         adjustment.
9746
9747         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9748
9749 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9750
9751         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9752
9753         * mule-ccl.c (stack_idx_of_map_multiple):
9754         Non const global data must not be initialized!
9755         Found by MIYASHITA Hisashi.
9756
9757 2001-01-02  Andy Piper  <andy@xemacs.org>
9758
9759         * frame.c (change_frame_size): make sure frame size is always
9760         marked as changed.
9761
9762         * glyphs.c (image_instance_layout): minor code reuse.
9763
9764         * window.c (Fcurrent_window_configuration): revert previous
9765         change.
9766
9767 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9768
9769         * glyphs.h:
9770         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9771
9772 2000-12-31  Andy Piper  <andy@xemacs.org>
9773
9774         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9775         when widget gets unmapped.
9776
9777         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9778         function. Make sure widgets losing focus don't just drop it.
9779         (handle_focus_event_1): record the widget with focus.
9780
9781 2000-12-31  Andy Piper  <andy@xemacs.org>
9782
9783         * window.c (allocate_window): use
9784         make_image_instance_cache_hash_table.
9785         (make_dummy_parent): ditto.
9786         (Fset_window_configuration): ditto.
9787
9788         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9789
9790         * glyphs.c (process_image_string_instantiator): use
9791         INSTANTIATOR_TYPE.
9792         (get_image_instantiator_governing_domain): ditto.
9793         (normalize_image_instantiator): ditto.
9794         (instantiate_image_instantiator): ditto.
9795         (make_image_instance_1): ditto.
9796         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9797         (instantiator_eq_equal): new function for use with instance hash
9798         tables.
9799         (instantiator_eq_hash): ditto.
9800         (make_image_instance_cache_hash_table): create a suitable hash
9801         table for storing image instances.
9802
9803         * elhash.h (hash_table_weakness): new internal weakness type
9804         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9805         declare new functions.
9806
9807         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9808         another weakness type for glyphs.
9809         (make_standard_lisp_hash_table): new function split out from
9810         make_general_lisp_hash_table.
9811         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9812         (hash_table_instantiate): ditto.
9813         (Fmake_hash_table): ditto.
9814
9815 2000-12-31  Martin Buchholz <martin@xemacs.org>
9816
9817         * XEmacs 21.2.39 is released.
9818
9819 2000-12-29  Andy Piper  <andy@xemacs.org>
9820
9821         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9822
9823         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9824         the frame has changed so that we pick up geometry changes such as
9825         menubar visibility.
9826
9827 2000-12-28  Andy Piper  <andy@xemacs.org>
9828
9829         * lastfile.c (my_ebss): make a char array so we can pad the
9830         bss. Fixes cygwin unexec.
9831
9832         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9833
9834 2000-12-26  Andy Piper  <andy@xemacs.org>
9835
9836         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9837         comments and try and be more precise about a non-/SIGIO world.
9838         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9839         SIGIO.
9840
9841         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9842         we don't normalize to zero width or height.
9843
9844 2000-12-24  Andy Piper  <andy@xemacs.org>
9845
9846         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9847
9848 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9849
9850         * s/sco5.h: SCO 5 has pty support.
9851
9852 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9853
9854         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9855         input-method-xlib.c contains whole contents of input-method-xfs.c,
9856         so we can use input-method-xlib.c's code for USE_XFONTSET
9857         using #ifdefs.
9858         * input-method-xfs.c: removed.
9859
9860 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9861
9862         * file-coding.h (enum coding_category_type): reorder enumerators to
9863         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9864         (now one greater than largest real coding_category_type enumerator).
9865         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9866         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9867         Fcoding_category_list, Fset_coding_priority_list,
9868         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9869         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9870
9871 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9872
9873         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9874         * redisplay-output.c (redisplay_output_window): Clear top of window
9875         when face is changed.
9876         * redisplay-x.c (x_redraw_exposed_window): Call
9877         redisplay_clear_top_of_window.
9878         * redisplay.h: Publish redisplay_clear_top_of_window.
9879
9880 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9881
9882         * buffer.c (Fkill_buffer): Map over all devices.
9883         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9884         (list_windows): New function.
9885         (list_all_windows): Ditto.
9886         (Freplace_buffer_in_windows): Use them.
9887
9888 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9889
9890         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9891         (Fopen_database): Use `db_create' instead of `db_open'.
9892         (syms_of_database): Initialize Qqueue.
9893
9894 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9895
9896         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9897         buffer_local_face_property.
9898         * buffer.h (struct buffer): New member buffer_local_face_property.
9899         * window.c (Fset_window_buffer):  Mark window's face as changed
9900         when buffer has buffer local face.
9901         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9902         * objects.c (color_after_change): Set buffer_local_face_property
9903         when locale of face specifier is buffer.
9904         * objects.c (font_after_change): Ditto.
9905         * objects.c (face_boolean_after_change): Ditto.
9906         * glyphs.c (image_after_change): Ditto.
9907
9908 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9909
9910         * nt.c (mswindows_fstat): Report file permissions, volume serial
9911         number, etc. Code adapted from FSF Emacs 20.7.
9912
9913 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9914
9915         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9916         of stat when we don't have symbolic links, to make sure
9917         mswindows_stat is called on mswindows.
9918
9919 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9920
9921         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9922
9923 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9924
9925         * doprnt.c (emacs_doprnt_1): More printing fixes.
9926         Make printing of numbers compatible with libc and FSF Emacs.
9927         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9928         Use the system printf to do most of the hard work of formatting,
9929         instead of doprnt_1().
9930         Calculate memory to allocate for format string.
9931         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9932         (doprnt_1): Cleaner code and documentation.
9933
9934 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9935
9936         * Makefile.in.in: Use the loop variable to install headers.
9937
9938 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9939
9940         * window.c (Fsplit_window): Don't invalidate face cache.
9941
9942 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9943
9944         * minibuf.c (Fall_completions): Undo the previous change
9945         which removed checking elements start with space.
9946
9947 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9948
9949         * mule-canna.c: Didier suppression.
9950
9951 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9952
9953         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9954         (warning suppression).  Add English comment translations.
9955
9956 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9957
9958         * unexelfsgi.c (unexec): Better test for mmap failure.
9959
9960 2000-12-05  Martin Buchholz <martin@xemacs.org>
9961
9962         * XEmacs 21.2.38 is released.
9963
9964 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9965
9966         * redisplay.c (bar-cursor): Make a user variable.
9967
9968         * symsinit.h: Add init_postgresql_from_environment.
9969
9970 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9971
9972         * regex.c: Convert to clean C.
9973
9974 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9975
9976         * realpath.c:
9977         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9978         initialization.
9979         (sys_readlink): renamed to system_readlink to avoid conflict with
9980         the other sys_readlink.
9981
9982 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9983
9984         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9985
9986 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9987
9988         * postgresql.c (init_postgresql_from_environment): new function.
9989         (vars_of_postgresql): Move code initializing Lisp variables out and
9990         into init_postgresql_from_environment.
9991         emacs.c (main_1): Call init_postgresql_from_environment if and only
9992         if running a dumped XEmacs.
9993
9994 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9995
9996         * buffer.c: Make find-file-compare-truenames default to true on
9997         windows.
9998
9999         * realpath.c (win32_abs_start):
10000         (cygwin_readlink):
10001         (win32_readlink): New functions.
10002         (xrealpath): Return really real filenames on windows.
10003
10004         * fileio.c (Ffile_truename): Make file-truename work on windows.
10005
10006 2000-11-29  Didier Verna  <didier@xemacs.org>
10007
10008         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
10009         * faces.c (update_face_cachel_data): use it.
10010         * faces.c (add_face_cachel): use it. Complete background pixmap
10011         frobbing in face cache if `update_face_cachel_data' has not done so.
10012
10013 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
10014
10015         * search.c (string_match_1): Don't set last_thing_searched
10016         when search failed.
10017
10018 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
10019
10020         * buffer.c: Include casetab.h
10021         (common_init_complex_vars_of_buffer): Use new case-table object.
10022         * buffer.h: Include casetab.h
10023         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
10024         (DOWNCASE_TABLE_OF): Ditto.
10025         * bufslots.h: Remove char-tables and add case-table.
10026         * casetab.c: Include casetab.h
10027         (CASE_TABLE_P): Removed.
10028         (mark_case_table): New function.
10029         (allocate_case_table): New function.
10030         (Fcase_table_p): Use new case-table.
10031         (case_table_char): New function.
10032         (Fget_case_table): Ditto.
10033         (Fput_case_table): Ditto.
10034         (Fput_case_table_pair): Ditto.
10035         (Fcopy_case_table): Ditto.
10036         (Fcurrent_case_table): Return case-table.
10037         (Fstandard_case_table): Return case-table.
10038         (Fset_case_table): Fix doc-string.
10039         (set_case_table): Use case-table
10040         (syms_of_casetab): DEFSUBR new functions.
10041         (complex_vars_of_casetab): Set up standard case-table.
10042         * casetab.h: New file.
10043         * editfns.c: Include casetab.h
10044         (Fcompare_buffer_substrings): Use case-table.
10045         * inline.c: Include casetab.h
10046         * lisp.h: Remove bogus extern.
10047         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
10048         * search.c: Include casetab.h
10049         (TRANSLATE_ASCII): Removed.
10050         (TRANSLATE): Unconditionally translate character.
10051         (looking_at_1): Use case-table.
10052         (string_match_1): Ditto.
10053         (fast_string_match): Ditto.
10054         (search_command): Ditto.
10055         (search_buffer): Separate boyer_moore.  Check whether
10056         boyer_moore is possible.
10057         (simple_search): New function.
10058         (boyer_moore): Separated from search_buffer. Translate char.
10059
10060 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10061
10062         * regex.c (RE_TR_ASCII): Removed.
10063         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
10064         (PATFETCH): Call PATFETCH_RAW.
10065         (PATFETCH_RAW): Fetch Emchar.
10066         (PATUNFETCH): Decrement charptr.
10067         (GET_BUFFER_SPACE): Rename b to buf_end.
10068         (BUF_PUSH): Ditto.
10069         (BUF_PUSH_2): Ditto.
10070         (BUF_PUSH_3): Ditto.
10071         (EXTEND_BUFFER): Ditto.
10072         (SET_LIST_BIT): Ditto.
10073         (regex_compile): Ditto.  Translate non ASCII char.
10074         (compile_range): Ditto.
10075         (re_search_2): Ditto.
10076         (re_match_2_internal): Compare Emchar.
10077         (bcmp_translate): Ditto.
10078
10079 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
10080
10081         * lisp.h (basic char/int typedefs):  comment improvement.
10082
10083 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
10084
10085         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
10086         unstomp inhibit_site_lisp.  Improve comments.
10087
10088 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
10089
10090         * mule-charset.c (Fcharset_property):  improve type checking, comments.
10091
10092 2000-11-28  Andy Piper  <andy@xemacs.org>
10093
10094         * redisplay-output.c (redisplay_output_subwindow): make sure we do
10095         clipped display for windows in the gutter also.
10096         (redisplay_display_boxes_in_window_p): change semantics of return
10097         codes to be more intuitive.
10098
10099         * gutter.h: declare display_boxes_in_gutter_p.
10100
10101         * gutter.c (display_boxes_in_gutter_p): new function for
10102         redisplay.
10103
10104 2000-11-22  Andy Piper  <andy@xemacs.org>
10105
10106         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10107         autodetect domain.
10108
10109 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10110
10111         * callproc.c (Fold_call_process_internal):
10112         * gpm.c (Freceive_gpm_event):
10113         (tty_get_foreign_selection): Might be just warning supression.
10114         * fileio.c (Fwrite_region_internal):
10115         (Fset_visited_file_modtime):
10116         * keymap.c (event_matches_key_specifier_p):
10117         Initialize GCPROed variable.
10118
10119         * menubar-x.c (command_builder_find_menu_accelerator):
10120         Initialize before use.
10121
10122 2000-11-23  Andy Piper  <andy@xemacs.org>
10123
10124         * unexcw.c (unexec): make the resulting executable executable.
10125
10126 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10127
10128         * doc.c (get_doc_string):
10129         Use size_t, not int, for result of XSTRING_LENGTH.
10130
10131         * cmds.c (Fdelete_char):
10132         * cmds.c (Fpoint_at_eol):
10133         * cmds.c (Fself_insert_command):
10134         Use EMACS_INT, not int, for result of XINT.
10135         Someday, someone will want to insert more than 2**31 identical characters.
10136
10137         * cmds.c (Fdelete_char):
10138         * cmds.c (Fdelete_backward_char):
10139         * syntax.c (Fforward_word):
10140         * syntax.c (Fforward_comment):
10141         Make COUNT argument optional, for consistency with forward-char et al.
10142
10143 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10144
10145         * lisp.h:
10146         * print.c (long_to_string):
10147         Return a useful value: the pointer at end of data written.
10148
10149         * doprnt.c:
10150         Use `static const char * const' for constant strings.
10151         (union printf_arg): Delete `i', `ui' members.
10152         (get_doprnt_args):
10153         (emacs_doprnt_1):
10154         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10155         Do all printf-ing via the `l' specifier.
10156         Use EMACS_INT instead of int.
10157         Optimize.
10158
10159 2000-11-20  Didier Verna  <didier@xemacs.org>
10160
10161         * faces.c (update_face_cachel_data): don't frob the background
10162         pixmap when the window is being created. The face is needed but
10163         does not exist yet.
10164
10165 2000-11-20  Andy Piper  <andy@xemacs.org>
10166
10167         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10168         messing with a debug environment.
10169
10170 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10171
10172         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10173
10174 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10175
10176         * casetab.c (Fcase_table_p): Fix compile error and crash.
10177
10178 2000-11-18  Philip Aston  <philipa@mail.com>
10179
10180         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10181
10182 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10183
10184         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10185         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10186
10187 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10188
10189         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10190         * unexelf.c: Use HAVE_ELF_H.
10191         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10192         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10193         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10194         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10195         for testing.
10196         So this is an unexelfsgi.c from a different line of development.
10197
10198 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10199
10200         * regex.c (RE_TR_ASCII): New function.
10201         (RE_TRANSLATE): Call it.
10202
10203 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10204
10205         * buffer.h (TRT_TABLE_OF): Remove assert.
10206         (IN_TRT_TABLE_DOMAIN): Removed.
10207
10208 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10209
10210         * free-hook.c (log_gcpro):
10211         (show_gcprohist): Add support for GCPRO5.
10212
10213 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10214
10215         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10216
10217 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10218
10219         * symeval.h: Declare flush_all_buffer_local_cache.
10220
10221         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10222         (flush_buffer_local_cache): Added.
10223         (flush_all_buffer_local_cache): Added.
10224
10225         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10226
10227         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10228         (pdump_dump_data): Ditto.
10229         (pdump_reloc_one): Ditto.
10230         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10231         before dumping.
10232
10233
10234 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10235
10236         * buffer.c: Remove if 0'ed entry.
10237         * buffer.h: Rewrite TRT to use char-table.
10238         * bufslots.h: Remove mirror tables.
10239         * casetab.c: Remove mirror tables.
10240         (CASE_TABLE_P): New macro.
10241         (Fcase_table_p): Element of a case table is string or char-table.
10242         (make_mirror_trt_table): Removed.
10243         (set_case_table): Setup char-table from strings for backward
10244         compatibility.
10245         * dired.c (Fdirectory_files):
10246         * dired-msw.c: (mswindows_get_files):
10247         * lisp.h: Change prototype of re_pattern_buffer.
10248         * regex.c: (RE_TRANSLATE): New macro.
10249         (TRANSLATE_P): Ditto.
10250         Change translate to type RE_TRANSLATE_TYPE.
10251         * regex.h: Define RE_TRANSLATE_TYPE
10252         * search.c (TRANSLATE): New macro.
10253         (TRANSLATE_ASCII): New macro.
10254         Translate table is changed to Lisp_Object.
10255         (signal_failure): Inhibit return.
10256
10257 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10258
10259         * device-msw.c:
10260         * eldap.c:
10261         * event-Xt.c:
10262         * event-stream.c:
10263         * print.c:
10264         Do UNGCPRO before return.
10265
10266 2000-11-14  Martin Buchholz <martin@xemacs.org>
10267
10268         * XEmacs 21.2.37 is released.
10269
10270 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10271
10272         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10273         Add comments about discarded return value.
10274
10275 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10276
10277         * callint.c:
10278         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10279
10280 2000-10-27  Andy Piper  <andy@xemacs.org>
10281
10282         * gutter.c (Fset_default_gutter_position): default left and right
10283         gutters to visible.
10284         (calculate_gutter_size): calculate resonable heuristic for left
10285         and right gutter sizes.
10286         (specifier_vars_of_gutter): change left and right gutter sizes to
10287         autodetect.
10288         (calculate_gutter_size_from_display_lines): new function.
10289         (output_gutter): check for resizing on left and right gutters.
10290         (clear_gutter): don't special case top and left gutters.
10291         (specifier_vars_of_gutter): use new signature for
10292         set_specifier_caching.
10293
10294         * glyphs-x.c (x_redisplay_widget): spelling fix.
10295         * glyphs.c (specifier_vars_of_glyphs):
10296         * menubar.c (specifier_vars_of_menubar):
10297         * redisplay.c (specifier_vars_of_redisplay):
10298         * toolbar.c (specifier_vars_of_toolbar):
10299         * window.c (specifier_vars_of_window):
10300         * scrollbar.c (specifier_vars_of_scrollbar):
10301         (complex_vars_of_scrollbar): use new signature for
10302         set_specifier_caching.
10303
10304         * specifier.c (set_specifier_caching): include recompute flag.
10305         (recompute_one_cached_specifier_in_window): always recompute if
10306         flag set.
10307         (recompute_one_cached_specifier_in_frame): ditto.
10308
10309         * specifier.h (struct specifier_caching): add recompute flag.
10310
10311 2000-10-24  Andy Piper  <andy@xemacs.org>
10312
10313         * unexcw.c (copy_executable_and_dump_data_section): add new
10314         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10315         5.0 happy.
10316
10317 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10318
10319         * console-x.h (x_device): New member modifier_release_time.
10320         * event-Xt.c (x_handle_sticky_modifiers):
10321         Bound interval modifier keys are sticky.
10322         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10323         * events.h: extern it.
10324
10325 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10326
10327         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10328
10329 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10330
10331         * event-stream.c (execute_command_event): Preserve current_events
10332         and the like when event is misc-user-event.
10333         Inhibit quit during the call to maybe_echo_keys.
10334
10335 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10336
10337         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10338         symlink when buffer is killed.
10339         (inhibit_clash_detection): New variable.
10340
10341 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10342
10343         * console.c (Fset_input_method): Trigger redisplay on tty.
10344
10345 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10346
10347         * process.c (Fprocess_status): Revert to previous behavior:
10348         (process-status "nosuchprocess") ==> nil
10349
10350 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10351
10352         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10353         Work around another GCC 2.95.2 optimizer bug.
10354
10355 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10356
10357         * process.c (Fget_process): Use LIST_LOOP_2.
10358         (kill_buffer_processes): Use LIST_LOOP_2.
10359
10360         * minibuf.c (Fall_completions):
10361         Delete old non-functional code for FSF fourth argument.
10362
10363         * frame.c (frame_matches_frame_spec):
10364         Renamed from `frame_matches_frametype'.  Update all callers.
10365         (device_matches_device_spec):
10366         Renamed from 'device_matches_console_spec'.  Update all callers.
10367
10368         * doc.c (Fsubstitute_command_keys):
10369         Remove buffer overflow crash.  Small code cleanups.
10370
10371         * casetab.c (check_case_table): Simpler code.
10372
10373         * window.c (Freplace_buffer_in_windows):
10374         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10375         (and similar implementation) as Fdelete_windows_on.
10376         Update all callers.
10377
10378         * alloc.c (Fmake_list):
10379         * alloc.c (make_vector):
10380         * alloc.c (Fmake_vector):
10381         * alloc.c (make_bit_vector):
10382         * alloc.c (Fmake_bit_vector):
10383         * alloc.c (Fbit_vector):
10384         * alloc.c (Fmake_string):
10385         * alloc.c (Fpurecopy):
10386         * alloc.c (Fmemory_limit):
10387         * buffer.c:
10388         * buffer.c (Fget_buffer):
10389         * buffer.c (Fkill_buffer):
10390         * buffer.c (complex_vars_of_buffer):
10391         * bytecode.c (Fcompiled_function_stack_depth):
10392         * callint.c (Fprefix_numeric_value):
10393         * event-stream.c:
10394         * event-stream.c (Fread_key_sequence):
10395         * casetab.c:
10396         * casetab.c (Fcase_table_p):
10397         * casetab.c (check_case_table):
10398         * casetab.c (Fset_case_table):
10399         * casetab.c (Fset_standard_case_table):
10400         * chartab.c:
10401         * chartab.c (Fchar_table_type):
10402         * chartab.c (Freset_char_table):
10403         * chartab.c (Fget_char_table):
10404         * chartab.c (Fget_range_char_table):
10405         * chartab.c (Fput_char_table):
10406         * chartab.c (Fmap_char_table):
10407         * chartab.c (Fcategory_table_p):
10408         * chartab.c (Fcheck_category_at):
10409         * chartab.c (Fchar_in_category_p):
10410         * chartab.c (Fcategory_table):
10411         * chartab.c (Fcopy_category_table):
10412         * chartab.c (Fset_category_table):
10413         * chartab.c (Fcategory_designator_p):
10414         * chartab.c (Fcategory_table_value_p):
10415         * cmds.c (Fdelete_char):
10416         * cmds.c (Fdelete_backward_char):
10417         * cmds.c (Fself_insert_command):
10418         * cmds.c (Fself_insert_internal):
10419         * console.c (Fvalid_console_type_p):
10420         * console.c (Fcdfw_console):
10421         * console.c (Fconsole_type):
10422         * console.c (Fconsole_name):
10423         * console.c (Fconsole_device_list):
10424         * console.c (Fconsole_on_window_system_p):
10425         * data.c:
10426         * data.c (Feq):
10427         * data.c (Fold_eq):
10428         * data.c (Fsubr_interactive):
10429         * data.c (Fchar_to_int):
10430         * data.c (Fint_to_char):
10431         * data.c (Fsetcar):
10432         * data.c (Fsetcdr):
10433         * data.c (Fnumber_to_string):
10434         * data.c (Fstring_to_number):
10435         * data.c (Frem):
10436         * database.c (mark_database):
10437         * database.c (finalize_database):
10438         * database.c (Fdatabase_live_p):
10439         * database.c (Fdatabasep):
10440         * device-x.c (Fx_get_resource):
10441         * device.c (Fdfw_device):
10442         * dired.c:
10443         * dired.c (Ffile_name_completion):
10444         * dired.c (Ffile_name_all_completions):
10445         * dired.c (Fuser_name_completion):
10446         * dired.c (Fuser_name_completion_1):
10447         * dired.c (Fuser_name_all_completions):
10448         * doc.c (Fdocumentation):
10449         * doc.c (Fdocumentation_property):
10450         * doc.c (Fsubstitute_command_keys):
10451         * editfns.c:
10452         * editfns.c (Fchar_to_string):
10453         * editfns.c (Fstring_to_char):
10454         * editfns.c (Ftemp_directory):
10455         * editfns.c (Finsert_char):
10456         * editfns.c (Fbuffer_substring_no_properties):
10457         * editfns.c (Fnarrow_to_region):
10458         * editfns.c (Fchar_equal):
10459         * editfns.c (Fchar_Equal):
10460         * editfns.c (Ftranspose_regions):
10461         * emacs.c (Fdump_emacs):
10462         * eval.c (Fthrow):
10463         * eval.c (Fcommand_execute):
10464         * eval.c (Fautoload):
10465         * eval.c (Fbacktrace):
10466         * eval.c (Fbacktrace_frame):
10467         * events.c:
10468         * events.c (Fcopy_event):
10469         * events.c (Fcharacter_to_event):
10470         * events.c (Fevent_button):
10471         * events.c (Fevent_process):
10472         * extents.c:
10473         * extents.c (Fnext_extent_change):
10474         * extents.c (Fextent_property):
10475         * faces.c (Ffacep):
10476         * faces.c (Fmake_face):
10477         * file-coding.c:
10478         * file-coding.c (Fencode_shift_jis_char):
10479         * file-coding.c (Fencode_big5_char):
10480         * fileio.c (Ffile_name_directory):
10481         * fileio.c (Ffile_name_nondirectory):
10482         * fileio.c (Ffile_name_as_directory):
10483         * fileio.c (Fdirectory_file_name):
10484         * fileio.c (Ffile_truename):
10485         * fileio.c (Fsubstitute_in_file_name):
10486         * fileio.c (Ffile_modes):
10487         * fileio.c (Fset_file_modes):
10488         * fileio.c (Fset_default_file_modes):
10489         * fileio.c (Fverify_visited_file_modtime):
10490         * floatfns.c (Facos):
10491         * floatfns.c (Fasin):
10492         * floatfns.c (Fatan):
10493         * floatfns.c (Fcos):
10494         * floatfns.c (Fsin):
10495         * floatfns.c (Ftan):
10496         * floatfns.c (Fbessel_j0):
10497         * floatfns.c (Fbessel_j1):
10498         * floatfns.c (Fbessel_jn):
10499         * floatfns.c (Fbessel_y0):
10500         * floatfns.c (Fbessel_y1):
10501         * floatfns.c (Fbessel_yn):
10502         * floatfns.c (Ferf):
10503         * floatfns.c (Ferfc):
10504         * floatfns.c (Flog_gamma):
10505         * floatfns.c (Fexp):
10506         * floatfns.c (Fexpt):
10507         * floatfns.c (Flog):
10508         * floatfns.c (Flog10):
10509         * floatfns.c (Fsqrt):
10510         * floatfns.c (Fcube_root):
10511         * floatfns.c (Facosh):
10512         * floatfns.c (Fasinh):
10513         * floatfns.c (Fatanh):
10514         * floatfns.c (Fcosh):
10515         * floatfns.c (Fsinh):
10516         * floatfns.c (Ftanh):
10517         * floatfns.c (Fabs):
10518         * floatfns.c (Ffloat):
10519         * floatfns.c (Flogb):
10520         * floatfns.c (Fceiling):
10521         * floatfns.c (Ffloor):
10522         * floatfns.c (Fround):
10523         * floatfns.c (Ftruncate):
10524         * floatfns.c (Ffceiling):
10525         * floatfns.c (Fffloor):
10526         * floatfns.c (Ffround):
10527         * floatfns.c (Fftruncate):
10528         * fns.c (Fstring_equal):
10529         * fns.c (Fstring_lessp):
10530         * fns.c (concat2):
10531         * fns.c (concat3):
10532         * fns.c (vconcat2):
10533         * fns.c (vconcat3):
10534         * fns.c (Fsubstring):
10535         * fns.c (Fassoc):
10536         * fns.c (Fold_assoc):
10537         * fns.c (assoc_no_quit):
10538         * fns.c (Fassq):
10539         * fns.c (Fold_assq):
10540         * fns.c (assq_no_quit):
10541         * fns.c (Frassoc):
10542         * fns.c (Fold_rassoc):
10543         * fns.c (Frassq):
10544         * fns.c (Fold_rassq):
10545         * fns.c (rassq_no_quit):
10546         * fns.c (Fremassoc):
10547         * fns.c (remassoc_no_quit):
10548         * fns.c (Fremassq):
10549         * fns.c (remassq_no_quit):
10550         * fns.c (Fremrassoc):
10551         * fns.c (Fremrassq):
10552         * fns.c (remrassq_no_quit):
10553         * fns.c (Fsort):
10554         * fns.c (Fplist_get):
10555         * fns.c (Fplist_put):
10556         * fns.c (Fplist_remprop):
10557         * fns.c (Fplist_member):
10558         * fns.c (Flax_plist_get):
10559         * fns.c (Flax_plist_put):
10560         * fns.c (Flax_plist_remprop):
10561         * fns.c (Flax_plist_member):
10562         * fns.c (Fequal):
10563         * fns.c (Fold_equal):
10564         * fns.c (Frequire):
10565         * fns.c (Fbase64_encode_region):
10566         * fns.c (Fbase64_encode_string):
10567         * fns.c (Fbase64_decode_region):
10568         * frame.c:
10569         * frame.c (frame_matches_frame_spec):
10570         * frame.c (device_matches_device_spec):
10571         * frame.c (next_frame):
10572         * frame.c (previous_frame):
10573         * frame.c (Fnext_frame):
10574         * frame.c (Fprevious_frame):
10575         * frame.c (Fframe_property):
10576         * frame.c (Fset_frame_height):
10577         * frame.c (Fset_frame_size):
10578         * frame.h:
10579         * glyphs.c:
10580         * glyphs.c (if):
10581         * glyphs.c (decode_error_behavior_flag):
10582         * glyphs.c (Fmake_image_instance):
10583         * indent.c (Findent_to):
10584         * intl.c (Fignore_defer_gettext):
10585         * keymap.c (Fkeymapp):
10586         * keymap.c (Flookup_key):
10587         * lread.c:
10588         * lread.c (Fload_internal):
10589         * lread.c (Feval_buffer):
10590         * lread.c (Feval_region):
10591         * macros.c (Fexecute_kbd_macro):
10592         * marker.c (set_marker_internal):
10593         * marker.c (Fset_marker):
10594         * marker.c (set_marker_restricted):
10595         * marker.c (Fcopy_marker):
10596         * marker.c (noseeum_copy_marker):
10597         * menubar.c:
10598         * menubar.c (Fpopup_menu):
10599         * minibuf.c:
10600         * mule-charset.c (Fcharset_name):
10601         * mule-charset.c (Fchar_charset):
10602         * mule-charset.c (Fchar_octet):
10603         * mule-charset.c (Fsplit_char):
10604         * mule-wnnfns.c (Fwnn_open):
10605         * mule-wnnfns.c (Fwnn_dict_comment):
10606         * mule-wnnfns.c (Fwnn_quit_henkan):
10607         * mule-wnnfns.c (Fwnn_word_toroku):
10608         * mule-wnnfns.c (Fwnn_word_sakujo):
10609         * mule-wnnfns.c (Fwnn_word_use):
10610         * mule-wnnfns.c (Fwnn_hindo_set):
10611         * objects.c:
10612         * objects.c (Fmake_color_instance):
10613         * objects.c (Fmake_font_instance):
10614         * print.c (Fwrite_char):
10615         * process.c:
10616         * process.c (mark_process):
10617         * process.c (print_process):
10618         * process.c (get_process_from_usid):
10619         * process.c (Fprocessp):
10620         * process.c (Fprocess_live_p):
10621         * process.c (Fget_process):
10622         * process.c (Fget_buffer_process):
10623         * process.c (get_process):
10624         * process.c (Fprocess_id):
10625         * process.c (Fprocess_name):
10626         * process.c (Fprocess_command):
10627         * process.c (init_process_io_handles):
10628         * process.c (start_process_unwind):
10629         * process.c (Fstart_process_internal):
10630         * process.c (Fopen_multicast_group_internal):
10631         * process.c (Fset_process_window_size):
10632         * process.c (read_process_output):
10633         * process.c (send_process):
10634         * process.c (Fprocess_tty_name):
10635         * process.c (Fset_process_buffer):
10636         * process.c (Fprocess_buffer):
10637         * process.c (Fprocess_mark):
10638         * process.c (set_process_filter):
10639         * process.c (Fset_process_filter):
10640         * process.c (Fprocess_filter):
10641         * process.c (Fprocess_send_region):
10642         * process.c (Fprocess_send_string):
10643         * process.c (exec_sentinel):
10644         * process.c (Fset_process_sentinel):
10645         * process.c (Fprocess_sentinel):
10646         * process.c (status_notify):
10647         * process.c (Fprocess_status):
10648         * process.c (Fprocess_exit_status):
10649         * process.c (process_send_signal):
10650         * process.c (Fprocess_send_eof):
10651         * process.c (deactivate_process):
10652         * process.c (remove_process):
10653         * process.c (Fdelete_process):
10654         * process.c (kill_buffer_processes):
10655         * process.c (Fprocess_kill_without_query):
10656         * process.c (Fprocess_kill_without_query_p):
10657         * rangetab.c:
10658         * rangetab.c (Fget_range_table):
10659         * rangetab.c (Fput_range_table):
10660         * rangetab.c (Fremove_range_table):
10661         * rangetab.c (Fclear_range_table):
10662         * search.c:
10663         * search.c (Fskip_chars_forward):
10664         * search.c (Fskip_chars_backward):
10665         * search.c (Fskip_syntax_forward):
10666         * search.c (Fskip_syntax_backward):
10667         * search.c (search_command):
10668         * search.c (Freplace_match):
10669         * search.c (Fregexp_quote):
10670         * select.c (Fown_selection_internal):
10671         * select.c (Fselection_owner_p):
10672         * select.c (Fselection_exists_p):
10673         * select.c (Fget_selection_internal):
10674         * specifier.c:
10675         * symbols.c:
10676         * symbols.c (Fintern):
10677         * symbols.c (Fintern_soft):
10678         * symbols.c (Funintern):
10679         * symbols.c (Fapropos_internal):
10680         * symbols.c (Fset_default):
10681         * syntax.c:
10682         * syntax.c (Fsyntax_table_p):
10683         * syntax.c (Fcopy_syntax_table):
10684         * syntax.c (Fset_syntax_table):
10685         * syntax.c (Fchar_syntax):
10686         * syntax.c (syntax_match):
10687         * syntax.c (Fmatching_paren):
10688         * syntax.c (Fforward_word):
10689         * syntax.c (scan_lists):
10690         * syntax.c (Fscan_lists):
10691         * syntax.c (Fscan_sexps):
10692         * syntax.c (Fparse_partial_sexp):
10693         * toolbar.c (Fcheck_toolbar_button_syntax):
10694         * tooltalk.doc:
10695         * window.c:
10696         * window.c (Fwindowp):
10697         * window.c (Fwindow_live_p):
10698         * window.c (Fwindow_point):
10699         * window.c (Fdelete_window):
10700         * window.c (Fnext_window):
10701         * window.c (Fprevious_window):
10702         * window.c (Fother_window):
10703         * window.c (window_loop):
10704         * window.c (Fget_lru_window):
10705         * window.c (Fsplit_window):
10706         * window.c (Fenlarge_window):
10707         * window.c (Fenlarge_window_pixels):
10708         * window.c (Fshrink_window):
10709         * window.c (Fshrink_window_pixels):
10710         * window.c (change_window_height):
10711         * window.c (Fwindow_configuration_p):
10712         * window.c (Fcurrent_window_configuration):
10713         * window.h:
10714         * casefiddle.c (casify_object):
10715         * casefiddle.c (Fupcase):
10716         * casefiddle.c (Fdowncase):
10717         * casefiddle.c (Fcapitalize):
10718         * casefiddle.c (Fupcase_initials):
10719         * casefiddle.c (casify_region_internal):
10720         * casefiddle.c (casify_region):
10721         * casefiddle.c (Fupcase_region):
10722         * casefiddle.c (Fdowncase_region):
10723         * casefiddle.c (Fcapitalize_region):
10724         * casefiddle.c (Fupcase_initials_region):
10725         * casefiddle.c (Fupcase_word):
10726         * casefiddle.c (Fdowncase_word):
10727         * casefiddle.c (Fcapitalize_word):
10728         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10729         Replace 0 with '\0' when working with bytes.
10730         Replace initial "(" with "\(" in docstrings.
10731
10732 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10733
10734         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10735
10736         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10737
10738 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10739
10740         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10741
10742 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10743
10744         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10745         correctly.
10746
10747 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10748
10749         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10750         (inhibit_auto_save_session): New variable.
10751         (vars_of_fileio): Declare and initialize them.
10752         * fileio.c (Fdo_auto_save): Don't create session file if
10753         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10754
10755 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10756
10757         * sgiplay.c (play_internal): C++ compilability.
10758         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10759         * callproc.c (Fold_call_process_internal):
10760         Remove unused vars `env', `first'.
10761         * scrollbar.c (update_scrollbar_instance):
10762         #### unused var `current_window'.
10763         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10764         etc. within #ifdef NOT_YET.
10765         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10766         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10767         * specifier.c (specifier_instance):
10768         #### unused var `tag'.
10769         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10770
10771 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10772
10773         * fns.c (Fbutlast):
10774         * fns.c (list_sort):
10775         * fns.c (Ffillarray):
10776         * fns.c (bytecode_nconc2):
10777         * fns.c (Fnconc):
10778         * fns.c (mapcar1):
10779         * fns.c (Fmapconcat):
10780         Be pedantically 64-bit correct.  For the time when someone will
10781         want to have a list with length > 2**32.
10782
10783         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10784         Work around MIPSpro compiler bug.
10785
10786         * process-unix.c (unix_kill_child_process): Add snarky comment.
10787         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10788
10789         * config.h.in: Oops, _getpt ==> _getpty
10790
10791 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10792
10793         * config.h.in:
10794         * regex.c:
10795         Use void*, not char*, as return type of alloca().
10796
10797         * alloc.c (free_marker): Side effect inside assert expression!
10798
10799 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10800
10801         * mule-charset.c (Fset_charset_ccl_program): To check
10802         if the given ccl program is valid, use setup_ccl_program()
10803         instead of CHECK_VECTOR().
10804         (Fmake_charset): Likewise.
10805
10806 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10807
10808         * faces.c (get_extent_fragment_face_cache_index):
10809         Fix cachel.merged_faces memory leak.
10810
10811 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10812
10813         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10814         Reset MSB of octets obtained by DECODE_SJIS
10815         because of the incompatibility with Emacs.
10816         (ccl_driver)<CCL_ENCODE_SJIS>:
10817         Set MSB of octets before passing them to
10818         ENCODE_SJIS because of the incompatibility
10819         with Emacs.
10820
10821 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10822
10823         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10824         (DECLARE_LRECORD): Undo the last change.
10825         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10826
10827 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10828
10829         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10830         the implementation to lrecord_implementations_table.
10831
10832 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10833
10834         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10835         initial value of `lrecord_type_##c_name' and
10836         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10837         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10838         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10839         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10840         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10841
10842 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10843
10844         * miscplay.c (sndcnv8S_2mono):
10845         (sndcnv2monounsigned):
10846         (sndcnvULaw_2linear):
10847         (sndcnv16swap):
10848         Remove implementation-defined behavior.
10849
10850 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10851
10852         * input-method-xlib.c: Warning suppression.
10853
10854 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10855
10856         * mule-ccl.c: Sync up with Emacs 21.0.90.
10857         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10858         Do nothing.
10859         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10860         Likewise.
10861         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10862         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10863         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10864         leading char belongs to official 2-dimensional charset.
10865         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10866         write the given character as is.  Otherwise,
10867         if it is a multibyte char, convert it by
10868         non_ascii_set_charptr_emchar, then write it.
10869         (CCL_WRITE_STRING): Likewise.
10870         (ccl_get_compiled_code): New function.
10871         (setup_ccl_program): When ccl_prog is invalid,
10872         return -1.
10873         (Fregister_code_conversion_map): New function.
10874         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10875
10876         * mule-ccl.h: Sync up with Emacs 21.0.90.
10877         (Fregister_ccl_program): export it.
10878
10879         * redisplay-msw.c (separate_textual_runs):
10880         If ccl program is not valid, don't do ccl conversion.
10881
10882         * redisplay-x.c (separate_textual_runs): Ditto.
10883
10884         * file-coding.c (Fmake_coding_system):
10885         When type is ccl and value is vector, register it
10886         with a proper symbol.  And checks whether the
10887         given ccl program is valid.
10888         (mule_decode): When calling ccl_driver, if src indicates
10889         NULL pointer, set an empty string instead.
10890         (mule_encode): Likewise.
10891
10892 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10893
10894         The following large batch of changes gets us back to a state of
10895         C++ compilability.  Extbyte is now a char, which means that
10896         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10897
10898         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10899
10900         * sound.c (Fplay_sound): Type correctness.
10901
10902         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10903         (x_get_window_property): Type correctness.
10904         (receive_incremental_selection): unsigned char ==> Extbyte
10905         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10906         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10907         (Fx_store_cutbuffer_internal): Type correctness.
10908
10909         * process-unix.c (try_to_initialize_subtty): Type correctness.
10910
10911         * objects-x.c (x_print_color_instance): Type correctness.
10912         (x_print_font_instance): Type correctness.
10913         (x_list_fonts): SExtbyte ==> Extbyte.
10914         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10915         (x_find_charset_font): SExtbyte ==> Extbyte.
10916         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10917         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10918         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10919         Use bufbyte_strcmp.
10920
10921         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10922         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10923         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10924         (BYTE_C0_P): Use bit ops for char-signedness safety.
10925         (BYTE_C1_P): Use bit ops for char-signedness safety.
10926         (CHARSET_BY_LEADING_BYTE):
10927         (CHARSET_BY_ATTRIBUTES):
10928         Always use inline function.
10929         Use type_checking_assert.
10930         Hide chlook.
10931
10932         * mule-charset.c (non_ascii_charptr_copy_char):
10933         Modify to work with both ASCII and non-ASCII characters.
10934         Improve docs and variable names.
10935         Replace over-clever fall-through switch with a simple loop.
10936         (Lstream_get_emchar_1):
10937         Replace over-clever fall-through switch with a simple loop.
10938
10939         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10940         Warning suppression.
10941
10942         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10943         the return value of Lstream_getc, which could be EOF as well.
10944
10945         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10946
10947         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10948         APIs can be used on Extbytes without casts.  Risky!
10949         (SExtbyte): Remove.
10950         (UExtbyte): Remove.
10951
10952         * input-method-xlib.c (XIM_init_device):
10953         Use Xlib.h instead of IntrinsicP.h.
10954         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10955         which will break in X11R7.
10956         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10957         to call XRegisterIMInstantiateCallback with correct types.
10958
10959         * gui-x.c (button_item_to_widget_value): Type correctness.
10960
10961         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10962
10963         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10964         (xbm_instantiate_1): Type correctness.
10965         (BUILD_GLYPH_INST):  Type correctness.
10966
10967         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10968
10969         * file-coding.c:
10970         (decode_coding_sjis):
10971         (decode_coding_big5):
10972         (decode_coding_ucs4):
10973         (decode_coding_utf8):
10974         (decode_coding_iso2022):
10975         (decode_coding_no_conversion):
10976         Make all decoding functions take an Extbyte * arg.
10977         (encode_coding_sjis):
10978         (encode_coding_big5):
10979         (encode_coding_ucs4):
10980         (encode_coding_utf8):
10981         (encode_coding_iso2022):
10982         (encode_coding_no_conversion):
10983         Make all encoding functions take a Bufbyte * arg.
10984         Use size_t instead of unsigned int for memory sizes.
10985         Only cast to unsigned char whenever dereferencing Extbyte *.
10986
10987         * doc.c (unparesseuxify_doc_string): Type correctness.
10988
10989         * console-x.c (split_up_display_spec):
10990         Rewrite without using details of internal string representation.
10991         (x_semi_canonicalize_device_connection): Type correctness.
10992
10993         * config.h.in:
10994         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10995         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10996         (HAVE_XFREE386): Removed.
10997
10998         * buffer.h (DEC_CHARPTR): `const' correctness.
10999         (bufbyte_strcmp): New.
11000         (bufbyte_memcmp): New.
11001
11002         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
11003
11004         * buffer.h (XCHAR_OR_CHAR_INT):
11005         Always use inline function.
11006         Remove redundant type checking assert() - XINT will abort quite nicely.
11007
11008 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11009
11010         * search.c (Freplace_match): Set newtext to an empty string.
11011
11012 2000-10-10  Martin Buchholz  <martin@xemacs.org>
11013
11014         * s/decosf1-3.h: Remove #include of stropts.h
11015         * s/ptx.h: Remove #include of stropts.h
11016         * s/usg5-4.h: Remove #include of stropts.h
11017         * sysproc.h:
11018         * config.h.in:
11019         Use stropts.h, not sys/stropts.h.
11020         Use strtio.h, not sys/strtio.h.
11021
11022 2000-10-04  Martin Buchholz <martin@xemacs.org>
11023
11024         * XEmacs 21.2.36 is released.
11025
11026 2000-09-21  Andy Piper  <andy@xemacs.org>
11027
11028         * glyphs-x.c (x_redisplay_widget): make sure non-structural
11029         changes still involve copying the widget tree.
11030         (update_widget_face): make sure a change is register in the widget
11031         tree. Call update_tab_widget_face appropriately.
11032         (update_tab_widget_face): ditto.
11033         (x_tab_control_redisplay): make sure non-structural changes still
11034         involve copying the widget tree.
11035
11036 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
11037
11038         * lread.c (locate_file): Check the path element is non-nil.
11039
11040 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11041
11042         * lisp.h: Warning suppression for SCO compilers.
11043
11044         * redisplay-tty.c (reset_tty_modes): Fix crash.
11045         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
11046
11047 2000-09-27  Martin Buchholz  <martin@xemacs.org>
11048
11049         Big signal/process handling overhaul.  Bugs fixed:
11050         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
11051         M-x comint-kill-subjob should work for both values nil and t of
11052         process-connection-type. It was broken on most platforms.
11053         Testing on Irix and Cygwin still needed.  Other plaforms tested.
11054         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
11055         * process-unix.c: Signal/Process handling overhaul.
11056         (pty_name): make 64 bytes, as `expect' does, for paranoia.
11057         (allocate_pty): Use all available modern methods of allocating
11058         ptys, falling back to old style BSD allocation as a last resort.
11059         Use allegedly more secure Unix98 pty allocation by default.
11060         (allocate_pty_the_old_fashioned_way): New. the last resort.
11061         (unix_create_process): Push ptem, ldterm, ttcompat where
11062         available.  Autoconfiscate.
11063         (try_to_initialize_subtty): New.
11064         (unix_kill_child_process): Proper signal handling for ptys on most
11065         platforms, using special knowledge of AIX, BSD, etc...
11066         (unix_create_process): Always disconnect_controlling_terminal() for
11067         subprocesses, whether using ptys or not.
11068         * process.h: Remove old getpt-dependent PTY code.
11069         * process.c (Fprocess_send_signal): New, obvious generic function.
11070         (decode_signal): New.
11071         (Finterrupt_process):
11072         (Fkill_process):
11073         (Fquit_process):
11074         (Fstop_process):
11075         (Fcontinue_process):
11076         (Fsignal_process): Use decode_signal.
11077         (process_send_signal):
11078         Many docstring corrections.
11079         Allow any signal to be sent to a process object.
11080         * config.h.in: Add symbols for big signal/process overhaul.
11081         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11082         * sysproc.h: Include process-related headers, where available:
11083         sys/stropts.h sys/strtio.h pty.h libutil.h
11084         * s/irix4-0.h:
11085         * s/irix5-0.h:
11086         * s/cygwin32.h:
11087         * s/gnu.h:
11088         * s/linux.h:
11089         * s/hpux.h:
11090         * s/aix3-1.h:
11091         Remove old S&M pty stuff.
11092         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11093         * systty.h: Simplify cpp hackery, improve comments.
11094         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11095
11096         * editfns.c (Fformat_time_string):
11097         Be a little more paranoid with the return value of ctime.
11098
11099         * fileio.c (check_executable):
11100         (check_writable):
11101         Use symbolic constants X_OK, W_OK.
11102
11103         * console-x.c (split_up_display_spec): Fix a warning.
11104
11105 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11106
11107         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11108         * ntproc.c (sys_spawnve): make_string ==> build_string
11109         Small clarity improvements.
11110
11111 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11112
11113         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11114
11115         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11116
11117         * config.h.in (HAVE_STRCASECMP): Remove.
11118
11119 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11120
11121         * redisplay-output.c (redisplay_output_pixmap):
11122         Cleaner and possibly more 64-bit correct code.
11123
11124 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11125
11126         * dumper.c (pdump_load_finish): move restoration of
11127         `noninteractive1' to emacs.c (main_1).
11128         * emacs.c (main_1): protect LISP-visible command-line flags
11129         from pdump_load().
11130
11131 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11132
11133         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11134         DUMP_TARGET instead of literal program names.
11135
11136 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11137
11138         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11139
11140 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11141
11142         * *: Spelling mega-patch
11143
11144 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11145
11146         * fns.c (bad_bad_turtle):
11147         Delete "Eek!" comment, since we fixed the bug to which it refers.
11148
11149 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11150
11151         * alloca.c: Replace REGISTER with register.
11152
11153 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11154
11155         * file-coding.c (ucs_to_char): Use countof.
11156
11157 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11158
11159         * file-coding.c: (ucs_to_char):
11160         (complex_vars_of_file_coding):
11161         Use countof instead of sizeof.
11162         Use CHECK_NATNUM instead of CHECK_INT.
11163
11164         * sysdep.c (strcasecmp): Remove.
11165         * device-x.c (ascii_strcasecmp): New.
11166         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11167         Avoid using non-standard non-portable strcasecmp.
11168
11169 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11170
11171         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11172         * font-lock.c: remove reference to emacsfns.h.
11173         * search.c: small doc improvement.
11174         * event-Xt.c: correct file names in comments.
11175         * console-x.h Correct file names in comments.
11176         * frame.c: Correct file names in comments.
11177         * event-stream.c: remove Energize from comments.
11178
11179 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11180
11181         * symeval.h (DEFERROR_STANDARD):
11182         (DEFERROR):
11183         (DEFSYMBOL):
11184         (DEFSYMBOL_NO_DUMP):
11185         (DEFSYMBOL_MULTIWORD_PREDICATE):
11186         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11187         (DEFKEYWORD):
11188         The construct &##name is not sensible C.
11189         Fixes compilation errors with Unixware native compiler.
11190
11191 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11192
11193         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11194         (next_frame_internal): Removed.  We now just have next_frame.
11195         (next_frame):
11196         Write a simpler and cleaner one-pass algorithm.
11197         Remove called_from_delete_device arg and #ifdefed-out code.
11198         (previous_frame):
11199         Renamed from prev_frame.  Update callers.
11200         Cleaned up to have an analogous implementation to next_frame.
11201         (other_visible_frames_internal): Remove the
11202         called_from_delete_device bogus arg, and hence, remove this
11203         function.  Just use other_visible_frames().
11204
11205         * window.c (Fnext_window):
11206         Prettify docstring.
11207         Since next_frame() is guaranteed to return a frame, remove check
11208         for nil inserted in previous patch.
11209         (Fprevious_window):
11210         Prettify docstring.
11211         Make code look more like Fnext_window.
11212         (window_loop):
11213         Respect the `console' arg when iterating through windows.
11214         Fixes bug: (get-buffer-window buffer t device) not respecting
11215         the `device' arg.
11216         This function needs more work, as others have pointed out.
11217
11218         * frame.h: Rename prev_frame to previous_frame.
11219         device_matches_console_spec no longer takes a `frame' arg.
11220
11221         * s/gnu.h:
11222         * s/linux.h:
11223         * s/hpux.h:
11224         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11225         From "Golubev I. N." <gin@mo.msk.ru>.
11226
11227         * make-src-depend: Fix typo.
11228
11229 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11230
11231         * window.c (Fnext_window):
11232         next_frame() might return nil, not a frame.
11233         Fixes this crash:
11234         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11235
11236         * frame.c (next_frame_internal):
11237         We've passed a frame if we've passed its device.
11238         Fixes this crash:
11239         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11240 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11241
11242 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11243
11244         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11245         Allow option to suppress accelerators in menu/dialog items.
11246         (populate_or_checksum_helper): Pass dialog title through above.
11247
11248 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11249
11250         * event-msw.c (mswindows_key_to_emacs_keysym):
11251         Add "pause" key, fix "menu" key.
11252
11253 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11254
11255         * eval.c (reinit_vars_of_eval):
11256         Increase max_lisp_eval_depth to 1000,
11257         required for thai-xtis.el to byte-compile under some circumstances.
11258
11259 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11260
11261         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11262         From Kenichi Handa.
11263
11264 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11265
11266         * make-src-depend: Make the generated Makefiles smaller.
11267
11268         * s/hpux.h (SETUP_SLAVE_PTY):
11269         Provide a %d in the format string for the errno argument.
11270
11271         * editfns.c (Ftemp_directory):
11272         Warning fix.
11273         Avoid buffer overrun on very long file name.
11274
11275         * input-method-xlib.c (XIM_init_device):
11276         6th parameter of XRegisterIMInstantiateCallback has different
11277         pointer types on different OSes, so simply cast to (void *).
11278
11279         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11280
11281         * sysdll.c (dll_open):
11282         shl_load will hang hard if passed a NULL filename.
11283         Simply return NULL for compatibility with dlopen.
11284         * sysdll.c: Conform to XEmacs coding standards.
11285
11286         * sysdep.c (get_pty_max_bytes):
11287         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11288
11289 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11290
11291         * tooltalk.c: Add #include <syssignal.h>
11292
11293 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11294
11295         * s/hpux.h: Don't use undefined function sigunblock().
11296
11297 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11298
11299         * config.h.in: Add HAVE_BALLOON_HELP.
11300         * emacs.c: Use HAVE_BALLOON_HELP.
11301         * Makefile.in.in (x_objs):
11302         Make Balloon Help conditional on finding shape.h.
11303
11304 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11305
11306         * syntax.c (regex_emacs_buffer_p): New variable.
11307         * syntax.h (regex_emacs_buffer_p): extern.
11308         * search.c (looking_at_1):
11309         (string_match_1):
11310         (fast_string_match):
11311         (search_buffer): Set regex_emacs_buffer_p.
11312         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11313         when before_dot, at_dot, after_dot.
11314
11315 2000-08-23  Andy Piper  <andy@xemacs.org>
11316
11317         * gui-x.c (popup_selection_callback): Only set action_occurred
11318         when we really have an image instance.
11319         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11320
11321 2000-08-23  Andy Piper  <andy@xemacs.org>
11322
11323         * gui-msw.c (mswindows_handle_gui_wm_command): set
11324         action_occurred.
11325         * gui-x.c (popup_selection_callback): ditto.
11326
11327         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11328         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11329         (struct Lisp_Image_Instance): add action_occurred flag.
11330
11331         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11332         (image_instance_changed): ditto.
11333         (reset_frame_subwindow_instance_cache): only unmap windows - do
11334         not remove them from the cache also.
11335
11336         * glyphs-widget.c (tab_control_update): better debug.
11337         (progress_gauge_update): ditto.
11338         (layout_update): ditto.
11339         (layout_instantiate): ditto.
11340         (tab_control_order_only_changed): cope with null pending items.
11341
11342         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11343         debug. Force selection of an item when an action occurred. Cope
11344         with null pending_items.
11345         (mswindows_progress_gauge_redisplay): better debug.
11346         * glyphs-x.c (x_tab_control_redisplay): ditto.
11347
11348         * redisplay.c (redisplay_frame): reset the frame cache if the
11349         frame is garbaged.
11350
11351         * window.c (Fset_window_configuration): potentially re-enable
11352         frame cache reset.
11353         (window_unmap_subwindows): need to finalize instances here since
11354         it is only used in mark_window_as_deleted.
11355
11356 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11357
11358         * nas.c (SndOpenDataForReading):
11359         nas.c (WaveOpenDataForReading):
11360         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11361         Somehow escaped from the 2000-08-14 patch.
11362
11363 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11364
11365         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11366         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11367
11368 2000-08-21  Andy Piper  <andy@xemacs.org>
11369
11370         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11371         window if it is not already displayed.
11372
11373         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11374         it is not already displayed.
11375
11376         * window.c (Fset_window_configuration): don't reset the frame
11377         cache.
11378
11379         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11380         instances from the frame cache if we are actually finalizing them.
11381         (reset_frame_subwindow_instance_cache): reset frame cache only
11382         after unmapping everything.
11383         (map_subwindow): set displayed flag after mapping.
11384
11385 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11386
11387         * data.c (indirect_function):
11388         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11389
11390         * eval.c (function_argcount):
11391         Use original function when signaling errors.
11392
11393 2000-08-18  Andy Piper  <andy@xemacs.org>
11394
11395         * frame.c (delete_frame_internal): use new
11396         free_frame_subwindow_instances name.
11397
11398         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11399         (add_tab_item): make return type correct.
11400         (mswindows_tab_control_instantiate): assert index of tab.
11401         (mswindows_tab_control_redisplay): Re-code to use
11402         gui_item_equal_sans_selected and gui_item_list_find_selected.
11403
11404         * glyphs-widget.c (tab_control_update): Correct comment.
11405
11406         * window.c (window_unmap_subwindows): use new
11407         unmap_subwindow_instance_cache_mapper.
11408         (window_unmap_subwindows_cache_mapper): deleted.
11409         (Fset_window_configuration): comparisons should now be with
11410         EQ. Preserve the subwindow instance cache across configuration
11411         changes.
11412         (allocate_window): ditto.
11413         (make_dummy_parent): ditto.
11414
11415         * glyphs.c (free_frame_subwindow_instances): rename from
11416         free_frame_subwindow_instance_cache. finalize all instances rather
11417         than just those in the display cache.
11418         (finalize_all_subwindow_instances): walk windows unmapping and
11419         finalizing subwindows.
11420         (unmap_subwindow_instance_cache_mapper): moved from
11421         window.c. Allow finalization as well as unmapping.
11422
11423         * gui.c (gui_item_list_find_selected): new function.
11424
11425         * gui.h (gui_item_list_find_selected): declare.
11426
11427         * glyphs-x.c (x_tab_control_redisplay): pick tab
11428         explicitly. Re-code to use gui_item_equal_sans_selected and
11429         gui_item_list_find_selected.
11430
11431         * glyphs-x.h: add lwlib-utils.h
11432
11433         * buffer.c (Frecord_buffer): undo previous change.
11434
11435 2000-08-09  Vin Shelton  <acs@xemacs.org>
11436
11437         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11438         possible.  Create temporary files more securely.  The patch was
11439         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11440         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11441         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11442         for details.
11443
11444 2000-08-07  Ben Wing  <ben@xemacs.org>
11445
11446         * getloadavg.c: remove duplicate (and windows-breaking)
11447         includes of fcntl.h and sys/file.h.
11448
11449         * nt.c: remove duplicate getloadavg() definition.
11450
11451         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11452         encodings.
11453
11454 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11455
11456         * eval.c (function_argcount): If function needs to be autoloaded
11457         actually use the loaded definition.
11458         GCPRO function.
11459
11460 2000-08-05  Ben Wing  <ben@xemacs.org>
11461
11462         * getloadavg.c: add prototype for getloadavg().  remove
11463         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11464         of the code).  remove duplicate header includes.
11465
11466         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11467
11468         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11469         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11470         useful load average.
11471
11472         * alloc.c (reinit_alloc_once_early): removed references to
11473         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11474         the lisp vars are the only things referencing the malloc_sbrk_*
11475         vars, and they were already if 0'd out.  these vars only exist
11476         in the older malloc.c, which is basically unused, and they're
11477         only for informational purposes.
11478
11479         * m\*.h: removed useless VIRT_ADDR_VARIES.
11480
11481         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11482
11483 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11484
11485         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11486         color if the image is a mono pixmap.
11487
11488 2000-07-30  Ben Wing  <ben@xemacs.org>
11489
11490         * Makefile.in.in (release):
11491         Remove stray @.
11492
11493         * buffer.c (directory_is_current_directory):
11494         * dired-msw.c (mswindows_get_files):
11495         * dired.c:
11496         * dired.c (Fdirectory_files):
11497         * dired.c (file_name_completion_stat):
11498         * dired.c (Ffile_attributes):
11499         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11500         preprocessor tricks, to avoid problems on some machines
11501         (e.g. SCO).
11502
11503         * callproc.c (egetenv): GC docs.
11504
11505         * console-msw.h:
11506         * console-msw.h (struct mswindows_dialog_id):
11507         * lrecord.h (lrecord_type):
11508         New object for use with MSW dialogs.
11509
11510         * console.h (struct console_methods):
11511         New enable/disable frame methods, for proper modal dialogs.
11512
11513         * device-msw.c (msprinter_default_printer): Fix to follow
11514         proper Mule conventions.
11515
11516         * device-msw.c:
11517         * device-msw.c (signal_open_printer_error):
11518         * device-msw.c (msprinter_init_device):
11519         * device-msw.c (ensure_not_printing):
11520         * device-msw.c (plist_get_margin):
11521         * device-msw.c (Fmsprinter_select_settings):
11522         * device-msw.c (finalize_devmode):
11523         * device-msw.c (Fmsprinter_settings_despecialize):
11524         * device-msw.c (signal_enum_priner_error):
11525         * extents.c (decode_extent):
11526         * extents.c (decode_map_extents_flags):
11527         * extents.c (decode_extent_at_flag):
11528         * extents.c (Fextent_at):
11529         * extents.c (Fextents_at):
11530         * extents.c (symbol_to_glyph_layout):
11531         [[[[2]]]] Use structured errors.
11532
11533         * dialog-msw.c:
11534         * dialog-msw.c (mswindows_is_dialog_msg):
11535         * dialog-msw.c (mark_mswindows_dialog_id):
11536         * dialog-msw.c (dialog_proc):
11537         * dialog-msw.c (handle_question_dialog_box):
11538         * dialog-msw.c (syms_of_dialog_mswindows):
11539         Define new object to clean up marking; use it as a dialog identifier.
11540         Call new delete-dialog-box-hook.
11541
11542         * dialog-x.c (dbox_selection_callback):
11543         * dialog-x.c (dbox_descriptor_to_widget_value):
11544         * dialog-x.c (x_make_dialog_box_internal):
11545         Call new delete-dialog-box-hook.
11546         Return an id.
11547
11548         * dialog.c:
11549         * dialog.c (syms_of_dialog):
11550         * dialog.c (vars_of_dialog):
11551         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11552
11553         * eval.c:
11554         * eval.c (signal_call_debugger):
11555         when noninteractive, output stack traces on the console instead
11556         of in a (never-seen) buffer.
11557
11558         * eval.c (signal_type_error):
11559         * eval.c (invalid_argument_2):
11560         * lisp.h:
11561         new funs for use w/structured errors.
11562
11563         * event-Xt.c:
11564         * event-Xt.c (x_to_emacs_keysym):
11565         * event-Xt.c (describe_event):
11566         * event-Xt.c (emacs_Xt_event_handler):
11567         * event-Xt.c (vars_of_event_Xt):
11568         * event-msw.c:
11569         * event-msw.c (mswindows_wnd_proc):
11570         * event-msw.c (vars_of_event_mswindows):
11571         rename {x,mswindows}-debug-events to debug-{}-events for
11572         consistency with other debug-foo variables.
11573
11574         * event-stream.c:
11575         document next-event more clearly.
11576
11577         * fileio.c (Ffile_name_directory):
11578         * fileio.c (Ffile_name_nondirectory):
11579         * fileio.c (Funhandled_file_name_directory):
11580         * fileio.c (file_name_as_directory):
11581         * fileio.c (Ffile_name_as_directory):
11582         * fileio.c (directory_file_name):
11583         * fileio.c (Fdirectory_file_name):
11584         * fileio.c (Fmake_temp_name):
11585         * fileio.c (Ffile_truename):
11586         * fileio.c (Fsubstitute_in_file_name):
11587         * fileio.c (expand_and_dir_to_file):
11588         * fileio.c (barf_or_query_if_file_exists):
11589         * fileio.c (check_executable):
11590         * fileio.c (Ffile_exists_p):
11591         * fileio.c (Ffile_writable_p):
11592         * fileio.c (Ffile_directory_p):
11593         * fileio.c (Ffile_regular_p):
11594         * fileio.c (Ffile_modes):
11595         * fileio.c (Ffile_newer_than_file_p):
11596         * fileio.c (Fverify_visited_file_modtime):
11597         * fileio.c (Fset_visited_file_modtime):
11598         * fileio.c (auto_save_1):
11599         (1). (2).
11600         fix up gcpro's.
11601
11602         * frame-msw.c:
11603         * frame-msw.c (mswindows_init_frame_1):
11604         * frame-msw.c (mswindows_enable_frame):
11605         * frame-msw.c (error_frame_unsizable):
11606         * frame-msw.c (msprinter_init_frame_1):
11607         * frame-msw.c (msprinter_init_frame_3):
11608         * frame-msw.c (console_type_create_frame_mswindows):
11609         (2).
11610         implement new enable/disable frame methods.
11611
11612         * frame-x.c:
11613         * frame-x.c (x_enable_frame):
11614         * frame-x.c (console_type_create_frame_x):
11615         implement new enable/disable frame methods.
11616
11617         * frame.c:
11618         * frame.c (Fdisable_frame):
11619         * frame.c (syms_of_frame):
11620         * frame.h (struct frame):
11621         implement new enable/disable frame methods/functions.
11622
11623         * general-slots.h:
11624         add initial-focus.
11625
11626         * glyphs-msw.c (mswindows_widget_instantiate):
11627         comment that initial-focus should be implemented.
11628
11629         * glyphs-widget.c:
11630         * glyphs-widget.c (check_valid_instantiator):
11631         * glyphs-widget.c (check_valid_orientation):
11632         * glyphs-widget.c (check_valid_tab_orientation):
11633         * glyphs-widget.c (check_valid_justification):
11634         * glyphs-widget.c (check_valid_border):
11635         * glyphs-widget.c (check_valid_callback):
11636         * glyphs-widget.c (check_valid_int_or_function):
11637         * glyphs-widget.c (check_valid_string_or_vector):
11638         * glyphs-widget.c (check_valid_item_list_1):
11639         * glyphs-widget.c (widget_validate):
11640         * glyphs-widget.c (combo_box_validate):
11641         * glyphs-widget.c (widget_instantiate):
11642         * glyphs-widget.c (syms_of_glyphs_widget):
11643         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11644         * glyphs-widget.c (image_instantiator_combo_box):
11645         * glyphs-widget.c (image_instantiator_scrollbar):
11646         * glyphs-widget.c (image_instantiator_tab_control):
11647         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11648         (2).
11649         support (unimplemented) keyword initial-focus.
11650         reindent long macros.
11651
11652         * glyphs-x.c (x_redisplay_widget):
11653         * glyphs-x.c (x_button_instantiate):
11654         * glyphs-x.c (x_button_redisplay):
11655         * glyphs-x.c (x_progress_gauge_instantiate):
11656         * glyphs-x.c (x_edit_field_instantiate):
11657         * glyphs-x.c (x_combo_box_instantiate):
11658         * glyphs-x.c (x_tab_control_instantiate):
11659         * glyphs-x.c (x_label_instantiate):
11660         * gui-x.c:
11661         * gui-x.c (button_item_to_widget_value):
11662         * gui-x.c (gui_items_to_widget_values_1):
11663         * gui-x.c (gui_item_children_to_widget_values):
11664         * gui-x.c (gui_items_to_widget_values):
11665         * gui-x.h:
11666         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11667         add new flag to gui-parsing routines to indicate whether
11668         accelerator specs should be supported.
11669
11670         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11671
11672         * glyphs.h (struct Lisp_Image_Instance):
11673         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11674         add initial-focus flag.
11675
11676         * gui.c:
11677         * gui.c (syms_of_gui):
11678         * gui.c (vars_of_gui):
11679         clean up menu-no-selection-hook.
11680
11681         * gui.h:
11682         support delete-dialog-box-hook.
11683
11684         * lread.c (Fload_internal):
11685         * lread.c (locate_file_in_directory_mapper):
11686         (1).
11687
11688         * lrecord.h:
11689         * lrecord.h (struct toolbar_button):
11690         * lrecord.h (syms_of_toolbar):
11691         document how to create a new object.
11692
11693         * menubar-msw.c (mswindows_char_is_accelerator):
11694         may be called on frames w/o menus.
11695
11696         * menubar.c (vars_of_menubar):
11697         clean up :filter docs.
11698
11699         * nt.c (readdir):
11700         * ntproc.c:
11701         (1).
11702
11703         * process-nt.c:
11704         * process-nt.c (validate_signal_number):
11705         * process-nt.c (signal_cannot_launch):
11706         * process-nt.c (nt_create_process):
11707         * process-nt.c (nt_send_process):
11708         * process-nt.c (nt_kill_child_process):
11709         * process-nt.c (nt_open_network_stream):
11710         * process-nt.c (syms_of_process_nt):
11711         (2).
11712         delete quote-handling.  call new lisp code that does it better.
11713
11714         * process-unix.c (connect_to_file_descriptor):
11715         * process-unix.c (allocate_pty):
11716         * process-unix.c (unix_send_process):
11717         * process-unix.c (unix_kill_child_process):
11718         * process-unix.c (unix_open_network_stream):
11719         * process-unix.c (unix_open_multicast_group):
11720         (1). (2).
11721
11722         * process.c:
11723         * process.c (Fstart_process_internal):
11724         (2).  need to canonicalize process path even if absolute.
11725
11726         * select-msw.c (symbol_to_ms_cf):
11727         * select-msw.c (ms_cf_to_symbol):
11728         * select-msw.c (cf_is_autofreed):
11729         * select-msw.c (mswindows_destroy_selection):
11730         * select.c:
11731         * select.c (syms_of_select):
11732         * select.h:
11733         support dibv5, fix bugs. (from Mike Alexander)
11734
11735         * select.c (Fget_selection_internal):
11736         * select.c (select_convert_out):
11737
11738         * sysdep.c:
11739         * sysdep.c (xemacs_stat):
11740         renamed.
11741
11742         * sysdep.c (mkdir):
11743         * sysdep.c (rmdir):
11744         but keep original stat() here because we provide encapsulation
11745         around these funs.
11746
11747         * sysfile.h:
11748         * sysfile.h (fstat):
11749         remove stat garbage.
11750
11751         * syswindows.h:
11752         fix X/MSW conflict.
11753         don't include tchar.h.  it's inappropriate because it makes
11754         compile-time distinctions when we want runtime distinctions.
11755         (we provide our own tchar replacements)
11756
11757         * toolbar.c:
11758         use default object printer for toolbar-button.
11759
11760         * unexcw.c:
11761         make sure we don't encapsulate.
11762
11763         * window.c (vars_of_window):
11764         emphasize that temp-buffer-show-hook is obsolete.
11765
11766 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11767
11768         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11769         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11770
11771         * events.c (Fevent_timestamp_lessp):
11772         Not 64-bit clean.  Use EMACS_INT, not int.
11773
11774 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11775
11776         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11777         unsigned int and changed the last enum to
11778         lrecord_type_last_built_in_type.
11779         (lrecord_implementations_table): changed prototype to know how
11780         long the array is supposed to be.
11781         (lrecord_type_count): new unsigned int to keep track of the
11782         current number of lisp lrecord types.
11783         (DEFINE_EXTERNAL_LRECORD):
11784         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11785         dynamic-modules to declare new lisp types. They are the same
11786         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11787         int for each new type, and increment lrecord_type_count by 1.
11788
11789         * alloc.c (lrecord_implementations_table): Changed to reference
11790         lrecord_type_last_built_in_type for the size of the array.
11791         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11792
11793 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11794
11795         * glyphs.h (check_valid_item_list): Renamed from
11796         check_valid_item_list_1.
11797
11798 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11799
11800         * select.c (Qselect_coerce): New.
11801         * select.c (Vselection_coercion_alist): New.
11802         * select.c (syms_of_select): Declare.
11803         * select.c (get-selection-internal): Use it.
11804         Use the new select-coerce functionality.
11805
11806         * select.c (select_coerce): New.
11807         * select.h (select_coerce): Declare.
11808         New function to coerce one type of data into another.
11809
11810 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11811
11812         * callproc.c (Fcall_process_internal):
11813         (Fcall_process_internal):
11814         * process-unix.c (unix_create_process):
11815         Save and restore the value of errno, so that error messages are accurate.
11816
11817 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11818
11819         * elhash.c (print_hash_table):
11820         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11821         Prettify docstrings and indentation.
11822
11823 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11824
11825         * window.c (Fwindow_pixel_edges): Subtract frame border and
11826         gutter size.
11827
11828 2000-07-31  Andy Piper  <andy@xemacs.org>
11829
11830         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11831         will acknowledge the change.
11832
11833         * glyphs.h: declare tab_control_order_only_changed.
11834
11835         * glyphs-x.c (x_tab_control_redisplay): use
11836         tab_control_order_only_changed.
11837
11838         * glyphs-widget.c (tab_control_order_only_changed): new function.
11839
11840         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11841         tab_control_order_only_changed.
11842
11843         * gui.c (gui_item_equal_sans_selected): new function.
11844         (gui_item_equal): use it.
11845
11846         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11847         :properties in favor of :items..
11848
11849         * glyphs-widget.c (check_valid_item_list): rename from
11850         check_valid_item_list_1.
11851         (check_valid_item_list_1): renamed.
11852         (combo_box_validate): deprecate :properties in favor of :items.
11853         (widget_instantiate): ditto.
11854         (tab_control_update): ditto.
11855         (image_instantiator_combo_box): ditto.
11856         (image_instantiator_tree_view): ditto.
11857         (image_instantiator_tab_control): ditto.
11858         (layout_post_instantiate): remove dead code.
11859
11860         * print.c (debug_print_no_newline): only write to debugger if in
11861         WIN32_NATIVE.
11862
11863         * elhash.c (Fmake_hash_table): update doc string.
11864
11865         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11866         messages whilst in GC. This at least stops XEmacs crashing but has
11867         the potential for wierd behaviour.
11868
11869 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11870
11871         * config.h.in:
11872         Make existence of s&m files optional.
11873
11874         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11875         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11876         * s/gnu.h: Remove HAVE_GETLOADAVG.
11877         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11878         * s/sol2.h: Remove HAVE_GETLOADAVG.
11879         * lisp.h: Remove getloadavg() declaration.
11880         * fns.c:
11881         Include <sys/loadavg.h> if available.
11882         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11883         * config.h.in:  Group together getloadavg()-related macros.
11884         Use only configure-time tests to detect getloadavg().
11885
11886 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11887
11888         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11889
11890 2000-07-25  Andy Piper  <andy@xemacs.org>
11891
11892         * syswindows.h: add tchar.h for native builds.
11893
11894         * frame.c (syms_of_frame): remove set-glyph-image.
11895
11896         * general-slots.h: add Qset_glyph_image.
11897
11898         * glyphs-widget.c (layout_update): add domain arg to
11899         set-glyph-image.
11900         (syms_of_glyphs_widget): remove set-glyph-image.
11901
11902 2000-07-23  Ben Wing  <ben@xemacs.org>
11903
11904         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11905         Vpopup_frame_list.
11906
11907 2000-07-22  Andy Piper  <andy@xemacs.org>
11908
11909         * symsinit.h: add syms_of_win32().
11910
11911         * gui-msw.c (syms_of_gui_mswindows): remove
11912         Fmswindows_shell_execute.
11913         (Fmswindows_shell_execute): moved to win32.c.
11914
11915         * emacs.c (main_1): add syms_of_win32 ().
11916
11917         * win32.c (init_potentially_nonexistent_functions): rewrite in
11918         compiler-friendly terms.
11919         (Fmswindows_shell_execute): move here from gui-msw.c.
11920         (syms_of_win32): new.
11921
11922         * device-msw.c (Fmswindows_printer_list): clean up args to
11923         EnumPrinters.
11924         Don't include tchar under cygwin or mingw.
11925         (msprinter_default_printer): make cygwin-friendly.
11926
11927 2000-07-21  Andy Piper  <andy@xemacs.org>
11928
11929         * glyphs-widget.c (image_instantiator_tree_view): use tab
11930         control's update function.
11931         (layout_property): new function. Retrieve items.
11932
11933         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11934         function. Re-populate the tree view from the pending items.
11935
11936         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11937         is designated the parent if the domain is an image instance. This
11938         is needed so that dirtiness can be cascade up the hierarchy and
11939         thus for layout children to be redisplayed correctly.
11940         (allocate_image_instance): rename glyph -> parent.
11941
11942         * redisplay.h: change redisplay_output_layout signature.
11943
11944         * redisplay-msw.c (mswindows_output_display_block): use domain
11945         arg.
11946
11947         * redisplay-x.c (x_output_display_block): use domain arg.
11948
11949 2000-07-10  Andy Piper  <andy@xemacs.org>
11950
11951         * window.c (Fset_window_configuration): add comment.
11952
11953         * redisplay-output.c (compare_runes):
11954         (redisplay_output_subwindow): redisplay rather than update subwindow.
11955         (redisplay_output_layout): ditto.
11956
11957         * redisplay-msw.c (mswindows_frame_output_end):
11958         (mswindows_frame_output_end): make defer window pos optional.
11959
11960         * lisp.h: add Flast.
11961
11962         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11963         normalize method. Change update method to be for changed
11964         instantiators. Add redisplay method. Change signature of layout
11965         method.
11966         (struct Lisp_Image_Instance): add instantiator.
11967         (IMAGE_INSTANCE_INSTANTIATOR): new.
11968         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11969         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11970         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11971
11972         * glyphs.c:
11973         (find_instantiator_differences): new function.
11974         (Fset_instantiator_property): new convenience function.
11975         (check_image_instance_structure): strictly check for vector
11976         instantiators.
11977         (normalize_image_instantiator): make non-static.
11978         (instantiate_image_instantiator): pass on dest_mask and use new
11979         signatures for image_instance_layout and friends.
11980         (mark_image_instance): mark the instantiator. Mark the subwindow
11981         face not the widget face.
11982         (image_instance_equal): add instantiator.
11983         (image_instance_hash): ditto.
11984         (allocate_image_instance): ditto.
11985         (Fset_image_instance_property): removed.
11986         (Fimage_instance_file_name): ditto.
11987         (Fcolorize_image_instance): ditto.
11988         (image_instance_layout): add offsets to be set.
11989         (update_image_instance): new function. update an image instance
11990         from its changed instantiator.
11991         (inherit_normalize): add dest_mask.
11992         (xbm_normalize): ditto.
11993         (xface_normalize): ditto.
11994         (xpm_normalize): ditto.
11995         (text_update): set_property -> update.
11996         (image_instantiate): use the glyph identity as a hash key, not the
11997         instantiator.
11998         (glyph_width): use new image_instance_layout signature.
11999         (glyph_ascent): ditto.
12000         (glyph_descent): ditto.
12001         (glyph_height): ditto.
12002         (glyph_query_geometry): ressurrect.
12003         (glyph_layout): ditto.
12004         (redisplay_subwindow): update -> redisplay.
12005         (syms_of_glyphs): add Fset_instantiator_property.
12006         (image_instantiator_format_create): set_property -> update.
12007
12008         * glyphs-x.c:
12009         (autodetect_normalize): add dest_maks to signature.
12010         (x_redisplay_subwindow): update -> redisplay.
12011         (x_redisplay_widget): ditto.
12012         (x_button_redisplay): ditto.
12013         (x_progress_gauge_redisplay): ditto.
12014         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
12015         stacking order.
12016         (console_type_create_glyphs_x): update -> redisplay.
12017         (image_instantiator_format_create_glyphs_x): ditto.
12018
12019         * glyphs-widget.c:
12020         (check_valid_instantiator): disallow glyphs in the instantiator,
12021         they must now be vectors.
12022         (check_valid_instantiator_list): ditto.
12023         (glyph_instantiator_to_glyph): use internal symbol rather than
12024         intern.
12025         (widget_update): renamed from widget_set_property. Call cascaded
12026         update methods.
12027         (redisplay_widget): renamed from update_widget.
12028         (widget_layout): image_instance_layout now takes position as well
12029         as size.
12030         (widget_normalize): ditto.
12031         (widget_instantiate): ditto.
12032         (tab_control_query_geometry) ditto.:
12033         (tab_control_update): renamed from tab_control_set_property.
12034         (progress_gauge_update): set_property -> update.
12035         (layout_normalize): rewrite so that child instantiators are
12036         normalized also.
12037         (layout_update): new function. Create glyphs from the normalized
12038         children and cope with any other layout keywords. We do not
12039         instantiate children here that will be take care of by
12040         redisplay_output_layout.
12041         (layout_instantiate): call layout_update and not much else.
12042         (layout_post_instantiate): not sure whether this is needed
12043         anymore.
12044         (layout_query_geometry): query glyph geometry rather than
12045         image_instance geometry.
12046         (layout_layout): set offsets from pass in parameters. Use glyph
12047         geometry and layout functions rather than image instance ones.
12048         (native_layout_layout): ditto.
12049         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
12050         (image_instantiator_widget): set_property -> update.
12051         (image_instantiator_buttons): ditto.
12052         (image_instantiator_progress_guage): ditto.
12053         (image_instantiator_tab_control): ditto.
12054         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
12055         (image_instantiator_layout): add update method.
12056
12057         * glyphs-msw.c (bmp_normalize):
12058         (mswindows_resource_normalize): add dest_mask so that it can be
12059         proprogated by layout_normalize.
12060         (begin_defer_window_pos): make optional because it may not be the
12061         right thing to do and it introduces differences with X.
12062         (mswindows_unmap_subwindow): ditto.
12063         (mswindows_map_subwindow): ditto.
12064         (mswindows_redisplay_subwindow): renamed from
12065         mswindows_update_subwindow.
12066         (mswindows_redisplay_widget): ditto.
12067         (mswindows_button_redisplay): renamed from
12068         mswindows_button_update. Update is now what the instantiation
12069         function does for a changed instantiator.
12070         (mswindows_progress_gauge_instantiate): set the progress value
12071         here if appropriate.
12072         (mswindows_tab_control_redisplay): cope with re-ordering of the
12073         members of the tab widget by simply selecting the new top
12074         widget. This makes things appear ok if you click on a tab.
12075         (mswindows_combo_box_instantiate): image_instance_layout now takes
12076         position as well as size.
12077         (mswindows_progress_gauge_redisplay): renamed from
12078         mswindows_progress_gauge_update.
12079         (console_type_create_glyphs_mswindows): fix update -> redisplay.
12080         (image_instantiator_format_create_glyphs_mswindows): ditto.
12081
12082         * glyphs-eimage.c (jpeg_normalize):
12083         (gif_normalize):
12084         (png_normalize):
12085         (tiff_normalize): add dest_mask so that it can be proprogated by
12086         layout_normalize.
12087
12088         * elhash.c:
12089         (print_hash_table):
12090         (hash_table_weakness_validate):
12091         (decode_hash_table_weakness):
12092         (Fhash_table_weakness):
12093         (Fhash_table_type):
12094         (syms_of_elhash): use Ben's naming scheme for hashtable types..
12095
12096         * console.h (struct console_methods): move update_* to
12097         redisplay_*.
12098
12099 2000-07-20  Ben Wing  <ben@xemacs.org>
12100
12101         * *.[ch] (XSETOBJ): remove unused middle argument.
12102         lisp-disunion.h: correct wrap_object() to one argument.
12103
12104 2000-07-15  Ben Wing  <ben@xemacs.org>
12105
12106         * s/cygwin32.h:
12107         * s/cygwin32.h (CYGWIN_CONV_PATH):
12108         Add missing logb prototype for v1.1.
12109         Use post-b20 names and alias to pre-b20 names when pre-b20.
12110
12111         * s/windowsnt.h: [5].
12112
12113 2000-07-15  Ben Wing  <ben@xemacs.org>
12114
12115         * Makefile.in.in (x_objs):
12116         * Makefile.in.in (sheap_objs):
12117         * Makefile.in.in (objs):
12118         added win32.o, cosmetic cleanups.
12119
12120         * alloc.c (Fmake_byte_code):
12121         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12122         etc. macros which declare their own args now.
12123
12124         * alloc.c (syms_of_alloc):
12125         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12126
12127         * buffer.c:
12128         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12129
12130         * buffer.c (Fget_file_buffer):
12131         Fixed GCPRO problem.
12132
12133         * buffer.c (get_truename_buffer):
12134         Fixed comment about GC checking.
12135
12136         * buffer.c (syms_of_buffer):
12137         Undeclared those dedicated frame funs.
12138         [2].
12139
12140         * buffer.h:
12141         Define convenience macros for internal/external conversions.
12142         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12143         and Qenvironment_variable_encoding for cleaner code.
12144
12145         * bufslots.h:
12146         Remove dedicated-frame; in lisp.
12147
12148         * bytecode.c (funcall_compiled_function):
12149         [1].
12150
12151         * bytecode.c (syms_of_bytecode):
12152         [2].
12153
12154         * console-msw.c:
12155         * console-msw.c (mswindows_show_console): Rewrote.
12156
12157         * console-msw.c (Fmswindows_debugging_output): New.
12158         Sends to OutputDebugString (special MSWin debugger interface).
12159
12160         * console-msw.c (Fmswindows_message_box):
12161         Fixed stupid bugs so it works when called from kill-emacs.
12162
12163         * console-msw.c (syms_of_console_mswindows):
12164         Declare Fmswindows_debugging_output.
12165
12166         * console-msw.h:
12167         New MSWin prototypes.
12168
12169         * console-msw.h (struct mswindows_frame):
12170         New entry last-click-mods for improved button-modifier support.
12171
12172         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12173         New struct entry `popup' with corresponding accessor.
12174
12175         * console-x.c:
12176         * console-x.c (split_up_display_spec):
12177         * console-x.c (get_display_arg_connection):
12178         * console-x.c (x_semi_canonicalize_console_connection):
12179         * console-x.c (x_canonicalize_device_connection):
12180         [[[6]]]: Change char to more specific type.
12181         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12182
12183         * console-x.c (x_semi_canonicalize_console_connection):
12184         * console-x.c (x_canonicalize_device_connection):
12185         [[[9]]]: Fix up error signalling to use new structured error system.
12186
12187         * console-x.h:
12188         [[[4]]]: Define codesys aliases:
12189         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12190         Qx_color_name_encoding, Qx_display_name_encoding.
12191
12192         * console.h (struct console_methods):
12193         New method make_dialog_box_internal supersedes older
12194         popup_dialog_box method.
12195
12196         * data.c:
12197         Define many new errors, part of new structured errors.
12198
12199         * data.c (init_errors_once_early):
12200         * data.c (syms_of_data):
12201         [2].
12202
12203         * device-msw.c (mswindows_init_device):
12204         [[[5]]]: Cleanup to support NT 3.51.
12205
12206         * device-msw.c (decode_devmode): Cleanup.
12207
12208         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12209         * device-msw.c (mswindows_handle_print_dialog_box):
12210         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12211         * device-msw.c (syms_of_device_mswindows):
12212         Delete the dialog box primitives recently introduced by Kirill and
12213         instead interface to general dialog box interface.
12214
12215         * device-x.c:
12216         * device-x.c (compute_x_app_name):
12217         * device-x.c (x_init_device):
12218         * device-x.c (Fx_valid_keysym_name_p):
12219         * device-x.c (Fx_set_font_path):
12220         [6].
12221         [7].
12222
12223         * device.h (wrap_device): New.
12224         First of its kind; meant to replace XSETDEVICE.
12225
12226         * dialog-msw.c: Many file-dialog symbols.
12227
12228         * dialog-msw.c (mswindows_register_popup_frame): New.
12229         * dialog-msw.c (mswindows_is_dialog_msg): New.
12230         For supporting kbd traversal in dialog boxes.
12231
12232         * dialog-msw.c (dialog_proc):
12233         Support hitting ESC in dialogs.
12234
12235         * dialog-msw.c (struct):
12236         Common dialog box errors.
12237
12238         * dialog-msw.c (handle_file_dialog_box): New.
12239         Add file dialog code.
12240
12241         * dialog-msw.c (handle_question_dialog_box):
12242         Redo existing code to support new question dialog syntax.
12243
12244         * dialog-msw.c (console_type_create_dialog_mswindows):
12245         We support new dialog console method.
12246
12247         * dialog-msw.c (syms_of_dialog_mswindows):
12248         * dialog-msw.c (vars_of_dialog_mswindows):
12249         New file dialog symbols, vars.
12250
12251         * dialog-x.c:
12252         * dialog-x.c (maybe_run_dbox_text_callback):
12253         * dialog-x.c (dbox_descriptor_to_widget_value):
12254         * dialog-x.c (x_make_dialog_box_internal):
12255         * dialog-x.c (console_type_create_dialog_x):
12256         Mule-ize entire file.
12257         Redo to support question dialog syntax.
12258         [6].
12259
12260         * dialog.c:
12261         * dialog.c (Fmake_dialog_box_internal):
12262         * dialog.c (syms_of_dialog):
12263         Kill old popup-dialog-box, replace with new primitive.
12264         Just call device method or signal error.
12265
12266         * eldap.c (Fldap_open):
12267         * eldap.c (Fldap_search_basic):
12268         * eldap.c (Fldap_add):
12269         * eldap.c (Fldap_modify):
12270         [1].
12271         [7].
12272
12273         * emacs.c:
12274         * emacs.c (make_arg_list_1):
12275         * emacs.c (make_arg_list):
12276         Mule-ize call to dll_init().
12277         [6].
12278         [8].
12279
12280         * emacs.c (make_argc_argv):
12281         * emacs.c (free_argc_argv):
12282         * emacs.c (init_cmdargs):
12283         * emacs.c (main_1):
12284         * emacs.c (Fkill_emacs):
12285         * emacs.c (Fdump_emacs):
12286         Update comments about what can be used in syms_* etc.
12287         Call init_win32() when necessary.
12288         Fix up MS Win dialog box in kill-buffer to actually work right.
12289         [7].
12290
12291         * eval.c:
12292         * eval.c (For):
12293         * eval.c (Fand):
12294         * eval.c (Fprogn):
12295         * eval.c (Fprog1):
12296         * eval.c (Fprog2):
12297         * eval.c (FletX):
12298         * eval.c (Flet):
12299         * eval.c (condition_case_3):
12300         * eval.c (Feval):
12301         * eval.c (function_argcount):
12302         * eval.c (funcall_lambda):
12303         [1].
12304
12305         * eval.c (type_error): New.
12306         * eval.c (maybe_type_error): New.
12307         * eval.c (continuable_type_error): New.
12308         * eval.c (maybe_continuable_type_error): New.
12309         * eval.c (type_error_with_frob): New.
12310         * eval.c (maybe_type_error_with_frob): New.
12311         * eval.c (continuable_type_error_with_frob): New.
12312         * eval.c (maybe_continuable_type_error_with_frob): New.
12313         New functions for use with structured errors.
12314
12315         * event-Xt.c:
12316         * event-Xt.c (x_event_to_emacs_event):
12317         Buttons are now modifiers too.
12318
12319         * event-Xt.c (emacs_Xt_current_event_timestamp):
12320         Implement new event method.
12321         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12322
12323         * event-msw.c:
12324         * event-msw.c (ntpipe_shove_writer): [5].
12325         * event-msw.c (mswindows_enqueue_mouse_button_event):
12326         * event-msw.c (mswindows_drain_windows_queue):
12327         * event-msw.c (mswindows_wnd_proc): [7].
12328         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12329         * event-msw.c (mswindows_modifier_state):
12330         Throughout: support new button modifiers.
12331
12332         * event-msw.c (emacs_mswindows_current_event_timestamp):
12333         Implement new event method.
12334         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12335
12336         * event-stream.c:
12337         * event-stream.c (event_stream_current_event_timestamp): New.
12338         * event-stream.c (maybe_kbd_translate): New functionality.
12339         * event-stream.c (vars_of_event_stream):
12340         Document new kbd-translate-table functionality.
12341
12342         * event-stream.c (Fcurrent_event_timestamp): New.
12343         New primitive for use in fabricated events.
12344         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12345
12346         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12347
12348         * events.c:
12349         * events.c (Fmake_event):
12350         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12351         [1].
12352         [9].
12353
12354         * events.c (format_event_object): fix gcc warnings.
12355
12356         * events.c (Fevent_timestamp): Document new primitives.
12357
12358         * events.c (TIMESTAMP_HALFSPACE): New.
12359
12360         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12361         comparing timestamps correctly (half-space algorithm).
12362
12363         * events.c (Fevent_modifier_bits): Doc fix.
12364
12365         * events.c (Fevent_modifiers): Major doc addition.
12366         * events.c (event_x_y_pixel_internal): Typo fix.
12367         * events.c (syms_of_events): Declare new primitives.
12368
12369         * events.h:
12370         Update long comment for button modifiers, timestamps.
12371
12372         * events.h (struct event_stream):
12373         New current_event_timestamp method.
12374
12375         * extents.c:
12376         * extents.c (extent_in_region_p):
12377         * extents.c (decode_extent):
12378         * extents.c (Fset_extent_parent):
12379         * extents.c (decode_map_extents_flags):
12380         Fix gcc warnings.
12381         [9].
12382
12383         * extents.c (struct extent_at_arg):
12384         * extents.c (decode_extent_at_flag):
12385         * extents.c (extent_at_mapper):
12386         * extents.c (extent_at_bytind):
12387         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12388         * extents.c (Fextents_at): New primitive. [9].
12389         * extents.c (symbol_to_glyph_layout): [9].
12390         Support new primitive `extents-at'.
12391
12392
12393         * extents.c (get_text_property_bytind):
12394         extent_at_bytind has another arg.
12395         [9].
12396
12397         * extents.c (syms_of_extents): New primitive.
12398
12399         * file-coding.c (Fmake_coding_system): [1].
12400         * file-coding.c (subsidiary_coding_system): fix gcc warning
12401         * file-coding.c (syms_of_file_coding): [2].
12402
12403         * fileio.c (Fexpand_file_name):
12404         * fileio.c (Fsysnetunam):
12405         * fileio.c (Ffile_exists_p):
12406         * fileio.c (Ffile_executable_p):
12407         * fileio.c (Fverify_visited_file_modtime):
12408         Clean up GCPROing.
12409
12410         * fileio.c (syms_of_fileio): [2].
12411
12412         * filelock.c (lock_file_1):
12413         * filelock.c (current_lock_owner):
12414         * filelock.c (lock_if_free):
12415         * filelock.c (lock_file):
12416         * filelock.c (unlock_file):
12417         Clean up GCPROing.
12418
12419         * fns.c (concat): Fix gcc warning.
12420
12421         * fns.c (Fmember):
12422         * fns.c (Fold_member):
12423         * fns.c (Fmemq):
12424         * fns.c (Fold_memq):
12425         * fns.c (memq_no_quit):
12426         * fns.c (Fassoc):
12427         * fns.c (Fold_assoc):
12428         * fns.c (Fassq):
12429         * fns.c (Fold_assq):
12430         * fns.c (assq_no_quit):
12431         * fns.c (Frassoc):
12432         * fns.c (Fold_rassoc):
12433         * fns.c (Frassq):
12434         * fns.c (Fold_rassq):
12435         * fns.c (rassq_no_quit):
12436         * fns.c (Fdelete):
12437         * fns.c (Fold_delete):
12438         * fns.c (Fdelq):
12439         * fns.c (Fold_delq):
12440         * fns.c (delq_no_quit):
12441         * fns.c (Fremassoc):
12442         * fns.c (Fremassq):
12443         * fns.c (remassq_no_quit):
12444         * fns.c (Fremrassoc):
12445         * fns.c (Fremrassq):
12446         * fns.c (remrassq_no_quit):
12447         * fns.c (Freverse):
12448         * fns.c (mapcar1):
12449         [1].
12450
12451         * frame-msw.c (mswindows_init_frame_1):
12452         * frame-msw.c (mswindows_delete_frame):
12453         Register popups with dialog code so keyboard traversing works.
12454
12455         * frame-tty.c (tty_raise_frame_no_select): [1].
12456
12457         * frame-x.c:
12458         * frame-x.c (x_set_frame_text_value):
12459         * frame-x.c (x_set_frame_properties):
12460         * frame-x.c (x_create_widgets):
12461         [7].
12462
12463         * frame.c:
12464         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12465
12466         * frame.h (wrap_frame): New.
12467         Macro like wrap_device.
12468
12469         * general.c:
12470         * general.c (SYMBOL):
12471         * general.c (syms_of_general):
12472         Major reorg.  This is now just a wrapper and symbols themselves
12473         are listed in general-slots.h.
12474
12475         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12476         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12477
12478         * glyphs-msw.c (mswindows_native_layout_instantiate):
12479         Add DS_CONTROL so keyboard traversal will work.
12480
12481         * glyphs-widget.c:
12482         * glyphs-widget.c (syms_of_glyphs_widget):
12483         Move some symbols to general-slots.h.
12484
12485         * glyphs-x.c:
12486         * glyphs-x.c (xbm_instantiate_1):
12487         * glyphs-x.c (x_xbm_instantiate):
12488         * glyphs-x.c (x_xface_instantiate):
12489         * glyphs-x.c (autodetect_instantiate):
12490         * glyphs-x.c (cursor_font_instantiate):
12491         * glyphs-x.c (x_update_widget):
12492         * glyphs-x.c (x_widget_instantiate):
12493         * glyphs.c (bitmap_to_lisp_data):
12494         * glyphs.c (pixmap_to_lisp_data):
12495         [7].
12496
12497         * glyphs.c (syms_of_glyphs):
12498         [2].
12499
12500         * gui-x.c:
12501         * gui-x.c (print_widget_value):
12502         * gui-x.c (menu_separator_style_and_to_external):
12503         * gui-x.c (add_accel_and_to_external):
12504         * gui-x.c (button_item_to_widget_value):
12505         * gui-x.c (gui_items_to_widget_values_1):
12506         * gui-x.c (gui_items_to_widget_values):
12507         * gui-x.c (syms_of_gui_x):
12508         * gui-x.c (vars_of_gui_x):
12509         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12510         [9].
12511
12512         * gui-x.h:
12513         Muleize, prototype changes matching gui-x.c.
12514
12515         * gui.c:
12516         * gui.c (separator_string_p):
12517         * gui.c (gui_item_add_keyval_pair):
12518         * gui.c (make_gui_item_from_keywords_internal):
12519         * gui.c (signal_too_long_error):
12520         * gui.c (parse_gui_item_tree_item):
12521         * gui.c (syms_of_gui):
12522         * gui.c (vars_of_gui):
12523         * gui.h:
12524         menu-no-selection-hook moved here (used by MSWin).
12525         Move some symbols to general-slots.h.
12526         [6].
12527         [9].
12528
12529         * insdel.c (get_buffer_pos_char):
12530         * insdel.c (get_buffer_range_char):
12531         Add GC comments.
12532
12533         * keymap.c (keymap_lookup_directly):
12534         * keymap.c (keymap_store):
12535         * keymap.c (ensure_meta_prefix_char_keymapp):
12536         * keymap.c (describe_map):
12537         * keymap.h:
12538         Support new button modifiers.
12539
12540         * lisp-disunion.h (wrap_object):
12541         * lisp-disunion.h (XSETOBJ):
12542         Rename make_obj to wrap_object.
12543
12544         * lisp-union.h:
12545         * lisp-union.h (make_int):
12546         * lisp-union.h (make_char):
12547         Support wrap_object.
12548
12549         * lisp.h:
12550         * lisp.h (LIST_LOOP):
12551         * lisp.h (EXTERNAL_LIST_LOOP):
12552         * lisp.h (LIST_LOOP_2):
12553         * lisp.h (EXTERNAL_LIST_LOOP_1):
12554         * lisp.h (EXTERNAL_LIST_LOOP_2):
12555         * lisp.h (EXTERNAL_LIST_LOOP_3):
12556         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12557         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12558         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12559         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12560         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12561         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12562         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12563         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12564         * lisp.h (struct Lisp_Symbol):
12565         * lisp.h (maybe_continuable_error_with_frob):
12566         Fix up section comments.
12567         Add new types for char to indicate usage.
12568         Delete symbols auto-generated from general-slots.h.
12569         Add prototypes for structured error functions.
12570         Add long comments describing looping macros and change interface
12571         so that lvalues are automatically declared.
12572         Add NO_DECLARE macro in case callers want to declare lvalues
12573         themselves.
12574
12575         * lread.c (read_syntax_error):
12576         * lread.c (continuable_read_syntax_error):
12577         * lread.c (read_structure):
12578         * lread.c (sequence_reader):
12579         * lread.c (read_list_conser):
12580         * lread.c (read_compiled_function):
12581         Rename syntax_error and continuable_syntax_error to avoid clash
12582         with same-named structured error functions.
12583
12584         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12585         * menubar-msw.c (populate_menu_add_item):
12586         * menubar-msw.c (populate_or_checksum_helper):
12587         [5].
12588         [9].
12589
12590         * menubar-x.c:
12591         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12592         Mule-ize whole file.
12593
12594         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12595
12596         * mule-charset.c (Fmake_charset):
12597         * mule-wnnfns.c (Fwnn_set_param):
12598         [1].
12599
12600         * ntproc.c (create_child):
12601         * ntproc.c (Fwin32_set_current_locale):
12602         Add comments portending doom.
12603
12604         * objects-msw.c:
12605         * objects-msw.c (old_font_enum_callback_2):
12606         * objects-msw.c (font_enum_callback_1):
12607         * objects-msw.c (mswindows_enumerate_fonts):
12608         [5].
12609
12610         * objects-x.c:
12611         * objects-x.c (allocate_nearest_color):
12612         * objects-x.c (x_parse_nearest_color):
12613         * objects-x.c (x_initialize_color_instance):
12614         * objects-x.c (x_print_color_instance):
12615         * objects-x.c (x_finalize_color_instance):
12616         * objects-x.c (x_valid_color_name_p):
12617         * objects-x.c (x_initialize_font_instance):
12618         * objects-x.c (x_print_font_instance):
12619         * objects-x.c (valid_x_font_name_p):
12620         * objects-x.c (truename_via_FONT_prop):
12621         * objects-x.c (truename_via_random_props):
12622         * objects-x.c (truename_via_XListFonts):
12623         * objects-x.c (x_font_truename):
12624         * objects-x.c (x_font_instance_truename):
12625         * objects-x.c (x_font_instance_properties):
12626         * objects-x.c (x_list_fonts):
12627         * objects-x.c (x_find_charset_font):
12628         Mule-ize entire file.
12629         [7].
12630
12631         * objects-x.h:
12632         Mule-verify.
12633
12634         * print.c:
12635         * print.c (std_handle_out_external):
12636         * print.c (debug_print_no_newline):
12637         * print.c (syms_of_print):
12638         Output to all debugger kinds in debug-print.
12639         Fix console-output code under MSWin to actually work.
12640
12641         * process-nt.c (send_signal):
12642         * process-nt.c (nt_create_process):
12643         Use newer Unicode macros.
12644
12645         * process-unix.c (unix_create_process):
12646         * process-unix.c (unix_canonicalize_host_name):
12647         * process-unix.c (unix_open_network_stream):
12648         [7].
12649
12650         * scrollbar-x.c:
12651         Mule-verify.
12652
12653         * search.c (syms_of_search):
12654         [2].
12655
12656         * select-msw.c (mswindows_destroy_selection):
12657         Use LIST_LOOP_2.
12658
12659         * select-x.c (symbol_to_x_atom):
12660         [7].
12661
12662         * select.c (syms_of_select):
12663         [2].
12664
12665         * sound.c (Fplay_sound_file):
12666         [7].
12667
12668         * specifier.c:
12669         * specifier.c (decode_specifier_type):
12670         * specifier.c (Fvalid_specifier_locale_type_p):
12671         * specifier.c (check_valid_locale_or_locale_type):
12672         * specifier.c (decode_locale):
12673         * specifier.c (decode_locale_type):
12674         * specifier.c (decode_locale_list):
12675         * specifier.c (check_valid_domain):
12676         * specifier.c (decode_specifier_tag_set):
12677         * specifier.c (Fcanonicalize_tag_set):
12678         * specifier.c (Fdefine_specifier_tag):
12679         * specifier.c (Fspecifier_tag_predicate):
12680         * specifier.c (check_valid_inst_list):
12681         * specifier.c (check_valid_spec_list):
12682         * specifier.c (decode_how_to_add_specification):
12683         * specifier.c (check_modifiable_specifier):
12684         * specifier.c (specifier_add_spec):
12685         * specifier.c (boolean_validate):
12686         * specifier.c (display_table_validate):
12687         [9].
12688
12689         * specifier.c (syms_of_specifier):
12690         Move some symbols to general-slots.h.
12691         [2].
12692
12693         * symbols.c:
12694         * symbols.c (Fmapatoms):
12695         * symbols.c (Fapropos_internal):
12696         Add GCPROs.
12697
12698         * symbols.c (set_default_buffer_slot_variable):
12699         * symbols.c (set_default_console_slot_variable):
12700         [1].
12701
12702         * symbols.c (defsymbol_massage_name_1):
12703         * symbols.c (defkeyword_massage_name):
12704         * symbols.c (deferror_1):
12705         * symbols.c (deferror):
12706         * symbols.c (deferror_massage_name_and_message):
12707         * symeval.h:
12708         * symeval.h (DEFSYMBOL):
12709         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12710
12711         * symbols.c (syms_of_symbols):
12712         [2].
12713
12714         * symsinit.h:
12715         * symsinit.h (init_win32): New.
12716         Also new is syms_of_dialog_mswindows.
12717
12718         * syswindows.h:
12719         Add new Unicode macros, missing Cygwin wide-char functions,
12720         convenience conversion macros for Qmswindows_tstr, macros for
12721         encapsulating required MSWin <-> Cygwin filename conversions,
12722         prototype for dynamically-extracted (not in NT 3.51) functions.
12723
12724         * toolbar-x.c:
12725         Mule-verify.
12726
12727         * tooltalk.c (Fadd_tooltalk_message_arg):
12728         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12729         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12730         [7].
12731
12732         * tooltalk.c (syms_of_tooltalk):
12733         [2].
12734
12735         * unexnt.c:
12736         * unexnt.c (unexec):
12737         Fix up headers, declaration of unexec() to be more standard.
12738
12739 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12740
12741         * offix.h: Revert change to guard macros - they're used in offix.c!
12742
12743 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12744
12745         * lisp.h: Defsubred Fdelete.
12746
12747         * console-msw.h:  (msprinter_default_printer): Added.
12748
12749         * console-msw.c (msprinter_canonicalize_console_connection):
12750         (msprinter_canonicalize_device_connection): Added.
12751
12752         * device-msw.c (msprinter_default_printer):
12753         (Fmswingows_get_default_printer):
12754         (signal_enum_priner_error):
12755         (Fmswingows_printer_list): Added.
12756
12757 2000-07-19  Martin Buchholz <martin@xemacs.org>
12758
12759         * XEmacs 21.2.35 is released.
12760
12761 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12762
12763         * select-x.c (x_handle_selection_request):
12764         Text selected in xemacs and pasted into xterm failed to appear.
12765         Spelling fixes and cosmetic changes.
12766
12767 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12768
12769         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12770         XEmacs frame (fix for doubling chars in dialog boxes).
12771
12772 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12773
12774         * select.c (select_convert_in, select_convert_out):
12775         Don't call intern() every time.
12776
12777         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12778         * select.c (vars_of_select): Initialise them.
12779
12780 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12781
12782         * select.c (selection-coercible-types): New.
12783
12784         * select.c (own-selection-internal):
12785         * select.c (get-selection-internal):
12786         MULE bug fix - these should default to COMPOUND_TEXT and not
12787         STRING for MULE. I think.
12788
12789         * select.c (select_convert_out): Use selection-coercible-types
12790         to find types that we can attempt to perform coercions on.
12791
12792 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12793
12794         * mule-wnnfns.c:
12795         * mule-canna.c:
12796         Add coding: cookie to identify encoding.
12797
12798         * mule-canna.c (CANNA_mode_keys): make static.
12799         Use proper prototypes, even for functions of no arguments.
12800         Remove external prototype for Fding().
12801
12802         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12803
12804         * select.c (syms_of_select): Add missing DEFSUBR.
12805
12806 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12807
12808         * select.c (get_selection_internal, own_selection_internal):
12809         Make the type default to STRING, rather than placing a nil type
12810         into Vselection_alist.
12811
12812 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12813
12814         * gpmevent.c (tty_selection_exists_p):
12815         * gpmevent.c (tty_own_selection):
12816         Updated parameter lists.
12817
12818 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12819
12820         * select.h (selection-alist): Removed declaration.
12821
12822         * select.h (get_local_selection):
12823         * select.c (get_local_selection):
12824         Made static.
12825
12826         * select.h (convert_selection): Removed declaration.
12827         * select.c (convert_selection): Removed.
12828         This function belongs in Lisp.
12829
12830         * select.h (select_convert_in): Declare.
12831         * select.h (select_convert_out): Declare.
12832         * select.c (select_convert_in): New.
12833         * select.c (select_convert_out): New.
12834         New conversion functions for other files to call.
12835
12836         * select.h (select_notify_buffer_kill): Declare.
12837         * select.c (select_notify_buffer_kill): New.
12838         New functions that get called from kill-buffer.
12839
12840         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12841         X-specific lisp code.
12842
12843         * select.h: Declare some of the lisp-visible functions for
12844         external use.
12845
12846         * select.c (clean_local_selection_data): Removed. This was
12847         a disgusting function, and previously should have been in
12848         select-x.c in any case. The functionality is now provided
12849         in select-convert-from-integer (select.el).
12850
12851         * select.c (available-selection-types): Fixed stupidity where
12852         INTEGER and ATOM got added twice. Also add STRING when we see an
12853         extent.
12854
12855         * select.c (get-selection-internal): Removed symbol stripping. No
12856         longer causes conversion when data comes from the internal cache.
12857
12858         * select.c (syms_of_select): Added new functions.
12859
12860         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12861         error checking - previously this called abort!
12862
12863         * select-x.c (x_own_selection): Changed comment.
12864
12865         * select-x.c (x_handle_selection_request): Use select_convert_out.
12866         Don't mess with selection-alist; it's an internal variable of select.c.
12867
12868         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12869
12870         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12871         rather than messing with selection-alist.
12872
12873         * select-msw.c (mswindows_get_foreign_selection):
12874         Use TO_INTERNAL_FORMAT rather than hacking.
12875
12876 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12877
12878         * process-unix.c (unix_open_multicast_group):
12879         (unix_open_multicast_group): Remove useless casts.
12880
12881 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12882
12883         * sound.c (Fplay_sound): Fix `unused variable' warning.
12884
12885         * emacs.c (main): Use correct type for _environ on SCO5.
12886
12887 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12888
12889         * console.h (own_selection_method):
12890         * console.h (selection_exists_p_method):
12891         * console.h (available_selection_types_method): New.
12892         * console.h (register_selection_data_type_method): New.
12893         * console.h (selection_data_type_name): New.
12894
12895         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12896         function & alist to track GlobalAlloc()'d handles that need
12897         releasing when the clipboard data gets replaced or emptied.
12898
12899         * event-msw.c (mswindows_wnd_proc): Call it.
12900
12901         * lisp.h, general.c (Qappend): New symbol representing a
12902         `how-to-add' mode.
12903
12904         * select.c (own-selection-internal):
12905         * select.c (selection-exists-p):
12906         * select.c (available-selection-types): New.
12907         * select.c (register-selection-data-type): New.
12908         * select.c (selection-data-type-name): New.  New functions to deal
12909         with device-specific selection data formats.
12910         * select.c (selection-converter-out-alist): Renamed.
12911         * select.c (selection-converter-in-alist): New.
12912         * select.c (selection-appender-alist): New.  Added new alists.
12913         * select.c (syms_of_select, vars_of_select): Added new symbols &
12914         variables.
12915         * select.c (get_local_selection): Split.
12916         * select.c: Removed spurious type checking - selections may now be
12917         of any type, not just strings.
12918         * select.c (own-selection-internal):
12919
12920         * select.h, select.c (convert_selection): New. Created
12921         convert_selection() function based on get_local_selection().
12922         * select.h, select.c (QCF_*): New symbols representing mswindows
12923         clipboard formats.
12924         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12925         symbols representing `how-to-add' modes.
12926
12927         * select-msw.c (x_sym_p): New.
12928         * select-msw.c (symbol_to_ms_cf): New.
12929         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12930         symbols & clipboard formats. Can also handle string names.
12931         * select-msw.c (mswindows_own_selection):
12932         * select-msw.c (mswindows_selection_exists_p):
12933         Added `data-type' parameter. Use it.
12934         * select-msw.c (mswindows_available_selection_types): New.
12935         * select-msw.c (mswindows_register_selection_data_type): New.
12936         * select-msw.c (mswindows_selection_data_type_name): New.
12937         * select-msw.c (mswindows_own_selection):
12938         * select-msw.c (mswindows_get_foreign_selection):
12939         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12940         * select-msw.c (console_create_select_mswindows): Added new methods.
12941         * select-msw.c (mswindows_destroy_selection): New.
12942         * select-msw.c (Vhandle_alist): New list.
12943         * select-msw.c (mswindows_own_selection):
12944
12945         * select-x.c (x_own_selection):
12946         * select-x.c (x_selection_exists_p):
12947         * select-x.c: Added some comments about maybe using new
12948         functionality.
12949         * select-x.c (x_own_selection):
12950
12951         * specifier.c: Remove definition of Qappend (now in general.c)
12952         * specifier.c (syms_of_specifier): Remove Qappend.
12953
12954 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12955
12956         * config.h.in: Add socklen_t.
12957
12958         * s/decosf4-0.h: No special compiler flags needed or desired.
12959         In particular, undefine _BSD for DEC OSF 4.0.
12960
12961 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12962
12963         * redisplay-msw.c (msprinter_frame_output_end): Added.
12964         (console_type_create_redisplay_mswindows): Referred the above.
12965
12966         * frame.c (setup_frame_without_minibuffer): Do not create a
12967         default minibuffer frame on a printer device.
12968
12969         * frame-msw.c (apply_dc_geometry): Added.
12970         (msprinter_start_page):
12971         (msprinter_init_frame_3):
12972         (msprinter_eject_page): Use it.
12973
12974         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12975         and removed residual duplex and orientation properties.
12976
12977 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12978
12979         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12980
12981         * unexalpha.c: Remove system prototypes from C sources!
12982
12983 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12984
12985         * eval.c: Remove references to M-x edit-options in DEFUNs for
12986         `defvar' and `defconst'.
12987
12988 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12989
12990         * config.h.in: Remove SMART_INCLUDE hackery.
12991
12992         PostgreSQL hacking:
12993         * config.h.in: Don't use SMART_INCLUDE.
12994
12995         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12996         * inline.c: Simply #include "postgresql.h"
12997         * postgresql.c:
12998         - Don't use SMART_INCLUDE
12999         - Use simply "const".
13000         - Use standard doc string conventions.
13001         - Use correct type for result of PQstatus.
13002
13003 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13004
13005         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
13006
13007         C++ compilation changes.
13008         * config.h.in (EXTERN_C): Define.
13009         * config.h.in (not): This is also a C++ keyword.
13010         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
13011         * cm.c: Use EXTERN_C.
13012         * redisplay-tty.c: Use EXTERN_C.
13013         * sysdep.c: Use EXTERN_C.  Remove Gould support.
13014
13015 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13016
13017         * general.c: Remove duplicate definition for Qfunction.
13018
13019 2000-07-08  Ben Wing  <ben@xemacs.org>
13020
13021         * device-msw.c (msprinter_init_device):
13022         * device-msw.c (sync_printer_with_devmode):
13023         * device-msw.c (handle_devmode_changes):
13024         * device-msw.c (print_dialog_worker):
13025         * device-msw.c (Fmsprinter_apply_settings):
13026         * device-msw.c (hash_devmode):
13027         * device-msw.c (Fmsprinter_settings_despecialize):
13028         use Qmswindows_tstr, not Qctext.
13029
13030         * vm-limit.c (check_memory_limits):
13031         avoid infinite loop printing warning messages.
13032
13033 2000-07-05  Craig Lanning  <lanning@scra.org>
13034
13035         * Makefile.in.in: Add support for including the Windows resources
13036         when building with the cygwin and mingw targets.
13037
13038         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
13039         not set or not correct.
13040         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
13041         (init_initial_directory): Don't try to use $PWD on the
13042         WIN32_NATIVE target.
13043
13044         * s\cygwin32.h:
13045         [[Add -mwindows to eliminate console window.]] not required --ben
13046         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13047         (MAIL_USE_POP): removed; now handled by configure.
13048
13049         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
13050         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
13051         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13052         (MAIL_USE_POP): removed; now handled by configure.
13053         (ENCAPSULATE_STAT): from Dan Holmsand, added.
13054         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
13055         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
13056         constant string.
13057         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
13058         up from <winsock.h> via systime.h.
13059         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
13060         (getpagesize): from Dan Holmsand, added.
13061         Added #endif which was left dangling by Ben's mega patch; added
13062         comment to help prevent this in the future.
13063
13064         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
13065
13066 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13067
13068         * console-msw.h (struct mswindows_device): Removed unnecessary
13069         cached device geometry values.
13070         Added update_tick and an accessor macro.
13071         (Lisp_Devmode): Added lrecord declaration.
13072         (struct msprinter_device): Contain devmode as a Lisp object.
13073         Added mswindows_get_selected_frame_hwnd();
13074
13075         * console.h (struct console_methods): Indentation nitpicking.
13076
13077         * device-msw.c (mswindows_init_device): Do not initialize geometry
13078         cache. Initialize update tick.
13079         (mswindows_device_system_metrics): Ask the device for its geometry.
13080         (global_free_2_maybe):
13081         (devmode_to_hglobal):
13082         (handle_printer_changes):
13083         (ensure_not_printing):
13084         (print_dialog_worker):
13085         (Fmsprinter_print_setup_dialog):
13086         (Fmsprinter_print_dialog):
13087         (plist_get_margin):
13088         (plist_set_margin):
13089         (Fmsprinter_page_setup_dialog): Added functions.
13090         (sync_printer_with_devmode):
13091         (handle_devmode_changes):
13092         (Fmsprinter_get_settings):
13093         (Fmsprinter_select_settings):
13094         (Fmsprinter_apply_settings):
13095         (allocate_devmode):
13096         (Fmsprinter_settings_copy):
13097         (Fmsprinter_settings_despecialize):
13098         (print_devmode):
13099         (finalize_devmode):
13100         (equal_devmode):
13101         (hash_devmode): Added functions
13102         (syms_of_device_mswindows): Init devmode lrecord class.
13103
13104         * device.h: Added an exfun for find-device.
13105
13106         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13107         geometry; although, recreate the device compatible DC.
13108
13109         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13110         (msprinter_init_frame_3):
13111         (msprinter_frame_property):
13112         (msprinter_internal_frame_property_p):
13113         (msprinter_frame_properties):
13114         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13115         print job properties (will move to device settings).
13116
13117         * lisp.h: Added symbols.
13118
13119         * general.c (syms_of_general): Declared them.
13120
13121         * hash.c (string_hash): Added.
13122
13123         * lrecord.h (lrecord_type): Added devmode lrecord type.
13124
13125 2000-07-02  Mike Sperber <mike@xemacs.org>
13126
13127         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13128         FreeBSD 4.0.
13129
13130 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13131
13132         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13133         integer.
13134
13135 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13136
13137         * data.c (Fstring_to_number): Don't recognize floating point if
13138         base is not 10.
13139
13140 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13141
13142         * glyphs-widget.c (tab_control_query_geometry):
13143         (widget_query_geometry):
13144         (button_query_geometry):
13145         * glyphs.c (text_query_geometry):
13146         Enforce type correctness.
13147
13148 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13149
13150         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13151         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13152
13153 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13154
13155         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13156         conflicts with gcc's fixincluded version of FOO.h.
13157
13158         * glyphs.h (image_instance_geometry): Remove trailing `,'
13159
13160 2000-06-08  Mike Alexander  <mta@arbortext.com>
13161
13162         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13163         (shove_thread): Don't write the same output twice
13164         (make_ntpipe_output_stream): Increase priority of shove thread
13165         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13166         chance to run
13167         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13168         it.
13169
13170 2000-06-12  Ben Wing  <ben@xemacs.org>
13171
13172         * s\mingw32.h (sigset):
13173         * s\windowsnt.h (sigset):
13174         rename msw_ to mswindows_ for consistency with general convention.
13175
13176 2000-06-12  Ben Wing  <ben@xemacs.org>
13177
13178         * console-msw.c:
13179         * console-msw.c (mswindows_get_console_hwnd):
13180         * console-msw.c (mswindows_ensure_console_allocated):
13181         * console-msw.c (mswindows_hide_console):
13182         * console-msw.c (mswindows_show_console):
13183         * console-msw.c (mswindows_ensure_console_buffered):
13184         * console-msw.c (mswindows_output_console_string):
13185         * console-msw.c (mswindows_windows9x_p):
13186         * console-msw.h:
13187         * device-msw.c (mswindows_get_workspace_coords):
13188         * device-msw.c (mswindows_device_system_metrics):
13189         * dialog-msw.c (mswindows_popup_dialog_box):
13190         * event-msw.c (mswindows_wnd_proc):
13191         * frame-msw.c (mswindows_size_frame_internal):
13192         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13193         * menubar-msw.c (displayable_menu_item):
13194         * menubar-msw.c (mswindows_char_is_accelerator):
13195         * nt.c:
13196         * nt.c (mswindows_sigset):
13197         * nt.c (mswindows_sigrelse):
13198         * nt.c (mswindows_sigpause):
13199         * nt.c (mswindows_raise):
13200         * nt.c (timer_proc):
13201         * ntproc.c:
13202         * ntproc.c (find_child_console):
13203         * ntproc.c (sys_kill):
13204         * print.c:
13205         * print.c (std_handle_out_external):
13206         * process-nt.c (find_child_console):
13207         * process-nt.c (send_signal_the_95_way):
13208         * process-nt.c (ensure_console_window_exists):
13209         * process-nt.c (nt_create_process):
13210         * syssignal.h:
13211         rename msw_ to mswindows_ for consistency with general convention.
13212
13213         * emacs.c:
13214         * dumper.c:
13215         include nt.h, not syswindows.h.
13216
13217         * nt.c (mswindows_fstat):
13218         * nt.c (mswindows_stat):
13219         prefix mswindows_ instead of attempting to directly override the
13220         library functions.  fix declarations.
13221
13222         * nt.h:
13223         include syswindows.h.  move some sysdep.h stuff here.
13224
13225         * ntheap.h:
13226         include syswindows.h, not <windows.h>.
13227
13228         * ntplay.c:
13229         clean up headers.
13230
13231         * sysdep.c:
13232         clean up headers.
13233
13234         * sysdep.c (sys_fstat):
13235         * sysdep.c (sys_stat):
13236         call mswindows versions when appropriate.
13237
13238         * sysdep.h:
13239         move mswin decls to nt.h.
13240
13241         * syswindows.h:
13242         add long comment describing appropriate use of the various windows
13243         headers.
13244
13245 2000-06-11  Ben Wing  <ben@xemacs.org>
13246
13247         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13248
13249 2000-06-10  Ben Wing  <ben@xemacs.org>
13250
13251         * Makefile.in.in (release):
13252         Correction to make sure xemacs.exe always dumped when correct.
13253
13254         * alloca.c:
13255         * balloon_help.c:
13256         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13257
13258         * buffer.c (set_buffer_internal):
13259         [[[[2]]]]: Remove HAVE_FEP code.
13260
13261         * buffer.c (init_initial_directory):
13262         [3].
13263
13264         * bytecode.c:
13265         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13266         individual files.
13267
13268         * callproc.c:
13269         * callproc.c (call_process_cleanup):
13270         * callproc.c (Fold_call_process_internal):
13271         * callproc.c (child_setup):
13272         * callproc.c (getenv_internal):
13273         * callproc.c (init_callproc):
13274         * callproc.c (vars_of_callproc):
13275         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13276         __CYGWIN32__ -> CYGWIN.
13277         DOS_NT -> WIN32_NATIVE.
13278         Remove MSDOS support/references, converting to WIN32_NATIVE
13279           where correct.
13280         __MINGW32__ -> MINGW.
13281         Fix windows.h includes.
13282         Remove bogus HAVE_NTGUI.
13283
13284         * config.h.in:
13285         [2].
13286
13287         * console-msw.c:
13288         mswindows_message_outputted added for use in allowing startup
13289         errors on the console to be seen.
13290
13291         * console-msw.c (msw_ensure_console_allocated):
13292         * console-msw.c (msw_output_console_string):
13293         * console-msw.c (DHEADER):
13294         * console-msw.c (DOPAQUE_DATA):
13295         * console-msw.c (DEVENT):
13296         * console-msw.c (DCONS):
13297         * console-msw.c (DCONSCDR):
13298         * console-msw.c (DSTRING):
13299         * console-msw.c (DVECTOR):
13300         * console-msw.c (DSYMBOL):
13301         * console-msw.c (DSYMNAME):
13302         Fix warnings.
13303
13304         * console-stream.c (stream_init_console):
13305         Fix text/binary problems.
13306
13307         * device-msw.c:
13308         * device-msw.c (mswindows_finish_init_device):
13309         * device-msw.c (mswindows_delete_device):
13310         [1].
13311
13312         * device.c (handle_asynch_device_change):
13313         [3].
13314
13315         * dgif_lib.c:
13316         * dgif_lib.c (DGifOpenFileName):
13317         * dgif_lib.c (DGifOpenFileHandle):
13318         * dgif_lib.c (DGifGetLine):
13319         * dgif_lib.c (DGifGetPixel):
13320         Added config.h/lisp.h, fix up includes.
13321         [1].
13322
13323         * dired-msw.c:
13324         [4].
13325
13326         * dired.c:
13327         * dired.c (file_name_completion):
13328         * dired.c (Ffile_attributes):
13329         * dired.c (syms_of_dired):
13330         [1].
13331
13332         * dumper.c:
13333         * dumper.c (pdump_file_unmap):
13334         * dumper.c (pdump_load):
13335         [1].
13336
13337         * editfns.c:
13338         * editfns.c (Ftemp_directory):
13339         * editfns.c (user_login_name):
13340         * editfns.c (Fuser_real_login_name):
13341         * editfns.c (get_home_directory):
13342         [1].
13343
13344         * elhash.c (finish_marking_weak_hash_tables):
13345         [[[[5]]]]: Fix GCC warnings.
13346
13347         * emacs.c:
13348         * emacs.c (mswindows_handle_hardware_exceptions):
13349         * emacs.c (make_arg_list_1):
13350         * emacs.c (main_1):
13351         * emacs.c (Fkill_emacs):
13352         * emacs.c (Fdump_emacs):
13353         [1].
13354         Fix problems with nested crashes, add long comment.
13355
13356         * event-Xt.c (init_event_Xt_late):
13357         [1].
13358
13359         * event-msw.c:
13360         * event-msw.c (mswindows_dde_callback):
13361         * event-msw.c (mswindows_handle_sticky_modifiers):
13362         * event-msw.c (mswindows_wnd_proc):
13363         [1].
13364         [5].
13365
13366         * events.c (character_to_event):
13367         [1].
13368
13369         * fileio.c:
13370         * fileio.c (Ffile_name_directory):
13371         * fileio.c (Ffile_name_nondirectory):
13372         * fileio.c (directory_file_name):
13373         * fileio.c (Fexpand_file_name):
13374         * fileio.c (Fsubstitute_in_file_name):
13375         * fileio.c (Ffile_name_absolute_p):
13376         * fileio.c (check_executable):
13377         * fileio.c (Ffile_readable_p):
13378         * fileio.c (Ffile_accessible_directory_p):
13379         * fileio.c (Ffile_modes):
13380         * fileio.c (Funix_sync):
13381         * fileio.c (vars_of_fileio):
13382         [1]. [4].
13383
13384         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13385
13386         Expand getdefdir defn.
13387         Fix bogus rename() comment.
13388
13389         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13390         to use standard XEmacs include files, e.g. sysfile.h, rather
13391         than system-specific includes.
13392
13393         * fns.c:
13394         * fns.c (Fsubseq):
13395         [5]. [6].
13396
13397         * frame.c (vars_of_frame):
13398         [1].
13399
13400         * getloadavg.c:
13401         * getloadavg.c (getloadavg):
13402         [1]. [6].
13403         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13404         (We don't use it elsewhere in the code; just add a comment.)
13405
13406         * gif_io.c:
13407         [6].
13408         Add config.h.
13409
13410         * glyphs-msw.c:
13411         * glyphs-msw.c (mswindows_resource_instantiate):
13412         [1].
13413
13414         * glyphs-x.c (x_native_layout_instantiate):
13415         [5].
13416
13417         * gui-msw.c (Fmswindows_shell_execute):
13418         [1].
13419
13420         * insdel.c:
13421         [4].
13422
13423         * lisp.h:
13424         [4]. [5].
13425
13426         * lread.c (locate_file_in_directory_mapper):
13427         [1].
13428
13429         * lstream.c:
13430         [4].
13431
13432         * mem-limits.h:
13433         * mem-limits.h (get_lim_data):
13434         [1].
13435
13436         * menubar-msw.c:
13437         [4].
13438
13439         * ndir.h:
13440         [1].
13441
13442         * nt.c:
13443         * nt.c (getwd):
13444         * nt.c (closedir):
13445         * nt.c (rva_to_section):
13446         * nt.c (mswindows_executable_type):
13447         [1]. [6].
13448         Fix closedir() defn.
13449
13450         * nt.h:
13451         [[[[8]]]]: *_OK defs moved to sysfile.h.
13452
13453         * ntproc.c:
13454         [6]. [7].
13455
13456         * objects-x.c:
13457         [4].
13458
13459         * print.c:
13460         * print.c (std_handle_out_external):
13461         [1]. [4].
13462
13463         * process-nt.c:
13464         * process-nt.c (nt_create_process):
13465         [6].
13466         try to fix process quoting somewhat.
13467
13468         * process-unix.c (unix_create_process):
13469         [1].
13470
13471         * process.c:
13472         * process.c (vars_of_process):
13473         Add Vnull_device.
13474
13475         * process.h:
13476         [1].
13477
13478         * realpath.c:
13479         * realpath.c (xrealpath):
13480         [1].
13481
13482         * redisplay-tty.c (init_tty_for_redisplay):
13483         [3].
13484
13485         * redisplay.c:
13486         [4]. [6].
13487
13488         * scrollbar-msw.c:
13489         [4].
13490
13491         * sheap.c:
13492         * sheap.c (more_static_core):
13493         * sheap.c (report_sheap_usage):
13494         [5]. [6].
13495
13496         * signal.c:
13497         * signal.c (alarm_signal):
13498         [1]. [6].
13499
13500         * sound.c:
13501         [6].
13502
13503         * strftime.c:
13504         * strftime.c (zone_name):
13505         [1]. [5].
13506
13507         * symsinit.h (init_sunpro):
13508         [1].
13509
13510         * syscommctrl.h:
13511         commctrl.h not in Cygwin b20.1.
13512
13513         * sysdep.c:
13514         * sysdep.c (endif):
13515         * sysdep.c (sys_subshell):
13516         * sysdep.c (init_baud_rate):
13517         * sysdep.c (emacs_get_tty):
13518         * sysdep.c (emacs_set_tty):
13519         * sysdep.c (tty_init_sys_modes_on_device):
13520         * sysdep.c (init_system_name):
13521         * sysdep.c (sys_open):
13522         * sysdep.c (interruptible_open):
13523         * sysdep.c (sys_fopen):
13524         * sysdep.c (sys_mkdir):
13525         * sysdep.c (sys_rename):
13526         * sysdep.c (get_process_times_1):
13527         [1]. [6].
13528
13529         * sysdep.h:
13530         [1].
13531
13532         * sysdir.h:
13533         * sysdir.h (DIRENTRY_NONEMPTY):
13534         [1]. [6].
13535
13536         * sysdll.c (dll_init):
13537         * sysdll.h:
13538         [1].
13539
13540         * sysfile.h:
13541         [1]. [6]. [8].
13542         added text/binary defs.
13543
13544         * sysfloat.h:
13545         [1].
13546
13547         * sysproc.h:
13548         * sysproc.h (EDESTADDRREQ):
13549         * sysproc.h (poll_fds_for_input):
13550         [1]. [6].
13551
13552         * syspwd.h:
13553         [6].
13554
13555         * syssignal.h:
13556         [1].
13557
13558         * systime.h:
13559         [1]. [6].
13560
13561         * systty.h:
13562         [1].
13563
13564         * syswindows.h:
13565         [1].
13566         Always define WIN32_LEAN_AND_MEAN.
13567
13568         * unexcw.c (unexec):
13569         [5].
13570
13571         * unexec.c:
13572         * unexec.c (copy_text_and_data):
13573         * unexec.c (adjust_lnnoptrs):
13574         [1].
13575
13576         * unexnt.c:
13577         * unexnt.c (_start):
13578         [1].
13579
13580 2000-06-07  Ben Wing  <ben@xemacs.org>
13581
13582         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13583         was used only as a model.  We've long since extracted any useful
13584         logic or code out of this. (I just did an exhaustive search.)
13585
13586         * s\msdos.h: Removed.
13587
13588         * s\windows95.h: Removed.
13589
13590 2000-06-10  Ben Wing  <ben@xemacs.org>
13591
13592         * s\cygwin32.h:
13593         [1]. [5].
13594         Don't use extern with fun defs.
13595
13596         * s\mingw32.h:
13597         [1]. [7].
13598         Remove nt\inc include.
13599         Remove getdisk, getdefdir. (The former is unused, the latter
13600         expanded in fileio.h.)
13601
13602         * s\windowsnt.h:
13603         * s\windowsnt.h (WIN32_NATIVE):
13604         * s\windowsnt.h (HAVE_STRCASECMP):
13605         [1]. [7].
13606         Add long comment about preprocessor changes.
13607         Remove getdisk, getdefdir. (The former is unused, the latter
13608         expanded in fileio.h.)
13609
13610 2000-06-10  Ben Wing  <ben@xemacs.org>
13611
13612         * m\arm.h:
13613         * m\delta.h:
13614         * m\intel386.h:
13615         * m\sequent.h:
13616         * m\template.h:
13617         * m\windowsnt.h:
13618         [1].
13619         Remove bogus/unused NO_SOCK_SIGIO.
13620
13621 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13622
13623         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13624         not an Emchar.
13625
13626 2000-06-04  Mike Sperber <mike@xemacs.org>
13627
13628         * casetab.c (set_case_table): For `set-standard-case-table',
13629         actually deposit the new case tables where the rest of XEmacs can
13630         see them.
13631
13632 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13633
13634         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13635
13636 2000-06-05  Ben Wing  <ben@xemacs.org>
13637
13638         * callproc.c (child_setup): Don't do close_load_descs() under
13639         MS Windows.  Put in a comment explaining why.
13640
13641 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13642
13643         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13644         Toolkit shell" which breaks `kill-compilation' on Windows NT
13645         native, retaining STDERR handling improvements.
13646
13647 2000-06-01  Andreas Jaeger  <aj@suse.de>
13648
13649         * s/s390.h: Support for S390, based on a patch by Martin
13650         Schwidefsky <schwidefsky@de.ibm.com>.
13651
13652 2000-05-30  Andy Piper  <andy@xemacs.org>
13653
13654         * window.c (allocate_window):
13655         (make_dummy_parent):
13656         (Fset_window_configuration): use new hashtable type.
13657
13658         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13659         (struct image_instantiator_methods):
13660         (struct Lisp_Image_Instance): make instance geometry signed.
13661
13662         * glyphs.c (instantiate_image_instantiator):
13663         (image_instance_query_geometry):
13664         (image_instance_layout):
13665         (image_instance_layout):
13666         (query_string_geometry):
13667         (text_query_geometry):
13668         (image_instantiate):
13669         (image_instantiate):
13670         (cache_subwindow_instance_in_frame_maybe):
13671         (subwindow_query_geometry): make instance geometry signed.
13672
13673         * glyphs-widget.c (widget_query_geometry):
13674         (widget_layout):
13675         (button_query_geometry):
13676         (tree_view_query_geometry):
13677         (tab_control_query_geometry):
13678         (layout_query_geometry):
13679         (layout_layout):
13680         (native_layout_layout): make instance geometry signed.
13681
13682 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13683
13684         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13685         constant.
13686
13687         * general.c (syms_of_general): Add Qfull_assoc symbol.
13688
13689         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13690         correctly.
13691         (decode_weak_list_type): Decode full-assoc type.
13692         (encode_weak_list_type): Encode full-assoc type.
13693         (Fmake_weak_list): Update doc string.
13694
13695 2000-05-30  Andy Piper  <andy@xemacs.org>
13696
13697         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13698
13699         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13700         (decode_hash_table_weakness): ditto.
13701         (Fhash_table_weakness): ditto.
13702         (Fhash_table_type): ditto.
13703         (finish_marking_weak_hash_tables): ditto.
13704         (hash_table_weakness_validate): ditto.
13705         (syms_of_elhash): ditto.
13706
13707 2000-05-28  Martin Buchholz <martin@xemacs.org>
13708
13709         * XEmacs 21.2.34 is released.
13710
13711 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13712
13713         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13714         start cache.
13715         (updating_line_start_cache): Gone.
13716         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13717         generic code to force a minimum of 1 line laid out in the
13718         CMOTION_DISP case.
13719
13720 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13721
13722         * glyphs.c (instantiate_image_instantiator): Check for initialized
13723         height & width no longer special cases IMAGE_NOTHING.
13724         (nothing_instantiate): Set height and width of instance.
13725
13726 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13727
13728         * unexelf.c (unexec): Search for ".data" section.
13729         Initialize new_data2_offset from old_data_index.
13730         Remove redundant check for ElfW.
13731
13732 2000-05-23  Andy Piper  <andy@xemacs.org>
13733
13734         * glyphs.c (get_image_instantiator_governing_domain): allow more
13735         specific domains as the governing domain rather than expecting an
13736         exact match. This fixes problems with layouts.
13737
13738 2000-05-22  Andy Piper  <andy@xemacs.org>
13739
13740         * redisplay-output.c (compare_runes): check for non-images
13741
13742         * glyphs.c (set_glyph_dirty_p): ditto.
13743         (update_glyph_cachel_data): ditto.
13744
13745         * glyphs-widget.c (layout_post_instantiate): ditto.
13746         (layout_post_instantiate): ditto.
13747
13748         * event-msw.c (mswindows_wnd_proc): warning removal.
13749
13750 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13751
13752         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13753
13754         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13755
13756         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13757
13758         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13759         (mswindows_executable_type): mingw32 now has enough headers for
13760         this to work.
13761
13762 2000-05-20  Andy Piper  <andy@xemacs.org>
13763
13764         * console-msw.c (mswindows_output_last_error): ; -> ,
13765
13766 2000-05-12  Andy Piper  <andy@xemacs.org>
13767
13768         * console-msw.c (FROB): compare ints with ints.
13769
13770 2000-05-11  Andy Piper  <andy@xemacs.org>
13771
13772         * glyphs-x.c (x_finalize_image_instance): make minimal build
13773         happy.
13774
13775 2000-05-20  Ben Wing  <ben@xemacs.org>
13776
13777         * event-Xt.c:
13778         * event-Xt.c (vars_of_event_Xt):
13779         move modifier-keys-are-sticky to event-stream.c.
13780
13781         * event-msw.c:
13782         * event-msw.c (mswindows_enqueue_mouse_button_event):
13783         * event-msw.c (key_needs_default_processing_p):
13784         * event-msw.c (XEMSW_LCONTROL):
13785         * event-msw.c (mswindows_handle_sticky_modifiers):
13786         * event-msw.c (FROB):
13787         * event-msw.c (clear_sticky_modifiers):
13788         * event-msw.c (output_modifier_keyboard_state):
13789         * event-msw.c (output_alt_keyboard_state):
13790         * event-msw.c (mswindows_wnd_proc):
13791         * event-msw.c (mswindows_modifier_state):
13792         * event-msw.c (emacs_mswindows_handle_magic_event):
13793         implement sticky modifiers.
13794
13795         * event-stream.c:
13796         * event-stream.c (vars_of_event_stream):
13797         move modifier-keys-are-sticky here.
13798
13799         * lisp.h:
13800         add CHECK_FUNCTION.
13801
13802         * rangetab.c:
13803         implement map-range-table.
13804
13805
13806 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13807
13808         * redisplay-tty.c (reset_tty_modes):
13809         (tty_redisplay_shutdown): Adjust argument type to
13810         tty_frame_output_end.
13811
13812 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13813
13814         * eval.c (Fbacktrace): Don't output a line with only right
13815         parenthesis.
13816
13817 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13818
13819         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13820         (Fpq_reset_poll): Ditto.
13821
13822 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13823
13824         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13825
13826 2000-05-16  Ben Wing  <ben@xemacs.org>
13827
13828         * buffer.c:
13829         * buffer.c (dfc_convert_to/from_internal_format):
13830         * buffer.c (reinit_vars_of_buffer):
13831         Fix conversion functions to allow reentrancy.
13832
13833         * console-msw.c:
13834         * console-msw.c (mswindows_output_last_error):
13835         New fun, generally useful -- output a human-readable
13836         version of GetLastError() on the console.
13837
13838         * console-msw.h:
13839         * console-msw.h (struct mswindows_frame):
13840         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13841
13842         * console-stream.c (stream_output_begin):
13843         * console-stream.c (stream_output_end):
13844         * console-stream.c (stream_output_vertical_divider):
13845         * console-stream.c (stream_clear_region):
13846         * console-stream.c (stream_flash):
13847         * console-stream.c (console_type_create_stream):
13848         Delete blank stream methods, not needed.
13849
13850         * console.h (struct console_methods):
13851         Split begin/end methods into window and frame.
13852
13853         * event-msw.c:
13854         * event-msw.c (mswindows_handle_paint):
13855         * event-msw.c (output_alt_keyboard_state):
13856         * event-msw.c (mswindows_wnd_proc):
13857         * event-msw.c (vars_of_event_mswindows):
13858         Comment about problems with ignored-expose.
13859         Define mswindows-debug-events; not really implemented.
13860
13861         * frame-msw.c (mswindows_init_frame_1):
13862         random cleanups.
13863
13864         * glyphs-msw.c:
13865         * glyphs-msw.c (begin_defer_window_pos):
13866         * glyphs-msw.c (mswindows_unmap_subwindow):
13867         * glyphs-msw.c (mswindows_map_subwindow):
13868         * glyphs-msw.c (mswindows_resize_subwindow):
13869         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13870
13871         * glyphs.c (make_image_instance_1):
13872         Fix crash.
13873
13874         * gutter.c (Fredisplay_gutter_area):
13875         Use new begin/end methods.
13876
13877         * lisp.h (Dynarr_new2):
13878         New creation fun.
13879
13880         * redisplay-msw.c:
13881         * redisplay-msw.c (mswindows_frame_output_begin):
13882         * redisplay-msw.c (mswindows_frame_output_end):
13883         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13884         New begin/end methods -- handle DeferWindowPos.
13885
13886         * redisplay-output.c (redisplay_move_cursor):
13887         * redisplay-output.c (redraw_cursor_in_window):
13888         * redisplay-output.c (redisplay_update_line):
13889         * redisplay-output.c (redisplay_output_window):
13890         New begin/end methods.
13891
13892         * redisplay-tty.c:
13893         * redisplay-tty.c (tty_frame_output_begin):
13894         * redisplay-tty.c (tty_frame_output_end):
13895         * redisplay-tty.c (console_type_create_redisplay_tty):
13896         New begin/end methods.
13897
13898         * redisplay-x.c:
13899         * redisplay-x.c (x_window_output_begin):
13900         * redisplay-x.c (x_window_output_end):
13901         * redisplay-x.c (console_type_create_redisplay_x):
13902         New begin/end methods.
13903
13904         * redisplay.c (redisplay_frame):
13905         * redisplay.c (Fredisplay_echo_area):
13906         New begin/end methods.
13907         use MAYBE_DEVMETH for clear_frame; it may not exist.
13908
13909         * window.h (WINDOW_XFRAME):
13910         WINDOW_XFOO macros -- get locale and decode struct pointer.
13911
13912
13913 2000-05-12  Ben Wing  <ben@xemacs.org>
13914
13915         * emacs.c:
13916         * emacs.c (ensure_no_quitting_from_now_on):
13917         * emacs.c (fatal_error_signal):
13918         * emacs.c (mswindows_handle_hardware_exceptions):
13919         * emacs.c (main):
13920         * emacs.c (Fkill_emacs):
13921         * emacs.c (shut_down_emacs):
13922         * emacs.c (assert_failed):
13923         various improvements in fatal error handling.
13924
13925         * eval.c:
13926         move preparing_for_armageddon to emacs.c.
13927
13928         * lisp.h:
13929         declare fatal_error_in_progress.
13930
13931         * print.c:
13932         * print.c (std_handle_out_external):
13933         * print.c (std_handle_out_va):
13934         * print.c (stderr_out):
13935         * print.c (stdout_out):
13936         use console under mswin when no standard output.
13937         don't do code conversion during fatal error.
13938
13939         * scrollbar.c (Fscrollbar_page_up):
13940         * scrollbar.c (Fscrollbar_page_down):
13941         fix missing else.  reindent.
13942
13943 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13944
13945         Emergency fix.
13946
13947         * glyphs.h (GLYPH_CACHEL_DESCENT):
13948         (GLYPH_CACHEL_DESCENT):
13949         (GLYPH_CACHEL_DESCENT):
13950         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13951         used in case these are inline functions.
13952         Use more absurd values to error check.
13953
13954         include window.h for error check functions.
13955
13956 2000-05-11  Ben Wing  <ben@xemacs.org>
13957
13958         * cmdloop.c (Freally_early_error_handler):
13959         Display message box under windows; otherwise, message will disappear
13960         before it can be viewed.
13961
13962         * console-msw.c:
13963         * console-msw.c (Fmswindows_message_box):
13964         * console-msw.c (FROB):
13965         * console-msw.c (syms_of_console_mswindows):
13966         Define new fun `mswindows-message-box'.
13967         #### I will merge this into `popup-dialog-box'; just give me
13968         a bit of time.
13969
13970         * general.c:
13971         * general.c (syms_of_general):
13972         Some new symbols used in `mswindows-message-box'.
13973
13974         * glyphs.c:
13975         * glyphs.c (Fset_image_instance_property):
13976         put warning in this fun.
13977
13978         * glyphs.h:
13979         * glyphs.h (GLYPH_CACHEL_WIDTH):
13980         * glyphs.h (GLYPH_CACHEL_ASCENT):
13981         * glyphs.h (GLYPH_CACHEL):
13982         * glyphs.h (GLYPH_CACHEL_GLYPH):
13983         define error-checking versions to try to catch a bug i've seen --
13984         redisplay gets in an infinite loop because the glyph width of the
13985         continuation glyph is 65535.
13986
13987         * lisp.h:
13988         Extern message-box stuff.
13989
13990         * window.c (allocate_window):
13991         * window.c (make_dummy_parent):
13992         * window.c (Fset_window_configuration):
13993         Use EQUAL not EQ for subwindow caches to make them work a bit
13994         better. (Something is still very broken.)
13995
13996
13997 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13998
13999         * glyphs.c (image_instantiate): Suppress gcc warnings.
14000         (Fmake_image_instance): Fix doc string.
14001         * specifier.c (Fmake_specifier): Ditto.
14002
14003 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
14004
14005         * paths.h.in (PATH_LOCK): Removed.
14006         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
14007         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
14008
14009 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14010
14011         * fns.c (Ffeaturep): Update e-mail address in doc-string.
14012         Document (featurep '(and xemacs 21.02)).
14013
14014 2000-05-09  Ben Wing  <ben@xemacs.org>
14015
14016         * buffer.c (complex_vars_of_buffer):
14017         update modeline-format doc.
14018
14019         * device.h:
14020         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
14021
14022         * emacs.c:
14023         timeline of all released versions of Emacs, for use in creating
14024         authorship comments and in synching up.
14025
14026         * glyphs-widget.c (image_instantiator_buttons):
14027         * glyphs-widget.c (image_instantiator_edit_fields):
14028         * glyphs-widget.c (image_instantiator_combo_box):
14029         * glyphs-widget.c (image_instantiator_scrollbar):
14030         * glyphs-widget.c (image_instantiator_progress_guage):
14031         * glyphs-widget.c (image_instantiator_tree_view):
14032         * glyphs-widget.c (image_instantiator_tab_control):
14033         * glyphs-widget.c (image_instantiator_labels):
14034         * glyphs-widget.c (image_instantiator_layout):
14035         * glyphs-widget.c (image_instantiator_native_layout):
14036         rename decode_domain method to governing_domain.
14037
14038         * glyphs.c:
14039         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
14040         * glyphs.c (add_entry_to_device_ii_format_list):
14041         make sure we don't put an entry more than once into the list.
14042         * glyphs.c (check_instance_cache_mapper):
14043         *************************************************************
14044         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14045         HAVE BEEN GETTING.
14046         *************************************************************
14047         * glyphs.c (get_image_instantiator_governing_domain):
14048         clean up, expand on new concept of governing domain.
14049         * glyphs.c (instantiate_image_instantiator):
14050         * glyphs.c (allocate_image_instance):
14051         use governing_domain instead of cache_domain in naming.
14052         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
14053         * glyphs.c (make_image_instance_1):
14054         * glyphs.c (Fmake_image_instance):
14055         allow for any domain (not just device), and process the
14056         governing domain correctly.  very big doc fix.
14057         * glyphs.c (Fimage_instance_domain):
14058         new primitive, to retrieve the governing domain of an image instance.
14059         * glyphs.c (image_instantiate):
14060         use new governing_domain stuff.  this fixes a crash you could get
14061         by instantiating certain widget glyphs in frame locales. (should
14062         signal an error instead of crashing.)
14063         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
14064         * glyphs.c (Fglyphp): clean up doc.
14065         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
14066         * glyphs.c (syms_of_glyphs):
14067         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
14068         * glyphs.c (image_instantiator_format_create): add some comments about
14069         bogus code.
14070         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
14071         for current-display-table. (Apparently Hrjove implemented in 1998 a
14072         design I wrote up in 1996, but didn't update the doc string.)
14073
14074         * glyphs.h: clean up a doc string.
14075         * glyphs.h (governing_domain):
14076         * glyphs.h (struct image_instantiator_methods):
14077         changes for governing_domain stuff.
14078
14079         * gutter.c:
14080         * gutter.c (Fgutter_specifier_p):
14081         * gutter.c (Fgutter_size_specifier_p):
14082         * gutter.c (Fgutter_visible_specifier_p):
14083         * objects.c:
14084         * objects.c (Fcolor_specifier_p):
14085         * objects.c (Ffont_specifier_p):
14086         * objects.c (Fface_boolean_specifier_p):
14087         doc strings moved to make-*-specifier.
14088
14089         * redisplay.c (add_disp_table_entry_runes_1):
14090         * redisplay.c (generate_fstring_runes):
14091         * redisplay.c (screen):
14092         add random comments and doc strings.
14093
14094         * specifier.c:
14095         * specifier.c (Fmake_specifier):
14096         major overhaul of this doc string.
14097
14098         * specifier.c (Fvalid_specifier_domain_p):
14099         comment about the bogosity of image instances being domains.
14100         * specifier.c (decode_domain):
14101         now non-static, used in glyphs.c.
14102         * specifier.c (specifier_instance):
14103         comment about the bogosity of image instances being domains.
14104         * specifier.c (Fgeneric_specifier_p):
14105         move doc string to make-generic-specifier.
14106         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14107         rebackslashify.
14108
14109         * specifier.h:
14110         * specifier.h (DOMAIN_FRAME):
14111         * specifier.h (DOMAIN_LIVE_P):
14112         * specifier.h (DOMAIN_XDEVICE):
14113         rebackslashify.
14114         add comments about problems with these macros.
14115         prototype for decode_domain.
14116
14117         * toolbar.c:
14118         * toolbar.c (Ftoolbar_specifier_p):
14119         move doc string to `make-toolbar-specifier'.
14120
14121         * window.c (window_unmap_subwindows_cache_mapper):
14122         *************************************************************
14123         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14124         HAVE BEEN GETTING.
14125         *************************************************************
14126
14127 2000-05-09  Andy Piper  <andy@xemacs.org>
14128
14129         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14130
14131         * window.c (Fset_window_configuration): reset the frame subwindow
14132         cache and re-initialize the window subwindow caches.
14133
14134         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14135
14136 2000-05-09  Ben Wing  <ben@xemacs.org>
14137
14138         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14139         DWORD.
14140
14141 2000-04-26  Mike Woolley  <mike@bulsara.com>
14142
14143         * ntheap.c: Changed recreate_heap to limit the amount reserved
14144         for the heap to that which is actually available. Also now
14145         displays a message box (with some dignostics) in the event that
14146         it still can't start.
14147
14148 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14149
14150         * callproc.c (Fold_call_process_internal): GCPRO path
14151
14152 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14153
14154         Patch by Bill Perry.
14155
14156         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14157         back data instead of #ifdef.
14158         (Fscrollbar_page_down): ditto.
14159
14160 2000-05-07  Ben Wing  <ben@xemacs.org>
14161
14162         * buffer.h:
14163         Kludge for defining Qmswindows_tstr.
14164
14165         * nt.c:
14166         * nt.c (open_input_file):
14167         * nt.c (open_output_file):
14168         * nt.c (rva_to_section):
14169         * nt.c (mswindows_executable_type):
14170         Move all memory-mapped-file routines here (some were in unexnt.c,
14171         which is bad because they are used by process-nt.c, and unexnt
14172         won't be around when portable dumping).  Synched the above routines
14173         with FSF 20.6.
14174
14175         * nt.h:
14176         Removed ifdef'd out bogus code.
14177         Fixed some prototypes.
14178
14179         * nt.h (file_data):
14180         * nt.h (OFFSET_TO_RVA):
14181         * nt.h (RVA_TO_OFFSET):
14182         * nt.h (RVA_TO_PTR):
14183         Moved the memory-mapped-file structures, macros and prototypes
14184         here, to parallel nt.c.  ntheap.h should really be removed
14185         entirely, and it's a non-portable-dumper specific file.
14186
14187         * ntheap.h (round_to_next):
14188         Moved the memory-mapped-file structures, macros and prototypes
14189         to nt.h.
14190
14191         * ntproc.c (compare_env):
14192         Moved rva_to_section and mswindows_executable_type to nt.c.
14193         Moved compare_env to process-nt.c.
14194         ntproc.c will die, one day.
14195
14196         * ntproc.c (sys_spawnve):
14197         Account for win32_ -> mswindows_.
14198
14199         * process-nt.c:
14200         * process-nt.c (struct nt_process_data):
14201         * process-nt.c (ensure_console_window_exists):
14202         * process-nt.c (compare_env):
14203         * process-nt.c (nt_create_process):
14204         * process-nt.c (nt_kill_process_by_pid):
14205         * process-nt.c (syms_of_process_nt):
14206         * process-nt.c (vars_of_process_nt):
14207         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14208         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14209         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14210         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14211         Move compare_env here from ntproc.c.
14212
14213         * process.c (Fprocess_send_region):
14214         Takes an optional fourth argument, BUFFER, which should fix some
14215         problems with call-process.
14216
14217         * syscommctrl.h:
14218         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14219
14220         * syswindows.h:
14221         Move ICC_BAR_CLASSES to syscommctrl.h.
14222         Add preliminary macros for MSWindows/Mule.  More to come.
14223
14224         * unexnt.c:
14225         * unexnt.c (unexec):
14226         open_output_file moved to nt.c.
14227
14228
14229 2000-05-05  Andy Piper  <andy@xemacs.org>
14230
14231         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14232         instance from the frame cache also since GC may catch up too late
14233         to make frame deletion sane.
14234
14235 2000-05-04  Andy Piper  <andy@xemacs.org>
14236
14237         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14238         (x_finalize_image_instance): ungcpro on deletion.
14239
14240         * glyphs.c (image_instantiator_format_create): give pointers a
14241         query geometry method so that the geometry is at least set.
14242
14243         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14244         initialize layouts if using widgets.
14245
14246 2000-05-03  Andy Piper  <andy@xemacs.org>
14247
14248         * nt.c: remove bogus reference to sysmmsystem.h
14249
14250         * gui-x.c (popup_selection_callback): fix no selection abort.
14251
14252 2000-05-02  Andy Piper  <andy@xemacs.org>
14253
14254         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14255         (mswindows_widget_instantiate): ditto.
14256
14257         * glyphs-widget.c (initialize_widget_image_instance): initialize
14258         children correctly.
14259         (widget_instantiate): cope with children and items in the same
14260         instance.
14261
14262         * glyphs.c (mark_image_instance): cope with children as a first
14263         class member.
14264         (image_instance_equal): ditto.
14265         (image_instance_hash): ditto.
14266         (image_instance_changed): ditto.
14267
14268 2000-04-30  Andy Piper  <andy@xemacs.org>
14269
14270         * glyphs.c (subwindow_query_geometry): new function. Return some
14271         defaults.
14272         (subwindow_instantiate): don't assign dimensions if none have been
14273         given.
14274         (image_instantiator_format_create): add subwindow_query_geometry.
14275         (print_image_instance): cope with layouts as widgets.
14276
14277 2000-04-29  Andy Piper  <andy@xemacs.org>
14278
14279         * frame.c (delete_frame_internal): call
14280         free_frame_subwindow_instance_cache so that all subwindows are
14281         finalized before their parent.
14282         (mark_frame): remove subwindow_cachels.
14283         (Fmake_frame): remove subwindow_cachel manipulation.
14284         (allocate_frame_core): subwindow_instance_cache is a weak list.
14285         (delete_frame_internal): set subwindow_instance_cache to nil.
14286
14287         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14288         finalization safe.
14289         (mswindows_finalize_image_instance): use the device
14290         not the domain as the domain may have died already.
14291
14292         * glyphs-x.c (x_finalize_image_instance): ditto.
14293         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14294         HEIGHT.
14295
14296         * redisplay-output.c (redisplay_unmap_subwindows): update for
14297         subwindow instance cache as a weak list.
14298         (redisplay_unmap_subwindows_maybe): ditto.
14299         (redisplay_unmap_subwindows_except_us): ditto.
14300
14301         * glyphs.c (unmap_subwindow): error checking will check the domain
14302         so don't deal with it here. Don't use cachels anymore.
14303         (map_subwindow): ditto.
14304         (update_subwindow_cachel_data): remove old accessor names.
14305         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14306         (Fresize_subwindow): don't update cachel.
14307         (mark_subwindow_cachels):
14308         (update_subwindow_cachel_data):
14309         (add_subwindow_cachel):
14310         (get_subwindow_cachel_index):
14311         (update_subwindow_cachel):
14312         (reset_subwindow_cachels):
14313         (mark_subwindow_cachels_as_not_updated): deleted.
14314         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14315         subwindow instance to the frame cache.
14316         (find_matching_subwindow): update for subwindow instance cache as
14317         a weak list.
14318         (update_widget_instances): ditto.
14319         (image_instance_type_to_mask):inlined.
14320         (free_frame_subwindow_instance_cache): new function. finalize all
14321         subwindows that are instantiated.
14322
14323         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14324         of cachel information.
14325         (IMAGE_INSTANCE_DISPLAY_X):
14326         (IMAGE_INSTANCE_DISPLAY_Y):
14327         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14328         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14329         (XIMAGE_INSTANCE_DISPLAY_X):
14330         (XIMAGE_INSTANCE_DISPLAY_Y):
14331         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14332         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14333         remove subwindow_cachel structure and function references.
14334         (image_instance_type_to_mask): inline from glyphs.c
14335
14336         * redisplay.c (redisplay_frame): remove subwindow_cachel
14337         references.
14338
14339         * frame.h (struct frame): remove subwindow_cachels.
14340         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14341
14342         * frameslots.h: add subwindow_instance_cache.
14343
14344         * window.c (replace_window): check subwindow cache of replacement.
14345         (window_unmap_subwindows_cache_mapper):
14346         (window_unmap_subwindows): new functions. Unmap all subwindows
14347         cached on this window.
14348         (mark_window_as_deleted): unmap all subwindows.
14349
14350 2000-04-27  Andy Piper  <andy@xemacs.org>
14351
14352         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14353
14354         * glyphs-widget.c (widget_layout): return something.
14355         (layout_layout): return something. Fail if not initialized.
14356         (layout_query_geometry): ditto.
14357         (image_instantiator_native_layout): new function. Initialized the
14358         native layout type.
14359         (widget_instantiate): don't do layout stuff here.
14360
14361         * glyphs.c (instantiate_image_instantiator): reorded calling or
14362         instantiate and post_instantiate with layout in between.
14363         (image_instance_layout): be more selective about deciding whether
14364         the layout has been done or not.
14365
14366         * glyphs.h (struct image_instantiator_methods): return a value
14367         from layout_method.
14368
14369 2000-04-26  Andy Piper  <andy@xemacs.org>
14370
14371         * glyphs.c (allocate_image_instance): make initial width and
14372         height unspecified. Set initialized to 0.
14373
14374         * syscommctrl.h new file. Encapsulates commctrl.h.
14375
14376         * syswindows.h new file. Encapsulates windows.h.
14377
14378         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14379         * nt.c: ditto.
14380         * console-msw.h: ditto.
14381
14382         * redisplay-tty.c (tty_output_display_block): remove layout references.
14383
14384         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14385         window handle rather than just the frame.
14386
14387         * glyphs.c (mark_image_instance): remove layout references.
14388         (print_image_instance): ditto.
14389         (image_instance_equal): ditto.
14390         (image_instance_hash): ditto.
14391         (decode_image_instance_type): ditto.
14392         (encode_image_instance_type): ditto.
14393         (image_instantiate): ditto.
14394         (allocate_glyph): ditto.
14395         (Fimage_instance_height): ditto.
14396         (Fimage_instance_width): ditto.
14397         (update_subwindow): ditto.
14398
14399         * redisplay-x.c (x_output_display_block): recode for layouts as
14400         widgets.
14401
14402         * redisplay-output.c (redisplay_output_layout): recode for layouts
14403         as widgets.
14404         (compare_runes): remove layout references.
14405
14406         * redisplay-msw.c (mswindows_output_display_block): recode for
14407         layouts as widgets.
14408
14409         * glyphs-widget.c (image_instantiator_layout): remove
14410         layout_possible_dest_types.
14411         (layout_possible_dest_types): deleted.
14412
14413         * glyphs.h (image_instance_type): remove layout references.
14414         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14415         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14416         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14417
14418 2000-04-25  Andy Piper  <andy@xemacs.org>
14419
14420         * glyphs-widget.c (image_instantiator_buttons):
14421         (image_instantiator_edit_fields):
14422         (image_instantiator_combo_box):
14423         (image_instantiator_scrollbar):
14424         (image_instantiator_progress_guage):
14425         (image_instantiator_tree_view):
14426         (image_instantiator_tab_control):
14427         (image_instantiator_labels):
14428         (image_instantiator_layout): call default post_instantiate method.
14429         (widget_post_instantiate): new function. Simply lays out the
14430         widgets.
14431
14432         * glyphs.h (struct image_instantiator_methods): add
14433         post_instantiate method.
14434
14435         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14436         method calls.
14437
14438 2000-04-23  Andy Piper  <andy@xemacs.org>
14439
14440         * glyphs.h (struct image_instantiator_methods): add
14441         decode_domain_method.
14442         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14443         derived from the domain.
14444         (IMAGE_INSTANCE_FRAME): new accessor.
14445         (XIMAGE_INSTANCE_FRAME): ditto.
14446
14447         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14448         instead of _SUBWINDOW_FRAME.
14449         (finalize_image_instance): ditto.
14450         (Fimage_instance_foreground): ditto.
14451         (Fimage_instance_background): ditto.
14452         (image_instantiate): ditto.
14453         (update_subwindow_cachel): ditto.
14454         (update_subwindow): ditto.
14455         (unmap_subwindow): ditto.
14456         (map_subwindow): ditto
14457         (subwindow_instantiate): ditto.
14458         * glyphs-msw.c (mswindows_update_widget): ditto.
14459         (mswindows_progress_gauge_instantiate): ditto.
14460         (mswindows_tab_control_update): ditto.
14461         * glyphs-x.c (x_update_widget): ditto.
14462         (x_widget_instantiate): ditto.
14463         (x_tab_control_instantiate): ditto.
14464         (x_tab_control_update): ditto.
14465         * event-msw.c (mswindows_wnd_proc): ditto
14466
14467         * glyphs-widget.c (image_instantiator_layout): use
14468         subwindow_decode_domain.
14469         (image_instantiator_buttons): ditto.
14470         (image_instantiator_edit_fields): ditto.
14471         (image_instantiator_combo_box): ditto.
14472         (image_instantiator_scrollbar): ditto.
14473         (image_instantiator_progress_guage): ditto.
14474         (image_instantiator_tree_view): ditto.
14475         (image_instantiator_tab_control): ditto.
14476         (image_instantiator_labels): ditto.
14477         (image_instantiator_layout): ditto.
14478
14479         * glyphs.c: add instance error checking to many functions.
14480         (instantiate_image_instantiator): decode device from cache_domain.
14481         (image_instantiate): partially rewrite by using
14482         decode_image_instantiator_domain to determine what domain the
14483         instance needs to be cached in.
14484         (decode_image_instantiator_domain): new function. Determine what
14485         domain the image needs to be cached in.
14486         (check_window_subwindow_cache): new error checking function.
14487         (check_instance_cache_mapper): ditto.
14488         (check_image_instance_structure): ditto.
14489         (subwindow_decode_domain): new function. Encodes a window as a
14490         subwindow's cache domain.
14491         (image_instantiator_format_create): use it for text and
14492         subwindows.
14493
14494 2000-04-21  Andy Piper  <andy@xemacs.org>
14495
14496         * glyphs.c (image_instance_device): new function.
14497         (image_instance_frame): new function.
14498         (image_instance_window): new function.
14499         (image_instance_live_p): new function.
14500
14501         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14502         cache to nil.
14503
14504         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14505         (IMAGE_INSTANCE_DOMAIN): new accessor.
14506         (XIMAGE_INSTANCE_DOMAIN): ditto.
14507
14508         * glyphs-x.c (x_finalize_image_instance): device->domain.
14509
14510         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14511         (mswindows_finalize_image_instance): ditto.
14512
14513         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14514         (gif_instantiate): ditto.
14515         (png_instantiate): ditto.
14516         (tiff_instantiate): ditto.
14517
14518         * glyphs.c (instantiate_image_instantiator): use domain rather
14519         than device.
14520         (mark_image_instance): device -> domain.
14521         (print_image_instance): ditto.
14522         (finalize_image_instance): ditto.
14523         (image_instance_equal): ditto.
14524         (allocate_image_instance): ditto.
14525         (Fcolorize_image_instance): ditto.
14526         (query_string_geometry): ditto.
14527         (image_instantiate): ditto
14528         (query_string_font): ditto.
14529         (image_instantiate): ditto.
14530         (update_subwindow): ditto.
14531         (unmap_subwindow): ditto.
14532         (map_subwindow): ditto.
14533         (subwindow_instantiate): ditto.
14534
14535         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14536         (DOMAIN_FRAME): ditto.
14537         (DOMAIN_WINDOW): ditto.
14538         (DOMAIN_LIVE_P): ditto.
14539         (XDOMAIN_DEVICE): ditto.
14540         (XDOMAIN_FRAME): ditto.
14541         (XDOMAIN_WINDOW): ditto.
14542
14543         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14544         a valid specifier domain.
14545
14546 2000-04-19  Andy Piper  <andy@xemacs.org>
14547
14548         * glyphs-widget.c (syms_of_glyphs_widget): remove
14549         widget-callback-current-channel.
14550         (vars_of_glyphs_widget): ditto.
14551         * glyphs.h: ditto
14552
14553         * gui.c (get_gui_callback): revert to previous behaviour.
14554
14555 2000-04-18  Andy Piper  <andy@xemacs.org>
14556
14557         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14558         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14559         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14560
14561         * glyphs.c (image_instance_equal): add margin_width.
14562         (image_instance_hash): ditto.
14563
14564         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14565         (layout_query_geometry): ditto.
14566         (layout_layout): ditto.
14567         (syms_of_glyphs_widget): add margin-width.
14568         (image_instantiator_layout): allow margin-width.
14569
14570         * glyphs.c (update_widget_instances): make a normal function.
14571         (syms_of_glyphs): remove Qupdate_widget_instances.
14572         * glyphs.h: ditto.
14573
14574         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14575         so that we don't corrupt ideas about the last event or
14576         command. Remove widget-callback-current-channel fiddling.
14577         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14578
14579 2000-05-01  Martin Buchholz <martin@xemacs.org>
14580
14581         * XEmacs 21.2.33 is released.
14582
14583 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14584
14585         * make-src-depend: Allow dots in header file name.
14586
14587 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14588
14589         * mule-charset.h (struct charset_lookup): Add
14590         next_allocated_1_byte_leading_byte and
14591         next_allocated_2_byte_leading_byte.
14592         * mule-charset.c: Move above two variables so that those values
14593         will be dumped.
14594
14595 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14596
14597         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14598         when string length is zero.
14599         (find_charsets_in_emchar_string): Ditto.
14600
14601 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14602
14603         * lisp.h: extern Qdialog and Qmenubar.
14604
14605         * gui-x.c: added events.h.
14606                 also fixed typo which made the file uncompilable.
14607
14608         * general.c: Added Qmenubar and Qdialog
14609
14610 2000-04-28  Ben Wing  <ben@xemacs.org>
14611
14612         * frame-msw.c (mswindows_init_frame_1):
14613         * frame-msw.c (mswindows_mark_frame):
14614         * event-msw.c (mswindows_enqueue_dispatch_event):
14615         * console-msw.h:
14616         * console-msw.h (struct mswindows_frame):
14617         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14618         there are now three hash tables for callbacks.
14619         mswindows_enqueue_dispatch_event is no longer static.
14620
14621         * dialog-x.c (maybe_run_dbox_text_callback):
14622         * dialog-x.c (dbox_descriptor_to_widget_value):
14623         switch to new cons3 form for callbacks.
14624
14625         * glyphs-msw.c (mswindows_register_gui_item):
14626         * glyphs-msw.c (mswindows_widget_instantiate):
14627         * glyphs-msw.c (add_tree_item):
14628         * glyphs-msw.c (add_tab_item):
14629         new image instance parameter, so it can be passed to callback-ex.
14630         respect :callback-ex as well as :callback.
14631
14632         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14633         add :callback-ex.
14634
14635         * glyphs.c (print_image_instance):
14636         prettify, e.g. now prints widget type.
14637
14638         * gui-x.h:
14639         certain funs have new image instance parameter.
14640
14641         * gui.c:
14642         * gui.c (get_gui_callback):
14643         * gui.c (gui_item_add_keyval_pair):
14644         * gui.c (gui_item_init):
14645         * gui.c (gui_add_item_keywords_to_plist):
14646         * gui.c (mark_gui_item):
14647         * gui.c (gui_item_hash):
14648         * gui.c (gui_item_equal):
14649         * gui.c (copy_gui_item):
14650         * gui.c (syms_of_gui):
14651         recognize callback-ex in a number of places.
14652         also, fix the annoying "can't get out of yes-no dialog" bug.
14653
14654         * gui.h:
14655         * gui.h (struct Lisp_Gui_Item):
14656         recognize callback-ex in a number of places.
14657
14658         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14659         new parameter in button_item_to_widget_value.
14660
14661         * glyphs-x.c (x_update_widget):
14662         * glyphs-x.c (x_button_instantiate):
14663         * glyphs-x.c (x_button_update):
14664         * glyphs-x.c (x_progress_gauge_instantiate):
14665         * glyphs-x.c (x_edit_field_instantiate):
14666         * glyphs-x.c (x_combo_box_instantiate):
14667         * glyphs-x.c (x_tab_control_instantiate):
14668         * glyphs-x.c (x_label_instantiate):
14669         new image instance parameter in various places.
14670
14671         * event-Xt.c:
14672         * event-Xt.c (enqueue_Xt_dispatch_event):
14673         this fun gets exported.
14674
14675         * gui-msw.c:
14676         * gui-msw.c (mswindows_handle_gui_wm_command):
14677         handle both :callback and :callback-ex, and generate our own
14678         event because it's one of the callback-ex arguments.
14679
14680         * gui-x.c:
14681         * gui-x.c (popup_selection_callback):
14682         handle both :callback and :callback-ex, and generate our own
14683         event because it's one of the callback-ex arguments.
14684         * gui-x.c (button_item_to_widget_value):
14685         * gui-x.c (gui_items_to_widget_values_1):
14686         * gui-x.c (gui_item_children_to_widget_values):
14687         * gui-x.c (gui_items_to_widget_values):
14688         new image instance parameter in various places.
14689
14690         * fns.c (Freplace_list):
14691         fix small typo in doc string.
14692
14693         * lisp.h:
14694         declare enqueue_Xt_dispatch_event.
14695
14696 2000-04-28  Ben Wing  <ben@xemacs.org>
14697
14698         * buffer.c:
14699         * buffer.c (Frecord_buffer):
14700         * buffer.c (syms_of_buffer):
14701         delete record-buffer-hook.
14702
14703         * fns.c:
14704         * fns.c (Freplace_list):
14705         * fns.c (syms_of_fns):
14706         new primitive replace-list.
14707
14708         * frameslots.h:
14709         slot for old buffer-alist.
14710
14711         * lisp.h:
14712         exfun replace-list.
14713
14714         * redisplay.c:
14715         * redisplay.c (redisplay_frame):
14716         * redisplay.c (syms_of_redisplay):
14717         * redisplay.c (vars_of_redisplay):
14718         new hook buffer-list-changed-hook.
14719         call it.
14720
14721 2000-04-27  Ben Wing  <ben@xemacs.org>
14722
14723         * extents.h: extern in_modeline_generation.
14724
14725         * redisplay.c (generate_formatted_string_db): set
14726         in_modeline_generation.
14727
14728         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14729         flags if in modeline generation.  otherwise frame-modified-tick
14730         is ticked far too often.
14731         Declare in_modeline_generation.
14732
14733 2000-04-26  Ben Wing  <ben@xemacs.org>
14734
14735         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14736         option.
14737         (vars_of_emacs): add quick-build as an error-checking option.
14738         A bit kludgy, but there doesn't seem much point in creating
14739         a real var for this.
14740
14741         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14742
14743 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14744
14745         * redisplay.h (struct display_line): Add a new variable,
14746         line_continuation.
14747
14748         * redisplay.c (create_text_block): Set dl->line_continuation if
14749         the line continues.
14750         (create_string_text_block): Ditto.
14751         (regenerate_window_incrementally): Use line_continuation instead
14752         of searching continuation glyph.
14753         (add_margin_runes): Call add_glyph_rune.
14754         (add_glyph_rune): Handle margin glyph.
14755
14756 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14757
14758         * filelock.c (fill_in_lock_file_name):
14759         ANSIfy.
14760         Check for IS_ANY_SEP instead of '/'.
14761         (lock_file_1):
14762         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14763         Never check errno without first seeing that system call failed.
14764         (unlock_file): Add GCPRO.
14765         (Flock_buffer): Fix docstring.
14766         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14767
14768 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14769
14770         * sysdep.c (get_pty_max_bytes):
14771         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14772         strings longer than 252 bytes.
14773
14774         * md5.c: Unconditionally include ANSI header <limits.h>
14775
14776         * glyphs-x.c (convert_EImage_to_XImage):
14777         * lisp-union.h (union Lisp_Object):
14778         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14779
14780 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14781
14782         * filelock.c (current_lock_owner): Remove unused variable o, p.
14783
14784 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14785
14786         * callint.c: Remove multiply defined symbol Qlet
14787         (syms_of_callint): ditto.
14788
14789 2000-04-14  Andy Piper  <andy@xemacs.org>
14790
14791         * general.c (syms_of_general): add last-command, this-command, let
14792         and funcall.
14793
14794         * lisp.h: declare various symbols.
14795
14796         * glyphs.h: declare Qwidget_callback_current_channel;
14797
14798         * glyphs-widget.c (syms_of_glyphs_widget): add
14799         Qgui_callback_current_channel.
14800         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14801
14802         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14803         widget-callback-current-channel when invoking the interactive
14804         arg. Also bind last-command and next-command when invoking the
14805         widget updates.
14806         * gui-x.c (popup_selection_callback): ditto.
14807
14808         * gui.c (get_gui_callback): massage args so that we are always
14809         calling eval. This allows us to add our own variable bindings
14810         outside.
14811
14812         * glyphs-x.c (x_button_instantiate): use
14813         gui_items_to_widget_values since this is GC safe.
14814         (x_progress_gauge_instantiate): ditto.
14815         (x_edit_field_instantiate): ditto.
14816         (x_label_instantiate): ditto.
14817
14818         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14819         (emacs_Xt_event_widget_focus_out): new function
14820         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14821         focus.
14822         (emacs_Xt_event_add_widget_actions): new function. add focus
14823         functions as actions.
14824         (init_event_Xt_late): use it.
14825
14826 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14827
14828         * event-stream.c (Fdispatch_event): Doc fix.
14829
14830 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14831
14832         * postgresql.c: Remove all references to PQsetenv*.
14833
14834         * postgresql.h: Remove references to PGsetenvHandler object.
14835         * lrecord.h (lrecord_type): Ditto.
14836
14837 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14838
14839         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14840         real_heigh and real_width members, and accessor macros for these.
14841
14842         * glyphs-msw.c (init_image_instance_geometry): New function.
14843         (init_image_instance_from_dibitmap): Use it.
14844         (mswindows_resource_instantiate): Use it.
14845         (init_image_instance_from_xbm_inline): Use it.
14846         (mswindows_initialize_image_instance_mask): Use real bitmap
14847         geometry.
14848         (mswindows_create_resized_bitmap): Ditto.
14849         (mswindows_create_resized_mask): Ditto.
14850
14851         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14852         and bitmap to their surface size.
14853
14854 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14855
14856         * process-unix.c (unix_send_process): Guard against process MIA
14857         after Faccept_process_output.
14858
14859 2000-04-11  Ben Wing  <ben@xemacs.org>
14860
14861         * eval.c (unbind_to_hairy): fix brokenness introduced by
14862         nanosecond speed improvements.
14863
14864 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14865
14866         * sunplay.c (init_device): To play sounds correctly, the device
14867         apparently needs to be initialized at least once by XEmacs.  Make
14868         it so.
14869
14870 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14871
14872         * redisplay.c (add_margin_runes): Add text image glyph
14873           handling.
14874
14875 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14876
14877         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14878         gcc is newer than 2.5.
14879
14880 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14881
14882         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14883
14884         * fns.c (size_bit_vector):
14885         * alloc.c (size_vector):
14886         (make_vector_internal):
14887         (make_bit_vector_internal):
14888         (sweep_bit_vectors_1):
14889         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14890
14891 2000-04-06  Andy Piper  <andy@xemacs.org>
14892
14893         * gmalloc.c (malloc): undo previous change.
14894         (malloc): ditto.
14895         (free): ditto.
14896         (realloc): ditto.
14897
14898 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14899
14900         * line-number.c (buffer_line_number): Revert to former version.
14901
14902 2000-04-06  Andy Piper  <andy@xemacs.org>
14903
14904         * gmalloc.c (malloc): add error checking.
14905         (malloc): ditto.
14906         (free): ditto.
14907         (realloc): ditto.
14908
14909         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14910         button_item_to_widget_value arg.
14911
14912         * glyphs-x.c (x_button_instantiate): add extra
14913         button_item_to_widget_value arg.
14914         (x_progress_gauge_instantiate): ditto.
14915         (x_edit_field_instantiate): ditto.
14916         (x_label_instantiate): ditto.
14917
14918         * gui-x.c (gui_items_to_widget_values_1): add extra
14919         button_item_to_widget_value arg.
14920         (button_item_to_widget_value): add extra menu_item_p arg.
14921
14922         * gui-x.h: change signature of button_item_to_widget_value.
14923
14924         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14925         button_item_to_widget_value arg.
14926
14927 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14928
14929         * buffer.h (struct buffer): auto_save_modified should be long.
14930
14931 2000-04-05  Andy Piper  <andy@xemacs.org>
14932
14933         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14934         type.
14935         (button_query_geometry): give a little more room so that athena
14936         buttons fit.
14937
14938 2000-04-05  Andy Piper  <andy@xemacs.org>
14939
14940         * faces.c (complex_vars_of_faces): The widget face should inherit
14941         the font of the gui-element face.
14942
14943 2000-04-04  Andy Piper  <andy@xemacs.org>
14944
14945         * glyphs-x.c (x_button_update): new function. unconditionally
14946         update a button's state when the instance is dirty.
14947         (image_instantiator_format_create_glyphs_x): add x_button_update.
14948         (x_widget_instantiate): remove old resize cruft.
14949
14950 2000-04-02  Andy Piper  <andy@xemacs.org>
14951
14952         * frame.c (change_frame_size_1): The introduction of gutters means
14953         that we need to allow 0 as a potential frame dimension.
14954
14955 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14956
14957         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14958         image glyph if allow_cursor.
14959         (add_hscroll_rune): Don't allow cursor to border glyph.
14960         (create_text_block): Ditto.
14961
14962         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14963         text not in buffer.
14964         (redisplay_output_layout): Call ensure_face_cachel_complete for
14965         text image glyph.
14966
14967
14968 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14969
14970         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14971
14972         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14973         not in buffer
14974
14975         * redisplay-tty.c (tty_output_display_block): Delete the routine
14976         for text image glyph
14977         * redisplay-x.c (x_output_display_block): ditto
14978         * redisplay-msw.c (mswindows_output_display_block): ditto
14979
14980 2000-02-02  Mike Alexander  <mta@arbortext.com>
14981
14982         Note: Some of these were committed by accident as part of other
14983         patches.
14984
14985         * regex.c (regex_compile): Avoid compiler warnings.
14986
14987         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14988
14989         * nt.h: Declare term_ntproc correctly.
14990
14991         * nt.c: Remove incorrect declaration of get_home_directory which
14992         is declared correctly in lisp.h.
14993
14994         * keymap.c (get_keyelt): Avoid compiler warnings.
14995         (raw_lookup_key_mapper): Avoid compiler warnings.
14996
14997         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14998
14999         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
15000
15001         * filemode.c (mode_string): Avoid compiler warnings.
15002
15003         * file-coding.c (Fcoding_system_aliasee): Add return statement to
15004         avoid warning.
15005
15006         * events-mod.h: Undef some things that winuser.h defines differently.
15007
15008         * data.c (Faset): Avoid compiler warnings.
15009
15010         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
15011
15012 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15013
15014         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
15015         Fall through to simple beep on error.
15016         Replace "extern" by real header file.
15017
15018         * linuxplay.c: Use nativesound.h
15019         (play_sound_data): Return error code. Be less verbose on error.
15020
15021         * sunplay.c: Use nativesound.h
15022         (play_sound_data): Return error code. Be less verbose on error.
15023
15024         * ntplay.c: Use nativesound.h
15025         (play_sound_data): Return fake error code
15026
15027         * sgiplay.c: Use nativesound.h
15028         (play_sound_data): Return error code
15029
15030         * hpplay.c: Use nativesound.h, partially implement
15031         new error code. Break compilation until finished.
15032         (play_sound_data): error code.
15033
15034         * nativesound.h (play_sound_file):
15035           (play_sound_data): Prototype in new header.
15036
15037 2000-03-31  Andy Piper  <andy@xemacs.org>
15038
15039         * glyphs-widget.c: (button_query_geometry): new function. Adjust
15040         for toggle and radio buttons.
15041         (image_instantiator_buttons): use it.
15042
15043 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15044
15045         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
15046         (x_update_horizontal_scrollbar_callback): Return if no mirror was
15047         found. Scrollbar event probably belonged to some old config.
15048
15049 2000-03-31  Andy Piper  <andy@xemacs.org>
15050
15051         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
15052         than 1.
15053         (initialize_widget_image_instance): default layout to
15054         LAYOUT_HORIZONTAL rather than 0.
15055         (widget_instantiate): reverse the item list at the end rather than
15056         every iteration.
15057         (layout_layout): re-code for the border text at the front of the
15058         item list rather than at the end.
15059         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
15060         provided by the user.
15061         (widget_query_geometry): comment.
15062
15063 2000-03-30  Andy Piper  <andy@xemacs.org>
15064
15065         * glyphs-widget.c (image_instantiator_layout): allow standard
15066         widget keywords in layouts.
15067
15068         * gutter.c (output_gutter): cope with nil gutter contents.
15069
15070         * frame.c (Fset_frame_properties): add gutter docs.
15071
15072 2000-03-29  Andy Piper  <andy@xemacs.org>
15073
15074         * toolbar-msw.c (TBSTYLE_FLAT): add.
15075         (mswindows_output_toolbar): minor fiddling.
15076
15077 2000-03-29  Andy Piper  <andy@xemacs.org>
15078
15079         * gutter.c (output_gutter): force gutter size recalculation if
15080         what we are trying to display won't fit.
15081         (update_gutter_geometry): new function. A per-gutter version of
15082         update_frame_gutter_geometry.
15083         (update_frame_gutter_geometry): use it.
15084         (redraw_exposed_gutter): add extra debugging output.
15085
15086 2000-03-28  Mike Alexander  <mta@arbortext.com>
15087
15088         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15089         (pdump_file_unmap): Implement it on Windows
15090         (pdump_file_get): Save alocated handles for pdump_file_unmap
15091
15092 2000-03-28  Andy Piper  <andy@xemacs.org>
15093
15094         * gui.c (get_gui_callback): treat Quit specially.
15095
15096 2000-03-27  Andy Piper  <andy@xemacs.org>
15097
15098         * glyphs.c (image_instantiate): be careful to check in the same
15099         way we assigned.
15100
15101 2000-03-27  Didier Verna  <didier@xemacs.org>
15102
15103         * config.h.in: define the proper SMART_INCLUDE macro.
15104         handle renaming of `foo_h_path' to `foo_h_file'.
15105
15106         * database.c: ditto.
15107
15108         * emacs.c: ditto.
15109
15110         * linuxplay.c: ditto.
15111
15112         * terminfo.c: ditto.
15113
15114         * tooltalk.h: ditto.
15115
15116 2000-03-27  Andy Piper  <andy@xemacs.org>
15117
15118         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15119         gets updated whenever the face might have changed.
15120
15121 2000-03-26  Mike Alexander  <mta@arbortext.com>
15122
15123         * dumper.c (pdump_resource_free): Fix the comment.
15124
15125 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15126
15127         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15128
15129 2000-03-22  Mike Alexander  <mta@arbortext.com>
15130
15131         * dumper.c: Include Windows headers on Windows
15132         (pdump_resource_free): Add a body to the function
15133         (pdump_load): exe_name -> exe_path and add some comments.
15134
15135 2000-03-25  Mike Alexander  <mta@arbortext.com>
15136
15137         * gui.c (copy_gui_item_tree): Return a value in all cases
15138
15139 2000-03-21  Didier Verna  <didier@xemacs.org>
15140
15141         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15142         lwlib/config.h.in.
15143         (SMART_INCLUDE): new macro.
15144         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15145         the proper location.
15146
15147         * postgresql.c: use it.
15148
15149         * inline.c: ditto.
15150
15151 2000-03-24  Andy Piper  <andy@xemacs.org>
15152
15153         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15154         do this.
15155
15156 2000-03-24  Andy Piper  <andy@xemacs.org>
15157
15158         * redisplay-output.c (compare_runes): use image_instance_changed
15159         to detect changes. Do not depend on glyphs_changed, only depend on
15160         dirtiness.
15161          (redisplay_output_layout): add debug messages.
15162         (compare_runes): ditto.
15163
15164         * glyphs.h: declare new functions.
15165         (struct Lisp_Image_Instance): remove percent and associated
15166         accessors.
15167
15168         * gui.h: declare new copying functions.
15169
15170         * gui.c (copy_gui_item_tree): new function.
15171         (copy_gui_item): new function.
15172         (gui_item_id_hash): revert to standard hash.
15173         (gui_item_hash): ditto.
15174         (gui_item_hash_internal): deleted.
15175         (mark_gui_item): mark value.
15176         (gui_item_add_keyval_pair): add value.
15177         (gui_item_init): ditto.
15178         (gui_add_item_keywords_to_plist): ditto.
15179         (gui_item_equal): ditto.
15180         (syms_of_gui): add Q_value.
15181
15182         * glyphs-x.c (x_progress_gauge_update): use pending items and
15183         value for setting the state.
15184         (x_update_widget): don't set items from pending here.
15185
15186         * glyphs-widget.c (update_widget): update items here.
15187         (progress_gauge_set_property): use items for storing value. Put
15188         new value in pending items.
15189
15190         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15191         items for new value. Convert percent -> value.
15192         (mswindows_tab_control_update): don't update items here.
15193
15194         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15195         (update_subwindow): ditto.
15196         (image_instance_changed): new function. Compare hash values and
15197         past and present widget items.
15198         (image_instantiate): We more careful about where we instantiate
15199         things.
15200         (image_instantiate): add error checking.
15201
15202         * gutter.c (syms_of_gutter): use -hook.
15203
15204 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15205
15206         * console-tty.c (Fset_console_tty_input_coding_system): Use
15207         Qkeyboard.
15208         (Fset_console_tty_output_coding_system): Use Qterminal.
15209         (tty_init_console): Use Qkeyboard and Qterminal.
15210
15211 2000-03-21  Ben Wing  <ben@xemacs.org>
15212
15213         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15214         From Mike Alexander <mta@arbortext.com>.
15215
15216 2000-03-21  Ben Wing  <ben@xemacs.org>
15217
15218         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15219         process brokenness.  Proper implementation to come.
15220         * callproc.c:
15221         Rename call-process-internal to old-call-process-internal.
15222         New impl. in process.el.
15223
15224 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15225
15226         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15227
15228 2000-03-20  Andy Piper  <andy@xemacs.org>
15229
15230         * glyphs.c (full_list_hash): make hashes of the same elements in
15231         different orders return different values.
15232
15233 2000-03-20  Martin Buchholz <martin@xemacs.org>
15234
15235         * XEmacs 21.2.32 is released.
15236
15237 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15238
15239         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15240         (DFC_MALLOC_USE_CONVERTED_DATA):
15241         Add aliasing-safe casts to allow use with char* or unsigned char*
15242         lvalues.
15243
15244         * eldap.c (Fldap_open):
15245         (Fldap_search_basic):
15246         (Fldap_add):
15247         (Fldap_modify):
15248         Make C++-compilable.
15249         Make sure GCPRO'ed variables are initialized.
15250         Use temp variables to avoid repeated calls to Flength.
15251
15252 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15253
15254         * sysfile.h:
15255         Make sure PATH_MAX is always defined.
15256         Include limits.h for PATH_MAX.
15257         Deprecate use of MAXPATHLEN.
15258
15259 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15260
15261         * emacs.c: Add reinit_vars_of_fileio.
15262         * symsinit.h: Add reinit_vars_of_fileio.
15263         * fileio.c (reinit_vars_of_fileio): New.
15264         * fileio.c (Fmake_temp_name):
15265         Initialize temp_name random number from microseconds to make
15266         collisions even less likely.  Initialize always at process startup
15267         time.  (make-temp-name) used to return the same file name twice in
15268         a row when PDUMP.
15269         Random stylistic fiddling.
15270         Comment fixes.
15271
15272 2000-03-20  Andy Piper  <andy@xemacs.org>
15273
15274         * glyphs.c (image_instantiate): allow text glyphs to be
15275         instantiated in the minibuffer window.
15276
15277 2000-03-19  Andy Piper  <andy@xemacs.org>
15278
15279         * glyphs.c (image_instance_hash): be careful about which items we
15280         hash on.
15281
15282         * glyphs-widget.c (tab_control_set_property): record into pending
15283         items rather than the actual items.
15284
15285         * glyphs-x.c (x_update_widget): use pending items to update with.
15286
15287         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15288         to update with.
15289
15290         * glyphs.c (mark_image_instance): mark pending items.
15291
15292         * window.c (Fset_window_configuration): record the buffer.
15293         (Fselect_window): totally revert previous change which breaks many
15294         things.
15295
15296 2000-03-18  Andy Piper  <andy@xemacs.org>
15297
15298         * glyphs-msw.c (mswindows_tab_control_update): force selected
15299         item.
15300
15301         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15302         window domain cache, otherwise we get inconsistencies at
15303         startup. There is something fishy at startup which can lead to the
15304         minibuffer being the selected window when the gutter content is
15305         instantiated.
15306
15307         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15308         gcpros.
15309         (parse_gui_item_tree_children): ditto.
15310         (parse_gui_item_tree_item): ditto.
15311
15312         * glyphs.c (Fupdate_widget_instances): return something.
15313
15314 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15315
15316         * window.c (Fselect_window): Undo 2000-03-17 change.
15317
15318 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15319
15320         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15321         against v7.0 libraries.  Insta-coredump city until the postgres
15322         folks fix it.
15323
15324 2000-03-17  Andy Piper  <andy@xemacs.org>
15325
15326         * faces.c (complex_vars_of_faces): don't give the widget face an
15327         inherited background pixmap.
15328
15329         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15330         selected item.
15331
15332         * event-stream.c (Fdispatch_non_command_events): return something.
15333
15334         * gutter.c (output_gutter): use widget face.
15335         (clear_gutter): ditto.
15336
15337         * NEWS: adjust again.
15338
15339         * window.c (Fselect_window): make sure this runs to completion to
15340         avoid oddities with Fset_window_configuration.
15341         (Fcurrent_window_configuration): in general do not save the
15342         minibuffer as the selected window.
15343
15344         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15345
15346 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15347
15348         * emacs.c (Frunning_temacs_p): Revert previous patch.
15349         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15350
15351 2000-03-16  Andy Piper  <andy@xemacs.org>
15352
15353         * glyphs-x.c (x_tab_control_update): if no widget values then
15354         return.
15355
15356         * NEWS: update for new features.
15357
15358         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15359         synthetic event to the native system.
15360         (reinit_vars_of_event_Xt): set force_event_pending to
15361         emacs_Xt_force_event_pending.
15362
15363         * events.h (struct event_stream): add force_event_pending.
15364
15365         * specifier.c (recompute_one_cached_specifier_in_window): add
15366         comment.
15367
15368         * redisplay.c (redisplay_frame): don't call
15369         update_frame_subwindows. Reset subwindow cachels when
15370         subwindows_changed, removing this was an optimization too far.
15371
15372         * redisplay-output.c (compare_runes): reorganize so that we catch
15373         glyph changes when we want them. Set optimize_output when this
15374         would help layouts.
15375         (redisplay_output_layout): remove frame_really_changed, use
15376         optimize_output instead.
15377
15378         * redisplay-msw.c (mswindows_output_display_block): reset
15379         optimize_output after outputting a glyph.
15380         * redisplay-x.c (x_output_display_block): ditto.
15381         * redisplay-tty.c (tty_output_display_block): ditto.
15382
15383         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15384         functions.
15385         (gutter_specs_changed): do specific gutter positions.
15386         (top_gutter_specs_changed): new function. Only update the
15387         specified gutter specs.
15388         (bottom_gutter_specs_changed): ditto.
15389         (left_gutter_specs_changed): ditto.
15390         (right_gutter_specs_changed): ditto.
15391
15392         * gui.c (gui_item_hash_internal): new function, does a real hash.
15393         (gui_item_id_hash): use it.
15394         (gui_item_hash): hash the eval'ed gui_item.
15395
15396         * gui-x.c (popup_selection_callback): send an eval event to call
15397         Fupdate_widget_instances.
15398
15399         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15400         to call Fupdate_widget_instances.
15401
15402         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15403         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15404
15405         * glyphs.c: (update_frame_subwindows): deleted.
15406         (Fupdate_widget_instances): new function for updating the dirty
15407         state of widgets that might have changed.
15408         (syms_of_glyphs): add Qupdate_widget_instances.
15409         (full_list_hash): hash a list completely.
15410         (image_instance_hash): use it for items and properties.
15411
15412         * frame-msw.c (mswindows_size_frame_internal): remove unused
15413         variable.
15414
15415         * faces.h (struct face_cachel): fix comment.
15416
15417         * event-stream.c (Fdispatch_non_command_events): new
15418         function. Process non-command events, forcing an event cycle
15419         beforehand.
15420         (syms_of_event_stream): declare.
15421         (event_stream_force_event_pending): new function. Force an event
15422         on the native event queue so that an event cycle will occur next
15423         time we check.
15424
15425         * event-msw.c:
15426         (struct ntpipe_shove_stream):
15427         (mswindows_enqueue_dispatch_event):
15428         (mswindows_dequeue_dispatch_event):
15429         (mswindows_cancel_dispatch_event):
15430         (mswindows_pump_outstanding_events):
15431         (mswindows_drain_windows_queue):
15432         (mswindows_handle_paint):
15433         (mswindows_wnd_proc):
15434         (mswindows_key_to_emacs_keysym):
15435         (get_process_input_waitable):
15436         (emacs_mswindows_delete_stream_pair): re-indent file.
15437         (mswindows_need_event): do not process further fds if the windows
15438         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15439         fixes the 100% cpu problem.
15440         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15441
15442 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15443
15444         * alloc.h: New.
15445         * dumper.h: New.
15446         * dumper.c: New.
15447
15448         * emacs.c: Moved dump file searching to dumper.c.
15449         (Frunning_temacs_p): Fixed.
15450
15451         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15452         last_lrecord_type_index_assigned.
15453
15454 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15455
15456         * symsinit.h: Added reinit parameter to init_console_stream
15457         declaration.
15458
15459         * lisp.h: Added file parameter to pdump_load declaration.
15460
15461         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15462         support.  Added dump file searching.
15463
15464         * config.h.in: Added EMACS_PROGNAME.
15465
15466         * console-stream.c (init_console_stream): Fix reinitialisation
15467         when running from temacs.
15468
15469         * alloc.c (pdump): Add id support.
15470         (pdump_load): Add file parameter and signature/id support.
15471
15472         * Makefile.in.in: Add full pdump support.
15473
15474 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15475
15476         * postgresql.c: Update documentation to reflect latest code
15477         status.
15478         (print_result): Show tuple counts in printed representation when
15479         appropriate.
15480         (Fpq_put_nbytes): MULE-ize.
15481         (Fpq_get_line_async): Ditto.
15482
15483 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15484
15485         * postgresql.c (Fpq_lo_import): Fix return value.
15486         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15487
15488 2000-03-13  Ben Wing  <ben@xemacs.org>
15489
15490         * alloc.c (pdump_load):
15491         Fix compile warning under mswin.
15492
15493 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15494
15495         * postgresql.c: Mule-ization, bug fixes.
15496         Use PG_CODING to encapsulate coding system name changes.
15497         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15498         (pg-coding-system): Create.
15499
15500         (Fpq_conn_defaults): Mule-ize.
15501         (Fpq_connectdb): Mule-ize & bug fix.
15502         (Fpq_connect_start): Mule-ize.
15503         (Fpq_set_client_encoding): Mule-ize.
15504         (Fpq_finish): Document `DEAD' connection status.
15505         (Fpq_clear): Ditto.
15506         (Fpq_pgconn): Mule-ize.
15507         (Fpq_exec): Mule-ize & bug fix.
15508         (Fpq_send_query): Ditto.
15509         (Fpq_get_result): Ditto.
15510         (Fpq_res_status): Mule-ize.
15511         (Fpq_result_error_message): Mule-ize.
15512         (Fpq_ntuples): fix comments.
15513         (Fpq_fname): Mule-ize.
15514         (Fpq_fnumber): Mule-ize.
15515         (Fpq_ftype): fix comments.
15516         (Fpq_get_value): Mule-ize.
15517         (Fpq_cmd_status): Ditto.
15518         (Fpq_cmd_tuples): Ditto.
15519         (Fpq_oid_value): Ditto.
15520         (Fpq_notifies): Ditto.
15521         (Fpq_lo_import): Ditto.
15522         (Fpq_lo_export): Ditto.
15523         (Fpq_get_line): Ditto.
15524         (Fpq_put_line): Mule-ize and bug fix.
15525         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15526
15527 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15528
15529         * postgresql.c (vars_of_postgresql): Mule-ize.
15530         (Fpq_conn_defaults): Ditto.
15531
15532 2000-03-12  Ben Wing  <ben@xemacs.org>
15533
15534         * alloc.c (Fmake_byte_code):
15535         * alloc.c (debug_string_purity_print):
15536         * alloc.c (pdump_backtrace):
15537         * alloc.c (pdump_get_indirect_count):
15538         * alloc.c (pdump_register_sub):
15539         * alloc.c (pdump_register_object):
15540         * alloc.c (pdump_register_struct):
15541         * alloc.c (pdump_dump_data):
15542         * alloc.c (pdump_reloc_one):
15543         Minor cleanups.
15544
15545         * console-msw.c:
15546         * console-msw.c (GetConsoleHwnd):
15547         * console-msw.c (msw_hide_console):
15548         * console-msw.c (msw_show_console):
15549         * console-msw.c (msw_ensure_console_buffered):
15550         * console-msw.c (msw_output_console_string):
15551         * console-msw.c (console_type_create_mswindows):
15552
15553         a) Added functions to manipulate the console window for use with
15554         shell support.
15555
15556         b) Added support for writing text to the console, which is now
15557         used under Windows when xemacs is not being run non-interactively,
15558         to write text that would otherwise be destined for stdout because
15559         under these circumstances, text written to stdout tends to
15560         disappear and not be seen.
15561
15562         * console-msw.h:
15563         * event-Xt.c:
15564         * event-Xt.c (x_event_to_emacs_event):
15565         * event-Xt.c (describe_event_window):
15566         * events-mod.h (XEMACS_MOD_CONTROL):
15567         * events.c:
15568         * events.c (Fmake_event):
15569         * events.c (character_to_event):
15570         * events.c (event_to_character):
15571         * events.c (format_event_object):
15572         * events.c (Fevent_modifiers):
15573         * events.h:
15574         * events.h (struct key_data):
15575         * events.h (struct button_data):
15576         * events.h (struct misc_user_data):
15577         * frame-x.c (Fcde_start_drag_internal):
15578         * frame-x.c (Foffix_start_drag_internal):
15579         * gpmevent.c (Freceive_gpm_event):
15580         * keymap.c:
15581         * keymap.c (bucky_sym_to_bucky_bit):
15582         * keymap.c (control_meta_superify):
15583         * keymap.c (make_key_description):
15584         * keymap.c (keymap_lookup_directly):
15585         * keymap.c (create_bucky_submap):
15586         * keymap.c (keymap_store):
15587         * keymap.c (define_key_check_and_coerce_keysym):
15588         * keymap.c (define_key_parser):
15589         * keymap.c (define_key_alternate_name):
15590         * keymap.c (Fdefine_key):
15591         * keymap.c (raw_lookup_key_mapper):
15592         * keymap.c (struct map_keymap_unsorted_closure):
15593         * keymap.c (map_keymap_unsorted_mapper):
15594         * keymap.c (map_keymap_sort_predicate):
15595         * keymap.c (map_keymap_sorted):
15596         * keymap.c (accessible_keymaps_mapper_1):
15597         * keymap.c (where_is_recursive_mapper):
15598         * keymap.c (describe_map_mapper):
15599         * keymap.c (describe_map_sort_predicate):
15600         * keymap.c (describe_map):
15601         * keymap.c (complex_vars_of_keymap):
15602         And a number of other files, the key modifier preprocessor
15603         constants that xemacs uses have names that conflict with constants
15604         defined under MS Windows for other purposes, so they were renamed
15605         to begin with the prefix XEMACS_. The variables that hold such
15606         modifiers were changed to consistently be of type int to fix
15607         various compile warnings.
15608
15609         * console.c (complex_vars_of_console):
15610         * device.c:
15611         * device-msw.c:
15612         * device-msw.c (mswindows_finish_init_device):
15613         * device-msw.c (msw_get_workspace_coords):
15614         * device-msw.c (mswindows_device_system_metrics):
15615         and various other files, added support for a new
15616         device property called offset-workspace which returns the position
15617         of the upper left corner of the workspace area and goes along with
15618         the existing size-workspace property.
15619
15620         * dialog-msw.c:
15621         * dialog-msw.c (push_bufbyte_string_as_unicode):
15622         * dialog-msw.c (mswindows_popup_dialog_box):
15623         Added support for XEmacs-style accelerator specifications in
15624         button text.  Note: I didn't add support for this under X Windows,
15625         and somebody needs to do this.
15626
15627         * dialog.c:
15628         * dialog.c (Fpopup_dialog_box):
15629         Documented the support for accelerators that was just mentioned.
15630
15631         editfns.c (get_home_directory): Changed behavior under Windows
15632         when HOME not defined; former behavior was irretrievably broken.
15633
15634         * emacs.c:
15635         * emacs.c (main_1):
15636         * emacs.c (main):
15637         * minibuf.c (clear_echo_area_internal):
15638         * minibuf.c (echo_area_append):
15639         * print.c:
15640         * print.c (std_handle_out_external):
15641         * print.c (std_handle_out_va):
15642         * print.c (fatal):
15643         * print.c (write_string_to_stdio_stream):
15644         * print.c (output_string):
15645         * print.c (debug_print):
15646         * print.c (debug_backtrace):
15647         * print.c (debug_short_backtrace):
15648         Cleaned up the code that prints text to stdout so that this can be
15649         changed to output into a console window instead under MS Windows,
15650         as described above.
15651
15652         * eval.c:
15653         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15654         * eval.c (internal_catch):
15655         * eval.c (unwind_to_catch):
15656         * eval.c (throw_or_bomb_out):
15657         * eval.c (condition_case_1):
15658         * eval.c (signal_1):
15659         * eval.c (check_error_state_sanity):
15660         * eval.c (call_with_suspended_errors_1):
15661         * eval.c (call_with_suspended_errors):
15662         * eval.c (reinit_vars_of_eval):
15663         Added code to catch throw loops and check for a pesky bug that may
15664         be gone now.
15665
15666         * event-msw.c:
15667         * event-msw.c (key_needs_default_processing_p):
15668         * event-msw.c (mswindows_wnd_proc):
15669         * event-msw.c (mswindows_modifier_state):
15670         * event-msw.c (emacs_mswindows_quit_p):
15671         * event-msw.c (vars_of_event_mswindows):
15672         a) Added support for using the alt key to select menu items as is
15673         standard under MS Windows.  This is controlled using the variable
15674         menu-accelerator-enabled, just like under X Windows.  There is an
15675         option on the options menu to turn this support on.  I really
15676         think that it should be on by default under Windows, but I'm not
15677         going to make this change yet.
15678
15679         b)  Added support for dynamic display size changes under Windows.
15680
15681         * event-stream.c:
15682         * event-stream.c (maybe_echo_keys):
15683         * event-stream.c (Fnext_event):
15684         * event-stream.c (command_builder_find_leaf):
15685         * event-stream.c (lookup_command_event):
15686         * event-stream.c (execute_command_event):
15687         * event-stream.c (pre_command_hook):
15688         * event-stream.c (post_command_hook):
15689         * event-stream.c (syms_of_event_stream):
15690         * event-stream.c (vars_of_event_stream):
15691         * event-stream.c (complex_vars_of_event_stream):
15692         * events.h (struct command_builder):
15693
15694         a) Tried to clean up a little bit the horribly written x-specific
15695         accelerator code that crept into this file.  I moved this code
15696         into menubar-x.c where it belongs. I also needed to move the
15697         command builder structure into the file events.h because it is
15698         accessed directly by this accelerator code.  What I didn't do, but
15699         which should be done at some point, is to properly abstract this
15700         code using device methods instead of the kludgy way that it
15701         currently hooks into the event code.
15702
15703         b) Added the lisp variables this-command-properties and
15704         last-command- properties, which should be used to synchronize two
15705         adjacent commands in preference to playing games with the variable
15706         this-command, which is typically what happens.
15707
15708         c) Added some slightly nasty code to hook into the lisp support
15709         for shifted- motion-key selection.  This is actually necessary for
15710         somewhat complicated reasons, which are described in
15711         simple.el. (NB: I think the proper thing would be to have the code
15712         that calls the pre and post command hooks also call out to generic
15713         lisp functions in simple.el, where all built-in stuff could be
15714         added.  I will think about this more.)
15715
15716         * event-unixoid.c (poll_fds_for_input):
15717         * lread.c (readchar):
15718         * redisplay-tty.c (tty_clear_frame):
15719         * redisplay-x.c (x_get_gc):
15720         * signal.c (interrupt_signal):
15721         And a whole bunch of other files: fixed up places that printed
15722         directly to stderr to instead call the function stderr_out so that
15723         the changes I made under Windows work correctly.
15724
15725         * filemode.c (mode_string):
15726         Warning fixes.
15727
15728         * frame-msw.c:
15729         * frame-msw.c (mswindows_size_frame_internal):
15730         Fixed the computation of frame size and position to keep the frame
15731         within the workspace area, rather than within the physical
15732         dimensions of the screen, so that the frame doesn't overlap window
15733         manager decorations, such as the start menu and toolbar, typically
15734         at the bottom of the screen.
15735
15736         * frame.c (vars_of_frame):
15737         Changed the default frame title format under MS Windows to consist
15738         of buffername-XEmacs, which is standard under MS Windows.  I think
15739         it might be a good idea to change this everywhere because I think
15740         it is superior to the current frame title format, but this is the
15741         kind of change that is likely to cause some people to get annoyed,
15742         so I'm not making it.
15743
15744         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15745
15746         * gui-msw.c (mswindows_handle_gui_wm_command):
15747         Fixed compile warnings.
15748
15749         * gui-x.c:
15750         * gui-x.c (strdup_and_add_accel):
15751         * gui-x.c (button_item_to_widget_value):
15752         * gui-x.h:
15753         Added code to automatically put an accelerator onto the beginning
15754         of menu items that don't have one as is now the standard, and is
15755         described more later.  Also fixed things so that the menu item
15756         name can be an evaluated expression, again a new standard.
15757
15758         * gui.c:
15759         * gui.c (gui_item_add_keyval_pair):
15760         * gui.c (make_gui_item_from_keywords_internal):
15761         * gui.c (gui_add_item_keywords_to_plist):
15762         * gui.c (gui_item_accelerator):
15763         * gui.c (gui_name_accelerator):
15764         * gui.c (gui_item_included_p):
15765         * gui.c (gui_item_display_flush_left):
15766         * gui.c (gui_item_display_flush_right):
15767         * gui.c (parse_gui_item_tree_item):
15768         * gui.c (parse_gui_item_tree_children):
15769         * gui.c (parse_gui_item_tree_list):
15770         Mule-ized.  Cleanup.  GCPRO addition.
15771
15772         * line-number.c (buffer_line_number):
15773         * lisp.h:
15774         * lisp.h (EMACS_INT_MAX):
15775         Added the manifest constant EMACS_INT_MIN corresponding to the
15776         existing constant EMACS_INT_MAX.  This is partially to fix compile
15777         warnings under Windows, and partly for cleanliness.
15778
15779         * menubar-msw.c:
15780         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15781         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15782         * menubar-msw.c (displayable_menu_item):
15783         * menubar-msw.c (populate_menu_add_item):
15784         * menubar-msw.c (populate_or_checksum_helper):
15785         * menubar-msw.c (populate_menu):
15786         * menubar-msw.c (update_frame_menubar_maybe):
15787         * menubar-msw.c (prune_menubar):
15788         * menubar-msw.c (msw_char_is_accelerator):
15789         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15790         * menubar-msw.c (mswindows_handle_wm_command):
15791         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15792         * menubar-msw.c (mswindows_handle_wm_initmenu):
15793         * menubar-msw.c (mswindows_update_frame_menubars):
15794         * menubar-msw.c (mswindows_free_frame_menubars):
15795         * menubar-msw.c (mswindows_popup_menu):
15796         Fixed a bug in handling accelerators where an extra character
15797         would be displayed in the menu item.  Also generalized the
15798         function displayable_menu_item because it is now used by the
15799         dialog box code as well.  And finally, added code in the functions
15800         that create the menubar to extract a list of accelerators for the
15801         top level menubar, which is used in the event code to determine
15802         whether a particular alt-key combination should be used to invoke
15803         a menu item, or should be passed through to access the standard
15804         XEmacs keymap binding for this key combination.
15805
15806         Much needed GCPROing.
15807
15808         * menubar-x.c:
15809         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15810         * menubar-x.c (menu_item_descriptor_to_widget_value):
15811         * menubar-x.c (restore_in_menu_callback):
15812         * menubar-x.c (x_popup_menu):
15813         * menubar-x.c (menu_move_up):
15814         * menubar-x.c (menu_move_down):
15815         * menubar-x.c (menu_move_left):
15816         * menubar-x.c (menu_move_right):
15817         * menubar-x.c (menu_select_item):
15818         * menubar-x.c (command_builder_operate_menu_accelerator):
15819         * menubar-x.c (menu_accelerator_junk_on_error):
15820         * menubar-x.c (command_builder_find_menu_accelerator):
15821         * menubar-x.c (Faccelerate_menu):
15822         * menubar.h:
15823         Moved a whole bunch of code here that was previously in
15824         event-stream.c as described above.  There is also code connected
15825         to the new standard of adding an accelerator to the beginning of
15826         menu items that don't have one as described above and below.
15827
15828         * menubar.c:
15829         * menubar.c (menu_parse_submenu_keywords):
15830         * menubar.c (Fmenu_find_real_submenu):
15831         * menubar.c (Fnormalize_menu_item_name):
15832         * menubar.c (syms_of_menubar):
15833         * menubar.c (vars_of_menubar):
15834         * menubar.c (complex_vars_of_menubar):
15835
15836         a) Cleaned up a bunch of documentation and improved it.
15837
15838         b) XEmacs now automatically adds an accelerator onto the beginning
15839         of any menu items that don't have one.  I did this because there
15840         will inevitably be some menu items on the main menubar that don't
15841         have accelerators on them because the package that adds that
15842         particular menu item hasn't yet been fixed up to have accelerators
15843         in them and it looked rather strange to have some items with and
15844         some items without accelerators, especially since even in items
15845         without accelerators, you can, at least under windows, still
15846         access the item through an accelerator corresponding to the first
15847         character in the item's name.  If people don't like this behavior,
15848         I can add a variable to turn it off optionally, but I'm not sure
15849         this is a good idea because we really do need to have accelerators
15850         on all of the menu items, and if a package doesn't like the
15851         accelerators being put on the first character, then it should put
15852         the accelerators where they belong.
15853
15854         c) I made a behavior change, which is that the descriptor that
15855         specifies the text of the menu item, which formerly was just a
15856         string, can now also be an evaluated expression.  This makes this
15857         descriptor parallel with all of the others, which could also be
15858         evaluated expressions.  This also obviates the need for the
15859         keyword :label, which was previously listed in the documentation
15860         as unimplemented, and which was for the same purpose.
15861
15862         d) GCPROing.
15863
15864         * ntproc.c:
15865         * ntproc.c (new_child):
15866         * ntproc.c (sys_spawnve):
15867         * ntproc.c (find_child_console):
15868         * ntproc.c (sys_kill):
15869         Fixed compile warnings.  By the way, this file should really go
15870         away entirely, and this will happen as soon as Kirill makes his
15871         final round of process cleanups, which affect the function
15872         call-process.
15873
15874         * process-nt.c:
15875         * process-nt.c (struct nt_process_data):
15876         * process-nt.c (find_process_from_pid):
15877         * process-nt.c (send_signal_the_nt_way):
15878         * process-nt.c (enable_child_signals):
15879         * process-nt.c (find_child_console):
15880         * process-nt.c (send_signal_the_95_way):
15881         * process-nt.c (nt_finalize_process_data):
15882         * process-nt.c (ensure_console_window_exists):
15883         * process-nt.c (nt_create_process):
15884         * process-nt.c (nt_kill_child_process):
15885         * process-nt.c (nt_kill_process_by_pid):
15886         * process-nt.c (nt_open_network_stream):
15887         * process-nt.c (vars_of_process_nt):
15888         Copied over code from Emacs 20.5 to correctly send signals to sub-
15889         processes under Windows 95.  Also added code to automatically
15890         create and hide console window when a sub-process is created under
15891         Windows 95, which obviates the need for the separate runemacs.exe
15892         executable, and finally implemented some variables that were
15893         implemented in Emacs 20.5, but previously not in XEmacs.  These
15894         include mswindows- start-process-share-console and
15895         mswindows-start-process-inherit-error-mode. (Both of these only
15896         apply to Windows 95.)
15897
15898         * regex.c (regex_compile): Fixed a compile warning.
15899
15900         * select-msw.c:
15901         * select-msw.c (mswindows_own_selection):
15902         * select-msw.c (mswindows_get_foreign_selection):
15903         * select-msw.c (mswindows_disown_selection):
15904         * select-msw.c (console_type_create_select_mswindows):
15905         * select-msw.c (syms_of_select_mswindows):
15906         Cleaned up the file and implemented the device method
15907         selection_exists_p, which had accidentally been left out.  Also
15908         removed four lisp functions that were remnants from before the
15909         time when the selection code was properly device abstracted.
15910         These functions are no longer needed because there are generic
15911         equivalents, and because they were added recently and don't exist
15912         in FSF Emacs, I don't think there's any problem with just deleting
15913         them.
15914
15915         * sysdep.c:
15916         * sysdep.c (sys_subshell):
15917         Fixed a compile warning, although in this case there's probably
15918         something wrong with this code, and it ought to be looked into
15919         more thoroughly by somebody who understands it.
15920
15921         * window.c:
15922         * window.c (Fwindow_text_area_height):
15923         * window.c (Fwindow_width):
15924         * window.c (Fwindow_full_width):
15925         * window.c (Fwindow_pixel_width):
15926         * window.c (debug_print_window):
15927         * window.c (syms_of_window):
15928         Added functions window-text-area-height and window-full-width,
15929         which are functions for returning various width and height
15930         characteristics of a window. (One of these functions is necessary
15931         for making the file dialog box work correctly, and the other one
15932         was added for completeness.)  Also added a table to the
15933         documentation for window-height which describes the entire scheme
15934         for accessing width and height characteristics of a window.
15935
15936 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15937
15938         * nt.c (fstat): Added a comment for another problem with
15939         non-encapsulated [f]stat(), reported by Adrian Aichner
15940         <aichner@ecf.teradyne.com>.
15941
15942 2000-03-11  Andy Piper  <andy@xemacs.org>
15943
15944         * window.c (make_dummy_parent): initialize subwindow instance
15945         cache.
15946         (Fset_window_configuration): zero extent_modiff.
15947
15948 2000-03-10  Andy Piper  <andy@xemacs.org>
15949
15950         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15951         more changes can be triggered.
15952         (Fredisplay_frame): ditto.
15953         (Fredraw_device): ditto.
15954         (Fredisplay_device): ditto.
15955         (redisplay_frame): make non-static.
15956         (redisplay_frame): call update_frame_gutter_geometry outside of
15957         display proper.
15958
15959         * gutter.h: declare update_frame_gutter_geometry.
15960
15961         * redisplay.h: declare redisplay_frame.
15962
15963         * gutter.c (update_frame_gutter_geometry): move geometry changes
15964         in update_frame_gutters here. Geometry changes can only occur
15965         outside of redisplay.
15966         (update_frame_gutters): remove geometry change code.
15967         (Fredisplay_gutter_area): make sure that we are in display when we
15968         update and that we have flushed any size changes.
15969
15970 2000-03-11  Andy Piper  <andy@xemacs.org>
15971
15972         * alloc.c (pdump_dump_data): remove i & count shadows.
15973
15974 2000-02-27  Mike Alexander  <mta@arbortext.com>
15975
15976         * sysdep.h: Declare pdump_read_file
15977
15978         * sysdep.c (pdump_read_file): New function
15979
15980         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15981         dump data
15982
15983 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15984
15985         * lrecord.h: add `lrecord_type_pgsetenv'.
15986
15987 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15988
15989         * symsinit.h: declare (vars|syms)_of* functions.
15990         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15991
15992 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15993
15994         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15995
15996         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15997         GCCs.
15998
15999         * emacs.c (main_1): Call postgres initialization code.
16000
16001         * postgresql.h: New file.  PostgreSQL RDBMS support.
16002         * postgresql.c: New file.
16003
16004 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
16005
16006         * redisplay-output.c (redisplay_output_display_block): Disable
16007         redundant code.
16008
16009 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16010
16011         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
16012         (Fcanna_henkan_next): Ditto.
16013         (Fcanna_bunsetu_henkou): Ditto.
16014         (Fcanna_henkan_kakutei): Ditto.
16015         (Fcanna_henkan_end): Ditto.
16016         (Fcanna_henkan_quit): Ditto.
16017         (Fcanna_henkan_next): Set retun value correctly.
16018         (c2mu): Use unsigned char instead of signed char.
16019
16020 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16021
16022         * emacs.c (main_1): Always call syms_of_gui.
16023         * inline.c: include gui.h
16024
16025 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16026
16027         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
16028         converted to Lisp_Object.
16029         (Qtop_bottom): New variable.
16030         (syms_of_redisplay): Initialize it.
16031         * redisplay.h (Vvisible_bell): Ditto.
16032         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
16033         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
16034         only flash top and bottom.
16035
16036 2000-03-08  Andy Piper  <andy@xemacs.org>
16037
16038         * buffer.c (Frename_buffer): record new buffer name the right way.
16039
16040 2000-03-08  Andy Piper  <andy@xemacs.org>
16041
16042         * glyphs.c (update_subwindow): increase hash depth so that widget
16043         items get picked up properly.
16044
16045         * redisplay-output.c (compare_runes): increase hash depth so that
16046         widget items get picked up properly.
16047
16048 2000-03-08  Andy Piper  <andy@xemacs.org>
16049
16050         * gutter.c (output_gutter): add some debug.
16051
16052         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
16053         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
16054         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
16055
16056         * redisplay-output.c (compare_runes): use display_hash to
16057         determine if glyphs really are not the same.
16058
16059         * glyphs.c (update_subwindow): check display_hash to see if
16060         anything really needs to be updated. If not then do
16061         nothing. Record the display_hash after updating.
16062         (image_instance_equal): compare the image_instance face also.
16063
16064 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
16065
16066         * redisplay.h: Fix comment style.
16067
16068 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16069
16070         * consle-msw.h (struct mswindows_frame):
16071         Added new member paint_pending to indicate whether a WM_PAINT
16072         magic event has been queued for this frame.
16073
16074         * event-msw.c (mswindows_drain_windows_queue):
16075         Don't queue a WM_PAINT magic event if one is already queued.
16076         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
16077
16078         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
16079
16080 2000-03-07  Didier Verna  <didier@xemacs.org>
16081
16082         * dired.c: #include `regex.h' after `sysfile.h'.
16083
16084 2000-03-06  Martin Buchholz  <martin@xemacs.org>
16085
16086         * sound.c (init_nas_sound): Fix compiler warning.
16087
16088         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16089         (FREE_STRUCT_P):
16090         (MARK_STRUCT_AS_FREE):
16091         (MARK_STRUCT_AS_NOT_FREE):
16092         Make `gcc -fstrict-aliasing' work properly.
16093
16094 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16095
16096         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16097         (mswindows_delete_device): Call CoUnnitialize().
16098
16099         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16100
16101 2000-02-25    <CraigL@DyCon.com>
16102
16103         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16104         <errno.h>.
16105
16106         * sysdep.c: This extern declaration for environ prevents MinGW
16107         from finding the variable in CRTDLL.DLL.
16108
16109         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16110         windows headers.
16111         (SHGFI_EXETYPE): ..
16112         (WM_MOUSEWHEEL): ..
16113         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16114         definitions.
16115         (MMRESULT): Removed, now defined in cygwin's windows headers.
16116         (TIMECAPS): ..
16117         (uid_t,gid_t,pid_t,ssize_t): ..
16118         (_timeb): Removed, MinGW defines both _timeb and timeb.
16119         (HAVE_H_ERRNO): Added.
16120         (HAVE_TZNAME): Added, configure is not detecting this.
16121
16122 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16123
16124         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16125         * syntax.c (syntax_match): Use it.
16126
16127         * cmds.c: Import auto-fill-chars from FSF Emacs.
16128         (Vauto_fill_chars): New variables.
16129         (internal_self_insert): Check Vauto_fill_chars.
16130         (vars_of_cmds):
16131         Declare auto-fill-chars as a Lisp variable and initialize it.
16132
16133 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16134
16135         * fileio.c (Fmake_symbolic_link):
16136         (Ffile_symlink_p):
16137         Run handlers even if local machine doesn't have symlinks.
16138
16139 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16140
16141         * event-msw.c (mswindows_drain_windows_queue):
16142         Don't generate paint magic events for non-XEmacs frames.
16143
16144 2000-03-05  Andy Piper  <andy@xemacs.org>
16145
16146         * redisplay.c (redisplay_frame): generate_displayable_area and
16147         friends assumes that we are not in GC, we therefore have to make
16148         sure that this doesn't happen.
16149
16150         * gutter.c (calculate_gutter_size): generate_displayable_area
16151         assumes that we are not in GC, we therefore have to make sure that
16152         this doesn't happen.
16153
16154 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16155
16156         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16157
16158 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16159
16160         * redisplay.c (regenerate_window): Make sure we set a sane value
16161         for end_pos even if we jump out of the loop.
16162         (regenerate_window): Answer Ben's question :-).
16163         (start_end_of_last_line): Add may_error argument.
16164         (start_of_last_line):
16165         (end_of_last_line): Pass may_error = 0.
16166         (end_of_last_line_may_error): New function.
16167         (pixel_to_glyph_translation): Use it, so we don't crash in
16168         event_to_glyph.
16169
16170 2000-03-04  Andy Piper  <andy@xemacs.org>
16171
16172         * window.h (struct window): add gutter_extent_modiff.
16173
16174         * window.c (allocate_window): zero out gutter_extent_modiff.
16175
16176         * redisplay.h: declare sync_display_line_structs.
16177
16178         * redisplay.c (add_glyph_rune): add a better comment.
16179
16180         * redisplay-output.c (sync_display_line_structs): made non-static.
16181         (compare_runes): remove unneccesary glyph cachel access.
16182
16183         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16184
16185         * gutter.c (output_gutter): don't output the gutter if extent
16186         changes only involve extents in buffers. use 4 sets of display
16187         lines.
16188         (gutter_extent_signal_changed_region_maybe): new function. Mark
16189         extents in gutters as changed.
16190         (update_frame_gutters): use 4 sets of display lines.
16191         (reset_gutter_display_lines): ditto.
16192         (free_frame_gutters): ditto.
16193         (redraw_exposed_gutter): force output of gutters.
16194
16195         * frame.h (struct frame): add 4 sets of gutter display lines.
16196
16197         * extents.c: (extent_changed_for_redisplay): signal changes to
16198         extents in strings in the gutter as well as extents in buffers.
16199
16200 2000-03-02  Andy Piper  <andy@xemacs.org>
16201
16202         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16203
16204         * frame.c (Fmake_frame): make sure the gutters get initialized
16205         after the frame is visible.
16206         (set_frame_selected_window): re-arrange compilation macros a
16207         little.
16208         (change_frame_size_1): mark gutters changed.
16209
16210         * device.c (Fset_device_class): mark gutters changed.
16211
16212 2000-03-01  Andy Piper  <andy@xemacs.org>
16213
16214         * window.c (window_top_frame_gutter_height): deleted.
16215         (window_bottom_frame_gutter_height): ditto.
16216         (window_left_frame_gutter_height): ditto.
16217         (window_right_frame_gutter_height): ditto.
16218         (window_top_gutter_height): don't use them.
16219         (window_bottom_gutter_height): ditto.
16220         (window_left_gutter_width): ditto.
16221         (window_right_gutter_width): ditto.
16222         (Fsplit_window): ditto.
16223         (Fwindow_pixel_edges): don't use border dimensions here.
16224
16225         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16226         (update_scrollbar_instance): ditto.
16227
16228         * redisplay.c (generate_modeline): don't take gutters into account.
16229         (generate_modeline): ditto.
16230         (redisplay_frame): small gutter display optimization.
16231
16232         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16233
16234         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16235         gutters into account.
16236
16237         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16238         for window position and type.
16239
16240         * gutter.c (get_gutter_coords): fix for frame gutters.
16241         (update_frame_gutters): update frame geometry if the gutters have
16242         changed.
16243         (init_frame_gutters): record current gutter geometries.
16244
16245         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16246         var.
16247         (mswindows_widget_instantiate): ditto.
16248
16249         * frame.h (struct frame): add current_gutter_bounds.
16250
16251         * frame.c (change_frame_size_1): position window and minibuffer
16252         appropriately taking into account the frame gutters.
16253
16254         * frame-x.c: (x_initialize_frame_size): take into account the
16255         frame gutters.
16256
16257 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16258
16259         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16260
16261 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16262
16263         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16264
16265 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16266
16267         * file-coding.c (reset_decoding_stream): Clear previous
16268         detection state when autodetect.
16269
16270 2000-02-29  Didier Verna  <didier@xemacs.org>
16271
16272         * extents.c (set_extent_glyph_1): don't require extents to be
16273         attached.
16274
16275 2000-02-27  Andy Piper  <andy@xemacs.org>
16276
16277         * gutter.c (Fset_default_gutter_position): don't default left and
16278         right gutter visibility to t.
16279         (Fset_default_gutter_position): run
16280         default-gutter-position-changed-hook.
16281         (syms_of_gutter): add default-gutter-position-changed-hook.
16282
16283 2000-02-26  Andy Piper  <andy@xemacs.org>
16284
16285         * specifier.c (Fmake_specifier): add gutter references.
16286
16287         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16288
16289         * lisp.h: declare Fvalid_plist_p.
16290
16291         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16292         as changed.
16293         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16294         well as its visibility so that it gets reconstructed.
16295         (construct_window_gutter_spec): new function. Construct a string
16296         to be displayed in the gutter from a plist of strings. Take care
16297         to only use elements that are declared as visible.
16298         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16299         WINDOW_GUTTER.
16300         (gutter_validate): allow plists of strings in the specifier.
16301         (gutter_specs_changed): construct the real_gutter from the gutter
16302         specs using construct_window_gutter_spec.
16303         (gutter_visible_validate): gutter-visible is a new specifier type.
16304         (Fgutter_visible_specifier_p): new function for the new specifier.
16305         (syms_of_gutter): declare gutter-visible and
16306         Fgutter_visible_specifier_p.
16307         (specifier_type_create_gutter): intitalize new gutter-visible
16308         specifier.
16309         (reinit_specifier_type_create_gutter): ditto.
16310         (specifier_vars_of_gutter): use new specifier type for gutter
16311         visibility.
16312         (init_frame_gutters): construct real_gutter correctly.
16313         (Fgutter_specifier_p): beef up documentation.
16314         (Fgutter_size_specifier_p): ditto.
16315
16316         * winslots.h: add real_gutter slots.
16317
16318 2000-02-25  Andy Piper  <andy@xemacs.org>
16319
16320         * device-msw.c: Be kind to older cygwin versions. From Raymond
16321         Toy <toy@rtp.ericsson.se>.
16322
16323         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16324         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16325
16326 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16327
16328         * elhash.c (MARK_OBJ): Practice macro hygiene.
16329
16330 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16331
16332         * miscplay.c: s/__inline__/inline/g;
16333         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16334         (get_device_compdc): INLINE ==> static inline
16335         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16336         find -name '*.h' | \
16337         xargs global-replace \
16338         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16339
16340 2000-02-25  Andy Piper  <andy@xemacs.org>
16341
16342         * window.c (window_top_frame_gutter_height): new function.
16343         (window_top_window_gutter_height): ditto.
16344         (window_top_gutter_height): use them.
16345         (window_bottom_frame_gutter_height): new function.
16346         (window_bottom_window_gutter_height): ditto.
16347         (window_bottom_gutter_height): use them.
16348         (window_left_window_gutter_width): new function.
16349         (window_left_frame_gutter_width): ditto.
16350         (window_left_gutter_width): use them.
16351         (window_right_window_gutter_width): new function.
16352         (window_right_frame_gutter_width): ditto.
16353         (window_right_gutter_width): use them.
16354         (window_pixel_height): new function. calulate window pixel height
16355         with frame gutter involvement.
16356         (Fsplit_window): calculate new sizes taking frame gutters into
16357         account.
16358         (window_char_height_to_pixel_height): don't include frame gutters.
16359         (window_char_height): use window_pixel_height.
16360         (window_pixheight): rename from window_pixel_height.
16361         (change_window_height): use it.
16362         (window_pixel_height_to_char_height): don't include frame gutters.
16363         (window_char_width_to_pixel_width): ditto.
16364
16365 2000-02-25  Andy Piper  <andy@xemacs.org>
16366
16367         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16368         if it is.
16369
16370 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16371
16372         * alloc.c (staticpro):
16373         (staticpro_nodump):
16374         (dumpstruct):
16375         (dumpopaque):
16376         (pdump_wire):
16377         (pdump_wire_list):
16378         (compact_string_chars):
16379         (pdump_dump_wired):
16380         Convert:  if (foo) abort();  ==>  assert (! foo);
16381
16382         * eldap.c (Fldap_search_basic):
16383         (Fldap_add):
16384         (Fldap_modify):
16385         (Fldap_delete):
16386         Fix compiler warnings, and possible crashes if (random) return
16387         value were to be used.
16388
16389 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16390
16391         * device-msw.c: Workaround ResetDC failure.
16392
16393         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16394         applying a devmode.
16395
16396         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16397         (mswindows_text_width): Do not start printer page.
16398
16399         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16400
16401         * glyphs-msw.c: Added image methods to msprinter console and
16402         msprinter-specific image instantiation.
16403
16404 2000-02-20  Mike Alexander  <mta@arbortext.com>
16405
16406         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16407         to avoid crashes when selection-sets-clipboard is on
16408         (mswindows_own_selection): ditto
16409
16410 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16411
16412         * glyphs-msw.c:
16413         * redisplay-msw.c (get_frame_dc):
16414         (get_frame_compdc):
16415         * console-msw.h:
16416         * device-msw.c (mswindows_init_device):
16417         (mswindows_delete_device):
16418         (msprinter_init_device):
16419         (msprinter_delete_device):
16420         * frame-msw.c (mswindows_init_frame_1):
16421         (mswindows_delete_frame):
16422         (msprinter_init_frame_3):
16423         (msprinter_delete_frame): Move compatible DC to device object from
16424         frame object, for both mswindows and msprinter. Only one at a time
16425         is needed, it is a real waste to have one per frame!
16426
16427 2000-02-23  Andy Piper  <andy@xemacs.org>
16428
16429         * glyphs.c: add dynamic width and height elements.
16430         (image_instance_equal): ditto.
16431
16432         * glyphs-widget.c (widget_query_geometry): calculate width and
16433         height dynamically if required.
16434         (initialize_widget_image_instance): initialize dynamic dimensions.
16435         (widget_instantiate): pick-up dynamic dimensions.
16436
16437         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16438         dynamic determination. Add appropriate macros.
16439
16440         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16441         dimensions safe.
16442         (WINDOW_GUTTER_SIZE): ditto.
16443         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16444
16445         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16446         inline.
16447         (get_frame_dc): ditto.
16448
16449         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16450         here.
16451
16452 2000-02-23  Martin Buchholz <martin@xemacs.org>
16453
16454         * XEmacs 21.2.31 is released.
16455
16456 2000-02-22  Ben Wing <ben@xemacs.org>
16457
16458         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16459
16460 2000-02-22  Andy Piper  <andy@xemacs.org>
16461
16462         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16463
16464 2000-02-21  Mike Sperber <mike@xemacs.org>
16465
16466         * .dbxrc:
16467         * .gdbinit:
16468         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16469         variables.
16470
16471 2000-02-21  Mike Sperber <mike@xemacs.org>
16472
16473         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16474
16475 2000-02-21  Martin Buchholz <martin@xemacs.org>
16476
16477         * XEmacs 21.2.30 is released.
16478
16479 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16480
16481         Performance hacking.
16482         * *.c (syms_of_*):
16483         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16484         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16485         * emacs.c (main_1):
16486         * lisp.h (DEFUN):
16487         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16488         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16489         * symeval.h (DEFVAR_SYMVAL_FWD):
16490         * symbols.c (guts_of_unbound_marker):
16491         Make all c_readonly objects also lisp_readonly and marked for life.
16492         * lrecord.h (struct lrecord_implementation):
16493         Document flags better.
16494         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16495         * lrecord.h (DECLARE_LRECORD):
16496         * lrecord.h (XSETRECORD):
16497         * lrecord.h (RECORDP):
16498         * lrecord.h (RECORD_TYPEP):
16499         * lrecord.h (RECORD_MARKER): New.
16500         * lrecord.h (error_check_*):
16501         * lrecord.h (CONCHECK_NONRECORD):
16502         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16503         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16504         * lrecord.h (set_lheader_implementation):
16505         * lrecord.h (enum lrecord_type): New.
16506         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16507         * alloc.c (disksave_object_finalization_1):
16508         * alloc.c (mark_object):
16509         * alloc.c (lrecord_type_index):
16510         * alloc.c (tick_lcrecord_stats):
16511         * alloc.c (Fgarbage_collect):
16512         * alloc.c (init_alloc_once_early):
16513         * alloc.c (pdump_load):
16514         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16515         * alloc.c (lrecord_type_index): Delete.
16516         Make lisp object type indexes be constant.
16517           Makes (byte-compile) 5% faster.
16518         Put all marker functions into their own array.
16519           Makes (garbage-collect) 5% faster.
16520         Optimize SYMBOL_VALUE_MAGIC_P.
16521           Makes (byte-compile) 2-3% faster.
16522         * config.h.in (gc_checking_assert): New.
16523         * alloc.c: Use gc_checking_assert().
16524         * .dbxrc: Make compatible with new object type implementation.
16525         * .gdbinit: Make compatible with new object type implementation.
16526         * alloc.c: Delete all symbols defined only for debugging, such as
16527         Lisp_Type_Vector and lrecord_charset.
16528
16529 2000-02-21  Andy Piper  <andy@xemacs.org>
16530
16531         * gui-msw.c (Fmswindows_shell_execute): fix file location
16532         problems.
16533
16534         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16535         unshowing so that set_window_buffer doesn't undo
16536         kill_buffer_hook's hard work.
16537
16538         * glyphs-widget.c (tab_control_query_geometry): don't count the
16539         first item when calculating geometry.
16540
16541         * glyphs.c (map_subwindow): remove redundant code.
16542         (update_frame_subwindows): be more circumspect about when to
16543         update subwindows.
16544
16545         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16546         when items haven't changed. Update faces if faces have changed as
16547         well as just the widget face.
16548         (x_tab_control_update): Update faces if faces have changed as well
16549         as just the widget face.
16550
16551 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16552
16553         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16554         registration.
16555         (build_syscolor_string): Use mswindows_color_to_string to try to
16556         get a named color.
16557         (mswindows_device_system_metrics): Reverse the foreground and
16558         background colors so that they match the documentation.
16559
16560         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16561         they match the default Windows palette.
16562         (mswindows_color_to_string): New function.
16563
16564 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16565
16566         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16567
16568 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16569
16570         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16571         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16572
16573         * symbols.c (init_symbols_once_early): Removed obsolete
16574         DATA_SEG_BITS related kludge.
16575         (defvar_magic): Ditto.
16576
16577         * malloc.c: Removed obsolete DATA_SEG_BITS
16578         * ralloc.c: Ditto.
16579         * mem-limits.h: Ditto.
16580
16581         * Makefile.in.in: Removed obsolete HAVE_SHM
16582         * emacs.c: Ditto.
16583
16584 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16585
16586         *  device-msw.c (mswindows_delete_device): Free DDE string
16587         handles.
16588
16589 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16590
16591         * keymap.c (get_keyelt):
16592         * unexnt.c (unexec):
16593         * vm-limit.c (memory_warnings):
16594         * ntheap.c (recreate_heap):
16595         * ntheap.h (UNINIT_PTR):
16596         * select-msw.c (Fmswindows_get_clipboard):
16597         (Fmswindows_set_clipboard):
16598         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16599         * objects-msw.c:
16600         * menubar-msw.c (displayable_menu_item):
16601         * glyphs-msw.c:
16602         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16603         * sysdep.c (sys_subshell):
16604         * process-nt.c (nt_create_process):
16605         * nt.c (normalize_filename):
16606         (dostounix_filename):
16607         (unixtodos_filename):
16608         * ntproc.c (win32_executable_type):
16609         * ntplay.c (play_sound_data_1):
16610         (play_sound_file):
16611         * editfns.c (get_home_directory):
16612         * event-msw.c (struct winsock_stream):
16613         (mswindows_dde_callback):
16614         * device-msw.c (msprinter_init_device):
16615         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16616
16617         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16618         mswindows_clear_toolbar were swapped!
16619
16620         * objects-msw.c:(colormap_t):
16621         (fontmap_t):
16622         * emacs.c (struct standard_args): Fixed const jumble.
16623
16624         * glyphs-widget.c (update_widget): Fixed comparison notation.
16625
16626         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16627
16628         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16629         __declspec(noreturn) syntax.
16630
16631 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16632
16633         * eldap.c (Fldap_open):
16634         (Fldap_search_basic):
16635         (Fldap_add):
16636         (Fldap_modify):
16637         Use new coding system conversion macros.
16638
16639 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16640
16641         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16642
16643 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16644
16645         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16646         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16647
16648         * eldap.c (Qadd, Qreplace): New constant symbols
16649         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16650         interruptions by XEmacs signals
16651         Remove unnecessary calls to slow_down_interrupts and
16652         speed_up_interrupts
16653         (Fldap_search_basic): Renamed from Fldap_search_internal
16654         Added new optional parameter VERBOSE that triggers the
16655         display of progress messages
16656         Remove unnecessary calls to slow_down_interrupts and
16657         speed_up_interrupts
16658         LDAP result code analysis rewritten
16659         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16660         (syms_of_eldap): Define the new symbols and functions
16661
16662
16663 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16664
16665         * realpath.c: Determine PATH_MAX maximally portably.
16666
16667         * insdel.c (bytecount_to_charcount): Optimize.
16668         The function used to be optimized for entirely ASCII sequences.
16669         Now it is optimized for successive characters from the same
16670         charset.  This also wins big for _mostly_ ASCII sequences.
16671
16672         * fileio.c (Ffile_truename): convert return from realpath() using
16673         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16674         - Rewrite GCPROing slightly.
16675
16676         * sysdep.c (sys_open): Do filename conversion, like all other
16677         sys_* functions.  Fixes bug:
16678         (let ((file-name-coding-system 'iso-8859-2))
16679            (write-region x y latin2-name))
16680         ==> writes filename using internal encoding.
16681
16682 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16683
16684         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16685         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16686         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16687         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16688         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16689         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16690         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16691         (CONST_IF_NOT_DEBUG): Delete.
16692         * alloc.c (this_one_is_unmarkable): Delete.
16693         (mark_object): Don't check for this_one_is_unmarkable. Use the
16694         c_readonly flag instead.
16695         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16696
16697 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16698
16699         * event-msw.c (mswindows_drain_windows_queue):
16700         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16701         away redundant repaint events.
16702
16703 2000-02-17  Andy Piper  <andy@xemacs.org>
16704
16705         * redisplay.h: declare mark_redisplay_structs.
16706
16707         * redisplay.c (redisplay_window):
16708         (redisplay_frame): don't check subwindows_state_changed.
16709         (mark_redisplay): mark gutters here.
16710
16711         * glyphs.c: (instantiate_image_instantiator): always layout if we
16712         haven't done so already.
16713         (allocate_image_instance): don't mark as dirty.
16714         (update_subwindow): bind inhibit_quit.
16715
16716         * gutter.c (mark_gutters): new function.
16717
16718         * glyphs-x.c (x_update_widget): Always resize to get round a
16719         widget bug.
16720
16721         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16722         breaking absolutely everything.
16723
16724         * gutter.h: declare mark_gutters.
16725
16726 2000-02-16  Martin Buchholz <martin@xemacs.org>
16727
16728         * XEmacs 21.2.29 is released.
16729
16730 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16731
16732         * fns.c (size_bit_vector): Fix computation of the size.
16733
16734 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16735
16736         * *.[ch]: Change CONST to const globally.
16737         find -name '*.[ch]' | \
16738         xargs global-replace \
16739         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16740         - Remove vestigial references to CONST_IS_LOSING
16741
16742 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16743
16744         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16745         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16746         events instead of dispatching them directly.
16747         (mswindows_handle_paint): New function to do repainting.
16748         (mswindows_wnd_proc):
16749         (emacs_mswindows_handle_magic_event): Call above function.
16750
16751 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16752
16753         * objects-msw.c (mswindows_create_font_variant): Return the new
16754         font handle.
16755         (initialize_font_instance): Get font metrics from the underlined
16756         variant of the font to cope with the case where the underlined
16757         font has a bigger descent.
16758
16759 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16760
16761         * gui.c (gui_item_accelerator): Return the first underlined
16762         character in item name.
16763
16764 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16765
16766         * lisp.h: Added Qprinter.
16767
16768         * general.c (syms_of_general): Initialized it.
16769
16770         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16771         (get_frame_dc):
16772         (get_frame_compdc): Made inline.
16773
16774         * console.h (struct console_methods): Added eject_page method.
16775
16776         * frame.h: Added FRAME_DISPLAY_P and friends.
16777         Aligned backslahes in many macros in more readable fashion.
16778         Added page_number to struct frame, and an accessor macro
16779         for it.
16780
16781         * defice.h: Added DEVICE_DISPLAY_P and friends.
16782
16783         * device.c (Fdevice_printer_p): Used these.
16784
16785         * frame.c (allocate_frame_core): Initialize page number.
16786         (Fprint_job_page_number):
16787         (Fprint_job_eject_page): Implemented.
16788
16789         * frame-msw.c (msprinter_eject_page): Added method.
16790         (msprinter_start_page): Added.
16791
16792         * window.c (Fwindow_truncated_p): Fixed docstring.
16793         (Fwindow_last_line_visible_height): Implemented.
16794
16795 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16796
16797         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16798
16799 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16800
16801         * syntax.c (scan_words): Always advance at least one character.
16802
16803 2000-02-13  Andy Piper  <andy@xemacs.org>
16804
16805         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16806         to make sure the glyph is in the cachels.
16807
16808         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16809         global image instance flag.
16810         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16811         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16812
16813         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16814         (Fset_image_instance_property): mark layout as changed.
16815         (invalidate_glyph_geometry_maybe): mark layout as changed.
16816         (glyph_width): use new NEEDS_LAYOUT macro.
16817         (glyph_ascent): ditto.
16818         (glyph_descent): ditto.
16819         (glyph_height): ditto.
16820         (image_instance_layout): mark layout as clean after laying out.
16821         (update_subwindow): don't mark layout as clean here.
16822
16823         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16824         should no longer be needed.
16825
16826         * glyphs-x.c (x_update_widget): sanitize asserts.
16827         (x_finalize_image_instance): sanitize assignment to widgets.
16828
16829         * glyphs-widget.c (widget_instantiate): don't need to clear the
16830         layout flag here.
16831
16832 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16833
16834         * sysdep.c (getcwd): Use standard prototype.
16835         * sysdep.h (getcwd): Use standard prototype.
16836
16837         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16838         (sequence, start, end).
16839         Remove redundant type checking.
16840         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16841         view of `caller-protects') to avoid a crash where the real fix was
16842         found elsewhere.
16843
16844 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16845
16846         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16847
16848         * s/sol2.h: Remove feature macro initialization.
16849
16850         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16851         (vector_hash): New.  Code from internal_hash.
16852         * lrecord.h:
16853         Fix up allocation subsystem comments.
16854
16855         * config.h.in: Add __EXTENSIONS__ for Solaris.
16856
16857         * systime.h (EMACS_GETTIMEOFDAY): New.
16858         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16859         Remove Solaris-specific code.
16860         Use void* for the (ignored) second arg for gettimeofday().
16861
16862         * elhash.c (hash_table_hash): Implement it, finally.
16863         * elhash.c:  Use hashcode_t.
16864
16865         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16866         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16867
16868         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16869         * fns.c (size_bit_vector):
16870         * alloc.c (size_vector):
16871         (make_vector_internal):
16872         (make_bit_vector_internal):
16873         (sweep_bit_vectors_1):
16874         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16875
16876 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16877
16878         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16879         Include strings.h to avoid warnings for bzero and strcasecmp.
16880
16881 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16882
16883         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16884         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16885
16886         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16887         sequence.
16888
16889 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16890
16891         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16892         use a value field instead.
16893         (symbol_value_forward_forward): Use value field.
16894         (DEFVAR_SYMVAL_FWD): Use value field.
16895         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16896         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16897         (DEFVAR_CONST_INT): Ditto.
16898         (DEFVAR_BOOL): Ditto.
16899         (DEFVAR_CONST_BOOL): Ditto.
16900         (DEFVAR_INT_MAGIC): Ditto.
16901         (DEFVAR_BOOL_MAGIC): Ditto.
16902
16903         * symbols.c (guts_of_unbound_marker): Use value field.
16904         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16905         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16906
16907         * lisp.h: Declare dumpopaque and noninteractive1.
16908
16909         * alloc.c (dumpopaque): Added.
16910         (pdump_dump_opaquevec): Added.
16911         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16912         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16913         noninteractive.
16914
16915 2000-02-10  Andy Piper  <andy@xemacs.org>
16916
16917         * glyphs.c (image_instance_layout): if the size changes, mark it
16918         as such.
16919
16920         * redisplay-output.c (redisplay_output_layout): Update the
16921         subwindow here.
16922         (redisplay_output_subwindow): ditto.
16923
16924         * glyphs.c (update_subwindow): make sure we reset flags for
16925         layouts as well as everything else.
16926
16927         * glyphs-widget.c (layout_layout): don't need to set the instances
16928         dimensions here.
16929
16930 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16931
16932         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16933         not HAVE_DLOPEN, which is a lower-level thing.
16934
16935         * .cvsignore: Ignore gmon.out
16936
16937 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16938
16939         * .cvsignore: Ignore portable dumper xemacs.dmp file
16940
16941 2000-02-09  Andy Piper  <andy@xemacs.org>
16942
16943         * redisplay-output.c (redisplay_output_layout): be more clever
16944         about when we output based on the changed flags.
16945
16946         * glyphs.h (struct image_instantiator_methods): add update_method.
16947         (struct Lisp_Image_Instance): add changed flags. Declare new
16948         macros for manipulating them.
16949
16950         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16951         (image_instance_parent_glyph): find an image_instance's parent
16952         glyph or image_instance.
16953         (image_instance_layout): mark the size as changed.
16954         (set_image_instance_dirty_p): new function. mark an image
16955         instance, plus all of its parents, as dirty.
16956         (Fset_image_instance_property): use it.
16957         (Fglyph_animated_timeout_handler): use it.
16958         (update_subwindow): call update_widget and device methods for
16959         update_subwindow. Mark all changed flags as clean.
16960         (Fresize_subwindow): mark size as changed.
16961
16962         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16963         failures.
16964         (x_update_subwindow): only resize subwindows here.
16965         (x_update_widget): new function. Update all changed properties of
16966         a widget.
16967         (x_resize_subwindow): deleted.
16968         (x_widget_set_property): deleted.
16969         (x_progress_gauge_set_property): deleted.
16970         (x_progress_gauge_update): new function. Implement recorded
16971         changes.
16972         (x_tab_control_update): ditto.
16973         (x_tab_control_set_property): deleted.
16974         (console_type_create_glyphs_x): declare new functions.
16975         (image_instantiator_format_create_glyphs_x): ditto.
16976
16977         * glyphs-widget.c (widget_set_property): mark text changed.
16978         (update_widget): new function. Update properties of a widget.
16979         (widget_instantiate): for layouts make sure we set their
16980         children's parent correctly.
16981         (tab_control_set_property): new function. Record changes that will
16982         take place under redisplay's control.
16983         (progress_gauge_set_property): ditto.
16984         (image_instantiator_progress_guage): declare new functions.
16985         (image_instantiator_tab_control): ditto.
16986
16987         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16988         now.
16989         (mswindows_update_widget): new function. Update all properties on
16990         a widget that have changed.
16991         (mswindows_button_update): new function. Update a button's set
16992         state.
16993         (mswindows_tab_control_update): new function. Update the items in
16994         a tab.
16995         (mswindows_tab_control_set_property): deleted.
16996         (mswindows_progress_gauge_update): new function. Update the
16997         progress gauge's progress.
16998         (mswindows_widget_set_property): deleted. This is all done
16999         asynchronously now.
17000         (mswindows_progress_gauge_set_property): ditto.
17001         (console_type_create_glyphs_mswindows): declare new methods.
17002         (image_instantiator_format_create_glyphs_mswindows): ditto.
17003
17004         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
17005         (msprinter_set_frame_properties): ditto.
17006
17007         * console.h (struct console_methods): Add update_widget_method.
17008
17009 2000-02-09  Andy Piper  <andy@xemacs.org>
17010
17011         * gui-msw.c (Fmswindows_shell_execute): Make
17012         mswindows-shell-execute industrial strength.
17013
17014 2000-02-08  Martin Buchholz  <martin@xemacs.org>
17015
17016         * lrecord.h: Make macro argument `props' match member function `plist'.
17017         * fns.c (Fget):
17018         * fns.c (Fput):
17019         * fns.c (Fremprop):
17020         * fns.c (Fobject_plist):
17021         * alloc.c:
17022         * symbols.c:
17023         Object property list frobbing cleanup.
17024         - Allow any lisp object (compared with `eq'), not just symbols, as
17025           keys in object plists.
17026         - Move symbol plist frobbing into symbols.c, where it belongs.
17027         - Move string plist frobbing into alloc.c, where it belongs.
17028         - Everything's an lrecord now, so no need to test for symbolp, etc.
17029         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
17030
17031         * extents.c: Reorder code to remove declarations.
17032
17033         * frame.h (store_in_alist): Remove useless declaration.
17034
17035 2000-02-07  Martin Buchholz  <martin@xemacs.org>
17036
17037         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
17038         * config.h.in: Add HAVE_XCONVERTCASE.
17039
17040 2000-02-07  Andy Piper  <andy@xemacs.org>
17041
17042         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
17043         it breaks many things.
17044
17045 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
17046
17047         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
17048         actually can start a common comment type.
17049         * src/syntax.h (SYNTAX_END_P): ditto for end.
17050
17051 2000-02-07  Martin Buchholz <martin@xemacs.org>
17052
17053         * XEmacs 21.2.28 is released.
17054
17055 2000-02-06  Martin Buchholz  <martin@xemacs.org>
17056
17057         * event-Xt.c (x_keysym_to_character): New.
17058         (maybe_define_x_key_as_self_inserting_character): New.
17059         (x_has_keysym): New.
17060         Auto-define all keys on the keyboard as self-insert-key.
17061
17062 2000-02-02  Martin Buchholz  <martin@xemacs.org>
17063
17064         * menubar.c (vars_of_menubar): A small code simplification.
17065
17066         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17067
17068         * ExternalShell.c:
17069         * ExternalClient.c:
17070         * EmacsShell-sub.c:
17071         * EmacsManager.c:
17072         * EmacsFrame.c:
17073         Use consistent style for specifying X resources.
17074
17075         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
17076         This makes (dontusethis-set-symbol-value-handler) actually usable.
17077
17078         * lrecord.h (lrecord_decription_type):
17079         * alloc.c (pdump_register_sub):
17080         (pdump_dump_data):
17081         (pdump_reloc_one):
17082         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17083         Comply with XEmacs coding style.
17084         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17085         args, and XD_LISP_OBJECT_ARRAY with 3 args.
17086
17087         * keymap.c (Faccessible_keymaps):
17088         Make (accessible-keymaps map "\C-h") do the Right Thing.
17089         Make (accessible-keymaps map []) do the Right Thing.
17090         Make (accessible-keymaps map "") do the Right Thing.
17091         (check_keymap_definition_loop): New function.
17092         (keymap_store_internal): Keep luser from shooting self in foot,
17093           via (define-key ctl-x-4-map "p" global-map).
17094         Remove fullness slot from struct Lisp_Keymap, since hash tables
17095         are now reliable.
17096         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17097
17098 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17099
17100         * redisplay.c (init_redisplay): Fix small memory leak.
17101         * elhash.h:
17102         * elhash.c (pdump_reorganize_hash_table):
17103         Rename from reorganize_hash_table. Change prototype.
17104         Reuse the original memory for hentries.  Save 100k.
17105         * alloc.c (PDUMP_READ): new macro.
17106         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17107         * alloc.c: No need to #ifndef before #undef.
17108
17109         * print.c: Allow debug_print() to print readably by modifying
17110         debug_print_readably.  Use consistent variable names.
17111
17112         * .dbxrc: Try to get things to work even if stopped in a function
17113         without source available by explicitly specifying source files.
17114 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17115
17116         * unexnt.c (_start): Removed bogus code which caused loading heap
17117         from differrent executable file.
17118         Removed bogus assignment to _fmode, which caused inconsistencies.
17119
17120 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17121
17122         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17123         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17124         Do not preliminary `#define signal sigset'.
17125
17126         * systime.h: Do not prototype environ on windows nt and cygwin,
17127         this conflicts with system header.
17128
17129         * syssignal.h: Use correct define for WINDOWSNT
17130
17131         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17132         with system header.
17133
17134         * sysdep.c (near start of file): Fixed commentary and rearranged
17135         ifdefs in readable order.
17136         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17137         (start_of_text):
17138         (end_of_text):
17139         (end_of_data): Do not compile in if using PDUMP.
17140
17141         * symsinit.h: Prototyped vars_of_nt().
17142
17143         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17144         (find_child_console): Use it.
17145         (sys_kill): Use it.
17146
17147         * ntheap.h: Do not extern os_subtype.
17148
17149         * ntheap.c (cache_system_info): Do not cache unneeded:
17150         nt_major_version, nt_minor_version and os_subtype.
17151         (recreate_heap): Do not compile in when PDUMPing.
17152
17153         * nt.c (geteuid and friends): Use the new varibale
17154         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17155         (init_user_info): Removed the above mentioned hackery.
17156         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17157         stat has been fixed in the C runtime.
17158         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17159
17160         * file-coding.c (struct file_coding_dump): Do not define
17161         ucs_to_mule_table in the struct if not MULE.
17162         (struct struct lrecord_description fcd_description_1): Do not dump
17163         the above.
17164
17165         * emacs.c (main_1): Call vars_of_nt().
17166         (right before Fdump_emacs_data): Don't need lastfile if using both
17167         portabe dumper and system malloc.
17168
17169         * alloc.c (Fmemory_limit): Conditionalized out.
17170         (pdump): Use OPEN_BINARY for the portable dump file.
17171         (pdump_load): Ditto.
17172
17173 2000-02-02  Mike Alexander  <mta@arbortext.com>
17174
17175         * nt.c (convert_time): Set tm_isdst before calling mktime and
17176         avoid calling it at all if the compiler supports 64 bit integers.
17177         Also initialize utc_base_ft before using it.
17178
17179 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17180
17181         * frame.c (change_frame_size_1): Take f->internal_border_width
17182         into consideration when calculating the width of the frame.
17183
17184 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17185
17186         * window.c (frame_min_height):
17187         (frame_size_valid_p):
17188         (frame_pixsize_valid_p): Added.
17189         (check_frame_size): Generalized.
17190
17191         * window.h: Prototyped the above.
17192
17193         * lisp.h:
17194         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17195         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17196         Deleted Vwin32_* and Vbinary_process_* unused variables.
17197
17198         * device-msw.c (msprinter_init_device): Do not get printer font
17199         list; Added DEVMODE functions.
17200
17201         * frame-msw.c: Added lots of printer code.
17202
17203         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17204         general.c.
17205
17206         * console-msw.h: Added more msprinter device private slots.
17207
17208 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17209
17210         * event-msw.c (key_needs_default_processing_p): Added.
17211         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17212
17213 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17214
17215         * glyphs.c (image_instance_layout): Mark image instance as clean
17216         after layout.
17217         (glyph_dirty_p): Removed redundant function.
17218         (invalidate_glyph_geometry_maybe): Added.
17219         (update_glyph_cachel_data): Call it.
17220
17221         * glyphs.h: Prototyped it.
17222
17223         * redisplay.c (add_glyph_rune): Call it.
17224         (redisplay_window): Reset glyphs cachels when frame faces have
17225         changed, thus forcing recomputation of built-in border glyphs.
17226
17227 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17228
17229         * Makefile.in.in: Make portable dumper and purify play well together.
17230         Add imperfect, but better than nothing, support for pdump.
17231         Remove xemacs.dmp when temacs is re-generated.
17232         Don't ignore errors when dumping xemacs.
17233
17234         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17235
17236 2000-01-28  Andy Piper  <andy@xemacs.org>
17237
17238         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17239         (setup_normal_frame): ditto.
17240         (setup_frame_without_minibuffer): ditto.
17241         (setup_minibuffer_frame): ditto.
17242         (delete_frame_internal): ditto.
17243         (Fmake_frame_invisible): ditto.
17244         (Ficonify_frame): ditto.
17245
17246         * window.h: change Fset_window_buffer signature.
17247
17248         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17249         (Fset_window_buffer): allow recording of buffer if the window is
17250         the selected window.
17251         (window_loop): Use new Fset_window signature.
17252
17253 2000-01-23  Daniel Pittman  <daniel@danann.net>
17254
17255         * config.h.in: Added template for `HAVE_ATHENA_3D'
17256
17257 2000-01-29  Andy Piper  <andy@xemacs.org>
17258
17259         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17260
17261         * gutter.c (output_gutter): Don't output if the window isn't live.
17262
17263 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17264
17265         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17266         of 01/12/00: Moved SetFocus back here where it belongs.
17267
17268 2000-01-23  Andy Piper  <andy@xemacs.org>
17269
17270         * s/cygwin32.h: declare printer things.
17271
17272 2000-01-26  Andy Piper  <andy@xemacs.org>
17273
17274         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17275         Alexander.
17276
17277 2000-01-24  Andy Piper  <andy@xemacs.org>
17278
17279         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17280         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17281
17282         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17283
17284         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17285
17286         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17287
17288         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17289         (mswindows_output_display_block): Avoid local shadows.
17290
17291         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17292         (mswindows_enqueue_mouse_button_event): ditto.
17293         (mswindows_handle_gui_wm_command): remove declaration.
17294
17295         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17296         warnings.
17297
17298         * console-msw.h: Avoid shadows.
17299         (mswindows_get_toolbar_button_text):
17300         (emacs_mswindows_create_stream_pair):
17301         (emacs_mswindows_delete_stream_pair):
17302         (mswindows_handle_toolbar_wm_command): declare.
17303
17304         * device-msw.c (build_syscolor_string): Avoid shadows.
17305
17306 2000-01-23  Andy Piper  <andy@xemacs.org>
17307
17308         * glyphs-widget.c (widget_instantiate): reverse the items for
17309         layouts so that children are in the expected order.
17310
17311 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17312
17313         * ralloc.c: safe_bcopy ==> memmove
17314         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17315         * s/msdos.h: Remove BCOPY macros.
17316         * insdel.c (gap_right): Remove BCOPY conditional code.
17317         * insdel.c (gap_left): Remove BCOPY conditional code.
17318         XEmacs demands a working ANSI C compiler - hence memmove.
17319
17320         * regex.c (regex_compile): Remove accidental use of trigraphs.
17321
17322 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17323
17324         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17325         event timestamp.
17326
17327 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17328
17329         * event-msw.c (mswindows_drain_windows_queue): Added the
17330         parameter.
17331         (mswindows_need_event): Commented the call to
17332         mswindows_drain_windows_queue().
17333         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17334         only.
17335
17336         * console-msw.h: Moved a few function prototypes here from
17337         event-msw.c.
17338
17339         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17340         parameter from unsigned short to unsigned long.
17341         (Fmswindows_shell_execute): Added return value.
17342
17343 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17344
17345         * sysdep.c (init_system_name):
17346           process-unix.c (unix_canonicalized_host_name):
17347         Don't call freeaddrinfo() if getaddrinfo() fails.
17348
17349         * process-unix.c (unix_open_unix_network_stream):
17350         Moved the code to get a port # into address loop.
17351
17352 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17353
17354         * buffer.c (reinit_vars_of_buffer):
17355         The right place to initialize conversion_in_dynarr and
17356         conversion_out_dynarr.
17357
17358         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17359
17360         * process-unix.c (unix_canonicalize_host_name): Muleize.
17361         (unix_open_network_stream): Muleize.
17362
17363         * buffer.h: Fix up prototypes for ralloc.c functions.
17364
17365 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17366         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17367         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17368                 instead of gethostbyname()
17369         * process-unix.c: In unix_canonicalize_host_name() and
17370                 unix_open_network_stream(), add code to use getaddrinfo()
17371                 instead of gethostbyname().
17372
17373 2000-01-27  Daniel Pittman <daniel@danann.net>
17374
17375         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17376         libs when built with flat Athena.
17377
17378 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17379
17380         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17381         Use coding standards for function prototypes.
17382
17383 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17384
17385         * dialog-msw.c (push_lisp_string_as_unicode):
17386         * doc.c (unparesseuxify_doc_string):
17387         * dired.c (Fuser_name_completion_1):
17388         * dired.c (Fuser_name_all_completions):
17389         * dired.c (free_user_cache):
17390         * dired.c (user_name_completion):
17391         * console-x.c (get_display_arg_connection):
17392         * minibuf.c (clear_echo_area_internal):
17393         * minibuf.c (echo_area_append):
17394         * eldap.c (Fldap_open):
17395         * eldap.c (Fldap_search_internal):
17396         * frame-x.c (x_set_frame_text_value):
17397         * frame-x.c (x_set_frame_properties):
17398         * frame-x.c (x_create_widgets):
17399         * redisplay-tty.c (term_get_fkeys_1):
17400         * objects-x.c (x_parse_nearest_color):
17401         * objects-x.c (x_valid_color_name_p):
17402         * objects-x.c (x_initialize_font_instance):
17403         * objects-x.c (x_list_fonts):
17404         * objects-x.c (x_find_charset_font):
17405         * tooltalk.c (Fadd_tooltalk_message_arg):
17406         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17407         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17408         * process-unix.c (unix_create_process):
17409         * ntproc.c (sys_spawnve):
17410         * sound.c (Fplay_sound_file):
17411         * sound.c (Fplay_sound):
17412         * buffer.c (init_initial_directory):
17413         * buffer.c (init_buffer):
17414         * editfns.c (init_editfns):
17415         * editfns.c (Ftemp_directory):
17416         * editfns.c (Fuser_full_name):
17417         * editfns.c (uncache_home_directory):
17418         * editfns.c (get_home_directory):
17419         * editfns.c (Fuser_home_directory):
17420         * editfns.c (Fformat_time_string):
17421         * editfns.c (Fcurrent_time_string):
17422         * gui-x.c (button_item_to_widget_value):
17423         * database.c (Fopen_database):
17424         * event-Xt.c (x_to_emacs_keysym):
17425         * event-Xt.c (x_event_to_emacs_event):
17426         * event-Xt.c (describe_event_window):
17427         * event-msw.c (mswindows_wnd_proc):
17428         * glyphs-eimage.c (jpeg_instantiate):
17429         * glyphs-eimage.c (gif_instantiate):
17430         * glyphs-eimage.c (png_instantiate):
17431         * glyphs-eimage.c (tiff_instantiate):
17432         * glyphs-x.c (xbm_instantiate_1):
17433         * glyphs-x.c (x_xbm_instantiate):
17434         * glyphs-x.c (x_xface_instantiate):
17435         * glyphs-x.c (autodetect_instantiate):
17436         * glyphs-x.c (cursor_font_instantiate):
17437         * glyphs-x.c (x_widget_instantiate):
17438         * glyphs-x.c (x_widget_set_property):
17439         * glyphs-x.c (x_widget_property):
17440         * glyphs-x.c (BUILD_GLYPH_INST):
17441         * print.c (write_string_to_stdio_stream):
17442         * print.c (output_string):
17443         * print.c (Falternate_debugging_output):
17444         * print.c (Fexternal_debugging_output):
17445         * glyphs-msw.c (extract_xpm_color_names):
17446         * glyphs-msw.c (mswindows_xpm_instantiate):
17447         * glyphs-msw.c (bmp_instantiate):
17448         * glyphs-msw.c (resource_name_to_resource):
17449         * glyphs-msw.c (mswindows_resource_instantiate):
17450         * glyphs-msw.c (xbm_instantiate_1):
17451         * glyphs-msw.c (mswindows_xbm_instantiate):
17452         * glyphs-msw.c (mswindows_xface_instantiate):
17453         * glyphs-msw.c (mswindows_widget_instantiate):
17454         * glyphs-msw.c (add_tree_item):
17455         * glyphs-msw.c (add_tab_item):
17456         * glyphs-msw.c (mswindows_combo_box_instantiate):
17457         * glyphs-msw.c (mswindows_widget_property):
17458         * glyphs-msw.c (mswindows_combo_box_property):
17459         * glyphs-msw.c (mswindows_widget_set_property):
17460         * console.c (stuff_buffered_input):
17461         * objects-msw.c (mswindows_initialize_color_instance):
17462         * objects-msw.c (mswindows_valid_color_name_p):
17463         * objects-msw.c (mswindows_list_fonts):
17464         * objects-msw.c (mswindows_font_instance_truename):
17465         * bytecode.c (optimize_compiled_function):
17466         * select-x.c (symbol_to_x_atom):
17467         * select-x.c (x_atom_to_symbol):
17468         * select-x.c (hack_motif_clipboard_selection):
17469         * select-x.c (selection_data_to_lisp_data):
17470         * select-x.c (lisp_data_to_selection_data):
17471         * select-x.c (Fx_get_cutbuffer_internal):
17472         * select-x.c (Fx_store_cutbuffer_internal):
17473         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17474         * buffer.h (TO_INTERNAL_FORMAT): New function.
17475         * emacs.c (make_arg_list_1):
17476         * emacs.c (make_argc_argv):
17477         * emacs.c (main_1):
17478         * emacs.c (Fdump_emacs):
17479         * emacs.c (split_string_by_emchar_1):
17480         * file-coding.h:
17481         * lisp.h:
17482         * lstream.h:
17483         * symsinit.h:
17484         * device-x.c (x_init_device):
17485         * device-x.c (Fx_valid_keysym_name_p):
17486         * device-x.c (Fx_get_font_path):
17487         * device-x.c (Fx_set_font_path):
17488         * glyphs.c (bitmap_to_lisp_data):
17489         * glyphs.c (pixmap_to_lisp_data):
17490         * alloc.c (make_ext_string): Use coding system arguments.  Update
17491         all callers.
17492         * alloc.c (build_string):
17493         * callproc.c (child_setup):
17494         * callproc.c (init_callproc):
17495         * fileio.c (lisp_strerror):
17496         * fileio.c (directory_file_name):
17497         * fileio.c (Fexpand_file_name):
17498         * fileio.c (Ffile_truename):
17499         * fileio.c (Fsysnetunam):
17500         * fileio.c (Fdo_auto_save):
17501         * sysdep.c (sys_readdir):
17502         * tests.c: New file.  Allow adding C tests.
17503         Replace GET_* macros with a more comprehensible and flexible
17504         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17505         Modify all calls.
17506         Any coding system can be used to do format conversion.
17507         Eliminate enum external_data_format.
17508         Eliminate convert_to_external_format.
17509         Eliminate convert_to_internal_format.
17510         Make sure file-name, keyboard, terminal, and ctext are always
17511         defined as coding systems or aliases.  Make
17512         file-name-coding-system, terminal-coding-system, and
17513         keyboard-coding-system magical variables that are equivalent to
17514         defining the corresponding coding system aliases.
17515
17516         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17517         * file-coding.c (Fcoding_system_alias_p): New function.
17518         * file-coding.c (Fcoding_system_aliasee): New function.
17519         * file-coding.c (append_suffix_to_symbol): New function.
17520         * file-coding.c (dangling_coding_system_alias_p): New function.
17521         * file-coding.c (Ffind_coding_system):
17522         * file-coding.c (Fcopy_coding_system):
17523         * file-coding.c (encode_coding_no_conversion):
17524         * file-coding.c (syms_of_file_coding):
17525         * file-coding.c (vars_of_file_coding):
17526         Rewrite coding system alias code.
17527         Allow nested aliases, like symbolic links.
17528         Allow redefinition of coding system aliases.
17529         Prevent existence of dangling coding system aliases.
17530
17531         * dired.c (Fuser_name_completion_1):
17532         * dired.c (Fuser_name_all_completions):
17533         A crash would happen if user did QUIT in the middle of building
17534         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17535
17536         * lisp.h:
17537         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17538
17539         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17540         an unsigned char *.  Update all callers.
17541
17542 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17543
17544         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17545
17546 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17547
17548         * elhash.c (hentry_description): Use more portable definition.
17549         (resize_hash_table): Initialize new hentries using
17550         xnew_array_and_zero, thereby simplifying the code.
17551
17552         * mule-charset.c (make_charset): Make sure entire object is
17553         initialized, to avoid Purify warnings.
17554
17555         * alloc.c (resize_string): Fix unlikely crash with big strings.
17556
17557 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17558
17559         * realpath.c (xrealpath):
17560         Don't call getwd().
17561
17562 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17563
17564         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17565
17566 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17567
17568         * unexelfsgi.c (unexec): Change the way we decide which segment
17569         should be extended.
17570
17571         Assumption that .bss section should be outside the PT_LOADable
17572         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17573         it's present) is inside the 'data' segment. This would fail the
17574         test which was used to find a segment to grow and cover new
17575         heap. Instead of this assumption, I created another one - on IRIX
17576         the segment to grow should start below .bss and it's address
17577         should extent above the end of .bss. Once this segment is
17578         identified, it's grown to accommodate the new heap and new
17579         zero-length .bss section is added at the end of .data2.
17580
17581 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17582
17583         * eval.c (Feval): Wrong number of arguments should use original
17584         function, not the indirect_function version of it.
17585
17586 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17587
17588         * glyphs-x.c (x_button_instantiate): Don't add image if
17589         it is not a pixmap.
17590         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17591         is relative.
17592
17593 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17594
17595         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17596         declaration.
17597         (DEFVAR_INT_MAGIC): Ditto.
17598         (DEFVAR_BOOL_MAGIC): Ditto.
17599         * glyphs.h: Reindent backslash.
17600
17601 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17602
17603         * glyphs-widget.c (layout_query_geometry):
17604         (layout_layout): Use correct types for gheight, gwidth.
17605
17606 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17607
17608         * EmacsManager.c (QueryGeometry): Purified.
17609
17610 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17611
17612         * alloc.c (make_float): Make sure entire object is initialized, to
17613         avoid Purify warnings.
17614         (pdump_register_sub): Remove useless assignment.
17615         (pdump): Use xmalloc, not malloc.
17616         (pdump_load): Use xmalloc, not malloc.
17617
17618 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17619
17620         * callproc.c:
17621         * dired-msw.c:
17622         * fileio.c:
17623         * process-nt.c:
17624         * redisplay-msw.c:
17625         * sysdep.c: Removed redundant #include <windows.h>
17626
17627 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17628
17629         * frame.c (delete_frame_internal): Do not delete device when its
17630         implementation so declares.
17631         (delete_frame_internal): Set device selected frame to nil when
17632         last frame goes away.
17633
17634         * device-msw.c (msprinter_device_system_metrics): Implemented.
17635         (mswindows_device_system_metrics): Added 'device-dpi property.
17636
17637         * device.c: (Fdevice_printer_p): Added.
17638         Added 'offset-workspace device metric.
17639
17640         * console.h (device_metrics): Declared DM_offset_workspace.
17641
17642 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17643
17644         * fileio.c (Ffile_truename): Remove pointless and confusing
17645         initialization of elen.
17646
17647         * glyphs-widget.c: Compiler warning fixes.
17648
17649 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17650
17651         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17652         instead of a Lisp_Object as argument to make it consistent with
17653         the other LIVE_P macros.
17654         (CHECK_LIVE_PROCESS): New macro.
17655
17656         * process.c: Declare Qprocess_live_p.
17657         (Fprocess_live_p): New function.
17658         (create_process): Use PROCESS_LIVE_P.
17659         (read_process_output): Ditto.
17660         (set_process_filter): Ditto.
17661         (Fdelete_process): Ditto.
17662         (kill_buffer_processes): Ditto
17663         (process_send_signal): Use CHECK_LIVE_PROCESS.
17664         (Fprocess_input_coding_system): Check whether process is still
17665         alive (fix PR#1061).
17666         (Fprocess_output_coding_system): Ditto.
17667         (Fprocess_coding_system): Ditto.
17668         (Fset_process_input_coding_system): Ditto.
17669         (Fset_process_output_coding_system): Ditto.
17670
17671 2000-01-23  Andy Piper  <andy@xemacs.org>
17672
17673         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17674         layout and widget.
17675
17676         * glyphs.c (mark_image_instance): take into account changed
17677         image_instance format.
17678         (image_instance_equal): ditto.
17679         (image_instance_hash): ditto.
17680
17681         * glyphs-widget.c (widget_instantiate): Incorporate layout
17682         instantiation here. Delay layout of the layout until later.
17683         (layout_instantiate): deleted.
17684         (layout_query_geometry): new function. get the geometry of a
17685         layout.
17686         (layout_layout): layout a layout dynamically.
17687         (image_instantiator_widget): New function - splitting up
17688         image_instantiator_format_create_glyphs_widget for netwinder
17689         compilation.
17690         (image_instantiator_buttons):
17691         (image_instantiator_edit_fields):
17692         (image_instantiator_combo_box):
17693         (image_instantiator_scrollbar):
17694         (image_instantiator_progress_guage):
17695         (image_instantiator_tree_view):
17696         (image_instantiator_tab_control):
17697         (image_instantiator_labels):
17698         (image_instantiator_layout): ditto.
17699         (image_instantiator_format_create_glyphs_widget): Call preceding
17700         functions.
17701
17702 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17703
17704         * process.c (Fset_process_coding_system):
17705         * device-x.c (Fx_keysym_hash_table):
17706         Docstring fixes.
17707
17708         * lstream.c (Lstream_write): Return documented value, not 0.
17709
17710         * fileio.c (directory_file_name):
17711         (Fsubstitute_in_file_name):
17712         (Fsubstitute_insert_file_contents_internal):
17713         (Fwrite_region_internal):
17714         * emacs.c:
17715         * sysdep.c:
17716         * getloadavg.c:
17717         * systty.h:
17718         Remove vestigial APOLLO-conditional code.
17719
17720 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17721
17722         * getpagesize.h: Add guard macros.
17723         * libsst.h: Add guard macros.
17724         * libst.h: Add guard macros.
17725         * line-number.h: Add guard macros.
17726         * ndir.h: Add guard macros.
17727         * sysfloat.h: Add guard macros.
17728         * sysfile.h: Add guard macros.
17729         * sysproc.h: Add guard macros.
17730         * syswait.h: Add guard macros.
17731         * xintrinsic.h: Add guard macros.
17732         * xintrinsicp.h: Add guard macros.
17733         * xmmanager.h: Add guard macros.
17734         * xmmanagerp.h: Add guard macros.
17735         * xmprimitive.h: Add guard macros.
17736         * xmu.h: Add guard macros.
17737         * gpmevent.h: Add copyright statement. Add guard macros.
17738         * miscplay.h: Add guard macros.
17739         * *.h: Use consistent C-standards-approved guard macro names.
17740
17741         * opaque.c (make_opaque): Switch parameter order.
17742         * opaque.h (make_opaque): Switch parameter order.
17743         Update all callers.
17744         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17745
17746         * config.h.in (type_checking_assert): Added.
17747         (bufpos_checking_assert): Added.
17748
17749 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17750
17751         * alloc.c: Harmless pdump changes.
17752         - Use countof().
17753         - spell alignment correctly.
17754         * sysdep.c: Use countof()
17755
17756 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17757
17758         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17759         initially_selected_for_input() console method, default to 0.
17760         (semi_canonicalize_console_connection): Try to delegate to
17761         canonicalize_console_connection if no such console method.
17762         (canonicalize_console_connection): Vice versa.
17763         (print_console): Do not print nil connection.
17764
17765         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17766         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17767         (XDEVIMPF_FRAMELESS_OK): Added.
17768         (CONSOLE_INHERITS_METHOD): Added.
17769
17770         * console-msw.c (mswindows_canonicalize_console_connection):
17771         Added.
17772         (mswindows_canonicalize_device_connection): Added.
17773
17774         * console-msw.h (struct msprinter_device): Added this struct and
17775         accessor macros.
17776         (mswindows_device): Made fontlist a lisp object.
17777
17778         * device.c (semi_canonicalize_device_connection):  Try to delegate
17779         to canonicalize_device_connection if no such console method.
17780         (canonicalize_device_connection): Vice versa.
17781         (print_device): Do not print nil connection.
17782
17783         * device-msw.c (mswindows_init_device): Call InitCommonControls
17784         when have widgets.
17785         (mswindows_delete_device): Removed fontlist deallocation.
17786         (mswindows_mark_device): Added.
17787
17788         * events.c (event_equal): Added abort() at unreached code.
17789         (event_hash): Ditto.
17790
17791         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17792         fallback tags of Windows devices.
17793
17794         * general.c (syms_of_general): Initialized Qmsprinter.
17795
17796         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17797         of fallback tags of Windows devices.
17798
17799         * lisp.h: Declared Qmsprinter.
17800
17801         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17802         of strings.
17803         (mswindows_list_fonts): Ditto.
17804         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17805         that it can be used by both mswindows and msprinter devices.
17806         (initialize_font_instance): Added.
17807         (mswindows_initialize_font_instance): Use it.
17808         (msprinter_initialize_font_instance): Added.
17809
17810         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17811         and implementation flags check.
17812         (redisplay_without_hooks): Changed the call to the above.
17813         (Fredraw_device): Ditto.
17814         (Fredisplay_device): Ditto.
17815
17816         * redisplay-msw.c (get_frame_dc): Implemented.
17817         (get_frame_compdc): Implemented.
17818         (many functions): Use the two functions above to get device
17819         contexts, ether for a window or a printer.
17820
17821 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17822
17823         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17824         initialization here.
17825         (init_symbols_once_early): Call it.
17826         * emacs.c (main_1): Call it.
17827         * symsinit.h: Declare it.
17828
17829 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17830
17831         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17832         Lisp_Object.
17833         (pdump_backtrace): Ditto.
17834         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17835         (pdump_get_entry): Abort if trying to register a null pointer.
17836         (pdump_dump_data): Cleanup types when relocating.
17837         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17838         (pdump_dump_rtables): Remove bad casts.
17839         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17840         Lisp_Object instead of a EMACS_INT for the hashtable
17841         reorganization.
17842
17843 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17844
17845         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17846
17847         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17848
17849         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17850
17851         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17852
17853 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17854
17855         * faces.h (FACE_STRIKETHRU_P): Added.
17856
17857         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17858         of font variants.
17859
17860         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17861         (mswindows_set_dc_font): New function, aware of font variants,
17862         separated from mswindows_update_dc.
17863
17864         * objects-msw.h (struct mswindows_font_instance_data): Added
17865         definition.
17866
17867         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17868         cached fonts and the data structure.
17869         (mswindows_initialize_font_instance): Added creation of font data
17870         structure.
17871         (mswindows_print_font_instance): Print at least something.
17872         (mswindows_create_font_variant): Implemented.
17873         (mswindows_get_hfont): Implemented.
17874
17875 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17876
17877         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17878         prototyping problem with msvc.
17879
17880         * emacs.c (main_1): added syms_of_gui_mswindows() call
17881
17882         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17883         syms_of_gui_mswindows() function
17884
17885         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17886
17887 2000-01-18  Martin Buchholz <martin@xemacs.org>
17888
17889         * XEmacs 21.2.27 is released.
17890
17891 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17892
17893         * glyphs-eimage.c (struct tiff_error_struct):
17894         (tiff_error_func):
17895         (tiff_warning_func):
17896         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17897
17898         * unexmips.c:
17899         * unexhp9k3.c:
17900         * unexfreebsd.c:
17901         * unexec.c: Remove vestigial Lucid C code.
17902         * unexalpha.c:
17903         * unexaix.c:
17904         * termcap.c:
17905         * libsst.c: Ansify.
17906         Remove declarations of errno and strerror().
17907
17908         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17909
17910         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17911
17912 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17913
17914         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17915         Optimize.
17916
17917 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17918
17919         * md5.c:
17920         * file-coding.c:
17921         * file-coding.h:
17922         Change enum eol_type to eol_type_t.
17923
17924 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17925
17926         * gui.c (get_gui_callback): Check cons before accessing car.
17927
17928 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17929
17930         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17931         (XSETSPECIFIER_TYPE): Ditto.
17932
17933 2000-01-17  Didier Verna  <didier@xemacs.org>
17934
17935         * redisplay.c (generate_fstring_runes): compute string size in
17936         characters, not bytes.
17937
17938 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17939
17940         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17941
17942 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17943
17944         * print.c (print_error_message): Call print_prepare().
17945
17946 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17947
17948         * .dbxrc: Renamed from dbxrc.
17949
17950         * events.c (event_to_character):
17951         Use `assert (foo)' instead of `if (!foo) abort()'
17952
17953         * .gdbinit (xtype): Add documentation.
17954         * .gdbinit (check-temacs): New function.
17955         * .gdbinit (check-xemacs): New function.
17956         * dbxrc (check-xemacs): New function.
17957         * dbxrc (check-xemacs): New function.
17958
17959 2000-01-14  Andy Piper  <andy@xemacs.org>
17960
17961         * glyphs-widget.c (widget_query_geometry): Make sure that we
17962         calculate default dimensions correctly.
17963
17964 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17965
17966         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17967
17968         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17969         pdump_wire'd variable.
17970
17971         * emacs.c: (main_1): Conditionalized calls to
17972         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17973
17974 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17975
17976         * window.c (Fset_window_configuration):
17977         * sysdep.c (_start):
17978         * input-method-motif.c (res):
17979         * event-Xt.c (Xt_process_to_emacs_event):
17980         Simple compiler warning fixes.
17981
17982         * bytecode.c (funcall_compiled_function): Use the original
17983         function symbol on the backtrace list in preference to the
17984         compiled_function object in error messages.
17985
17986 2000-01-13  Andy Piper  <andy@xemacs.org>
17987
17988         * glyphs-x.c (update_widget_face): Make sure we update the widget
17989         background as well as foreground.
17990
17991 2000-01-13  Andy Piper  <andy@xemacs.org>
17992
17993         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17994         fields to subwindow.
17995         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17996         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17997         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17998         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17999
18000         * glyphs-widget.c (check_valid_tab_orientation): new function.
18001         (initialize_widget_image_instance): zero orientation and
18002         justification.
18003         (widget_instantiate): pick up orientation.
18004         (tab_control_query_geometry): return appropriate values for
18005         vertical tabs.
18006
18007         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
18008         appropriate creation flags for left, right and bottom tabs.
18009
18010         * s/cygwin32.h: add tab definitions.
18011
18012 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18013
18014         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
18015         frame upon hiding a subwindow.
18016         (mswindows_button_instantiate): Changed the push button style to
18017         BS_PUSHBUTTON.
18018         (mswindows_button_instantiate): Removed button BS_NOTIFY
18019         style.
18020         (mswindows_button_instantiate): Removed redundant check for
18021         a disabled gui item.
18022         (mswindows_button_instantiate): Made use of WS_TABSTOP
18023         consistent: "operable" controls (edit, button, tree, scroll) have
18024         this style, "display-only" ones (static, progress gauge) do
18025         not. This style is currently ignored by XEmacs though. Also,
18026         removed the WS_EX_CONTROLPARENT style - it is not for children,
18027         it is for their parents!
18028         (mswindows_edit_field_instantiate): Ditto.
18029         (mswindows_progress_gauge_instantiate): Ditto.
18030         (mswindows_tree_view_instantiate): Ditto.
18031         (mswindows_tab_control_instantiate): Ditto.
18032         (mswindows_scrollbar_instantiate): Ditto.
18033         (mswindows_combo_box_instantiate): Ditto.
18034         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
18035         style to the "clip" window.
18036         (mswindows_button_instantiate): Removed compilation warning by
18037         equally typing terms of the ?: operator.
18038
18039 2000-01-12  Didier Verna  <didier@xemacs.org>
18040
18041         * redisplay.c (generate_fstring_runes): new parameter holding the
18042         last modeline-format extent.
18043         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
18044         extent, fill the glyph block with it.
18045         (generate_fstring_runes): handle these parameters.
18046         (generate_formatted_string_db): ditto.
18047
18048         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
18049         glyphs'extents in the modeline.
18050
18051 1999-01-11  Mike Woolley  <mike@bulsara.com>
18052
18053         * ntheap.c: Reduced the reserved heap space from 1Gb down to
18054         256Mb, as a workaround for the non-starting problem many people
18055         have experienced.
18056
18057 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18058
18059         * console-tty.c (Fset_console_tty_output_coding_system):
18060         Force redrawing tty frame.
18061
18062 2000-01-10  Didier Verna  <didier@xemacs.org>
18063
18064         * redisplay.c (generate_fstring_runes): fix size computation bug.
18065
18066 2000-01-09  William M. Perry <wmperry@aventail.com>
18067
18068         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
18069
18070 2000-01-09  Andy Piper  <andy@xemacs.org>
18071
18072         * glyphs-msw.c: index -> i to avoid shadows.
18073         (xbm_create_bitmap_from_data): make static.
18074         (check_valid_string_or_int): deleted.
18075         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
18076
18077         * glyphs-x.c (x_update_subwindow): remove unused args.
18078
18079         * glyphs.c (glyph_image_instance): return the thing. Don't set the
18080         back pointer - this is done in allocate_image_instance.
18081         (query_string_font): return Qnil to make the compiler happy.
18082         (unmap_subwindow): set to ~0 to make the compiler happy.
18083         (glyph_query_geometry): comment out until used.
18084         (glyph_layout): ditto.
18085
18086 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18087
18088         * insdel.c (signal_after_change): Remove extraneous unbind_to().