Sync up with r21-4-22-chise-0_25-2.
[chise/xemacs-chise.git] / src / ChangeLog
1 2010-09-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * concord.c: Include <chise.h> if HAVE_LIBCHISE is defined.
4         (Qcharacter): New variable when HAVE_LIBCHISE is defined.
5         (Qfeature): Ditto.
6         (Fconcord_object_genre): New function.
7         (syms_of_concord):
8         - Add new builtin symbols `character' and `feature' when
9           HAVE_LIBCHISE is defined.
10         - Add Add new builtin function `concord-object-genre'.  
11         (complex_vars_of_concord): New function; assign genres `character'
12         and `feature' when HAVE_LIBCHISE is defined.
13
14 2010-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
15
16         * emacs.c (main_1): Call `complex_vars_of_concord' when
17         HAVE_CONCORD is defined.
18
19         * symsinit.h (complex_vars_of_concord): New prototype.
20
21 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
22
23         * chartab.c (allocate_character): Add `static'.
24
25 2010-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
26
27         * chartab.c (allocate_character): New function.
28         (Fdefine_char): Use allocate_character().
29
30 2010-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
31
32         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.25
33         (Ōkawara).
34
35 2010-03-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
36
37         * chartab.c (save_uint8_byte_table): Fixed problem when a property
38         is unloaded.
39         (save_uint16_byte_table): Likewise.
40
41 2010-02-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
42
43         * chartab.c (Fchar_feature_property): New function when LIBCHISE
44         is enabled.
45         (Fput_char_feature_property): Likewise.
46         (syms_of_chartab): Add new builtin functions
47         `char-feature-property' and `put-char-feature-property' when
48         LIBCHISE is enabled.
49
50 2009-04-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * mule-charset.c (Fmake_charset): Add DOC-string of 'iso-ir and
53         '=>iso-ir.
54         (Fcharset_property): Regard '=>iso-ir as same as `iso_ir.
55
56 2009-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
57
58         * mule-charset.c (Qto_iso_ir): New variable for XEmacs CHISE.
59         (make_charset): Add new argument `iso_ir'.
60         (Fmake_charset): Add new property `=>iso-ir' in XEmacs CHISE.
61         (Fmake_reverse_direction_charset): Copy CHARSET_ISO_IR(cs) in
62         XEmacs CHISE.
63         (Fcharset_property): Support `iso-ir' in XEmacs CHISE.
64         (syms_of_mule_charset): Add new builtin symbol `=>iso-ir' in
65         XEmacs CHISE.
66         (complex_vars_of_mule_charset): Specify argument `iso_ir' of
67         function `make_charset'.
68
69         * char-ucs.h (LEADING_BYTE_*): Enclose negative value with ( ).
70         (struct Lisp_Charset): Add new member `iso_ir'.
71         (CHARSET_ISO_IR): New macro.
72
73 2009-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
74
75         * mule-charset.c (Fdecode_char): Fix problem when decoding GR
76         code-point by GL charset.
77
78 2008-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
79
80         * concord.c (concord_id_validate): New function.
81         (structure_type_create_concord): Use `concord_id_validate' instead
82         of `concord_name_validate' to accept integer and character as =id.
83
84 2008-09-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
85
86         * concord.c (func_for_each_object): Fix bug about GC-protection.
87
88 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
89
90         * concord.c (Fconcord_object_put): Check argument FEATURE is a
91         symbol.
92
93 2008-09-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
94
95         * text-coding.c (struct decoding_stream): Add new member
96         `bom_flag' in XEmacs CHISE.
97         (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
98         in XEmacs CHISE.
99
100 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
101
102         * mule-charset.c: Move definition of `=jis-x0208@1978' to
103         lisp/mule/mule-conf.el.
104
105 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
106
107         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
108         (make_charset): Add new argument `partial'.
109         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
110         (Fmake_reverse_direction_charset): Modify for `make_charset'.
111         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
112         CHISE.
113         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
114         `=jis-x0208' as a partial coded-charset.
115
116 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
117
118         * text-coding.c (decode_add_er_char): Fix problem when a character
119         represented by an entity-reference is not defined.
120
121 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
122
123         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
124         Qrep_*.
125
126 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
127
128         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
129         (Kasagi).
130
131 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
132
133         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
134         is a relation feature.
135
136 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
137
138         * chartab.c (syms_of_chartab): Define
139         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
140
141         * chartab.h (Q_denotational): New extern when UTF2000 or
142         HAVE_CONCORD is defined.
143         (Q_denotational_from): Likewise.
144         (Q_subsumptive): Likewise.
145         (Q_subsumptive_from): Likewise.
146
147 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
148
149         * concord.c (concord_object_put): New function.
150         (Fconcord_object_put): Use `concord_object_put'.
151
152 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
153
154         * concord.c (Fconcord_define_object): New function.
155         (syms_of_concord): Add new builtin function
156         `concord-define-object'.
157
158 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
159
160         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
161         (Kamo).
162
163 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
164
165         * concord.c: Add EXFUN for Fconcord_object_get.
166         (Vconcord_genre_object_hash_table): New variable.
167         (concord_genre_cache_get_object): New function.
168         (concord_genre_cache_put_object): New function.
169         (Fconcord_make_object): Use object cache; put object-ID into `=id'
170         feature.
171         (Fconcord_object_put): Call `concord_index_sync' after
172         `concord_index_strid_put_obj'.
173         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
174
175 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
176
177         * concord.c (Fconcord_decode_object): Do GCPRO for
178         Fconcord_make_object.
179         (func_for_each_object): Likewise; do GCPRO for
180         for_each_object_closure->function.
181         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
182         for_each_object_closure->function, for_each_object_closure->genre,
183         for_each_object_closure->ds and for_each_object_closure->ret.
184         (concord_object_validate): Do GCPRO for Fconcord_make_object.
185
186 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
187
188         * concord.c: Add EXFUNs for Fconcord_decode_object and
189         Fconcord_object_put.
190         (Fconcord_make_object): Change order of arguments.
191         (Fconcord_decode_object): Modify for Fconcord_make_object.
192         (func_for_each_object): Likewise.
193         (concord_object_validate): Likewise.
194         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
195
196 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
197
198         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
199
200 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
201
202         * concord.c (Fconcord_decode_object): Try to use readable print
203         form as a key of Concord-index.
204         (Fconcord_object_get): Try to use readable print form as an ID of
205         Concord-object.
206         (Fconcord_object_put): Try to use readable print form as an ID of
207         Concord-object and a feature value.
208         (Fconcord_object_spec): Try to use readable print form as an ID of
209         Concord-object.
210
211 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
212
213         * concord.c (print_concord_object): Support readable form.
214
215 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
216
217         * emacs.c (main_1): Call `structure_type_create_concord' when
218         HAVE_CONCORD is defined.
219
220         * symsinit.h (structure_type_create_concord): New prototype.
221
222         * concord.c (Qconcord_object): New variable.
223         (Qgenre): Likewise.
224         (Q_id): Likewise.
225         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
226         for directory.
227         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
228         char*> for genre-name.
229         (Fconcord_feature_list): Likewise.
230         (Fconcord_make_object): Likewise.
231         (Fconcord_decode_object): Likewise; use <char*> instead of
232         <unsigned char*> for feature_name and strid.
233         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
234         c_obj and feature_name.
235         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
236         char*> for c_value.
237         (struct closure_for_object_spec): Use <char*> instead of <unsigned
238         char*> for member `object_id'.
239         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
240         char*> for feature-name.
241         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
242         for c_obj.
243         (func_for_each_object): Cast to avoid warnings.
244         (Fconcord_foreach_object_in_feature): Use <char*> instead of
245         <unsigned char*> for genre_name and feature_name.
246         (concord_name_validate): New function.
247         (concord_object_validate): Likewise.
248         (concord_object_instantiate): Likewise.
249         (syms_of_concord): Add new builtin symbols `concord-object',
250         `genre' and `=id'.
251         (structure_type_create_concord): New function.
252
253 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
254
255         * concord.c (Vconcord_ds_hash_table): New variable.
256         (Vconcord_genre_hash_table): New variable.
257         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
258         (Fconcord_ds_directory): New function.
259         (Fconcord_assign_genre): New function.
260         (Fconcord_genre_directory): New function.
261         (Fconcord_genre_ds): New function.
262         (Fconcord_feature_list): Allow to omit `ds'.
263         (Fconcord_make_object): Likewise.
264         (Fconcord_decode_object): Likewise.
265         (Fconcord_foreach_object_in_feature): Likewise.
266         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
267         Fconcord_assign_genre, Fconcord_genre_directory and
268         Fconcord_genre_ds.
269         (vars_of_concord): Setup Vconcord_ds_hash_table and
270         Vconcord_genre_hash_table.
271
272 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
273
274         * concord.c (struct closure_for_each_object): Add new member
275         `ret'.
276         (func_for_each_object): Setup the return value to
277         `for_each_object_closure->ret'.
278         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
279         returns the value instead of Qt.
280
281 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
282
283         * concord.c: New file.
284
285 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
286
287         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
288         `lrecord_type_concord_object'.
289
290 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
291
292         * symsinit.h (syms_of_concord): New prototype.
293         (vars_of_concord): New prototype.
294
295         * emacs.c (main_1): Setup symbols and variable about concord if
296         HAVE_CONCORD is defined.
297
298         * config.h.in (HAVE_CONCORD): New macro.
299
300 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
301
302         * chartab.c (Fput_char_attribute): For each character relation
303         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
304
305 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
306
307         * chartab.c (Fput_char_attribute): Use
308         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
309         calling `put_char_composition'.
310
311 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
312
313         * chartab.c (Q_halfwidth_of): New variable.
314         (put_char_composition): Return `<-halfwidth' instead of
315         `=decomposition' for compatibility mapping to single character
316         tagged `narrow'.
317         (Fput_char_attribute): Convert char-specs in value of
318         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
319         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
320         for `<-halfwidth'.
321         (syms_of_chartab): Add new symbol `<-halfwidth'.
322
323 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
324
325         * chartab.c (put_char_composition): Return
326         `<-formed@{isolated|initial|medial|final}' for compatibility
327         mapping to single character tagged
328         `{isolated|initial|medial|final}'.
329
330 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
331
332         * chartab.c (Q_compat_of): Deleted.
333         (put_char_composition): Return `<-FOO' for compatibility mapping
334         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
335         of `symbol_name (XSYMBOL(...))'.
336         (Fput_char_attribute): Convert char-specs in value of
337         `{<-|->}font[^*]*' to characters and put reverse links.
338         (Fsave_char_attribute_table): Don't refer Q_compat_of.
339         (syms_of_chartab): Delete builtin symbol `<-compat'.
340
341 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * chartab.c (Q_circled_of): New variable.
344         (put_char_composition): Return `<-circled' instead of
345         `=decomposition' for compatibility mapping to single character
346         tagged `circle'.
347         (Fput_char_attribute): Convert char-specs in value of
348         `{<-|->}circled[^*]*' to characters and put reverse links.
349         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
350         for `<-circled'.
351         (syms_of_chartab): Add new symbol `<-circled'.
352
353 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
354
355         * chartab.c (Qto_decomposition_at_circled): New variable.
356         (put_char_composition): Return `=>decomposition@circled' instead
357         of `=decomposition' for compatibility decomposition mapping tagged
358         `circle'.
359         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
360
361 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
362
363         * chartab.c (Q_subscript_of): New variable.
364         (put_char_composition): Return `<-subscript' instead of
365         `=decomposition' for compatibility mapping to single character
366         tagged `sub'.
367         (Fput_char_attribute): Convert char-specs in value of
368         `{<-|->}subscript[^*]*' to characters and put reverse links.
369         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
370         for `<-subscript'.
371         (syms_of_chartab): Add new symbol `<-subscript'.
372
373 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
374
375         * chartab.c (Q_superscript_of): New variable.
376         (put_char_composition): Return `<-superscript' instead of
377         `=decomposition' for compatibility mapping to single character
378         tagged `super'.
379         (Fput_char_attribute): Convert char-specs in value of
380         `{<-|->}superscript[^*]*' to characters and put reverse links.
381         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
382         for `<-superscript'.
383         (syms_of_chartab): Add new symbol `<-superscript'.
384
385 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
386
387         * chartab.c (Qto_decomposition_at_compat): Deleted.
388         (Qto_decomposition_at_superscript): New variable.
389         (put_char_composition): Use `=>decomposition@superscript' instead
390         of `=decomposition' for compatibility decomposition mapping tagged
391         `super'.
392         (Fput_char_attribute): Fix condition about `put_char_composition'.
393         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
394         add news symbol `=>decomposition@superscript'.
395
396 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
397
398         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
399         for compatibility decomposition mapping tagged FOO.
400         (Fput_char_attribute): Modify for `put_char_composition'.
401
402 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
403
404         * chartab.c (Qto_decomposition_at_compat): New variable.
405         (Q_compat_of): Renamed from `Q_compatibility_of'.
406         (put_char_composition): Rename `Q_compatibility_of' to
407         `Q_compat_of'; return `=>decomposition@compat' for compatibility
408         decomposition mapping.
409         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
410         `Q_compat_of'.
411         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
412         `<-compatibility' to `<-compat'.
413
414 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
415
416         * chartab.c (Q_compatibility_of): New variable.
417         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
418         object is proved to be a cons cell; return `<-compatibility' if
419         the first element of argument `value' is `compat'.
420         (Fput_char_attribute): Eliminate the first value if
421         `put_char_composition' returns `<-compatibility'.
422         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
423         for `<-compatibility'.
424         (syms_of_chartab): Add new symbol `<-compatibility'.
425
426 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
427
428         * chartab.c (Q_canonical): New variable.
429         (put_char_composition): Return a feature name: return
430         `->canonical' if argument `value' specifies single character.
431         (Fput_char_attribute): Use `put_char_composition' to determine
432         feature name for `=decomposition' or `->denotational'.
433         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
434         for `->canonical'.
435         (syms_of_chartab): Add new symbol `->canonical'.
436
437 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
438
439         * chartab.c (Qmap_decomposition): New variable.
440         (Fput_char_attribute): Convert `->decomposition' to
441         `=decomposition'.
442         (syms_of_chartab): Add new symbol `=decomposition'.
443
444 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
445
446         * chartab.c (Fget_range_char_table): Fix serious problem when
447         `range' is nil.
448
449 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
450
451         * chartab.c (char_table_get_db): Use `read_from_c_string'.
452
453 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
454
455         * lread.c (read_from_c_string): New function.
456
457         * lisp.h (read_from_c_string): New prototype.
458
459 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
460
461         * chartab.c (Fput_char_attribute): Convert char-specs in value of
462         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
463         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
464         for `{<-|->}Oracle-Bones[^*]*'.
465
466 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
467
468         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
469         (Kizu).
470
471 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
472
473         * text-coding.c (Qccs_priority_list): New variable in XEmacs
474         CHISE.
475         (Fmake_coding_system): Support new property `ccs-priority-list' in
476         XEmacs CHISE.
477         (Fcoding_system_property): Likewise.
478         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
479         Vdefault_coded_charset_priority_list in XEmacs CHISE.
480         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
481         XEmacs CHISE.
482         (complex_vars_of_file_coding): Define new coding-system-property
483         `ccs-priority-list' in XEmacs CHISE.
484
485         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
486
487 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
488
489         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
490         changed to normal function.
491         (encode_char_2): Likewise.
492
493         * mule-charset.c (decoding_table_put_char): Copied from
494         char-ucs.h; changed to normal function.
495         (encode_char_2): Likewise.
496
497 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
498
499         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
500         New extern.
501         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
502         (encode_char_2_search_children): New inline function.
503         (encode_char_2): Refer
504         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
505         and use `encode_char_2_search_children'.
506
507 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
508
509         * mule-charset.c
510         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
511         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
512         (vars_of_mule_charset): Add new variable
513         `display-coded-charset-priority-use-inheritance' and
514         `display-coded-charset-priority-use-hierarchy-order'.
515
516 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
517
518         * char-ucs.h (Q_subsumptive): New extern.
519         (Q_denotational): Likewise.
520         (encode_char_2): Search children specified by `->subsumptive' and
521         `->denotational'.
522
523 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
524
525         * mule-charset.c (complex_vars_of_mule_charset): Modify the
526         X-registry of `ucs-bmp'.
527
528 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
529
530         * chartab.c (char-variants): Refer `->subsumptive',
531         `->denotational' and `->identical' as same as `->ucs-unified'.
532
533 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
534
535         * chartab.c (Fput_char_attribute): Convert char-specs in value of
536         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
537         links.
538
539 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
540
541         * text-coding.c: Add EXFUN for `Fregexp_quote'.
542         (decode_add_er_char): Fix problem about infinite loop when a CCS
543         specified in `coded-charset-entity-reference-alist' is not
544         existed.
545
546 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
547
548         * mule-charset.c (syms_of_mule_charset): Rename
549         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
550
551 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
552
553         * fns.c (simplify_char_spec): Don't allocate new character-object
554         if specified char_spec does not have any CCS-features.
555
556         * chartab.h: Add EXFUN for Fdefine_char.
557
558         * chartab.c: Delete EXFUN for Fdefine_char.
559
560 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
561
562         * fns.c (simplify_char_spec): Use Fdefine_char instead of
563         Ffind_char for char-spec.
564
565 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
566
567         * lisp-disunion.h (XCHARVAL): Fix condition about
568         SIZEOF_EMACS_INT.
569
570 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
571
572         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
573         <int> for `code'.
574         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
575         point; use <Emchar> instead of <int> for character-id.
576
577 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
578
579         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
580         (make_char): Likewise.
581         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
582         environment.
583         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
584         instead of <int> as the type of return value; use <Lisp_Object>
585         instead of <Emchar> as the type of argument.
586         (XCHARVAL[macro version]): Cast the result into <Emchar>.
587
588         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
589         syntaxcode> instead of <int>.
590
591 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
592
593         * chartab.c (put_char_composition): Use DECODE_CHAR to get
594         character corresponding with UCS code point.
595         (Fput_char_attribute): Likewise.
596
597         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
598         character in the UCS decoding-table if the char-id is not equal to
599         the UCS code point.
600
601 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
602
603         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
604         for aliases; write `description'; write
605         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
606         not 0.
607
608 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
609
610         * chartab.c (Fsave_char_attribute_table): Don't use
611         `save_charset_properties'.
612
613         * mule-charset.c (Fsave_charset_properties): Renamed from
614         `save_charset_properties' and changed to Lisp function again;
615         write property `type' as `CCS'; write properties `final-byte' and
616         `mother' if they exists.
617         (syms_of_mule_charset): Revive builtin function
618         `save-charset-properties' when HAVE_LIBCHISE is defined.
619
620 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
621
622         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
623         instead of Vexec_directory.
624         (char_attribute_system_db_file): Likewise.
625
626 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
627
628         * chartab.c (Fsave_char_attribute_table): Use
629         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
630         defined.
631
632         * mule-charset.c (save_charset_properties): Renamed from
633         `Fsave_charset_properties'; changed to non-Lisp function.
634         (syms_of_mule_charset): Abolish builtin function
635         `save-charset-properties'.
636
637 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
638
639         * mule-charset.c (Fsave_charset_properties): New function when
640         HAVE_LIBCHISE is defined.
641         (syms_of_mule_charset): Add new builtin function
642         `save-charset-properties' when HAVE_LIBCHISE is defined.
643
644 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
645
646         * chartab.c (Fput_char_attribute): Convert char-specs in value of
647         `{<-|->}ancient[^*]*' to characters and put reverse links.
648         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
649         for `{<-|->}ancient[^*]*'.
650
651 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
652
653         * chartab.c (Fput_char_attribute): Convert char-specs in value of
654         `{<-|->}original[^*]*' to characters and put reverse links.
655         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
656         for `{<-|->}original[^*]*'.
657
658 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
659
660         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
661
662 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
663
664         * mule-charset.c (Qsystem_char_id): New variable.
665
666         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
667         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
668
669 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
670
671         * chartab.c (Fput_char_attribute): When processing a reference of
672         a character, put into the end of the reversed reference of each
673         target character.
674
675 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
676
677         * chartab.c (Q_same): Deleted.
678         (Q_same_of): Deleted.
679         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
680         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
681         for `{<-|->}same'.
682         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
683
684 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
685
686         * chartab.c (Q_vulgar): Deleted.
687         (Q_vulgar_of): Deleted.
688         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
689         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
690         for `{<-|->}vulgar'.
691         (syms_of_chartab): Don't define `{<-|->}vulgar'.
692
693 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
694
695         * chartab.c (Fput_char_attribute): Convert char-specs in value of
696         `{<-|->}wrong[^*]*' to characters and put reverse links.
697         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
698         for `{<-|->}wrong[^*]*'.
699
700 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
701
702         * chartab.c (Q_vulgar): New variable.
703         (Q_vulgar_of): New variable.
704         (Fput_char_attribute): Convert char-specs in value of
705         `{->|<-}vulgar' to characters and put reverse links.
706         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
707         for `{->|<-}vulgar'.
708         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
709
710 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
711
712         * text-coding.c (decode_add_er_char): Must to quote prefix string
713         as regexp.
714
715 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
716
717         * mule-charset.c (put_char_ccs_code_point): Store characters of
718         =ucs whose code_points >= 0xF0000.
719
720 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
721
722         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
723         CHISE.
724         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
725         CHISE.
726         (complex_vars_of_mule_charset): Add new coded-charset
727         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
728         builtin characters over 0xEFFFF.
729
730         * chartab.c (syms_of_chartab): Don't define symbol
731         `system-char-id' in every case.
732
733         * char-ucs.h (Qsystem_char_id): New extern variable.
734         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
735
736 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
737
738         * text-coding.c (char_encode_utf8): Try to use entity-references
739         for U-000F0000 ...  U-0010FFFF.
740
741 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
742
743         * text-coding.c (ER_BUF_SIZE): New macro.
744         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
745         `er_buf'.
746         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
747         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
748
749 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
750
751         * chartab.c (find_char_feature_in_family): New function.
752         (Fchar_feature): Use `find_char_feature_in_family' with
753         `->identical', `<-subsumptive' and `<-denotational'.
754
755 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
756
757         * text-coding.c (char_encode_as_entity_reference): Allow prefix
758         within 8 characters; fix infinite loop.
759
760 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
761
762         * chartab.c (Q_same): New variable.
763         (Q_same_of): New variable.
764         (Fput_char_attribute): Convert char-specs in value of
765         `{->|<-}same' to characters and put reverse links.
766         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
767         for `{->|<-}same'.
768         (syms_of_chartab): Add new symbols `{->|<-}same'.
769
770 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
771
772         * chartab.c (Q_component): New variable.
773         (Q_component_of): Likewise.
774         (Fput_char_attribute): Convert char-specs in value of
775         `{->|<-}ideographic-component-forms' to characters and put reverse
776         links.
777         (syms_of_chartab): Add new symbols
778         `{->|<-}ideographic-component-forms'.
779
780 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
781
782         * chartab.c (Q_identical): New variable.
783         (Q_identical_from): New variable.
784         (Fchar_feature): Regard `->identical' as a feature to find
785         ancestors.
786         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
787         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
788         for `{->|<-}identical'.
789         (syms_of_chartab): Add new symbols `{->|<-}identical'.
790
791 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
792
793         * char-ucs.h (encode_char_2): New inline function.
794         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
795
796 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
797
798         * chartab.c (Fput_char_attribute): Convert char-specs to
799         characters in value of `ideographic-structure'.
800         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
801         for `{<-|->}simplified(@...)'.
802         (Fdefine_char): Try to use predefined character's id.
803
804 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
805
806         * fns.c (simplify_char_spec): Try to convert builtin chars to
807         defined chars.
808
809 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
810
811         * chartab.c (Fput_char_attribute): Convert char-specs in value of
812         `<-simplified[^*]*' to characters and put reverse links.
813
814 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
815
816         * chartab.c (Q_subsumptive): Renamed from Q_unified.
817         (Q_subsumptive_from): Renamed from Q_unified_from.
818         (Fchar_feature): Use `Q_subsumptive_from' instead of
819         `Q_unified_from'.
820         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
821         `Q_unified'.
822         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
823         `<-unified' to `<-subsumptive'.
824
825 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
826
827         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
828         inheritance itself; fix typo; stop recursive search if cyclic
829         inheritance is found.
830
831 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
832
833         * chartab.c (Q_denotational): New variable.
834         (Q_denotational_from): New variable.
835         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
836         (put_char_attribute): New function.
837         (Fput_char_attribute): Use `put_char_attribute'; regard
838         `->denotational' and `<-denotational' as same as `->unified' and
839         `<-unified'.
840         (syms_of_chartab): Add new symbols `->denotational' and
841         `<-denotational'.
842
843 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
844
845         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
846         `Fget_char_attribute'.
847         (Fchar_variants): Likewise.
848         (get_char_table): Likewise.
849         (Fchar_feature): New function.
850         (put_char_composition): Use `Fchar_feature' instead of
851         `Fget_char_attribute'.
852         (Fput_char_attribute): Likewise; don't put the target character
853         into its `->unified' value.
854         (syms_of_chartab): Add new builtin function `char-feature'.
855
856 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
857
858         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
859         `Fget_char_attribute'.
860         (char_encode_utf8): Likewise.
861
862         * chartab.h: Add an EXFUN for `Fchar_feature'.
863
864 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
865
866         * chartab.c (Vnext_defined_char_id): New variable.
867         (Fput_char_attribute): Accept characters in `->unified'.
868         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
869         new characters which are not related with builtin char-id ranges.
870         (vars_of_chartab): Add new variable `next-defined-char-id'.
871
872 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
873
874         * chartab.c (Q_unified): New variable.
875         (Q_unified_from): New variable.
876         (Fput_char_attribute): Add code for `->unified'.
877         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
878         XEmacs CHISE.
879
880 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
881
882         * mule-charset.c (decode_ccs_conversion): New function.
883         (decode_defined_char): Use `decode_ccs_conversion'.
884         (decode_builtin_char): Likewise.
885
886 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
887
888         * char-ucs.h: Change some charset-ids of private coded-charsets.
889
890 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
891
892         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
893         (char_encode_as_entity_reference): Likewise.
894         (decode_coding_big5): Modify for `decode_defined_char' and
895         `DECODE_CHAR'.
896         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
897         avoid compiler warning.
898         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
899
900         * mule-charset.c (decode_defined_char): Add new argument
901         `without_inheritance'.
902         (Fdecode_char): Add new optional argument `without_inheritance'.
903         (Fdecode_builtin_char): Modify for `Fdecode_char'.
904
905         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
906         (simplify_char_spec): Likewise.
907
908         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
909         setting.
910
911         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
912         (map_char_table): Likewise.
913         (Fdefine_char): Use `Fdecode_char' without inheritance.
914         (Ffind_char): Modify for `Fdecode_char'.
915
916         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
917
918         * char-ucs.h (decode_defined_char): Add new argument
919         `without_inheritance'.
920         (DECODE_CHAR): Likewise.
921         (MAKE_CHAR): Modify for `DECODE_CHAR'.
922
923 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
924
925         * chartab.c (Vchise_system_db_directory): New variable.
926         (vars_of_chartab): Add new variable `chise-system-db-directory'.
927
928 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
929
930         * chartab.c: EXFUN `Fmount_char_attribute_table'.
931         (print_chartab_range): Don't define when `UTF2000' is defined.
932         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
933         `CHISE_DS_open'.
934
935 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
936
937         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
938         and optional argument `rehash' is specified, call
939         `open_chise_data_source_maybe' before
940         `chise_ds_foreach_char_feature_name' is called.
941
942 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
943
944         * chartab.c (char_attribute_list_reset_map_func): New function
945         when HAVE_LIBCHISE is defined.
946         (Fchar_attribute_list): Add new optional argument `rehash' when
947         HAVE_LIBCHISE is defined.
948         (open_chise_data_source_maybe): Use "chise-db" instead of
949         "char-db".
950         (char_attribute_system_db_file): Likewise.
951         (Fload_char_attribute_table): Use
952         `chise_feature_foreach_char_with_value' instead of
953         `chise_char_feature_value_iterate'.
954
955 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
956
957         * chartab.c (Vchise_db_directory): New variable.
958         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
959
960 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
961
962         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
963         instead of HAVE_CHISE to specify using with libchise.
964
965         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
966
967         * chartab.h: Don't use HAVE_CHISE_CLIENT.
968
969         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
970         defined or HAVE_LIBCHISE_LIBCHISE is defined.
971         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
972         is defined.
973         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
974         HAVE_CHISE to specify using with libchise.
975         (syms_of_chartab): Don't define symbol `system-char-id' when
976         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
977
978 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
979
980         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
981         specify CHISE DB support.
982         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
983         of `char_attribute_system_db_file' to check feature DB file.
984
985         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
986         HAVE_CHISE_CLIENT to specify CHISE DB support.
987
988         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
989         specify CHISE DB support.
990         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
991         not defined.
992         (Freset_char_attribute_table): Use `chise_feature_setup_db'
993         instead of `char_attribute_system_db_file' to check feature DB
994         file.
995
996 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
997
998         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
999         `HAVE_CHISE_CLIENT'.
1000
1001 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1002
1003         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
1004         (Fsave_charset_mapping_table): Don't use
1005         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1006
1007         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
1008         (HAVE_LIBCHISE): New macro.
1009
1010         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
1011
1012         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
1013         (Fsave_char_attribute_table): Don't use
1014         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
1015
1016 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1017
1018         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
1019         defined.
1020         (save_uint16_byte_table): Likewise.
1021         (save_byte_table): Likewise.
1022         (char_table_get_db): Use `chise_ds_load_char_feature_value'
1023         instead of `chise_char_load_feature_value'.
1024         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
1025
1026 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1027
1028         * chartab.h (struct Lisp_Char_Table): Delete member
1029         `feature_table' if CHISE is defined.
1030
1031         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
1032         (Fcopy_char_table): Likewise.
1033         (char_table_open_db_maybe): Likewise.
1034         (char_table_close_db_maybe): Likewise.
1035         (char_table_get_db): Likewise.
1036         (Fmount_char_attribute_table): Likewise.
1037         (Fload_char_attribute_table): Likewise.
1038
1039 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1040
1041         * mule-charset.c (load_char_decoding_entry_maybe): Use
1042         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
1043         `chise_ccs_decode'.
1044
1045 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1046
1047         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
1048         instead of `chise_open_data_source'.
1049         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
1050         `chise_ds_close'.
1051
1052 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1053
1054         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
1055         instead of `chise_ds_open_feature_table'.
1056         (char_table_close_db_maybe): Don't use `chise_ft_close'.
1057
1058 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1059
1060         * mule-charset.c (Fsave_charset_mapping_table): Use
1061         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
1062         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
1063         `chise_ccs_sync' instead of `chise_ccst_close'.
1064         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
1065
1066         * chartab.c (open_chise_data_source_maybe): Modify for
1067         `chise_open_data_source'.
1068         (char_table_open_db_maybe): Modify for
1069         `chise_ds_open_feature_table'.
1070
1071 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1072
1073         * mule-charset.c (load_char_decoding_entry_maybe): Use
1074         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
1075         `chise_ccst_close'.
1076
1077 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1078
1079         * mule-charset.c (Fsave_charset_mapping_table): Use
1080         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
1081         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
1082         `chise_dt_put_char' and `chise_dt_close'.
1083         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1084         `chise_ccs_decode' and `chise_ccst_close' instead of
1085         `chise_ds_open_decoding_table', `chise_dt_get_char' and
1086         `chise_dt_close'.
1087
1088         * chartab.c (char_table_get_db): Use
1089         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1090         (load_char_attribute_table_map_func): Modify for
1091         `chise_char_feature_value_iterate'.
1092         (Fload_char_attribute_table): Use
1093         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1094
1095 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1096
1097         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1098
1099 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1100
1101         * chartab.c (put_char_table): Modify for inherited coded-charsets
1102         in XEmacs CHISE.
1103
1104 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1105
1106         * chartab.c (Fput_char_table_map_function): Fixed.
1107         (word_boundary_p): Don't check charset in XEmacs CHISE.
1108
1109 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1110
1111         * mule-charset.c (Fsave_charset_mapping_table): Use
1112         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1113         instead of `chise_open_decoding_table'; refer
1114         `default_chise_data_source'; use `chise_dt_close' instead of
1115         `chise_close_decoding_table'.
1116         (load_char_decoding_entry_maybe): Likewise.
1117
1118         * chartab.c (default_chise_data_source): New variable when `CHISE'
1119         is defined.
1120         (Fcopy_char_table): `ct->ds' is deleted.
1121         (open_chise_data_source_maybe): New function.
1122         (Fclose_char_data_source): New function.
1123         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1124         use `chise_ds_open_feature_table' instead of
1125         `chise_open_feature_table'.
1126         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1127         `chise_close_feature_table'; `cit->ds' is deleted.
1128         (syms_of_chartab): Add new builtin function
1129         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1130
1131         * chartab.h (default_chise_data_source): New extern variable.
1132         (open_chise_data_source_maybe): New prototype.
1133         (struct Lisp_Char_Table): Delete `ds'.
1134
1135 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1136
1137         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1138         `CHISE' is defined.
1139
1140 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1141
1142         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1143         not defined; add code for non-libchise setting.
1144         (char_table_close_db_maybe): Likewise.
1145         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1146         defined.
1147         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1148         even if `CHISE' is not defined.
1149         (Freset_char_attribute_table): Likewise.
1150         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1151         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1152         `char_table_get_db'.
1153         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1154         `char_table_close_db_maybe' even if `CHISE' is not defined.
1155
1156 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1157
1158         * chartab.c (char_table_open_db_maybe): New function.
1159         (char_table_close_db_maybe): New function.
1160         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1161         (Freset_char_attribute_table): Likewise.
1162         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1163         `char_table_close_db_maybe'.
1164         (Fload_char_attribute_table): Likewise.
1165
1166 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1167
1168         * chartab.c: Don't include <chise.h> because it is included in
1169         chartab.h.
1170         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1171         defined.
1172         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1173         `CHISE' is defined.
1174         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1175         `CHISE' is defined.
1176         (Fclose_char_attribute_table): Close `ct->feature_table' and
1177         `ct->ds' when `CHISE' is defined.
1178         (Freset_char_attribute_table): Likewise.
1179         (load_char_attribute_maybe): Use `cit->ds' and
1180         `cit->feature_table' when `CHISE' is defined.
1181         (Fload_char_attribute_table): Likewise.
1182
1183         * chartab.h: Include <chise.h> when `CHISE' is defined.
1184         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1185         when `CHISE' is defined.
1186
1187 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1188
1189         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1190         is defined.
1191         (char_table_description): Likewise.
1192         (Fmake_char_table): Likewise.
1193         (Fcopy_char_table): Likewise.
1194         (Fmount_char_attribute_table): Likewise.
1195         (Fclose_char_attribute_table): Likewise.
1196         (Freset_char_attribute_table): Likewise.
1197         (load_char_attribute_maybe): Likewise.
1198         (Fload_char_attribute_table): Likewise.
1199
1200         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1201         defined.
1202
1203 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1204
1205         * chartab.c (load_char_attribute_table_map_func): New function
1206         when CHISE is defined.
1207         (Qload_char_attribute_table_map_function): Don't define when CHISE
1208         is defined.
1209         (Fload_char_attribute_table_map_function): Likewise.
1210         (Fload_char_attribute_table): Use libchise when `CHISE' is
1211         defined.
1212         (syms_of_chartab): Don't define
1213         `load-char-attribute-table-map-function' when CHISE is defined.
1214
1215 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1216
1217         * chartab.c: Include <chise.h> when `CHISE' is defined.
1218         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1219
1220 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1221
1222         * mule-charset.c (charset_code_point): Fix problem when searching
1223         in mother CCS fails with `defined_only' mode.
1224
1225 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1226
1227         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1228         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1229         (put_char_composition): Likewise.
1230         (Fput_char_attribute): Likewise.
1231         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1232
1233 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1234
1235         * chartab.c (Q_ucs): Deleted.
1236         (Fput_char_attribute): Don't refer `->ucs'.
1237         (Fdefine_char): Likewise.
1238         (Ffind_char): Likewise.
1239         (syms_of_chartab): Delete `->ucs'.
1240
1241 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1242
1243         * mule-charset.c (Qmap_cns11643_2): Renamed from
1244         `Qchinese_cns11643_2'.
1245         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1246         `chinese-cns11643-2'.
1247         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1248         `=cns11643-2'.
1249
1250 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1251
1252         * mule-charset.c (Qmap_cns11643_1): Renamed from
1253         `Qchinese_cns11643_1'.
1254         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1255         `chinese-cns11643-1'.
1256         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1257         `=cns11643-1'.
1258
1259 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1260
1261         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1262         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1263         `chinese-gb12345'.
1264         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1265         `=gb12345'.
1266
1267 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1268
1269         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1270         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1271         `chinese-gb2312'.
1272         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1273         `=gb2312'.
1274
1275 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1276
1277         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1278         (syms_of_mule_charset): Add new symbol `=big5' instead of
1279         `chinese-big5'.
1280         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1281
1282 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1283
1284         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1285         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1286         `korean-ksc5601'.
1287         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1288         `=ks-x1001'.
1289
1290 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1291
1292         * mule-charset.c (Qmap_jis_x0212): Renamed from
1293         `Qjapanese_jisx0212'.
1294         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1295         `japanese-jisx0212'.
1296         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1297         `=jis-x0212'.
1298
1299 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1300
1301         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1302         `Qjapanese_jisx0208'.
1303         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1304         of `japanese-jisx0208'.
1305         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1306         `=jis-x0208-1983'.
1307
1308 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1309
1310         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1311         `Qjapanese_jisx0208_1978'.
1312         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1313         of `japanese-jisx0208-1978'.
1314         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1315         `=jis-x0208-1978'.
1316
1317 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1318
1319         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1320         only for XEmacs CHISE.
1321
1322 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1323
1324         * char-ucs.h: Compact non-ISO-IR charset-ids.
1325         (LEADING_BYTE_UCS): Changed to -177.
1326         (LEADING_BYTE_CONTROL_1): Changed to -77.
1327         (LEADING_BYTE_UCS_BMP): Changed to -176.
1328         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1329
1330 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1331
1332         * mule-charset.c (Qiso_ir): New variable.
1333         (Fmake_charset): Recognise new property `iso-ir'.
1334         (syms_of_mule_charset): Add new symbol `iso-ir'.
1335
1336 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1337
1338         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1339         n to -n; charset-id of non ISO-IR sets are changed to positive
1340         numbers.
1341
1342 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1343
1344         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1345         for &MCS-XXXXXXXX; values.
1346
1347 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1348
1349         * mule.c (Vxemacs_chise_version): Renamed from
1350         `Vutf_2000_version'.
1351         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1352         `utf-2000-version' as an alias for `xemacs-chise-version'.
1353
1354 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1355
1356         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1357         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1358         defined.
1359
1360         * config.h.in (CHISE): New macro.
1361
1362 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1363
1364         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1365         of `ucs'.
1366         (Qmap_ucs): New variable.
1367         (syms_of_mule_charset): Add new symbol `=ucs'.
1368         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1369
1370         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1371         (simplify_char_spec): Likewise.
1372
1373         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1374
1375         * char-ucs.h (Qmap_ucs): New extern variable.
1376
1377 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1378
1379         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1380         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1381         don't define it when UTF2000 is not defined.
1382         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1383         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1384         when UTF2000 is not defined.
1385         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1386         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1387
1388 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1389
1390         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1391
1392         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1393         (Qucs_gb): Deleted.
1394         (syms_of_mule_charset): Delete `ucs-gb'.
1395         (complex_vars_of_mule_charset): Likewise.
1396
1397 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1398
1399         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1400
1401         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1402         (Qucs_cns): Deleted.
1403         (syms_of_mule_charset): Delete `ucs-cns'.
1404         (complex_vars_of_mule_charset): Likewise.
1405
1406 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1407
1408         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1409
1410         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1411         (Qucs_jis): Deleted.
1412         (syms_of_mule_charset): Delete `ucs-jis'.
1413         (complex_vars_of_mule_charset): Likewise.
1414
1415 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1416
1417         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1418
1419         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1420         (Qucs_ks): Deleted.
1421         (syms_of_mule_charset): Delete `ucs-ks'.
1422         (complex_vars_of_mule_charset): Likewise.
1423
1424 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1425
1426         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1427         (Qideograph_daikanwa_2): Deleted.
1428         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1429         (complex_vars_of_mule_charset): Likewise.
1430
1431         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1432         (LEADING_BYTE_DAIKANWA_1): Deleted.
1433         (LEADING_BYTE_DAIKANWA_2): Deleted.
1434         (MIN_CHAR_DAIKANWA): Deleted.
1435         (MAX_CHAR_DAIKANWA): Deleted.
1436
1437 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1438
1439         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1440         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1441         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1442
1443         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1444         (Vcharset_ideograph_daikanwa): Deleted.
1445         (Qideograph_hanziku_{1..12}): Deleted.
1446         (Qideograph_daikanwa): Deleted.
1447         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1448         Vcharset_ideograph_daikanwa.
1449         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1450         `ideograph-hanziku-{1..12}'.
1451         (complex_vars_of_mule_charset): Likewise.
1452
1453 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1454
1455         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1456
1457         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1458         (Qideograph_gt_pj_{1..11}): Deleted.
1459         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1460         (complex_vars_of_mule_charset): Likewise.
1461
1462 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1463
1464         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1465         (Vcharset_ideograph_gt): Deleted.
1466         (Qucs_big5): Deleted.
1467         (Qideograph_gt): Deleted.
1468         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1469         `ideograph-gt'.
1470         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1471         and `ideograph-gt'.
1472
1473         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1474         (LEADING_BYTE_GT): Deleted.
1475         (MIN_CHAR_GT): Deleted.
1476         (MAX_CHAR_GT): Deleted.
1477
1478 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1479
1480         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1481
1482 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1483
1484         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1485         (save_uint16_byte_table): Likewise.
1486         (save_byte_table): Likewise; convert values by it.
1487         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1488         for `ideographic-structure'.
1489         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1490         as the filter for `ideographic-structure'.
1491
1492 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1493
1494         * chartab.c (put_char_composition): New function.
1495         (Fput_char_attribute): Use `put_char_composition'; use
1496         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1497
1498         * fns.c (simplify_char_spec): New function.
1499         (char_ref_simplify_spec): New function.
1500         (Fchar_refs_simplify_char_specs): New function.
1501         (syms_of_fns): Add new builtin function
1502         `char-refs-simplify-char-specs'.
1503
1504 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1505
1506         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1507         (Qideograph_cbeta): Deleted.
1508         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1509         (complex_vars_of_mule_charset): Likewise.
1510
1511         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1512         (MIN_CHAR_CBETA): Comment out.
1513         (MAX_CHAR_CBETA): Likewise.
1514
1515 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1516
1517         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1518         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1519         CHISE client feature.
1520
1521 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1522
1523         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1524
1525 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1526
1527         * mule-charset.c (charset_lookup_description_1): Use
1528         `NUM_LEADING_BYTES' in UTF-2000.
1529
1530 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1531
1532         * char-ucs.h (GC_CHARSETP): Deleted.
1533
1534 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1535
1536         * char-ucs.h (MAX_CHAR_GT): Updated.
1537
1538 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1539
1540         * text-coding.c: Sync with XEmacs 21.4.10.
1541
1542 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1543
1544         * mule-charset.c (Vcharset_china3_jef): Deleted.
1545         (Qchina3_jef): Deleted.
1546         (syms_of_mule_charset): Don't define `china3-jef'.
1547         (complex_vars_of_mule_charset): Likewise.
1548
1549         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1550         (MIN_CHAR_CHINA3_JEF): Comment out.
1551         (MAX_CHAR_CHINA3_JEF): Comment out.
1552
1553 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1554
1555         * mule-charset.c (Vcharset_ucs_gb): New variable.
1556         (Qucs_gb): New variable.
1557         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1558         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1559
1560         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1561
1562 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1563
1564         * mule-charset.c (charset_code_point): if a coded-charset has a
1565         final-byte, don't inherit the builtin range of the mother CCS.
1566
1567 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1568
1569         * mule-charset.c (charset_code_point): Fix problem about
1570         inheritance.
1571
1572 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1573
1574         * mule-charset.c (decode_builtin_char): Reorganized.
1575
1576 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1577
1578         * text-coding.c (char_encode_as_entity_reference): Modify for
1579         `charset_code_point'.
1580         (char_encode_shift_jis): Likewise.
1581         (char_encode_big5): Likewise.
1582         (char_encode_utf8): Likewise.
1583         (char_encode_iso2022): Likewise.
1584
1585         * mule-charset.c (charset_code_point): Add new argument
1586         `defined_only'.
1587         (Fencode_char): Add new optional argument `defined_only'.
1588
1589         * chartab.c (put_char_table): Modify for `charset_code_point'.
1590
1591         * char-ucs.h (charset_code_point): Add new argument
1592         `defined_only'.
1593         (encode_char_1): Modify for `charset_code_point'.
1594
1595 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1596
1597         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1598         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1599
1600 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1601
1602         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1603         (Qjis_x0208): Likewise.
1604         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1605         XCHARSET_FINAL(charset).
1606         (charset_code_point): Modify condition for final-byte based
1607         builtin-chars.
1608         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1609         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1610         in UTF-2000; specify `=jis-x0208' as the mother of
1611         `japanese-jisx0208-1978', `japanese-jisx0208' and
1612         `japanese-jisx0208-1990' in UTF-2000.
1613
1614 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1615
1616         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1617
1618 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1619
1620         * text-coding.c (decode_coding_utf16): Support UTF-16.
1621         (char_encode_utf16): Fixed.
1622
1623 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1624
1625         * text-coding.c (Qutf16): New variable in MULE.
1626         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1627         (Fcoding_system_type): Add `utf-16' in MULE.
1628         (struct detection_state): Add a structure for utf16 in MULE.
1629         (detect_coding_type): Setup st->utf16.mask in MULE.
1630         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1631         MULE.
1632         (reset_encoding_stream): Use `char_encode_utf16' and
1633         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1634         (detect_coding_utf16): New function [incomplete].
1635         (decode_coding_utf16): New function [support only UCS-2].
1636         (char_encode_utf16): New function.
1637         (char_finish_utf16): New function.
1638         (syms_of_file_coding): Add new symbol `utf-16'; setup
1639         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1640
1641         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1642         UTF-2000.
1643         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1644         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1645
1646 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1647
1648         * chartab.c (put_char_table): When a charset is specified as a
1649         range in UTF-2000, don't support builtin characters.
1650
1651 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1652
1653         * mule-charset.c (decode_defined_char): Don't refer external
1654         database if Qunbound or Qnil are found.
1655         (Fsave_charset_mapping_table): Don't define it if
1656         HAVE_CHISE_CLIENT is not defined.
1657         (Freset_charset_mapping_table): New function.
1658         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1659         found in external database.
1660         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1661         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1662         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1663
1664 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1665
1666         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1667         not.
1668
1669 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1670
1671         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1672         Q_lowercase, Q_uppercase in UTF-2000.
1673
1674         * chartab.c (get_char_table): Add special code for the standard
1675         case table to use character attribute `->downcase' and
1676         `->uppercase' for case operations in UTF-2000.
1677
1678         * casetab.c (Qflippedcase): New variable in UTF-2000.
1679         (Q_lowercase): Likewise.
1680         (Q_uppercase): Likewise.
1681         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1682         and `->uppercase' in UTF-2000.
1683         (complex_vars_of_casetab): Assign attribute name `downcase' to
1684         downcase and CANON table of Vstandard_case_table in UTF-2000;
1685         assign attribute name `flippedcase' to upcase and EQV table of
1686         Vstandard_case_table in UTF-2000.
1687
1688 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1689
1690         * text-coding.c (decode_add_er_char): Support isolated-chars.
1691         (char_encode_as_entity_reference): Likewise.
1692
1693 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1694
1695         * emacs.c (Vutf_2000_lisp_directory): New variable.
1696         (Vconfigure_utf_2000_lisp_directory): Likewise.
1697         (complex_vars_of_emacs): Add new variable
1698         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1699
1700 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1701
1702         * char-ucs.h (DECODE_CHAR): Delete special code for
1703         `chinese-big5-1' and `chinese-big5-2'.
1704
1705         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1706         (Qbig5_2): Likewise.
1707         (decode_defined_char): Support CONVERSION_BIG5_1 and
1708         CONVERSION_BIG5_2.
1709         (decode_builtin_char): Likewise.
1710         (charset_code_point): Likewise.
1711         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1712         'conversion in UTF-2000.
1713         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1714         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1715         `chinese-big5-2' as children of `chinese-big5'.
1716
1717         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1718         (CONVERSION_BIG5_2): New macro.
1719
1720 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1721
1722         * text-coding.c (char_encode_big5): Support entity-reference.
1723
1724 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1725
1726         * text-coding.c (char_encode_as_entity_reference): New function.
1727         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1728
1729 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1730
1731         * text-coding.c (decode_coding_big5): Support entity-reference
1732         decoding feature.
1733
1734 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1735
1736         * text-coding.c (allocate_coding_system): Initialize initial
1737         charsets for CODESYS_UTF8.
1738         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1739         charset-g2 for CODESYS_UTF8.
1740         (decode_coding_utf8): Use charset-g0.
1741         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1742         to force variants to map to UCS.
1743
1744 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1745
1746         * text-coding.c (Qutf_8_mcs): New variable.
1747         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1748         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1749         instead of `utf-8' in UTF-2000.
1750
1751 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1752
1753         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1754         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1755         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1756         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1757         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1758         CONVERSION_96x96x96x96 are introduced.
1759         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1760         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1761         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1762
1763         * char-ucs.h (CONVERSION_94): New macro.
1764         (CONVERSION_96): New macro.
1765         (CONVERSION_94x94): New macro.
1766         (CONVERSION_96x96): New macro.
1767         (CONVERSION_94x94x94): New macro.
1768         (CONVERSION_96x96x96): New macro.
1769         (CONVERSION_94x94x94x60): New macro.
1770         (CONVERSION_94x94x94x94): New macro.
1771         (CONVERSION_96x96x96x96): New macro.
1772
1773 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1774
1775         * chartab.c (Vcharacter_variant_table): Deleted.
1776         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1777         of `Vcharacter_variant_table'.
1778         (Fput_char_attribute): Likewise.
1779         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1780         (complex_vars_of_chartab): Likewise.
1781
1782 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1783
1784         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1785
1786         * fns.c (Qideographic_structure): New variable.
1787         (Qkeyword_char): New variable.
1788         (ids_format_unit): New function.
1789         (Fideographic_structure_to_ids): New function.
1790         (syms_of_fns): Add new symbols `ideographic-structure' and
1791         `:char'; add new builtin function `ideographic-structure-to-ids'.
1792
1793         * data.c (Fchar_ref_p): New function.
1794         (syms_of_data): Add new builtin function `char-ref-p'.
1795
1796         * chartab.h: Add an EXFUN for `Ffind_char'.
1797
1798 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1799
1800         * text-coding.c (Vcharacter_composition_table): Deleted.
1801         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1802         in every UTF-2000.
1803
1804         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1805         UTF-2000.
1806         (Vcharacter_composition_table): Deleted.
1807         (Fget_composite_char): Use the implementation for external-DB
1808         support in every UTF-2000.
1809         (Fput_char_attribute): Likewise.
1810         (char_attribute_system_db_file): Don't define if external-DB
1811         feature is not available.
1812         (Fsave_char_attribute_table): Likewise.
1813         (Fmount_char_attribute_table): Likewise.
1814         (Fclose_char_attribute_table): Likewise.
1815         (Freset_char_attribute_table): Likewise.
1816         (Fload_char_attribute_table): Likewise.
1817         (syms_of_chartab): Don't define `save-char-attribute-table',
1818         `mount-char-attribute-table', `reset-char-attribute-table',
1819         `close-char-attribute-table' and `load-char-attribute-table' if
1820         external-DB feature is not available.
1821         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1822
1823 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1824
1825         * text-coding.c (Qcomposition): Add extern if external-DB feature
1826         is supported.
1827         (Vcharacter_composition_table): Don't add extern if external-DB
1828         feature is supported.
1829         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1830         character composition rule if external-DB feature is supported.
1831
1832         * chartab.c (Vcharacter_composition_table): Don't define if
1833         external-DB feature is supported.
1834         (Qcomposition): New variable.
1835         (Fget_composite_char): New implementation for external-DB support.
1836         (Fput_char_attribute): Use `composition' property of each
1837         character instead of `Vcharacter_composition_table' to store
1838         character-composition rules if external-DB feature is supported.
1839         (syms_of_chartab): Add new symbol `composition'.
1840         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1841         external-DB feature is supported.
1842
1843 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1844
1845         * chartab.c (Vchar_db_stingy_mode): New variable.
1846         (load_char_attribute_maybe): Close database if
1847         Vchar_db_stingy_mode is not NIL.
1848         (Fload_char_attribute_table_map_function): Use
1849         `get_char_id_table_0' instead of `get_char_id_table'.
1850         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1851
1852         * chartab.h (get_char_id_table_0): New inline function.
1853         (get_char_id_table): Use `get_char_id_table_0'.
1854
1855 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1856
1857         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1858         and `COMPOSE_ADD_CHAR'.
1859         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1860
1861 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1862
1863         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1864         instead of `DECODE_ADD_UCS_CHAR'.
1865         (COMPOSE_ADD_CHAR): Likewise.
1866
1867 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1868
1869         * text-coding.c (decode_flush_er_chars): New inline function.
1870         (decode_add_er_char): New function.
1871         (decode_coding_utf8): Use `decode_flush_er_chars' and
1872         `decode_add_er_char'.
1873
1874 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1875
1876         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1877         done before `decode_output_utf8_partial_char'.
1878
1879         * mule-charset.c (complex_vars_of_mule_charset): Specify
1880         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1881         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1882
1883 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1884
1885         * mule-charset.c (decode_defined_char): New function; search
1886         mother.
1887         (decode_builtin_char): Don't search mother if
1888         XCHARSET_MAX_CODE(charset) == 0.
1889         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1890         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1891         (Fdecode_char): Use `decode_defined_char' instead of
1892         `DECODE_DEFINED_CHAR'.
1893         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1894         mother of `Vcharset_ucs_jis'.
1895
1896         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1897         instead of `DECODE_DEFINED_CHAR'.
1898
1899         * char-ucs.h (decode_defined_char): Renamed from
1900         `DECODE_DEFINED_CHAR'; changed to normal function.
1901         (DECODE_CHAR): Use `decode_defined_char' instead of
1902         `DECODE_DEFINED_CHAR'.
1903
1904         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1905
1906 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1907
1908         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1909
1910         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1911         variable.
1912         (Quse_entity_reference): New variable.
1913         (Qd): New variable.
1914         (Qx): New variable.
1915         (QX): New variable.
1916         (coding_system_description): Add description for
1917         `ccs_priority_list'.
1918         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1919         (allocate_coding_system): Initialize `ccs_priority_list' in
1920         UTF-2000.
1921         (Fmake_coding_system): Add description about
1922         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1923         (codesys).
1924         (Fcoding_system_property): Accept `disable-composition' and
1925         `use-entity-reference' in UTF-2000.
1926         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1927         in UTF-2000.
1928         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1929         (decode_coding_utf8): Decode entity-reference if
1930         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1931         (char_encode_utf8): Encode non-Unicode characters as
1932         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1933         (str->codesys).
1934         (syms_of_file_coding): Add new symbols `use-entity-reference',
1935         `d', `x', `X'.
1936         (vars_of_file_coding): Add new variable
1937         `coded-charset-entity-reference-alist'.
1938         (complex_vars_of_file_coding): Declare `disable-composition' and
1939         `use-entity-reference' to be coding-system-properties in UTF-2000.
1940
1941         * file-coding.h (struct Lisp_Coding_System): Add new member
1942         `use_entity_reference' and `ccs_priority_list'.
1943         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1944         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1945         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1946
1947 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1948
1949         * chartab.c (save_uint8_byte_table): Don't clear the table.
1950         (save_uint16_byte_table): Likewise.
1951         (save_byte_table): Likewise.
1952         (Fmount_char_attribute_table): New function.
1953         (syms_of_chartab): Add new builtin function
1954         `mount-char-attribute-table'.
1955
1956 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1957
1958         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1959         "w+" mode.
1960         (load_char_decoding_entry_maybe): Open database as read-only mode.
1961
1962         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1963         open database as "w+" mode.
1964         (load_char_attribute_maybe): Open database as read-only mode.
1965         (Fload_char_attribute_table): Likewise.
1966
1967 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1968
1969         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1970         (char_table_description): Delete member `db_file'.
1971         (Fmake_char_table): Don't refer `ct->db_file'.
1972         (Fcopy_char_table): Likewise.
1973         (Fsave_char_attribute_table): Likewise.
1974         (Fclose_char_attribute_table): Likewise.
1975         (Freset_char_attribute_table): Likewise.
1976         (load_char_attribute_maybe): Likewise.
1977         (Fload_char_attribute_table): Likewise.
1978
1979         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1980
1981 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1982
1983         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1984         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1985         `ct->db' is living.
1986         (load_char_attribute_maybe): Likewise.
1987         (Fload_char_attribute_table): Likewise.
1988
1989 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1990
1991         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1992         `ct->db_file' unconditionally.
1993
1994 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1995
1996         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1997         UTF-2000.
1998         (char_table_description): Add description for `db_file' and `db'
1999         in UTF-2000.
2000         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
2001         UTF-2000.
2002         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
2003         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
2004         (Fclose_char_attribute_table): New function.
2005         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
2006         (load_char_attribute_maybe): Change interface; use `cit->db_file'
2007         and `cit->db'.
2008         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
2009         (syms_of_chartab): Add new builtin function
2010         `Fclose_char_attribute_table'.
2011
2012 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2013
2014         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
2015         `db' in UTF-2000.
2016         (load_char_attribute_maybe): Change interface.
2017         (get_char_id_table): Modify for `load_char_attribute_maybe'.
2018
2019 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2020
2021         * database.h: Add an EXFUN for `Fdatabase_live_p'.
2022
2023 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2024
2025         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
2026         instead of `DECODE_CHAR' for mother; don't use special code for
2027         chinese-big5 to use code space of chinese-big5-1 and
2028         chinese-big5-2.
2029         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
2030         `MAX_CHAR_BIG5_CDP' for chinese-big5.
2031
2032         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
2033         (MAX_CHAR_BIG5_CDP): Revival.
2034
2035 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2036
2037         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
2038         the XLFD registry-encoding name of `chinese-big5'.
2039
2040 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2041
2042         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
2043         (Qchinese_big5_cdp): Deleted.
2044         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
2045         (complex_vars_of_mule_charset): Delete coded-charset
2046         `chinese-big5-cdp'.
2047
2048         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
2049         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
2050         `CHARSET_ID_OFFSET - n' for private CCS.
2051         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
2052         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
2053         of `MIN_LEADING_BYTE'.
2054         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
2055         `(CHARSET_ID_OFFSET - 97)'.
2056         (MIN_CHAR_BIG5_CDP): Deleted.
2057         (MAX_CHAR_BIG5_CDP): Deleted.
2058
2059 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2060
2061         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
2062
2063 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2064
2065         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
2066         (vars_of_mule): Add new variable `utf-2000-version' [moved from
2067         chartab.c].
2068
2069         * chartab.c (Vutf_2000_version): Moved to mule.c.
2070         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
2071
2072 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2073
2074         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
2075         when HAVE_CHISE_CLIENT is not defined.
2076
2077         * mule.c (vars_of_mule): Provide feature `chise' when
2078         HAVE_CHISE_CLIENT is defined.
2079
2080 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2081
2082         * config.h.in (UTF2000): Add comment.
2083         (HAVE_CHISE_CLIENT): New macro.
2084
2085 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2086
2087         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2088         CONSP.
2089         (Fput_char_attribute): Likewise.
2090         (char_attribute_system_db_file): Encode file-name of attribute.
2091         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2092         the initial value.
2093
2094 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2095
2096         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2097         (Fsave_charset_mapping_table): Use
2098         `char_attribute_system_db_file'.
2099         (load_char_decoding_entry_maybe): Likewise.
2100
2101         * chartab.h (Qsystem_char_id): New external variable.
2102         (char_attribute_system_db_file): New prototype.
2103
2104         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2105         (char_attribute_system_db_file): New function.
2106         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2107         (Freset_char_attribute_table): Likewise.
2108         (load_char_attribute_maybe): Likewise.
2109         (Fload_char_attribute_table): Likewise.
2110         (syms_of_chartab): Add new symbol `system-char-id'.
2111
2112 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2113
2114         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2115         `XCHARSET_GRAPHIC(ccs)'.
2116
2117 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2118
2119         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2120
2121 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2122
2123         * chartab.c (Q_ucs_variants): New variable.
2124         (syms_of_chartab): Add new symbol `->ucs-variants'.
2125         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2126         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2127         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2128
2129         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2130
2131         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2132         `HAVE_DATABASE' is defined.
2133         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2134         `HAVE_DATABASE' is defined.
2135
2136 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2137
2138         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2139         attribute-table.
2140         (Freset_char_attribute_table): New function.
2141         (syms_of_chartab): Add new builtin function
2142         `reset-char-attribute-table'.
2143
2144 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2145
2146         * chartab.c (load_char_attribute_maybe): Don't make directories.
2147
2148 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2149
2150         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2151
2152         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2153         for decoding-table.
2154
2155 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2156
2157         * mule-charset.c (Fsave_charset_mapping_table): Use
2158         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2159
2160         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2161         instead of `XCHARSET_CHARS'.
2162
2163 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2164
2165         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2166         (XCHARSET_BYTE_SIZE): Likewise.
2167
2168         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2169         mule-charset.c].
2170         (XCHARSET_BYTE_SIZE): Likewise.
2171
2172 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2173
2174         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2175         data-directory to store database.
2176         (Fsave_char_attribute_table): Likewise.
2177         (load_char_attribute_maybe): Likewise.
2178         (Fload_char_attribute_table): Likewise.
2179
2180 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2181
2182         * mule-charset.c (Fsave_charset_mapping_table): New function.
2183         (syms_of_mule_charset): Add new builtin function
2184         `save-charset-mapping-table'.
2185
2186 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2187
2188         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2189         (get_ccs_octet_table): New inline function.
2190         (put_ccs_octet_table): Likewise.
2191         (decoding_table_put_char): Use `get_ccs_octet_table' and
2192         `put_ccs_octet_table'.
2193         (decoding_table_remove_char): Use `decoding_table_put_char'.
2194         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2195
2196         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2197         into encoding_table.
2198         (make_charset): Use Qunbound instead Qnil as initial value of
2199         decoding_table.
2200
2201 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2202
2203         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2204         element is Qunloaded.
2205         (map_over_uint16_byte_table): Likewise.
2206         (map_over_byte_table): Likewise.
2207         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2208         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2209         database support, load encoding-table of the specified
2210         coded-charset if it is not loaded yet.
2211         (save_uint8_byte_table): New function of UTF-2000 with external
2212         database support.
2213         (save_uint16_byte_table): Likewise.
2214         (save_byte_table): Likewise.
2215         (Fput_char_attribute): Don't store value into external database
2216         even if the external database feature is supported in UTF-2000;
2217         set `attribute' as name of char-table if the external database
2218         feature is supported.
2219         (Fsave_char_attribute_table): New function in UTF-2000.
2220         (syms_of_chartab): Add new builtin function
2221         `save-char-attribute-table' in UTF-2000.
2222
2223 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2224
2225         * chartab.c (char_attribute_table_to_put): New variable in
2226         UTF-2000.
2227         (Qput_char_table_map_function): Likewise.
2228         (value_to_put): Likewise.
2229         (Fput_char_table_map_function): New function in UTF-2000.
2230         (put_char_table): Use `Fmap_char_attribute' for
2231         CHARTAB_RANGE_CHARSET in UTF-2000.
2232         (Fput_char_attribute): Store symbol instead of string in
2233         `XCHAR_TABLE_NAME (table)'.
2234         (load_char_attribute_maybe): Likewise.
2235         (syms_of_chartab): Add new symbol/function
2236         `put-char-table-map-function'.
2237
2238 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2239
2240         * database.h: Add new EXFUN for `Fmap_database'.
2241
2242         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2243         (syms_of_database): Likewise.
2244
2245         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2246         UTF-2000.
2247         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2248         (XCHAR_TABLE_UNLOADED): Likewise.
2249
2250         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2251         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2252         HAVE_DATABASE is defined.
2253         (char_attribute_table_to_load): New variable of UTF-2000 with
2254         external database support.
2255         (Qload_char_attribute_table_map_function): Likewise.
2256         (Fload_char_attribute_table_map_function): New function of
2257         UTF-2000 with external database support.
2258         (Fload_char_attribute_table): New function of UTF-2000.
2259         (Fmap_char_attribute): Call Fload_char_attribute_table if
2260         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2261         (syms_of_chartab): Add new symbol and function
2262         `load-char-attribute-table-map-function' in UTF-2000 with external
2263         database support; add new function `load-char-attribute-table' in
2264         UTF-2000.
2265
2266 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2267
2268         * chartab.h (load_char_attribute_maybe): New prototype for
2269         UTF-2000 with DATABASE support.
2270         (get_char_id_table): Use `load_char_attribute_maybe' if
2271         HAVE_DATABASE is defined.
2272
2273         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2274         with DATABASE support.
2275
2276 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2277
2278         * chartab.c (Fput_char_attribute): Use S-expression as key of
2279         external database.
2280
2281         * chartab.h (get_char_id_table): Use S-expression as key of
2282         external database.
2283
2284 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2285
2286         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2287         if an element is not loaded, load the corresponding attributes
2288         from an external database.
2289         (map_over_uint16_byte_table): Likewise.
2290         (map_over_byte_table): Likewise.
2291         (map_char_table): Modify for `map_over_uint8_byte_table',
2292         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2293         element is not loaded, load the corresponding attributes from an
2294         external database.
2295         (Fput_char_attribute): Change initial values to Qunloaded.
2296
2297         * chartab.h (get_char_id_table): If a character attribute is not
2298         loaded and the attribute value is not found in an external
2299         database, store Qunbound as the attribute value.
2300
2301 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2302
2303         * chartab.c (BT_UINT8_unloaded): New macro.
2304         (UINT8_VALUE_P): Accept Qunloaded.
2305         (UINT8_ENCODE): Likewise.
2306         (UINT8_DECODE): Likewise.
2307         (BT_UINT16_unloaded): New macro.
2308         (UINT16_VALUE_P): Accept Qunloaded.
2309         (UINT16_ENCODE): Likewise.
2310         (UINT16_DECODE): Likewise.
2311         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2312         BT_UINT16_unloaded.
2313         (mark_char_table): Mark `ct->name' in UTF-2000.
2314         (char_table_description): Add `name' in UTF-2000.
2315         (Fmake_char_table): Initialize `ct->name'.
2316         (Fcopy_char_table): Copy `ct->name'.
2317         (Fput_char_attribute): Store value into an external database if
2318         HAVE_DATABASE is defined.
2319
2320         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2321         UTF-2000.
2322         (CHAR_TABLE_NAME): New macro in UTF-2000.
2323         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2324         (get_char_id_table): Try to read an external database if Qunloaded
2325         is stored in a table.
2326
2327         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2328         Qunloaded.
2329
2330 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2331
2332         * database.h: Add EXFUN definitions for Fopen_database,
2333         Fput_database, Fget_database and Fclose_database.
2334
2335         * data.c (Qunloaded): New variable in UTF-2000.
2336
2337         * lisp.h (Qunloaded): New variable in UTF-2000.
2338
2339 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2340
2341         * mule-charset.c (put_char_ccs_code_point): Modify for
2342         `decoding_table_remove_char' and `decoding_table_put_char'.
2343         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2344
2345         * char-ucs.h (decoding_table_remove_char): Change arguments to
2346         hide decoding_table vector.
2347         (decoding_table_put_char): Likewise.
2348
2349 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2350
2351         * mule-charset.c (decoding_table_remove_char): Moved to
2352         char-ucs.h.
2353         (decoding_table_put_char): Likewise.
2354
2355         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2356         from mule-charset.c].
2357         (decoding_table_remove_char): New inline function [moved from
2358         mule-charset.c].
2359         (decoding_table_put_char): Likewise.
2360
2361 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2362
2363         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2364         extension.
2365
2366 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2367
2368         * mule-charset.c (decode_builtin_char): Support mother charsets.
2369
2370 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2371
2372         * mule-charset.c (Q94x94x60): New variable.
2373         (charset_code_point): Support conversion `94x94x60'.
2374         (Fmake_charset): Likewise.
2375         (syms_of_mule_charset): Add new symbol `94x94x60'.
2376
2377         * char-ucs.h (CONVERSION_94x94x60): New macro.
2378
2379 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2380
2381         * mule-charset.c (charset_code_point): Unify code about
2382         `code-offset'.
2383
2384 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2385
2386         * mule-charset.c (charset_code_point): Merge code about builtin
2387         characters into code about mother charsets; don't use
2388         `range_charset_code_point'.
2389         (range_charset_code_point): Deleted.
2390
2391 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2392
2393         * mule-charset.c (Qcode_offset): New variable.
2394         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2395         `max-code'; accept new property `code-offset'.
2396         (syms_of_mule_charset): Add new symbol `code-offset'.
2397
2398 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2399
2400         * mule-charset.c (range_charset_code_point): Fixed.
2401
2402 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2403
2404         * mule-charset.c (decode_builtin_char): Change semantics of
2405         code-offset of coded-charset.
2406         (charset_code_point): Likewise.
2407         (range_charset_code_point): Likewise.
2408         (complex_vars_of_mule_charset): Modify for the change.
2409
2410 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2411
2412         * mule-charset.c (Fencode_char): Reverse arguments.
2413
2414         * mule-charset.c (charset_code_point): Fixed.
2415
2416 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2417
2418         * mule-charset.c (Vcharset_mojikyo): Deleted.
2419         (Vcharset_mojikyo_2022_1): Deleted.
2420         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2421         (Qmin_code): New variable in UTF-2000.
2422         (Qmax_code): Likewise.
2423         (Qmother): Likewise.
2424         (Qconversion): Likewise.
2425         (Q94x60): Likewise.
2426         (Qmojikyo): Deleted.
2427         (Qmojikyo_2022_1): Deleted.
2428         (Qmojikyo_pj_{1..22}): Deleted.
2429         (mark_charset): Mark `cs->mother'.
2430         (charset_description): Add description for `mother'.
2431         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2432         new arguments `mother' and `conversion'; use
2433         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2434         (charset_code_point): Moved from char-ucs.h; support `mother'
2435         charset feature.
2436         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2437         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2438         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2439         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2440         allow 2 as the value of `graphic' in UTF-2000; add new properties
2441         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2442         require `final' in UTF-2000; modify for `make_charset'.
2443         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2444         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2445         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2446         (Fencode_char): New function.
2447         (syms_of_mule_charset): Add new builtin function `encode-char' in
2448         UTF-2000; add new symbols `min-code', `max-code', `mother',
2449         `conversion' and `94x60'; delete symbols `mojikyo',
2450         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2451         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2452         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2453         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2454
2455         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2456         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2457
2458         * char-ucs.h (Vcharset_mojikyo): Deleted.
2459         (Vcharset_mojikyo_2022_1): Deleted.
2460         (LEADING_BYTE_MOJIKYO): Deleted.
2461         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2462         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2463         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2464         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2465         add new member `mother'; add new member `conversion'.
2466         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2467         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2468         (CHARSET_MOTHER): New macro.
2469         (CHARSET_CONVERSION): New macro.
2470         (CONVERSION_IDENTICAL): New macro.
2471         (CONVERSION_94x60): New macro.
2472         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2473         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2474         (XCHARSET_MOTHER): New macro.
2475         (XCHARSET_CONVERSION): New macro.
2476         (MIN_CHAR_MOJIKYO): Deleted.
2477         (MAX_CHAR_MOJIKYO): Deleted.
2478         (DECODE_MOJIKYO_2022): Deleted.
2479         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2480         (charset_code_point): Changed to non-inline function.
2481         (encode_char_1): Use `charset_code_point'.
2482         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2483
2484 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2485
2486         * lread.c (read_compiled_function): Fix prototype.
2487         (read_vector): Likewise.
2488
2489 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2490
2491         * lrecord.h (struct lrecord_header): Delete `older'.
2492         (set_lheader_implementation): Delete code for `older'.
2493         (set_lheader_older_implementation): Deleted.
2494         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2495         (OLDER_RECORD_P): Deleted.
2496         (OLDER_RECORD_HEADER_P): Deleted.
2497         (alloc_older_lcrecord): Deleted.
2498         (alloc_older_lcrecord_type): Deleted.
2499
2500         * alloc.c (all_older_lcrecords): Deleted.
2501         (alloc_older_lcrecord): Deleted.
2502         (disksave_object_finalization_1): Delete code for older objects.
2503         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2504         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2505
2506 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2507
2508         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2509         instead of `make_older_vector'.
2510         (put_char_ccs_code_point): Likewise.
2511         (mark_charset): Mark `cs->decoding_table'.
2512         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2513
2514         * lisp.h (make_older_vector): Deleted.
2515         (make_vector_newer): Deleted.
2516
2517         * config.h.in (HAVE_GGC): Deleted.
2518
2519         * alloc.c (make_older_vector): Deleted.
2520         (make_vector_newer_1): Deleted.
2521         (make_vector_newer): Deleted.
2522
2523 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2524
2525         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2526         (Qideograph_daikanwa_2): New variable.
2527         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2528         (complex_vars_of_mule_charset): Add new coded-charset
2529         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2530         `LEADING_BYTE_DAIKANWA'.
2531
2532         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2533         (LEADING_BYTE_DAIKANWA_1): New macro.
2534         (LEADING_BYTE_DAIKANWA_2): New macro.
2535         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2536
2537 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2538
2539         * mule-charset.c (complex_vars_of_mule_charset): Change
2540         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2541         the second revised version.
2542
2543 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2544
2545         * mule-charset.c (Vcharset_ucs_smp): New variable.
2546         (Vcharset_ucs_sip): New variable.
2547         (Qucs_smp): New variable.
2548         (Qucs_sip): New variable.
2549         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2550         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2551         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2552         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2553         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2554         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2555
2556         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2557         (LEADING_BYTE_UCS_SIP): New macro.
2558         (MIN_CHAR_SMP): New macro.
2559         (MAX_CHAR_SMP): New macro.
2560         (MIN_CHAR_SIP): New macro.
2561         (MAX_CHAR_SIP): New macro.
2562
2563 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2564
2565         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2566         utf-2000.
2567
2568 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2569
2570         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2571         value; don't store value into `encoding_table' of `Lisp_Charset'.
2572         (mark_charset): `encoding_table' was deleted.
2573         (charset_description): Likewise.
2574         (make_charset): Likewise.
2575         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2576         `put_char_ccs_code_point'.
2577
2578         * chartab.h (Fput_char_attribute): New EXFUN.
2579
2580         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2581         is unified with normal symbol space.
2582         (Fget_char_attribute): Likewise.
2583         (Fput_char_attribute): Likewise; behavior of
2584         `put_char_ccs_code_point' is changed.
2585
2586         * char-ucs.h: Include "elhash.h".
2587         (Vchar_attribute_hash_table): New external variable.
2588         (struct Lisp_Charset): Delete `encoding_table'.
2589         (CHARSET_ENCODING_TABLE): New implementation; refer
2590         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2591         `Lisp_Charset'.
2592
2593 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2594
2595         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2596         (cs) == 0.
2597
2598 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2599
2600         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2601         `chinese-big5'.
2602
2603 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2604
2605         * chartab.c (uint8_byte_table_description): New constant.
2606         (uint8-byte-table): Use `uint8_byte_table_description'.
2607         (uint16_byte_table_description): New constant.
2608         (uint16-byte-table): Use `uint16_byte_table_description'.
2609
2610 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2611
2612         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2613         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2614
2615 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2616
2617         * mule-charset.c (Vcharset_ucs_ks): New variable.
2618         (Qucs_ks): New variable.
2619         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2620         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2621
2622         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2623
2624 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2625
2626         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2627         (Fdecode_char): Likewise.
2628
2629         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2630         chartab.h.
2631         (Fdefine_char): Modify for Fdecode_char.
2632         (Ffind_char): Likewise.
2633
2634         * mule-charset.c (Fdecode_char): Add new optional argument
2635         `defined-only'.
2636         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2637
2638 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2639
2640         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2641         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2642         (allocate_coding_system): Initialize initial-charsets of
2643         CODESYS_BIG5 in XEmacs UTF-2000.
2644         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2645         CODESYS_BIG5 in XEmacs UTF-2000.
2646         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2647         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2648
2649         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2650         variables.
2651         (Qideograph_hanziku_{1 .. 12}): Likewise.
2652         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2653         .. 12}'.
2654         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2655         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2656         `ideograph-hanziku-{1 .. 12}'.
2657
2658         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2659         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2660         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2661         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2662         (DECODE_DEFINED_CHAR): New inline function.
2663         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2664
2665 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2666
2667         * mule-charset.c (Vcharset_china3_jef): Renamed from
2668         `Vcharset_japanese_jef_china3'.
2669         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2670         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2671         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2672         (syms_of_mule_charset): Rename `china3-jef' from
2673         `japanese-jef-china3'.
2674         (complex_vars_of_mule_charset): Likewise; rename
2675         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2676
2677         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2678         `LEADING_BYTE_JEF_CHINA3'.
2679         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2680         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2681
2682 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2683
2684         * mule-charset.c (encode_builtin_char_1): Comment out special code
2685         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2686
2687         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2688         (MAX_CHAR_MOJIKYO_0): Comment out.
2689         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2690         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2691         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2692         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2693
2694 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2695
2696         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2697         (Qideograph_cbeta): New variable.
2698         (encode_builtin_char_1): Comment out special code for
2699         coded-charset `mojikyo' and `japanese-jef-china3'.
2700         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2701         (complex_vars_of_mule_charset): Add new coded-charset
2702         `ideograph-cbeta'.
2703
2704         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2705         (MIN_CHAR_CBETA): New macro.
2706         (MAX_CHAR_CBETA): New macro.
2707
2708 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2709
2710         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2711         (LEADING_BYTE_JEF_CHINA3): New macro.
2712         (MIN_CHAR_JEF_CHINA3): New macro.
2713         (MAX_CHAR_JEF_CHINA3): Likewise.
2714         (DECODE_CHAR): Fixed.
2715
2716 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2717
2718         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2719         (Qjapanese_jef_china3): New variable.
2720         (encode_builtin_char_1): Support `japanese-jef-china3'.
2721         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2722         (complex_vars_of_mule_charset): Add new coded-charset
2723         `japanese-jef-china3'.
2724
2725 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2726
2727         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2728         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2729         94^4, 96^3, 96^4, 128^n and 256^n set.
2730         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2731         (map_char_table): Likewise.
2732
2733 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2734
2735         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2736         UTF-2000.
2737
2738 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2739
2740         * chartab.h (get_char_id_table): New inline function.
2741
2742         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2743         function.
2744
2745 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2746
2747         * chartab.h (decode_char_table_range): New prototype in XEmacs
2748         UTF-2000.
2749         (put_char_id_table): New inline function in XEmacs UTF-2000.
2750
2751         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2752         function.
2753         (decode_char_table_range): Delete static declaration in XEmacs
2754         UTF-2000.
2755
2756 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2757
2758         * chartab.c (put_char_id_table): Use `put_char_table'.
2759
2760 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2761
2762         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2763         (map_over_uint16_byte_table): Likewise.
2764         (map_over_byte_table): Likewise.
2765         (map_char_table): Modify for `map_over_uint8_byte_table',
2766         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2767         UTF-2000.
2768
2769 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2770
2771         * chartab.c (struct map_char_table_for_charset_arg): New
2772         structure.
2773         (map_char_table_for_charset_fun): New function.
2774         (map_char_table): Use `map_char_table' for encoding_table of
2775         `range->charset'.
2776
2777 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2778
2779         * chartab.c (map_char_table): Check a character is found in
2780         range->charset instead of non default value is defined in
2781         char-table when range is CHARTAB_RANGE_ROW.
2782
2783 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2784
2785         * chartab.c (map_char_id_table): Deleted.
2786         (Fmap_char_attribute): Use `map_char_table' instead of
2787         `map_char_id_table'.
2788
2789 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2790
2791         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2792         UTF-2000.
2793         (update_syntax_table): Deleted in XEmacs UTF-2000.
2794
2795         * syntax.c (find_defun_start): Use `syntax_table' instead of
2796         `mirror_syntax_table' in XEmacs UTF-2000.
2797         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2798         UTF-2000.
2799         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2800         XEmacs UTF-2000.
2801         (Fmatching_paren): Likewise.
2802         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2803         in XEmacs UTF-2000.
2804         (find_start_of_comment): Likewise.
2805         (find_end_of_comment): Likewise.
2806         (Fforward_comment): Likewise.
2807         (scan_lists): Likewise.
2808         (char_quoted): Likewise.
2809         (Fbackward_prefix_chars): Likewise.
2810         (scan_sexps_forward): Likewise.
2811         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2812         (update_syntax_table): Likewise.
2813
2814         * search.c (skip_chars): Use `syntax_table' instead of
2815         `mirror_syntax_table' in XEmacs UTF-2000.
2816         (wordify): Likewise.
2817         (Freplace_match): Likewise.
2818
2819         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2820         `mirror_syntax_table' in XEmacs UTF-2000.
2821         (WORDCHAR_P_UNSAFE): Likewise.
2822         (re_match_2_internal): Likewise.
2823
2824         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2825         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2826
2827         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2828         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2829
2830         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2831         XEmacs UTF-2000.
2832
2833         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2834         UTF-2000.
2835         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2836         (char_table_description): Delete `mirror_table' in XEmacs
2837         UTF-2000.
2838         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2839         UTF-2000.
2840         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2841         (Fcopy_char_table): Likewise.
2842         (put_char_table): Don't call `update_syntax_table' in XEmacs
2843         UTF-2000.
2844
2845         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2846         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2847         (casify_region_internal): Likewise.
2848
2849         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2850
2851         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2852         `mirror_syntax_table' in XEmacs UTF-2000.
2853
2854         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2855         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2856         (Fexpand_abbrev): Likewise.
2857
2858 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2859
2860         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2861
2862 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2863
2864         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2865         (map_over_uint16_byte_table): Likewise.
2866         (map_over_byte_table): Likewise.
2867         (get_char_id_table): Refer `cit->default_value'.
2868         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2869         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2870         of character-id ranges.
2871         (mark_char_table): Mark `ct->default_value'.
2872         (char_table_description): Add `default_value'.
2873         (fill_char_table): Use `default_value'.
2874         (decode_char_table_range): Decode `nil' as
2875         `CHARTAB_RANGE_DEFAULT'.
2876         (get_char_id_table): Refer `cit->default_value'.
2877         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2878         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2879         temporary hack; check value of char-table is bound or not.
2880         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2881
2882         * chartab.h (struct Lisp_Char_Table): Add new member
2883         `default_value' in XEmacs UTF-2000.
2884         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2885         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2886         UTF-2000.
2887
2888 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2889
2890         * chartab.h (Lisp_Char_ID_Table): Deleted.
2891
2892         * chartab.c (char_table_description): Fix typo.
2893         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2894         `Lisp_Char_ID_Table'.
2895
2896 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2897
2898         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2899         `CHAR_ID_TABLE_P'.
2900
2901         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2902         `CHAR_ID_TABLE_P'.
2903
2904         * chartab.h (XCHAR_ID_TABLE): Deleted.
2905         (XSETCHAR_ID_TABLE): Deleted.
2906         (CHAR_ID_TABLE_P): Deleted.
2907
2908         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2909         `CHAR_ID_TABLE_P'.
2910         (Fget_composite_char): Likewise.
2911         (put_char_table): Likewise.
2912         (add_char_attribute_alist_mapper): Fixed.
2913         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2914         `CHAR_ID_TABLE_P'.
2915         (Fget_char_attribute): Likewise.
2916         (Fget_char_attribute): Likewise.
2917         (Fmap_char_attribute): Likewise.
2918
2919         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2920         `CHAR_ID_TABLE_P'.
2921         (encode_char_1): Likewise.
2922
2923 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2924
2925         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2926         `XCHAR_ID_TABLE'.
2927
2928         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2929         instead of `XCHAR_ID_TABLE'.
2930         (remove_char_ccs): Likewise.
2931
2932         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2933         `XCHAR_ID_TABLE'.
2934         (Fget_composite_char): Likewise.
2935         (Fchar_variants): Likewise.
2936         (put_char_table): Likewise.
2937         (add_char_attribute_alist_mapper): Likewise.
2938         (Fchar_attribute_alist): Likewise.
2939         (Fget_char_attribute): Likewise.
2940         (Fput_char_attribute): Likewise.
2941         (Fmap_char_attribute): Likewise.
2942         (Fmap_char_attribute): Likewise.
2943
2944         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2945         `XCHAR_ID_TABLE'.
2946         (encode_char_1): Likewise.
2947
2948 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2949
2950         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2951         `Lisp_Char_ID_Table'.
2952         (mark_char_id_table): Deleted.
2953         (print_char_id_table): Likewise.
2954         (char_id_table_equal): Likewise.
2955         (char_id_table_hash): Likewise.
2956         (char_id_table_description): Likewise.
2957         (char_id_table): Likewise.
2958         (make_char_id_table): Use `Fmake_char_table' and
2959         `fill_char_table'.
2960         (get_char_id_table): Use `Lisp_Char_Table' instead of
2961         `Lisp_Char_ID_Table'.
2962         (put_char_id_table): Likewise.
2963         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2964         `XCHAR_ID_TABLE'.
2965         (Fremove_char_attribute): Likewise.
2966         (syms_of_chartab): Don't define type `char-id-table'.
2967
2968         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2969         (char_id_table): Likewise.
2970         (GC_CHAR_ID_TABLE_P): Likewise.
2971         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2972         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2973         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2974         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2975         (get_char_id_table): Use `Lisp_Char_Table' instead of
2976         `Lisp_Char_ID_Table'.
2977         (put_char_id_table_0): Likewise.
2978         (put_char_id_table): Likewise.
2979
2980 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2981
2982         * chartab.h: Lisp_Byte_Table related codes are moved from
2983         chartab.h.
2984
2985         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2986
2987 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2988
2989         * chartab.h: Don't include "chartab.h".
2990         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2991         (Lisp_Char_ID_Table): Likewise.
2992         (char_id_table): Likewise.
2993         (XCHAR_ID_TABLE): Likewise.
2994         (XSETCHAR_ID_TABLE): Likewise.
2995         (CHAR_ID_TABLE_P): Likewise.
2996         (GC_CHAR_ID_TABLE_P): Likewise.
2997         (get_char_id_table): Likewise.
2998
2999         * char-ucs.h: Include "chartab.h".
3000         (struct Lisp_Char_ID_Table): Moved to chartab.h.
3001         (Lisp_Char_ID_Table): Likewise.
3002         (char_id_table): Likewise.
3003         (XCHAR_ID_TABLE): Likewise.
3004         (XSETCHAR_ID_TABLE): Likewise.
3005         (CHAR_ID_TABLE_P): Likewise.
3006         (GC_CHAR_ID_TABLE_P): Likewise.
3007         (get_char_id_table): Likewise.
3008
3009 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3010
3011         * chartab.c (copy_uint8_byte_table): New function.
3012         (copy_uint16_byte_table): New function.
3013         (copy_byte_table): New function.
3014         (map_over_uint8_byte_table): Modify to avoid huge numbers of
3015         characters to call.
3016         (map_over_uint16_byte_table): Likewise.
3017         (map_over_byte_table): Likewise.
3018         (get_byte_table): Move prototype to chartab.h.
3019         (put_byte_table): Likewise.
3020         (put_char_id_table_0): Moved to chartab.h.
3021         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
3022         (char_table_entry_equal): Likewise.
3023         (char_table_entry_hash): Likewise.
3024         (char_table_entry_description): Likewise.
3025         (char_table_entry): Likewise.
3026         (make_char_table_entry): Likewise.
3027         (copy_char_table_entry): Likewise.
3028         (get_non_ascii_char_table_value): Likewise.
3029         (map_over_charset_ascii): Likewise.
3030         (map_over_charset_control_1): Likewise.
3031         (map_over_charset_row): Likewise.
3032         (map_over_other_charset): Likewise.
3033         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
3034         (print_char_table): Likewise.
3035         (char_table_equal): Likewise.
3036         (char_table_hash): Likewise.
3037         (char_table_description): Likewise.
3038         (fill_char_table): Likewise.
3039         (Fcopy_char_table): Likewise.
3040         (get_char_table): Likewise.
3041         (Fget_range_char_table): Likewise.
3042         (put_char_table): Likewise.
3043         (map_char_table): Likewise.
3044         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
3045         UTF-2000.
3046
3047 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3048
3049         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
3050         `Vauto_fill_chars' in XEmacs UTF-2000.
3051
3052         * chartab.h (get_byte_table): New prototype [moved from
3053         chartab.c].
3054         (put_byte_table): Likewise [moved from chartab.c].
3055         (put_char_id_table_0): New inline function [moved from chartab.c].
3056         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
3057         (Lisp_Char_Table_Entry): Likewise.
3058         (char_table_entry): Likewise.
3059         (XCHAR_TABLE_ENTRY): Likewise.
3060         (XSETCHAR_TABLE_ENTRY): Likewise.
3061         (CHAR_TABLE_ENTRYP): Likewise.
3062         (CHECK_CHAR_TABLE_ENTRY): Likewise.
3063         (NUM_ASCII_CHARS): Likewise.
3064         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
3065         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
3066
3067 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3068
3069         * chartab.c (get_char_id_table): Change interface.
3070         (put_char_id_table_0): New function.
3071         (put_char_id_table): Change interface; new implementation.
3072         (Fget_composite_char): Modify for interface change of
3073         `get_char_id_table'.
3074         (Fchar_variants): Likewise.
3075         (add_char_attribute_alist_mapper): Likewise.
3076         (Fchar_attribute_alist): Likewise.
3077         (Fget_char_attribute): Likewise.
3078         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
3079         as same as character as the first argument like `put-char-table';
3080         modify for interface change of `put_char_id_table'.
3081         (Fremove_char_attribute): Modify for interface change of
3082         `put_char_id_table'.
3083
3084 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3085
3086         * text-coding.c: Sync up with XEmacs 21.2.41.
3087         (COMPOSE_ADD_CHAR): Modify for interface change of
3088         `get_char_id_table'.
3089
3090         * mule-charset.c (put_char_ccs_code_point): Modify for interface
3091         change of `put_char_id_table'.
3092         (remove_char_ccs): Likewise.
3093
3094         * chartab.h (put_char_id_table): Change interface.
3095
3096         * char-ucs.h (get_char_id_table): Change interface.
3097         (charset_code_point): Modify for interface change of
3098         `get_char_id_table'.
3099         (encode_char_1): Likewise.
3100
3101 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3102
3103         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3104         argument `ccs'.
3105         (map_over_uint16_byte_table): Likewise.
3106         (map_over_byte_table): Likewise.
3107         (map_char_id_table): Add new argument `range' like
3108         `map_char_table'.
3109         (Fmap_char_attribute): Add new argument `range' like
3110         `Fmap_char_table'.
3111
3112 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3113
3114         * chartab.c (map_over_uint8_byte_table): Change interface of
3115         mapping function to use struct chartab_range instead of Emchar.
3116         (map_over_uint16_byte_table): Likewise.
3117         (map_over_byte_table): Likewise.
3118         (map_char_id_table): Likewise.
3119         (struct slow_map_char_id_table_arg): Deleted.
3120         (slow_map_char_id_table_fun): Deleted.
3121         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3122         function `slow_map_char_table_fun' instead of struct
3123         `slow_map_char_id_table_arg' and function
3124         `slow_map_char_id_table_fun'.
3125
3126 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3127
3128         * mule-charset.c: Move char-it-table related codes to chartab.c.
3129         (Vutf_2000_version): Moved to chartab.c.
3130         (Fdefine_char): Likewise.
3131         (Ffind_char): Likewise.
3132         (syms_of_mule_charset): Move types `uint8-byte-table',
3133         `uint16-byte-table', `byte-table' and `char-id-table' to
3134         chartab.c; move functions `char_attribute_list,
3135         `find_char_attribute_table, `char_attribute_alist,
3136         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3137         `map_char_attribute, `define_char, `find_char, `char_variants and
3138         `get_composite_char to chartab.c; move symbols `=>ucs',
3139         `->decomposition', `compat', `isolated', `initial', `medial',
3140         `final', `vertical', `noBreak', `fraction', `super', `sub',
3141         `circle', `square', `wide', `narrow', `small' and `font' to
3142         chartab.c.
3143         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3144         setting codes for `Vcharacter_composition_table' and
3145         `Vcharacter_variant_table' to chartab.c.
3146         (complex_vars_of_mule_charset): Move setting code for
3147         `Vchar_attribute_hash_table' to chartab.c.
3148
3149         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3150         (make_char_id_table): New prototype.
3151         (put_char_id_table): Likewise.
3152         (Fget_char_attribute): Likewise.
3153
3154         * chartab.c: Move char-id-table related code from mule-charset.c.
3155         (Vutf_2000_version): Moved from mule-charset.c.
3156
3157         * char-ucs.h (Qucs): New external variable.
3158         (put_char_ccs_code_point): New prototype.
3159         (remove_char_ccs): Likewise.
3160
3161 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3162
3163         * mule-charset.c (Vcharset_ucs_jis): New variable.
3164         (Qucs_jis): Likewise.
3165         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3166         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3167
3168         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3169
3170 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3171
3172         * mule-charset.c (map_over_uint8_byte_table): New function.
3173         (map_over_uint16_byte_table): Likewise.
3174         (map_over_byte_table): Likewise.
3175         (map_char_id_table): Likewise.
3176         (slow_map_char_id_table_fun): Likewise.
3177         (Fmap_char_attribute): Likewise.
3178         (syms_of_mule_charset): Add new function `map-char-attribute'.
3179
3180 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3181
3182         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3183         (syms_of_mule_charset): Add new function `find-char'.
3184
3185 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3186
3187         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3188         XEmacs UTF-2000.
3189         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3190         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3191         XEmacs UTF-2000.
3192         (complex_vars_of_mule_charset): Add new coded-charset
3193         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3194         `ideograph-gt-pj-*'.
3195
3196         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3197
3198 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3199
3200         * mule-charset.c (encode_builtin_char_1): Purge codes about
3201         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3202         {MIN|MAX}_CHAR_HEBREW.
3203         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3204         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3205
3206         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3207         (MAX_CHAR_GREEK): Purged.
3208         (MIN_CHAR_CYRILLIC): Purged.
3209         (MAX_CHAR_CYRILLIC): Purged.
3210         (MIN_CHAR_HEBREW): Commented out.
3211         (MAX_CHAR_HEBREW): Likewise.
3212
3213 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3214
3215         * mule-charset.c (Qto_ucs): New variable.
3216         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3217         (Fdefine_char): Likewise.
3218         (syms_of_mule_charset): Add new symbol `=>ucs'.
3219
3220 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3221
3222         * mule-charset.c (Fdecode_char): Fixed.
3223
3224 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3225
3226         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3227         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3228         "tcvn5712-1".
3229
3230 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3231
3232         * mule-charset.c (Vcharset_ucs_big5): New variable.
3233         (Qucs_big5): Likewise.
3234         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3235         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3236
3237         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3238
3239 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3240
3241         * mule-charset.c (decode_builtin_char): Check Big5 code range
3242         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3243
3244 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3245
3246         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3247         (Qchinese_gb12345): Likewise.
3248         (Fdecode_builtin_char): Fixed.
3249         (syms_of_mule_charset): Add `chinese-gb12345'.
3250         (complex_vars_of_mule_charset): Add coded-charset
3251         `chinese-gb12345'.
3252
3253         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3254         (LEADING_BYTE_CHINESE_GB12345): New macro.
3255
3256 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3257
3258         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3259         and `latin-viscii-upper' for `latin-viscii'.
3260
3261 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3262
3263         * mule-charset.c (Fdecode_builtin_char): Comment out
3264         regularization code for ISO-IR GR representation.
3265
3266 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3267
3268         * mule-charset.c (decode_builtin_char): New function; renamed from
3269         `make_builtin_char'; return -1 instead of signal.
3270         (Fdecode_builtin_char): Use `decode_builtin_char'.
3271
3272         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3273         `make_builtin_char'.
3274         (DECODE_CHAR): Use `decode_builtin_char' instead of
3275         `make_builtin_char'; use mapping table of `chinese-big5' for
3276         `chinese-big5-{1,2}'.
3277
3278 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3279
3280         * text-coding.c (char_encode_big5): New function.
3281         (char_finish_big5): Likewise.
3282         (reset_encoding_stream): Use `char_encode_big5' and
3283         `char_finish_big5' for CODESYS_BIG5.
3284         (mule_encode): Don't use `encode_coding_big5'.
3285         (encode_coding_big5): Deleted.
3286
3287 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3288
3289         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3290         0x81- in XEmacs UTF-2000.
3291         (detect_coding_big5): Likewise.
3292
3293 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3294
3295         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3296         generate character-id if the CCS property does not have
3297         corresponding predefined character.
3298         (make_builtin_char): Return -1 if corresponding predefined
3299         character is not found.
3300         (Fdecode_char): Return nil if corresponding character is not
3301         found.
3302         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3303         don't map to builtin ucs space.
3304
3305 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3306
3307         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3308         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3309
3310 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3311
3312         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3313         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3314         (Qideograph_gt): Likewise.
3315         (Qideograph_gt_pj_{1..11}): Likewise.
3316         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3317         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3318         `ideograph-gt-pj-11'.
3319         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3320         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3321         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3322
3323         * char-ucs.h (LEADING_BYTE_GT): New macro.
3324         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3325         (MIN_CHAR_GT): Likewise.
3326         (MAX_CHAR_GT): Likewise.
3327
3328 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3329
3330         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3331         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3332
3333         * doprnt.c (unsigned_int_converters): Add `c'.
3334         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3335
3336         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3337         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3338         `MIN_CHAR_MOJIKYO'.
3339         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3340         (MAX_CHAR_MOJIKYO_0): New macro.
3341         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3342
3343 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3344
3345         * mule-charset.c (Fdefine_char): Delete cemented out code.
3346         (encode_builtin_char_1): Modify for new allocation of builtin
3347         Mojikyo characters.
3348
3349         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3350
3351 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3352
3353         * mule-charset.c (Vcharset_ucs_cns): New variable.
3354         (Qucs_cns): New variable.
3355         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3356         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3357
3358 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3359
3360         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3361
3362 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3363
3364         * search.c (search_buffer): Make `charset_base_code' as
3365         character-id >> 6 to eliminate the corresponding last byte in
3366         UTF-8 representation [I'm not sure it is right thing].
3367         (boyer_moore): Likewise.
3368
3369 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3370
3371         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3372         representation in MULE.
3373
3374 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3375
3376         * text-coding.c (Fmake_coding_system): Use
3377         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3378         `EXTERNAL_PROPERTY_LIST_LOOP'.
3379
3380 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3381
3382         * text-coding.c (decode_output_utf8_partial_char): New function.
3383         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3384
3385 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3386
3387         * text-coding.c (decode_coding_utf8): Output original byte
3388         sequence if it is broken; change order of conditions.
3389
3390         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3391         of conditions.
3392
3393         * mb-multibyte.h (BYTE_ASCII_P):
3394         Use bit ops for char-signedness safety.
3395         (BYTE_C0_P): Use bit ops for char-signedness safety.
3396         (BYTE_C1_P): Use bit ops for char-signedness safety.
3397
3398         * character.h: (XCHAR_OR_CHAR_INT):
3399         Always use inline function.
3400         Remove redundant type checking assert() - XINT will abort quite
3401         nicely.
3402
3403 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3404
3405         * text-coding.c: (Fencode_shift_jis_char):
3406         (Fencode_big5_char):
3407         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3408         Replace 0 with '\0' when working with bytes.
3409         Replace initial "(" with "\(" in docstrings.
3410
3411         (Fmake_coding_system):
3412         When type is ccl and value is vector, register it with a proper
3413         symbol.  And checks whether the given ccl program is valid.
3414         (mule_decode): When calling ccl_driver, if src indicates
3415         NULL pointer, set an empty string instead.
3416         (mule_encode): Likewise.
3417
3418         (detect_eol_type):
3419         (detect_coding_sjis):
3420         (decode_coding_sjis):
3421         (detect_coding_big5):
3422         (decode_coding_big5):
3423         (detect_coding_ucs4):
3424         (decode_coding_ucs4):
3425         (detect_coding_utf8):
3426         (decode_coding_utf8):
3427         (detect_coding_iso2022):
3428         (decode_coding_iso2022):
3429         (decode_coding_no_conversion):
3430         (mule_decode):
3431         Make all detecting and decoding functions take an Extbyte * arg.
3432         (text_encode_generic):
3433         (encode_coding_big5):
3434         (encode_coding_no_conversion):
3435         (mule_encode):
3436         Make all encoding functions take a Bufbyte * arg.
3437         Use size_t instead of unsigned int for memory sizes.
3438         Only cast to unsigned char whenever dereferencing Extbyte *.
3439
3440         (struct lrecord_description fcd_description_1): Use countof.
3441         (complex_vars_of_file_coding):
3442         Use countof instead of sizeof.
3443         Use CHECK_NATNUM instead of CHECK_INT.
3444
3445 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3446
3447         * mule-charset.c (Fget_char_attribute): Add new optional argument
3448         `default-value'.
3449         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3450         (remove_char_ccs): Likewise.
3451
3452 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3453
3454         * text-coding.c (char_encode_shift_jis): New implementation in
3455         UTF-2000.
3456         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3457         ...)'.
3458
3459         * mule-charset.c (Vcharset_chinese_big5): New variable in
3460         UTF-2000.
3461         (Qchinese_big5): New variable in UTF-2000.
3462         (BIG5_SAME_ROW): New macro in UTF-2000.
3463         (make_builtin_char): Use builtin characters of
3464         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3465         characters of `Vcharset_chinese_big5'.
3466         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3467         (complex_vars_of_mule_charset): Add new coded-charset
3468         `chinese-big5' in UTF-2000.
3469
3470         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3471         (Vcharset_chinese_big5): New external variable declaration.
3472         (Vcharset_japanese_jisx0208_1990): Likewise.
3473
3474 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3475
3476         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3477         function.
3478         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3479
3480 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3481
3482         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3483         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3484         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3485         `mojikyo-pj-*'.
3486
3487 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3488
3489         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3490
3491 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3492
3493         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3494         to 0.17.
3495
3496 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3497
3498         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3499         for `CHARSET_BY_ATTRIBUTES'.
3500         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3501         `CHARSET_BY_ATTRIBUTES'.
3502
3503         * text-coding.c (struct decoding_stream): Rename member `CH' to
3504         `CPOS'.
3505         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3506         (decode_coding_sjis): Likewise.
3507         (decode_coding_big5): Likewise.
3508         (decode_coding_ucs4): Likewise.
3509         (decode_coding_utf8): Likewise.
3510         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3511         `CHARSET_BY_ATTRIBUTES'.
3512         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3513         `str->counter'; decode 3, 4 bytes sets.
3514         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3515         sets.
3516         (decode_coding_no_conversion): Use `str->cpos' instead of
3517         `str->ch'.
3518
3519         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3520         (Qmojikyo_2022_1): New variable.
3521         (make_charset): Don't use `CHARSET_TYPE_*'.
3522         (range_charset_code_point): Support coded-charset
3523         `mojikyo-2022-1'.
3524         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3525         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3526         `CHARSET_BY_ATTRIBUTES'.
3527         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3528         `CHARSET_BY_ATTRIBUTES'.
3529         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3530         (complex_vars_of_mule_charset): Add new coded-charset
3531         `mojikyo-2022-1'.
3532
3533         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3534         interface; changed to inline function.
3535
3536         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3537         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3538         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3539         (CHARSET_TYPE_94): Deleted.
3540         (CHARSET_TYPE_94X94): Deleted.
3541         (CHARSET_TYPE_96): Deleted.
3542         (CHARSET_TYPE_96X96): Deleted.
3543         (CHARSET_TYPE_128): Deleted.
3544         (CHARSET_TYPE_128X128): Deleted.
3545         (CHARSET_TYPE_256): Deleted.
3546         (CHARSET_TYPE_256X256): Deleted.
3547         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3548         to inline function.
3549         (DECODE_MOJIKYO_2022): New inline function.
3550         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3551         `Vcharset_mojikyo_2022_1'.
3552
3553 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3554
3555         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3556         instead of `EQ'.
3557         (put_byte_table): Likewise.
3558         (char_id_table_equal): Use `get_byte_table' [new implementation].
3559
3560 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3561
3562         * mule-charset.c: Include <limits.h> in UTF-2000.
3563         (BT_UINT8_MIN): New macro in UTF-2000.
3564         (BT_UINT8_MAX): New macro in UTF-2000.
3565         (BT_UINT8_t): New macro in UTF-2000.
3566         (BT_UINT8_nil): New macro in UTF-2000.
3567         (BT_UINT8_unbound): New macro in UTF-2000.
3568         (INT_UINT8_P): New inline function in UTF-2000.
3569         (UINT8_VALUE_P): New inline function in UTF-2000.
3570         (UINT8_ENCODE): New inline function in UTF-2000.
3571         (UINT8_DECODE): New inline function in UTF-2000.
3572         (mark_uint8_byte_table): New function in UTF-2000.
3573         (print_uint8_byte_table): New function in UTF-2000.
3574         (uint8_byte_table_equal): New function in UTF-2000.
3575         (uint8_byte_table_hash): New function in UTF-2000.
3576         (make_uint8_byte_table): New function in UTF-2000.
3577         (uint8_byte_table_same_value_p): New function in UTF-2000.
3578         (BT_UINT16_MIN): New macro in UTF-2000.
3579         (BT_UINT16_MAX): New macro in UTF-2000.
3580         (BT_UINT16_t): New macro in UTF-2000.
3581         (BT_UINT16_nil): New macro in UTF-2000.
3582         (BT_UINT16_unbound): New macro in UTF-2000.
3583         (INT_UINT16_P): New inline function in UTF-2000.
3584         (UINT16_VALUE_P): New inline function in UTF-2000.
3585         (UINT16_ENCODE): New inline function in UTF-2000.
3586         (UINT16_DECODE): New inline function in UTF-2000.
3587         (UINT8_TO_UINT16): New inline function in UTF-2000.
3588         (mark_uint16_byte_table): New function in UTF-2000.
3589         (print_uint16_byte_table): New function in UTF-2000.
3590         (uint16_byte_table_equal): New function in UTF-2000.
3591         (uint16_byte_table_hash): New function in UTF-2000.
3592         (make_uint16_byte_table): New function in UTF-2000.
3593         (uint16_byte_table_same_value_p): New function in UTF-2000.
3594         (print_byte_table): New function in UTF-2000.
3595         (byte-table): Use `print_byte_table' as printer.
3596         (make_byte_table): Delete second argument `older'.
3597         (byte_table_same_value_p): New function in UTF-2000.
3598         (copy_byte_table): Deleted.
3599         (get_byte_table): New function in UTF-2000.
3600         (put_byte_table): New function in UTF-2000.
3601         (print_char_id_table): New function in UTF-2000.
3602         (char-id-table): Use `print_char_id_table' as printer.
3603         (make_char_id_table): Delete second argument `older'.
3604         (get_char_id_table): Use `get_byte_table [new implementation].
3605         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3606         implementation].
3607         (Ffind_char_attribute_table): New function in UTF-2000.
3608         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3609         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3610         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3611         (syms_of_mule_charset): Add new function
3612         `find-char-attribute-table' in UTF-2000.
3613
3614         * lrecord.h (enum lrecord_type): Add
3615         `lrecord_type_uint16_byte_table' and
3616         `lrecord_type_uint8_byte_table'.
3617
3618         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3619         (Lisp_Uint8_Byte_Table): New type.
3620         (XUINT8_BYTE_TABLE): New macro.
3621         (XSETUINT8_BYTE_TABLE): New macro.
3622         (UINT8_BYTE_TABLE_P): New macro.
3623         (GC_UINT8_BYTE_TABLE_P): New macro.
3624         (struct Lisp_Uint16_Byte_Table): New structure.
3625         (Lisp_Uint16_Byte_Table): New type.
3626         (XUINT16_BYTE_TABLE): New macro.
3627         (XSETUINT16_BYTE_TABLE): New macro.
3628         (UINT16_BYTE_TABLE_P): New macro.
3629         (GC_UINT16_BYTE_TABLE_P): New macro.
3630
3631 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3632
3633         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3634         (Vcharacter_ideographic_strokes_table): Deleted.
3635         (Vcharacter_total_strokes_table): Deleted.
3636         (Vcharacter_morohashi_daikanwa_table): Deleted.
3637         (Vcharacter_decomposition_table): Deleted.
3638         (Qname): Deleted because it is duplicated.
3639         (Qideographic_radical): Deleted.
3640         (Qideographic_strokes): Deleted.
3641         (Qtotal_strokes): Deleted.
3642         (Qmorohashi_daikanwa): Deleted.
3643         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3644         `ideographic-radical', `ideographic-strokes', `total-strokes',
3645         `morohashi-daikanwa' and `->decomposition'.
3646         (Fget_char_attribute): Likewise.
3647         (Fput_char_attribute): Likewise; use `make-vector' instead of
3648         `make_older_vector' for `->decomposition' value.
3649         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3650         `ideograph-daikanwa'.
3651         (syms_of_mule_charset): Delete builtin symbols `name',
3652         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3653         `morohashi-daikanwa'.
3654         (vars_of_mule_charset): Don't setup
3655         `Vcharacter_ideographic_radical_table',
3656         `Vcharacter_ideographic_strokes_table',
3657         `Vcharacter_total_strokes_table',
3658         `Vcharacter_morohashi_daikanwa_table' and
3659         `Vcharacter_decomposition_table'.
3660
3661 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3662
3663         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3664         `make_older_vector', `make_vector_newer_1' and
3665         `make_vector_newer'.
3666
3667         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3668         `make_older_vector' and `make_vector_newer'.
3669
3670         * config.h.in (HAVE_GGC): New macro.
3671
3672 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3673
3674         * mule-charset.c (struct char_attribute_list_closure): New
3675         structure in UTF-2000.
3676         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3677         (Fchar_attribute_list): Likewise.
3678         (Fset_charset_mapping_table): Use `make_vector_newer'.
3679         (Fdecode_builtin_char): New function in UTF-2000.
3680         (syms_of_mule_charset): Add new function `char-attribute-list' and
3681         `decode-builtin-char' in UTF-2000.
3682
3683         * lisp.h (make_vector_newer): New prototype.
3684
3685         * alloc.c (make_vector_newer_1): New function.
3686         (make_vector_newer): New function.
3687
3688 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3689
3690         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3691         50100)'.
3692
3693 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3694
3695         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3696         (Vcharacter_attribute_table): Deleted.
3697         (Vcharacter_name_table): Deleted.
3698         (put_char_attribute): Deleted.
3699         (remove_char_attribute): Deleted.
3700         (struct char_attribute_alist_closure): New structure.
3701         (add_char_attribute_alist_mapper): New function.
3702         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3703         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3704         (Fget_char_attribute): Likewise.
3705         (Fput_char_attribute): Likewise.
3706         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3707         of `remove_char_attribute'.
3708         (Fdefine_char): Return character.
3709         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3710         and `Vcharacter_name_table'.
3711         (complex_vars_of_mule_charset): Likewise
3712         `Vchar_attribute_hash_table'.
3713
3714 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3715
3716         * character.h (CHARC_CHARSET): New macro.
3717         (CHARC_CHARSET_ID): New macro.
3718         (CHARC_CODE_POINT): New macro.
3719         (CHARC_COLUMNS): New macro.
3720         (CHARC_TO_CHAR): New inline function.
3721         (CHARC_EQ): New inline function.
3722         (CHARC_ASCII_EQ): New inline function.
3723         (CHARC_IS_SPACE): New inline function.
3724         (ASCII_TO_CHARC): New inline function.
3725
3726         * char-ucs.h (encode_char_2): Deleted.
3727         (ENCODE_CHAR): Use `encode_char_1' again.
3728         (breakup_char_1): Likewise.
3729         (CHAR_TO_CHARC): New inline function.
3730
3731         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3732
3733 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3734
3735         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3736         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3737         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3738         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3739         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3740         `CHARC_IS_SPACE'.
3741         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3742
3743         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3744         `CHARC_CODE_POINT'.
3745         (x_output_display_block): Use `CHARC_CHARSET' and
3746         `CHARC_ASCII_EQ'.
3747
3748         * redisplay-tty.c (tty_output_display_block): Use
3749         `CHARC_ASCII_EQ'.
3750         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3751
3752         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3753
3754         * insdel.c (find_charsets_in_charc_string): Use
3755         `CHARC_CHARSET_ID'.
3756         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3757         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3758         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3759         (convert_charc_string_into_malloced_string): Likewise.
3760
3761 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3762
3763         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3764         instead of <Emchar_dynarr *> for buf; use
3765         `convert_bufbyte_string_into_charc_dynarr' instead of
3766         `convert_bufbyte_string_into_emchar_dynarr'; use
3767         `find_charsets_in_charc_string' instead of
3768         `find_charsets_in_emchar_string'.
3769
3770         * redisplay.h:
3771         - Include "character.h".
3772         (struct rune): New member `cglyph'; delete member `chr'.
3773
3774         * redisplay.c (redisplay_text_width_charc_string): New function;
3775         delete `redisplay_text_width_emchar_string'.
3776         (rtw_charc_dynarr): New variable; renamed from
3777         `rtw_emchar_dynarr'.
3778         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3779         `rtw_emchar_dynarr'; use
3780         `convert_bufbyte_string_into_charc_dynarr' instead of
3781         `convert_bufbyte_string_into_emchar_dynarr'; use
3782         `redisplay_text_width_charc_string' instead of
3783         `redisplay_text_width_emchar_string'.
3784         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3785         instead of `rtw_emchar_dynarr'; use
3786         `convert_bufbyte_string_into_charc_dynarr' instead of
3787         `convert_bufbyte_string_into_emchar_dynarr'.
3788         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3789         `redisplay_text_width_charc_string' instead of
3790         `redisplay_text_width_emchar_string'.
3791         (create_text_block): Modify for <struct rune> change.
3792         (generate_formatted_string_db): Likewise.
3793         (create_string_text_block): Likewise.
3794         (pixel_to_glyph_translation): Likewise.
3795
3796         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3797         instead of <const Emchar *>.
3798         (x_text_width): Likewise.
3799         (x_output_display_block): Use <Charc_dynarr *> instead
3800         <Emchar_dynarr *>; modify for <structure rune> change.
3801         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3802         *>.
3803
3804         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3805         <const Emchar *>; use `charc_string_displayed_columns' instead of
3806         `emchar_string_displayed_columns'.
3807         (tty_output_display_block): Use <Charc_dynarr *> instead of
3808         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3809         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3810         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3811         `tty_output_emchar_dynarr_dynarr'.
3812         (tty_output_charc_dynarr): New function; delete
3813         `tty_output_charc_dynarr'.
3814
3815         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3816         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3817         <Emchar_dynarr *> for buf; use
3818         `convert_bufbyte_string_into_charc_dynarr' instead of
3819         `convert_bufbyte_string_into_emchar_dynarr'.
3820
3821         * frame.c (title_string_charc_dynarr): New variable; renamed from
3822         `title_string_emchar_dynarr'.
3823         (generate_title_string): Use `title_string_charc_dynarr' instead
3824         of `title_string_emchar_dynarr'; use
3825         `convert_charc_string_into_malloced_string' instead of
3826         `convert_emchar_string_into_malloced_string'.
3827         (init_frame): Use `title_string_charc_dynarr' instead of
3828         `title_string_emchar_dynarr'.
3829
3830         * console.h:
3831         - Include "character.h".
3832         (struct console_methods): Use <const Charc *> instead of <const
3833         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3834         <Emchar_dynarr *> in output_string_method.
3835
3836         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3837         <Emchar_dynarr *>.
3838
3839         * console-stream.c (stream_text_width): Use <const Charc *>
3840         instead of <const Emchar *>.
3841
3842         * character.h (Charc_dynarr): New type.
3843
3844         * char-ucs.h (structure Charc): New structure; define new type
3845         `Charc'.
3846
3847         * char-lb.h (DECODE_CHAR): New inline function.
3848         (encode_char_1): New inline function.
3849         (ENCODE_CHAR): New macro.
3850         (structure Charc): New structure; define new type `Charc'.
3851
3852         * char-1byte.h (Vcharset_control_1): New macro.
3853         (Vcharset_latin_iso8859_1): New macro.
3854         (DECODE_CHAR): New inline function.
3855         (encode_char_1): New inline function.
3856         (ENCODE_CHAR): New macro.
3857         (structure Charc): New structure; define new type `Charc'.
3858
3859         * insdel.c (find_charsets_in_charc_string): New function; delete
3860         `find_charsets_in_emchar_string'.
3861         (charc_string_displayed_columns): New function; delete
3862         `emchar_string_displayed_columns'.
3863         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3864         `convert_bufbyte_string_into_emchar_dynarr'.
3865         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3866         `convert_charc_string_into_bufbyte_dynarr'.
3867         (convert_charc_string_into_malloced_string): New function; delete
3868         `convert_charc_string_into_malloced_string'.
3869
3870         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3871         `find_charsets_in_emchar_string'.
3872         (charc_string_displayed_columns): New prototype; delete
3873         `emchar_string_displayed_columns'.
3874         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3875         `convert_charc_string_into_bufbyte_dynarr'.
3876         (convert_charc_string_into_malloced_string): New prototype; delete
3877         `convert_charc_string_into_malloced_string'.
3878
3879 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3880
3881         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3882
3883 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3884
3885         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3886
3887         * char-ucs.h: Use <short> for <Charset_ID>.
3888
3889         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3890         <Charset_ID>.
3891
3892 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3893
3894         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3895         to 0.16.
3896
3897 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3898
3899         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3900         variable.
3901         (Qmorohashi_daikanwa): New variable.
3902         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3903         for `morohashi-daikanwa' attribute.
3904         (Fget_char_attribute): Likewise.
3905         (Fput_char_attribute): Likewise.
3906         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3907         has the same value of `ideograph-daikanwa'.
3908         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3909         (vars_of_mule_charset): Setup
3910         `Vcharacter_morohashi_daikanwa_table'.
3911
3912 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3913
3914         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3915         attributes.
3916         (add_charset_to_list_mapper): Add `key' instead of
3917         `XCHARSET_NAME (value)' to return aliases.
3918
3919 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3920
3921         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3922         variable.
3923         (Vcharacter_ideographic_strokes_table): New variable.
3924         (Qideographic_radical): New variable.
3925         (Qideographic_strokes): New variable.
3926         (Fchar_attribute_alist): Use
3927         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3928         attribute; use `Vcharacter_ideographic_strokes_table' for
3929         `ideographic-strokes' attribute.
3930         (Fget_char_attribute): Likewise.
3931         (Fput_char_attribute): Likewise.
3932         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3933         `ideographic-strokes'.
3934         (vars_of_mule_charset): Setup
3935         `Vcharacter_ideographic_radical_table' and
3936         `Vcharacter_ideographic_strokes_table'.
3937
3938 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3939
3940         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3941         (Qtotal_strokes): New variable.
3942         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3943         `total-strokes' attribute.
3944         (Fget_char_attribute): Likewise.
3945         (Fput_char_attribute): Likewise.
3946         (syms_of_mule_charset): Add new symbol `total-strokes'.
3947         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3948
3949 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3950
3951         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3952         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3953         are found.
3954         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3955         `->decomposition' attribute.
3956         (Fput_char_attribute): Likewise.
3957         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3958
3959 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3960
3961         * mule-charset.c (decoding_table_check_elements): New function.
3962         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3963
3964 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3965
3966         * mule-charset.c (Fset_charset_mapping_table): Use
3967         `put_char_ccs_code_point'.
3968
3969 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3970
3971         * mule-charset.c (decoding_table_put_char): New inline function.
3972         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3973
3974 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3975
3976         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3977         (XCHARSET_BYTE_SIZE): New macro.
3978         (decoding_table_remove_char): New inline function.
3979         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3980         `decoding_table_remove_char'.
3981         (remove_char_ccs): Use `decoding_table_remove_char'.
3982         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3983
3984 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3985
3986         * mule-charset.c (Vcharacter_name_table): New variable.
3987         (Qname): New variable.
3988         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3989         attribute.
3990         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3991         `Vcharacter_name_table' for `name' attribute.
3992         (Fremove_char_attribute): Use function `remove_char_ccs'.
3993         (put_char_ccs_code_point): New function.
3994         (remove_char_ccs): New function.
3995         (syms_of_mule_charset): Add new symbol `name'.
3996         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3997
3998 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3999
4000         * mule-charset.c (make_byte_table): Add new argument `older'.
4001         (make_char_id_table): Likewise.
4002         (copy_char_id_table): Comment out because it is not used.
4003         (put_char_id_table): Modify for `make_byte_table'.
4004         (Fput_char_attribute): Make encoding_table as older object;
4005         inherit older bit of `Vcharacter_composition_table'.
4006         (mark_charset): Don't mark `cs->encoding_table'.
4007         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
4008         normal object; make `Vcharacter_composition_table' as an older
4009         object; delete staticpro for `Vcharacter_composition_table'; make
4010         `Vcharacter_variant_table' as a normal object.
4011
4012         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
4013         (mark_object): Don't check older object in UTF-2000.
4014
4015         * lrecord.h (struct lrecord_header): Add new member `older' in
4016         UTF-2000.
4017         (set_lheader_implementation): Setup `SLI_header->older' in
4018         UTF-2000.
4019         (set_lheader_older_implementation): New macro in UTF-2000.
4020         (OLDER_RECORD_P): New macro in UTF-2000.
4021         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
4022         (alloc_older_lcrecord): New prototype in UTF-2000.
4023         (alloc_older_lcrecord_type): New macro in UTF-2000.
4024
4025 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4026
4027         * mule-charset.c (byte_table_description): Use
4028         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
4029         (char_id_table_description): Delete bogus `, 1'.
4030         (Fget_char_attribute): Refer encoding_table of each coded-charset
4031         to get value of coded-charset attribute of a character.
4032         (Fput_char_attribute): Use `make_older_vector' instead of
4033         `make_vector'; use encoding_table of each coded-charset to store
4034         value of coded-charset attribute of a character.
4035         (Fremove_char_attribute): Use encoding_table of each coded-charset
4036         to store value of coded-charset attribute of a character.
4037         (mark_charset): Mark `cs->encoding_table'; don't mark
4038         `cs->decoding_table'.
4039         (charset_description): Add description of new member
4040         `encoding_table'.
4041         (make_charset): Initialize `encoding_table'.
4042
4043         * char-ucs.h (struct Lisp_Charset): Add new member
4044         `encoding_table'.
4045         (CHARSET_ENCODING_TABLE): New macro.
4046         (XCHARSET_ENCODING_TABLE): New macro.
4047         (charset_code_point): New implementation.
4048         (encode_char_1): Likewise.
4049
4050         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
4051         (disksave_object_finalization_1): Call finalizers of
4052         `all_older_lcrecords' in UTF-2000.
4053         (make_older_vector): New function in UTF-2000.
4054         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
4055         UTF-2000.
4056
4057         * lisp.h (make_older_vector): New prototype in UTF-2000.
4058
4059 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4060
4061         * lrecord.h (enum lrecord_type): Rename
4062         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
4063
4064         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
4065         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
4066         `get_char_code_table'.
4067
4068         * mule-charset.c (mark_char_id_table): Renamed from
4069         `mark_char_code_table'.
4070         (char_id_table_equal): Renamed from `char_code_table_equal'.
4071         (char_id_table_hash): Renamed from `char_code_table_hash'.
4072         (make_char_id_table): Renamed from `make_char_code_table'.
4073         (copy_char_id_table): Renamed from `copy_char_code_table'.
4074         (get_char_id_table): Renamed from `get_char_code_table'.
4075         (put_char_id_table): Renamed from `put_char_code_table'.
4076         (to_char_id): Renamed from `to_char_code'.
4077
4078         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
4079         `Lisp_Char_Code_Table'.
4080         (char_id_table): Renamed from `char_code_table'.
4081         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
4082         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4083         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4084         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4085         (get_char_id_table): Renamed from `get_char_code_table'.
4086
4087 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4088
4089         * lrecord.h (enum lrecord_type): Rename
4090         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4091
4092         * mule-charset.c (mark_byte_table): Renamed from
4093         `mark_char_byte_table'.
4094         (byte_table_equal): Renamed from `char_byte_table_equal'.
4095         (byte_table_hash): Renamed from `byte_table_hash'.
4096         (make_byte_table): Renamed from `make_byte_table'.
4097         (copy_byte_table): Renamed from `copy_char_byte_table'.
4098
4099         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4100         `Lisp_Char_Byte_Table'.
4101         (byte_table): Renamed from `char_byte_table'.
4102         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4103         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4104         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4105         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4106
4107 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4108
4109         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4110         (dfc_convert_to_internal_format): Likewise.
4111         
4112         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4113         * text-coding.c (Fcoding_system_alias_p): New function.
4114         * text-coding.c (Fcoding_system_aliasee): New function.
4115         * text-coding.c (append_suffix_to_symbol): New function.
4116         * text-coding.c (dangling_coding_system_alias_p): New function.
4117         * text-coding.c (Ffind_coding_system):
4118         * text-coding.c (Fcopy_coding_system):
4119         * text-coding.c (encode_coding_no_conversion):
4120         * text-coding.c (syms_of_file_coding):
4121         * text-coding.c (vars_of_file_coding):
4122         Rewrite coding system alias code.
4123         Allow nested aliases, like symbolic links.
4124         Allow redefinition of coding system aliases.
4125         Prevent existence of dangling coding system aliases.
4126         Eliminate convert_to_external_format.
4127         Eliminate convert_to_internal_format.
4128         
4129         * text-coding.c: Change enum eol_type to eol_type_t.
4130
4131 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4132
4133         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4134         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4135
4136         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4137         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4138
4139 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4140
4141         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4142         `ideograph-daikanwa'.
4143
4144         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4145         (Vcharset_ucs_bmp): Likewise.
4146         (Vcharset_mojikyo): Add new extern variable definition.
4147         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4148         (Vcharset_latin_iso8859_3): Likewise.
4149         (Vcharset_latin_iso8859_4): Likewise.
4150         (Vcharset_latin_iso8859_9): Likewise.
4151         (Vcharset_latin_viscii_lower): Likewise.
4152         (Vcharset_latin_viscii_upper): Likewise.
4153         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4154         `mojikyo' code-point is used to decode.
4155         (encode_char_2): New function [to convert `mojikyo' code-point to
4156         Mojikyo font encoding].
4157         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4158         (breakup_char_1): Likewise.
4159         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4160
4161 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4162
4163         * text-coding.c (Fmake_coding_system): Add document about
4164         `disable-composition' property.
4165
4166 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4167
4168         * text-coding.c (Qdisable_composition): New variable; delete
4169         `Qcomposite'.
4170         (Fmake_coding_system): Add new property `disable-composite';
4171         delete property `composite'.
4172         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4173         instead of `!CODING_SYSTEM_COMPOSITE'.
4174         (syms_of_file_coding): Add new symbol `disable-composition';
4175         delete symbol `composite'.
4176
4177         * file-coding.h (struct Lisp_Coding_System): Add
4178         `disable_composition'; delete `enable_composition'.
4179         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4180         `CODING_SYSTEM_COMPOSITE'.
4181         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4182         `XCODING_SYSTEM_COMPOSITE'.
4183
4184 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4185
4186         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4187         to 0.15.
4188
4189 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4190
4191         * text-coding.c (Qcomposite): New variable.
4192         (Fmake_coding_system): Add new property `composite'.
4193         (struct decoding_stream): Add `combined_char_count',
4194         `combined_chars' and `combining_table' in UTF-2000.
4195         (COMPOSE_FLUSH_CHARS): New macro.
4196         (COMPOSE_ADD_CHAR): New macro.
4197         (reset_decoding_stream): Reset `str->combined_char_count' and
4198         `str->combining_table' in UTF-2000.
4199         (decode_coding_iso2022): Modify for character-decomposition.
4200         (syms_of_file_coding): Add new symbol `composite'.
4201
4202 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4203
4204         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4205         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4206         of `Vcharacter_composition_table' if `->decomposition' property
4207         has only 1 element.
4208         (Qlatin_tcvn5712): New variable.
4209         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4210         (complex_vars_of_mule_charset): Add new coded-charset
4211         `latin-tcvn5712'.
4212
4213         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4214
4215 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4216
4217         * file-coding.h (struct Lisp_Coding_System): Add
4218         `enable_composition'.
4219         (CODING_SYSTEM_COMPOSITE): New macro.
4220         (XCODING_SYSTEM_COMPOSITE): New macro.
4221
4222 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4223
4224         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4225
4226 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4227
4228         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4229         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4230
4231 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4232
4233         * mule-charset.c (Vcharset_mojikyo): New variable.
4234         (Fdefine_char): Don't use coded-charset which does not have
4235         non-builtin character range to allocate character-id.
4236         (Qmojikyo): New variable.
4237         (syms_of_mule_charset): Add new symbol `mojikyo'.
4238         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4239
4240         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4241         (LEADING_BYTE_MOJIKYO): New macro.
4242         (MIN_CHAR_MOJIKYO): New macro.
4243         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4244         (MAX_CHAR_MOJIKYO): New macro.
4245
4246 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4247
4248         * mule-charset.c (remove_char_attribute): Fixed.
4249
4250 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4251
4252         * mule-charset.c (remove_char_attribute): New function.
4253         (Fremove_char_attribute): New function.
4254         (encode_builtin_char_1): Comment out builtin-support for
4255         greek-iso8859-7 and cyrillic-iso8859-5.
4256         (Fdecode_char): Check `code' is an integer.
4257         (syms_of_mule_charset): Add `remove-char-attribute'.
4258         (MIN_CHAR_GREEK): Deleted.
4259         (MAX_CHAR_GREEK): Likewise.
4260         (MIN_CHAR_CYRILLIC): Likewise.
4261         (MAX_CHAR_CYRILLIC): Likewise.
4262         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4263         MAX_CHAR_GREEK for `greek-iso8859-7'.
4264
4265         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4266         (MAX_CHAR_GREEK): Likewise.
4267         (MIN_CHAR_CYRILLIC): Likewise.
4268         (MAX_CHAR_CYRILLIC): Likewise.
4269
4270 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4271
4272         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4273         format is used without `ucs' property.
4274         (Fdecode_char): Fix problem with GR representation.
4275         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4276         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4277
4278 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4279
4280         * mule-charset.c (make_builtin_char): New function.
4281         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4282         (Fset_charset_mapping_table): Modify for new representation of
4283         code-point.
4284         (Fdecode_char): New function.
4285         (syms_of_mule_charset): Add new builtin function `decode-char' in
4286         UTF-2000.
4287
4288         * char-ucs.h (make_builtin_char): New prototype.
4289         (DECODE_CHAR): New inline function.
4290         (MAKE_CHAR): Use `DECODE_CHAR'.
4291
4292 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4293
4294         * text-coding.c (parse_charset_conversion_specs): Use
4295         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4296         `XCHARSET_TYPE'.
4297         (iso2022_designate): Likewise.
4298
4299         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4300         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4301
4302         * mule-charset.c (Vcharset_ucs): New variable.
4303         (print_charset): Change design; use `CHARSET_CHARS' and
4304         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4305         (make_charset): Change signature to specify `chars' and
4306         `dimension' instead of `type'.
4307         (range_charset_code_point): Modify for 256^n-set.
4308         (encode_builtin_char_1): Encode as `ucs' in default.
4309         (Fmake_charset): Modify for `make_charset'.
4310         (Fmake_reverse_direction_charset): Likewise.
4311         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4312         UTF-2000.
4313         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4314         for `make_charset'.
4315
4316         * char-ucs.h (Vcharset_ucs): New variable.
4317         (LEADING_BYTE_UCS): New macro.
4318         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4319         and `chars' to `unsigned short' from `unsigned int'.
4320         (CHARSET_TYPE): Deleted.
4321         (XCHARSET_TYPE): Deleted.
4322
4323 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4324
4325         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4326
4327         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4328         (ENCODE_CHAR): New macro.
4329
4330 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4331
4332         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4333         to 0.14 (Kawachi-Katakami).
4334
4335 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4336
4337         * text-coding.c (char_encode_shift_jis): Modify for
4338         `charset_code_point'.
4339         (char_encode_iso2022): Likewise.
4340
4341         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4342         (integer) instead of list of <Lisp_Object>s (integers) as the
4343         format of code-point of a coded-charset.
4344         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4345         (encode_builtin_char_1): New function; delete
4346         `split_builtin_char'.
4347         (charset_code_point): Return <int> instead of <Lisp_Object>.
4348         (Fsplit_char): Don't use `SPLIT_CHAR'.
4349
4350         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4351         prototype for `split_builtin_char'.
4352         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4353         (charset_code_point): Likewise.
4354         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4355         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4356
4357 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4358
4359         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4360         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4361
4362 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4363
4364         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4365
4366         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4367         (MAX_CHAR_OBS_94x94): Deleted.
4368
4369 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4370
4371         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4372
4373         * char-ucs.h (MAX_CHAR_BMP): New macro.
4374
4375 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4376
4377         * text-coding.c: Sync with r21-2-24.
4378
4379 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4380
4381         * file-coding.c: Modify for UTF-2000.
4382
4383 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4384
4385         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4386         to 0.13 (Takaida).
4387
4388 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4389
4390         * mule-charset.c (split_builtin_char): Delete builtin support for
4391         `katakana-jisx0201'.
4392         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4393         BMP area in builtin representation.
4394
4395         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4396         `Vcharset_katakana_jisx0201'.
4397
4398 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4399
4400         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4401         (Qisolated): New variable.
4402         (Qinitial): New variable.
4403         (Qmedial): New variable.
4404         (Qfinal): New variable.
4405         (Qvertical): New variable.
4406         (Qsmall): New variable.
4407         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4408         `Qvertical' and `Qsmall'.
4409         (Qmojikyo_pj_[1 .. 21]): New variable.
4410         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4411         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4412         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4413         .. 21]'.
4414
4415 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4416
4417         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4418         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4419         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4420
4421 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4422
4423         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4424         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4425         BMP.
4426         (Qjapanese_jisx0208_1990): New variable.
4427         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4428         (complex_vars_of_mule_charset): Add new coded-charset
4429         `japanese-jisx0208-1990'.
4430
4431         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4432         (MIN_CHAR_JIS_X0208_1990): New macro.
4433         (MAX_CHAR_JIS_X0208_1990): New macro.
4434
4435 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4436
4437         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4438         coded-charset is not found.
4439
4440 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4441
4442         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4443         (Fdefine_char): Use `Fmake_char'.
4444
4445 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4446
4447         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4448         (Vcharset_hiragana_jisx0208): Deleted.
4449         (Vcharset_katakana_jisx0208): Deleted.
4450         (Qideograph_daikanwa): New variable.
4451         (Qhiragana_jisx0208): Deleted.
4452         (Qkatakana_jisx0208): Deleted.
4453         (split_builtin_char): Split `ideograph-daikanwa'.
4454         (Fsplit_char): New implementation for UTF-2000.
4455         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4456         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4457         (complex_vars_of_mule_charset): Add new coded-charset
4458         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4459         `katakana-jisx0208'.
4460
4461         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4462         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4463         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4464         (MIN_CHAR_DAIKANWA): New macro.
4465         (MAX_CHAR_DAIKANWA): New macro.
4466
4467 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4468
4469         * data.c (Fstring_to_number): Don't recognize floating point if
4470         base is not 10.
4471
4472 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4473
4474         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4475
4476 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4477
4478         * mule-charset.c (Qsquare): New variable.
4479         (to_char_code): Add `Qsquare'.
4480         (syms_of_mule_charset): Add new symbol `square'.
4481
4482 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4483
4484         * mule-charset.c (Qcircle): New variable.
4485         (to_char_code): Add `Qcircle'.
4486         (syms_of_mule_charset): Add new symbol `circle'.
4487
4488 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4489
4490         * mule-charset.c (Qfont): New variable.
4491         (to_char_code): Add `Qfont'.
4492         (syms_of_mule_charset): Add new symbol `font'.
4493
4494 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4495
4496         * mule-charset.c (Qsub): New variable.
4497         (to_char_code): Add `Qsub'.
4498         (syms_of_mule_charset): Add new symbol `sub'.
4499
4500 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4501
4502         * mule-charset.c (Fput_char_attribute): Convert each element of
4503         VALUE to GL position if ATTRIBUTE is a GR-set,
4504
4505 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4506
4507         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4508         coded-charset is a GR-set.
4509
4510 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4511
4512         * mule-charset.c (Fput_char_attribute): Check each element of
4513         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4514
4515 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4516
4517         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4518         UTF-2000.
4519         (Qethiopic_ucs): New variable in UTF-2000.
4520         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4521         (complex_vars_of_mule_charset): Add new coded-charset
4522         `ethiopic-ucs' in UTF-2000.
4523
4524         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4525         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4526         9)'.
4527         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4528         10)'.
4529         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4530
4531 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4532
4533         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4534         `ascii'.
4535
4536 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4537
4538         * mule-charset.c (Vcharacter_variant_table): New variable.
4539         (Q_ucs): New variable.
4540         (Fchar_variants): New function.
4541         (Fput_char_attribute): Register `->ucs' value to
4542         `Vcharacter_variant_table'.
4543         (syms_of_mule_charset): Add new function `char-variants' and new
4544         symbol `->ucs'.
4545         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4546
4547 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4548
4549         * mule-charset.c (get_char_code_table): Allow negative character
4550         code.
4551         (put_char_code_table): Likewise.
4552         (Vcharacter_composition_table): New variable.
4553         (Q_decomposition): New variable.
4554         (Qwide): New variable.
4555         (Qnarrow): New variable.
4556         (Qcompat): New variable.
4557         (QnoBreak): New variable.
4558         (Qsuper): New variable.
4559         (Qfraction): New variable.
4560         (to_char_code): New function.
4561         (Fget_composite_char): New function.
4562         (Fput_char_attribute): Register `->decomposition' value to
4563         `Vcharacter_composition_table'.
4564         (syms_of_mule_charset): Add new function `get-composite-char', new
4565         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4566         `super' and `fraction'.
4567         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4568
4569 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4570
4571         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4572         character; copy the return value.
4573
4574 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4575
4576         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4577
4578         * mule-charset.c (range_charset_code_point): Must use make_int.
4579         (split_builtin_char): New function.
4580
4581 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4582
4583         * mule-charset.c (char_byte_table): Change name from
4584         "char-code-table" to "char-byte-table".
4585         (mark_char_code_table): New function.
4586         (char_code_table_equal): New function.
4587         (char_code_table_hash): New function.
4588         (char_code_table_description): New constant.
4589         (char_code_table): New type.
4590         (make_char_code_table): New function.
4591         (copy_char_code_table): New function.
4592         (get_char_code_table): Modify for `char_code_table' type.
4593         (put_char_code_table): Likewise.
4594         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4595         (Kashiwara).
4596
4597         * char-ucs.h (char_code_table): New type.
4598         (XCHAR_CODE_TABLE): New macro.
4599         (XSETCHAR_CODE_TABLE): New macro.
4600         (CHAR_CODE_TABLE_P): New macro.
4601         (GC_CHAR_CODE_TABLE_P): New macro.
4602         (struct Lisp_Char_Code_Table): New structure.
4603
4604 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4605
4606         * mule-charset.c (Fmake_charset): Setup byte_offset for
4607         {94|96}^n-set.
4608
4609 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4610
4611         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4612         character.
4613
4614 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4615
4616         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4617         is found.
4618
4619 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4620
4621         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4622         charset, it is regarded as a charset.
4623         (put_char_attribute): New function in UTF-2000.
4624         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4625         charset, mapping-table of the charset is modified.
4626         (Fdefine_char): New function in UTF-2000.
4627         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4628         `Fput_char_attribute'.
4629         (syms_of_mule_charset): Add new function `define-char' and new
4630         symbol `ucs' in UTF-2000.
4631         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4632
4633 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4634
4635         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4636         non-UTF-2000 configuration.
4637
4638 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4639
4640         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4641         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4642
4643         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4644         deleted.
4645         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4646         (Fset_charset_mapping_table): Likewise.
4647
4648         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4649         (CHARSET_ENCODING_TABLE): Delete.
4650         (XCHARSET_ENCODING_TABLE): Delete.
4651         (charset_code_point): New interface.
4652
4653 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4654
4655         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4656         instead of `charset_get_byte1' and `charset_get_byte2'.
4657
4658         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4659         (charset_get_byte2): Deleted.
4660
4661 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4662
4663         * char-ucs.h (SPLIT_CHAR): New inline function.
4664         (breakup_char_1): Use `SPLIT_CHAR'.
4665
4666         * mule-charset.c (range_charset_code_point): New function.
4667         (charset_code_point): New function.
4668
4669         * char-ucs.h (range_charset_code_point): New interface.
4670         (breakup_char_1): Use `range_charset_code_point'.
4671
4672 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4673
4674         * mule-charset.c (Fmake_charset): Delete unused local variable
4675         `code_offset'.
4676
4677         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4678         (breakup_char_1): Find a charset and code-point in
4679         `Vcharacter_attribute_table'.
4680
4681 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4682
4683         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4684         to 0.10 (Yao).
4685
4686 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4687
4688         * mule-charset.c (Vcharacter_attribute_table): New variable.
4689         (Fchar_attribute_alist): New function.
4690         (Fget_char_attribute): New function.
4691         (Fput_char_attribute): New function.
4692         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4693         too.
4694         (syms_of_mule_charset): Add new function `char-attribute-alist',
4695         `get-char-attribute' and `put-char-attribute'.
4696         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4697
4698 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4699
4700         * mule-charset.c (Fmake_charset): Just use
4701         `get_unallocated_leading_byte'.
4702
4703         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4704         sets; don't use final-byte based number for private sets.
4705
4706 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4707
4708         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4709         integer.
4710
4711 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4712
4713         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4714         to 0.9.
4715
4716 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4717
4718         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4719         of `CHAR_LEADING_BYTE' in UTF-2000.
4720
4721         * insdel.c (find_charsets_in_bufbyte_string): Use
4722         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4723         (find_charsets_in_emchar_string): Likewise.
4724
4725         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4726         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4727
4728         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4729         (CHAR_CHARSET_ID): New macro.
4730
4731 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4732
4733         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4734         charset-id - MIN_LEADING_BYTE.
4735         (put_char_table): Likewise.
4736
4737 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4738
4739         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4740         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4741         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4742         (CHARSET_ID_OFFSET): New macro.
4743         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4744         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4745         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4746         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4747         4).
4748         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4749         5).
4750         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4751         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4752         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4753         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4754         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4755
4756 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4757
4758         * mule-charset.c (next_allocated_leading_byte): New variable in
4759         UTF-2000.
4760         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4761         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4762         (get_unallocated_leading_byte): Simply use
4763         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4764         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4765         UTF-2000.
4766
4767         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4768         (MAX_LEADING_BYTE_PRIVATE): New macro.
4769         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4770         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4771
4772 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4773
4774         * mule-charset.c (Fmake_charset): Allocate final-byte based
4775         charset-id for 94-set, 96-set and 94x94-set.
4776
4777 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4778
4779         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4780         ambiguous `else'.
4781         (Fmake_charset): Likewise.
4782         (complex_vars_of_mule_charset): Modify the font registry of
4783         `ucs-bmp' not to match `Ethiopic-Unicode'.
4784
4785 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4786
4787         * mule-charset.c (complex_vars_of_mule_charset): Add font
4788         registory of `ucs-bmp'.
4789
4790 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4791
4792         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4793         coded-charsets in `default-coded-charset-priority-list' when
4794         breaking up a character.
4795
4796         * mule-charset.c (Vcharset_latin_viscii): New variable.
4797         (Qlatin_viscii): New variable.
4798         (make_charset): Don't use `decoding_table'.
4799         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4800         byte_offset.
4801         (Fset_charset_mapping_table): New implementation.
4802         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4803         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4804         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4805         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4806         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4807         charset `latin_viscii'.
4808
4809         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4810         (CHARSET_TYPE_94X94): Change to 1 from 2.
4811         (CHARSET_TYPE_96): Change to 2 from 1.
4812         (CHARSET_TYPE_128): New macro.
4813         (CHARSET_TYPE_128X128): Change to 5 from 4.
4814         (CHARSET_TYPE_256): New macro.
4815         (CHARSET_TYPE_256X256): Change to 7 from 5.
4816         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4817
4818 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4819
4820         * text-coding.c (char_encode_shift_jis): Refer
4821         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4822         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4823
4824         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4825         (char_byte_table_equal): New function in UTF-2000.
4826         (char_byte_table_hash): New function in UTF-2000.
4827         (char_byte_table_description): New constant in UTF-2000.
4828         (char_byte_table): New type in UTF-2000.
4829         (make_char_byte_table): New function in UTF-2000.
4830         (copy_char_byte_table): New function in UTF-2000.
4831         (make_char_code_table): New macro in UTF-2000.
4832         (get_char_code_table): New function in UTF-2000.
4833         (put_char_code_table): New function in UTF-2000.
4834         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4835         (charset_description): Add setting in UTF-2000.
4836         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4837         `CHARSET_TO_BYTE1_TABLE(cs)'.
4838         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4839         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4840         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4841         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4842         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4843         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4844         `CHARSET_TO_BYTE2_TABLE(cs)'.
4845
4846         * char-ucs.h (char_byte_table): New type.
4847         (XCHAR_BYTE_TABLE): New macro.
4848         (XSETCHAR_BYTE_TABLE): New macro.
4849         (CHAR_BYTE_TABLE_P): New macro.
4850         (GC_CHAR_BYTE_TABLE_P): New macro.
4851         (struct Lisp_Char_Byte_Table): New structure.
4852         (get_char_code_table): New interface.
4853         (Emchar_to_byte_table): Deleted.
4854         (get_byte_from_character_table): Deleted.
4855         (struct Lisp_Charset): Add `encoding_table'; delete
4856         `to_byte1_table' and `to_byte2_table'.
4857         (CHARSET_ENCODING_TABLE): New macro.
4858         (CHARSET_TO_BYTE1_TABLE): Deleted.
4859         (CHARSET_TO_BYTE2_TABLE): Deleted.
4860         (XCHARSET_ENCODING_TABLE): New macro.
4861         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4862         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4863
4864 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4865
4866         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4867         `vietnamese-viscii-*'.
4868
4869 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4870
4871         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4872         (Qvietnamese_viscii_upper): New variable.
4873         (Fdefine_charset_alias): New function.
4874         (syms_of_mule_charset): Add new function `define-charset-alias'.
4875         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4876         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4877         `latin-viscii-*'.
4878
4879 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4880
4881         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4882         (MAX_CHAR_OBS_94x94): New macro.
4883         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4884         for 94x94 sets.
4885
4886         * mule-charset.c (put_byte_from_character_table): Change unit size
4887         from 128 to 256.
4888         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4889         not defined.
4890         (Fmake_reverse_direction_charset): Modify dummy argument of
4891         `make_charset' for non-UTF-2000 environment.
4892
4893 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4894
4895         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4896
4897         * mule-charset.c (destroy_byte_from_character_table): New macro.
4898         (latin_jisx0201_to_ucs): Deleted.
4899         (latin_iso8859_2_to_ucs): Deleted.
4900         (latin_iso8859_3_to_ucs): Deleted.
4901         (latin_iso8859_4_to_ucs): Deleted.
4902         (latin_iso8859_9_to_ucs): Deleted.
4903         (latin_viscii_lower_to_ucs): Deleted.
4904         (latin_viscii_upper_to_ucs): Deleted.
4905         (mark_charset): Mark `cs->decoding_table'.
4906         (Fcharset_mapping_table): Fix DOC-string.
4907         (Fset_charset_mapping_table): New function.
4908         (syms_of_mule_charset): Add nwe function
4909         `set-charset-mapping-table'.
4910         (complex_vars_of_mule_charset): Don't setup and use
4911         `latin_*_to_ucs'.
4912
4913 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4914
4915         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4916         charset.
4917
4918 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4919
4920         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4921         (Vcharset_katakana_jisx0208): New variable.
4922         (Qhiragana_jisx0208): New variable.
4923         (Qkatakana_jisx0208): New variable.
4924         (make_charset): Add new argument `byte_offset'.
4925         (charset_get_byte1): Modify for new coded-charset definition; use
4926         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4927         `XCHARSET_BYTE_OFFSET'.
4928         (Fmake_charset): Modify for `make_charset'.
4929         (Fmake_reverse_direction_charset): Likewise.
4930         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4931         `katakana-jisx0208'.
4932         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4933         `.'  in font registry of charset `katakana-jisx0201',
4934         `latin-jisx0201', `vietnamese-viscii-lower' and
4935         `vietnamese-viscii-upper'; modify DOC-string of charset
4936         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4937         registry of charset `japanese-jisx0208' not to use font for JIS
4938         X0208:1990; add new charset `hiragana-jisx0208' and
4939         `katakana-jisx0208'.
4940
4941         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4942         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4943         (struct Lisp_Charset): Add `byte_offset'.
4944         (CHARSET_BYTE_OFFSET): New macro.
4945         (XCHARSET_UCS_MIN): New macro.
4946         (XCHARSET_UCS_MAX): New macro.
4947         (XCHARSET_CODE_OFFSET): New macro.
4948         (XCHARSET_BYTE_OFFSET): New macro.
4949         (MIN_CHAR_HIRAGANA): New macro.
4950         (MAX_CHAR_HIRAGANA): New macro.
4951         (MIN_CHAR_KATAKANA): New macro.
4952         (MAX_CHAR_KATAKANA): New macro.
4953         (MAKE_CHAR): Modify for new coded-charset definition; use
4954         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4955         `XCHARSET_BYTE_OFFSET'.
4956
4957 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4958
4959         * mule-charset.c (CHAR96): Deleted.
4960         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4961         <Lisp_Object>.
4962         (latin_iso8859_2_to_ucs): Likewise.
4963         (latin_iso8859_3_to_ucs): Likewise.
4964         (latin_iso8859_4_to_ucs): Likewise.
4965         (latin_iso8859_9_to_ucs): Likewise.
4966         (latin_viscii_lower_to_ucs): Likewise.
4967         (latin_viscii_upper_to_ucs): Likewise.
4968         (latin_tcvn5712_to_ucs): Commented out.
4969         (make_charset): Change type of argument `decoding_table' from
4970         <Emchar*> to <Lisp_Object> [vector of characters].
4971         (Fmake_charset): Modify for `make_charset'.
4972         (Fmake_reverse_direction_charset): Likewise.
4973         (Fcharset_mapping_table): New function in UTF-2000.
4974         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4975         UTF-2000.
4976         (complex_vars_of_mule_charset): Modify for type change of
4977         `*_to_ucs'; modify for `make_charset'.
4978
4979         * char-ucs.h (struct Lisp_Charset): Change type of
4980         `decoding_table' from <Emchar*> to <Lisp_Object>.
4981         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4982
4983 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4984
4985         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4986         error with non-UTF-2000-Mule.
4987
4988 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4989
4990         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4991         in lisp again].
4992         (Vcharset_chinese_cns11643_4): Likewise.
4993         (Vcharset_chinese_cns11643_5): Likewise.
4994         (Vcharset_chinese_cns11643_6): Likewise.
4995         (Vcharset_chinese_cns11643_7): Likewise.
4996         (Qchinese_cns11643_3): Likewise.
4997         (Qchinese_cns11643_4): Likewise.
4998         (Qchinese_cns11643_5): Likewise.
4999         (Qchinese_cns11643_6): Likewise.
5000         (Qchinese_cns11643_7): Likewise.
5001         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
5002         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5003         and `chinese-cns11643-7' to lisp/mule/chinese.el.
5004         (complex_vars_of_mule_charset): Likewise.
5005
5006 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
5007
5008         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
5009         96-set.
5010         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
5011         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
5012
5013 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5014
5015         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
5016         0xFF60.
5017         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
5018         (breakup_char_1): Likewise.
5019
5020         * text-coding.c (char_encode_iso2022): Keep designated charsets if
5021         one of them includes the specified character.
5022
5023 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5024
5025         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
5026
5027 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5028
5029         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
5030
5031 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5032
5033         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
5034         definition for non-UTF-2000 Mule.
5035         (latin_iso8859_3_to_ucs): Likewise.
5036         (latin_iso8859_4_to_ucs): Likewise.
5037         (latin_iso8859_9_to_ucs): Likewise.
5038         (latin_jisx0201_to_ucs): Likewise.
5039         (MIN_CHAR_THAI): Likewise.
5040         (MAX_CHAR_THAI): Likewise.
5041         (MIN_CHAR_GREEK): Likewise.
5042         (MAX_CHAR_GREEK): Likewise.
5043         (MIN_CHAR_HEBREW): Likewise.
5044         (MAX_CHAR_HEBREW): Likewise.
5045         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
5046         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
5047         (MIN_CHAR_CYRILLIC): Likewise.
5048         (MAX_CHAR_CYRILLIC): Likewise.
5049
5050 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
5051
5052         * char-ucs.h (breakup_char_1): Use
5053         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
5054         thai-tis620 and katakana-jisx0201 area.
5055
5056 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5057
5058         * char-ucs.h (breakup_char_1): Use
5059         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
5060         area.
5061
5062         * text-coding.c (reset_encoding_stream): Fixed.
5063         (char_encode_ucs4): Delete `& 255'.
5064
5065         * char-ucs.h (breakup_char_1): Use
5066         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
5067
5068 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5069
5070         * file-coding.c (Fmake_coding_system): Don't set up
5071         `codesys->fixed.size'.
5072         (encode_coding_no_conversion): Don't refer
5073         `str->codesys->fixed.size'.
5074
5075 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5076
5077         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
5078         (latin_a_char_to_byte1): Deleted.
5079         (latin_a_char_to_byte2): Deleted.
5080
5081 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5082
5083         * mule-charset.c (make_charset): Add new argument `ucs_min',
5084         `ucs_max' and `code_offset'.
5085         (charset_get_byte1): New implementation [delete specific charset
5086         depended implementations].
5087         (Fmake_charset): Modify for `make_charset'.
5088         (Fmake_reverse_direction_charset): Likewise.
5089         (complex_vars_of_mule_charset): Likewise.
5090
5091         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5092         `code_offset'.
5093         (CHARSET_UCS_MIN): New macro.
5094         (CHARSET_UCS_MAX): New macro.
5095         (CHARSET_CODE_OFFSET): New macro.
5096         (MAKE_CHAR): Delete charset depended definitions [except
5097         katakana-jisx0201].
5098
5099 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5100
5101         * char-ucs.h (breakup_char_1): Use
5102         `Vdefault_coded_charset_priority_list' for C0-Controls,
5103         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5104
5105 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5106
5107         * char-ucs.h (charset_get_byte1): New function.
5108         (XCHARSET_GET_BYTE1): Deleted.
5109         (charset_get_byte2): New function.
5110         (XCHARSET_GET_BYTE2): Deleted.
5111         (Vdefault_coded_charset_priority_list): New external variable.
5112         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5113         `Vdefault_preferred_coded_charset_list'.
5114
5115         * mule-charset.c (charset_get_byte1): New function.
5116         (charset_get_byte2): New function.
5117         (Vdefault_coded_charset_priority_list): New variable.
5118         (vars_of_mule_charset): Add new variable
5119         `default-coded-charset-priority-list'.
5120
5121 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5122
5123         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5124         (XCHARSET_GET_BYTE2): New inline function.
5125         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5126         `XCHARSET_GET_BYTE2'.
5127
5128 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5129
5130         * mule-charset.c (make_charset): Initialize
5131         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5132         NULL if table is not defined.
5133
5134 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5135
5136         * text-coding.c (char_encode_shift_jis): Use
5137         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5138         `ucs_to_latin_jisx0201'.
5139
5140         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5141         (ucs_to_latin_iso8859_2): Deleted.
5142         (ucs_to_latin_iso8859_3): Deleted.
5143         (ucs_to_latin_iso8859_4): Deleted.
5144         (ucs_to_latin_iso8859_9): Deleted.
5145         (ucs_to_latin_viscii_lower): Deleted.
5146         (ucs_to_latin_viscii_upper): Deleted.
5147         (ucs_to_latin_tcvn5712): Deleted.
5148         (make_charset): Add new argument `decoding_table'; set up
5149         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5150         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5151         `decoding_table' is defined in UTF-2000.
5152         (Fmake_charset): Modify for `make_charset'.
5153         (Fmake_reverse_direction_charset): Likewise.
5154         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5155         and `GENERATE_96_SET'.
5156
5157         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5158         (ucs_to_latin_jisx0201): Deleted.
5159         (latin_iso8859_2_to_ucs): Deleted.
5160         (ucs_to_latin_iso8859_2): Deleted.
5161         (latin_iso8859_3_to_ucs): Deleted.
5162         (ucs_to_latin_iso8859_3): Deleted.
5163         (latin_iso8859_4_to_ucs): Deleted.
5164         (ucs_to_latin_iso8859_4): Deleted.
5165         (latin_iso8859_9_to_ucs): Deleted.
5166         (ucs_to_latin_iso8859_9): Deleted.
5167         (latin_viscii_lower_to_ucs): Deleted.
5168         (ucs_to_latin_viscii_lower): Deleted.
5169         (latin_viscii_upper_to_ucs): Deleted.
5170         (ucs_to_latin_viscii_upper): Deleted.
5171         (struct Lisp_Charset): Renamed `encoding_table' to
5172         `to_byte1_table'; add `to_byte2_table'.
5173         (CHARSET_DECODING_TABLE): New macro.
5174         (CHARSET_TO_BYTE1_TABLE): New macro.
5175         (CHARSET_TO_BYTE2_TABLE): New macro.
5176         (XCHARSET_DECODING_TABLE): New macro.
5177         (XCHARSET_TO_BYTE1_TABLE): New macro.
5178         (XCHARSET_TO_BYTE2_TABLE): New macro.
5179         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5180         tables.
5181         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5182         don't use `ucs_to_*' tables.
5183
5184 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5185
5186         * text-coding.c (Fmake_coding_system): Don't set up
5187         `codesys->fixed.size'.
5188         (encode_coding_no_conversion): Use `if' instead of `switch'.
5189
5190         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5191
5192 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5193
5194         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5195         (Fmake_charset): Modify for `make_charset'.
5196         (Fmake_reverse_direction_charset): Likewise.
5197         (complex_vars_of_mule_charset): Likewise.
5198
5199 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5200
5201         * text-coding.c (char_encode_shift_jis): Use table
5202         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5203
5204 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5205
5206         * text-coding.c (text_encode_generic): Use `if' instead of
5207         `switch'.
5208         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5209         decode JIS-Latin.
5210
5211 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5212
5213         * text-coding.c (encode_coding_sjis): Deleted.
5214         (char_encode_shift_jis): New function.
5215         (char_finish_shift_jis): New function.
5216         (reset_encoding_stream): Set up `encode_char' and `finish' for
5217         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5218         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5219         (char_encode_utf8): Treat `eol_type'.
5220
5221 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5222
5223         * file-coding.c (decode_coding_iso2022): Use
5224         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5225
5226 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5227
5228         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5229         to 0.7 (Hirano).
5230
5231 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5232
5233         * char-lb.h (CHAR_COLUMNS): New macro.
5234
5235 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5236
5237         * text-coding.c (char_encode_ucs4): New function.
5238         (char_finish_ucs4): New function.
5239         (encode_coding_ucs4): Deleted.
5240         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5241         (text_encode_generic): Delete local variable `charset' and `half'.
5242         (ucs_to_mule_table): Deleted.
5243         (mule_to_ucs_table): Deleted.
5244         (Fset_ucs_char): Deleted.
5245         (ucs_to_char): Deleted.
5246         (Fucs_char): Deleted.
5247         (Fset_char_ucs): Deleted.
5248         (Fchar_ucs): Deleted.
5249         (decode_ucs4): Deleted.
5250         (mule_char_to_ucs4): Deleted.
5251         (encode_ucs4): Deleted.
5252         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5253         (decode_coding_utf8): Likewise.
5254         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5255         (char_encode_iso2022): Fixed.
5256         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5257         `Fset_char_ucs' and `Fchar_ucs'.
5258         (complex_vars_of_file_coding): Don't initialize
5259         `ucs_to_mule_table'.
5260
5261         * objects-tty.c (tty_initialize_font_instance): Don't use
5262         `XCHARSET_COLUMNS'.
5263
5264         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5265         UTF-2000.
5266
5267         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5268         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5269
5270         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5271         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5272         (emchar_string_displayed_columns): Likewise.
5273
5274         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5275         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5276         (string_column_at_point): Likewise.
5277         (Fmove_to_column): Likewise.
5278
5279         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5280         `encoding_table' and `decoding_table'.
5281         (CHARSET_REP_BYTES): Deleted.
5282         (XCHARSET_REP_BYTES): Deleted.
5283         (XCHARSET_COLUMNS): Deleted.
5284         (CHAR_COLUMNS): New macro.
5285         (lookup_composite_char): Deleted unconditionally.
5286         (composite_char_string): Likewise.
5287
5288 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5289
5290         * char-ucs.h (Emchar_to_byte_table): New type.
5291         (get_byte_from_character_table): New function interface.
5292         (Vcharset_latin_jisx0201): New variable.
5293         (latin_jisx0201_to_ucs): New variable.
5294         (ucs_to_latin_jisx0201): New variable.
5295         (Vcharset_latin_iso8859_2): New variable.
5296         (latin_iso8859_2_to_ucs): New variable.
5297         (ucs_to_latin_iso8859_2): New variable.
5298         (Vcharset_latin_iso8859_3): New variable.
5299         (latin_iso8859_3_to_ucs): New variable.
5300         (ucs_to_latin_iso8859_3): New variable.
5301         (Vcharset_latin_iso8859_4): New variable.
5302         (latin_iso8859_4_to_ucs): New variable.
5303         (ucs_to_latin_iso8859_4): New variable.
5304         (Vcharset_latin_iso8859_9): New variable.
5305         (latin_iso8859_9_to_ucs): New variable.
5306         (ucs_to_latin_iso8859_9): New variable.
5307         (Vcharset_latin_viscii_lower): New variable.
5308         (latin_viscii_lower_to_ucs): New variable.
5309         (ucs_to_latin_viscii_lower): New variable.
5310         (Vcharset_latin_viscii_upper): New variable.
5311         (latin_viscii_upper_to_ucs): New variable.
5312         (ucs_to_latin_viscii_upper): New variable.
5313         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5314         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5315         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5316         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5317         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5318         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5319         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5320         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5321         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5322         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5323
5324         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5325         (Vcharset_latin_viscii_upper): New variable.
5326         (make_byte_from_character_table): New function.
5327         (put_byte_from_character_table): New function.
5328         (get_byte_from_character_table): New function.
5329         (CHAR96): New macro.
5330         (ucs_to_latin_jisx0201): New variable.
5331         (latin_jisx0201_to_ucs): New variable.
5332         (ucs_to_latin_iso8859_2): New variable.
5333         (latin_iso8859_2_to_ucs): New variable.
5334         (ucs_to_latin_iso8859_3): New variable.
5335         (latin_iso8859_3_to_ucs): New variable.
5336         (ucs_to_latin_iso8859_4): New variable.
5337         (latin_iso8859_4_to_ucs): New variable.
5338         (ucs_to_latin_iso8859_9): New variable.
5339         (latin_iso8859_9_to_ucs): New variable.
5340         (ucs_to_latin_viscii_lower): New variable.
5341         (latin_viscii_lower_to_ucs): New variable.
5342         (ucs_to_latin_viscii_upper): New variable.
5343         (latin_viscii_upper_to_ucs): New variable.
5344         (ucs_to_latin_tcvn5712): New variable.
5345         (latin_tcvn5712_to_ucs): New variable.
5346         (Qlatin_viscii_lower): New variable.
5347         (Qlatin_viscii_upper): New variable.
5348         (syms_of_mule_charset): Set up new symbol
5349         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5350         (complex_vars_of_mule_charset): Set up new charset
5351         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5352         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5353         `ucs_to_<CHARSET>' tables.
5354
5355 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5356
5357         * text-coding.c: New file.
5358
5359 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5360
5361         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5362
5363         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5364         (MAKE_CHAR): Modify for `ucs-bmp'.
5365         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5366         non-MULE characters of BMP.
5367
5368 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5369
5370         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5371         to 0.6.
5372
5373 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5374
5375         * lstream.h:
5376         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5377         - Include character.h for `CHAR_ASCII_P'.
5378
5379         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5380
5381         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5382         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5383
5384         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5385         (BYTE_C0_P): Likewise.
5386         (BYTE_C1_P): Likewise.
5387         (Lstream_get_emchar_1): Likewise.
5388         (Lstream_fput_emchar): Likewise.
5389         (Lstream_funget_emchar): Likewise.
5390         (copy_internal_to_external): Likewise.
5391         (copy_external_to_internal): Likewise.
5392
5393         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5394         (BYTE_C0_P): Likewise.
5395         (BYTE_C1_P): Likewise.
5396         (Lstream_get_emchar_1): Likewise.
5397         (Lstream_fput_emchar): Likewise.
5398         (Lstream_funget_emchar): Likewise.
5399         (copy_internal_to_external): Likewise.
5400         (copy_external_to_internal): Likewise.
5401
5402         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5403         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5404
5405         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5406         (BYTE_ASCII_P): Moved to mb-1byte.h.
5407
5408 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5409
5410         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5411
5412         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5413         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5414         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5415         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5416         (VALIDATE_CHARPTR_FORWARD): Likewise.
5417         (simple_charptr_emchar): Moved to mb-multibyte.h.
5418         (simple_set_charptr_emchar): Likewise.
5419         (simple_charptr_copy_char): Likewise.
5420         (non_ascii_charptr_emchar): Likewise.
5421         (non_ascii_set_charptr_emchar): Likewise.
5422         (non_ascii_charptr_copy_char): Likewise.
5423         (charptr_emchar): Moved to mb-*byte.h.
5424         (set_charptr_emchar): Likewise.
5425         (charptr_copy_char): Likewise.
5426
5427         * mb-1byte.h, mb-multibyte.h: New files.
5428
5429 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5430
5431         * mb-utf-8.h (MULTIBYTE): New macro.
5432         (MAX_EMCHAR_LEN): Moved from buffer.h.
5433         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5434
5435         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5436
5437         * mb-lb.h, multibyte.h: New files.
5438
5439         * char-1byte.h (Charset_ID): Moved from buffer.h.
5440         (MIN_LEADING_BYTE): Likewise.
5441         (LEADING_BYTE_ASCII): Likewise.
5442         (NUM_LEADING_BYTES): Likewise.
5443         (CHARSETP): Likewise.
5444         (CHARSET_BY_LEADING_BYTE): Likewise.
5445         (XCHARSET_LEADING_BYTE): Likewise.
5446         (XCHARSET_GRAPHIC): Likewise.
5447         (XCHARSET_COLUMNS): Likewise.
5448         (XCHARSET_DIMENSION): Likewise.
5449         (CHAR_CHARSET): Likewise.
5450         (CHAR_LEADING_BYTE): Likewise.
5451         (BREAKUP_CHAR): Likewise.
5452         (Vcharset_ascii): Likewise.
5453
5454         * buffer.h: Include multibyte.h unconditionally.
5455         (VALID_CHARPTR_P): Moved to multibyte.h.
5456         (ASSERT_VALID_CHARPTR): Likewise.
5457         (REAL_INC_CHARPTR): Likewise.
5458         (REAL_INC_CHARBYTIND): Likewise.
5459         (REAL_DEC_CHARPTR): Likewise.
5460         (INC_CHARPTR): Likewise.
5461         (INC_CHARBYTIND): Likewise.
5462         (DEC_CHARPTR): Likewise.
5463         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5464         (VALIDATE_CHARPTR_FORWARD): Likewise.
5465         (charptr_n_addr): Likewise.
5466         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5467         (simple_charptr_emchar): Moved to multibyte.h.
5468         (simple_set_charptr_emchar): Likewise.
5469         (simple_charptr_copy_char): Likewise.
5470         (non_ascii_charptr_emchar): Likewise.
5471         (non_ascii_set_charptr_emchar): Likewise.
5472         (non_ascii_charptr_copy_char): Likewise.
5473         (charptr_emchar): Likewise.
5474         (set_charptr_emchar): Likewise.
5475         (charptr_copy_char): Likewise.
5476         (charptr_emchar_n): Likewise.
5477         (Charset_ID): Moved to char-1byte.h.
5478         (Vcharset_ascii): Likewise.
5479         (CHAR_CHARSET): Likewise.
5480         (CHAR_LEADING_BYTE): Likewise.
5481         (LEADING_BYTE_ASCII): Likewise.
5482         (NUM_LEADING_BYTES): Likewise.
5483         (MIN_LEADING_BYTE): Likewise.
5484         (CHARSETP): Likewise.
5485         (CHARSET_BY_LEADING_BYTE): Likewise.
5486         (XCHARSET_LEADING_BYTE): Likewise.
5487         (XCHARSET_GRAPHIC): Likewise.
5488         (XCHARSET_COLUMNS): Likewise.
5489         (XCHARSET_DIMENSION): Likewise.
5490         (BREAKUP_CHAR): Likewise.
5491
5492 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5493
5494         * character.h: Add document about interface for characters.
5495
5496         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5497         (MAKE_CHAR): Delete comment about
5498         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5499         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5500         (BREAKUP_CHAR): Modify name of arguments.
5501         (CHAR_CHARSET): Modify name of argument.
5502
5503         * buffer.h: Delete document about Emchar accessors.
5504
5505 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5506
5507         * character.h (CHAR_INTP): Moved from buffer.h
5508         (CHAR_OR_CHAR_INTP): Likewise.
5509         (XCHAR_OR_CHAR_INT): Likewise.
5510         (CHECK_CHAR_COERCE_INT): Likewise.
5511
5512         * buffer.h (CHAR_INTP): Moved to character.h
5513         (CHAR_OR_CHAR_INTP): Likewise.
5514         (XCHAR_OR_CHAR_INT): Likewise.
5515         (CHECK_CHAR_COERCE_INT): Likewise.
5516
5517 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5518
5519         * character.h:
5520         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5521         - Include char-1byte.h, char-lb.h or char-ucs.h.
5522
5523         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5524
5525         * buffer.h: Include character unconditionally.
5526         (valid_char_p): Moved to char-*.h.
5527         (non_ascii_valid_char_p): Moved to char-lb.h.
5528
5529         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5530
5531 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5532
5533         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5534         in UTF-2000 because it is not ported yet and not to use
5535         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5536         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5537         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5538
5539         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5540         (CHAR_ASCII_P): Moved from character.h.
5541
5542         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5543         (CHAR_ASCII_P): Likewise.
5544         (CHAR_FIELD1_MASK): Deleted.
5545         (CHAR_FIELD2_MASK): Deleted.
5546         (CHAR_FIELD3_MASK): Deleted.
5547         (MAX_CHAR_BASIC_LATIN): New macro.
5548         (CHAR_FIELD1): Deleted.
5549         (CHAR_FIELD2_INTERNAL): Deleted.
5550         (CHAR_FIELD3_INTERNAL): Deleted.
5551         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5552         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5553         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5554         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5555         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5556         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5557         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5558         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5559         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5560         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5561         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5562         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5563         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5564         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5565         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5566         (MIN_CHAR_COMPOSITION): Deleted.
5567         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5568         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5569
5570 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5571
5572         * buffer.h: Include mb-utf-8.h in UTF-2000.
5573
5574         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5575
5576         * mb-utf-8.h: New file.
5577
5578 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5579
5580         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5581         instead of `int'.
5582
5583         * mule-charset.h, buffer.h (Charset_ID): New type.
5584
5585 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5586
5587         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5588         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5589         instead of `MULE_CHAR_PRIVATE_OFFSET',
5590         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5591         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5592         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5593
5594         * character.h (Vcharset_japanese_jisx0212): New variable
5595         definition.
5596
5597 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5598
5599         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5600         (charset_by_attributes): Delete array about direction.
5601         (latin_a_char_to_charset): New variable in UTF-2000.
5602         (latin_a_char_to_byte1): New variable in UTF-2000.
5603         (latin_a_char_to_byte2): New variable in UTF-2000.
5604         (Qucs_bmp): New variable.
5605         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5606         `Bufbyte'.
5607         (next_allocated_2_byte_leading_byte): Likewise.
5608         (non_ascii_set_charptr_emchar): Likewise.
5609         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5610         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5611         `charset_by_attributes'.
5612         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5613         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5614         and `CHARSET_BY_LEADING_BYTE'.
5615         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5616         `utf-2000-version' to `vars_of_mule_charset'.
5617         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5618         define `leading-code-private-11' in UTF-2000; move setting of
5619         `utf-2000-version' from `syms_of_mule_charset'.
5620         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5621         UTF-2000.
5622
5623         * character.h (Charset_ID): New type.
5624         (LEADING_BYTE_UCS_BMP): New macro.
5625         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5626         (CHARSET_ID_OFFSET_94): New macro.
5627         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5628         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5629         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5630         final-byte.
5631         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5632         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5633         (CHARSET_ID_OFFSET_96): New macro.
5634         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5635         CHARSET_ID_OFFSET_96 and final-byte.
5636         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5637         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5638         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5639         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5640         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5641         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5642         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5643         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5644         (LEADING_BYTE_THAI_TIS620): Likewise.
5645         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5646         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5647         (CHARSET_ID_OFFSET_94x94): New macro.
5648         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5649         CHARSET_ID_OFFSET_94x94 and final-byte.
5650         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5651         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5652         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5653         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5654         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5655         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5656         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5657         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5658         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5659         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5660         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5661         (CHARSET_TYPE_128X128): New macro.
5662         (CHARSET_TYPE_256X256): New macro.
5663         (XCHARSET_PRIVATE_P): Delete unconditionally.
5664         (charset_by_attributes): Delete array about direction.
5665         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5666         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5667         (MIN_CHAR_94): New macro.
5668         (MAX_CHAR_94): New macro.
5669         (MIN_CHAR_96): New macro.
5670         (MAX_CHAR_96): New macro.
5671         (MIN_CHAR_94x94): New macro.
5672         (MAX_CHAR_94x94): New macro.
5673         (MIN_CHAR_96x96): New macro.
5674         (MAX_CHAR_96x96): New macro.
5675         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5676         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5677         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5678         - 32)'.
5679         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5680         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5681         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5682         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5683         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5684         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5685         `XCHARSET_LEADING_BYTE' to make code-point.
5686         (latin_a_char_to_charset): New variable.
5687         (latin_a_char_to_byte1): New variable.
5688         (latin_a_char_to_byte2): New variable.
5689         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5690         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5691         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5692
5693         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5694         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5695         (find_charsets_in_emchar_string): Likewise.
5696         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5697
5698         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5699         `int'.
5700         (decode_coding_iso2022): Likewise.
5701
5702         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5703         of `unsigned char'.
5704
5705         * redisplay.c (redisplay_text_width_emchar_string): Use
5706         `Charset_ID' instead of `unsigned char'.
5707         (redisplay_frame_text_width_string): Likewise.
5708
5709         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5710         `unsigned char'.
5711
5712         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5713         instead of `unsigned char'.
5714         (face_cachel_charset_font_metric_info): Likewise.
5715
5716         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5717         (get_non_ascii_char_table_value): Likewise.
5718         (get_char_table): Likewise.
5719         (put_char_table): Likewise.
5720         (map_over_other_charset): Likewise.
5721         (map_char_table): Likewise.
5722
5723         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5724         instead of `unsigned char'.
5725
5726 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5727
5728         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5729         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5730
5731         * mule-charset.c (leading_code_private_11): Don't define in
5732         UTF-2000.
5733
5734         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5735         in UTF-2000 because it is not ported yet and not to use
5736         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5737
5738 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5739
5740         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5741
5742 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5743
5744         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5745         in UTF-2000.
5746
5747         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5748         of unsigned char to store leading-byte.
5749
5750         * chartab.c (get_non_ascii_char_table_value): Don't use
5751         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5752
5753         * file-coding.c (encode_coding_big5): Delete bogus implementation
5754         in UTF2000.
5755
5756         * character.h (LEADING_BYTE_*): Delete definition for
5757         non-UTF-2000.
5758         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5759         (LEADING_BYTE_PREFIX_P): Deleted.
5760         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5761         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5762         (BUFBYTE_LEADING_BYTE_P): Deleted.
5763         (CHARSET_PRIVATE_P): Deleted unconditionally.
5764         (rep_bytes_by_first_byte): Deleted unconditionally.
5765         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5766         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5767         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5768         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5769         (CHAR_FIELD2): Deleted.
5770         (CHAR_FIELD3): Deleted.
5771         (MAKE_CHAR): Delete definition for non-UTF-2000.
5772         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5773         (breakup_char_1): New implementation.
5774         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5775         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5776
5777 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5778
5779         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5780         condition.
5781
5782 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5783
5784         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5785         (CHARSET_PRIVATE_P): Likewise.
5786         (XCHARSET_PRIVATE_P): Likewise.
5787         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5788
5789         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5790         UTF2000.
5791         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5792
5793 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5794
5795         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5796         (NUM_LEADING_BYTES): Changed from 128 to 256.
5797         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5798         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5799         UTF2000.
5800         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5801
5802         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5803         UTF2000.
5804         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5805         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5806         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5807         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5808         (Qchinese_cns11643_3): New variable in UTF2000.
5809         (Qchinese_cns11643_4): New variable in UTF2000.
5810         (Qchinese_cns11643_5): New variable in UTF2000.
5811         (Qchinese_cns11643_6): New variable in UTF2000.
5812         (Qchinese_cns11643_7): New variable in UTF2000.
5813         (syms_of_mule_charset): Define `chinese-cns11643-3',
5814         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5815         and `chinese-cns11643-7' in UTF2000.
5816         (vars_of_mule_charset): Initialize
5817         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5818         + 1 in UTF2000.
5819         (complex_vars_of_mule_charset): Setup charset
5820         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5821         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5822
5823 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5824
5825         * mule-charset.c: Move setting for `leading-code-private-11' from
5826         `syms_of_mule_charset' to `vars_of_mule_charset'.
5827
5828 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5829
5830         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5831         and `NUM_LEADING_BYTES' in assert.
5832
5833 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5834
5835         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5836         instead of 128.
5837         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5838         `NUM_LEADING_BYTES' instead of 128.
5839
5840 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5841
5842         * mule-charset.h (charset_by_leading_byte): Use
5843         `NUM_LEADING_BYTES' instead of 128.
5844         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5845
5846         * mule-charset.c (charset_by_leading_byte): Use
5847         `NUM_LEADING_BYTES' instead of 128.
5848         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5849
5850         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5851         128.
5852
5853 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5854
5855         * mule-charset.c (syms_of_mule_charset): Update to
5856         0.4 (Shin-Imamiya).
5857
5858 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5859
5860         * file-coding.c (encode_coding_sjis): New implementation for
5861         UTF2000.  (decode_coding_sjis): Ditto.
5862
5863 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5864
5865         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5866         Don't define in UTF2000.
5867
5868         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5869         defined.
5870
5871         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5872         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5873         MULE.
5874
5875 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5876
5877         * config.h.in (CHAR_IS_UCS4): New macro.
5878
5879         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5880         conventional MULE representation.
5881         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5882
5883         * mule-charset.h: Reverted to original.
5884
5885         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5886         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5887         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5888
5889         * character.h: New file.
5890
5891         * file-coding.c (Fmake_coding_system): Set 1 to
5892         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5893         defined.
5894         (encode_coding_no_conversion): New implementation for UTF2000.
5895
5896         * file-coding.h (struct Lisp_Coding_System): Add new member
5897         `fixed.size'.
5898
5899 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5900
5901         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5902         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5903         (encode_coding_iso2022): New implementation for UTF2000.
5904
5905 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5906
5907         * mule-canna.c (c2mu): New implementation for UTF2000.
5908         (m2c): Likewise.
5909
5910 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5911
5912         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5913
5914 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5915
5916         * file-coding.c (reset_encoding_stream): Set 0 to
5917         `str->iso2022.current_char_boundary' in UTF2000.
5918         (encode_utf8): Don't define in UTF2000.
5919         (encode_coding_utf8): New implementation for UTF-8 representation
5920         of UTF2000.
5921         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5922
5923 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5924
5925         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5926
5927         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5928         UTF2000.
5929         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5930
5931         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5932
5933         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5934         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5935         as UTF-8 in UTF2000.
5936         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5937         (non_ascii_valid_char_p): Don't define in UTF2000.
5938         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5939         (Lstream_get_emchar_1): Likewise.
5940         (utf-2000-version): New variable in UTF2000.
5941
5942         * lread.c (read_escape): Add new reader `u'.
5943
5944         * insdel.c (three_to_one_table): Don't define in UTF2000.
5945         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5946         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5947         UTF2000.
5948         (bytind_to_bufpos_func): Likewise.
5949         (buffer_mule_signal_inserted_region): Likewise.
5950         (vars_of_insdel): Don't initialize `three_to_one_table'.
5951         (init_buffer_text): Use `buf->text->mule_size' instead of
5952         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5953         UTF2000.
5954
5955         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5956         UTF-8 representation in UTF2000.
5957         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5958         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5959         (decode_coding_iso2022): Don't define local variable `lb' in
5960         UTF2000; don't use LEADING_BYTE in UTF2000; use
5961         `DECODE_ADD_UCS_CHAR' in UTF2000.
5962         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5963
5964         * config.h.in (UTF2000): New macro.
5965
5966         * buffer.h (struct buffer_text): Add new member `mule_size' and
5967         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5968         (valid_char_p): Return always 1 in UTF2000.
5969         (MAX_EMCHAR_LEN): 6 in UTF2000.
5970         (three_to_one_table): Don't define in UTF2000.
5971         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5972         UTF2000.
5973         (real_bytind_to_bufpos): Likewise.
5974
5975         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5976
5977 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5978
5979         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5980         representation change.
5981         (Vutf_2000_version): New variable.
5982         (leading_code_private_11): New variable.
5983         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5984         `leading-code-private-11'.
5985
5986         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5987         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5988         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5989         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5990         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5991         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5992         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5993         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5994         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5995         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5996         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5997         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5998         (MIN_CHAR_GREEK): New macro.
5999         (MAX_CHAR_GREEK): New macro.
6000         (MIN_CHAR_CYRILLIC): New macro.
6001         (MAX_CHAR_CYRILLIC): New macro.
6002         (MIN_CHAR_HEBREW): New macro.
6003         (MAX_CHAR_HEBREW): New macro.
6004         (MIN_CHAR_THAI): New macro.
6005         (MAX_CHAR_THAI): New macro.
6006         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
6007         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
6008         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
6009         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
6010         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
6011         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
6012         (CHAR_FIELD2): New inline function.
6013         (CHAR_FIELD3): New inline function.
6014         (MULE_CHAR_PRIVATE_OFFSET): New macro.
6015         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
6016         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
6017         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
6018         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
6019         (MIN_CHAR_COMPOSITION): Likewise.
6020         (CHAR_LEADING_BYTE): Modified for character representation change.
6021         (MAKE_CHAR): Likewise.
6022
6023         * lisp.h (Vcharset_latin_iso8859_1): New variable.
6024         (Vcharset_greek_iso8859_7): Likewise.
6025         (Vcharset_cyrillic_iso8859_5): Likewise.
6026         (Vcharset_hebrew_iso8859_8): Likewise.
6027         (Vcharset_thai_tis620): Likewise.
6028         (Vcharset_katakana_jisx0201): Likewise.
6029
6030 2008-12-28  Vin Shelton  <acs@xemacs.org>
6031
6032         * XEmacs 21.4.22 is released
6033
6034 2008-12-27  Vin Shelton  <acs@xemacs.org>
6035
6036         * syswindows.h: Don't define wide character interfaces for Cygwin
6037         1.7 and up.
6038
6039 2008-03-05  Dominique Quatravaux  <domq@cpan.org>
6040
6041         * glyphs-gtk.c: Fixed compilation under gcc 4.x.
6042
6043 2008-11-01  Stephen J. Turnbull  <stephen@xemacs.org>
6044
6045         * regex.c (re_search_2): Fix at_dot by changing charpos to bytepos.
6046         From Julian Bradfield <18654.1143.304851.782755@krk.inf.ed.ac.uk>.
6047
6048 2008-12-25  Vin Shelton  <acs@xemacs.org>
6049
6050         * mule-ccl.c (ccl_driver): Fix off-by-one error.
6051         By Julian Bradfield in
6052         <18691.16568.526264.972026@krk.inf.ed.ac.uk>.
6053
6054         * mule-ccl.c (ccl_driver): 
6055
6056 2007-10-07  Vin Shelton  <acs@xemacs.org>
6057
6058         * XEmacs 21.4.21 is released
6059
6060 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
6061
6062         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
6063
6064 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
6065
6066         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
6067         (png_instantiate): Initialize setjmp_buffer early, and avoid
6068         recursive entry to error handler.
6069
6070 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
6071
6072         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
6073         a typo fix.
6074
6075 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
6076
6077         * event-Xt.c (x_reset_modifier_mapping):
6078         * event-gtk.c (gtk_reset_modifier_mapping):
6079         Zero out the device's modifier map once we've freed it, to prevent
6080         a double free on a re-entrant call. 
6081
6082 2007-05-17  Vin Shelton  <acs@xemacs.org>
6083
6084         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
6085         64-bit linux.  Patch from Hans de Graaff.
6086
6087 2007-05-02  Vin Shelton  <acs@xemacs.org>
6088
6089         * dumper.c (pdump): Don't close pdump_fd (already closed by
6090         fclose() call.  Patch from Steve Higham.
6091         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
6092         already closed.  Patch inspired by Steve Higham.
6093
6094 2007-05-01  Vin Shelton  <acs@xemacs.org>
6095
6096         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
6097         (mswindows_fstat): Ditto.
6098         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
6099
6100 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
6101
6102         * postgresql.c: Update Steve Baur's email address by his request.
6103         * postgresql.h: Ditto.
6104
6105 2007-01-04  Vin Shelton  <acs@xemacs.org>
6106
6107         * fileio.c (check_writable): Check old-style readonly bit only for
6108         non-directories.
6109
6110 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
6111
6112         * src/fileio.c (check_writable): 
6113         Cope with the fact that the read-only attribute trumps Windows NTFS
6114         ACLS.
6115
6116
6117 2006-12-09  Vin Shelton  <acs@xemacs.org>
6118
6119         * XEmacs 21.4.20 is released
6120
6121 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
6122
6123         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6124         relocated the definitions to be used sooner in file.
6125         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6126         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6127         overflow.
6128
6129 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6130
6131         * sound.c (init_native_sound):
6132         Only X11 and GTK devices can possibly not be on the console of the
6133         associated machine. Fixes a crash when init_native_sound is called
6134         on a msprinter device. 
6135
6136 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6137
6138         * buffer.c (buffer-file-name): Document invariant.
6139         (buffer-file-truename): Sync wording to buffer-file-name.
6140         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6141         and discussion.
6142
6143 2006-11-19  Benson Margulies  <benson@dchbk.us>
6144
6145         * fileio.c: Add code to use full Win32 API to check for write
6146         access.  Win32 has the general design policy that you aren't
6147         supposed to ask this question, since security checks change
6148         depending on asynchronous processes.  Nonetheless, there is a way,
6149         by acting as if we are a server doing interpretive access
6150         control.
6151
6152 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6153
6154         * bytecode.c: Use xnew_array instead of alloca.
6155
6156 2006-07-04  Vin Shelton  <acs@xemacs.org>
6157
6158         * redisplay-msw.c: Fix tiny, but crucial typo.
6159
6160 2006-06-22  Jerry James  <james@xemacs.org>
6161
6162         * EmacsShell-sub.c (ChangeManaged):
6163         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6164         NULL.
6165         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6166         checking if it is NULL.  Also fix a memory leak.
6167         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6168         dereference it, not the other way around.
6169         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6170         overflow check.
6171         * dumper.c (pdump_register_struct): Ditto.
6172         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6173         to (short) warnpath overflow warnpath.
6174         * extents.c (detach_all_extents): Call extent_list_delete_all with
6175         a non-NULL parameter only.
6176         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6177         NULL width and height.
6178         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6179         xic before checking if they are NULL.
6180         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6181         allocated array.
6182         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6183         * nas.c (Err): Fix a memory leak.
6184         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6185         Don't create the buffer if there is nothing to do.
6186         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6187         * redisplay-output.c (redisplay_output_layout): Ditto.
6188         * redisplay-tty.c (tty_output_display_block): Ditto.
6189         * redisplay-x.c (x_output_display_block): Ditto.
6190         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6191         dereference instance->scrollbar_data if it is NULL.
6192         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6193         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6194         for sb->scrollbar_data.
6195         * sound.c (init_native_sound): Avoid a buffer overflow by
6196         allocating a buffer with the appropriate size.
6197
6198 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6199
6200         * EmacsShell-sub.c (RootGeometryManager):
6201         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6202         Based on a suggestion by Francois L'Archeveque.
6203
6204 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6205
6206         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6207         current values found in GNU Emacs.
6208
6209 2006-03-17  Vin Shelton  <acs@xemacs.org>
6210
6211         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6212         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6213
6214         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6215         'hex_initialized' because it conflicts with 'initialized' in
6216         lisp.h.
6217
6218 2006-01-28  Vin Shelton  <acs@xemacs.org>
6219
6220         * XEmacs 21.4.19 is released
6221
6222 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6223
6224         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6225
6226 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6227
6228         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6229         5000 to INT_MAX.
6230
6231 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6232
6233         * database.c: Suppress compiler warning under Cygwin.
6234         * database.c: Removed __FreeBSD__ check, should be handled by
6235         HAVE_U_xxx_T defines.
6236
6237 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6238
6239         * console.c (stuff_buffered_input): Compile body only if
6240         HAVE_TTY.
6241
6242 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6243
6244         * callproc.c: #include sysdir.h, so that any appropriate Mule
6245         magic happens with the chdir() call when calling a subprocess. 
6246
6247 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6248
6249         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6250         * mule-ccl.c: Check that a character set exists before using it
6251         to create a character. 
6252
6253 2005-12-06  Vin Shelton  <acs@xemacs.org>
6254
6255         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6256         to INT_MAX.
6257
6258 2005-12-03  Vin Shelton <acs@xemacs.org>
6259
6260         * XEmacs 21.4.18 is released
6261
6262 2005-11-27  Kean Johnston <kean@armory.com>
6263
6264         * redisplay-tty.c (set_tty_modes):
6265         (reset_tty_modes): disable auto-margins if the terminal supports
6266         them.
6267         (init_tty_for_redisplay): fix cursor shape.
6268
6269 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6270
6271         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6272         for control-1 characters properly, both when reading multibyte
6273         characters and writing them. 
6274
6275 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6276
6277         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6278         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6279         were seeing with incremental selection transfer failing. 
6280
6281 2005-11-26  Vin Shelton  <acs@xemacs.org>
6282
6283         * callproc.c (Fold_call_process_internal): Create the buffer if it
6284         does not already exist.  The original patch came from Ben Wing in
6285         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6286
6287 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6288
6289         * callproc.c: Process-related docstring improvements spurred by
6290         Norbert Koch.
6291
6292 2005-11-25  Vin Shelton  <acs@xemacs.org>
6293
6294         * depend: Regenerated.
6295
6296 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6297
6298         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6299         says it clashes with a global with the same name.
6300
6301 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6302
6303         * sysdll.c (dll_open): Under MacOS X return NULL under the
6304         filename is NULL.  Fixes problems finding local symbols under 10.4
6305         (Tiger)
6306
6307 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6308         
6309         * config.h.in: New HAVE_U_INT*_T defines.
6310         
6311         * database.c: Only use u_int*_t typedefs if not already
6312         defined.
6313
6314 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6315
6316         * src/process-unix.c (unix_open_network_stream): moved
6317           'portbuf' buffer out of an inner block as it is used in the
6318           entire function. With gcc4, the stack may get corrupted
6319           after leaving this block. This patches adjusts the size of
6320           the used buffer also; static '128' bytes are far too much
6321           currently and might not suffice for future architectures
6322           (e.g. for 512 bit ones ;)). Instead of, use only the really
6323           required space (max octets * ln(256)/ln(10) chars + space
6324           for '\0' and the sign)
6325
6326 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6327
6328         * callproc.c: Include sysdir.h, so any necessary Mule processing
6329         is done on the current directory name before starting a new
6330         process.
6331
6332 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6333
6334         * chartab.c (Fchar_table_p):
6335         (Fget_range_char_table):
6336         (Fput_char_table):
6337         (Fmap_char_table):
6338         Describe range representation and fix typo.
6339
6340 2005-02-12  Vin Shelton  <acs@xemacs.org>
6341
6342         * emacs.c (shut_down_emacs): Advise users to send email to the
6343         xemacs-beta list instead of crashes@xemacs.org.
6344
6345 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6346
6347         * process-unix.c (unix_send_process): Flush the last chunk, even
6348         when the pipe is blocked.
6349
6350 2005-02-06  Vin Shelton <acs@xemacs.org>
6351
6352         * XEmacs 21.4.17 is released
6353
6354 2005-01-31  Ben Wing  <ben@xemacs.org>
6355
6356         * emacs.c:
6357         Define assert_failed() always.
6358         * lisp.h:
6359         Always define ABORT().
6360
6361 2005-01-25  Ben Wing  <ben@xemacs.org>
6362
6363         * Makefile.in.in:
6364         * Makefile.in.in (%.o):
6365         Don't compile executable as Windows (-mwindows) under Cygwin.
6366         Semi-recent changes to Cygwin's executable-startup handling make
6367         it impossible to access the TTY this way.
6368
6369         Don't use special linker file under Cygwin (cygwin.sc) except
6370         when non-PDUMP (even in this case it is highly questionable); you
6371         get errors like
6372
6373       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6374    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6375
6376 2005-01-29  Ben Wing  <ben@xemacs.org>
6377
6378         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6379
6380         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6381
6382 2005-01-29  Ben Wing  <ben@xemacs.org>
6383
6384         * bytecode.c (optimize_compiled_function):
6385         * print.c (FROB):
6386         * print.c (long_to_string):
6387         Add casts to avoid warning.
6388         
6389         * glyphs-eimage.c:
6390         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6391         #### The better solution is to move the TIFF and JPEG code to
6392         different files.
6393         
6394         * glyphs-msw.c (mswindows_xbm_instantiate):
6395         Define __STDC__ to avoid problems with compface.h.
6396         
6397         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6398         * EmacsShell-sub.c:
6399         * EmacsShell-sub.c (ABORT):
6400         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6401         * EmacsShell-sub.c (RootGeometryManager):
6402         * EmacsShell.c:
6403         * EmacsShell.c (ABORT):
6404         * EmacsShell.c (EmacsShellUpdateSizeHints):
6405         * alloc.c (free_lcrecord):
6406         * alloca.c (i00afunc):
6407         * buffer.c (delete_from_buffer_alist):
6408         * buffer.c (MARKED_SLOT):
6409         * bytecode.c (execute_rare_opcode):
6410         * bytecode.c (optimize_byte_code):
6411         * bytecode.c (Ffetch_bytecode):
6412         * chartab.c (char_table_type_to_symbol):
6413         * chartab.c (Freset_char_table):
6414         * chartab.c (decode_char_table_range):
6415         * chartab.c (Fget_range_char_table):
6416         * chartab.c (check_valid_char_table_value):
6417         * chartab.c (map_char_table):
6418         * chartab.c (slow_map_char_table_fun):
6419         * chartab.c (chartab_instantiate):
6420         * cm.c (cmcheckmagic):
6421         * console-msw.c (DHEADER):
6422         * console.c (MARKED_SLOT):
6423         * data.c (finish_marking_weak_lists):
6424         * data.c (encode_weak_list_type):
6425         * debug.h (DASSERT):
6426         * device-gtk.c (gtk_init_device):
6427         * device-msw.c (mswindows_get_default_margin):
6428         * device-tty.c (tty_init_device):
6429         * device-x.c (get_device_from_display):
6430         * device-x.c (x_get_visual_depth):
6431         * doprnt.c (parse_doprnt_spec):
6432         * doprnt.c (get_doprnt_args):
6433         * dumper.c (pdump_get_indirect_count):
6434         * dumper.c (pdump_register_sub):
6435         * dumper.c (pdump_register_object):
6436         * dumper.c (pdump_register_struct):
6437         * dumper.c (pdump_dump_data):
6438         * dumper.c (pdump_reloc_one):
6439         * elhash.c (print_hash_table):
6440         * elhash.c (make_standard_lisp_hash_table):
6441         * elhash.c (hash_table_instantiate):
6442         * emacs.c:
6443         * emacs.c (Fforce_debugging_signal):
6444         * emacs.c (sort_args):
6445         * emacs.c (main):
6446         * emacs.c (assert_failed):
6447         * eval.c (throw_or_bomb_out):
6448         * eval.c (signal_1):
6449         * eval.c (Fsignal):
6450         * event-Xt.c:
6451         * event-Xt.c (emacs_Xt_mapping_action):
6452         * event-Xt.c (Xt_process_to_emacs_event):
6453         * event-msw.c:
6454         * event-stream.c (check_event_stream_ok):
6455         * event-stream.c (Fadd_timeout):
6456         * event-stream.c (Fadd_async_timeout):
6457         * event-stream.c (Fdiscard_input):
6458         * event-stream.c (execute_internal_event):
6459         * event-stream.c (Frecent_keys):
6460         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6461         * event-stream.c (lookup_command_event):
6462         * event-unixoid.c (poll_fds_for_input):
6463         * events.c:
6464         * events.c (mark_event):
6465         * events.c (event_equal):
6466         * events.c (event_hash):
6467         * events.c (Fmake_event):
6468         * events.c (Fdeallocate_event):
6469         * events.c (event_chain_find_previous):
6470         * events.c (event_to_character):
6471         * events.c (format_event_object):
6472         * events.c (Fevent_type):
6473         * events.c (event_pixel_translation):
6474         * events.c (Fevent_properties):
6475         * extents.c (extent_in_region_p):
6476         * extents.c (print_extent):
6477         * extents.c (process_extents_for_insertion_mapper):
6478         * extents.c (report_extent_modification_mapper):
6479         * extents.c (glyph_layout_to_symbol):
6480         * faces.c (face_validate):
6481         * file-coding.c (eol_type_to_symbol):
6482         * file-coding.c (subsidiary_coding_system):
6483         * file-coding.c (Fcoding_system_type):
6484         * file-coding.c (Fcoding_system_property):
6485         * file-coding.c (mule_decode):
6486         * file-coding.c (mule_encode):
6487         * file-coding.c (encode_coding_ucs4):
6488         * file-coding.c (encode_coding_utf8):
6489         * file-coding.c (parse_iso2022_esc):
6490         * file-coding.c (encode_coding_iso2022):
6491         * fileio.c:
6492         * fns.c (concat):
6493         * fns.c (Fsubseq):
6494         * fns.c (mapcar1):
6495         * fns.c (Fbase64_encode_region):
6496         * fns.c (Fbase64_encode_string):
6497         * fns.c (Fbase64_decode_region):
6498         * fns.c (Fbase64_decode_string):
6499         * font-lock.c (find_context):
6500         * font-lock.c (context_to_symbol):
6501         * frame-gtk.c (gtk_set_frame_pointer):
6502         * frame-gtk.c (gtk_update_frame_external_traits):
6503         * frame-x.c (x_wm_mark_shell_size_user_specified):
6504         * frame-x.c (x_wm_mark_shell_position_user_specified):
6505         * frame-x.c (x_wm_set_shell_iconic_p):
6506         * frame-x.c (x_wm_set_cell_size):
6507         * frame-x.c (x_wm_set_variable_size):
6508         * frame-x.c (x_wm_store_class_hints):
6509         * frame-x.c (x_wm_maybe_store_wm_command):
6510         * frame-x.c (x_initialize_frame_size):
6511         * frame-x.c (x_update_frame_external_traits):
6512         * frame.c:
6513         * frame.c (delete_frame_internal):
6514         * frame.c (mouse_pixel_position_1):
6515         * frame.c (change_frame_size_1):
6516         * free-hook.c (check_free):
6517         * free-hook.c (check_realloc):
6518         * free-hook.c (note_block_input):
6519         * free-hook.c (log_gcpro):
6520         * gccache-gtk.c (gc_cache_lookup):
6521         * glyphs-eimage.c (tiff_memory_write):
6522         * glyphs-gtk.c (gtk_finalize_image_instance):
6523         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6524         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6525         * glyphs-gtk.c (gtk_xpm_instantiate):
6526         * glyphs-gtk.c (gtk_unmap_subwindow):
6527         * glyphs-gtk.c (gtk_map_subwindow):
6528         * glyphs-gtk.c (gtk_button_redisplay):
6529         * glyphs-msw.c:
6530         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6531         * glyphs-x.c (init_image_instance_from_xbm_inline):
6532         * glyphs-x.c (extract_xpm_color_names):
6533         * glyphs-x.c (x_xpm_instantiate):
6534         * glyphs.c (get_image_instantiator_governing_domain):
6535         * glyphs.c (print_image_instance):
6536         * glyphs.c (image_instance_equal):
6537         * glyphs.c (image_instance_hash):
6538         * glyphs.c (encode_image_instance_type):
6539         * glyphs.c (make_image_instance_1):
6540         * glyphs.c (inherit_instantiate):
6541         * glyphs.c (image_instantiate):
6542         * glyphs.c (allocate_glyph):
6543         * glyphs.c (Fglyph_type):
6544         * glyphs.c (redisplay_subwindow):
6545         * glyphs.c (display_table_entry):
6546         * gtk-glue.c (xemacs_list_to_gtklist):
6547         * gtk-glue.c (xemacs_gtklist_to_list):
6548         * gtk-glue.c (xemacs_list_to_array):
6549         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6550         * gutter.c (gutter_was_visible):
6551         * gutter.c (get_gutter_coords):
6552         * input-method-xlib.c (get_XIM_input):
6553         * insdel.c (bufpos_to_bytind_func):
6554         * insdel.c (bytind_to_bufpos_func):
6555         * insdel.c (move_gap):
6556         * intl.c (x_get_composed_input):
6557         * keymap.c (keymap_lookup_directly):
6558         * keymap.c (keymap_delete_inverse_internal):
6559         * keymap.c (ensure_meta_prefix_char_keymapp):
6560         * keymap.c (accessible_keymaps_mapper_1):
6561         * keymap.c (where_is_recursive_mapper):
6562         * lisp.h:
6563         * lisp.h (ABORT):
6564         * lread.c (read_atom):
6565         * lstream.c (Lstream_delete):
6566         * lstream.c (make_lisp_buffer_stream_1):
6567         * macros.c (pop_kbd_macro_event):
6568         * malloc.c (malloc):
6569         * malloc.c (free):
6570         * marker.c (bi_marker_position):
6571         * marker.c (set_bi_marker_position):
6572         * menubar-gtk.c (menu_descriptor_to_widget_1):
6573         * menubar-msw.c (prune_menubar):
6574         * menubar-x.c (set_frame_menubar):
6575         * mule-charset.c (get_unallocated_leading_byte):
6576         * mule-charset.h (CHAR_LEADING_BYTE):
6577         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6578         * nt.c (init_environment):
6579         * nt.c (generate_inode_val):
6580         * ntproc.c (delete_child):
6581         * ntproc.c (_sys_read_ahead):
6582         * ntproc.c (create_child):
6583         * objects.c (color_instantiate):
6584         * objects.c (font_instantiate):
6585         * objects.c (face_boolean_instantiate):
6586         * print.c (printing_major_badness):
6587         * process-nt.c (nt_send_process):
6588         * process-unix.c (unix_send_process):
6589         * process.c (get_process):
6590         * ralloc.c (obtain):
6591         * ralloc.c (relinquish):
6592         * ralloc.c (relocate_blocs):
6593         * ralloc.c (resize_bloc):
6594         * ralloc.c (r_alloc_free):
6595         * ralloc.c (r_re_alloc):
6596         * ralloc.c (r_alloc_thaw):
6597         * ralloc.c (init_ralloc):
6598         * ralloc.c (Free_Addr_Block):
6599         * ralloc.c (r_alloc):
6600         * redisplay-gtk.c (gtk_output_display_block):
6601         * redisplay-msw.c (mswindows_output_display_block):
6602         * redisplay-output.c (get_next_display_block):
6603         * redisplay-output.c (get_cursor_size_and_location):
6604         * redisplay-output.c (redisplay_output_layout):
6605         * redisplay-output.c (redisplay_clear_region):
6606         * redisplay-tty.c (tty_output_display_block):
6607         * redisplay-x.c (x_output_display_block):
6608         * redisplay.c (add_propagation_runes):
6609         * redisplay.c (add_glyph_rune):
6610         * redisplay.c (create_text_block):
6611         * redisplay.c (add_margin_runes):
6612         * redisplay.c (create_left_glyph_block):
6613         * redisplay.c (create_right_glyph_block):
6614         * redisplay.c (create_string_text_block):
6615         * redisplay.c (regenerate_window):
6616         * redisplay.c (REGEN_INC_FIND_START_END):
6617         * redisplay.c (redisplay_frame):
6618         * redisplay.c (point_in_line_start_cache):
6619         * regex.c:
6620         * regex.c (ABORT):
6621         * regex.c (re_compile_fastmap):
6622         * regex.c (re_match_2_internal):
6623         * regex.c (regerror):
6624         * scrollbar-gtk.c (gtk_scrollbar_loop):
6625         * scrollbar-gtk.c (scrollbar_cb):
6626         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6627         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6628         * scrollbar-x.c (x_update_scrollbar_instance_status):
6629         * scrollbar-x.c (x_scrollbar_loop):
6630         * scrollbar-x.c (x_update_frame_scrollbars):
6631         * search.c (search_command):
6632         * search.c (Fmatch_data):
6633         * select-x.c (motif_clipboard_cb):
6634         * signal.c (interrupt_signal):
6635         * specifier.c (specifier_add_spec):
6636         * specifier.c (specifier_instance_from_inst_list):
6637         * specifier.c (specifier_instance):
6638         * specifier.h:
6639         * specifier.h (struct specifier_methods):
6640         * strftime.c (add_num_time_t):
6641         * sunplay.c (init_device):
6642         * symbols.c (Fsetplist):
6643         * symbols.c (do_symval_forwarding):
6644         * symbols.c (store_symval_forwarding):
6645         * symbols.c (Fset):
6646         * symbols.c (Fbuilt_in_variable_type):
6647         * symbols.c (decode_magic_handler_type):
6648         * symbols.c (handler_type_from_function_symbol):
6649         * syntax.c (update_syntax_cache):
6650         * sysdep.c (init_baud_rate):
6651         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6652         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6653         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6654         * toolbar.c (get_toolbar_coords):
6655         * ui-gtk.c (build_gtk_boxed):
6656         * ui-gtk.c (describe_gtk_arg):
6657         * ui-gtk.c (gtk_type_to_lisp):
6658         * ui-gtk.c (lisp_to_gtk_type):
6659         * ui-gtk.c (lisp_to_gtk_ret_type):
6660         * ui-gtk.c (lisp_to_flag):
6661         * unexnt.c (read_in_bss):
6662         * unexnt.c (map_in_heap):
6663         * window.c (real_window):
6664         * window.c (window_display_lines):
6665         * window.c (window_display_buffer):
6666         * window.c (set_window_display_buffer):
6667         * window.c (window_modeline_height):
6668         * window.c (unshow_buffer):
6669         * window.c (window_loop):
6670         * window.c (Fget_lru_window):
6671         * window.c (Fsplit_window):
6672         * window.c (Fset_window_configuration):
6673         * window.c (saved_window_index):
6674         * xgccache.c (gc_cache_lookup):
6675         abort() -> ABORT().  Eliminate preprocessor games with abort()
6676         since it creates huge problems in VC7, solvable only by including
6677         massive amounts of files in every compile (and not worth it).
6678
6679         * sysdep.c:
6680         * sysproc.h:
6681         Inclusion of process.h does not need to be before lisp.h any more.
6682         Move later and remove comment about abort().
6683
6684 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6685
6686         * regex.c (re_match_2_internal):
6687         Correctly initialize loop which clears uninitialized registers.
6688
6689 2005-01-28  Vin Shelton  <acs@xemacs.org>
6690
6691         * sheap.c (more_static_core): Applied Ben's version of the long
6692         string patch.
6693
6694 2005-01-24  Vin Shelton  <acs@xemacs.org>
6695
6696         * sheap.c (more_static_core): Reformatted printf string so
6697         gcc-3.3.3 will compile this on Cygwin.
6698
6699 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6700
6701         * console.c (function_key_map): Reference `key-binding'.
6702
6703         * keymap.c (Vkey_translation_map): Improve docstring.
6704
6705 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6706
6707         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6708         * window.c (window_loop): [fix] Take into account
6709         `allow-deletion-of-last-visible-frame' variable.
6710         * window.c (replace-buffer-in-windows): Ditto.
6711
6712 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6713
6714         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6715
6716 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6717
6718         * event-gtk.c: Recognise AltGr as a valid modifier.
6719
6720 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6721
6722         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6723
6724 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6725
6726         Fix backreference bug caught by test suite.
6727
6728         * regex.c (regex_compile):
6729         Make backref duplicate internal register.
6730
6731 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6732
6733         Documentation, code clarification, and warning suppression.
6734         
6735         * regex.c (regex_compile):
6736         Improve comments.
6737         (re_match_2_internal):
6738         Improve comments and avoid redundant braces.  [Most of the big hunk
6739         at l. 4710 is indentation; use diff -w to see the real changes.]
6740         (alt_match_null_string_p):
6741         (common_op_match_null_string_p):
6742         Avoid shadowing global on Mac OS X 10.4, at least.
6743
6744 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6745
6746         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6747         introduced with shy groups fix).  [Already applied, probably
6748         with the second "fix shy groups" patch of 2004-10-07.] 
6749
6750 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6751
6752         From Andrey Slusar <anrays@gmail.com>:
6753
6754         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6755
6756 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6757
6758         * Makefile (RECURSIVE_MAKE): Removed.
6759         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6760         handling parallel builds.
6761
6762 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6763
6764         * Makefile.in.in: Enable support for parallel builds.
6765
6766 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6767
6768         From Andrey Slusar <anrays@gmail.com>:
6769
6770         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6771         FreeBSD version is >= 199701 _and_ < 600006.
6772
6773 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6774
6775         * scrollbar.c (compute_scrollbar_instance_usage):
6776         Only call device method compute_scrollbar_instance_usage() if it
6777         is defined.
6778
6779 2004-12-05  Vin Shelton <acs@xemacs.org>
6780
6781         * XEmacs 21.4.16 is released
6782
6783 2004-12-04  Vin Shelton  <acs@xemacs.org>
6784
6785         * depend: Regenerated.
6786
6787 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6788
6789         * regex.c (re_match_2_internal): Map internal to external
6790         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6791         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6792
6793 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6794
6795         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6796         to fix a crash.  Also, check the buffer is live and it
6797         really exists in buffer_list.  If the buffer is not in the list,
6798         prepend it.
6799
6800 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6801
6802         Fix shy groups by implementing recording of all groups for
6803         repetition and backtracking.  Backport from 21.5.
6804         
6805         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6806         external_to_internal_register, external_to_internal_register_size,
6807         and update comments for re_nsub.
6808
6809         * regex.c (re_opcode_t): Update comments.
6810         (print_compiled_pattern): Ouput external_to_internal_register,
6811         external_to_internal_register_size, and re_ngroups for debugging.
6812         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6813         (regex_compile): Update header comment.
6814         Ensure that all groups are recorded so that repeat matches and
6815         backtracking work correctly.  Comment related warning for groups >
6816         255.
6817         (re_search_2): Construct map of API indexes (which count only
6818         nonshy groups) to internal register numbers, and keep it updated.
6819
6820 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6821
6822         * frame-gtk.c (gtk_make_frame_visible):
6823         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6824         show/hide.  This is what X uses and is prevents previously hidden
6825         widgets from suddenly reappearing.
6826         * gtk-xemacs.c (gtk_xemacs_paint):
6827         * gtk-xemacs.c (gtk_xemacs_draw):
6828         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6829         drawable.
6830         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6831         size and location changes so that they can be seen before the next
6832         idle event.  Without this rapid changes to scrollbar properties
6833         are not seen.
6834
6835 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6836
6837         * console-gtk.h:
6838         * console-gtk.h (struct gtk_frame):
6839         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6840           Add hash tables track tab_control callback data.
6841           Added #defines for GTK object data names.
6842           Declaration of gtk_widget_to_frame().
6843         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6844         * frame-gtk.c (gtk_widget_to_frame): New.
6845         * frame-gtk.c (gtk_create_widgets):
6846         * frame-gtk.c (allocate_gtk_frame_struct):
6847         * frame-gtk.c (gtk_mark_frame):
6848         Manage frame callbakc hash tables.
6849         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6850         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6851         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6852         of widget size.
6853         * glyphs-gtk.c (gtk_widget_query_geometry): New
6854         * glyphs-gtk.c (gtk_register_gui_item): New
6855         * glyphs-gtk.c (gtk_add_tab_item): New
6856         * glyphs-gtk.c (gtk_tab_control_callback): New
6857         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6858         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6859         Use correct list when loading item.
6860         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6861         Register new methods.
6862         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6863         default size, for widgets.
6864         * gui-x.c:  Improved comment.
6865         * menubar-gtk.c (__generic_button_callback): Use
6866         gtk_widget_to_frame instead of __get_channel.
6867         * scrollbar-gtk.c:
6868         * ui-gtk.c: Use symbolic names for GTK object data.
6869
6870 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6871
6872         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6873
6874 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6875
6876         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6877
6878 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6879
6880         * malloc.c (morecore): siz is a long because in some architectures
6881         (eg ia-64) an int cannot hold the address range.  Additional patch
6882         from the SuSe distribution.
6883
6884 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6885
6886         * emacs.c:
6887         * malloc.c: lim_data is a long because in some architectures
6888         (eg ia-64) an int cannot hold the address range.
6889         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6890         instead of ulimit() because ulimit() always returns -1.
6891
6892 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6893
6894         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6895
6896 2004-06-11  David Kastrup  <dak@gnu.org>
6897
6898         * search.c (match_limit): Don't flag an error if match-data
6899         exceeding the allocated search_regs.num_regs gets requested, just
6900         return Qnil.
6901
6902 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6903
6904         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6905         replace symbolic color entries with the real colors specified in
6906         xpm-color-symbols, before passing the XPM to gtk.
6907         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6908         instead of a GTK specific field, so that it is used in by generic
6909         code.
6910
6911 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6912
6913        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6914         coredump from deref of NULL ptr (ExtData)
6915
6916 2004-04-19  Jerry James  <james@xemacs.org>
6917
6918         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6919         VALBITS to compute the location of the sign bit.
6920         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6921         of VALBITS with EMACS_INT_MAX.
6922         * events.c (Fevent_timestamp): Ditto.
6923         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6924         compute the halfway point to timestamp wraparound.
6925         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6926         EMACS_INT_MIN instead of using VALBITS.
6927         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6928         incorrect number with VALBITS.
6929         * fns.c (Frandom): Correct number of integer bits in docstring.
6930         Use INT_VALBITS instead of VALBITS to compute the denominator.
6931         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6932         build random numbers.
6933
6934 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6935         * event-gtk.c:
6936         * event-gtk.c (gtk_event_to_emacs_event):
6937         * menubar-gtk.c:
6938         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6939         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6940         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6941         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6942         * menubar-gtk.c (__activate_menu):
6943         * menubar-gtk.c (convert_underscores):
6944         * menubar-gtk.c (remove_underscores):
6945         * menubar-gtk.c (menu_convert):
6946         * menubar-gtk.c (menu_descriptor_to_widget_1):
6947         * menubar-gtk.c (menu_descriptor_to_widget):
6948         * menubar-gtk.c (menu_can_reuse_widget):
6949         * menubar-gtk.c (menu_create_menubar):
6950         * menubar-gtk.c (gtk_popup_menu):
6951         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6952         Added support for Gtk menu bar and menu item mnemonics.
6953
6954 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6955
6956         * sysdll.c: (dll_function): Added support for finding symbols in
6957         Darwin shared libraries as well in Darwin bundles.
6958         * sysdll.c (image_for_address): New
6959         * sysdll.c (my_find_image): New
6960         * sysdll.c (search_linked_libs): New
6961
6962 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6963
6964         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6965         return to GTK requires a different API to marshalling data to use
6966         as GTK parameters.
6967         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6968
6969 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6970
6971         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6972
6973 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6974
6975         * glyphs.c (process_image_string_instantiator):
6976         (Fset_console_type_image_conversion_list):
6977         Stop GCC from warning about shadowing of `exp'.
6978
6979         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6980
6981 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6982
6983         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6984
6985 2004-02-03  Vin Shelton  <acs@xemacs.org>
6986
6987         * glyphs.c (image_instance_layout): Remove pointless assertion.
6988         * regex.c (regex_grow_registers): Return type is void.
6989
6990 2004-02-02  Vin Shelton <acs@xemacs.org>
6991
6992         * XEmacs 21.4.15 is released
6993
6994 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6995
6996         * device-x.c (x_error_handler): Don't call stderr_out
6997
6998 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6999
7000         * buffer.c (other-buffer): Clarify documentation of order of
7001         arguments for FSF Emacs.
7002
7003 2003-10-11  Olivier Galibert  <galibert@pobox.com>
7004
7005         * window.c (Fdelete_window): Dirty the mirror structure _before_
7006         marking the window deleted.
7007
7008 2003-09-15  Jerry James  <james@xemacs.org>
7009
7010         * event-msw.c (debug_mswin_messages): Conditionally compile
7011         messages missing from the Cygwin headers.
7012
7013 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
7014
7015         * data.c (eq_with_ebola_notice): Fix typo in comment.
7016         (Ftrue_list_p): Improve docstring.
7017
7018 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
7019
7020         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
7021
7022 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
7023
7024         * search.c (trivial_regexp_p): Regexps containing "\{" are
7025         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
7026         Stefan Monnier for suggesting a diagnosis.
7027
7028 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
7029
7030         * elhash.c (make-hash-table): Clarify use of :test #'equal.
7031
7032 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
7033
7034         * search.c (Fsearch_forward):
7035         (Fsearch_backward):
7036         Document negative count.
7037
7038 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
7039
7040         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
7041
7042 2003-09-13  Martin Buchholz  <martin@xemacs.org>
7043
7044         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
7045
7046 2003-09-15  Vin Shelton  <acs@xemacs.org>
7047
7048         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
7049         21.5.
7050
7051 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
7052
7053         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
7054         (re_search_2): Match the first byte of Bufbyte, not Emchar.
7055         (re_match_2_internal): Use TRANSLATE instead of
7056         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
7057         non-ASCII char case conversion.
7058
7059 2003-09-08  Mike Sperber  <mike@xemacs.org>
7060
7061         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
7062         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
7063
7064 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
7065
7066        * .gdbinit (pobj): fix printing of symbol name.
7067
7068 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
7069
7070         * frame-x.c (x_layout_widgets): When resizing is about to cause
7071         frame size slip, mark it for redisplay.
7072
7073 2003-08-18  Jerry James  <james@xemacs.org>
7074
7075         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
7076
7077 2003-09-03  Vin Shelton <acs@xemacs.org>
7078
7079         * XEmacs 21.4.14 is released
7080
7081 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
7082
7083         * config.h.in (REGEX_MALLOC): Make it configure'able.
7084
7085 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
7086
7087         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
7088         linking.
7089         * sysdll.c (dll_init):
7090         * sysdll.c (dll_open):
7091         * sysdll.c (dll_close):
7092         * sysdll.c (dll_function):
7093         * sysdll.c (dll_variable):
7094         * sysdll.c (dll_error):
7095         Add support for loading bundles using Darwin/MacOSX
7096         native API.
7097
7098 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
7099
7100         * process.c (start-process-internal): Document coding systems.
7101
7102 2003-07-30  Jerry James  <james@xemacs.org>
7103
7104         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
7105
7106 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
7107
7108         * event-msw.c (mswindows_enqueue_mouse_button_event):
7109         * event-msw.c (mswindows_wnd_proc):
7110           enqueue button event when scrollwheel event isn't handled by 
7111           mswindows_handle_mousewheel_event, such as when the scrollbars
7112           are not showing.
7113
7114 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
7115
7116         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7117
7118 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
7119
7120         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7121
7122 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
7123
7124         * regex.c (re_match_2_internal): Fix matching degenerate word
7125         boundaries.
7126
7127 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7128
7129         * XEmacs 21.4.13 is released
7130
7131 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7132
7133         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7134         * lisp.h (<inttypes.h>):
7135         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7136         the definition.
7137
7138 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7139
7140         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7141         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7142         Result: "temacs can only be run in -batch mode."
7143         Fix: Check xemacs executable candidate for directory-ness.
7144
7145 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7146
7147         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7148           they conflict with <sys/types.h>.
7149
7150 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7151
7152         * database.c: Berkeley DB wants __STDC__ to be defined.
7153
7154 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7155
7156         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7157
7158 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7159
7160         * process-unix.c (unix_send_process): Fix C++ compile error.
7161
7162 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7163
7164         * Added .dylib as an acceptable shared library file extension
7165         * to support MacOSX.
7166
7167 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7168
7169         * EmacsFrameP.h (EmacsFramePart):
7170         Kludge to allow compiling with Motif1, but linking with Motif2.
7171
7172 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7173
7174         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7175
7176
7177 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7178
7179         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7180
7181 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7182
7183         * sysdll.c: Included lisp.h to define needed alloca_array.
7184
7185 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7186
7187         Make XEmacs redisplay 10 times faster.
7188         If, that is, you're using a slow X connection and MoveOpaque.
7189         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7190         Use compress_motion = TRUE.
7191         * EmacsFrame.c (emacsFrameClassRec): 
7192         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7193         * EmacsManager.c (emacsManagerClassRec):
7194         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7195
7196 2003-01-30  Vin Shelton  <acs@xemacs.org>
7197
7198         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7199
7200 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7201
7202         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7203         Patch by Martin Buchholz.
7204
7205 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7206
7207         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7208         Thanks to icc for warning and Martin Buchholz for reporting.
7209
7210 2003-01-29  Vin Shelton <acs@xemacs.org>
7211
7212         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7213
7214         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7215         remember to multiply by the element size.
7216
7217 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7218
7219         * XEmacs 21.4.12 "Portable Code" is released.
7220
7221 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7222
7223         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7224         * s/cygwin.sc: new linker file.
7225
7226 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7227
7228         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7229
7230         * redisplay-x.c (x_output_string): Use X11-specified types.
7231         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7232         * emacs.c (__free_hook): Use typeof with Intel compiler.
7233         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7234
7235 2003-01-08  Andy Piper  <andy@xemacs.org>
7236
7237         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7238         reserve size during unexec().
7239
7240 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7241
7242         * process-unix.c (unix_create_process): Don't let outchannel block.
7243
7244 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7245
7246         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7247         Needed for IsBadReadPtr().
7248
7249 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7250
7251         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7252
7253 2002-12-14  Ben Wing  <ben@xemacs.org>
7254
7255         * callint.c: Declaration error.
7256         * dumper.c (pdump):
7257         * dumper.c (pdump_load): Warning fix.
7258         * process.c: GCPRO error.
7259         * glyphs.c (unmap_subwindow):
7260         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7261         * event-stream.c (maybe_kbd_translate): Wrong argument to
7262         character_to_event().
7263
7264         * alloc.c (garbage_collect_1):
7265         * emacs.c:
7266         * emacs.c (debug_can_access_memory):
7267         * emacs.c (fatal_error_signal):
7268         * emacs.c (mswindows_handle_hardware_exceptions):
7269         * emacs.c (main_1):
7270         * emacs.c (main):
7271         * emacs.c (assert_failed):
7272         * emacs.c (syms_of_emacs):
7273         * lisp.h:
7274         * print.c:
7275         * print.c (std_handle_out_va):
7276         * print.c (write_string_to_stdio_stream):
7277         * print.c (write_fmt_string):
7278         * print.c (printing_badness):
7279         * print.c (printing_major_badness):
7280         * print.c (print_internal):
7281         * print.c (debug_print_no_newline):
7282         * print.c (debug_backtrace):
7283         Be more defensive in handling bad values when printing.  Add code
7284         from trunk involving inhibit_non_essential_printing_operations.
7285         When going down or in debug_print(), don't do external conversion
7286         and such and try really, really hard when printing to avoid core
7287         dumping.  Add force-debugging-signal, debug_break().
7288
7289 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7290
7291         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7292         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7293
7294 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7295
7296         * database.c: Fix open_database. Berkeley DB API has changed in
7297         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7298
7299 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7300
7301         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7302
7303 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7304
7305         * event-Xt.c (Xt_timeout):
7306         (Xt_timeout_callback):
7307         (emacs_Xt_add_timeout):
7308         (emacs_Xt_remove_timeout):
7309         (Xt_timeout_to_emacs_event):
7310         Turn completed_timeouts from a stack into a queue.  Fixes
7311         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7312
7313 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7314
7315         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7316         * emacs.c (main): Assert that mmap'd allocation is disabled.
7317
7318 2002-10-14  Andy Piper  <andy@xemacs.org>
7319
7320         * glyphs-widget.c (layout_query_geometry): add in fiddle
7321         factor. Include border text in width layout calculation.
7322         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7323
7324 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7325
7326         * XEmacs 21.4.10 "Military Intelligence" is released.
7327
7328 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7329
7330         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7331         using the NAS private array SoundFileInfo that no longer exists in
7332         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7333         and earlier.  This is broken for some versions between 1.5a and
7334         1.5f.
7335
7336 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7337
7338         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7339
7340         * emacs.c (shut_down_emacs): Improve crash message.
7341
7342 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7343
7344         * file-coding.c (determine_real_coding_system): Check for coding
7345         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7346         shebangs and Python PEP 263.
7347
7348 2002-10-08  Andy Piper  <andy@xemacs.org>
7349
7350         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7351         if static sizes haven't been set.
7352
7353 2002-08-30  Mike Alexander  <mta@arbortext.com>
7354
7355         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7356         to close a socket.
7357
7358 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7359
7360         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7361
7362 2002-09-20  Mike Sperber <mike@xemacs.org>
7363
7364         (This partially gets back my patch from 2002-07-20 without the
7365         bug.)
7366         * callproc.c (child_setup): Remove Ben's comment noting confusion
7367         over the file descriptors >= 3: close_process_descs() doesn't
7368         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7369         * process-unix.c (unix_create_process): Call
7370         begin_dont_check_for_quit to inhibit unwanted interaction (and
7371         thus breaking of X event synchronicity) in the child.
7372
7373 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7374
7375         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7376         widget.
7377
7378 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7379
7380         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7381         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7382         the xemacs process did not exit, but looped infinitely here.  This
7383         fixes that problem.
7384
7385 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7386
7387         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7388         (find_context): Improve comments.
7389
7390         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7391         (re_match_2): An XCHAR_TABLE operation was missing.
7392
7393         Many of the following changes were inspired by Andy Piper's (now
7394         obsolete) patch to make syntax-table text property lookup optional.
7395
7396         [Documentation]
7397
7398         * syntax.h (top level): Document semantics of syntax flags.
7399         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7400         * syntax.c, syntax.h (top level): Document syntax cache better in
7401         comments.
7402
7403         [Instrument syntax caching (temporary change)]
7404
7405         * syntax.h (enum syntax_cache_statistics_functions, struct
7406         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7407         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7408         * syntax.c (scan_words, Fforward_comment, scan_lists,
7409         Fbackward_prefix_characters):
7410         * font-lock.c (find_context):
7411         Use them to instrument syntax caching. 
7412         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7413         syntax_cache_statistics_function_names): New type and variables.
7414         * syntax.c (update_syntax_cache): Update and report statistics.
7415
7416         [Major syntax cache optimizations]
7417
7418         syntax.c (lookup_syntax_properties): Default off.
7419
7420         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7421         * syntax.c (update_syntax_cache):
7422         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7423
7424         [Minor syntax cache optimizations and code clarifications]
7425
7426         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7427         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7428         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7429         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7430         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7431         (Code clarification.)
7432
7433         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7434         scan_lists): Compute code from syncode, use Boolean macros instead
7435         of redundant masking operations.  (Code clarification; any decent
7436         compiler can do this optimization.)
7437
7438         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7439         for clarity.
7440
7441         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7442         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7443         use F*_single_property_change instead of F*_extent_change.
7444         Currently F*_single_property_change is _much_ less efficient.
7445
7446         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7447         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7448         syntax_cache.object properly, don't leave Qt or Qnil.
7449         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7450         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7451         tests for Qt or Qnil.
7452
7453 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7454
7455         * redisplay.c (point_in_line_start_cache): 
7456         * extents.c (print_extent_1):
7457         Fix warnings.
7458
7459         * extents.c (Fset_extent_property): Document `syntax-table' property.
7460
7461         * extents.h (Fnext_single_property_change): EXFUN it.
7462
7463 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7464
7465         * search.c (clear_unused_search_regs): New static function.
7466         (search_buffer): 
7467         (simple_search): 
7468         (boyer_moore):
7469         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7470         Minor clarifications in comments.
7471
7472         * regex.c (re_match_2_internal): Ensure no stale submatches.
7473
7474 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7475
7476         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7477
7478 2002-08-29  Jerry James  <james@xemacs.org>
7479
7480         * lisp.h: structrures -> structures.
7481
7482 2002-06-03  Andy Piper  <andy@xemacs.org>
7483
7484         * frame.c (frame_conversion_internal): add conversion appropriate
7485         for setting frame dimensions in pixels.
7486
7487         * console.h (struct console_methods): add device-specific widget
7488         layout functions.
7489
7490         * emacs.c (main_1): initialize glyph vars.
7491
7492         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7493         (handle_focus_event_2): new function. Allow focus to
7494         be set to a particular window and widget.
7495         (enqueue_focus_event): new function. Create a
7496         synthetic focus event.
7497         (emacs_Xt_handle_magic_event): call
7498         handle_focus_event_2.
7499
7500         * frame.c (Fset_frame_pixel_height): new function. Allow
7501         pixel-based sizing. Does the right thing on character-oriented
7502         displays.
7503         (Fset_frame_pixel_width): ditto.
7504         (Fset_frame_pixel_size): ditto.
7505         (syms_of_frame): declare.
7506
7507         * general-slots.h: add :vertically-justify and
7508         :horizontally-justify.
7509
7510         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7511         (mswindows_widget_border_width): new function.
7512         (mswindows_combo_box_instantiate): set border widths.
7513         (console_type_create_glyphs_mswindows): declare.
7514
7515         * glyphs-widget.c:
7516         (check_valid_justification): allow vertical and horizontal
7517         justification.
7518         (widget_border_width): new function. Call device methods.
7519         (widget_instance_border_width): ditto.
7520         (logical_unit_height): new function. Determine the height of a
7521         logical-unit. Logical units are intended to provide grid-like
7522         layout for subcontrols in a layout. If the layout is
7523         :vertically-justify top then subcontrols will be positioned on
7524         logical-unit boundaries, thus allowing adjacent subcontrols to
7525         line up.
7526         (widget_logical_unit_height): ditto for widgets.
7527         (redisplay_widget): misc cleanup.
7528         (widget_spacing): new function. Call device specific
7529         methods. Intended to be the default gap between adjacent widgets.
7530         (widget_query_geometry): use new spacing functions to determine
7531         appropriate geometry.
7532         (initialize_widget_image_instance): initialize horizontal and
7533         vertical justification.
7534         (widget_instantiate): use logica-units where appropriate for
7535         sizing large widgets.
7536         (button_query_geometry): use widget_instance_border_width.
7537         (tree_view_query_geometry): ditto.
7538         (tab_control_query_geometry): ditto.
7539         (edit_field_query_geometry): new function.
7540         (layout_update): pick up :justify, :horizontally-justify and
7541         :vertically-justify none of which worked previously. :justify is
7542         used as a fallback for both horizontal and vertical justification.
7543         (layout_query_geometry): use logical units to size appropriately.
7544         (layout_layout): ditto.
7545         (Fwidget_logical_to_character_width): new function. Allow users to
7546         convert from logical units to characters so that frame sizes can
7547         be set appropriately.
7548         (Fwidget_logical_to_character_height): ditto.
7549         (syms_of_glyphs_widget): declare.
7550         (image_instantiator_edit_fields): add edit_field_query_geometry.
7551         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7552         :horizontally-justify.
7553         (specifier_vars_of_glyphs_widget): new function. Declare
7554         Vwidget_border_width which is not yet used.
7555
7556         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7557         (x_widget_border_width): new function.
7558         (x_widget_instantiate): create a sensible name for widgets.
7559         (console_type_create_glyphs_x): declare x_widget_border_width.
7560
7561         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7562         (struct Lisp_Image_Instance): add :vertically-justify and
7563         :horizontally-justify.
7564         (LAYOUT_JUSTIFY_TOP): new.
7565         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7566         (ROUND_UP): new macro. Round argument up to next integral
7567         interval.
7568
7569         * redisplay-output.c (redisplay_output_layout): misc formatting.
7570
7571         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7572
7573 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7574
7575         * XEmacs 21.4.9 "Informed Management" is released.
7576
7577 2002-08-19  Andy Piper  <andy@xemacs.org>
7578
7579         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7580         win32 format.
7581
7582         * realpath.c (xrealpath): normalize drive spec also so that dir
7583         sep chars are not mixed on cygwin.
7584
7585 2002-08-06  Jerry James  <james@xemacs.org>
7586
7587         * window.c (Fsplit_window): Count only half of the divider width
7588         against the left window when splitting horizontally. 
7589
7590 2002-06-24  Andy Piper  <andy@xemacs.org>
7591
7592         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7593         toolbar was cleared.
7594
7595         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7596         function. Split out from mswindows_output_frame_toolbars.
7597         (mswindows_output_frame_toolbars): move clear pieces to
7598         mswindows_output_frame_toolbars.
7599
7600         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7601         out from gtk_output_frame_toolbars.
7602         (gtk_output_frame_toolbars): move clear pieces to
7603         gtk_clear_frame_toolbars.
7604
7605         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7606         the frame is cleared. How this ever worked before is a mystery.
7607         (x_output_frame_toolbars): Only output toolbars.
7608         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7609
7610         * gutter.c (update_gutter_geometry):
7611         Mark frame layout changed.
7612         (update_frame_gutter_geometry, update_frame_gutters):
7613         Respect frame_layout_changed.
7614
7615         * console.h (struct console_methods): add
7616         clear_frame_toolbars_method.
7617
7618         * redisplay.c (redisplay_frame): call
7619         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7620
7621         * toolbar.h: declare update_frame_toolbars_geometry.
7622
7623         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7624         out from update_frame_toolbars.  Call clear_frame_toolbars.
7625         (update_frame_toolbars): only output, do not change geometry.
7626
7627         * redisplay.c: add frame_layout_changed.
7628
7629         * redisplay.h: add frame_layout_changed.
7630         (CLASS_RESET_CHANGED_FLAGS): set it.
7631         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7632         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7633         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7634
7635         * device.h (struct device): add frame_layout_changed.
7636         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7637
7638         * frame.h (struct frame): add frame_layout_changed.
7639         (MARK_FRAME_LAYOUT_CHANGED): new.
7640
7641 2002-06-30  Mike Alexander  <mta@arbortext.com>
7642
7643         * event-msw.c (mswindows_need_event): Don't wait for a new message
7644         if the queue is not empty.  Suggested by Paul Moore.
7645
7646 2002-06-12  Andy Piper  <andy@xemacs.org>
7647
7648         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7649         for printing on accurately.
7650
7651 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7652
7653         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7654         WM_ACTIVATE message. Make sure that the frame is visible if the
7655         window is visible. This seemss to fix the problem where XEmacs
7656         appears to freeze after switching desktops with certain virtual
7657         window managers.
7658         (debug_output_mswin_message): Added code to output message
7659         parameters for WM_WINDOWPOSCHANGED, 
7660         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7661
7662 2002-05-25  Andy Piper  <andy@xemacs.org>
7663
7664         * select-x.c (vars_of_select_x): Fix docstring of
7665         x-selection-strict-motif-ownership
7666
7667 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7668
7669         * keymap.c (get_keymap):
7670         Add comment about do_autoload GCPROs own args.
7671
7672 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7673
7674         * bytecode.c (execute_optimized_program): check_opcode ifdef
7675         ERROR_CHECK_BYTE_CODE.
7676
7677 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7678
7679         Thanks to Ben Wing and Michael Sperber.
7680
7681         * eval.c (Fcommand_execute):
7682         (Feval):
7683         (Ffuncall):
7684         (Fmacroexpand_internal):
7685         (function_argcount):
7686         callint.c (Fcall_interactively):
7687         Add comment about do_autoload GCPROs own args.
7688
7689         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7690
7691         * eval.c (Ffuncall): Extra braces to placate GCC.
7692
7693 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7694
7695         * backtrace.h (grow_specpdl):
7696         (SPECPDL_RESERVE):
7697         * EmacsFrame.c (EmacsFrameSetValues):
7698         * eval.c (grow_specpdl):
7699         * ExternalShell.c (hack_event_masks_1):
7700         * glyphs-x.c (convert_EImage_to_XImage): 
7701         (x_finalize_image_instance):
7702         * ralloc.c (page_size):
7703         (r_alloc_sbrk):
7704         * xgccache.c (gc_cache_hash):
7705         Fix unsigned comparison warnings.
7706
7707 2002-07-29  Jerry James  <james@xemacs.org>
7708
7709         * lread.c (locate_file): Any nonnegative return value indicates
7710         success if MODE is nonnegative.
7711
7712 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7713
7714         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7715         argument. 
7716
7717 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7718
7719         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7720
7721         * dumper.c (pdump_get_indirect_count):
7722         (pdump_scan_by_alignment):
7723         (pdump_dump_root_struct_ptrs):
7724         (pdump_dump_rtables):
7725         (pdump_dump_root_objects):
7726         (pdump):
7727         * nas.c (WaveOpenDataForReading):
7728         * fns.c (print_bit_vector):
7729         * font-lock.c (SINGLE_SYNTAX_STYLE):
7730         * glyphs.c (check_for_ignored_expose):
7731         (find_matching_subwindow):
7732         * glyphs-eimage.c:
7733         * imgproc.c (get_histogram):
7734         * redisplay.c (point_in_line_start_cache):
7735         * redisplay-output.c (redisplay_unmap_subwindows):
7736         * symbols.c (defsymbol_massage_name_1):
7737         (defkeyword_massage_name):
7738         (deferror_massage_name_and_message):
7739         * redisplay-x.c (x_output_string): 
7740         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7741         * frame.h (struct frame):
7742         * filelock.c (current_lock_owner):
7743         * doprnt.c (emacs_doprnt_1):
7744         * lisp.h (struct Lisp_Bit_Vector):
7745         (DO_REALLOC):
7746         Fix warnings.
7747
7748 2002-02-13  Ben Wing  <ben@xemacs.org>
7749
7750         * event-stream.c (reset_key_echo):
7751         * event-stream.c (reset_this_command_keys):
7752         * event-stream.c (execute_command_event):
7753         If console is dead as a result of C-x 5 0, then post-command stuff
7754         needs to be careful and do only non-console-specific stuff.
7755
7756 2002-07-01  Mike Sperber <mike@xemacs.org>
7757
7758         * process-unix.c (unix_send_process): Mark coding_outstream as
7759         non-open upon SIGPIPE.
7760
7761         * event-stream.c (Fnext_event): Reorder switch cases to something
7762         that makes sense.
7763
7764 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7765
7766         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7767         Don't bogusly reinitialize ascii_character property.
7768
7769 2002-07-08  Mike Sperber <mike@xemacs.org>
7770
7771         * process.c (Fstart_process_internal): Do error checking before we
7772         fork off the child, so the child can't muck with the state of the
7773         parent.
7774
7775 2002-07-08  Mike Sperber <mike@xemacs.org>
7776
7777         * ralloc.c (init_ralloc): Allocate properly for pdump.
7778
7779 2002-06-12  Andy Piper  <andy@xemacs.org>
7780
7781         * glyphs.c (query_string_geometry): check the string.
7782
7783         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7784         widget names.
7785
7786 2002-06-17  Jerry James  <james@xemacs.org>
7787
7788         * sysdll.c: Remove RTLD_GLOBAL initialization.
7789         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7790
7791 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7792
7793         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7794
7795 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7796
7797         * sysdep.c (sys_rename): Make sys_rename work for the case where
7798         Windows rename sets errno to EACCES if target file exists.
7799
7800 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7801
7802         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7803         Fix detection of metric units to work on Win95
7804
7805 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7806
7807         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7808
7809 2002-04-25  Andy Piper  <andy@xemacs.org>
7810
7811         * redisplay.c (create_text_block): Remove extra comment trailer.
7812
7813 2002-04-24  Andy Piper  <andy@xemacs.org>
7814
7815         * redisplay.c (create_text_block): Don't actually add propagation
7816         data if the line ends after we have added a glyph.
7817
7818 2002-04-22  Andy Piper  <andy@xemacs.org>
7819
7820         * extents.c (extent_fragment_update): check for glyphs we have
7821         previously displayed.
7822         * extents.c (print_extent_1): warning removal.
7823         * extents.h: change prototype.
7824         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7825         widths correctly for wide glyphs.
7826         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7827         * redisplay.c (prop_type): add PROP_GLYPH.
7828         * redisplay.c (struct prop_block): add glyph type
7829         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7830         to the propagation data.
7831         * redisplay.c (create_text_block): if there is a glyph in the
7832         propagation data use it to salt extent_fragment_update.
7833         * redisplay.c (create_string_text_block): ditto.
7834
7835 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7836
7837         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7838         * redisplay-output.c (compare_runes): Compare them.
7839         * redisplay.c: Update copyright date.
7840         * redisplay.c (pos_data): Add need_baseline_computation field.
7841         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7842         need_baseline_computation; zero yoffset. Set max_pixmap_height
7843         for all pixmaps, not just automatically positioned ones.
7844         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7845         * redisplay.c (calculate_baseline): New, compute textual baseline.
7846         * redisplay.c (add_glyph_rune): Call them.
7847         * redisplay.c (create_text_block): Likewise.
7848         * redisplay.c (create_overlay_glyph_block): Likewise.
7849         * redisplay.c (add_margin_runes): Likewise.
7850         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7851
7852         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7853         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7854         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7855         * redisplay-msw.c (mswindows_output_string): Likewise.
7856         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7857         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7858         * redisplay-x.c (x_output_display_block): Likewise.
7859
7860 2002-03-28  Ben Wing  <ben@xemacs.org>
7861
7862         * redisplay.c: Fixed bug in redisplay
7863         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7864         and down of the lines, since they're bigger than the line
7865         size. (It was seen most obviously when there's a horizontal scroll
7866         bar, e.g. do C-h a glyph or something like that.) The problem was
7867         that the glyph-contrib-p setting on glyphs was ignored even if it
7868         was set properly, which it wasn't until now.
7869
7870 2002-04-24  Andy Piper  <andy@xemacs.org>
7871
7872         * lisp.h (Dynarr_end): Fix definition.
7873
7874 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7875
7876         * redisplay.c (mark_redisplay): Remove call to
7877         update_frame_window_mirror.
7878
7879 2001-11-15  Andy Piper  <andy@xemacs.org>
7880
7881         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7882         cygwin (again).
7883
7884 2002-02-13  Andy Piper  <andy@xemacs.org>
7885
7886         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7887         we did in fact enqueue the XM_MAPFRAME event.
7888
7889 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7890
7891         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7892         to fix problem switching between virtual desktops under virtuawin
7893         virtual window manager.
7894
7895 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7896
7897         * event-msw.c: Typo fix.
7898         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7899         magic XM_MAPFRAME event has been sent.
7900
7901 2001-11-23  Andy Piper  <andy@xemacs.org>
7902
7903         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7904
7905 2001-11-21  Andy Piper  <andy@xemacs.org>
7906
7907         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7908         mouse events outside the frame.
7909
7910 2002-03-20  Andy Piper  <andy@xemacs.org>
7911
7912         * menubar-msw.c (mswindows_popup_menu): warning removal.
7913         * dialog-msw.c (dialog_popped_down): ditto.
7914
7915 2001-12-11  Andy Piper  <andy@xemacs.org>
7916
7917         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7918         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7919         popup_up_p.
7920         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7921         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7922         * menubar-msw.c (mswindows_popup_menu): ditto.
7923
7924 2001-10-29  Andy Piper  <andy@xemacs.org>
7925
7926         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7927         cancels.
7928
7929 2002-01-03  Andy Piper  <andy@xemacs.org>
7930
7931         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7932         letters.
7933         (xrealpath): ditto.
7934
7935 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7936
7937         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7938         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7939         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7940         Detect and handle case where machine is set up for metric units
7941
7942 2002-04-02  Andy Piper  <andy@xemacs.org>
7943
7944         * dired-msw.c (mswindows_get_files): 
7945         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7946         completely handled by XEmacs. Suggested by Thomas Vogler
7947         <mail@thomas-vogler.de>.
7948
7949 2001-11-14  Andy Piper  <andy@xemacs.org>
7950
7951         * nt.c (REG_ROOT): change registry key to XEmacs.
7952
7953 2002-04-27  Andy Piper  <andy@xemacs.org>
7954
7955         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7956
7957 2002-04-26  Andy Piper  <andy@xemacs.org>
7958
7959         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7960         behavior.
7961
7962 2002-03-14  Mike Alexander  <mta@arbortext.com>
7963
7964         * event-msw.c (mswindows_unwait_process): New, remove process from
7965         wait list
7966         * process-nt.c (nt_finalize_process_data): Call
7967         mswindows_unwait_process
7968         * console-msw.h: Declare mswindows_unwait_process
7969
7970 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7971
7972         * editfns.c (Fdecode_time):
7973         (Fformat_time_string):
7974         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7975         (make_time): Warning elimination (change arg name).
7976
7977 2001-11-24  Andy Piper  <andy@xemacs.org>
7978
7979         * window.c (Fsplit_window): Doc return type.
7980
7981 2002-04-01  Andy Piper  <andy@xemacs.org>
7982
7983         * emacs.c (Fkill_emacs): Only output message box in interactive
7984         mode.
7985
7986 2002-04-26  Andy Piper  <andy@xemacs.org>
7987  
7988         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7989         cygwin.
7990
7991 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7992
7993         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7994         bit platform.
7995
7996 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7997
7998         * XEmacs 21.4.8 "Honest Recruiter" is released.
7999
8000 2002-05-07  Nix  <nix@esperi.demon.co.uk>
8001
8002         Supersedes 2002-04-17 patch.
8003
8004         * process.h (PROCESS_LIVE_P): Use the process status as
8005         evidence of health, not the state of the input stream.
8006         (PROCESS_READABLE_P): Say if the process is readable
8007         from. (It may be dead nonetheless.)
8008         (CHECK_READABLE_PROCESS): Test for that condition.
8009
8010         * process.c (create_process): Use PROCESS_READABLE_P.
8011         (read_process_output, set_process_filter): Likewise.
8012
8013         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
8014         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
8015
8016         This code is #if 0'd, this is not the time to add new functions:
8017
8018         * process.c (Fprocess_readable_p): Report readability status.
8019         * process.c (Qprocess_readable_p): New, associated symbol...
8020         * process.c (syms_of_process): ... initialize it.
8021
8022 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
8023
8024         * XEmacs 21.4.7 "Economic Science" is released.
8025
8026 2002-04-17  Nix  <nix@esperi.demon.co.uk>
8027
8028         * process.h (PROCESS_LIVE_P): Use the process status as
8029         evidence of health, not the state of the input stream.
8030
8031 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
8032
8033         * sysdep.c (sys_siglist): change "signum" to "signal"
8034
8035 2001-04-21  Martin Buchholz  <martin@xemacs.org>
8036
8037         * s/darwin.h: New file.
8038         Thanks to Greg Parker <gparker@cs.stanford.edu>.
8039         
8040 2002-04-23  Andreas Jaeger  <aj@suse.de>
8041
8042         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
8043         which use lib64 for 64-bit libs.
8044         (START_FILES): Likewise.
8045
8046 2002-02-11  Mike Sperber  <mike@xemacs.org>
8047
8048         * device-x.c: 
8049         (x_IO_error_handler):
8050         (x_init_device): Temporarily keep device in static variable
8051         `device_being_initialized' so we can recover gracefully from
8052         internal XOpenDevice failure.  (XOpenDevice is documented to
8053         return NULL on failure, but sometimes calls the IO error handler
8054         instead.)
8055
8056 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
8057
8058         * dired.c (Ffile_name_all_completions): Change documentation --
8059         remove reference to completion-ignored-extensions.
8060         * dired.c (vars_of_dired): Change documentation for
8061         completion-ignored-extensions -- remove reference to
8062         file-name-all-completions.
8063
8064 2002-03-06  Jerry James  <james@xemacs.org>
8065
8066         * emodules.c (emodules_load): Fix multiple loading of same module.
8067
8068 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
8069         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
8070         RTLD_LAZY to avoid incorrect symbol binding when using nested
8071         shared libraries on Solaris.
8072
8073 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
8074
8075         * fileio.c (Ffind_file_name_handler): Improve docstring.
8076
8077 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
8078
8079         * fns.c (Fmapconcat): Improve docstring.
8080
8081 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
8082
8083         * device-gtk.c: Add prototype for
8084         emacs_gtk_selection_clear_event_handle.
8085         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
8086         selection.  Setup signal handler for "selection_clear_event"
8087         (emacs_gtk_selection_clear_event_handle).
8088
8089         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
8090         other applications owning the clipboard (based on
8091         x_handle_selection_clear).
8092
8093 2001-12-23  William M. Perry  <wmperry@gnu.org>
8094
8095         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
8096         
8097 2002-01-04  Martin Buchholz  <martin@xemacs.org>
8098
8099         * keymap.c (define_key_alternate_name): Parenthesize EQ.
8100
8101 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
8102
8103         * XEmacs 21.4.6 "Common Lisp" is released.
8104
8105 2001-12-16  Torsten Duwe  <duwe@caldera.de>
8106
8107         * search.c (Freplace_match): Add missing sub-expression functionality.
8108
8109         * buffer.c (decode_buffer): Add a check for pointer type to
8110         decode_buffer, before gcc's CSE optimization reorders a
8111         dereference in front of the allow_string test.
8112
8113 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
8114
8115         * window.c (window_loop): Fix bug that sometimes prevented
8116         window_loop() from iterating across multiple devices.  Also, at
8117         Ben's request, changed infloop-detecting code to abort() instead
8118         of silently terminating window_loop().
8119
8120 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
8121
8122         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8123         * editfns.c (make_time): New function.
8124         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8125         * lisp.h (make_time): Prototype and comment it.
8126         * dired.c (wasteful_word_to_lisp): Deprecate.
8127         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8128
8129 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8130
8131         * fileio.c (auto_save_1): Use current coding system, not
8132         escape-quoted.
8133
8134 2001-11-13  Ben Wing  <ben@xemacs.org>
8135
8136         * window.c:
8137         * window.c (window_truncation_on):
8138         * window.c (syms_of_window):
8139         truncate-partial-width-windows should respect the buffer being
8140         displayed, like other redisplay vars.
8141
8142 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8143
8144         * event-stream.c (Fread_key_sequence): save current buffer.
8145
8146 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8147
8148         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8149
8150 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8151
8152         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8153
8154 2001-10-26  Mike Alexander  <mta@arbortext.com>
8155
8156         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8157
8158 2001-10-25  Andy Piper  <andy@xemacs.org>
8159
8160         * ChangeLog:
8161         * dialog-msw.c (handle_directory_proc): new function.
8162          (handle_directory_dialog_box): new fucntion.
8163          (handle_file_dialog_box): use new directory dialog support.
8164          (mswindows_make_dialog_box_internal): ditto.
8165         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8166         handling.
8167         (mswindows_find_frame): make global.
8168         * fileio.c (Fexpand_file_name): build fix.
8169         * general-slots.h: add Qdirectory.
8170         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8171         handling.
8172         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8173         cygwin not leaving win32 paths unchanged.
8174         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8175         cygwin runtime to do path conversion.
8176         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8177         (syms_of_win32): add new function.
8178         * window.c (window_loop): build fix.
8179
8180 2001-10-15  Andy Piper  <andy@xemacs.org>
8181
8182         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8183
8184 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8185
8186         * XEmacs 21.4.5 "Civil Service" is released.
8187
8188 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8189
8190         * glyphs-x.c: Force buffer-tab highlight update when moving the
8191         buffer, avoiding an ugly black border, used for keyboard focus
8192         indication, on a widget that can never have keyboard focus, the
8193         buffer tab.
8194
8195 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8196
8197         * process-unix.c (unix_open_multicast_group): Remove too much
8198         conversion between host and network byte order.
8199
8200 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8201
8202         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8203         before replacing them.
8204
8205         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8206         operation.
8207
8208         * src/window.c (undedicate_windows): Use it.
8209         * src/window.h: Add prototype.
8210
8211 2001-09-17  Ben Wing  <ben@xemacs.org>
8212
8213         * fileio.c (normalize_filename):
8214         * fileio.c (Fexpand_file_name):
8215         Fix various C++ compile errors in Andy's recent code.
8216         
8217         * callint.c (Fcall_interactively):
8218         * editfns.c (Ftemp_directory):
8219         * editfns.c (Fuser_full_name):
8220         * emacs.c (argmatch):
8221         * lread.c (locate_file_map_suffixes):
8222         * redisplay-x.c (x_ring_bell):
8223         Fix sign-compare warnings.
8224         
8225 2001-09-08  Andy Piper  <andy@xemacs.org>
8226
8227         * fileio.c (normalize_filename): copied from nt.c
8228         * (Ffile_name_directory): enable win32 paths under cygwin.
8229         * (Ffile_name_nondirectory): ditto.
8230         * (directory_file_name): ditto.
8231         * (Fexpand_file_name): ditto.
8232         * (Ffile_truename): ditto.
8233         * (Fsubstitute_in_file_name): ditto.
8234         * (Ffile_name_absolute_p): ditto.
8235         * (Ffile_readable_p): ditto.
8236
8237 2001-09-08  Andy Piper  <andy@xemacs.org>
8238
8239         * device-msw.c (mswindows_finish_init_device): remove dde
8240         initialization.
8241         * device-msw.c (mswindows_init_dde): factor out from
8242         mswindows_finish_init_device()
8243         * device-msw.c (init_mswindows_very_early): new function
8244         initialize but don't enable dde.
8245         * emacs.c (main_1): call init_mswindows_very_early.
8246         * event-msw.c:
8247         * event-msw.c (mswindows_dde_callback): only execute when we are
8248         ready.
8249         * symsinit.h: declare init_mswindows_very_early.
8250
8251 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8252
8253         [sjt: This has been in 21.5 for months with no complaints.]
8254
8255         * console.h (struct console_methods): Added flags member.
8256         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8257         (CONMETH_IMPL_FLAG):
8258         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8259         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8260
8261         * device.c (window_system_pixelated_geometry): Use the above macros.
8262
8263         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8264         implememntation flag.
8265         * device.h (DEVICE_DISPLAY_P): Use it.
8266
8267         * frame.c (delete_frame_internal): Use the above macro.
8268
8269         * redisplay.c (redisplay_device): Use it.
8270         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8271         (redisplay_frame): Ditto.
8272
8273         * device-msw.c (mswindows_device_implementation_flags): Removed.
8274         (msprinter_device_implementation_flags): Removed.
8275         (console_type_create_device_mswindows): Removed references to
8276         implementation_flags methods, set implementation flags here.
8277         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8278
8279         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8280         (console_type_create_device_gtk): Removed method declaration.
8281         Added commented out statement which semantically matches the
8282         commented out statement in the above removed method.
8283
8284 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8285
8286         The attached patch fixes a few warnings. 
8287
8288         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8289         * src/frame-gtk.c: guard against GNOME calls in GTK only
8290         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8291         * src/select-gtk.c: prototype lisp_to_time
8292
8293 2001-06-08  Ben Wing  <ben@xemacs.org>
8294
8295         ------ gc-in-window-procedure fixes ------
8296         
8297         * alloc.c:
8298         * alloc.c (struct post_gc_action):
8299         * alloc.c (register_post_gc_action):
8300         * alloc.c (run_post_gc_actions):
8301         * alloc.c (garbage_collect_1):
8302         Create "post-gc actions", to avoid those dreaded "GC during window
8303         procedure" problems.
8304
8305         * event-msw.c:
8306         Abort, clean and simple, when GC in window procedure.  We want
8307         to flush these puppies out.
8308
8309         * glyphs-msw.c:
8310         * glyphs-msw.c (finalize_destroy_window):
8311         * glyphs-msw.c (mswindows_finalize_image_instance):
8312         Use a post-gc action when destroying subwindows.
8313
8314         * lisp.h:
8315         Declare register_post_gc_action().
8316
8317         * scrollbar-msw.c:
8318         * scrollbar-msw.c (unshow_that_mofo):
8319         Use a post-gc action when unshowing scrollbar windows, if in gc.
8320
8321         * redisplay.c (mark_redisplay):
8322         Add comment about the utter evilness of what's going down here.
8323
8324         ------ cygwin setitimer fixes ------
8325         
8326         * Makefile.in.in (sheap_objs):
8327         * Makefile.in.in (profile_objs):
8328         * Makefile.in.in (objs):
8329         Compile profile.c only when HAVE_SETITIMER.
8330         
8331         * nt.c (mswindows_sigset):
8332         * nt.c (mswindows_sighold):
8333         * nt.c (mswindows_sigrelse):
8334         * nt.c (mswindows_sigpause):
8335         * nt.c (mswindows_raise):
8336         * nt.c (close_file_data):
8337         Style fixes.
8338         
8339         * nt.c:
8340         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8341         
8342         * profile.c:
8343         * profile.c (Fstart_profiling):
8344         * profile.c (Fstop_profiling):
8345         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8346         instead of just plain setitimer().
8347         
8348         * signal.c:
8349         * signal.c (set_one_shot_timer):
8350         * signal.c (alarm):
8351         Define qxe_setitimer() as an encapsulation around setitimer() --
8352         call setitimer() directly unless Cygwin or MS Win, in which case
8353         we use our simulated version in win32.c.
8354         
8355         * systime.h:
8356         * systime.h (struct itimerval):
8357         * systime.h (ITIMER_REAL):
8358         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8359         comment about "qxe" and the policy regarding encapsulation.
8360
8361         * win32.c:
8362         * win32.c (setitimer_helper_proc):
8363         * win32.c (setitimer_helper_period):
8364         * win32.c (setitimer_helper):
8365         * win32.c (mswindows_setitimer):
8366         Move setitimer() emulation here, so Cygwin can use it.
8367         Rename a couple of functions and variables to be longer and more
8368         descriptive.  In setitimer_helper_proc(), send the signal
8369         using either mswindows_raise() or (on Cygwin) kill().  If for
8370         some reason we are still getting lockups, we'll change the kill()
8371         to directly invoke the signal handlers.
8372
8373         ------ windows shell fixes ------
8374         
8375         * callproc.c:
8376         * ntproc.c:
8377         Comments about how these two files must die.
8378
8379         * callproc.c (init_callproc):
8380         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8381         not just COMSPEC. (more correct and closer to FSF.) Don't
8382         force a value for SHELL into the environment. (Comments added
8383         to explain why not.)
8384         
8385         * nt.c (init_user_info):
8386         Don't shove a fabricated SHELL into the environment.  See above.
8387
8388 2001-06-01  Ben Wing  <ben@xemacs.org>
8389
8390         * Makefile.in.in (ldflags):
8391         eliminate that pesky "defaulting to 00401000" warning.
8392         * nt.h:
8393         eliminate warnings.
8394
8395 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8396
8397         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8398         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8399
8400 2001-04-24  Jerry James <james@xemacs.org>
8401
8402         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8403         correct order.
8404
8405 2001-06-01  Ben Wing  <ben@xemacs.org>
8406
8407         * event-msw.c (debug_mswin_messages):
8408         conditionalize the messages that were causing compile errors.
8409         (if only macros could generate #ifdef statements ...)
8410
8411 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8412
8413         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8414
8415 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8416
8417         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8418
8419 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8420
8421         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8422         * process-unix.c (unix_canonicalize_host_name):
8423         sysdep.c (init_system_name):
8424         Use it to conditionally support IPv6 canonicalization.
8425
8426 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8427
8428         * event-msw.c:
8429         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8430
8431 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8432
8433         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8434         attempt is made to scroll when no scroll bar is available.
8435
8436 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8437
8438         * input-method-motif.c (XIM_delete_frame): New callback.
8439         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8440         got deleted from 21.4.3.)
8441
8442 2001-06-01  Ben Wing  <ben@xemacs.org>
8443
8444         * nt.c (mswindows_utime):
8445         * nt.c (close_file_data):
8446         fix off-by-one-indirection error.
8447
8448 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8449
8450         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8451         because set_file_times() now takes Lisp_Object path, instead of
8452         char*.
8453         * nt.c: Include buffer.h.
8454         * nt.c (convert_from_time_t): New.
8455         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8456         not set mtime correctly.
8457         * nt.h: Declare mswindows_utime().
8458         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8459         path, instead of char*.
8460         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8461
8462 2001-05-30  Ben Wing  <ben@xemacs.org>
8463
8464         For 21.4:
8465
8466         (Stephen, just take all event-msw.c patches.  This includes
8467         the "iconify" fix below.)
8468
8469         * event-msw.c:
8470         * event-msw.c (mswindows_dequeue_dispatch_event):
8471         * event-msw.c (assert):
8472         * event-msw.c (emacs_mswindows_quit_p):
8473         * event-msw.c (debug_mswin_messages):
8474         * event-msw.c (debug_output_mswin_message):
8475         * event-msw.c (vars_of_event_mswindows):
8476         Fix yet more problems with C-g handling.
8477         Implement debug-mswindows-events.
8478         
8479 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8480
8481         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8482         
8483 2001-05-23  Ben Wing  <ben@xemacs.org>
8484
8485         * event-msw.c (winsock_writer):
8486         * event-msw.c (winsock_closer):
8487         prior kludgy code was clobbering the buffer, thinking it was
8488         "unused" space to store an unneeded return value; instead, use
8489         the variable we've already got staring us in the face.
8490
8491 2001-05-17  Andy Piper  <andy@xemacs.org>
8492
8493         * sysfile.h: don't assume that file attributes are boolean
8494
8495 2001-05-23  Ben Wing  <ben@xemacs.org>
8496
8497         * device-msw.c (msprinter_init_device):
8498         signal an error rather than crash with an unavailable network
8499         printer (from Mike Alexander).
8500         
8501         * event-msw.c:
8502         * event-msw.c (struct winsock_stream):
8503         * event-msw.c (winsock_writer):
8504         * event-msw.c (winsock_closer):
8505         * event-msw.c (make_winsock_stream_1):
8506         cleanup headers.  fix (hopefully) an error with data corruption
8507         when sending to a network connection.
8508
8509         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8510         to handle the ~user prefix by (a) always assuming we're referencing
8511         ourselves and not even verifying the user -- hence any file with
8512         a tilde as its first char is invalid! (b) if there wasn't a slash
8513         following the filename, the pointer was set *past* the end of
8514         file and we started reading from uninitialized memory.  Now we
8515         simply treat these as files, always.
8516
8517         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8518         
8519 2001-05-19  Ben Wing  <ben@xemacs.org>
8520
8521         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8522
8523         * process-nt.c:
8524         * process-nt.c (vars_of_process_nt):
8525         remove unused mswindows-quote-process-args.  rec for 21.4.
8526         
8527 2001-05-12  Ben Wing  <ben@xemacs.org>
8528
8529         * event-msw.c (mswindows_dde_callback):
8530         * event-msw.c (mswindows_wnd_proc):
8531         eliminate cygwin warnings.
8532
8533 2001-05-06  Ben Wing  <ben@xemacs.org>
8534
8535         * console-msw.h:
8536         * device-msw.c:
8537         * device-msw.c (print_dialog_worker):
8538         * device-msw.c (mswindows_handle_print_dialog_box):
8539         * device-msw.c (syms_of_device_mswindows):
8540         * dialog-msw.c (mswindows_make_dialog_box_internal):
8541         * general-slots.h:
8542         implement printing the selection when it's selected.
8543
8544 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8545
8546         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8547
8548 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8549
8550         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8551         EMACS_INT is signed.
8552
8553 2001-04-15  Michael Lausch  <mla@1012surf.net>
8554
8555         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8556         gtk_widget_request_size() to give scrollbar >0 width for
8557         GTK >1.2.8.
8558
8559 2001-05-30  William M. Perry  <wmperry@gnu.org>
8560
8561         * event-gtk.c: Check for buttons as modifier keys.
8562
8563 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8564
8565         * s\mingw32.h:
8566         Properly find MinGW's <process.h> inside Cygwin's restructured
8567         include directories.  Don't try to include <cygwin/version.h>
8568         since we are dropping support for MinGW in versions of Cygwin
8569         earlier than b21.
8570         * nt.c:
8571         Drop support for MinGW in versions of Cygwin before b21.
8572         * sysdep.c:
8573         Properly find MinGW's <process.h> inside Cygwin's restructured
8574         include directories.
8575         * syswindows.h:
8576         Drop support for MinGW in versions of Cygwin before b21.
8577         * unexcw.c:
8578         Even though a.out.h is no longer detected by configure, allow
8579         MinGW to use it until we figure out how to do the job with Win32.
8580
8581 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8582
8583         * syntax.c (find_start_of_comment):
8584         Fix `unbalanced parentheses' bug when dealing with mixed comment
8585         styles in c++/java/etc. mode
8586
8587 2001-05-29  Mike Alexander  <mta@arbortext.com>
8588
8589         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8590         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8591
8592 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8593
8594         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8595
8596 2001-03-31  Mike Sperber <mike@xemacs.org>
8597
8598         * search.c (Freplace_match): Support FSF-style specification of
8599         match subexpression when applied to a buffer.
8600
8601 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8602
8603         * event-stream.c (is_scrollbar_event): add missing semicolon
8604
8605 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8606
8607         * Makefile.in.in: Use TAR macro instead of hardcoding
8608           tar.  Allows use of GNU tar instead of system tar
8609
8610 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8611
8612         * event-stream.c (is_scrollbar_event): add missing semicolon
8613
8614 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8615
8616         * XEmacs 21.4.3 "Academic Rigor" is released.
8617
8618 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8619
8620         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8621
8622 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8623
8624         * buffer.c (Vcase_fold_search): Remove obsolete
8625           comment about non ASCII case-fold-search.  This
8626           bug has been fixed by case-table changes.
8627
8628 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8629
8630         * event-msw.c: Restore include of events-mod.h.
8631
8632 2001-04-22   zhaoway  <zw@debian.org>
8633
8634         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8635         !HAVE_SCROLLBARS.
8636
8637 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8638
8639         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8640
8641 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8642
8643         * mule-charset.c (Fmake_charset): Add missing else.
8644
8645 2001-04-23  Ben Wing  <ben@xemacs.org>
8646
8647         * event-msw.c (FAKE_MOD_QUIT):
8648         * event-msw.c (mswindows_dequeue_dispatch_event):
8649         * event-msw.c (mswindows_wnd_proc):
8650         * event-msw.c (emacs_mswindows_quit_p):
8651         Get critical quit working.
8652
8653 2001-05-05  Ben Wing  <ben@xemacs.org>
8654
8655         * console-msw.h:
8656         * device-msw.c:
8657         * device-msw.c (mswindows_get_default_margin):
8658         * frame-msw.c (mswindows_size_frame_internal):
8659         * frame-msw.c (msprinter_init_frame_1):
8660         * frame-msw.c (vars_of_frame_mswindows):
8661         Change top/bottom margin defaults to 0.5 inches.
8662
8663 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8664
8665         Fix link error with gcc 3.0 on Linux.
8666         * terminfo.c (UP): Remove.
8667         * terminfo.c (BC): Remove.
8668         * terminfo.c (PC): Remove.
8669         They weren't used, and in any case, these symbols should be
8670         defined in the *library*.
8671
8672 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8673
8674         * s/aix4.h: Fix crash with xlc -O3.
8675         Improve comment explaining how -O3 works.
8676
8677 2001-04-15  Ben Wing  <ben@xemacs.org>
8678
8679         * event-stream.c:
8680         * event-stream.c (Fnext_event):
8681         * event-stream.c (is_scrollbar_event):
8682         * event-stream.c (execute_command_event):
8683         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8684         crash' problem.  His fix introduces other problems.  We filter
8685         out scrollbar events specifically, making them somewhat invisible
8686         to command-building, and not appearing in `this-command-keys'.
8687         More work is still needed (see comments in event-stream.c), but
8688         this fixes all the major problems.
8689
8690 2001-04-20  Ben Wing  <ben@xemacs.org>
8691
8692         * .cvsignore: Added stuff for Windows.
8693
8694 2001-04-28  Ben Wing  <ben@xemacs.org>
8695
8696         * buffer.c (Ferase_buffer):
8697         * editfns.c (buffer_insert1):
8698         * editfns.c (Finsert_before_markers):
8699         * editfns.c (Finsert_string):
8700         * editfns.c (Finsert_char):
8701         * editfns.c (Fdelete_region):
8702         * editfns.c (Fwiden):
8703         * editfns.c (Fnarrow_to_region):
8704         remove bogus lines setting zmacs_region_stays to 0.
8705         
8706 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8707
8708         * process-unix.c (unix_open_network_stream): If connect() fails
8709         invalidate file descriptor after closing it.
8710
8711 2001-03-08  Mike Alexander  <mta@arbortext.com>
8712
8713         * event-msw.c (mswindows_need_event_in_modal_loop):
8714         Don't dispatch a message if we didn't get one.
8715         (mswindows_need_event):
8716         Terminate the correct process when one exits instead of the first
8717         one on Vprocess_list and look for process termination when in
8718         mswindows_protect_modal_loop.
8719
8720 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8721
8722         * XEmacs 21.4.1 "Copyleft" is released.
8723
8724 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8725
8726         * input-method-motif.c (XIM_delete_frame): New callback.
8727         (XIM_init_frame): Register it.
8728
8729 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8730
8731         * XEmacs 21.4.0 "Solid Vapor" is released.
8732
8733 2001-04-15  Ben Wing  <ben@xemacs.org>
8734
8735         * cmdloop.c (call_command_loop):
8736         Fix braino in bit-rotting code.
8737         
8738 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8739
8740         * extents.c (Fset_extent_endpoints): Force creation of extent info
8741         in buffer_or_string.
8742
8743         * extents.c (process_extents_for_insertion_mapper): Correctly
8744         check for open-open zero-length extents.
8745
8746 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8747
8748         * lisp.h: New typedefs Memory_count, Element_count.
8749         * regex.c:
8750         * regex.h:
8751         Sign-compare warning elimination: several unsigned -> signed.
8752         Based on work by Ben Wing <ben@xemacs.org>.
8753
8754 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8755
8756         * XEmacs 21.2.47 "Zephir" is released.
8757
8758 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8759
8760         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8761
8762 2001-04-03  Mike Sperber <mike@xemacs.org>
8763
8764         * search.c: Revert previous patch due because of release.
8765
8766 2001-03-30  Ben Wing  <ben@xemacs.org>
8767
8768         * s\cygwin32.h:
8769         Add missing killpg prototype.
8770
8771         * elhash.c:
8772         Add a comment about fixing problems when a new entry is added
8773         while mapping.
8774
8775         * frame-msw.c (mswindows_init_frame_1):
8776         Fix compile warnings.
8777
8778         * menubar.c (vars_of_menubar):
8779         Provide `menu-accelerator-support' to indicate that we properly
8780         support %_ in menu specifications, so that package code can
8781         conditionalize on this (and remove %_ from menu specifications
8782         on older versions).
8783
8784         * event-msw.c:
8785         * scrollbar-msw.c:
8786         * scrollbar-msw.c (can_scroll):
8787         * scrollbar-msw.h:
8788         Fix handling of mouse wheel under Windows to follow standards --
8789         now scrolls window under pointer, not selected window.
8790
8791 2001-03-31  Mike Sperber <mike@xemacs.org>
8792
8793         * search.c (Freplace_match): Support FSF-style specification of
8794         match subexpression when applied to a buffer.
8795
8796 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8797
8798         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8799         function to modify KEYMAP, so map over a copy of the hash table.
8800
8801 2001-03-21  Martin Buchholz <martin@xemacs.org>
8802
8803         * XEmacs 21.2.46 "Urania" is released.
8804
8805 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8806
8807         * realpath.c (xrealpath): Make file-truename work with symlinks to
8808         /cygdrive paths on cygwin. Always lowercase drive-letters on
8809         native windows.
8810         (cygwin_readlink): Don't try to find canonical filename unless
8811         file exists.
8812
8813 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8814
8815         * ChangeLog: Log GTK merge.
8816
8817         * dumper.c:
8818         * select-x.c:
8819         * specifier.c:
8820         * symeval.h:
8821         Revert gratuitous whitespace changes from GTK merge.
8822
8823         * emacs.c: Document end of complex #ifdef @ l. 1495.
8824
8825
8826 2001-03-12  Andy Piper  <andy@xemacs.org>
8827
8828         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8829         have to do likewise.
8830
8831 2001-03-12  Andy Piper  <andy@xemacs.org>
8832
8833         * sysdep.c: we only support mingw now.
8834
8835 2001-03-09  Andy Piper  <andy@xemacs.org>
8836
8837         * unexcw.c (copy_executable_and_dump_data_section): making approx
8838         overrun a warning only.
8839
8840 2001-03-10  William M. Perry  <wmperry@aventail.com>
8841
8842         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8843         satisfy Stephen's identical-after-cpp plea.
8844
8845 2001-03-02  Ben Wing  <ben@xemacs.org>
8846
8847         * cmds.c:
8848         * cmds.c (Fforward_char):
8849         * syntax.c:
8850         * window.c:
8851
8852         Augment documentation of the most common motion commands to make
8853         note of the shifted-motion support.
8854         
8855 2001-03-02  Ben Wing  <ben@xemacs.org>
8856
8857         * nt.c (mswindows_fstat):
8858         * nt.c (mswindows_stat):
8859         * search.c (boyer_moore):
8860         Fix compile warnings under Windows.
8861         
8862         * sysdep.c (sys_readdir):
8863         Fix buggy filename-conversion code under Mule.
8864
8865 2001-03-09  William M. Perry  <wmperry@aventail.com>
8866
8867         * Makefile.in.in:
8868         * config.h.in:
8869         * console.c:
8870         * console.h:
8871         * device.c:
8872         * device.h:
8873         * dragdrop.c:
8874         * emacs.c:
8875         * event-stream.c:
8876         * events.c:
8877         * events.h:
8878         * faces.c:
8879         * frame.h:
8880         * general-slots.h:
8881         * glyphs.c:
8882         * gutter.c:
8883         * inline.c:
8884         * lisp.h:
8885         * lrecord.h:
8886         * make-src-depend:
8887         * redisplay-output.c:
8888         * redisplay.c:
8889         * symsinit.h:
8890         * sysfile.h:
8891         * toolbar.c:
8892         * window.c:
8893         The Great GTK Merge.
8894
8895         * ChangeLog.GTK:
8896         * console-gtk.c:
8897         * console-gtk.h:
8898         * device-gtk.c:
8899         * emacs-marshals.c:
8900         * emacs-widget-accessors.c:
8901         * event-gtk.c:
8902         * frame-gtk.c:
8903         * gccache-gtk.c:
8904         * gccache-gtk.h:
8905         * glade.c:
8906         * glyphs-gtk.c:
8907         * glyphs-gtk.h:
8908         * gtk-glue.c:
8909         * gtk-xemacs.c:
8910         * gtk-xemacs.h:
8911         * gui-gtk.c:
8912         * gui-gtk.h:
8913         * menubar-gtk.c:
8914         * native-gtk-toolbar.c:
8915         * objects-gtk.c:
8916         * objects-gtk.h:
8917         * redisplay-gtk.c:
8918         * scrollbar-gtk.c:
8919         * scrollbar-gtk.h:
8920         * select-gtk.c:
8921         * toolbar-gtk.c:
8922         * ui-byhand.c:
8923         * ui-gtk.c:
8924         * ui-gtk.h:
8925         The Great GTK Merge: new files.
8926
8927 2001-02-26  Ben Wing  <ben@xemacs.org>
8928
8929         Reapplied Lstream change.
8930
8931 2001-02-26  Ben Wing  <ben@xemacs.org>
8932
8933         Undid the last change, since it is more controversial than I
8934         thought.  It should be back in at some point soon.
8935         
8936 2001-02-25  Ben Wing  <ben@xemacs.org>
8937
8938         * buffer.c:
8939         * callproc.c (Fold_call_process_internal):
8940         * event-msw.c (ntpipe_slurp_reader):
8941         * event-msw.c (ntpipe_shove_writer):
8942         * event-msw.c (winsock_reader):
8943         * event-msw.c (winsock_writer):
8944         * file-coding.c:
8945         * file-coding.c (detect_eol_type):
8946         * file-coding.c (detect_coding_type):
8947         * file-coding.c (determine_real_coding_system):
8948         * file-coding.c (Fdetect_coding_region):
8949         * file-coding.c (decoding_reader):
8950         * file-coding.c (decoding_writer):
8951         * file-coding.c (mule_decode):
8952         * file-coding.c (Fdecode_coding_region):
8953         * file-coding.c (encoding_reader):
8954         * file-coding.c (encoding_writer):
8955         * file-coding.c (mule_encode):
8956         * file-coding.c (Fencode_coding_region):
8957         * file-coding.c (detect_coding_sjis):
8958         * file-coding.c (decode_coding_sjis):
8959         * file-coding.c (encode_coding_sjis):
8960         * file-coding.c (detect_coding_big5):
8961         * file-coding.c (decode_coding_big5):
8962         * file-coding.c (encode_coding_big5):
8963         * file-coding.c (detect_coding_ucs4):
8964         * file-coding.c (decode_coding_ucs4):
8965         * file-coding.c (encode_coding_ucs4):
8966         * file-coding.c (detect_coding_utf8):
8967         * file-coding.c (decode_coding_utf8):
8968         * file-coding.c (encode_coding_utf8):
8969         * file-coding.c (detect_coding_iso2022):
8970         * file-coding.c (decode_coding_iso2022):
8971         * file-coding.c (encode_coding_iso2022):
8972         * file-coding.c (decode_coding_no_conversion):
8973         * file-coding.c (encode_coding_no_conversion):
8974         * glyphs-x.c (write_lisp_string_to_temp_file):
8975         * gpmevent.c (tty_get_foreign_selection):
8976         * lisp.h:
8977         * lstream.c:
8978         * lstream.c (Lstream_flush_out):
8979         * lstream.c (Lstream_adding):
8980         * lstream.c (Lstream_write_1):
8981         * lstream.c (Lstream_write):
8982         * lstream.c (Lstream_raw_read):
8983         * lstream.c (Lstream_read_more):
8984         * lstream.c (Lstream_read):
8985         * lstream.c (Lstream_unread):
8986         * lstream.c (Lstream_fputc):
8987         * lstream.c (stdio_reader):
8988         * lstream.c (stdio_writer):
8989         * lstream.c (filedesc_reader):
8990         * lstream.c (filedesc_writer):
8991         * lstream.c (lisp_string_reader):
8992         * lstream.c (struct fixed_buffer_stream):
8993         * lstream.c (make_fixed_buffer_input_stream):
8994         * lstream.c (make_fixed_buffer_output_stream):
8995         * lstream.c (fixed_buffer_reader):
8996         * lstream.c (fixed_buffer_writer):
8997         * lstream.c (struct resizing_buffer_stream):
8998         * lstream.c (resizing_buffer_writer):
8999         * lstream.c (dynarr_writer):
9000         * lstream.c (lisp_buffer_reader):
9001         * lstream.c (lisp_buffer_writer):
9002         * lstream.h:
9003         * lstream.h (lstream_implementation):
9004         * lstream.h (struct lstream):
9005         * md5.c (Fmd5):
9006         * process-nt.c (nt_send_process):
9007         * process-unix.c (unix_send_process):
9008         
9009         Correct Lstream lossage due to mixing of signed and unsigned
9010         quantities.  All Lstream uses of size_t and ssize_t are now a
9011         single signed data type Lstream_data_count.  This fixes problems
9012         under Windows with sending large quantities of data to a process,
9013         and may well fix other subtle bugs.
9014
9015 2001-02-23  Martin Buchholz <martin@xemacs.org>
9016
9017         * XEmacs 21.2.45 "Thelxepeia" is released.
9018
9019 2001-02-21  Martin Buchholz  <martin@xemacs.org>
9020
9021         * lisp-union.h (XSETINT): 
9022         (XSETCHAR):
9023         (XSETOBJ): 
9024         Reverse previous change of 2001-02-06.
9025
9026 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
9027
9028         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
9029         buffers.
9030         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9031         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
9032         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
9033         * regex.c (POS_AS_IN_BUFFER): removed
9034         * regex.c (re_search_2):
9035         * regex.c (re_match_2):
9036         Don't use an offset of 1 when calculating buffer positions, since
9037         `BI_BUF_BEGV' does it already.
9038
9039 2001-02-18  Wim Dumon  <wim@easics.be>
9040
9041         * insdel.c (prepare_to_modify_buffer): Also check for
9042         supersession when clash-detection is enabled. 
9043
9044 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
9045
9046         * regex.c (re_match_2_internal):
9047         Convert temp characters from 'const unsigned char' to 're_char'.
9048         Fix crashing bug with extended characters under mule.
9049         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
9050         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
9051         font-lock, pdump, and new syntax-table code.
9052         * syntax.c (find_start_of_comment):
9053         (find_end_of_comment):
9054         (forward-comment):
9055         Fix crashing bugs involving moving beyond end of buffer.
9056         * syntax.c (find_start_of_comment):
9057         Fixed logic to allow proper detection of cases where the same
9058         character is used to end both a two-char comment start and a
9059         two-char comment end sequence. Fixes `(forward-comment -1)'.
9060         * syntax.c (find_start_of_comment):
9061         Return position just past last comment-end character for all cases
9062         (previously was only done for two-char comment-end sequences).
9063         * syntax.c (forward-comment):
9064         Take value returned from `find_end_of_comment', rather than
9065         incrementing it.
9066         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
9067         Properly deal with BUFFERP (syntax_cache.object)
9068
9069 2001-02-17  Martin Buchholz  <martin@xemacs.org>
9070
9071         * alloc.c (Fgarbage_collect): 
9072         * alloc.c (make_bit_vector_from_byte_vector):
9073         -Wsign-compare-correctness.
9074
9075 2001-02-16  Martin Buchholz  <martin@xemacs.org>
9076
9077         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
9078         (XSETCHAR): Likewise.
9079         (XSETOBJ): Likewise.
9080
9081 2001-02-15  Martin Buchholz  <martin@xemacs.org>
9082
9083         * mule-canna.c (canna-func-delete_previous): 
9084         Rename to canna-func-delete-previous.
9085
9086 2001-02-14  Martin Buchholz  <martin@xemacs.org>
9087
9088         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
9089
9090 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
9091
9092         * font-lock.c (find_context): Fix C++ compile errors introduced by
9093         recent patch
9094
9095 2001-02-13  Martin Buchholz  <martin@xemacs.org>
9096
9097         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
9098         pragma, but earlier ones barf on the same pragma.
9099
9100 2001-02-06  Mike Sperber <mike@xemacs.org>
9101
9102         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
9103         `configure-mule-lisp-directory'.
9104
9105 2001-02-12  Martin Buchholz  <martin@xemacs.org>
9106
9107         Make sure dump-id.c is compiled in the same way as other .c's.
9108         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9109         * dump-id.h: Remove.
9110         * emacs.c: Move dump-id.h into dumper.h.
9111         * dumper.h: Move dump-id.h into dumper.h.
9112         * Makefile.in.in:
9113         Use standard .c.o rule for building dump-id.o.
9114         Remove preprocessor flags from link command.
9115         Add dump-id.o to ${otherobjs} if PDUMP.
9116
9117 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
9118
9119         Port FSF 20.7 syntax table improvements.
9120         * syntax.c.
9121         * syntax.h.
9122
9123         Fixups for new syntax table stuff.
9124         * dired.c: Include syntax.c.
9125         (Fdirectory_files): Initialize regex_match_object and
9126         regex_emacs_buffer.
9127         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9128         and Fget_char_property.
9129
9130         Use ported FSF 20.7 syntax table improvements.
9131         * font-lock.c.
9132         * regex.c.
9133         * search.c.
9134         
9135 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9136
9137         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9138         Unixware's enum boolean from sys/types.h.
9139
9140 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9141
9142         Fix support for building with latest Purify.
9143         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9144         (PURIFY_FLAGS): Likewise.
9145
9146 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9147
9148         * fileio.c (lisp_string_set_file_times): New.
9149         * fileio.c (Fcopy_file): Use it.
9150         Fixes bug:
9151         (copy-file filename non-ascii-filename t t)
9152         ==> No such file or directory, non-ascii-filename
9153
9154 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9155
9156         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9157         USHRT_MAX seems clearer than ~0 anyways.
9158
9159 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9160
9161         dumper improvements.  Inspired by Olivier.
9162         * dumper.c (pdump_max_align): New.
9163         * dumper.c (pdump_add_entry): Use pdump_max_align.
9164         * dumper.c (pdump_get_entry_list): Likewise.
9165         * dumper.c (pdump_scan_by_alignment): Likewise.
9166         Don't iterate through unnecessary alignments.
9167         * dumper.c (pdump_file_get): No need to align result of malloc().
9168         * dumper.c (pdump_mallocadr): Remove.  
9169         The result of malloc() is guaranteed to be maximally aligned.
9170         * dumper.c: s/elmt/elt/g;
9171         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9172         * dumper.c (pdump_alert_undump_object): Likewise.
9173         * dumper.c (pdump_align_table): 
9174         Don't support alignments > 64.
9175         Store ALIGNOF's, not shift counts, in table.
9176
9177 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9178
9179         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9180         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9181         * systime.h: Use HAVE_UTIME.
9182         * sysdep.c (struct utimbuf): Remove.
9183         * sysdep.c (set_file_times): Prefer utime() to utimes().
9184         * config.h.in (HAVE_UTIME): New.
9185         * config.h.in (HAVE_UTIME_H): Remove.
9186         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9187
9188 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9189
9190         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9191
9192 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9193
9194         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9195
9196 2001-02-08  Martin Buchholz <martin@xemacs.org>
9197
9198         * XEmacs 21.2.44 "Thalia" is released.
9199
9200 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9201
9202         Fixes crashes in kill-emacs on some systems.
9203         * process-unix.c (unix_kill_child_process):
9204         It's OK for kill() to fail with ESRCH.
9205
9206 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9207
9208         Contortions to make .gdbinit tricks work on most systems.
9209         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9210         * alloc.c (dbg_valmask): Make non-const.
9211         * alloc.c (dbg_typemask): Make non-const.
9212         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9213         * alloc.c (dbg_valbits): Make non-const.
9214         * alloc.c (dbg_gctypebits): Make non-const.
9215         * .gdbinit (decode_object): Make it work with AIX cc.
9216
9217 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9218
9219         * elhash.c (make_general_lisp_hash_table):
9220         Use simpler and more efficient calloc to clear entries.
9221
9222 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9223
9224         * window.c (window_scroll): Work around an AIX C compiler bug.
9225         Fixes 'scroll-up' does nothing problem with xlC.
9226
9227 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9228
9229         * .gdbinit: Remove obsolete comment.
9230
9231 2001-01-31  Mike Alexander  <mta@arbortext.com>
9232
9233         * select.c (Fown_selection_internal): Set owned_p for device
9234         method correctly.
9235
9236 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9237
9238         Port to g++ 2.97.
9239         "not" cannot be used as a macro name as it is an operator in C++
9240         * config.h.in: Stop #defining `not'.
9241         * chartab.c (check_category_char): not ==> not_p
9242         * chartab.h: Likewise.
9243         * regex.c (re_match_2_internal): Likewise.
9244
9245 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9246
9247         * lisp-disunion.h: Fix up comments.
9248
9249 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9250
9251         * keymap.c (define_key_check_and_coerce_keysym):
9252         (syms_of_keymap):
9253         Support mouse-6 and mouse-7 bindings in the obvious way.
9254
9255 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9256
9257         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9258
9259 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9260
9261         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9262         Previous patch missed DEFVAR_INT_MAGIC.
9263         Make sure future DEFVAR_foo use correct types.
9264         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9265         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9266         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9267         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9268         * (DEFVAR_INT): Likewise.
9269         * redisplay.c (vertical_clip): Should be of type Fixnum.
9270         * redisplay.c (horizontal_clip): Likewise.
9271         * lisp.h (dump_add_opaque_int): New.
9272         (dump_add_opaque_fixnum): New.
9273
9274 2001-01-29  Andy Piper  <andy@xemacs.org>
9275
9276         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9277         since they can be eval'ed
9278
9279 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9280
9281         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9282         Oops, XEmacs redefines `class'.  Use `typename' instead.
9283
9284 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9285
9286         * dumper.c: Fix C++ compile errors.
9287
9288 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9289
9290         * tparam.c: Use correct prototypes.
9291
9292 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9293
9294         * sysproc.h: #include util.h for NetBSD's openpty.
9295
9296 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9297
9298         More 64-bit correctness.
9299         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9300         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9301         Fix up comments.
9302         This finally finishes the 64-bit SGI port.
9303         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9304         * symbols.c: Fix up comments and type casts.
9305         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9306         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9307         * symeval.h (Fixnum): New type.
9308         * symeval.h (symbol_value_type): Fix up comment.
9309
9310         * commands.h:
9311         * nt.c:
9312         * emacs.c:
9313         * data.c:
9314         * redisplay.c:
9315         * abbrev.c:
9316         * dired-msw.c:
9317         * event-Xt.c:
9318         * eldap.c:
9319         * window.c:
9320         * sound.c:
9321         * event-stream.c:
9322         * eval.c:
9323         * buffer.c:
9324         * mule-canna.c: A million DEFVAR_INTs here...
9325         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9326         * extents.c:
9327         * cmdloop.c:
9328         * lisp.h:
9329         * select-x.c:
9330         * console-x.h:
9331         * event-msw.c:
9332         * mule-wnnfns.c:
9333         * hpplay.c:
9334         * ralloc.c:
9335         * alloc.c:
9336         * keymap.c:
9337         * profile.c:
9338         s/int/Fixnum/g in DEFVAR_INT declarations.
9339
9340 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9341
9342         Port pdump to SGI alignment-sensitive environment.
9343         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9344         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9345         properly aligned.
9346         Define and use aligned reading and writing macros.
9347         Use buffered stdio instead of posix i/o for faster dumping.
9348         Eliminate kludgy 256 byte space for header.
9349         Read and write from dump file using structs for alignment safety.
9350         * dumper.c (pdump_align_stream): New.
9351         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9352         * dumper.c (PDUMP_READ_ALIGNED): New.
9353         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9354         * dumper.c (pdump_static_Lisp_Object): New struct.
9355         * dumper.c (pdump_static_pointer): New struct.
9356         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9357         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9358         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9359         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9360
9361         * dumper.c (pdump_backtrace):
9362         * dumper.c (pdump_get_indirect_count):
9363         * dumper.c (pdump_register_object):
9364         * dumper.c (pdump_register_struct):
9365         * dumper.c (pdump_reloc_one):
9366         * dumper.c (pdump_scan_by_alignment):
9367         * dumper.c (pdump_dump_from_root_struct_ptrs):
9368         * dumper.c (pdump_dump_opaques):
9369         * dumper.c (pdump_dump_rtables):
9370         * dumper.c (pdump_dump_from_root_objects):
9371         * dumper.c (pdump):
9372         * dumper.c (pdump_load_finish):
9373         Use aligned reading and writing.
9374
9375         * dumper.c (pdump_free): Make static.
9376         * dumper.c (pdump_hFile): Likewise.
9377         * dumper.c (pdump_hMap): Likewise.
9378
9379 2001-01-26  Martin Buchholz <martin@xemacs.org>
9380
9381         * XEmacs 21.2.43 "Terspichore" is released.
9382
9383 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9384
9385         Type fiddling for window_config.saved_windows_count
9386         * window.c (struct window_config): 
9387         Make saved_windows_count member unsigned.
9388         * window.c (sizeof_window_config_for_n_windows): 
9389         Make parameter unsigned.
9390         * window.c (mark_window_config):
9391         * window.c (window_config_equal):
9392         * window.c (free_window_configuration):
9393         * window.c (Fset_window_configuration):
9394         * window.c (count_windows):
9395         * window.c (Fcurrent_window_configuration):
9396         * window.c (reinit_vars_of_window):
9397         Update all callers and users.
9398
9399 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9400
9401         Alignment correctness for flexible arrays.
9402         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9403         Make alignment-correct. Add interesting comments.
9404         * alloc.c (size_vector):
9405         * alloc.c (make_vector_internal):
9406         * alloc.c (make_bit_vector_internal):
9407         * alloc.c (sweep_bit_vectors_1):
9408         * fns.c (size_bit_vector):
9409         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9410         * window.c (sizeof_window_config_for_n_windows): 
9411         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9412
9413 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9414
9415         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9416
9417 2001-01-23  Andy Piper  <andy@xemacs.org>
9418
9419         * select.c (Fown_selection_internal): pass owned_p
9420
9421         * select-msw.c (mswindows_own_selection): New Signature.
9422
9423         * console.h (struct console_methods): add owned_p to
9424         _own_selection.
9425
9426         * select-x.c (x_own_selection): pass owned_p
9427         (hack_motif_clipboard_selection): use owned_p
9428         (vars_of_select_x): new variable -
9429         x_selection_strict_motif_ownership.
9430
9431 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9432
9433         * specifier.h (specifier_data_offset): Remove pointless parens.
9434         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9435
9436 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9437
9438         Make Lisp_Object sizeof methods be alignment-correct.
9439         pdump must restore objects to the same alignment as the C compiler
9440         assumes.  It really matters on SGIs.
9441         * lstream.c (aligned_sizeof_lstream): New.
9442         (sizeof_lstream): Use aligned_sizeof_lstream.
9443         (Lstream_new): Likewise.
9444         * opaque.c (aligned_sizeof_opaque): New.
9445         (sizeof_opaque): Use aligned_sizeof_opaque.
9446         (make_opaque): Likewise.
9447         * specifier.c (aligned_sizeof_specifier): New.
9448         (sizeof_specifier): Use aligned_sizeof_specifier.
9449         (make_specifier_internal): Likewise.
9450
9451 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9452
9453         * lstream.h (struct lstream): Use max_align_t for trailing data.
9454         * specifier.h (struct Lisp_Specifier): Likewise.
9455
9456 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9457
9458         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9459         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9460         (CCL_SUSPEND): Likewise.
9461         (CCL_INVALID_CMD): Likewise.
9462         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9463         (ccl_driver): Likewise.
9464         (CCL_WRITE_CHAR): Macro hygiene.
9465         (CCL_WRITE_STRING): Macro hygiene.
9466
9467 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9468
9469         Port "portable" dumper to SunOS 4 and HP-UX.
9470         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9471         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9472         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9473
9474 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9475
9476         * lisp.h (ALIGNOF): A better definition for C++.
9477
9478 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9479
9480         Macro hygiene.
9481         Fix printf warnings: int format, long int arg.
9482         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9483         (PUSH_FAILURE_POINT): Use correct printf formats.
9484         (POP_FAILURE_POINT): Use correct printf formats.  
9485         Use do {...} while (0)
9486
9487 2001-01-20  Martin Buchholz <martin@xemacs.org>
9488
9489         * XEmacs 21.2.42 "Poseidon" is released.
9490
9491 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9492
9493         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9494
9495 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9496
9497         De-kludgify FIXED_TYPE free list frobbing.
9498         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9499         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9500         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9501         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9502         * alloc.c (LRECORD_FREE_P): New.
9503         * alloc.c (MARK_LRECORD_AS_FREE): New.
9504         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9505         * alloc.c (STRUCT_FREE_P): Deleted.
9506         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9507         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9508         * alloc.c (STRING_CHARS_FREE_P): New.
9509         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9510         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9511         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9512         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9513         * alloc.c (resize_string): Use new definitions.
9514         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9515         * alloc.c (verify_string_chars_integrity): Use new definitions.
9516         * alloc.c (compact_string_chars): Use new definitions.
9517         * alloc.c: Update monster comments.
9518         * lrecord.h (lrecord_type): Add some new lrecord types for
9519         alloc.c's use.
9520
9521 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9522
9523         Improve alignment hackery.
9524         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9525         (max_align_t): Moved from opaque.h - general purpose.
9526         (ALIGN_PTR): Use size_t, not long.
9527         * opaque.h (max_align_t): Move to lisp.h.
9528
9529 2001-01-18  Norbert Koch  <nk@LF.net>
9530
9531         * gui.h: Fix and add prototypes to fix build problems.
9532
9533 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9534
9535         temacs is going away, so `dump-temacs' is now a bad name.
9536         * .dbxrc (dump-temacs): Rename to `dmp'.
9537         * .gdbinit (dump-temacs): Rename to `dmp'.
9538
9539 2001-01-17  Andy Piper  <andy@xemacs.org>
9540
9541         * glyphs.c (print_image_instance): comment to make martin happy.
9542
9543         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9544         change.
9545
9546         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9547         activation.
9548         (mswindows_tab_control_redisplay): warning suppression.
9549
9550         * glyphs-widget.c (widget_update): re-write to cope with updated
9551         items.
9552         (widget_instantiate): use new gui_item functions.
9553         (tab_control_update): deleted.
9554         (progress_gauge_update): deleted.
9555         (image_instantiator_progress_guage): take out update reference.
9556         (image_instantiator_tree_view): ditto.
9557         (image_instantiator_tab_control): ditto.
9558
9559         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9560         Right the new way.
9561         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9562         return whether anything was changed.
9563         (update_gui_item_keywords): as it sounds.
9564
9565         * gui.h: declare widget_gui_parse_item_keywords.
9566
9567         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9568         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9569
9570 2001-01-17  Martin Buchholz <martin@xemacs.org>
9571
9572         * XEmacs 21.2.41 "Polyhymnia" is released.
9573
9574 2001-01-16  Didier Verna  <didier@xemacs.org>
9575
9576         * glyphs.c (image_instantiate): don't use fallbacks when
9577         instantiating a face's background pixmap by inheritance.
9578
9579 2001-01-14  Mike Sperber <mike@xemacs.org>
9580
9581         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9582         Conditionalize accordingly.
9583
9584 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9585
9586         * dumper.c (pdump_file_get): Fix a compiler warning.
9587
9588 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9589
9590         Make Purify happy when pdumping.
9591         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9592         iniitalizing all bits of new lisp object memory.
9593         * symbols.c (Fmake_local_variable): Likewise.
9594         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9595         * symbols.c (Fdefvaralias): Likewise.
9596         * mule-charset.c (vars_of_mule_charset): Likewise.
9597
9598 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9599         Add the `-nd' flag when running pre-dump operations under the debugger.
9600         * .dbxrc (run-temacs): Add `-nd'.
9601         * .dbxrc (update-elc): Likewise.
9602         * .dbxrc (dump-temacs): Likewise.
9603         * .gdbinit (run-temacs): Likewise.
9604         * .gdbinit (check-temacs): Likewise.
9605         * .gdbinit (update-elc): Likewise.
9606         * .gdbinit (dump-temacs): Likewise.
9607
9608 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9609
9610         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9611         export OBJECT_MODE=64
9612         configure --pdump --use-union-type=no
9613         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9614         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9615
9616         * miscplay.c (sndcnv8U_2mono):
9617         Avoid two uses of `++' in the same expression.
9618         Suppresses a GCC warning.
9619
9620 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9621
9622         Make sure future compilers don't miscompile alloc.c.
9623         * alloc.c:
9624         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9625         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9626
9627 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9628
9629         * dumper.c: A little post-pdump-rename comment fixup.
9630
9631 2001-01-09  Jerry James  <james@eecs.ku.edu>
9632
9633         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9634
9635 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9636
9637         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9638         script:
9639         #!/bin/sh
9640         replace_symbol () {
9641           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9642         }
9643
9644         replace_symbol pdump_wire_lists pdump_weak_object_chains
9645         replace_symbol pdump_wire_list dump_add_weak_object_chain
9646
9647         replace_symbol pdump_wires pdump_root_objects
9648         replace_symbol pdump_wire dump_add_root_object
9649
9650         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9651         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9652
9653         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9654         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9655         replace_symbol dumpstructinfo pdump_root_struct_ptr
9656         replace_symbol dumpstruct dump_add_root_struct_ptr
9657
9658         replace_symbol dumpopaque dump_add_opaque
9659         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9660         replace_symbol dumpopaqueinfos pdump_opaques
9661         replace_symbol dumpopaqueinfo pdump_opaque
9662
9663         replace_symbol nb_structdump nb_root_struct_ptrs
9664         replace_symbol nb_opaquedump nb_opaques
9665
9666         replace_symbol align_table pdump_align_table
9667         replace_symbol dump_header pdump_header
9668
9669         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9670         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9671
9672
9673 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9674
9675         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9676         optimizing bytecount_to_charcount().
9677
9678 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9679
9680         * config.h.in:
9681         (HAVE_DLFCN_H): Removed.
9682         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9683
9684 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9685
9686         Portable dumper maintainability improvements.
9687         * alloc.c (staticpro):
9688         * alloc.c (staticpro_nodump):
9689         * alloc.c (garbage_collect_1):
9690         * alloc.c (reinit_alloc_once_early):
9691         * alloc.c (init_alloc_once_early):
9692         * alloc.c: Move dumper functions to alloc.c.
9693         * dumper.c (pdump_backtrace):
9694         * dumper.c (pdump_dump_structs):
9695         * dumper.c (pdump_dump_opaques):
9696         * dumper.c (pdump_dump_rtables):
9697         * dumper.c (pdump_dump_wired):
9698         * dumper.c (pdump):
9699         * dumper.c (pdump_load_check):
9700         * dumper.c (pdump_load_finish):
9701         * dumper.c (pdump_file_unmap):
9702         * dumper.c (pdump_file_get):
9703         * dumper.c (pdump_resource_free):
9704         * dumper.c (pdump_resource_get):
9705         * dumper.c (pdump_file_free):
9706         * dumper.c (pdump_file_try):
9707         * dumper.c (pdump_load):
9708         Remove fixed size limits on staticpro(), staticpro_nodump(),
9709         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9710         Remove custom code for dumping lrecord_implementations_table - use
9711         dumpopaque instead.
9712         Remove (most of the) custom code for dumping staticpros - dump it
9713         like any other dynarr.
9714
9715         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9716         * dumper.c: Moved functions from alloc.c.
9717         * alloc.c (dumpstruct): Moved to dumper.c.
9718         * alloc.c (dumpopaque): Likewise.
9719         * alloc.c (pdump_wire): Likewise.
9720         * alloc.c (pdump_wire_list): Likewise.
9721
9722         * lisp.h (Dynarr_sizeof): New.
9723         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9724         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9725         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9726
9727         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9728         * lisp.h (dumpopaque): ditto.
9729         * lisp.h (pdump_wire): ditto.
9730         * lisp.h (pdump_wire_list): ditto.
9731
9732 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9733
9734         * make-src-depend (PrintPatternDeps):
9735         Use `sort' to make output independent of perl version.
9736
9737 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9738
9739         Port to Netbsd 1.5.
9740         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9741         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9742
9743 2001-01-03  Didier Verna  <didier@xemacs.org>
9744
9745         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9746         that `focus_frame' is alive before thinking of calling
9747         `redisplay_redraw_cursor' on it.
9748
9749 2001-01-08  Martin Buchholz <martin@xemacs.org>
9750
9751         * XEmacs 21.2.40 is released.
9752
9753 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9754
9755         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9756
9757 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9758
9759         * alloc.c (dbg_valmask): Make const.
9760         * alloc.c (dbg_typemask): Make const.
9761         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9762         * alloc.c (dbg_valbits): Make const.
9763         * alloc.c (dbg_gctypebits): Make const.
9764
9765 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9766
9767         * redisplay-x.c (x_bevel_area):
9768         redisplay.h (struct rune):
9769         Typo fixes in comments.
9770
9771 2001-01-05  Andy Piper  <andy@xemacs.org>
9772
9773         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9774         adjustment.
9775
9776         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9777
9778 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9779
9780         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9781
9782         * mule-ccl.c (stack_idx_of_map_multiple):
9783         Non const global data must not be initialized!
9784         Found by MIYASHITA Hisashi.
9785
9786 2001-01-02  Andy Piper  <andy@xemacs.org>
9787
9788         * frame.c (change_frame_size): make sure frame size is always
9789         marked as changed.
9790
9791         * glyphs.c (image_instance_layout): minor code reuse.
9792
9793         * window.c (Fcurrent_window_configuration): revert previous
9794         change.
9795
9796 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9797
9798         * glyphs.h:
9799         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9800
9801 2000-12-31  Andy Piper  <andy@xemacs.org>
9802
9803         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9804         when widget gets unmapped.
9805
9806         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9807         function. Make sure widgets losing focus don't just drop it.
9808         (handle_focus_event_1): record the widget with focus.
9809
9810 2000-12-31  Andy Piper  <andy@xemacs.org>
9811
9812         * window.c (allocate_window): use
9813         make_image_instance_cache_hash_table.
9814         (make_dummy_parent): ditto.
9815         (Fset_window_configuration): ditto.
9816
9817         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9818
9819         * glyphs.c (process_image_string_instantiator): use
9820         INSTANTIATOR_TYPE.
9821         (get_image_instantiator_governing_domain): ditto.
9822         (normalize_image_instantiator): ditto.
9823         (instantiate_image_instantiator): ditto.
9824         (make_image_instance_1): ditto.
9825         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9826         (instantiator_eq_equal): new function for use with instance hash
9827         tables.
9828         (instantiator_eq_hash): ditto.
9829         (make_image_instance_cache_hash_table): create a suitable hash
9830         table for storing image instances.
9831
9832         * elhash.h (hash_table_weakness): new internal weakness type
9833         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9834         declare new functions.
9835
9836         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9837         another weakness type for glyphs.
9838         (make_standard_lisp_hash_table): new function split out from
9839         make_general_lisp_hash_table.
9840         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9841         (hash_table_instantiate): ditto.
9842         (Fmake_hash_table): ditto.
9843
9844 2000-12-31  Martin Buchholz <martin@xemacs.org>
9845
9846         * XEmacs 21.2.39 is released.
9847
9848 2000-12-29  Andy Piper  <andy@xemacs.org>
9849
9850         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9851
9852         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9853         the frame has changed so that we pick up geometry changes such as
9854         menubar visibility.
9855
9856 2000-12-28  Andy Piper  <andy@xemacs.org>
9857
9858         * lastfile.c (my_ebss): make a char array so we can pad the
9859         bss. Fixes cygwin unexec.
9860
9861         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9862
9863 2000-12-26  Andy Piper  <andy@xemacs.org>
9864
9865         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9866         comments and try and be more precise about a non-/SIGIO world.
9867         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9868         SIGIO.
9869
9870         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9871         we don't normalize to zero width or height.
9872
9873 2000-12-24  Andy Piper  <andy@xemacs.org>
9874
9875         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9876
9877 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9878
9879         * s/sco5.h: SCO 5 has pty support.
9880
9881 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9882
9883         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9884         input-method-xlib.c contains whole contents of input-method-xfs.c,
9885         so we can use input-method-xlib.c's code for USE_XFONTSET
9886         using #ifdefs.
9887         * input-method-xfs.c: removed.
9888
9889 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9890
9891         * file-coding.h (enum coding_category_type): reorder enumerators to
9892         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9893         (now one greater than largest real coding_category_type enumerator).
9894         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9895         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9896         Fcoding_category_list, Fset_coding_priority_list,
9897         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9898         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9899
9900 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9901
9902         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9903         * redisplay-output.c (redisplay_output_window): Clear top of window
9904         when face is changed.
9905         * redisplay-x.c (x_redraw_exposed_window): Call
9906         redisplay_clear_top_of_window.
9907         * redisplay.h: Publish redisplay_clear_top_of_window.
9908
9909 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9910
9911         * buffer.c (Fkill_buffer): Map over all devices.
9912         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9913         (list_windows): New function.
9914         (list_all_windows): Ditto.
9915         (Freplace_buffer_in_windows): Use them.
9916
9917 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9918
9919         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9920         (Fopen_database): Use `db_create' instead of `db_open'.
9921         (syms_of_database): Initialize Qqueue.
9922
9923 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9924
9925         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9926         buffer_local_face_property.
9927         * buffer.h (struct buffer): New member buffer_local_face_property.
9928         * window.c (Fset_window_buffer):  Mark window's face as changed
9929         when buffer has buffer local face.
9930         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9931         * objects.c (color_after_change): Set buffer_local_face_property
9932         when locale of face specifier is buffer.
9933         * objects.c (font_after_change): Ditto.
9934         * objects.c (face_boolean_after_change): Ditto.
9935         * glyphs.c (image_after_change): Ditto.
9936
9937 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9938
9939         * nt.c (mswindows_fstat): Report file permissions, volume serial
9940         number, etc. Code adapted from FSF Emacs 20.7.
9941
9942 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9943
9944         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9945         of stat when we don't have symbolic links, to make sure
9946         mswindows_stat is called on mswindows.
9947
9948 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9949
9950         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9951
9952 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9953
9954         * doprnt.c (emacs_doprnt_1): More printing fixes.
9955         Make printing of numbers compatible with libc and FSF Emacs.
9956         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9957         Use the system printf to do most of the hard work of formatting,
9958         instead of doprnt_1().
9959         Calculate memory to allocate for format string.
9960         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9961         (doprnt_1): Cleaner code and documentation.
9962
9963 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9964
9965         * Makefile.in.in: Use the loop variable to install headers.
9966
9967 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9968
9969         * window.c (Fsplit_window): Don't invalidate face cache.
9970
9971 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9972
9973         * minibuf.c (Fall_completions): Undo the previous change
9974         which removed checking elements start with space.
9975
9976 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9977
9978         * mule-canna.c: Didier suppression.
9979
9980 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9981
9982         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9983         (warning suppression).  Add English comment translations.
9984
9985 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9986
9987         * unexelfsgi.c (unexec): Better test for mmap failure.
9988
9989 2000-12-05  Martin Buchholz <martin@xemacs.org>
9990
9991         * XEmacs 21.2.38 is released.
9992
9993 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9994
9995         * redisplay.c (bar-cursor): Make a user variable.
9996
9997         * symsinit.h: Add init_postgresql_from_environment.
9998
9999 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
10000
10001         * regex.c: Convert to clean C.
10002
10003 2000-12-05  Dan Holmsand  <dan@eyebee.com>
10004
10005         * realpath.c:
10006         Don't #include sysfile.h. Revert to duplicating PATH_MAX
10007         initialization.
10008         (sys_readlink): renamed to system_readlink to avoid conflict with
10009         the other sys_readlink.
10010
10011 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
10012
10013         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
10014
10015 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
10016
10017         * postgresql.c (init_postgresql_from_environment): new function.
10018         (vars_of_postgresql): Move code initializing Lisp variables out and
10019         into init_postgresql_from_environment.
10020         emacs.c (main_1): Call init_postgresql_from_environment if and only
10021         if running a dumped XEmacs.
10022
10023 2000-08-31  Dan Holmsand  <dan@eyebee.com>
10024
10025         * buffer.c: Make find-file-compare-truenames default to true on
10026         windows.
10027
10028         * realpath.c (win32_abs_start):
10029         (cygwin_readlink):
10030         (win32_readlink): New functions.
10031         (xrealpath): Return really real filenames on windows.
10032
10033         * fileio.c (Ffile_truename): Make file-truename work on windows.
10034
10035 2000-11-29  Didier Verna  <didier@xemacs.org>
10036
10037         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
10038         * faces.c (update_face_cachel_data): use it.
10039         * faces.c (add_face_cachel): use it. Complete background pixmap
10040         frobbing in face cache if `update_face_cachel_data' has not done so.
10041
10042 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
10043
10044         * search.c (string_match_1): Don't set last_thing_searched
10045         when search failed.
10046
10047 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
10048
10049         * buffer.c: Include casetab.h
10050         (common_init_complex_vars_of_buffer): Use new case-table object.
10051         * buffer.h: Include casetab.h
10052         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
10053         (DOWNCASE_TABLE_OF): Ditto.
10054         * bufslots.h: Remove char-tables and add case-table.
10055         * casetab.c: Include casetab.h
10056         (CASE_TABLE_P): Removed.
10057         (mark_case_table): New function.
10058         (allocate_case_table): New function.
10059         (Fcase_table_p): Use new case-table.
10060         (case_table_char): New function.
10061         (Fget_case_table): Ditto.
10062         (Fput_case_table): Ditto.
10063         (Fput_case_table_pair): Ditto.
10064         (Fcopy_case_table): Ditto.
10065         (Fcurrent_case_table): Return case-table.
10066         (Fstandard_case_table): Return case-table.
10067         (Fset_case_table): Fix doc-string.
10068         (set_case_table): Use case-table
10069         (syms_of_casetab): DEFSUBR new functions.
10070         (complex_vars_of_casetab): Set up standard case-table.
10071         * casetab.h: New file.
10072         * editfns.c: Include casetab.h
10073         (Fcompare_buffer_substrings): Use case-table.
10074         * inline.c: Include casetab.h
10075         * lisp.h: Remove bogus extern.
10076         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
10077         * search.c: Include casetab.h
10078         (TRANSLATE_ASCII): Removed.
10079         (TRANSLATE): Unconditionally translate character.
10080         (looking_at_1): Use case-table.
10081         (string_match_1): Ditto.
10082         (fast_string_match): Ditto.
10083         (search_command): Ditto.
10084         (search_buffer): Separate boyer_moore.  Check whether
10085         boyer_moore is possible.
10086         (simple_search): New function.
10087         (boyer_moore): Separated from search_buffer. Translate char.
10088
10089 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
10090
10091         * regex.c (RE_TR_ASCII): Removed.
10092         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
10093         (PATFETCH): Call PATFETCH_RAW.
10094         (PATFETCH_RAW): Fetch Emchar.
10095         (PATUNFETCH): Decrement charptr.
10096         (GET_BUFFER_SPACE): Rename b to buf_end.
10097         (BUF_PUSH): Ditto.
10098         (BUF_PUSH_2): Ditto.
10099         (BUF_PUSH_3): Ditto.
10100         (EXTEND_BUFFER): Ditto.
10101         (SET_LIST_BIT): Ditto.
10102         (regex_compile): Ditto.  Translate non ASCII char.
10103         (compile_range): Ditto.
10104         (re_search_2): Ditto.
10105         (re_match_2_internal): Compare Emchar.
10106         (bcmp_translate): Ditto.
10107
10108 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
10109
10110         * lisp.h (basic char/int typedefs):  comment improvement.
10111
10112 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
10113
10114         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
10115         unstomp inhibit_site_lisp.  Improve comments.
10116
10117 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
10118
10119         * mule-charset.c (Fcharset_property):  improve type checking, comments.
10120
10121 2000-11-28  Andy Piper  <andy@xemacs.org>
10122
10123         * redisplay-output.c (redisplay_output_subwindow): make sure we do
10124         clipped display for windows in the gutter also.
10125         (redisplay_display_boxes_in_window_p): change semantics of return
10126         codes to be more intuitive.
10127
10128         * gutter.h: declare display_boxes_in_gutter_p.
10129
10130         * gutter.c (display_boxes_in_gutter_p): new function for
10131         redisplay.
10132
10133 2000-11-22  Andy Piper  <andy@xemacs.org>
10134
10135         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10136         autodetect domain.
10137
10138 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10139
10140         * callproc.c (Fold_call_process_internal):
10141         * gpm.c (Freceive_gpm_event):
10142         (tty_get_foreign_selection): Might be just warning supression.
10143         * fileio.c (Fwrite_region_internal):
10144         (Fset_visited_file_modtime):
10145         * keymap.c (event_matches_key_specifier_p):
10146         Initialize GCPROed variable.
10147
10148         * menubar-x.c (command_builder_find_menu_accelerator):
10149         Initialize before use.
10150
10151 2000-11-23  Andy Piper  <andy@xemacs.org>
10152
10153         * unexcw.c (unexec): make the resulting executable executable.
10154
10155 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10156
10157         * doc.c (get_doc_string):
10158         Use size_t, not int, for result of XSTRING_LENGTH.
10159
10160         * cmds.c (Fdelete_char):
10161         * cmds.c (Fpoint_at_eol):
10162         * cmds.c (Fself_insert_command):
10163         Use EMACS_INT, not int, for result of XINT.
10164         Someday, someone will want to insert more than 2**31 identical characters.
10165
10166         * cmds.c (Fdelete_char):
10167         * cmds.c (Fdelete_backward_char):
10168         * syntax.c (Fforward_word):
10169         * syntax.c (Fforward_comment):
10170         Make COUNT argument optional, for consistency with forward-char et al.
10171
10172 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10173
10174         * lisp.h:
10175         * print.c (long_to_string):
10176         Return a useful value: the pointer at end of data written.
10177
10178         * doprnt.c:
10179         Use `static const char * const' for constant strings.
10180         (union printf_arg): Delete `i', `ui' members.
10181         (get_doprnt_args):
10182         (emacs_doprnt_1):
10183         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10184         Do all printf-ing via the `l' specifier.
10185         Use EMACS_INT instead of int.
10186         Optimize.
10187
10188 2000-11-20  Didier Verna  <didier@xemacs.org>
10189
10190         * faces.c (update_face_cachel_data): don't frob the background
10191         pixmap when the window is being created. The face is needed but
10192         does not exist yet.
10193
10194 2000-11-20  Andy Piper  <andy@xemacs.org>
10195
10196         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10197         messing with a debug environment.
10198
10199 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10200
10201         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10202
10203 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10204
10205         * casetab.c (Fcase_table_p): Fix compile error and crash.
10206
10207 2000-11-18  Philip Aston  <philipa@mail.com>
10208
10209         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10210
10211 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10212
10213         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10214         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10215
10216 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10217
10218         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10219         * unexelf.c: Use HAVE_ELF_H.
10220         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10221         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10222         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10223         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10224         for testing.
10225         So this is an unexelfsgi.c from a different line of development.
10226
10227 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10228
10229         * regex.c (RE_TR_ASCII): New function.
10230         (RE_TRANSLATE): Call it.
10231
10232 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10233
10234         * buffer.h (TRT_TABLE_OF): Remove assert.
10235         (IN_TRT_TABLE_DOMAIN): Removed.
10236
10237 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10238
10239         * free-hook.c (log_gcpro):
10240         (show_gcprohist): Add support for GCPRO5.
10241
10242 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10243
10244         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10245
10246 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10247
10248         * symeval.h: Declare flush_all_buffer_local_cache.
10249
10250         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10251         (flush_buffer_local_cache): Added.
10252         (flush_all_buffer_local_cache): Added.
10253
10254         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10255
10256         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10257         (pdump_dump_data): Ditto.
10258         (pdump_reloc_one): Ditto.
10259         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10260         before dumping.
10261
10262
10263 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10264
10265         * buffer.c: Remove if 0'ed entry.
10266         * buffer.h: Rewrite TRT to use char-table.
10267         * bufslots.h: Remove mirror tables.
10268         * casetab.c: Remove mirror tables.
10269         (CASE_TABLE_P): New macro.
10270         (Fcase_table_p): Element of a case table is string or char-table.
10271         (make_mirror_trt_table): Removed.
10272         (set_case_table): Setup char-table from strings for backward
10273         compatibility.
10274         * dired.c (Fdirectory_files):
10275         * dired-msw.c: (mswindows_get_files):
10276         * lisp.h: Change prototype of re_pattern_buffer.
10277         * regex.c: (RE_TRANSLATE): New macro.
10278         (TRANSLATE_P): Ditto.
10279         Change translate to type RE_TRANSLATE_TYPE.
10280         * regex.h: Define RE_TRANSLATE_TYPE
10281         * search.c (TRANSLATE): New macro.
10282         (TRANSLATE_ASCII): New macro.
10283         Translate table is changed to Lisp_Object.
10284         (signal_failure): Inhibit return.
10285
10286 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10287
10288         * device-msw.c:
10289         * eldap.c:
10290         * event-Xt.c:
10291         * event-stream.c:
10292         * print.c:
10293         Do UNGCPRO before return.
10294
10295 2000-11-14  Martin Buchholz <martin@xemacs.org>
10296
10297         * XEmacs 21.2.37 is released.
10298
10299 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10300
10301         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10302         Add comments about discarded return value.
10303
10304 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10305
10306         * callint.c:
10307         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10308
10309 2000-10-27  Andy Piper  <andy@xemacs.org>
10310
10311         * gutter.c (Fset_default_gutter_position): default left and right
10312         gutters to visible.
10313         (calculate_gutter_size): calculate resonable heuristic for left
10314         and right gutter sizes.
10315         (specifier_vars_of_gutter): change left and right gutter sizes to
10316         autodetect.
10317         (calculate_gutter_size_from_display_lines): new function.
10318         (output_gutter): check for resizing on left and right gutters.
10319         (clear_gutter): don't special case top and left gutters.
10320         (specifier_vars_of_gutter): use new signature for
10321         set_specifier_caching.
10322
10323         * glyphs-x.c (x_redisplay_widget): spelling fix.
10324         * glyphs.c (specifier_vars_of_glyphs):
10325         * menubar.c (specifier_vars_of_menubar):
10326         * redisplay.c (specifier_vars_of_redisplay):
10327         * toolbar.c (specifier_vars_of_toolbar):
10328         * window.c (specifier_vars_of_window):
10329         * scrollbar.c (specifier_vars_of_scrollbar):
10330         (complex_vars_of_scrollbar): use new signature for
10331         set_specifier_caching.
10332
10333         * specifier.c (set_specifier_caching): include recompute flag.
10334         (recompute_one_cached_specifier_in_window): always recompute if
10335         flag set.
10336         (recompute_one_cached_specifier_in_frame): ditto.
10337
10338         * specifier.h (struct specifier_caching): add recompute flag.
10339
10340 2000-10-24  Andy Piper  <andy@xemacs.org>
10341
10342         * unexcw.c (copy_executable_and_dump_data_section): add new
10343         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10344         5.0 happy.
10345
10346 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10347
10348         * console-x.h (x_device): New member modifier_release_time.
10349         * event-Xt.c (x_handle_sticky_modifiers):
10350         Bound interval modifier keys are sticky.
10351         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10352         * events.h: extern it.
10353
10354 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10355
10356         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10357
10358 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10359
10360         * event-stream.c (execute_command_event): Preserve current_events
10361         and the like when event is misc-user-event.
10362         Inhibit quit during the call to maybe_echo_keys.
10363
10364 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10365
10366         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10367         symlink when buffer is killed.
10368         (inhibit_clash_detection): New variable.
10369
10370 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10371
10372         * console.c (Fset_input_method): Trigger redisplay on tty.
10373
10374 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10375
10376         * process.c (Fprocess_status): Revert to previous behavior:
10377         (process-status "nosuchprocess") ==> nil
10378
10379 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10380
10381         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10382         Work around another GCC 2.95.2 optimizer bug.
10383
10384 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10385
10386         * process.c (Fget_process): Use LIST_LOOP_2.
10387         (kill_buffer_processes): Use LIST_LOOP_2.
10388
10389         * minibuf.c (Fall_completions):
10390         Delete old non-functional code for FSF fourth argument.
10391
10392         * frame.c (frame_matches_frame_spec):
10393         Renamed from `frame_matches_frametype'.  Update all callers.
10394         (device_matches_device_spec):
10395         Renamed from 'device_matches_console_spec'.  Update all callers.
10396
10397         * doc.c (Fsubstitute_command_keys):
10398         Remove buffer overflow crash.  Small code cleanups.
10399
10400         * casetab.c (check_case_table): Simpler code.
10401
10402         * window.c (Freplace_buffer_in_windows):
10403         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10404         (and similar implementation) as Fdelete_windows_on.
10405         Update all callers.
10406
10407         * alloc.c (Fmake_list):
10408         * alloc.c (make_vector):
10409         * alloc.c (Fmake_vector):
10410         * alloc.c (make_bit_vector):
10411         * alloc.c (Fmake_bit_vector):
10412         * alloc.c (Fbit_vector):
10413         * alloc.c (Fmake_string):
10414         * alloc.c (Fpurecopy):
10415         * alloc.c (Fmemory_limit):
10416         * buffer.c:
10417         * buffer.c (Fget_buffer):
10418         * buffer.c (Fkill_buffer):
10419         * buffer.c (complex_vars_of_buffer):
10420         * bytecode.c (Fcompiled_function_stack_depth):
10421         * callint.c (Fprefix_numeric_value):
10422         * event-stream.c:
10423         * event-stream.c (Fread_key_sequence):
10424         * casetab.c:
10425         * casetab.c (Fcase_table_p):
10426         * casetab.c (check_case_table):
10427         * casetab.c (Fset_case_table):
10428         * casetab.c (Fset_standard_case_table):
10429         * chartab.c:
10430         * chartab.c (Fchar_table_type):
10431         * chartab.c (Freset_char_table):
10432         * chartab.c (Fget_char_table):
10433         * chartab.c (Fget_range_char_table):
10434         * chartab.c (Fput_char_table):
10435         * chartab.c (Fmap_char_table):
10436         * chartab.c (Fcategory_table_p):
10437         * chartab.c (Fcheck_category_at):
10438         * chartab.c (Fchar_in_category_p):
10439         * chartab.c (Fcategory_table):
10440         * chartab.c (Fcopy_category_table):
10441         * chartab.c (Fset_category_table):
10442         * chartab.c (Fcategory_designator_p):
10443         * chartab.c (Fcategory_table_value_p):
10444         * cmds.c (Fdelete_char):
10445         * cmds.c (Fdelete_backward_char):
10446         * cmds.c (Fself_insert_command):
10447         * cmds.c (Fself_insert_internal):
10448         * console.c (Fvalid_console_type_p):
10449         * console.c (Fcdfw_console):
10450         * console.c (Fconsole_type):
10451         * console.c (Fconsole_name):
10452         * console.c (Fconsole_device_list):
10453         * console.c (Fconsole_on_window_system_p):
10454         * data.c:
10455         * data.c (Feq):
10456         * data.c (Fold_eq):
10457         * data.c (Fsubr_interactive):
10458         * data.c (Fchar_to_int):
10459         * data.c (Fint_to_char):
10460         * data.c (Fsetcar):
10461         * data.c (Fsetcdr):
10462         * data.c (Fnumber_to_string):
10463         * data.c (Fstring_to_number):
10464         * data.c (Frem):
10465         * database.c (mark_database):
10466         * database.c (finalize_database):
10467         * database.c (Fdatabase_live_p):
10468         * database.c (Fdatabasep):
10469         * device-x.c (Fx_get_resource):
10470         * device.c (Fdfw_device):
10471         * dired.c:
10472         * dired.c (Ffile_name_completion):
10473         * dired.c (Ffile_name_all_completions):
10474         * dired.c (Fuser_name_completion):
10475         * dired.c (Fuser_name_completion_1):
10476         * dired.c (Fuser_name_all_completions):
10477         * doc.c (Fdocumentation):
10478         * doc.c (Fdocumentation_property):
10479         * doc.c (Fsubstitute_command_keys):
10480         * editfns.c:
10481         * editfns.c (Fchar_to_string):
10482         * editfns.c (Fstring_to_char):
10483         * editfns.c (Ftemp_directory):
10484         * editfns.c (Finsert_char):
10485         * editfns.c (Fbuffer_substring_no_properties):
10486         * editfns.c (Fnarrow_to_region):
10487         * editfns.c (Fchar_equal):
10488         * editfns.c (Fchar_Equal):
10489         * editfns.c (Ftranspose_regions):
10490         * emacs.c (Fdump_emacs):
10491         * eval.c (Fthrow):
10492         * eval.c (Fcommand_execute):
10493         * eval.c (Fautoload):
10494         * eval.c (Fbacktrace):
10495         * eval.c (Fbacktrace_frame):
10496         * events.c:
10497         * events.c (Fcopy_event):
10498         * events.c (Fcharacter_to_event):
10499         * events.c (Fevent_button):
10500         * events.c (Fevent_process):
10501         * extents.c:
10502         * extents.c (Fnext_extent_change):
10503         * extents.c (Fextent_property):
10504         * faces.c (Ffacep):
10505         * faces.c (Fmake_face):
10506         * file-coding.c:
10507         * file-coding.c (Fencode_shift_jis_char):
10508         * file-coding.c (Fencode_big5_char):
10509         * fileio.c (Ffile_name_directory):
10510         * fileio.c (Ffile_name_nondirectory):
10511         * fileio.c (Ffile_name_as_directory):
10512         * fileio.c (Fdirectory_file_name):
10513         * fileio.c (Ffile_truename):
10514         * fileio.c (Fsubstitute_in_file_name):
10515         * fileio.c (Ffile_modes):
10516         * fileio.c (Fset_file_modes):
10517         * fileio.c (Fset_default_file_modes):
10518         * fileio.c (Fverify_visited_file_modtime):
10519         * floatfns.c (Facos):
10520         * floatfns.c (Fasin):
10521         * floatfns.c (Fatan):
10522         * floatfns.c (Fcos):
10523         * floatfns.c (Fsin):
10524         * floatfns.c (Ftan):
10525         * floatfns.c (Fbessel_j0):
10526         * floatfns.c (Fbessel_j1):
10527         * floatfns.c (Fbessel_jn):
10528         * floatfns.c (Fbessel_y0):
10529         * floatfns.c (Fbessel_y1):
10530         * floatfns.c (Fbessel_yn):
10531         * floatfns.c (Ferf):
10532         * floatfns.c (Ferfc):
10533         * floatfns.c (Flog_gamma):
10534         * floatfns.c (Fexp):
10535         * floatfns.c (Fexpt):
10536         * floatfns.c (Flog):
10537         * floatfns.c (Flog10):
10538         * floatfns.c (Fsqrt):
10539         * floatfns.c (Fcube_root):
10540         * floatfns.c (Facosh):
10541         * floatfns.c (Fasinh):
10542         * floatfns.c (Fatanh):
10543         * floatfns.c (Fcosh):
10544         * floatfns.c (Fsinh):
10545         * floatfns.c (Ftanh):
10546         * floatfns.c (Fabs):
10547         * floatfns.c (Ffloat):
10548         * floatfns.c (Flogb):
10549         * floatfns.c (Fceiling):
10550         * floatfns.c (Ffloor):
10551         * floatfns.c (Fround):
10552         * floatfns.c (Ftruncate):
10553         * floatfns.c (Ffceiling):
10554         * floatfns.c (Fffloor):
10555         * floatfns.c (Ffround):
10556         * floatfns.c (Fftruncate):
10557         * fns.c (Fstring_equal):
10558         * fns.c (Fstring_lessp):
10559         * fns.c (concat2):
10560         * fns.c (concat3):
10561         * fns.c (vconcat2):
10562         * fns.c (vconcat3):
10563         * fns.c (Fsubstring):
10564         * fns.c (Fassoc):
10565         * fns.c (Fold_assoc):
10566         * fns.c (assoc_no_quit):
10567         * fns.c (Fassq):
10568         * fns.c (Fold_assq):
10569         * fns.c (assq_no_quit):
10570         * fns.c (Frassoc):
10571         * fns.c (Fold_rassoc):
10572         * fns.c (Frassq):
10573         * fns.c (Fold_rassq):
10574         * fns.c (rassq_no_quit):
10575         * fns.c (Fremassoc):
10576         * fns.c (remassoc_no_quit):
10577         * fns.c (Fremassq):
10578         * fns.c (remassq_no_quit):
10579         * fns.c (Fremrassoc):
10580         * fns.c (Fremrassq):
10581         * fns.c (remrassq_no_quit):
10582         * fns.c (Fsort):
10583         * fns.c (Fplist_get):
10584         * fns.c (Fplist_put):
10585         * fns.c (Fplist_remprop):
10586         * fns.c (Fplist_member):
10587         * fns.c (Flax_plist_get):
10588         * fns.c (Flax_plist_put):
10589         * fns.c (Flax_plist_remprop):
10590         * fns.c (Flax_plist_member):
10591         * fns.c (Fequal):
10592         * fns.c (Fold_equal):
10593         * fns.c (Frequire):
10594         * fns.c (Fbase64_encode_region):
10595         * fns.c (Fbase64_encode_string):
10596         * fns.c (Fbase64_decode_region):
10597         * frame.c:
10598         * frame.c (frame_matches_frame_spec):
10599         * frame.c (device_matches_device_spec):
10600         * frame.c (next_frame):
10601         * frame.c (previous_frame):
10602         * frame.c (Fnext_frame):
10603         * frame.c (Fprevious_frame):
10604         * frame.c (Fframe_property):
10605         * frame.c (Fset_frame_height):
10606         * frame.c (Fset_frame_size):
10607         * frame.h:
10608         * glyphs.c:
10609         * glyphs.c (if):
10610         * glyphs.c (decode_error_behavior_flag):
10611         * glyphs.c (Fmake_image_instance):
10612         * indent.c (Findent_to):
10613         * intl.c (Fignore_defer_gettext):
10614         * keymap.c (Fkeymapp):
10615         * keymap.c (Flookup_key):
10616         * lread.c:
10617         * lread.c (Fload_internal):
10618         * lread.c (Feval_buffer):
10619         * lread.c (Feval_region):
10620         * macros.c (Fexecute_kbd_macro):
10621         * marker.c (set_marker_internal):
10622         * marker.c (Fset_marker):
10623         * marker.c (set_marker_restricted):
10624         * marker.c (Fcopy_marker):
10625         * marker.c (noseeum_copy_marker):
10626         * menubar.c:
10627         * menubar.c (Fpopup_menu):
10628         * minibuf.c:
10629         * mule-charset.c (Fcharset_name):
10630         * mule-charset.c (Fchar_charset):
10631         * mule-charset.c (Fchar_octet):
10632         * mule-charset.c (Fsplit_char):
10633         * mule-wnnfns.c (Fwnn_open):
10634         * mule-wnnfns.c (Fwnn_dict_comment):
10635         * mule-wnnfns.c (Fwnn_quit_henkan):
10636         * mule-wnnfns.c (Fwnn_word_toroku):
10637         * mule-wnnfns.c (Fwnn_word_sakujo):
10638         * mule-wnnfns.c (Fwnn_word_use):
10639         * mule-wnnfns.c (Fwnn_hindo_set):
10640         * objects.c:
10641         * objects.c (Fmake_color_instance):
10642         * objects.c (Fmake_font_instance):
10643         * print.c (Fwrite_char):
10644         * process.c:
10645         * process.c (mark_process):
10646         * process.c (print_process):
10647         * process.c (get_process_from_usid):
10648         * process.c (Fprocessp):
10649         * process.c (Fprocess_live_p):
10650         * process.c (Fget_process):
10651         * process.c (Fget_buffer_process):
10652         * process.c (get_process):
10653         * process.c (Fprocess_id):
10654         * process.c (Fprocess_name):
10655         * process.c (Fprocess_command):
10656         * process.c (init_process_io_handles):
10657         * process.c (start_process_unwind):
10658         * process.c (Fstart_process_internal):
10659         * process.c (Fopen_multicast_group_internal):
10660         * process.c (Fset_process_window_size):
10661         * process.c (read_process_output):
10662         * process.c (send_process):
10663         * process.c (Fprocess_tty_name):
10664         * process.c (Fset_process_buffer):
10665         * process.c (Fprocess_buffer):
10666         * process.c (Fprocess_mark):
10667         * process.c (set_process_filter):
10668         * process.c (Fset_process_filter):
10669         * process.c (Fprocess_filter):
10670         * process.c (Fprocess_send_region):
10671         * process.c (Fprocess_send_string):
10672         * process.c (exec_sentinel):
10673         * process.c (Fset_process_sentinel):
10674         * process.c (Fprocess_sentinel):
10675         * process.c (status_notify):
10676         * process.c (Fprocess_status):
10677         * process.c (Fprocess_exit_status):
10678         * process.c (process_send_signal):
10679         * process.c (Fprocess_send_eof):
10680         * process.c (deactivate_process):
10681         * process.c (remove_process):
10682         * process.c (Fdelete_process):
10683         * process.c (kill_buffer_processes):
10684         * process.c (Fprocess_kill_without_query):
10685         * process.c (Fprocess_kill_without_query_p):
10686         * rangetab.c:
10687         * rangetab.c (Fget_range_table):
10688         * rangetab.c (Fput_range_table):
10689         * rangetab.c (Fremove_range_table):
10690         * rangetab.c (Fclear_range_table):
10691         * search.c:
10692         * search.c (Fskip_chars_forward):
10693         * search.c (Fskip_chars_backward):
10694         * search.c (Fskip_syntax_forward):
10695         * search.c (Fskip_syntax_backward):
10696         * search.c (search_command):
10697         * search.c (Freplace_match):
10698         * search.c (Fregexp_quote):
10699         * select.c (Fown_selection_internal):
10700         * select.c (Fselection_owner_p):
10701         * select.c (Fselection_exists_p):
10702         * select.c (Fget_selection_internal):
10703         * specifier.c:
10704         * symbols.c:
10705         * symbols.c (Fintern):
10706         * symbols.c (Fintern_soft):
10707         * symbols.c (Funintern):
10708         * symbols.c (Fapropos_internal):
10709         * symbols.c (Fset_default):
10710         * syntax.c:
10711         * syntax.c (Fsyntax_table_p):
10712         * syntax.c (Fcopy_syntax_table):
10713         * syntax.c (Fset_syntax_table):
10714         * syntax.c (Fchar_syntax):
10715         * syntax.c (syntax_match):
10716         * syntax.c (Fmatching_paren):
10717         * syntax.c (Fforward_word):
10718         * syntax.c (scan_lists):
10719         * syntax.c (Fscan_lists):
10720         * syntax.c (Fscan_sexps):
10721         * syntax.c (Fparse_partial_sexp):
10722         * toolbar.c (Fcheck_toolbar_button_syntax):
10723         * tooltalk.doc:
10724         * window.c:
10725         * window.c (Fwindowp):
10726         * window.c (Fwindow_live_p):
10727         * window.c (Fwindow_point):
10728         * window.c (Fdelete_window):
10729         * window.c (Fnext_window):
10730         * window.c (Fprevious_window):
10731         * window.c (Fother_window):
10732         * window.c (window_loop):
10733         * window.c (Fget_lru_window):
10734         * window.c (Fsplit_window):
10735         * window.c (Fenlarge_window):
10736         * window.c (Fenlarge_window_pixels):
10737         * window.c (Fshrink_window):
10738         * window.c (Fshrink_window_pixels):
10739         * window.c (change_window_height):
10740         * window.c (Fwindow_configuration_p):
10741         * window.c (Fcurrent_window_configuration):
10742         * window.h:
10743         * casefiddle.c (casify_object):
10744         * casefiddle.c (Fupcase):
10745         * casefiddle.c (Fdowncase):
10746         * casefiddle.c (Fcapitalize):
10747         * casefiddle.c (Fupcase_initials):
10748         * casefiddle.c (casify_region_internal):
10749         * casefiddle.c (casify_region):
10750         * casefiddle.c (Fupcase_region):
10751         * casefiddle.c (Fdowncase_region):
10752         * casefiddle.c (Fcapitalize_region):
10753         * casefiddle.c (Fupcase_initials_region):
10754         * casefiddle.c (Fupcase_word):
10755         * casefiddle.c (Fdowncase_word):
10756         * casefiddle.c (Fcapitalize_word):
10757         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10758         Replace 0 with '\0' when working with bytes.
10759         Replace initial "(" with "\(" in docstrings.
10760
10761 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10762
10763         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10764
10765         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10766
10767 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10768
10769         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10770
10771 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10772
10773         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10774         correctly.
10775
10776 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10777
10778         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10779         (inhibit_auto_save_session): New variable.
10780         (vars_of_fileio): Declare and initialize them.
10781         * fileio.c (Fdo_auto_save): Don't create session file if
10782         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10783
10784 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10785
10786         * sgiplay.c (play_internal): C++ compilability.
10787         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10788         * callproc.c (Fold_call_process_internal):
10789         Remove unused vars `env', `first'.
10790         * scrollbar.c (update_scrollbar_instance):
10791         #### unused var `current_window'.
10792         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10793         etc. within #ifdef NOT_YET.
10794         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10795         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10796         * specifier.c (specifier_instance):
10797         #### unused var `tag'.
10798         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10799
10800 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10801
10802         * fns.c (Fbutlast):
10803         * fns.c (list_sort):
10804         * fns.c (Ffillarray):
10805         * fns.c (bytecode_nconc2):
10806         * fns.c (Fnconc):
10807         * fns.c (mapcar1):
10808         * fns.c (Fmapconcat):
10809         Be pedantically 64-bit correct.  For the time when someone will
10810         want to have a list with length > 2**32.
10811
10812         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10813         Work around MIPSpro compiler bug.
10814
10815         * process-unix.c (unix_kill_child_process): Add snarky comment.
10816         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10817
10818         * config.h.in: Oops, _getpt ==> _getpty
10819
10820 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10821
10822         * config.h.in:
10823         * regex.c:
10824         Use void*, not char*, as return type of alloca().
10825
10826         * alloc.c (free_marker): Side effect inside assert expression!
10827
10828 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10829
10830         * mule-charset.c (Fset_charset_ccl_program): To check
10831         if the given ccl program is valid, use setup_ccl_program()
10832         instead of CHECK_VECTOR().
10833         (Fmake_charset): Likewise.
10834
10835 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10836
10837         * faces.c (get_extent_fragment_face_cache_index):
10838         Fix cachel.merged_faces memory leak.
10839
10840 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10841
10842         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10843         Reset MSB of octets obtained by DECODE_SJIS
10844         because of the incompatibility with Emacs.
10845         (ccl_driver)<CCL_ENCODE_SJIS>:
10846         Set MSB of octets before passing them to
10847         ENCODE_SJIS because of the incompatibility
10848         with Emacs.
10849
10850 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10851
10852         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10853         (DECLARE_LRECORD): Undo the last change.
10854         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10855
10856 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10857
10858         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10859         the implementation to lrecord_implementations_table.
10860
10861 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10862
10863         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10864         initial value of `lrecord_type_##c_name' and
10865         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10866         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10867         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10868         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10869         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10870
10871 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10872
10873         * miscplay.c (sndcnv8S_2mono):
10874         (sndcnv2monounsigned):
10875         (sndcnvULaw_2linear):
10876         (sndcnv16swap):
10877         Remove implementation-defined behavior.
10878
10879 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10880
10881         * input-method-xlib.c: Warning suppression.
10882
10883 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10884
10885         * mule-ccl.c: Sync up with Emacs 21.0.90.
10886         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10887         Do nothing.
10888         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10889         Likewise.
10890         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10891         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10892         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10893         leading char belongs to official 2-dimensional charset.
10894         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10895         write the given character as is.  Otherwise,
10896         if it is a multibyte char, convert it by
10897         non_ascii_set_charptr_emchar, then write it.
10898         (CCL_WRITE_STRING): Likewise.
10899         (ccl_get_compiled_code): New function.
10900         (setup_ccl_program): When ccl_prog is invalid,
10901         return -1.
10902         (Fregister_code_conversion_map): New function.
10903         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10904
10905         * mule-ccl.h: Sync up with Emacs 21.0.90.
10906         (Fregister_ccl_program): export it.
10907
10908         * redisplay-msw.c (separate_textual_runs):
10909         If ccl program is not valid, don't do ccl conversion.
10910
10911         * redisplay-x.c (separate_textual_runs): Ditto.
10912
10913         * file-coding.c (Fmake_coding_system):
10914         When type is ccl and value is vector, register it
10915         with a proper symbol.  And checks whether the
10916         given ccl program is valid.
10917         (mule_decode): When calling ccl_driver, if src indicates
10918         NULL pointer, set an empty string instead.
10919         (mule_encode): Likewise.
10920
10921 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10922
10923         The following large batch of changes gets us back to a state of
10924         C++ compilability.  Extbyte is now a char, which means that
10925         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10926
10927         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10928
10929         * sound.c (Fplay_sound): Type correctness.
10930
10931         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10932         (x_get_window_property): Type correctness.
10933         (receive_incremental_selection): unsigned char ==> Extbyte
10934         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10935         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10936         (Fx_store_cutbuffer_internal): Type correctness.
10937
10938         * process-unix.c (try_to_initialize_subtty): Type correctness.
10939
10940         * objects-x.c (x_print_color_instance): Type correctness.
10941         (x_print_font_instance): Type correctness.
10942         (x_list_fonts): SExtbyte ==> Extbyte.
10943         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10944         (x_find_charset_font): SExtbyte ==> Extbyte.
10945         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10946         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10947         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10948         Use bufbyte_strcmp.
10949
10950         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10951         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10952         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10953         (BYTE_C0_P): Use bit ops for char-signedness safety.
10954         (BYTE_C1_P): Use bit ops for char-signedness safety.
10955         (CHARSET_BY_LEADING_BYTE):
10956         (CHARSET_BY_ATTRIBUTES):
10957         Always use inline function.
10958         Use type_checking_assert.
10959         Hide chlook.
10960
10961         * mule-charset.c (non_ascii_charptr_copy_char):
10962         Modify to work with both ASCII and non-ASCII characters.
10963         Improve docs and variable names.
10964         Replace over-clever fall-through switch with a simple loop.
10965         (Lstream_get_emchar_1):
10966         Replace over-clever fall-through switch with a simple loop.
10967
10968         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10969         Warning suppression.
10970
10971         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10972         the return value of Lstream_getc, which could be EOF as well.
10973
10974         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10975
10976         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10977         APIs can be used on Extbytes without casts.  Risky!
10978         (SExtbyte): Remove.
10979         (UExtbyte): Remove.
10980
10981         * input-method-xlib.c (XIM_init_device):
10982         Use Xlib.h instead of IntrinsicP.h.
10983         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10984         which will break in X11R7.
10985         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10986         to call XRegisterIMInstantiateCallback with correct types.
10987
10988         * gui-x.c (button_item_to_widget_value): Type correctness.
10989
10990         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10991
10992         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10993         (xbm_instantiate_1): Type correctness.
10994         (BUILD_GLYPH_INST):  Type correctness.
10995
10996         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10997
10998         * file-coding.c:
10999         (decode_coding_sjis):
11000         (decode_coding_big5):
11001         (decode_coding_ucs4):
11002         (decode_coding_utf8):
11003         (decode_coding_iso2022):
11004         (decode_coding_no_conversion):
11005         Make all decoding functions take an Extbyte * arg.
11006         (encode_coding_sjis):
11007         (encode_coding_big5):
11008         (encode_coding_ucs4):
11009         (encode_coding_utf8):
11010         (encode_coding_iso2022):
11011         (encode_coding_no_conversion):
11012         Make all encoding functions take a Bufbyte * arg.
11013         Use size_t instead of unsigned int for memory sizes.
11014         Only cast to unsigned char whenever dereferencing Extbyte *.
11015
11016         * doc.c (unparesseuxify_doc_string): Type correctness.
11017
11018         * console-x.c (split_up_display_spec):
11019         Rewrite without using details of internal string representation.
11020         (x_semi_canonicalize_device_connection): Type correctness.
11021
11022         * config.h.in:
11023         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
11024         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
11025         (HAVE_XFREE386): Removed.
11026
11027         * buffer.h (DEC_CHARPTR): `const' correctness.
11028         (bufbyte_strcmp): New.
11029         (bufbyte_memcmp): New.
11030
11031         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
11032
11033         * buffer.h (XCHAR_OR_CHAR_INT):
11034         Always use inline function.
11035         Remove redundant type checking assert() - XINT will abort quite nicely.
11036
11037 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11038
11039         * search.c (Freplace_match): Set newtext to an empty string.
11040
11041 2000-10-10  Martin Buchholz  <martin@xemacs.org>
11042
11043         * s/decosf1-3.h: Remove #include of stropts.h
11044         * s/ptx.h: Remove #include of stropts.h
11045         * s/usg5-4.h: Remove #include of stropts.h
11046         * sysproc.h:
11047         * config.h.in:
11048         Use stropts.h, not sys/stropts.h.
11049         Use strtio.h, not sys/strtio.h.
11050
11051 2000-10-04  Martin Buchholz <martin@xemacs.org>
11052
11053         * XEmacs 21.2.36 is released.
11054
11055 2000-09-21  Andy Piper  <andy@xemacs.org>
11056
11057         * glyphs-x.c (x_redisplay_widget): make sure non-structural
11058         changes still involve copying the widget tree.
11059         (update_widget_face): make sure a change is register in the widget
11060         tree. Call update_tab_widget_face appropriately.
11061         (update_tab_widget_face): ditto.
11062         (x_tab_control_redisplay): make sure non-structural changes still
11063         involve copying the widget tree.
11064
11065 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
11066
11067         * lread.c (locate_file): Check the path element is non-nil.
11068
11069 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11070
11071         * lisp.h: Warning suppression for SCO compilers.
11072
11073         * redisplay-tty.c (reset_tty_modes): Fix crash.
11074         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
11075
11076 2000-09-27  Martin Buchholz  <martin@xemacs.org>
11077
11078         Big signal/process handling overhaul.  Bugs fixed:
11079         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
11080         M-x comint-kill-subjob should work for both values nil and t of
11081         process-connection-type. It was broken on most platforms.
11082         Testing on Irix and Cygwin still needed.  Other plaforms tested.
11083         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
11084         * process-unix.c: Signal/Process handling overhaul.
11085         (pty_name): make 64 bytes, as `expect' does, for paranoia.
11086         (allocate_pty): Use all available modern methods of allocating
11087         ptys, falling back to old style BSD allocation as a last resort.
11088         Use allegedly more secure Unix98 pty allocation by default.
11089         (allocate_pty_the_old_fashioned_way): New. the last resort.
11090         (unix_create_process): Push ptem, ldterm, ttcompat where
11091         available.  Autoconfiscate.
11092         (try_to_initialize_subtty): New.
11093         (unix_kill_child_process): Proper signal handling for ptys on most
11094         platforms, using special knowledge of AIX, BSD, etc...
11095         (unix_create_process): Always disconnect_controlling_terminal() for
11096         subprocesses, whether using ptys or not.
11097         * process.h: Remove old getpt-dependent PTY code.
11098         * process.c (Fprocess_send_signal): New, obvious generic function.
11099         (decode_signal): New.
11100         (Finterrupt_process):
11101         (Fkill_process):
11102         (Fquit_process):
11103         (Fstop_process):
11104         (Fcontinue_process):
11105         (Fsignal_process): Use decode_signal.
11106         (process_send_signal):
11107         Many docstring corrections.
11108         Allow any signal to be sent to a process object.
11109         * config.h.in: Add symbols for big signal/process overhaul.
11110         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11111         * sysproc.h: Include process-related headers, where available:
11112         sys/stropts.h sys/strtio.h pty.h libutil.h
11113         * s/irix4-0.h:
11114         * s/irix5-0.h:
11115         * s/cygwin32.h:
11116         * s/gnu.h:
11117         * s/linux.h:
11118         * s/hpux.h:
11119         * s/aix3-1.h:
11120         Remove old S&M pty stuff.
11121         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11122         * systty.h: Simplify cpp hackery, improve comments.
11123         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11124
11125         * editfns.c (Fformat_time_string):
11126         Be a little more paranoid with the return value of ctime.
11127
11128         * fileio.c (check_executable):
11129         (check_writable):
11130         Use symbolic constants X_OK, W_OK.
11131
11132         * console-x.c (split_up_display_spec): Fix a warning.
11133
11134 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11135
11136         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11137         * ntproc.c (sys_spawnve): make_string ==> build_string
11138         Small clarity improvements.
11139
11140 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11141
11142         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11143
11144         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11145
11146         * config.h.in (HAVE_STRCASECMP): Remove.
11147
11148 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11149
11150         * redisplay-output.c (redisplay_output_pixmap):
11151         Cleaner and possibly more 64-bit correct code.
11152
11153 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11154
11155         * dumper.c (pdump_load_finish): move restoration of
11156         `noninteractive1' to emacs.c (main_1).
11157         * emacs.c (main_1): protect LISP-visible command-line flags
11158         from pdump_load().
11159
11160 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11161
11162         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11163         DUMP_TARGET instead of literal program names.
11164
11165 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11166
11167         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11168
11169 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11170
11171         * *: Spelling mega-patch
11172
11173 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11174
11175         * fns.c (bad_bad_turtle):
11176         Delete "Eek!" comment, since we fixed the bug to which it refers.
11177
11178 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11179
11180         * alloca.c: Replace REGISTER with register.
11181
11182 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11183
11184         * file-coding.c (ucs_to_char): Use countof.
11185
11186 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11187
11188         * file-coding.c: (ucs_to_char):
11189         (complex_vars_of_file_coding):
11190         Use countof instead of sizeof.
11191         Use CHECK_NATNUM instead of CHECK_INT.
11192
11193         * sysdep.c (strcasecmp): Remove.
11194         * device-x.c (ascii_strcasecmp): New.
11195         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11196         Avoid using non-standard non-portable strcasecmp.
11197
11198 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11199
11200         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11201         * font-lock.c: remove reference to emacsfns.h.
11202         * search.c: small doc improvement.
11203         * event-Xt.c: correct file names in comments.
11204         * console-x.h Correct file names in comments.
11205         * frame.c: Correct file names in comments.
11206         * event-stream.c: remove Energize from comments.
11207
11208 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11209
11210         * symeval.h (DEFERROR_STANDARD):
11211         (DEFERROR):
11212         (DEFSYMBOL):
11213         (DEFSYMBOL_NO_DUMP):
11214         (DEFSYMBOL_MULTIWORD_PREDICATE):
11215         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11216         (DEFKEYWORD):
11217         The construct &##name is not sensible C.
11218         Fixes compilation errors with Unixware native compiler.
11219
11220 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11221
11222         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11223         (next_frame_internal): Removed.  We now just have next_frame.
11224         (next_frame):
11225         Write a simpler and cleaner one-pass algorithm.
11226         Remove called_from_delete_device arg and #ifdefed-out code.
11227         (previous_frame):
11228         Renamed from prev_frame.  Update callers.
11229         Cleaned up to have an analogous implementation to next_frame.
11230         (other_visible_frames_internal): Remove the
11231         called_from_delete_device bogus arg, and hence, remove this
11232         function.  Just use other_visible_frames().
11233
11234         * window.c (Fnext_window):
11235         Prettify docstring.
11236         Since next_frame() is guaranteed to return a frame, remove check
11237         for nil inserted in previous patch.
11238         (Fprevious_window):
11239         Prettify docstring.
11240         Make code look more like Fnext_window.
11241         (window_loop):
11242         Respect the `console' arg when iterating through windows.
11243         Fixes bug: (get-buffer-window buffer t device) not respecting
11244         the `device' arg.
11245         This function needs more work, as others have pointed out.
11246
11247         * frame.h: Rename prev_frame to previous_frame.
11248         device_matches_console_spec no longer takes a `frame' arg.
11249
11250         * s/gnu.h:
11251         * s/linux.h:
11252         * s/hpux.h:
11253         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11254         From "Golubev I. N." <gin@mo.msk.ru>.
11255
11256         * make-src-depend: Fix typo.
11257
11258 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11259
11260         * window.c (Fnext_window):
11261         next_frame() might return nil, not a frame.
11262         Fixes this crash:
11263         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11264
11265         * frame.c (next_frame_internal):
11266         We've passed a frame if we've passed its device.
11267         Fixes this crash:
11268         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11269 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11270
11271 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11272
11273         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11274         Allow option to suppress accelerators in menu/dialog items.
11275         (populate_or_checksum_helper): Pass dialog title through above.
11276
11277 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11278
11279         * event-msw.c (mswindows_key_to_emacs_keysym):
11280         Add "pause" key, fix "menu" key.
11281
11282 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11283
11284         * eval.c (reinit_vars_of_eval):
11285         Increase max_lisp_eval_depth to 1000,
11286         required for thai-xtis.el to byte-compile under some circumstances.
11287
11288 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11289
11290         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11291         From Kenichi Handa.
11292
11293 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11294
11295         * make-src-depend: Make the generated Makefiles smaller.
11296
11297         * s/hpux.h (SETUP_SLAVE_PTY):
11298         Provide a %d in the format string for the errno argument.
11299
11300         * editfns.c (Ftemp_directory):
11301         Warning fix.
11302         Avoid buffer overrun on very long file name.
11303
11304         * input-method-xlib.c (XIM_init_device):
11305         6th parameter of XRegisterIMInstantiateCallback has different
11306         pointer types on different OSes, so simply cast to (void *).
11307
11308         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11309
11310         * sysdll.c (dll_open):
11311         shl_load will hang hard if passed a NULL filename.
11312         Simply return NULL for compatibility with dlopen.
11313         * sysdll.c: Conform to XEmacs coding standards.
11314
11315         * sysdep.c (get_pty_max_bytes):
11316         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11317
11318 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11319
11320         * tooltalk.c: Add #include <syssignal.h>
11321
11322 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11323
11324         * s/hpux.h: Don't use undefined function sigunblock().
11325
11326 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11327
11328         * config.h.in: Add HAVE_BALLOON_HELP.
11329         * emacs.c: Use HAVE_BALLOON_HELP.
11330         * Makefile.in.in (x_objs):
11331         Make Balloon Help conditional on finding shape.h.
11332
11333 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11334
11335         * syntax.c (regex_emacs_buffer_p): New variable.
11336         * syntax.h (regex_emacs_buffer_p): extern.
11337         * search.c (looking_at_1):
11338         (string_match_1):
11339         (fast_string_match):
11340         (search_buffer): Set regex_emacs_buffer_p.
11341         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11342         when before_dot, at_dot, after_dot.
11343
11344 2000-08-23  Andy Piper  <andy@xemacs.org>
11345
11346         * gui-x.c (popup_selection_callback): Only set action_occurred
11347         when we really have an image instance.
11348         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11349
11350 2000-08-23  Andy Piper  <andy@xemacs.org>
11351
11352         * gui-msw.c (mswindows_handle_gui_wm_command): set
11353         action_occurred.
11354         * gui-x.c (popup_selection_callback): ditto.
11355
11356         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11357         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11358         (struct Lisp_Image_Instance): add action_occurred flag.
11359
11360         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11361         (image_instance_changed): ditto.
11362         (reset_frame_subwindow_instance_cache): only unmap windows - do
11363         not remove them from the cache also.
11364
11365         * glyphs-widget.c (tab_control_update): better debug.
11366         (progress_gauge_update): ditto.
11367         (layout_update): ditto.
11368         (layout_instantiate): ditto.
11369         (tab_control_order_only_changed): cope with null pending items.
11370
11371         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11372         debug. Force selection of an item when an action occurred. Cope
11373         with null pending_items.
11374         (mswindows_progress_gauge_redisplay): better debug.
11375         * glyphs-x.c (x_tab_control_redisplay): ditto.
11376
11377         * redisplay.c (redisplay_frame): reset the frame cache if the
11378         frame is garbaged.
11379
11380         * window.c (Fset_window_configuration): potentially re-enable
11381         frame cache reset.
11382         (window_unmap_subwindows): need to finalize instances here since
11383         it is only used in mark_window_as_deleted.
11384
11385 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11386
11387         * nas.c (SndOpenDataForReading):
11388         nas.c (WaveOpenDataForReading):
11389         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11390         Somehow escaped from the 2000-08-14 patch.
11391
11392 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11393
11394         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11395         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11396
11397 2000-08-21  Andy Piper  <andy@xemacs.org>
11398
11399         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11400         window if it is not already displayed.
11401
11402         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11403         it is not already displayed.
11404
11405         * window.c (Fset_window_configuration): don't reset the frame
11406         cache.
11407
11408         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11409         instances from the frame cache if we are actually finalizing them.
11410         (reset_frame_subwindow_instance_cache): reset frame cache only
11411         after unmapping everything.
11412         (map_subwindow): set displayed flag after mapping.
11413
11414 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11415
11416         * data.c (indirect_function):
11417         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11418
11419         * eval.c (function_argcount):
11420         Use original function when signaling errors.
11421
11422 2000-08-18  Andy Piper  <andy@xemacs.org>
11423
11424         * frame.c (delete_frame_internal): use new
11425         free_frame_subwindow_instances name.
11426
11427         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11428         (add_tab_item): make return type correct.
11429         (mswindows_tab_control_instantiate): assert index of tab.
11430         (mswindows_tab_control_redisplay): Re-code to use
11431         gui_item_equal_sans_selected and gui_item_list_find_selected.
11432
11433         * glyphs-widget.c (tab_control_update): Correct comment.
11434
11435         * window.c (window_unmap_subwindows): use new
11436         unmap_subwindow_instance_cache_mapper.
11437         (window_unmap_subwindows_cache_mapper): deleted.
11438         (Fset_window_configuration): comparisons should now be with
11439         EQ. Preserve the subwindow instance cache across configuration
11440         changes.
11441         (allocate_window): ditto.
11442         (make_dummy_parent): ditto.
11443
11444         * glyphs.c (free_frame_subwindow_instances): rename from
11445         free_frame_subwindow_instance_cache. finalize all instances rather
11446         than just those in the display cache.
11447         (finalize_all_subwindow_instances): walk windows unmapping and
11448         finalizing subwindows.
11449         (unmap_subwindow_instance_cache_mapper): moved from
11450         window.c. Allow finalization as well as unmapping.
11451
11452         * gui.c (gui_item_list_find_selected): new function.
11453
11454         * gui.h (gui_item_list_find_selected): declare.
11455
11456         * glyphs-x.c (x_tab_control_redisplay): pick tab
11457         explicitly. Re-code to use gui_item_equal_sans_selected and
11458         gui_item_list_find_selected.
11459
11460         * glyphs-x.h: add lwlib-utils.h
11461
11462         * buffer.c (Frecord_buffer): undo previous change.
11463
11464 2000-08-09  Vin Shelton  <acs@xemacs.org>
11465
11466         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11467         possible.  Create temporary files more securely.  The patch was
11468         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11469         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11470         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11471         for details.
11472
11473 2000-08-07  Ben Wing  <ben@xemacs.org>
11474
11475         * getloadavg.c: remove duplicate (and windows-breaking)
11476         includes of fcntl.h and sys/file.h.
11477
11478         * nt.c: remove duplicate getloadavg() definition.
11479
11480         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11481         encodings.
11482
11483 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11484
11485         * eval.c (function_argcount): If function needs to be autoloaded
11486         actually use the loaded definition.
11487         GCPRO function.
11488
11489 2000-08-05  Ben Wing  <ben@xemacs.org>
11490
11491         * getloadavg.c: add prototype for getloadavg().  remove
11492         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11493         of the code).  remove duplicate header includes.
11494
11495         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11496
11497         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11498         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11499         useful load average.
11500
11501         * alloc.c (reinit_alloc_once_early): removed references to
11502         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11503         the lisp vars are the only things referencing the malloc_sbrk_*
11504         vars, and they were already if 0'd out.  these vars only exist
11505         in the older malloc.c, which is basically unused, and they're
11506         only for informational purposes.
11507
11508         * m\*.h: removed useless VIRT_ADDR_VARIES.
11509
11510         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11511
11512 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11513
11514         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11515         color if the image is a mono pixmap.
11516
11517 2000-07-30  Ben Wing  <ben@xemacs.org>
11518
11519         * Makefile.in.in (release):
11520         Remove stray @.
11521
11522         * buffer.c (directory_is_current_directory):
11523         * dired-msw.c (mswindows_get_files):
11524         * dired.c:
11525         * dired.c (Fdirectory_files):
11526         * dired.c (file_name_completion_stat):
11527         * dired.c (Ffile_attributes):
11528         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11529         preprocessor tricks, to avoid problems on some machines
11530         (e.g. SCO).
11531
11532         * callproc.c (egetenv): GC docs.
11533
11534         * console-msw.h:
11535         * console-msw.h (struct mswindows_dialog_id):
11536         * lrecord.h (lrecord_type):
11537         New object for use with MSW dialogs.
11538
11539         * console.h (struct console_methods):
11540         New enable/disable frame methods, for proper modal dialogs.
11541
11542         * device-msw.c (msprinter_default_printer): Fix to follow
11543         proper Mule conventions.
11544
11545         * device-msw.c:
11546         * device-msw.c (signal_open_printer_error):
11547         * device-msw.c (msprinter_init_device):
11548         * device-msw.c (ensure_not_printing):
11549         * device-msw.c (plist_get_margin):
11550         * device-msw.c (Fmsprinter_select_settings):
11551         * device-msw.c (finalize_devmode):
11552         * device-msw.c (Fmsprinter_settings_despecialize):
11553         * device-msw.c (signal_enum_priner_error):
11554         * extents.c (decode_extent):
11555         * extents.c (decode_map_extents_flags):
11556         * extents.c (decode_extent_at_flag):
11557         * extents.c (Fextent_at):
11558         * extents.c (Fextents_at):
11559         * extents.c (symbol_to_glyph_layout):
11560         [[[[2]]]] Use structured errors.
11561
11562         * dialog-msw.c:
11563         * dialog-msw.c (mswindows_is_dialog_msg):
11564         * dialog-msw.c (mark_mswindows_dialog_id):
11565         * dialog-msw.c (dialog_proc):
11566         * dialog-msw.c (handle_question_dialog_box):
11567         * dialog-msw.c (syms_of_dialog_mswindows):
11568         Define new object to clean up marking; use it as a dialog identifier.
11569         Call new delete-dialog-box-hook.
11570
11571         * dialog-x.c (dbox_selection_callback):
11572         * dialog-x.c (dbox_descriptor_to_widget_value):
11573         * dialog-x.c (x_make_dialog_box_internal):
11574         Call new delete-dialog-box-hook.
11575         Return an id.
11576
11577         * dialog.c:
11578         * dialog.c (syms_of_dialog):
11579         * dialog.c (vars_of_dialog):
11580         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11581
11582         * eval.c:
11583         * eval.c (signal_call_debugger):
11584         when noninteractive, output stack traces on the console instead
11585         of in a (never-seen) buffer.
11586
11587         * eval.c (signal_type_error):
11588         * eval.c (invalid_argument_2):
11589         * lisp.h:
11590         new funs for use w/structured errors.
11591
11592         * event-Xt.c:
11593         * event-Xt.c (x_to_emacs_keysym):
11594         * event-Xt.c (describe_event):
11595         * event-Xt.c (emacs_Xt_event_handler):
11596         * event-Xt.c (vars_of_event_Xt):
11597         * event-msw.c:
11598         * event-msw.c (mswindows_wnd_proc):
11599         * event-msw.c (vars_of_event_mswindows):
11600         rename {x,mswindows}-debug-events to debug-{}-events for
11601         consistency with other debug-foo variables.
11602
11603         * event-stream.c:
11604         document next-event more clearly.
11605
11606         * fileio.c (Ffile_name_directory):
11607         * fileio.c (Ffile_name_nondirectory):
11608         * fileio.c (Funhandled_file_name_directory):
11609         * fileio.c (file_name_as_directory):
11610         * fileio.c (Ffile_name_as_directory):
11611         * fileio.c (directory_file_name):
11612         * fileio.c (Fdirectory_file_name):
11613         * fileio.c (Fmake_temp_name):
11614         * fileio.c (Ffile_truename):
11615         * fileio.c (Fsubstitute_in_file_name):
11616         * fileio.c (expand_and_dir_to_file):
11617         * fileio.c (barf_or_query_if_file_exists):
11618         * fileio.c (check_executable):
11619         * fileio.c (Ffile_exists_p):
11620         * fileio.c (Ffile_writable_p):
11621         * fileio.c (Ffile_directory_p):
11622         * fileio.c (Ffile_regular_p):
11623         * fileio.c (Ffile_modes):
11624         * fileio.c (Ffile_newer_than_file_p):
11625         * fileio.c (Fverify_visited_file_modtime):
11626         * fileio.c (Fset_visited_file_modtime):
11627         * fileio.c (auto_save_1):
11628         (1). (2).
11629         fix up gcpro's.
11630
11631         * frame-msw.c:
11632         * frame-msw.c (mswindows_init_frame_1):
11633         * frame-msw.c (mswindows_enable_frame):
11634         * frame-msw.c (error_frame_unsizable):
11635         * frame-msw.c (msprinter_init_frame_1):
11636         * frame-msw.c (msprinter_init_frame_3):
11637         * frame-msw.c (console_type_create_frame_mswindows):
11638         (2).
11639         implement new enable/disable frame methods.
11640
11641         * frame-x.c:
11642         * frame-x.c (x_enable_frame):
11643         * frame-x.c (console_type_create_frame_x):
11644         implement new enable/disable frame methods.
11645
11646         * frame.c:
11647         * frame.c (Fdisable_frame):
11648         * frame.c (syms_of_frame):
11649         * frame.h (struct frame):
11650         implement new enable/disable frame methods/functions.
11651
11652         * general-slots.h:
11653         add initial-focus.
11654
11655         * glyphs-msw.c (mswindows_widget_instantiate):
11656         comment that initial-focus should be implemented.
11657
11658         * glyphs-widget.c:
11659         * glyphs-widget.c (check_valid_instantiator):
11660         * glyphs-widget.c (check_valid_orientation):
11661         * glyphs-widget.c (check_valid_tab_orientation):
11662         * glyphs-widget.c (check_valid_justification):
11663         * glyphs-widget.c (check_valid_border):
11664         * glyphs-widget.c (check_valid_callback):
11665         * glyphs-widget.c (check_valid_int_or_function):
11666         * glyphs-widget.c (check_valid_string_or_vector):
11667         * glyphs-widget.c (check_valid_item_list_1):
11668         * glyphs-widget.c (widget_validate):
11669         * glyphs-widget.c (combo_box_validate):
11670         * glyphs-widget.c (widget_instantiate):
11671         * glyphs-widget.c (syms_of_glyphs_widget):
11672         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11673         * glyphs-widget.c (image_instantiator_combo_box):
11674         * glyphs-widget.c (image_instantiator_scrollbar):
11675         * glyphs-widget.c (image_instantiator_tab_control):
11676         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11677         (2).
11678         support (unimplemented) keyword initial-focus.
11679         reindent long macros.
11680
11681         * glyphs-x.c (x_redisplay_widget):
11682         * glyphs-x.c (x_button_instantiate):
11683         * glyphs-x.c (x_button_redisplay):
11684         * glyphs-x.c (x_progress_gauge_instantiate):
11685         * glyphs-x.c (x_edit_field_instantiate):
11686         * glyphs-x.c (x_combo_box_instantiate):
11687         * glyphs-x.c (x_tab_control_instantiate):
11688         * glyphs-x.c (x_label_instantiate):
11689         * gui-x.c:
11690         * gui-x.c (button_item_to_widget_value):
11691         * gui-x.c (gui_items_to_widget_values_1):
11692         * gui-x.c (gui_item_children_to_widget_values):
11693         * gui-x.c (gui_items_to_widget_values):
11694         * gui-x.h:
11695         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11696         add new flag to gui-parsing routines to indicate whether
11697         accelerator specs should be supported.
11698
11699         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11700
11701         * glyphs.h (struct Lisp_Image_Instance):
11702         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11703         add initial-focus flag.
11704
11705         * gui.c:
11706         * gui.c (syms_of_gui):
11707         * gui.c (vars_of_gui):
11708         clean up menu-no-selection-hook.
11709
11710         * gui.h:
11711         support delete-dialog-box-hook.
11712
11713         * lread.c (Fload_internal):
11714         * lread.c (locate_file_in_directory_mapper):
11715         (1).
11716
11717         * lrecord.h:
11718         * lrecord.h (struct toolbar_button):
11719         * lrecord.h (syms_of_toolbar):
11720         document how to create a new object.
11721
11722         * menubar-msw.c (mswindows_char_is_accelerator):
11723         may be called on frames w/o menus.
11724
11725         * menubar.c (vars_of_menubar):
11726         clean up :filter docs.
11727
11728         * nt.c (readdir):
11729         * ntproc.c:
11730         (1).
11731
11732         * process-nt.c:
11733         * process-nt.c (validate_signal_number):
11734         * process-nt.c (signal_cannot_launch):
11735         * process-nt.c (nt_create_process):
11736         * process-nt.c (nt_send_process):
11737         * process-nt.c (nt_kill_child_process):
11738         * process-nt.c (nt_open_network_stream):
11739         * process-nt.c (syms_of_process_nt):
11740         (2).
11741         delete quote-handling.  call new lisp code that does it better.
11742
11743         * process-unix.c (connect_to_file_descriptor):
11744         * process-unix.c (allocate_pty):
11745         * process-unix.c (unix_send_process):
11746         * process-unix.c (unix_kill_child_process):
11747         * process-unix.c (unix_open_network_stream):
11748         * process-unix.c (unix_open_multicast_group):
11749         (1). (2).
11750
11751         * process.c:
11752         * process.c (Fstart_process_internal):
11753         (2).  need to canonicalize process path even if absolute.
11754
11755         * select-msw.c (symbol_to_ms_cf):
11756         * select-msw.c (ms_cf_to_symbol):
11757         * select-msw.c (cf_is_autofreed):
11758         * select-msw.c (mswindows_destroy_selection):
11759         * select.c:
11760         * select.c (syms_of_select):
11761         * select.h:
11762         support dibv5, fix bugs. (from Mike Alexander)
11763
11764         * select.c (Fget_selection_internal):
11765         * select.c (select_convert_out):
11766
11767         * sysdep.c:
11768         * sysdep.c (xemacs_stat):
11769         renamed.
11770
11771         * sysdep.c (mkdir):
11772         * sysdep.c (rmdir):
11773         but keep original stat() here because we provide encapsulation
11774         around these funs.
11775
11776         * sysfile.h:
11777         * sysfile.h (fstat):
11778         remove stat garbage.
11779
11780         * syswindows.h:
11781         fix X/MSW conflict.
11782         don't include tchar.h.  it's inappropriate because it makes
11783         compile-time distinctions when we want runtime distinctions.
11784         (we provide our own tchar replacements)
11785
11786         * toolbar.c:
11787         use default object printer for toolbar-button.
11788
11789         * unexcw.c:
11790         make sure we don't encapsulate.
11791
11792         * window.c (vars_of_window):
11793         emphasize that temp-buffer-show-hook is obsolete.
11794
11795 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11796
11797         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11798         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11799
11800         * events.c (Fevent_timestamp_lessp):
11801         Not 64-bit clean.  Use EMACS_INT, not int.
11802
11803 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11804
11805         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11806         unsigned int and changed the last enum to
11807         lrecord_type_last_built_in_type.
11808         (lrecord_implementations_table): changed prototype to know how
11809         long the array is supposed to be.
11810         (lrecord_type_count): new unsigned int to keep track of the
11811         current number of lisp lrecord types.
11812         (DEFINE_EXTERNAL_LRECORD):
11813         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11814         dynamic-modules to declare new lisp types. They are the same
11815         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11816         int for each new type, and increment lrecord_type_count by 1.
11817
11818         * alloc.c (lrecord_implementations_table): Changed to reference
11819         lrecord_type_last_built_in_type for the size of the array.
11820         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11821
11822 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11823
11824         * glyphs.h (check_valid_item_list): Renamed from
11825         check_valid_item_list_1.
11826
11827 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11828
11829         * select.c (Qselect_coerce): New.
11830         * select.c (Vselection_coercion_alist): New.
11831         * select.c (syms_of_select): Declare.
11832         * select.c (get-selection-internal): Use it.
11833         Use the new select-coerce functionality.
11834
11835         * select.c (select_coerce): New.
11836         * select.h (select_coerce): Declare.
11837         New function to coerce one type of data into another.
11838
11839 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11840
11841         * callproc.c (Fcall_process_internal):
11842         (Fcall_process_internal):
11843         * process-unix.c (unix_create_process):
11844         Save and restore the value of errno, so that error messages are accurate.
11845
11846 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11847
11848         * elhash.c (print_hash_table):
11849         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11850         Prettify docstrings and indentation.
11851
11852 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11853
11854         * window.c (Fwindow_pixel_edges): Subtract frame border and
11855         gutter size.
11856
11857 2000-07-31  Andy Piper  <andy@xemacs.org>
11858
11859         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11860         will acknowledge the change.
11861
11862         * glyphs.h: declare tab_control_order_only_changed.
11863
11864         * glyphs-x.c (x_tab_control_redisplay): use
11865         tab_control_order_only_changed.
11866
11867         * glyphs-widget.c (tab_control_order_only_changed): new function.
11868
11869         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11870         tab_control_order_only_changed.
11871
11872         * gui.c (gui_item_equal_sans_selected): new function.
11873         (gui_item_equal): use it.
11874
11875         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11876         :properties in favor of :items..
11877
11878         * glyphs-widget.c (check_valid_item_list): rename from
11879         check_valid_item_list_1.
11880         (check_valid_item_list_1): renamed.
11881         (combo_box_validate): deprecate :properties in favor of :items.
11882         (widget_instantiate): ditto.
11883         (tab_control_update): ditto.
11884         (image_instantiator_combo_box): ditto.
11885         (image_instantiator_tree_view): ditto.
11886         (image_instantiator_tab_control): ditto.
11887         (layout_post_instantiate): remove dead code.
11888
11889         * print.c (debug_print_no_newline): only write to debugger if in
11890         WIN32_NATIVE.
11891
11892         * elhash.c (Fmake_hash_table): update doc string.
11893
11894         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11895         messages whilst in GC. This at least stops XEmacs crashing but has
11896         the potential for wierd behaviour.
11897
11898 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11899
11900         * config.h.in:
11901         Make existence of s&m files optional.
11902
11903         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11904         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11905         * s/gnu.h: Remove HAVE_GETLOADAVG.
11906         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11907         * s/sol2.h: Remove HAVE_GETLOADAVG.
11908         * lisp.h: Remove getloadavg() declaration.
11909         * fns.c:
11910         Include <sys/loadavg.h> if available.
11911         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11912         * config.h.in:  Group together getloadavg()-related macros.
11913         Use only configure-time tests to detect getloadavg().
11914
11915 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11916
11917         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11918
11919 2000-07-25  Andy Piper  <andy@xemacs.org>
11920
11921         * syswindows.h: add tchar.h for native builds.
11922
11923         * frame.c (syms_of_frame): remove set-glyph-image.
11924
11925         * general-slots.h: add Qset_glyph_image.
11926
11927         * glyphs-widget.c (layout_update): add domain arg to
11928         set-glyph-image.
11929         (syms_of_glyphs_widget): remove set-glyph-image.
11930
11931 2000-07-23  Ben Wing  <ben@xemacs.org>
11932
11933         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11934         Vpopup_frame_list.
11935
11936 2000-07-22  Andy Piper  <andy@xemacs.org>
11937
11938         * symsinit.h: add syms_of_win32().
11939
11940         * gui-msw.c (syms_of_gui_mswindows): remove
11941         Fmswindows_shell_execute.
11942         (Fmswindows_shell_execute): moved to win32.c.
11943
11944         * emacs.c (main_1): add syms_of_win32 ().
11945
11946         * win32.c (init_potentially_nonexistent_functions): rewrite in
11947         compiler-friendly terms.
11948         (Fmswindows_shell_execute): move here from gui-msw.c.
11949         (syms_of_win32): new.
11950
11951         * device-msw.c (Fmswindows_printer_list): clean up args to
11952         EnumPrinters.
11953         Don't include tchar under cygwin or mingw.
11954         (msprinter_default_printer): make cygwin-friendly.
11955
11956 2000-07-21  Andy Piper  <andy@xemacs.org>
11957
11958         * glyphs-widget.c (image_instantiator_tree_view): use tab
11959         control's update function.
11960         (layout_property): new function. Retrieve items.
11961
11962         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11963         function. Re-populate the tree view from the pending items.
11964
11965         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11966         is designated the parent if the domain is an image instance. This
11967         is needed so that dirtiness can be cascade up the hierarchy and
11968         thus for layout children to be redisplayed correctly.
11969         (allocate_image_instance): rename glyph -> parent.
11970
11971         * redisplay.h: change redisplay_output_layout signature.
11972
11973         * redisplay-msw.c (mswindows_output_display_block): use domain
11974         arg.
11975
11976         * redisplay-x.c (x_output_display_block): use domain arg.
11977
11978 2000-07-10  Andy Piper  <andy@xemacs.org>
11979
11980         * window.c (Fset_window_configuration): add comment.
11981
11982         * redisplay-output.c (compare_runes):
11983         (redisplay_output_subwindow): redisplay rather than update subwindow.
11984         (redisplay_output_layout): ditto.
11985
11986         * redisplay-msw.c (mswindows_frame_output_end):
11987         (mswindows_frame_output_end): make defer window pos optional.
11988
11989         * lisp.h: add Flast.
11990
11991         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11992         normalize method. Change update method to be for changed
11993         instantiators. Add redisplay method. Change signature of layout
11994         method.
11995         (struct Lisp_Image_Instance): add instantiator.
11996         (IMAGE_INSTANCE_INSTANTIATOR): new.
11997         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11998         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11999         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
12000
12001         * glyphs.c:
12002         (find_instantiator_differences): new function.
12003         (Fset_instantiator_property): new convenience function.
12004         (check_image_instance_structure): strictly check for vector
12005         instantiators.
12006         (normalize_image_instantiator): make non-static.
12007         (instantiate_image_instantiator): pass on dest_mask and use new
12008         signatures for image_instance_layout and friends.
12009         (mark_image_instance): mark the instantiator. Mark the subwindow
12010         face not the widget face.
12011         (image_instance_equal): add instantiator.
12012         (image_instance_hash): ditto.
12013         (allocate_image_instance): ditto.
12014         (Fset_image_instance_property): removed.
12015         (Fimage_instance_file_name): ditto.
12016         (Fcolorize_image_instance): ditto.
12017         (image_instance_layout): add offsets to be set.
12018         (update_image_instance): new function. update an image instance
12019         from its changed instantiator.
12020         (inherit_normalize): add dest_mask.
12021         (xbm_normalize): ditto.
12022         (xface_normalize): ditto.
12023         (xpm_normalize): ditto.
12024         (text_update): set_property -> update.
12025         (image_instantiate): use the glyph identity as a hash key, not the
12026         instantiator.
12027         (glyph_width): use new image_instance_layout signature.
12028         (glyph_ascent): ditto.
12029         (glyph_descent): ditto.
12030         (glyph_height): ditto.
12031         (glyph_query_geometry): ressurrect.
12032         (glyph_layout): ditto.
12033         (redisplay_subwindow): update -> redisplay.
12034         (syms_of_glyphs): add Fset_instantiator_property.
12035         (image_instantiator_format_create): set_property -> update.
12036
12037         * glyphs-x.c:
12038         (autodetect_normalize): add dest_maks to signature.
12039         (x_redisplay_subwindow): update -> redisplay.
12040         (x_redisplay_widget): ditto.
12041         (x_button_redisplay): ditto.
12042         (x_progress_gauge_redisplay): ditto.
12043         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
12044         stacking order.
12045         (console_type_create_glyphs_x): update -> redisplay.
12046         (image_instantiator_format_create_glyphs_x): ditto.
12047
12048         * glyphs-widget.c:
12049         (check_valid_instantiator): disallow glyphs in the instantiator,
12050         they must now be vectors.
12051         (check_valid_instantiator_list): ditto.
12052         (glyph_instantiator_to_glyph): use internal symbol rather than
12053         intern.
12054         (widget_update): renamed from widget_set_property. Call cascaded
12055         update methods.
12056         (redisplay_widget): renamed from update_widget.
12057         (widget_layout): image_instance_layout now takes position as well
12058         as size.
12059         (widget_normalize): ditto.
12060         (widget_instantiate): ditto.
12061         (tab_control_query_geometry) ditto.:
12062         (tab_control_update): renamed from tab_control_set_property.
12063         (progress_gauge_update): set_property -> update.
12064         (layout_normalize): rewrite so that child instantiators are
12065         normalized also.
12066         (layout_update): new function. Create glyphs from the normalized
12067         children and cope with any other layout keywords. We do not
12068         instantiate children here that will be take care of by
12069         redisplay_output_layout.
12070         (layout_instantiate): call layout_update and not much else.
12071         (layout_post_instantiate): not sure whether this is needed
12072         anymore.
12073         (layout_query_geometry): query glyph geometry rather than
12074         image_instance geometry.
12075         (layout_layout): set offsets from pass in parameters. Use glyph
12076         geometry and layout functions rather than image instance ones.
12077         (native_layout_layout): ditto.
12078         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
12079         (image_instantiator_widget): set_property -> update.
12080         (image_instantiator_buttons): ditto.
12081         (image_instantiator_progress_guage): ditto.
12082         (image_instantiator_tab_control): ditto.
12083         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
12084         (image_instantiator_layout): add update method.
12085
12086         * glyphs-msw.c (bmp_normalize):
12087         (mswindows_resource_normalize): add dest_mask so that it can be
12088         proprogated by layout_normalize.
12089         (begin_defer_window_pos): make optional because it may not be the
12090         right thing to do and it introduces differences with X.
12091         (mswindows_unmap_subwindow): ditto.
12092         (mswindows_map_subwindow): ditto.
12093         (mswindows_redisplay_subwindow): renamed from
12094         mswindows_update_subwindow.
12095         (mswindows_redisplay_widget): ditto.
12096         (mswindows_button_redisplay): renamed from
12097         mswindows_button_update. Update is now what the instantiation
12098         function does for a changed instantiator.
12099         (mswindows_progress_gauge_instantiate): set the progress value
12100         here if appropriate.
12101         (mswindows_tab_control_redisplay): cope with re-ordering of the
12102         members of the tab widget by simply selecting the new top
12103         widget. This makes things appear ok if you click on a tab.
12104         (mswindows_combo_box_instantiate): image_instance_layout now takes
12105         position as well as size.
12106         (mswindows_progress_gauge_redisplay): renamed from
12107         mswindows_progress_gauge_update.
12108         (console_type_create_glyphs_mswindows): fix update -> redisplay.
12109         (image_instantiator_format_create_glyphs_mswindows): ditto.
12110
12111         * glyphs-eimage.c (jpeg_normalize):
12112         (gif_normalize):
12113         (png_normalize):
12114         (tiff_normalize): add dest_mask so that it can be proprogated by
12115         layout_normalize.
12116
12117         * elhash.c:
12118         (print_hash_table):
12119         (hash_table_weakness_validate):
12120         (decode_hash_table_weakness):
12121         (Fhash_table_weakness):
12122         (Fhash_table_type):
12123         (syms_of_elhash): use Ben's naming scheme for hashtable types..
12124
12125         * console.h (struct console_methods): move update_* to
12126         redisplay_*.
12127
12128 2000-07-20  Ben Wing  <ben@xemacs.org>
12129
12130         * *.[ch] (XSETOBJ): remove unused middle argument.
12131         lisp-disunion.h: correct wrap_object() to one argument.
12132
12133 2000-07-15  Ben Wing  <ben@xemacs.org>
12134
12135         * s/cygwin32.h:
12136         * s/cygwin32.h (CYGWIN_CONV_PATH):
12137         Add missing logb prototype for v1.1.
12138         Use post-b20 names and alias to pre-b20 names when pre-b20.
12139
12140         * s/windowsnt.h: [5].
12141
12142 2000-07-15  Ben Wing  <ben@xemacs.org>
12143
12144         * Makefile.in.in (x_objs):
12145         * Makefile.in.in (sheap_objs):
12146         * Makefile.in.in (objs):
12147         added win32.o, cosmetic cleanups.
12148
12149         * alloc.c (Fmake_byte_code):
12150         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12151         etc. macros which declare their own args now.
12152
12153         * alloc.c (syms_of_alloc):
12154         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12155
12156         * buffer.c:
12157         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12158
12159         * buffer.c (Fget_file_buffer):
12160         Fixed GCPRO problem.
12161
12162         * buffer.c (get_truename_buffer):
12163         Fixed comment about GC checking.
12164
12165         * buffer.c (syms_of_buffer):
12166         Undeclared those dedicated frame funs.
12167         [2].
12168
12169         * buffer.h:
12170         Define convenience macros for internal/external conversions.
12171         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12172         and Qenvironment_variable_encoding for cleaner code.
12173
12174         * bufslots.h:
12175         Remove dedicated-frame; in lisp.
12176
12177         * bytecode.c (funcall_compiled_function):
12178         [1].
12179
12180         * bytecode.c (syms_of_bytecode):
12181         [2].
12182
12183         * console-msw.c:
12184         * console-msw.c (mswindows_show_console): Rewrote.
12185
12186         * console-msw.c (Fmswindows_debugging_output): New.
12187         Sends to OutputDebugString (special MSWin debugger interface).
12188
12189         * console-msw.c (Fmswindows_message_box):
12190         Fixed stupid bugs so it works when called from kill-emacs.
12191
12192         * console-msw.c (syms_of_console_mswindows):
12193         Declare Fmswindows_debugging_output.
12194
12195         * console-msw.h:
12196         New MSWin prototypes.
12197
12198         * console-msw.h (struct mswindows_frame):
12199         New entry last-click-mods for improved button-modifier support.
12200
12201         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12202         New struct entry `popup' with corresponding accessor.
12203
12204         * console-x.c:
12205         * console-x.c (split_up_display_spec):
12206         * console-x.c (get_display_arg_connection):
12207         * console-x.c (x_semi_canonicalize_console_connection):
12208         * console-x.c (x_canonicalize_device_connection):
12209         [[[6]]]: Change char to more specific type.
12210         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12211
12212         * console-x.c (x_semi_canonicalize_console_connection):
12213         * console-x.c (x_canonicalize_device_connection):
12214         [[[9]]]: Fix up error signalling to use new structured error system.
12215
12216         * console-x.h:
12217         [[[4]]]: Define codesys aliases:
12218         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12219         Qx_color_name_encoding, Qx_display_name_encoding.
12220
12221         * console.h (struct console_methods):
12222         New method make_dialog_box_internal supersedes older
12223         popup_dialog_box method.
12224
12225         * data.c:
12226         Define many new errors, part of new structured errors.
12227
12228         * data.c (init_errors_once_early):
12229         * data.c (syms_of_data):
12230         [2].
12231
12232         * device-msw.c (mswindows_init_device):
12233         [[[5]]]: Cleanup to support NT 3.51.
12234
12235         * device-msw.c (decode_devmode): Cleanup.
12236
12237         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12238         * device-msw.c (mswindows_handle_print_dialog_box):
12239         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12240         * device-msw.c (syms_of_device_mswindows):
12241         Delete the dialog box primitives recently introduced by Kirill and
12242         instead interface to general dialog box interface.
12243
12244         * device-x.c:
12245         * device-x.c (compute_x_app_name):
12246         * device-x.c (x_init_device):
12247         * device-x.c (Fx_valid_keysym_name_p):
12248         * device-x.c (Fx_set_font_path):
12249         [6].
12250         [7].
12251
12252         * device.h (wrap_device): New.
12253         First of its kind; meant to replace XSETDEVICE.
12254
12255         * dialog-msw.c: Many file-dialog symbols.
12256
12257         * dialog-msw.c (mswindows_register_popup_frame): New.
12258         * dialog-msw.c (mswindows_is_dialog_msg): New.
12259         For supporting kbd traversal in dialog boxes.
12260
12261         * dialog-msw.c (dialog_proc):
12262         Support hitting ESC in dialogs.
12263
12264         * dialog-msw.c (struct):
12265         Common dialog box errors.
12266
12267         * dialog-msw.c (handle_file_dialog_box): New.
12268         Add file dialog code.
12269
12270         * dialog-msw.c (handle_question_dialog_box):
12271         Redo existing code to support new question dialog syntax.
12272
12273         * dialog-msw.c (console_type_create_dialog_mswindows):
12274         We support new dialog console method.
12275
12276         * dialog-msw.c (syms_of_dialog_mswindows):
12277         * dialog-msw.c (vars_of_dialog_mswindows):
12278         New file dialog symbols, vars.
12279
12280         * dialog-x.c:
12281         * dialog-x.c (maybe_run_dbox_text_callback):
12282         * dialog-x.c (dbox_descriptor_to_widget_value):
12283         * dialog-x.c (x_make_dialog_box_internal):
12284         * dialog-x.c (console_type_create_dialog_x):
12285         Mule-ize entire file.
12286         Redo to support question dialog syntax.
12287         [6].
12288
12289         * dialog.c:
12290         * dialog.c (Fmake_dialog_box_internal):
12291         * dialog.c (syms_of_dialog):
12292         Kill old popup-dialog-box, replace with new primitive.
12293         Just call device method or signal error.
12294
12295         * eldap.c (Fldap_open):
12296         * eldap.c (Fldap_search_basic):
12297         * eldap.c (Fldap_add):
12298         * eldap.c (Fldap_modify):
12299         [1].
12300         [7].
12301
12302         * emacs.c:
12303         * emacs.c (make_arg_list_1):
12304         * emacs.c (make_arg_list):
12305         Mule-ize call to dll_init().
12306         [6].
12307         [8].
12308
12309         * emacs.c (make_argc_argv):
12310         * emacs.c (free_argc_argv):
12311         * emacs.c (init_cmdargs):
12312         * emacs.c (main_1):
12313         * emacs.c (Fkill_emacs):
12314         * emacs.c (Fdump_emacs):
12315         Update comments about what can be used in syms_* etc.
12316         Call init_win32() when necessary.
12317         Fix up MS Win dialog box in kill-buffer to actually work right.
12318         [7].
12319
12320         * eval.c:
12321         * eval.c (For):
12322         * eval.c (Fand):
12323         * eval.c (Fprogn):
12324         * eval.c (Fprog1):
12325         * eval.c (Fprog2):
12326         * eval.c (FletX):
12327         * eval.c (Flet):
12328         * eval.c (condition_case_3):
12329         * eval.c (Feval):
12330         * eval.c (function_argcount):
12331         * eval.c (funcall_lambda):
12332         [1].
12333
12334         * eval.c (type_error): New.
12335         * eval.c (maybe_type_error): New.
12336         * eval.c (continuable_type_error): New.
12337         * eval.c (maybe_continuable_type_error): New.
12338         * eval.c (type_error_with_frob): New.
12339         * eval.c (maybe_type_error_with_frob): New.
12340         * eval.c (continuable_type_error_with_frob): New.
12341         * eval.c (maybe_continuable_type_error_with_frob): New.
12342         New functions for use with structured errors.
12343
12344         * event-Xt.c:
12345         * event-Xt.c (x_event_to_emacs_event):
12346         Buttons are now modifiers too.
12347
12348         * event-Xt.c (emacs_Xt_current_event_timestamp):
12349         Implement new event method.
12350         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12351
12352         * event-msw.c:
12353         * event-msw.c (ntpipe_shove_writer): [5].
12354         * event-msw.c (mswindows_enqueue_mouse_button_event):
12355         * event-msw.c (mswindows_drain_windows_queue):
12356         * event-msw.c (mswindows_wnd_proc): [7].
12357         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12358         * event-msw.c (mswindows_modifier_state):
12359         Throughout: support new button modifiers.
12360
12361         * event-msw.c (emacs_mswindows_current_event_timestamp):
12362         Implement new event method.
12363         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12364
12365         * event-stream.c:
12366         * event-stream.c (event_stream_current_event_timestamp): New.
12367         * event-stream.c (maybe_kbd_translate): New functionality.
12368         * event-stream.c (vars_of_event_stream):
12369         Document new kbd-translate-table functionality.
12370
12371         * event-stream.c (Fcurrent_event_timestamp): New.
12372         New primitive for use in fabricated events.
12373         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12374
12375         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12376
12377         * events.c:
12378         * events.c (Fmake_event):
12379         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12380         [1].
12381         [9].
12382
12383         * events.c (format_event_object): fix gcc warnings.
12384
12385         * events.c (Fevent_timestamp): Document new primitives.
12386
12387         * events.c (TIMESTAMP_HALFSPACE): New.
12388
12389         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12390         comparing timestamps correctly (half-space algorithm).
12391
12392         * events.c (Fevent_modifier_bits): Doc fix.
12393
12394         * events.c (Fevent_modifiers): Major doc addition.
12395         * events.c (event_x_y_pixel_internal): Typo fix.
12396         * events.c (syms_of_events): Declare new primitives.
12397
12398         * events.h:
12399         Update long comment for button modifiers, timestamps.
12400
12401         * events.h (struct event_stream):
12402         New current_event_timestamp method.
12403
12404         * extents.c:
12405         * extents.c (extent_in_region_p):
12406         * extents.c (decode_extent):
12407         * extents.c (Fset_extent_parent):
12408         * extents.c (decode_map_extents_flags):
12409         Fix gcc warnings.
12410         [9].
12411
12412         * extents.c (struct extent_at_arg):
12413         * extents.c (decode_extent_at_flag):
12414         * extents.c (extent_at_mapper):
12415         * extents.c (extent_at_bytind):
12416         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12417         * extents.c (Fextents_at): New primitive. [9].
12418         * extents.c (symbol_to_glyph_layout): [9].
12419         Support new primitive `extents-at'.
12420
12421
12422         * extents.c (get_text_property_bytind):
12423         extent_at_bytind has another arg.
12424         [9].
12425
12426         * extents.c (syms_of_extents): New primitive.
12427
12428         * file-coding.c (Fmake_coding_system): [1].
12429         * file-coding.c (subsidiary_coding_system): fix gcc warning
12430         * file-coding.c (syms_of_file_coding): [2].
12431
12432         * fileio.c (Fexpand_file_name):
12433         * fileio.c (Fsysnetunam):
12434         * fileio.c (Ffile_exists_p):
12435         * fileio.c (Ffile_executable_p):
12436         * fileio.c (Fverify_visited_file_modtime):
12437         Clean up GCPROing.
12438
12439         * fileio.c (syms_of_fileio): [2].
12440
12441         * filelock.c (lock_file_1):
12442         * filelock.c (current_lock_owner):
12443         * filelock.c (lock_if_free):
12444         * filelock.c (lock_file):
12445         * filelock.c (unlock_file):
12446         Clean up GCPROing.
12447
12448         * fns.c (concat): Fix gcc warning.
12449
12450         * fns.c (Fmember):
12451         * fns.c (Fold_member):
12452         * fns.c (Fmemq):
12453         * fns.c (Fold_memq):
12454         * fns.c (memq_no_quit):
12455         * fns.c (Fassoc):
12456         * fns.c (Fold_assoc):
12457         * fns.c (Fassq):
12458         * fns.c (Fold_assq):
12459         * fns.c (assq_no_quit):
12460         * fns.c (Frassoc):
12461         * fns.c (Fold_rassoc):
12462         * fns.c (Frassq):
12463         * fns.c (Fold_rassq):
12464         * fns.c (rassq_no_quit):
12465         * fns.c (Fdelete):
12466         * fns.c (Fold_delete):
12467         * fns.c (Fdelq):
12468         * fns.c (Fold_delq):
12469         * fns.c (delq_no_quit):
12470         * fns.c (Fremassoc):
12471         * fns.c (Fremassq):
12472         * fns.c (remassq_no_quit):
12473         * fns.c (Fremrassoc):
12474         * fns.c (Fremrassq):
12475         * fns.c (remrassq_no_quit):
12476         * fns.c (Freverse):
12477         * fns.c (mapcar1):
12478         [1].
12479
12480         * frame-msw.c (mswindows_init_frame_1):
12481         * frame-msw.c (mswindows_delete_frame):
12482         Register popups with dialog code so keyboard traversing works.
12483
12484         * frame-tty.c (tty_raise_frame_no_select): [1].
12485
12486         * frame-x.c:
12487         * frame-x.c (x_set_frame_text_value):
12488         * frame-x.c (x_set_frame_properties):
12489         * frame-x.c (x_create_widgets):
12490         [7].
12491
12492         * frame.c:
12493         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12494
12495         * frame.h (wrap_frame): New.
12496         Macro like wrap_device.
12497
12498         * general.c:
12499         * general.c (SYMBOL):
12500         * general.c (syms_of_general):
12501         Major reorg.  This is now just a wrapper and symbols themselves
12502         are listed in general-slots.h.
12503
12504         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12505         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12506
12507         * glyphs-msw.c (mswindows_native_layout_instantiate):
12508         Add DS_CONTROL so keyboard traversal will work.
12509
12510         * glyphs-widget.c:
12511         * glyphs-widget.c (syms_of_glyphs_widget):
12512         Move some symbols to general-slots.h.
12513
12514         * glyphs-x.c:
12515         * glyphs-x.c (xbm_instantiate_1):
12516         * glyphs-x.c (x_xbm_instantiate):
12517         * glyphs-x.c (x_xface_instantiate):
12518         * glyphs-x.c (autodetect_instantiate):
12519         * glyphs-x.c (cursor_font_instantiate):
12520         * glyphs-x.c (x_update_widget):
12521         * glyphs-x.c (x_widget_instantiate):
12522         * glyphs.c (bitmap_to_lisp_data):
12523         * glyphs.c (pixmap_to_lisp_data):
12524         [7].
12525
12526         * glyphs.c (syms_of_glyphs):
12527         [2].
12528
12529         * gui-x.c:
12530         * gui-x.c (print_widget_value):
12531         * gui-x.c (menu_separator_style_and_to_external):
12532         * gui-x.c (add_accel_and_to_external):
12533         * gui-x.c (button_item_to_widget_value):
12534         * gui-x.c (gui_items_to_widget_values_1):
12535         * gui-x.c (gui_items_to_widget_values):
12536         * gui-x.c (syms_of_gui_x):
12537         * gui-x.c (vars_of_gui_x):
12538         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12539         [9].
12540
12541         * gui-x.h:
12542         Muleize, prototype changes matching gui-x.c.
12543
12544         * gui.c:
12545         * gui.c (separator_string_p):
12546         * gui.c (gui_item_add_keyval_pair):
12547         * gui.c (make_gui_item_from_keywords_internal):
12548         * gui.c (signal_too_long_error):
12549         * gui.c (parse_gui_item_tree_item):
12550         * gui.c (syms_of_gui):
12551         * gui.c (vars_of_gui):
12552         * gui.h:
12553         menu-no-selection-hook moved here (used by MSWin).
12554         Move some symbols to general-slots.h.
12555         [6].
12556         [9].
12557
12558         * insdel.c (get_buffer_pos_char):
12559         * insdel.c (get_buffer_range_char):
12560         Add GC comments.
12561
12562         * keymap.c (keymap_lookup_directly):
12563         * keymap.c (keymap_store):
12564         * keymap.c (ensure_meta_prefix_char_keymapp):
12565         * keymap.c (describe_map):
12566         * keymap.h:
12567         Support new button modifiers.
12568
12569         * lisp-disunion.h (wrap_object):
12570         * lisp-disunion.h (XSETOBJ):
12571         Rename make_obj to wrap_object.
12572
12573         * lisp-union.h:
12574         * lisp-union.h (make_int):
12575         * lisp-union.h (make_char):
12576         Support wrap_object.
12577
12578         * lisp.h:
12579         * lisp.h (LIST_LOOP):
12580         * lisp.h (EXTERNAL_LIST_LOOP):
12581         * lisp.h (LIST_LOOP_2):
12582         * lisp.h (EXTERNAL_LIST_LOOP_1):
12583         * lisp.h (EXTERNAL_LIST_LOOP_2):
12584         * lisp.h (EXTERNAL_LIST_LOOP_3):
12585         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12586         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12587         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12588         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12589         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12590         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12591         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12592         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12593         * lisp.h (struct Lisp_Symbol):
12594         * lisp.h (maybe_continuable_error_with_frob):
12595         Fix up section comments.
12596         Add new types for char to indicate usage.
12597         Delete symbols auto-generated from general-slots.h.
12598         Add prototypes for structured error functions.
12599         Add long comments describing looping macros and change interface
12600         so that lvalues are automatically declared.
12601         Add NO_DECLARE macro in case callers want to declare lvalues
12602         themselves.
12603
12604         * lread.c (read_syntax_error):
12605         * lread.c (continuable_read_syntax_error):
12606         * lread.c (read_structure):
12607         * lread.c (sequence_reader):
12608         * lread.c (read_list_conser):
12609         * lread.c (read_compiled_function):
12610         Rename syntax_error and continuable_syntax_error to avoid clash
12611         with same-named structured error functions.
12612
12613         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12614         * menubar-msw.c (populate_menu_add_item):
12615         * menubar-msw.c (populate_or_checksum_helper):
12616         [5].
12617         [9].
12618
12619         * menubar-x.c:
12620         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12621         Mule-ize whole file.
12622
12623         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12624
12625         * mule-charset.c (Fmake_charset):
12626         * mule-wnnfns.c (Fwnn_set_param):
12627         [1].
12628
12629         * ntproc.c (create_child):
12630         * ntproc.c (Fwin32_set_current_locale):
12631         Add comments portending doom.
12632
12633         * objects-msw.c:
12634         * objects-msw.c (old_font_enum_callback_2):
12635         * objects-msw.c (font_enum_callback_1):
12636         * objects-msw.c (mswindows_enumerate_fonts):
12637         [5].
12638
12639         * objects-x.c:
12640         * objects-x.c (allocate_nearest_color):
12641         * objects-x.c (x_parse_nearest_color):
12642         * objects-x.c (x_initialize_color_instance):
12643         * objects-x.c (x_print_color_instance):
12644         * objects-x.c (x_finalize_color_instance):
12645         * objects-x.c (x_valid_color_name_p):
12646         * objects-x.c (x_initialize_font_instance):
12647         * objects-x.c (x_print_font_instance):
12648         * objects-x.c (valid_x_font_name_p):
12649         * objects-x.c (truename_via_FONT_prop):
12650         * objects-x.c (truename_via_random_props):
12651         * objects-x.c (truename_via_XListFonts):
12652         * objects-x.c (x_font_truename):
12653         * objects-x.c (x_font_instance_truename):
12654         * objects-x.c (x_font_instance_properties):
12655         * objects-x.c (x_list_fonts):
12656         * objects-x.c (x_find_charset_font):
12657         Mule-ize entire file.
12658         [7].
12659
12660         * objects-x.h:
12661         Mule-verify.
12662
12663         * print.c:
12664         * print.c (std_handle_out_external):
12665         * print.c (debug_print_no_newline):
12666         * print.c (syms_of_print):
12667         Output to all debugger kinds in debug-print.
12668         Fix console-output code under MSWin to actually work.
12669
12670         * process-nt.c (send_signal):
12671         * process-nt.c (nt_create_process):
12672         Use newer Unicode macros.
12673
12674         * process-unix.c (unix_create_process):
12675         * process-unix.c (unix_canonicalize_host_name):
12676         * process-unix.c (unix_open_network_stream):
12677         [7].
12678
12679         * scrollbar-x.c:
12680         Mule-verify.
12681
12682         * search.c (syms_of_search):
12683         [2].
12684
12685         * select-msw.c (mswindows_destroy_selection):
12686         Use LIST_LOOP_2.
12687
12688         * select-x.c (symbol_to_x_atom):
12689         [7].
12690
12691         * select.c (syms_of_select):
12692         [2].
12693
12694         * sound.c (Fplay_sound_file):
12695         [7].
12696
12697         * specifier.c:
12698         * specifier.c (decode_specifier_type):
12699         * specifier.c (Fvalid_specifier_locale_type_p):
12700         * specifier.c (check_valid_locale_or_locale_type):
12701         * specifier.c (decode_locale):
12702         * specifier.c (decode_locale_type):
12703         * specifier.c (decode_locale_list):
12704         * specifier.c (check_valid_domain):
12705         * specifier.c (decode_specifier_tag_set):
12706         * specifier.c (Fcanonicalize_tag_set):
12707         * specifier.c (Fdefine_specifier_tag):
12708         * specifier.c (Fspecifier_tag_predicate):
12709         * specifier.c (check_valid_inst_list):
12710         * specifier.c (check_valid_spec_list):
12711         * specifier.c (decode_how_to_add_specification):
12712         * specifier.c (check_modifiable_specifier):
12713         * specifier.c (specifier_add_spec):
12714         * specifier.c (boolean_validate):
12715         * specifier.c (display_table_validate):
12716         [9].
12717
12718         * specifier.c (syms_of_specifier):
12719         Move some symbols to general-slots.h.
12720         [2].
12721
12722         * symbols.c:
12723         * symbols.c (Fmapatoms):
12724         * symbols.c (Fapropos_internal):
12725         Add GCPROs.
12726
12727         * symbols.c (set_default_buffer_slot_variable):
12728         * symbols.c (set_default_console_slot_variable):
12729         [1].
12730
12731         * symbols.c (defsymbol_massage_name_1):
12732         * symbols.c (defkeyword_massage_name):
12733         * symbols.c (deferror_1):
12734         * symbols.c (deferror):
12735         * symbols.c (deferror_massage_name_and_message):
12736         * symeval.h:
12737         * symeval.h (DEFSYMBOL):
12738         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12739
12740         * symbols.c (syms_of_symbols):
12741         [2].
12742
12743         * symsinit.h:
12744         * symsinit.h (init_win32): New.
12745         Also new is syms_of_dialog_mswindows.
12746
12747         * syswindows.h:
12748         Add new Unicode macros, missing Cygwin wide-char functions,
12749         convenience conversion macros for Qmswindows_tstr, macros for
12750         encapsulating required MSWin <-> Cygwin filename conversions,
12751         prototype for dynamically-extracted (not in NT 3.51) functions.
12752
12753         * toolbar-x.c:
12754         Mule-verify.
12755
12756         * tooltalk.c (Fadd_tooltalk_message_arg):
12757         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12758         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12759         [7].
12760
12761         * tooltalk.c (syms_of_tooltalk):
12762         [2].
12763
12764         * unexnt.c:
12765         * unexnt.c (unexec):
12766         Fix up headers, declaration of unexec() to be more standard.
12767
12768 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12769
12770         * offix.h: Revert change to guard macros - they're used in offix.c!
12771
12772 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12773
12774         * lisp.h: Defsubred Fdelete.
12775
12776         * console-msw.h:  (msprinter_default_printer): Added.
12777
12778         * console-msw.c (msprinter_canonicalize_console_connection):
12779         (msprinter_canonicalize_device_connection): Added.
12780
12781         * device-msw.c (msprinter_default_printer):
12782         (Fmswingows_get_default_printer):
12783         (signal_enum_priner_error):
12784         (Fmswingows_printer_list): Added.
12785
12786 2000-07-19  Martin Buchholz <martin@xemacs.org>
12787
12788         * XEmacs 21.2.35 is released.
12789
12790 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12791
12792         * select-x.c (x_handle_selection_request):
12793         Text selected in xemacs and pasted into xterm failed to appear.
12794         Spelling fixes and cosmetic changes.
12795
12796 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12797
12798         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12799         XEmacs frame (fix for doubling chars in dialog boxes).
12800
12801 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12802
12803         * select.c (select_convert_in, select_convert_out):
12804         Don't call intern() every time.
12805
12806         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12807         * select.c (vars_of_select): Initialise them.
12808
12809 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12810
12811         * select.c (selection-coercible-types): New.
12812
12813         * select.c (own-selection-internal):
12814         * select.c (get-selection-internal):
12815         MULE bug fix - these should default to COMPOUND_TEXT and not
12816         STRING for MULE. I think.
12817
12818         * select.c (select_convert_out): Use selection-coercible-types
12819         to find types that we can attempt to perform coercions on.
12820
12821 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12822
12823         * mule-wnnfns.c:
12824         * mule-canna.c:
12825         Add coding: cookie to identify encoding.
12826
12827         * mule-canna.c (CANNA_mode_keys): make static.
12828         Use proper prototypes, even for functions of no arguments.
12829         Remove external prototype for Fding().
12830
12831         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12832
12833         * select.c (syms_of_select): Add missing DEFSUBR.
12834
12835 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12836
12837         * select.c (get_selection_internal, own_selection_internal):
12838         Make the type default to STRING, rather than placing a nil type
12839         into Vselection_alist.
12840
12841 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12842
12843         * gpmevent.c (tty_selection_exists_p):
12844         * gpmevent.c (tty_own_selection):
12845         Updated parameter lists.
12846
12847 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12848
12849         * select.h (selection-alist): Removed declaration.
12850
12851         * select.h (get_local_selection):
12852         * select.c (get_local_selection):
12853         Made static.
12854
12855         * select.h (convert_selection): Removed declaration.
12856         * select.c (convert_selection): Removed.
12857         This function belongs in Lisp.
12858
12859         * select.h (select_convert_in): Declare.
12860         * select.h (select_convert_out): Declare.
12861         * select.c (select_convert_in): New.
12862         * select.c (select_convert_out): New.
12863         New conversion functions for other files to call.
12864
12865         * select.h (select_notify_buffer_kill): Declare.
12866         * select.c (select_notify_buffer_kill): New.
12867         New functions that get called from kill-buffer.
12868
12869         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12870         X-specific lisp code.
12871
12872         * select.h: Declare some of the lisp-visible functions for
12873         external use.
12874
12875         * select.c (clean_local_selection_data): Removed. This was
12876         a disgusting function, and previously should have been in
12877         select-x.c in any case. The functionality is now provided
12878         in select-convert-from-integer (select.el).
12879
12880         * select.c (available-selection-types): Fixed stupidity where
12881         INTEGER and ATOM got added twice. Also add STRING when we see an
12882         extent.
12883
12884         * select.c (get-selection-internal): Removed symbol stripping. No
12885         longer causes conversion when data comes from the internal cache.
12886
12887         * select.c (syms_of_select): Added new functions.
12888
12889         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12890         error checking - previously this called abort!
12891
12892         * select-x.c (x_own_selection): Changed comment.
12893
12894         * select-x.c (x_handle_selection_request): Use select_convert_out.
12895         Don't mess with selection-alist; it's an internal variable of select.c.
12896
12897         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12898
12899         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12900         rather than messing with selection-alist.
12901
12902         * select-msw.c (mswindows_get_foreign_selection):
12903         Use TO_INTERNAL_FORMAT rather than hacking.
12904
12905 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12906
12907         * process-unix.c (unix_open_multicast_group):
12908         (unix_open_multicast_group): Remove useless casts.
12909
12910 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12911
12912         * sound.c (Fplay_sound): Fix `unused variable' warning.
12913
12914         * emacs.c (main): Use correct type for _environ on SCO5.
12915
12916 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12917
12918         * console.h (own_selection_method):
12919         * console.h (selection_exists_p_method):
12920         * console.h (available_selection_types_method): New.
12921         * console.h (register_selection_data_type_method): New.
12922         * console.h (selection_data_type_name): New.
12923
12924         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12925         function & alist to track GlobalAlloc()'d handles that need
12926         releasing when the clipboard data gets replaced or emptied.
12927
12928         * event-msw.c (mswindows_wnd_proc): Call it.
12929
12930         * lisp.h, general.c (Qappend): New symbol representing a
12931         `how-to-add' mode.
12932
12933         * select.c (own-selection-internal):
12934         * select.c (selection-exists-p):
12935         * select.c (available-selection-types): New.
12936         * select.c (register-selection-data-type): New.
12937         * select.c (selection-data-type-name): New.  New functions to deal
12938         with device-specific selection data formats.
12939         * select.c (selection-converter-out-alist): Renamed.
12940         * select.c (selection-converter-in-alist): New.
12941         * select.c (selection-appender-alist): New.  Added new alists.
12942         * select.c (syms_of_select, vars_of_select): Added new symbols &
12943         variables.
12944         * select.c (get_local_selection): Split.
12945         * select.c: Removed spurious type checking - selections may now be
12946         of any type, not just strings.
12947         * select.c (own-selection-internal):
12948
12949         * select.h, select.c (convert_selection): New. Created
12950         convert_selection() function based on get_local_selection().
12951         * select.h, select.c (QCF_*): New symbols representing mswindows
12952         clipboard formats.
12953         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12954         symbols representing `how-to-add' modes.
12955
12956         * select-msw.c (x_sym_p): New.
12957         * select-msw.c (symbol_to_ms_cf): New.
12958         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12959         symbols & clipboard formats. Can also handle string names.
12960         * select-msw.c (mswindows_own_selection):
12961         * select-msw.c (mswindows_selection_exists_p):
12962         Added `data-type' parameter. Use it.
12963         * select-msw.c (mswindows_available_selection_types): New.
12964         * select-msw.c (mswindows_register_selection_data_type): New.
12965         * select-msw.c (mswindows_selection_data_type_name): New.
12966         * select-msw.c (mswindows_own_selection):
12967         * select-msw.c (mswindows_get_foreign_selection):
12968         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12969         * select-msw.c (console_create_select_mswindows): Added new methods.
12970         * select-msw.c (mswindows_destroy_selection): New.
12971         * select-msw.c (Vhandle_alist): New list.
12972         * select-msw.c (mswindows_own_selection):
12973
12974         * select-x.c (x_own_selection):
12975         * select-x.c (x_selection_exists_p):
12976         * select-x.c: Added some comments about maybe using new
12977         functionality.
12978         * select-x.c (x_own_selection):
12979
12980         * specifier.c: Remove definition of Qappend (now in general.c)
12981         * specifier.c (syms_of_specifier): Remove Qappend.
12982
12983 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12984
12985         * config.h.in: Add socklen_t.
12986
12987         * s/decosf4-0.h: No special compiler flags needed or desired.
12988         In particular, undefine _BSD for DEC OSF 4.0.
12989
12990 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12991
12992         * redisplay-msw.c (msprinter_frame_output_end): Added.
12993         (console_type_create_redisplay_mswindows): Referred the above.
12994
12995         * frame.c (setup_frame_without_minibuffer): Do not create a
12996         default minibuffer frame on a printer device.
12997
12998         * frame-msw.c (apply_dc_geometry): Added.
12999         (msprinter_start_page):
13000         (msprinter_init_frame_3):
13001         (msprinter_eject_page): Use it.
13002
13003         * console-msw.h (struct msprinter_frame): Added pix_left and top,
13004         and removed residual duplex and orientation properties.
13005
13006 2000-07-11  Martin Buchholz  <martin@xemacs.org>
13007
13008         * eval.c (function_argcount): Work around a DEC CC compiler bug.
13009
13010         * unexalpha.c: Remove system prototypes from C sources!
13011
13012 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
13013
13014         * eval.c: Remove references to M-x edit-options in DEFUNs for
13015         `defvar' and `defconst'.
13016
13017 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13018
13019         * config.h.in: Remove SMART_INCLUDE hackery.
13020
13021         PostgreSQL hacking:
13022         * config.h.in: Don't use SMART_INCLUDE.
13023
13024         * postgresql.h: Include libpq-fe.h here.  Fix typo.
13025         * inline.c: Simply #include "postgresql.h"
13026         * postgresql.c:
13027         - Don't use SMART_INCLUDE
13028         - Use simply "const".
13029         - Use standard doc string conventions.
13030         - Use correct type for result of PQstatus.
13031
13032 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13033
13034         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
13035
13036         C++ compilation changes.
13037         * config.h.in (EXTERN_C): Define.
13038         * config.h.in (not): This is also a C++ keyword.
13039         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
13040         * cm.c: Use EXTERN_C.
13041         * redisplay-tty.c: Use EXTERN_C.
13042         * sysdep.c: Use EXTERN_C.  Remove Gould support.
13043
13044 2000-07-09  Martin Buchholz  <martin@xemacs.org>
13045
13046         * general.c: Remove duplicate definition for Qfunction.
13047
13048 2000-07-08  Ben Wing  <ben@xemacs.org>
13049
13050         * device-msw.c (msprinter_init_device):
13051         * device-msw.c (sync_printer_with_devmode):
13052         * device-msw.c (handle_devmode_changes):
13053         * device-msw.c (print_dialog_worker):
13054         * device-msw.c (Fmsprinter_apply_settings):
13055         * device-msw.c (hash_devmode):
13056         * device-msw.c (Fmsprinter_settings_despecialize):
13057         use Qmswindows_tstr, not Qctext.
13058
13059         * vm-limit.c (check_memory_limits):
13060         avoid infinite loop printing warning messages.
13061
13062 2000-07-05  Craig Lanning  <lanning@scra.org>
13063
13064         * Makefile.in.in: Add support for including the Windows resources
13065         when building with the cygwin and mingw targets.
13066
13067         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
13068         not set or not correct.
13069         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
13070         (init_initial_directory): Don't try to use $PWD on the
13071         WIN32_NATIVE target.
13072
13073         * s\cygwin32.h:
13074         [[Add -mwindows to eliminate console window.]] not required --ben
13075         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13076         (MAIL_USE_POP): removed; now handled by configure.
13077
13078         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
13079         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
13080         (HAVE_NATIVE_SOUND): removed; now handled by configure.
13081         (MAIL_USE_POP): removed; now handled by configure.
13082         (ENCAPSULATE_STAT): from Dan Holmsand, added.
13083         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
13084         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
13085         constant string.
13086         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
13087         up from <winsock.h> via systime.h.
13088         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
13089         (getpagesize): from Dan Holmsand, added.
13090         Added #endif which was left dangling by Ben's mega patch; added
13091         comment to help prevent this in the future.
13092
13093         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
13094
13095 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13096
13097         * console-msw.h (struct mswindows_device): Removed unnecessary
13098         cached device geometry values.
13099         Added update_tick and an accessor macro.
13100         (Lisp_Devmode): Added lrecord declaration.
13101         (struct msprinter_device): Contain devmode as a Lisp object.
13102         Added mswindows_get_selected_frame_hwnd();
13103
13104         * console.h (struct console_methods): Indentation nitpicking.
13105
13106         * device-msw.c (mswindows_init_device): Do not initialize geometry
13107         cache. Initialize update tick.
13108         (mswindows_device_system_metrics): Ask the device for its geometry.
13109         (global_free_2_maybe):
13110         (devmode_to_hglobal):
13111         (handle_printer_changes):
13112         (ensure_not_printing):
13113         (print_dialog_worker):
13114         (Fmsprinter_print_setup_dialog):
13115         (Fmsprinter_print_dialog):
13116         (plist_get_margin):
13117         (plist_set_margin):
13118         (Fmsprinter_page_setup_dialog): Added functions.
13119         (sync_printer_with_devmode):
13120         (handle_devmode_changes):
13121         (Fmsprinter_get_settings):
13122         (Fmsprinter_select_settings):
13123         (Fmsprinter_apply_settings):
13124         (allocate_devmode):
13125         (Fmsprinter_settings_copy):
13126         (Fmsprinter_settings_despecialize):
13127         (print_devmode):
13128         (finalize_devmode):
13129         (equal_devmode):
13130         (hash_devmode): Added functions
13131         (syms_of_device_mswindows): Init devmode lrecord class.
13132
13133         * device.h: Added an exfun for find-device.
13134
13135         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13136         geometry; although, recreate the device compatible DC.
13137
13138         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13139         (msprinter_init_frame_3):
13140         (msprinter_frame_property):
13141         (msprinter_internal_frame_property_p):
13142         (msprinter_frame_properties):
13143         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13144         print job properties (will move to device settings).
13145
13146         * lisp.h: Added symbols.
13147
13148         * general.c (syms_of_general): Declared them.
13149
13150         * hash.c (string_hash): Added.
13151
13152         * lrecord.h (lrecord_type): Added devmode lrecord type.
13153
13154 2000-07-02  Mike Sperber <mike@xemacs.org>
13155
13156         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13157         FreeBSD 4.0.
13158
13159 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13160
13161         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13162         integer.
13163
13164 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13165
13166         * data.c (Fstring_to_number): Don't recognize floating point if
13167         base is not 10.
13168
13169 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13170
13171         * glyphs-widget.c (tab_control_query_geometry):
13172         (widget_query_geometry):
13173         (button_query_geometry):
13174         * glyphs.c (text_query_geometry):
13175         Enforce type correctness.
13176
13177 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13178
13179         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13180         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13181
13182 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13183
13184         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13185         conflicts with gcc's fixincluded version of FOO.h.
13186
13187         * glyphs.h (image_instance_geometry): Remove trailing `,'
13188
13189 2000-06-08  Mike Alexander  <mta@arbortext.com>
13190
13191         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13192         (shove_thread): Don't write the same output twice
13193         (make_ntpipe_output_stream): Increase priority of shove thread
13194         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13195         chance to run
13196         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13197         it.
13198
13199 2000-06-12  Ben Wing  <ben@xemacs.org>
13200
13201         * s\mingw32.h (sigset):
13202         * s\windowsnt.h (sigset):
13203         rename msw_ to mswindows_ for consistency with general convention.
13204
13205 2000-06-12  Ben Wing  <ben@xemacs.org>
13206
13207         * console-msw.c:
13208         * console-msw.c (mswindows_get_console_hwnd):
13209         * console-msw.c (mswindows_ensure_console_allocated):
13210         * console-msw.c (mswindows_hide_console):
13211         * console-msw.c (mswindows_show_console):
13212         * console-msw.c (mswindows_ensure_console_buffered):
13213         * console-msw.c (mswindows_output_console_string):
13214         * console-msw.c (mswindows_windows9x_p):
13215         * console-msw.h:
13216         * device-msw.c (mswindows_get_workspace_coords):
13217         * device-msw.c (mswindows_device_system_metrics):
13218         * dialog-msw.c (mswindows_popup_dialog_box):
13219         * event-msw.c (mswindows_wnd_proc):
13220         * frame-msw.c (mswindows_size_frame_internal):
13221         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13222         * menubar-msw.c (displayable_menu_item):
13223         * menubar-msw.c (mswindows_char_is_accelerator):
13224         * nt.c:
13225         * nt.c (mswindows_sigset):
13226         * nt.c (mswindows_sigrelse):
13227         * nt.c (mswindows_sigpause):
13228         * nt.c (mswindows_raise):
13229         * nt.c (timer_proc):
13230         * ntproc.c:
13231         * ntproc.c (find_child_console):
13232         * ntproc.c (sys_kill):
13233         * print.c:
13234         * print.c (std_handle_out_external):
13235         * process-nt.c (find_child_console):
13236         * process-nt.c (send_signal_the_95_way):
13237         * process-nt.c (ensure_console_window_exists):
13238         * process-nt.c (nt_create_process):
13239         * syssignal.h:
13240         rename msw_ to mswindows_ for consistency with general convention.
13241
13242         * emacs.c:
13243         * dumper.c:
13244         include nt.h, not syswindows.h.
13245
13246         * nt.c (mswindows_fstat):
13247         * nt.c (mswindows_stat):
13248         prefix mswindows_ instead of attempting to directly override the
13249         library functions.  fix declarations.
13250
13251         * nt.h:
13252         include syswindows.h.  move some sysdep.h stuff here.
13253
13254         * ntheap.h:
13255         include syswindows.h, not <windows.h>.
13256
13257         * ntplay.c:
13258         clean up headers.
13259
13260         * sysdep.c:
13261         clean up headers.
13262
13263         * sysdep.c (sys_fstat):
13264         * sysdep.c (sys_stat):
13265         call mswindows versions when appropriate.
13266
13267         * sysdep.h:
13268         move mswin decls to nt.h.
13269
13270         * syswindows.h:
13271         add long comment describing appropriate use of the various windows
13272         headers.
13273
13274 2000-06-11  Ben Wing  <ben@xemacs.org>
13275
13276         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13277
13278 2000-06-10  Ben Wing  <ben@xemacs.org>
13279
13280         * Makefile.in.in (release):
13281         Correction to make sure xemacs.exe always dumped when correct.
13282
13283         * alloca.c:
13284         * balloon_help.c:
13285         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13286
13287         * buffer.c (set_buffer_internal):
13288         [[[[2]]]]: Remove HAVE_FEP code.
13289
13290         * buffer.c (init_initial_directory):
13291         [3].
13292
13293         * bytecode.c:
13294         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13295         individual files.
13296
13297         * callproc.c:
13298         * callproc.c (call_process_cleanup):
13299         * callproc.c (Fold_call_process_internal):
13300         * callproc.c (child_setup):
13301         * callproc.c (getenv_internal):
13302         * callproc.c (init_callproc):
13303         * callproc.c (vars_of_callproc):
13304         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13305         __CYGWIN32__ -> CYGWIN.
13306         DOS_NT -> WIN32_NATIVE.
13307         Remove MSDOS support/references, converting to WIN32_NATIVE
13308           where correct.
13309         __MINGW32__ -> MINGW.
13310         Fix windows.h includes.
13311         Remove bogus HAVE_NTGUI.
13312
13313         * config.h.in:
13314         [2].
13315
13316         * console-msw.c:
13317         mswindows_message_outputted added for use in allowing startup
13318         errors on the console to be seen.
13319
13320         * console-msw.c (msw_ensure_console_allocated):
13321         * console-msw.c (msw_output_console_string):
13322         * console-msw.c (DHEADER):
13323         * console-msw.c (DOPAQUE_DATA):
13324         * console-msw.c (DEVENT):
13325         * console-msw.c (DCONS):
13326         * console-msw.c (DCONSCDR):
13327         * console-msw.c (DSTRING):
13328         * console-msw.c (DVECTOR):
13329         * console-msw.c (DSYMBOL):
13330         * console-msw.c (DSYMNAME):
13331         Fix warnings.
13332
13333         * console-stream.c (stream_init_console):
13334         Fix text/binary problems.
13335
13336         * device-msw.c:
13337         * device-msw.c (mswindows_finish_init_device):
13338         * device-msw.c (mswindows_delete_device):
13339         [1].
13340
13341         * device.c (handle_asynch_device_change):
13342         [3].
13343
13344         * dgif_lib.c:
13345         * dgif_lib.c (DGifOpenFileName):
13346         * dgif_lib.c (DGifOpenFileHandle):
13347         * dgif_lib.c (DGifGetLine):
13348         * dgif_lib.c (DGifGetPixel):
13349         Added config.h/lisp.h, fix up includes.
13350         [1].
13351
13352         * dired-msw.c:
13353         [4].
13354
13355         * dired.c:
13356         * dired.c (file_name_completion):
13357         * dired.c (Ffile_attributes):
13358         * dired.c (syms_of_dired):
13359         [1].
13360
13361         * dumper.c:
13362         * dumper.c (pdump_file_unmap):
13363         * dumper.c (pdump_load):
13364         [1].
13365
13366         * editfns.c:
13367         * editfns.c (Ftemp_directory):
13368         * editfns.c (user_login_name):
13369         * editfns.c (Fuser_real_login_name):
13370         * editfns.c (get_home_directory):
13371         [1].
13372
13373         * elhash.c (finish_marking_weak_hash_tables):
13374         [[[[5]]]]: Fix GCC warnings.
13375
13376         * emacs.c:
13377         * emacs.c (mswindows_handle_hardware_exceptions):
13378         * emacs.c (make_arg_list_1):
13379         * emacs.c (main_1):
13380         * emacs.c (Fkill_emacs):
13381         * emacs.c (Fdump_emacs):
13382         [1].
13383         Fix problems with nested crashes, add long comment.
13384
13385         * event-Xt.c (init_event_Xt_late):
13386         [1].
13387
13388         * event-msw.c:
13389         * event-msw.c (mswindows_dde_callback):
13390         * event-msw.c (mswindows_handle_sticky_modifiers):
13391         * event-msw.c (mswindows_wnd_proc):
13392         [1].
13393         [5].
13394
13395         * events.c (character_to_event):
13396         [1].
13397
13398         * fileio.c:
13399         * fileio.c (Ffile_name_directory):
13400         * fileio.c (Ffile_name_nondirectory):
13401         * fileio.c (directory_file_name):
13402         * fileio.c (Fexpand_file_name):
13403         * fileio.c (Fsubstitute_in_file_name):
13404         * fileio.c (Ffile_name_absolute_p):
13405         * fileio.c (check_executable):
13406         * fileio.c (Ffile_readable_p):
13407         * fileio.c (Ffile_accessible_directory_p):
13408         * fileio.c (Ffile_modes):
13409         * fileio.c (Funix_sync):
13410         * fileio.c (vars_of_fileio):
13411         [1]. [4].
13412
13413         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13414
13415         Expand getdefdir defn.
13416         Fix bogus rename() comment.
13417
13418         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13419         to use standard XEmacs include files, e.g. sysfile.h, rather
13420         than system-specific includes.
13421
13422         * fns.c:
13423         * fns.c (Fsubseq):
13424         [5]. [6].
13425
13426         * frame.c (vars_of_frame):
13427         [1].
13428
13429         * getloadavg.c:
13430         * getloadavg.c (getloadavg):
13431         [1]. [6].
13432         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13433         (We don't use it elsewhere in the code; just add a comment.)
13434
13435         * gif_io.c:
13436         [6].
13437         Add config.h.
13438
13439         * glyphs-msw.c:
13440         * glyphs-msw.c (mswindows_resource_instantiate):
13441         [1].
13442
13443         * glyphs-x.c (x_native_layout_instantiate):
13444         [5].
13445
13446         * gui-msw.c (Fmswindows_shell_execute):
13447         [1].
13448
13449         * insdel.c:
13450         [4].
13451
13452         * lisp.h:
13453         [4]. [5].
13454
13455         * lread.c (locate_file_in_directory_mapper):
13456         [1].
13457
13458         * lstream.c:
13459         [4].
13460
13461         * mem-limits.h:
13462         * mem-limits.h (get_lim_data):
13463         [1].
13464
13465         * menubar-msw.c:
13466         [4].
13467
13468         * ndir.h:
13469         [1].
13470
13471         * nt.c:
13472         * nt.c (getwd):
13473         * nt.c (closedir):
13474         * nt.c (rva_to_section):
13475         * nt.c (mswindows_executable_type):
13476         [1]. [6].
13477         Fix closedir() defn.
13478
13479         * nt.h:
13480         [[[[8]]]]: *_OK defs moved to sysfile.h.
13481
13482         * ntproc.c:
13483         [6]. [7].
13484
13485         * objects-x.c:
13486         [4].
13487
13488         * print.c:
13489         * print.c (std_handle_out_external):
13490         [1]. [4].
13491
13492         * process-nt.c:
13493         * process-nt.c (nt_create_process):
13494         [6].
13495         try to fix process quoting somewhat.
13496
13497         * process-unix.c (unix_create_process):
13498         [1].
13499
13500         * process.c:
13501         * process.c (vars_of_process):
13502         Add Vnull_device.
13503
13504         * process.h:
13505         [1].
13506
13507         * realpath.c:
13508         * realpath.c (xrealpath):
13509         [1].
13510
13511         * redisplay-tty.c (init_tty_for_redisplay):
13512         [3].
13513
13514         * redisplay.c:
13515         [4]. [6].
13516
13517         * scrollbar-msw.c:
13518         [4].
13519
13520         * sheap.c:
13521         * sheap.c (more_static_core):
13522         * sheap.c (report_sheap_usage):
13523         [5]. [6].
13524
13525         * signal.c:
13526         * signal.c (alarm_signal):
13527         [1]. [6].
13528
13529         * sound.c:
13530         [6].
13531
13532         * strftime.c:
13533         * strftime.c (zone_name):
13534         [1]. [5].
13535
13536         * symsinit.h (init_sunpro):
13537         [1].
13538
13539         * syscommctrl.h:
13540         commctrl.h not in Cygwin b20.1.
13541
13542         * sysdep.c:
13543         * sysdep.c (endif):
13544         * sysdep.c (sys_subshell):
13545         * sysdep.c (init_baud_rate):
13546         * sysdep.c (emacs_get_tty):
13547         * sysdep.c (emacs_set_tty):
13548         * sysdep.c (tty_init_sys_modes_on_device):
13549         * sysdep.c (init_system_name):
13550         * sysdep.c (sys_open):
13551         * sysdep.c (interruptible_open):
13552         * sysdep.c (sys_fopen):
13553         * sysdep.c (sys_mkdir):
13554         * sysdep.c (sys_rename):
13555         * sysdep.c (get_process_times_1):
13556         [1]. [6].
13557
13558         * sysdep.h:
13559         [1].
13560
13561         * sysdir.h:
13562         * sysdir.h (DIRENTRY_NONEMPTY):
13563         [1]. [6].
13564
13565         * sysdll.c (dll_init):
13566         * sysdll.h:
13567         [1].
13568
13569         * sysfile.h:
13570         [1]. [6]. [8].
13571         added text/binary defs.
13572
13573         * sysfloat.h:
13574         [1].
13575
13576         * sysproc.h:
13577         * sysproc.h (EDESTADDRREQ):
13578         * sysproc.h (poll_fds_for_input):
13579         [1]. [6].
13580
13581         * syspwd.h:
13582         [6].
13583
13584         * syssignal.h:
13585         [1].
13586
13587         * systime.h:
13588         [1]. [6].
13589
13590         * systty.h:
13591         [1].
13592
13593         * syswindows.h:
13594         [1].
13595         Always define WIN32_LEAN_AND_MEAN.
13596
13597         * unexcw.c (unexec):
13598         [5].
13599
13600         * unexec.c:
13601         * unexec.c (copy_text_and_data):
13602         * unexec.c (adjust_lnnoptrs):
13603         [1].
13604
13605         * unexnt.c:
13606         * unexnt.c (_start):
13607         [1].
13608
13609 2000-06-07  Ben Wing  <ben@xemacs.org>
13610
13611         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13612         was used only as a model.  We've long since extracted any useful
13613         logic or code out of this. (I just did an exhaustive search.)
13614
13615         * s\msdos.h: Removed.
13616
13617         * s\windows95.h: Removed.
13618
13619 2000-06-10  Ben Wing  <ben@xemacs.org>
13620
13621         * s\cygwin32.h:
13622         [1]. [5].
13623         Don't use extern with fun defs.
13624
13625         * s\mingw32.h:
13626         [1]. [7].
13627         Remove nt\inc include.
13628         Remove getdisk, getdefdir. (The former is unused, the latter
13629         expanded in fileio.h.)
13630
13631         * s\windowsnt.h:
13632         * s\windowsnt.h (WIN32_NATIVE):
13633         * s\windowsnt.h (HAVE_STRCASECMP):
13634         [1]. [7].
13635         Add long comment about preprocessor changes.
13636         Remove getdisk, getdefdir. (The former is unused, the latter
13637         expanded in fileio.h.)
13638
13639 2000-06-10  Ben Wing  <ben@xemacs.org>
13640
13641         * m\arm.h:
13642         * m\delta.h:
13643         * m\intel386.h:
13644         * m\sequent.h:
13645         * m\template.h:
13646         * m\windowsnt.h:
13647         [1].
13648         Remove bogus/unused NO_SOCK_SIGIO.
13649
13650 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13651
13652         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13653         not an Emchar.
13654
13655 2000-06-04  Mike Sperber <mike@xemacs.org>
13656
13657         * casetab.c (set_case_table): For `set-standard-case-table',
13658         actually deposit the new case tables where the rest of XEmacs can
13659         see them.
13660
13661 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13662
13663         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13664
13665 2000-06-05  Ben Wing  <ben@xemacs.org>
13666
13667         * callproc.c (child_setup): Don't do close_load_descs() under
13668         MS Windows.  Put in a comment explaining why.
13669
13670 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13671
13672         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13673         Toolkit shell" which breaks `kill-compilation' on Windows NT
13674         native, retaining STDERR handling improvements.
13675
13676 2000-06-01  Andreas Jaeger  <aj@suse.de>
13677
13678         * s/s390.h: Support for S390, based on a patch by Martin
13679         Schwidefsky <schwidefsky@de.ibm.com>.
13680
13681 2000-05-30  Andy Piper  <andy@xemacs.org>
13682
13683         * window.c (allocate_window):
13684         (make_dummy_parent):
13685         (Fset_window_configuration): use new hashtable type.
13686
13687         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13688         (struct image_instantiator_methods):
13689         (struct Lisp_Image_Instance): make instance geometry signed.
13690
13691         * glyphs.c (instantiate_image_instantiator):
13692         (image_instance_query_geometry):
13693         (image_instance_layout):
13694         (image_instance_layout):
13695         (query_string_geometry):
13696         (text_query_geometry):
13697         (image_instantiate):
13698         (image_instantiate):
13699         (cache_subwindow_instance_in_frame_maybe):
13700         (subwindow_query_geometry): make instance geometry signed.
13701
13702         * glyphs-widget.c (widget_query_geometry):
13703         (widget_layout):
13704         (button_query_geometry):
13705         (tree_view_query_geometry):
13706         (tab_control_query_geometry):
13707         (layout_query_geometry):
13708         (layout_layout):
13709         (native_layout_layout): make instance geometry signed.
13710
13711 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13712
13713         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13714         constant.
13715
13716         * general.c (syms_of_general): Add Qfull_assoc symbol.
13717
13718         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13719         correctly.
13720         (decode_weak_list_type): Decode full-assoc type.
13721         (encode_weak_list_type): Encode full-assoc type.
13722         (Fmake_weak_list): Update doc string.
13723
13724 2000-05-30  Andy Piper  <andy@xemacs.org>
13725
13726         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13727
13728         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13729         (decode_hash_table_weakness): ditto.
13730         (Fhash_table_weakness): ditto.
13731         (Fhash_table_type): ditto.
13732         (finish_marking_weak_hash_tables): ditto.
13733         (hash_table_weakness_validate): ditto.
13734         (syms_of_elhash): ditto.
13735
13736 2000-05-28  Martin Buchholz <martin@xemacs.org>
13737
13738         * XEmacs 21.2.34 is released.
13739
13740 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13741
13742         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13743         start cache.
13744         (updating_line_start_cache): Gone.
13745         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13746         generic code to force a minimum of 1 line laid out in the
13747         CMOTION_DISP case.
13748
13749 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13750
13751         * glyphs.c (instantiate_image_instantiator): Check for initialized
13752         height & width no longer special cases IMAGE_NOTHING.
13753         (nothing_instantiate): Set height and width of instance.
13754
13755 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13756
13757         * unexelf.c (unexec): Search for ".data" section.
13758         Initialize new_data2_offset from old_data_index.
13759         Remove redundant check for ElfW.
13760
13761 2000-05-23  Andy Piper  <andy@xemacs.org>
13762
13763         * glyphs.c (get_image_instantiator_governing_domain): allow more
13764         specific domains as the governing domain rather than expecting an
13765         exact match. This fixes problems with layouts.
13766
13767 2000-05-22  Andy Piper  <andy@xemacs.org>
13768
13769         * redisplay-output.c (compare_runes): check for non-images
13770
13771         * glyphs.c (set_glyph_dirty_p): ditto.
13772         (update_glyph_cachel_data): ditto.
13773
13774         * glyphs-widget.c (layout_post_instantiate): ditto.
13775         (layout_post_instantiate): ditto.
13776
13777         * event-msw.c (mswindows_wnd_proc): warning removal.
13778
13779 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13780
13781         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13782
13783         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13784
13785         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13786
13787         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13788         (mswindows_executable_type): mingw32 now has enough headers for
13789         this to work.
13790
13791 2000-05-20  Andy Piper  <andy@xemacs.org>
13792
13793         * console-msw.c (mswindows_output_last_error): ; -> ,
13794
13795 2000-05-12  Andy Piper  <andy@xemacs.org>
13796
13797         * console-msw.c (FROB): compare ints with ints.
13798
13799 2000-05-11  Andy Piper  <andy@xemacs.org>
13800
13801         * glyphs-x.c (x_finalize_image_instance): make minimal build
13802         happy.
13803
13804 2000-05-20  Ben Wing  <ben@xemacs.org>
13805
13806         * event-Xt.c:
13807         * event-Xt.c (vars_of_event_Xt):
13808         move modifier-keys-are-sticky to event-stream.c.
13809
13810         * event-msw.c:
13811         * event-msw.c (mswindows_enqueue_mouse_button_event):
13812         * event-msw.c (key_needs_default_processing_p):
13813         * event-msw.c (XEMSW_LCONTROL):
13814         * event-msw.c (mswindows_handle_sticky_modifiers):
13815         * event-msw.c (FROB):
13816         * event-msw.c (clear_sticky_modifiers):
13817         * event-msw.c (output_modifier_keyboard_state):
13818         * event-msw.c (output_alt_keyboard_state):
13819         * event-msw.c (mswindows_wnd_proc):
13820         * event-msw.c (mswindows_modifier_state):
13821         * event-msw.c (emacs_mswindows_handle_magic_event):
13822         implement sticky modifiers.
13823
13824         * event-stream.c:
13825         * event-stream.c (vars_of_event_stream):
13826         move modifier-keys-are-sticky here.
13827
13828         * lisp.h:
13829         add CHECK_FUNCTION.
13830
13831         * rangetab.c:
13832         implement map-range-table.
13833
13834
13835 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13836
13837         * redisplay-tty.c (reset_tty_modes):
13838         (tty_redisplay_shutdown): Adjust argument type to
13839         tty_frame_output_end.
13840
13841 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13842
13843         * eval.c (Fbacktrace): Don't output a line with only right
13844         parenthesis.
13845
13846 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13847
13848         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13849         (Fpq_reset_poll): Ditto.
13850
13851 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13852
13853         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13854
13855 2000-05-16  Ben Wing  <ben@xemacs.org>
13856
13857         * buffer.c:
13858         * buffer.c (dfc_convert_to/from_internal_format):
13859         * buffer.c (reinit_vars_of_buffer):
13860         Fix conversion functions to allow reentrancy.
13861
13862         * console-msw.c:
13863         * console-msw.c (mswindows_output_last_error):
13864         New fun, generally useful -- output a human-readable
13865         version of GetLastError() on the console.
13866
13867         * console-msw.h:
13868         * console-msw.h (struct mswindows_frame):
13869         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13870
13871         * console-stream.c (stream_output_begin):
13872         * console-stream.c (stream_output_end):
13873         * console-stream.c (stream_output_vertical_divider):
13874         * console-stream.c (stream_clear_region):
13875         * console-stream.c (stream_flash):
13876         * console-stream.c (console_type_create_stream):
13877         Delete blank stream methods, not needed.
13878
13879         * console.h (struct console_methods):
13880         Split begin/end methods into window and frame.
13881
13882         * event-msw.c:
13883         * event-msw.c (mswindows_handle_paint):
13884         * event-msw.c (output_alt_keyboard_state):
13885         * event-msw.c (mswindows_wnd_proc):
13886         * event-msw.c (vars_of_event_mswindows):
13887         Comment about problems with ignored-expose.
13888         Define mswindows-debug-events; not really implemented.
13889
13890         * frame-msw.c (mswindows_init_frame_1):
13891         random cleanups.
13892
13893         * glyphs-msw.c:
13894         * glyphs-msw.c (begin_defer_window_pos):
13895         * glyphs-msw.c (mswindows_unmap_subwindow):
13896         * glyphs-msw.c (mswindows_map_subwindow):
13897         * glyphs-msw.c (mswindows_resize_subwindow):
13898         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13899
13900         * glyphs.c (make_image_instance_1):
13901         Fix crash.
13902
13903         * gutter.c (Fredisplay_gutter_area):
13904         Use new begin/end methods.
13905
13906         * lisp.h (Dynarr_new2):
13907         New creation fun.
13908
13909         * redisplay-msw.c:
13910         * redisplay-msw.c (mswindows_frame_output_begin):
13911         * redisplay-msw.c (mswindows_frame_output_end):
13912         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13913         New begin/end methods -- handle DeferWindowPos.
13914
13915         * redisplay-output.c (redisplay_move_cursor):
13916         * redisplay-output.c (redraw_cursor_in_window):
13917         * redisplay-output.c (redisplay_update_line):
13918         * redisplay-output.c (redisplay_output_window):
13919         New begin/end methods.
13920
13921         * redisplay-tty.c:
13922         * redisplay-tty.c (tty_frame_output_begin):
13923         * redisplay-tty.c (tty_frame_output_end):
13924         * redisplay-tty.c (console_type_create_redisplay_tty):
13925         New begin/end methods.
13926
13927         * redisplay-x.c:
13928         * redisplay-x.c (x_window_output_begin):
13929         * redisplay-x.c (x_window_output_end):
13930         * redisplay-x.c (console_type_create_redisplay_x):
13931         New begin/end methods.
13932
13933         * redisplay.c (redisplay_frame):
13934         * redisplay.c (Fredisplay_echo_area):
13935         New begin/end methods.
13936         use MAYBE_DEVMETH for clear_frame; it may not exist.
13937
13938         * window.h (WINDOW_XFRAME):
13939         WINDOW_XFOO macros -- get locale and decode struct pointer.
13940
13941
13942 2000-05-12  Ben Wing  <ben@xemacs.org>
13943
13944         * emacs.c:
13945         * emacs.c (ensure_no_quitting_from_now_on):
13946         * emacs.c (fatal_error_signal):
13947         * emacs.c (mswindows_handle_hardware_exceptions):
13948         * emacs.c (main):
13949         * emacs.c (Fkill_emacs):
13950         * emacs.c (shut_down_emacs):
13951         * emacs.c (assert_failed):
13952         various improvements in fatal error handling.
13953
13954         * eval.c:
13955         move preparing_for_armageddon to emacs.c.
13956
13957         * lisp.h:
13958         declare fatal_error_in_progress.
13959
13960         * print.c:
13961         * print.c (std_handle_out_external):
13962         * print.c (std_handle_out_va):
13963         * print.c (stderr_out):
13964         * print.c (stdout_out):
13965         use console under mswin when no standard output.
13966         don't do code conversion during fatal error.
13967
13968         * scrollbar.c (Fscrollbar_page_up):
13969         * scrollbar.c (Fscrollbar_page_down):
13970         fix missing else.  reindent.
13971
13972 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13973
13974         Emergency fix.
13975
13976         * glyphs.h (GLYPH_CACHEL_DESCENT):
13977         (GLYPH_CACHEL_DESCENT):
13978         (GLYPH_CACHEL_DESCENT):
13979         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13980         used in case these are inline functions.
13981         Use more absurd values to error check.
13982
13983         include window.h for error check functions.
13984
13985 2000-05-11  Ben Wing  <ben@xemacs.org>
13986
13987         * cmdloop.c (Freally_early_error_handler):
13988         Display message box under windows; otherwise, message will disappear
13989         before it can be viewed.
13990
13991         * console-msw.c:
13992         * console-msw.c (Fmswindows_message_box):
13993         * console-msw.c (FROB):
13994         * console-msw.c (syms_of_console_mswindows):
13995         Define new fun `mswindows-message-box'.
13996         #### I will merge this into `popup-dialog-box'; just give me
13997         a bit of time.
13998
13999         * general.c:
14000         * general.c (syms_of_general):
14001         Some new symbols used in `mswindows-message-box'.
14002
14003         * glyphs.c:
14004         * glyphs.c (Fset_image_instance_property):
14005         put warning in this fun.
14006
14007         * glyphs.h:
14008         * glyphs.h (GLYPH_CACHEL_WIDTH):
14009         * glyphs.h (GLYPH_CACHEL_ASCENT):
14010         * glyphs.h (GLYPH_CACHEL):
14011         * glyphs.h (GLYPH_CACHEL_GLYPH):
14012         define error-checking versions to try to catch a bug i've seen --
14013         redisplay gets in an infinite loop because the glyph width of the
14014         continuation glyph is 65535.
14015
14016         * lisp.h:
14017         Extern message-box stuff.
14018
14019         * window.c (allocate_window):
14020         * window.c (make_dummy_parent):
14021         * window.c (Fset_window_configuration):
14022         Use EQUAL not EQ for subwindow caches to make them work a bit
14023         better. (Something is still very broken.)
14024
14025
14026 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
14027
14028         * glyphs.c (image_instantiate): Suppress gcc warnings.
14029         (Fmake_image_instance): Fix doc string.
14030         * specifier.c (Fmake_specifier): Ditto.
14031
14032 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
14033
14034         * paths.h.in (PATH_LOCK): Removed.
14035         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
14036         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
14037
14038 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14039
14040         * fns.c (Ffeaturep): Update e-mail address in doc-string.
14041         Document (featurep '(and xemacs 21.02)).
14042
14043 2000-05-09  Ben Wing  <ben@xemacs.org>
14044
14045         * buffer.c (complex_vars_of_buffer):
14046         update modeline-format doc.
14047
14048         * device.h:
14049         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
14050
14051         * emacs.c:
14052         timeline of all released versions of Emacs, for use in creating
14053         authorship comments and in synching up.
14054
14055         * glyphs-widget.c (image_instantiator_buttons):
14056         * glyphs-widget.c (image_instantiator_edit_fields):
14057         * glyphs-widget.c (image_instantiator_combo_box):
14058         * glyphs-widget.c (image_instantiator_scrollbar):
14059         * glyphs-widget.c (image_instantiator_progress_guage):
14060         * glyphs-widget.c (image_instantiator_tree_view):
14061         * glyphs-widget.c (image_instantiator_tab_control):
14062         * glyphs-widget.c (image_instantiator_labels):
14063         * glyphs-widget.c (image_instantiator_layout):
14064         * glyphs-widget.c (image_instantiator_native_layout):
14065         rename decode_domain method to governing_domain.
14066
14067         * glyphs.c:
14068         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
14069         * glyphs.c (add_entry_to_device_ii_format_list):
14070         make sure we don't put an entry more than once into the list.
14071         * glyphs.c (check_instance_cache_mapper):
14072         *************************************************************
14073         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14074         HAVE BEEN GETTING.
14075         *************************************************************
14076         * glyphs.c (get_image_instantiator_governing_domain):
14077         clean up, expand on new concept of governing domain.
14078         * glyphs.c (instantiate_image_instantiator):
14079         * glyphs.c (allocate_image_instance):
14080         use governing_domain instead of cache_domain in naming.
14081         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
14082         * glyphs.c (make_image_instance_1):
14083         * glyphs.c (Fmake_image_instance):
14084         allow for any domain (not just device), and process the
14085         governing domain correctly.  very big doc fix.
14086         * glyphs.c (Fimage_instance_domain):
14087         new primitive, to retrieve the governing domain of an image instance.
14088         * glyphs.c (image_instantiate):
14089         use new governing_domain stuff.  this fixes a crash you could get
14090         by instantiating certain widget glyphs in frame locales. (should
14091         signal an error instead of crashing.)
14092         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
14093         * glyphs.c (Fglyphp): clean up doc.
14094         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
14095         * glyphs.c (syms_of_glyphs):
14096         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
14097         * glyphs.c (image_instantiator_format_create): add some comments about
14098         bogus code.
14099         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
14100         for current-display-table. (Apparently Hrjove implemented in 1998 a
14101         design I wrote up in 1996, but didn't update the doc string.)
14102
14103         * glyphs.h: clean up a doc string.
14104         * glyphs.h (governing_domain):
14105         * glyphs.h (struct image_instantiator_methods):
14106         changes for governing_domain stuff.
14107
14108         * gutter.c:
14109         * gutter.c (Fgutter_specifier_p):
14110         * gutter.c (Fgutter_size_specifier_p):
14111         * gutter.c (Fgutter_visible_specifier_p):
14112         * objects.c:
14113         * objects.c (Fcolor_specifier_p):
14114         * objects.c (Ffont_specifier_p):
14115         * objects.c (Fface_boolean_specifier_p):
14116         doc strings moved to make-*-specifier.
14117
14118         * redisplay.c (add_disp_table_entry_runes_1):
14119         * redisplay.c (generate_fstring_runes):
14120         * redisplay.c (screen):
14121         add random comments and doc strings.
14122
14123         * specifier.c:
14124         * specifier.c (Fmake_specifier):
14125         major overhaul of this doc string.
14126
14127         * specifier.c (Fvalid_specifier_domain_p):
14128         comment about the bogosity of image instances being domains.
14129         * specifier.c (decode_domain):
14130         now non-static, used in glyphs.c.
14131         * specifier.c (specifier_instance):
14132         comment about the bogosity of image instances being domains.
14133         * specifier.c (Fgeneric_specifier_p):
14134         move doc string to make-generic-specifier.
14135         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14136         rebackslashify.
14137
14138         * specifier.h:
14139         * specifier.h (DOMAIN_FRAME):
14140         * specifier.h (DOMAIN_LIVE_P):
14141         * specifier.h (DOMAIN_XDEVICE):
14142         rebackslashify.
14143         add comments about problems with these macros.
14144         prototype for decode_domain.
14145
14146         * toolbar.c:
14147         * toolbar.c (Ftoolbar_specifier_p):
14148         move doc string to `make-toolbar-specifier'.
14149
14150         * window.c (window_unmap_subwindows_cache_mapper):
14151         *************************************************************
14152         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14153         HAVE BEEN GETTING.
14154         *************************************************************
14155
14156 2000-05-09  Andy Piper  <andy@xemacs.org>
14157
14158         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14159
14160         * window.c (Fset_window_configuration): reset the frame subwindow
14161         cache and re-initialize the window subwindow caches.
14162
14163         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14164
14165 2000-05-09  Ben Wing  <ben@xemacs.org>
14166
14167         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14168         DWORD.
14169
14170 2000-04-26  Mike Woolley  <mike@bulsara.com>
14171
14172         * ntheap.c: Changed recreate_heap to limit the amount reserved
14173         for the heap to that which is actually available. Also now
14174         displays a message box (with some dignostics) in the event that
14175         it still can't start.
14176
14177 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14178
14179         * callproc.c (Fold_call_process_internal): GCPRO path
14180
14181 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14182
14183         Patch by Bill Perry.
14184
14185         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14186         back data instead of #ifdef.
14187         (Fscrollbar_page_down): ditto.
14188
14189 2000-05-07  Ben Wing  <ben@xemacs.org>
14190
14191         * buffer.h:
14192         Kludge for defining Qmswindows_tstr.
14193
14194         * nt.c:
14195         * nt.c (open_input_file):
14196         * nt.c (open_output_file):
14197         * nt.c (rva_to_section):
14198         * nt.c (mswindows_executable_type):
14199         Move all memory-mapped-file routines here (some were in unexnt.c,
14200         which is bad because they are used by process-nt.c, and unexnt
14201         won't be around when portable dumping).  Synched the above routines
14202         with FSF 20.6.
14203
14204         * nt.h:
14205         Removed ifdef'd out bogus code.
14206         Fixed some prototypes.
14207
14208         * nt.h (file_data):
14209         * nt.h (OFFSET_TO_RVA):
14210         * nt.h (RVA_TO_OFFSET):
14211         * nt.h (RVA_TO_PTR):
14212         Moved the memory-mapped-file structures, macros and prototypes
14213         here, to parallel nt.c.  ntheap.h should really be removed
14214         entirely, and it's a non-portable-dumper specific file.
14215
14216         * ntheap.h (round_to_next):
14217         Moved the memory-mapped-file structures, macros and prototypes
14218         to nt.h.
14219
14220         * ntproc.c (compare_env):
14221         Moved rva_to_section and mswindows_executable_type to nt.c.
14222         Moved compare_env to process-nt.c.
14223         ntproc.c will die, one day.
14224
14225         * ntproc.c (sys_spawnve):
14226         Account for win32_ -> mswindows_.
14227
14228         * process-nt.c:
14229         * process-nt.c (struct nt_process_data):
14230         * process-nt.c (ensure_console_window_exists):
14231         * process-nt.c (compare_env):
14232         * process-nt.c (nt_create_process):
14233         * process-nt.c (nt_kill_process_by_pid):
14234         * process-nt.c (syms_of_process_nt):
14235         * process-nt.c (vars_of_process_nt):
14236         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14237         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14238         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14239         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14240         Move compare_env here from ntproc.c.
14241
14242         * process.c (Fprocess_send_region):
14243         Takes an optional fourth argument, BUFFER, which should fix some
14244         problems with call-process.
14245
14246         * syscommctrl.h:
14247         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14248
14249         * syswindows.h:
14250         Move ICC_BAR_CLASSES to syscommctrl.h.
14251         Add preliminary macros for MSWindows/Mule.  More to come.
14252
14253         * unexnt.c:
14254         * unexnt.c (unexec):
14255         open_output_file moved to nt.c.
14256
14257
14258 2000-05-05  Andy Piper  <andy@xemacs.org>
14259
14260         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14261         instance from the frame cache also since GC may catch up too late
14262         to make frame deletion sane.
14263
14264 2000-05-04  Andy Piper  <andy@xemacs.org>
14265
14266         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14267         (x_finalize_image_instance): ungcpro on deletion.
14268
14269         * glyphs.c (image_instantiator_format_create): give pointers a
14270         query geometry method so that the geometry is at least set.
14271
14272         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14273         initialize layouts if using widgets.
14274
14275 2000-05-03  Andy Piper  <andy@xemacs.org>
14276
14277         * nt.c: remove bogus reference to sysmmsystem.h
14278
14279         * gui-x.c (popup_selection_callback): fix no selection abort.
14280
14281 2000-05-02  Andy Piper  <andy@xemacs.org>
14282
14283         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14284         (mswindows_widget_instantiate): ditto.
14285
14286         * glyphs-widget.c (initialize_widget_image_instance): initialize
14287         children correctly.
14288         (widget_instantiate): cope with children and items in the same
14289         instance.
14290
14291         * glyphs.c (mark_image_instance): cope with children as a first
14292         class member.
14293         (image_instance_equal): ditto.
14294         (image_instance_hash): ditto.
14295         (image_instance_changed): ditto.
14296
14297 2000-04-30  Andy Piper  <andy@xemacs.org>
14298
14299         * glyphs.c (subwindow_query_geometry): new function. Return some
14300         defaults.
14301         (subwindow_instantiate): don't assign dimensions if none have been
14302         given.
14303         (image_instantiator_format_create): add subwindow_query_geometry.
14304         (print_image_instance): cope with layouts as widgets.
14305
14306 2000-04-29  Andy Piper  <andy@xemacs.org>
14307
14308         * frame.c (delete_frame_internal): call
14309         free_frame_subwindow_instance_cache so that all subwindows are
14310         finalized before their parent.
14311         (mark_frame): remove subwindow_cachels.
14312         (Fmake_frame): remove subwindow_cachel manipulation.
14313         (allocate_frame_core): subwindow_instance_cache is a weak list.
14314         (delete_frame_internal): set subwindow_instance_cache to nil.
14315
14316         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14317         finalization safe.
14318         (mswindows_finalize_image_instance): use the device
14319         not the domain as the domain may have died already.
14320
14321         * glyphs-x.c (x_finalize_image_instance): ditto.
14322         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14323         HEIGHT.
14324
14325         * redisplay-output.c (redisplay_unmap_subwindows): update for
14326         subwindow instance cache as a weak list.
14327         (redisplay_unmap_subwindows_maybe): ditto.
14328         (redisplay_unmap_subwindows_except_us): ditto.
14329
14330         * glyphs.c (unmap_subwindow): error checking will check the domain
14331         so don't deal with it here. Don't use cachels anymore.
14332         (map_subwindow): ditto.
14333         (update_subwindow_cachel_data): remove old accessor names.
14334         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14335         (Fresize_subwindow): don't update cachel.
14336         (mark_subwindow_cachels):
14337         (update_subwindow_cachel_data):
14338         (add_subwindow_cachel):
14339         (get_subwindow_cachel_index):
14340         (update_subwindow_cachel):
14341         (reset_subwindow_cachels):
14342         (mark_subwindow_cachels_as_not_updated): deleted.
14343         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14344         subwindow instance to the frame cache.
14345         (find_matching_subwindow): update for subwindow instance cache as
14346         a weak list.
14347         (update_widget_instances): ditto.
14348         (image_instance_type_to_mask):inlined.
14349         (free_frame_subwindow_instance_cache): new function. finalize all
14350         subwindows that are instantiated.
14351
14352         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14353         of cachel information.
14354         (IMAGE_INSTANCE_DISPLAY_X):
14355         (IMAGE_INSTANCE_DISPLAY_Y):
14356         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14357         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14358         (XIMAGE_INSTANCE_DISPLAY_X):
14359         (XIMAGE_INSTANCE_DISPLAY_Y):
14360         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14361         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14362         remove subwindow_cachel structure and function references.
14363         (image_instance_type_to_mask): inline from glyphs.c
14364
14365         * redisplay.c (redisplay_frame): remove subwindow_cachel
14366         references.
14367
14368         * frame.h (struct frame): remove subwindow_cachels.
14369         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14370
14371         * frameslots.h: add subwindow_instance_cache.
14372
14373         * window.c (replace_window): check subwindow cache of replacement.
14374         (window_unmap_subwindows_cache_mapper):
14375         (window_unmap_subwindows): new functions. Unmap all subwindows
14376         cached on this window.
14377         (mark_window_as_deleted): unmap all subwindows.
14378
14379 2000-04-27  Andy Piper  <andy@xemacs.org>
14380
14381         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14382
14383         * glyphs-widget.c (widget_layout): return something.
14384         (layout_layout): return something. Fail if not initialized.
14385         (layout_query_geometry): ditto.
14386         (image_instantiator_native_layout): new function. Initialized the
14387         native layout type.
14388         (widget_instantiate): don't do layout stuff here.
14389
14390         * glyphs.c (instantiate_image_instantiator): reorded calling or
14391         instantiate and post_instantiate with layout in between.
14392         (image_instance_layout): be more selective about deciding whether
14393         the layout has been done or not.
14394
14395         * glyphs.h (struct image_instantiator_methods): return a value
14396         from layout_method.
14397
14398 2000-04-26  Andy Piper  <andy@xemacs.org>
14399
14400         * glyphs.c (allocate_image_instance): make initial width and
14401         height unspecified. Set initialized to 0.
14402
14403         * syscommctrl.h new file. Encapsulates commctrl.h.
14404
14405         * syswindows.h new file. Encapsulates windows.h.
14406
14407         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14408         * nt.c: ditto.
14409         * console-msw.h: ditto.
14410
14411         * redisplay-tty.c (tty_output_display_block): remove layout references.
14412
14413         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14414         window handle rather than just the frame.
14415
14416         * glyphs.c (mark_image_instance): remove layout references.
14417         (print_image_instance): ditto.
14418         (image_instance_equal): ditto.
14419         (image_instance_hash): ditto.
14420         (decode_image_instance_type): ditto.
14421         (encode_image_instance_type): ditto.
14422         (image_instantiate): ditto.
14423         (allocate_glyph): ditto.
14424         (Fimage_instance_height): ditto.
14425         (Fimage_instance_width): ditto.
14426         (update_subwindow): ditto.
14427
14428         * redisplay-x.c (x_output_display_block): recode for layouts as
14429         widgets.
14430
14431         * redisplay-output.c (redisplay_output_layout): recode for layouts
14432         as widgets.
14433         (compare_runes): remove layout references.
14434
14435         * redisplay-msw.c (mswindows_output_display_block): recode for
14436         layouts as widgets.
14437
14438         * glyphs-widget.c (image_instantiator_layout): remove
14439         layout_possible_dest_types.
14440         (layout_possible_dest_types): deleted.
14441
14442         * glyphs.h (image_instance_type): remove layout references.
14443         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14444         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14445         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14446
14447 2000-04-25  Andy Piper  <andy@xemacs.org>
14448
14449         * glyphs-widget.c (image_instantiator_buttons):
14450         (image_instantiator_edit_fields):
14451         (image_instantiator_combo_box):
14452         (image_instantiator_scrollbar):
14453         (image_instantiator_progress_guage):
14454         (image_instantiator_tree_view):
14455         (image_instantiator_tab_control):
14456         (image_instantiator_labels):
14457         (image_instantiator_layout): call default post_instantiate method.
14458         (widget_post_instantiate): new function. Simply lays out the
14459         widgets.
14460
14461         * glyphs.h (struct image_instantiator_methods): add
14462         post_instantiate method.
14463
14464         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14465         method calls.
14466
14467 2000-04-23  Andy Piper  <andy@xemacs.org>
14468
14469         * glyphs.h (struct image_instantiator_methods): add
14470         decode_domain_method.
14471         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14472         derived from the domain.
14473         (IMAGE_INSTANCE_FRAME): new accessor.
14474         (XIMAGE_INSTANCE_FRAME): ditto.
14475
14476         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14477         instead of _SUBWINDOW_FRAME.
14478         (finalize_image_instance): ditto.
14479         (Fimage_instance_foreground): ditto.
14480         (Fimage_instance_background): ditto.
14481         (image_instantiate): ditto.
14482         (update_subwindow_cachel): ditto.
14483         (update_subwindow): ditto.
14484         (unmap_subwindow): ditto.
14485         (map_subwindow): ditto
14486         (subwindow_instantiate): ditto.
14487         * glyphs-msw.c (mswindows_update_widget): ditto.
14488         (mswindows_progress_gauge_instantiate): ditto.
14489         (mswindows_tab_control_update): ditto.
14490         * glyphs-x.c (x_update_widget): ditto.
14491         (x_widget_instantiate): ditto.
14492         (x_tab_control_instantiate): ditto.
14493         (x_tab_control_update): ditto.
14494         * event-msw.c (mswindows_wnd_proc): ditto
14495
14496         * glyphs-widget.c (image_instantiator_layout): use
14497         subwindow_decode_domain.
14498         (image_instantiator_buttons): ditto.
14499         (image_instantiator_edit_fields): ditto.
14500         (image_instantiator_combo_box): ditto.
14501         (image_instantiator_scrollbar): ditto.
14502         (image_instantiator_progress_guage): ditto.
14503         (image_instantiator_tree_view): ditto.
14504         (image_instantiator_tab_control): ditto.
14505         (image_instantiator_labels): ditto.
14506         (image_instantiator_layout): ditto.
14507
14508         * glyphs.c: add instance error checking to many functions.
14509         (instantiate_image_instantiator): decode device from cache_domain.
14510         (image_instantiate): partially rewrite by using
14511         decode_image_instantiator_domain to determine what domain the
14512         instance needs to be cached in.
14513         (decode_image_instantiator_domain): new function. Determine what
14514         domain the image needs to be cached in.
14515         (check_window_subwindow_cache): new error checking function.
14516         (check_instance_cache_mapper): ditto.
14517         (check_image_instance_structure): ditto.
14518         (subwindow_decode_domain): new function. Encodes a window as a
14519         subwindow's cache domain.
14520         (image_instantiator_format_create): use it for text and
14521         subwindows.
14522
14523 2000-04-21  Andy Piper  <andy@xemacs.org>
14524
14525         * glyphs.c (image_instance_device): new function.
14526         (image_instance_frame): new function.
14527         (image_instance_window): new function.
14528         (image_instance_live_p): new function.
14529
14530         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14531         cache to nil.
14532
14533         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14534         (IMAGE_INSTANCE_DOMAIN): new accessor.
14535         (XIMAGE_INSTANCE_DOMAIN): ditto.
14536
14537         * glyphs-x.c (x_finalize_image_instance): device->domain.
14538
14539         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14540         (mswindows_finalize_image_instance): ditto.
14541
14542         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14543         (gif_instantiate): ditto.
14544         (png_instantiate): ditto.
14545         (tiff_instantiate): ditto.
14546
14547         * glyphs.c (instantiate_image_instantiator): use domain rather
14548         than device.
14549         (mark_image_instance): device -> domain.
14550         (print_image_instance): ditto.
14551         (finalize_image_instance): ditto.
14552         (image_instance_equal): ditto.
14553         (allocate_image_instance): ditto.
14554         (Fcolorize_image_instance): ditto.
14555         (query_string_geometry): ditto.
14556         (image_instantiate): ditto
14557         (query_string_font): ditto.
14558         (image_instantiate): ditto.
14559         (update_subwindow): ditto.
14560         (unmap_subwindow): ditto.
14561         (map_subwindow): ditto.
14562         (subwindow_instantiate): ditto.
14563
14564         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14565         (DOMAIN_FRAME): ditto.
14566         (DOMAIN_WINDOW): ditto.
14567         (DOMAIN_LIVE_P): ditto.
14568         (XDOMAIN_DEVICE): ditto.
14569         (XDOMAIN_FRAME): ditto.
14570         (XDOMAIN_WINDOW): ditto.
14571
14572         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14573         a valid specifier domain.
14574
14575 2000-04-19  Andy Piper  <andy@xemacs.org>
14576
14577         * glyphs-widget.c (syms_of_glyphs_widget): remove
14578         widget-callback-current-channel.
14579         (vars_of_glyphs_widget): ditto.
14580         * glyphs.h: ditto
14581
14582         * gui.c (get_gui_callback): revert to previous behaviour.
14583
14584 2000-04-18  Andy Piper  <andy@xemacs.org>
14585
14586         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14587         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14588         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14589
14590         * glyphs.c (image_instance_equal): add margin_width.
14591         (image_instance_hash): ditto.
14592
14593         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14594         (layout_query_geometry): ditto.
14595         (layout_layout): ditto.
14596         (syms_of_glyphs_widget): add margin-width.
14597         (image_instantiator_layout): allow margin-width.
14598
14599         * glyphs.c (update_widget_instances): make a normal function.
14600         (syms_of_glyphs): remove Qupdate_widget_instances.
14601         * glyphs.h: ditto.
14602
14603         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14604         so that we don't corrupt ideas about the last event or
14605         command. Remove widget-callback-current-channel fiddling.
14606         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14607
14608 2000-05-01  Martin Buchholz <martin@xemacs.org>
14609
14610         * XEmacs 21.2.33 is released.
14611
14612 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14613
14614         * make-src-depend: Allow dots in header file name.
14615
14616 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14617
14618         * mule-charset.h (struct charset_lookup): Add
14619         next_allocated_1_byte_leading_byte and
14620         next_allocated_2_byte_leading_byte.
14621         * mule-charset.c: Move above two variables so that those values
14622         will be dumped.
14623
14624 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14625
14626         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14627         when string length is zero.
14628         (find_charsets_in_emchar_string): Ditto.
14629
14630 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14631
14632         * lisp.h: extern Qdialog and Qmenubar.
14633
14634         * gui-x.c: added events.h.
14635                 also fixed typo which made the file uncompilable.
14636
14637         * general.c: Added Qmenubar and Qdialog
14638
14639 2000-04-28  Ben Wing  <ben@xemacs.org>
14640
14641         * frame-msw.c (mswindows_init_frame_1):
14642         * frame-msw.c (mswindows_mark_frame):
14643         * event-msw.c (mswindows_enqueue_dispatch_event):
14644         * console-msw.h:
14645         * console-msw.h (struct mswindows_frame):
14646         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14647         there are now three hash tables for callbacks.
14648         mswindows_enqueue_dispatch_event is no longer static.
14649
14650         * dialog-x.c (maybe_run_dbox_text_callback):
14651         * dialog-x.c (dbox_descriptor_to_widget_value):
14652         switch to new cons3 form for callbacks.
14653
14654         * glyphs-msw.c (mswindows_register_gui_item):
14655         * glyphs-msw.c (mswindows_widget_instantiate):
14656         * glyphs-msw.c (add_tree_item):
14657         * glyphs-msw.c (add_tab_item):
14658         new image instance parameter, so it can be passed to callback-ex.
14659         respect :callback-ex as well as :callback.
14660
14661         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14662         add :callback-ex.
14663
14664         * glyphs.c (print_image_instance):
14665         prettify, e.g. now prints widget type.
14666
14667         * gui-x.h:
14668         certain funs have new image instance parameter.
14669
14670         * gui.c:
14671         * gui.c (get_gui_callback):
14672         * gui.c (gui_item_add_keyval_pair):
14673         * gui.c (gui_item_init):
14674         * gui.c (gui_add_item_keywords_to_plist):
14675         * gui.c (mark_gui_item):
14676         * gui.c (gui_item_hash):
14677         * gui.c (gui_item_equal):
14678         * gui.c (copy_gui_item):
14679         * gui.c (syms_of_gui):
14680         recognize callback-ex in a number of places.
14681         also, fix the annoying "can't get out of yes-no dialog" bug.
14682
14683         * gui.h:
14684         * gui.h (struct Lisp_Gui_Item):
14685         recognize callback-ex in a number of places.
14686
14687         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14688         new parameter in button_item_to_widget_value.
14689
14690         * glyphs-x.c (x_update_widget):
14691         * glyphs-x.c (x_button_instantiate):
14692         * glyphs-x.c (x_button_update):
14693         * glyphs-x.c (x_progress_gauge_instantiate):
14694         * glyphs-x.c (x_edit_field_instantiate):
14695         * glyphs-x.c (x_combo_box_instantiate):
14696         * glyphs-x.c (x_tab_control_instantiate):
14697         * glyphs-x.c (x_label_instantiate):
14698         new image instance parameter in various places.
14699
14700         * event-Xt.c:
14701         * event-Xt.c (enqueue_Xt_dispatch_event):
14702         this fun gets exported.
14703
14704         * gui-msw.c:
14705         * gui-msw.c (mswindows_handle_gui_wm_command):
14706         handle both :callback and :callback-ex, and generate our own
14707         event because it's one of the callback-ex arguments.
14708
14709         * gui-x.c:
14710         * gui-x.c (popup_selection_callback):
14711         handle both :callback and :callback-ex, and generate our own
14712         event because it's one of the callback-ex arguments.
14713         * gui-x.c (button_item_to_widget_value):
14714         * gui-x.c (gui_items_to_widget_values_1):
14715         * gui-x.c (gui_item_children_to_widget_values):
14716         * gui-x.c (gui_items_to_widget_values):
14717         new image instance parameter in various places.
14718
14719         * fns.c (Freplace_list):
14720         fix small typo in doc string.
14721
14722         * lisp.h:
14723         declare enqueue_Xt_dispatch_event.
14724
14725 2000-04-28  Ben Wing  <ben@xemacs.org>
14726
14727         * buffer.c:
14728         * buffer.c (Frecord_buffer):
14729         * buffer.c (syms_of_buffer):
14730         delete record-buffer-hook.
14731
14732         * fns.c:
14733         * fns.c (Freplace_list):
14734         * fns.c (syms_of_fns):
14735         new primitive replace-list.
14736
14737         * frameslots.h:
14738         slot for old buffer-alist.
14739
14740         * lisp.h:
14741         exfun replace-list.
14742
14743         * redisplay.c:
14744         * redisplay.c (redisplay_frame):
14745         * redisplay.c (syms_of_redisplay):
14746         * redisplay.c (vars_of_redisplay):
14747         new hook buffer-list-changed-hook.
14748         call it.
14749
14750 2000-04-27  Ben Wing  <ben@xemacs.org>
14751
14752         * extents.h: extern in_modeline_generation.
14753
14754         * redisplay.c (generate_formatted_string_db): set
14755         in_modeline_generation.
14756
14757         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14758         flags if in modeline generation.  otherwise frame-modified-tick
14759         is ticked far too often.
14760         Declare in_modeline_generation.
14761
14762 2000-04-26  Ben Wing  <ben@xemacs.org>
14763
14764         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14765         option.
14766         (vars_of_emacs): add quick-build as an error-checking option.
14767         A bit kludgy, but there doesn't seem much point in creating
14768         a real var for this.
14769
14770         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14771
14772 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14773
14774         * redisplay.h (struct display_line): Add a new variable,
14775         line_continuation.
14776
14777         * redisplay.c (create_text_block): Set dl->line_continuation if
14778         the line continues.
14779         (create_string_text_block): Ditto.
14780         (regenerate_window_incrementally): Use line_continuation instead
14781         of searching continuation glyph.
14782         (add_margin_runes): Call add_glyph_rune.
14783         (add_glyph_rune): Handle margin glyph.
14784
14785 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14786
14787         * filelock.c (fill_in_lock_file_name):
14788         ANSIfy.
14789         Check for IS_ANY_SEP instead of '/'.
14790         (lock_file_1):
14791         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14792         Never check errno without first seeing that system call failed.
14793         (unlock_file): Add GCPRO.
14794         (Flock_buffer): Fix docstring.
14795         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14796
14797 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14798
14799         * sysdep.c (get_pty_max_bytes):
14800         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14801         strings longer than 252 bytes.
14802
14803         * md5.c: Unconditionally include ANSI header <limits.h>
14804
14805         * glyphs-x.c (convert_EImage_to_XImage):
14806         * lisp-union.h (union Lisp_Object):
14807         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14808
14809 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14810
14811         * filelock.c (current_lock_owner): Remove unused variable o, p.
14812
14813 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14814
14815         * callint.c: Remove multiply defined symbol Qlet
14816         (syms_of_callint): ditto.
14817
14818 2000-04-14  Andy Piper  <andy@xemacs.org>
14819
14820         * general.c (syms_of_general): add last-command, this-command, let
14821         and funcall.
14822
14823         * lisp.h: declare various symbols.
14824
14825         * glyphs.h: declare Qwidget_callback_current_channel;
14826
14827         * glyphs-widget.c (syms_of_glyphs_widget): add
14828         Qgui_callback_current_channel.
14829         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14830
14831         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14832         widget-callback-current-channel when invoking the interactive
14833         arg. Also bind last-command and next-command when invoking the
14834         widget updates.
14835         * gui-x.c (popup_selection_callback): ditto.
14836
14837         * gui.c (get_gui_callback): massage args so that we are always
14838         calling eval. This allows us to add our own variable bindings
14839         outside.
14840
14841         * glyphs-x.c (x_button_instantiate): use
14842         gui_items_to_widget_values since this is GC safe.
14843         (x_progress_gauge_instantiate): ditto.
14844         (x_edit_field_instantiate): ditto.
14845         (x_label_instantiate): ditto.
14846
14847         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14848         (emacs_Xt_event_widget_focus_out): new function
14849         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14850         focus.
14851         (emacs_Xt_event_add_widget_actions): new function. add focus
14852         functions as actions.
14853         (init_event_Xt_late): use it.
14854
14855 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14856
14857         * event-stream.c (Fdispatch_event): Doc fix.
14858
14859 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14860
14861         * postgresql.c: Remove all references to PQsetenv*.
14862
14863         * postgresql.h: Remove references to PGsetenvHandler object.
14864         * lrecord.h (lrecord_type): Ditto.
14865
14866 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14867
14868         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14869         real_heigh and real_width members, and accessor macros for these.
14870
14871         * glyphs-msw.c (init_image_instance_geometry): New function.
14872         (init_image_instance_from_dibitmap): Use it.
14873         (mswindows_resource_instantiate): Use it.
14874         (init_image_instance_from_xbm_inline): Use it.
14875         (mswindows_initialize_image_instance_mask): Use real bitmap
14876         geometry.
14877         (mswindows_create_resized_bitmap): Ditto.
14878         (mswindows_create_resized_mask): Ditto.
14879
14880         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14881         and bitmap to their surface size.
14882
14883 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14884
14885         * process-unix.c (unix_send_process): Guard against process MIA
14886         after Faccept_process_output.
14887
14888 2000-04-11  Ben Wing  <ben@xemacs.org>
14889
14890         * eval.c (unbind_to_hairy): fix brokenness introduced by
14891         nanosecond speed improvements.
14892
14893 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14894
14895         * sunplay.c (init_device): To play sounds correctly, the device
14896         apparently needs to be initialized at least once by XEmacs.  Make
14897         it so.
14898
14899 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14900
14901         * redisplay.c (add_margin_runes): Add text image glyph
14902           handling.
14903
14904 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14905
14906         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14907         gcc is newer than 2.5.
14908
14909 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14910
14911         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14912
14913         * fns.c (size_bit_vector):
14914         * alloc.c (size_vector):
14915         (make_vector_internal):
14916         (make_bit_vector_internal):
14917         (sweep_bit_vectors_1):
14918         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14919
14920 2000-04-06  Andy Piper  <andy@xemacs.org>
14921
14922         * gmalloc.c (malloc): undo previous change.
14923         (malloc): ditto.
14924         (free): ditto.
14925         (realloc): ditto.
14926
14927 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14928
14929         * line-number.c (buffer_line_number): Revert to former version.
14930
14931 2000-04-06  Andy Piper  <andy@xemacs.org>
14932
14933         * gmalloc.c (malloc): add error checking.
14934         (malloc): ditto.
14935         (free): ditto.
14936         (realloc): ditto.
14937
14938         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14939         button_item_to_widget_value arg.
14940
14941         * glyphs-x.c (x_button_instantiate): add extra
14942         button_item_to_widget_value arg.
14943         (x_progress_gauge_instantiate): ditto.
14944         (x_edit_field_instantiate): ditto.
14945         (x_label_instantiate): ditto.
14946
14947         * gui-x.c (gui_items_to_widget_values_1): add extra
14948         button_item_to_widget_value arg.
14949         (button_item_to_widget_value): add extra menu_item_p arg.
14950
14951         * gui-x.h: change signature of button_item_to_widget_value.
14952
14953         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14954         button_item_to_widget_value arg.
14955
14956 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14957
14958         * buffer.h (struct buffer): auto_save_modified should be long.
14959
14960 2000-04-05  Andy Piper  <andy@xemacs.org>
14961
14962         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14963         type.
14964         (button_query_geometry): give a little more room so that athena
14965         buttons fit.
14966
14967 2000-04-05  Andy Piper  <andy@xemacs.org>
14968
14969         * faces.c (complex_vars_of_faces): The widget face should inherit
14970         the font of the gui-element face.
14971
14972 2000-04-04  Andy Piper  <andy@xemacs.org>
14973
14974         * glyphs-x.c (x_button_update): new function. unconditionally
14975         update a button's state when the instance is dirty.
14976         (image_instantiator_format_create_glyphs_x): add x_button_update.
14977         (x_widget_instantiate): remove old resize cruft.
14978
14979 2000-04-02  Andy Piper  <andy@xemacs.org>
14980
14981         * frame.c (change_frame_size_1): The introduction of gutters means
14982         that we need to allow 0 as a potential frame dimension.
14983
14984 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14985
14986         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14987         image glyph if allow_cursor.
14988         (add_hscroll_rune): Don't allow cursor to border glyph.
14989         (create_text_block): Ditto.
14990
14991         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14992         text not in buffer.
14993         (redisplay_output_layout): Call ensure_face_cachel_complete for
14994         text image glyph.
14995
14996
14997 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14998
14999         * redisplay.c (add_glyph_rune): Adding text image as text runes.
15000
15001         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
15002         not in buffer
15003
15004         * redisplay-tty.c (tty_output_display_block): Delete the routine
15005         for text image glyph
15006         * redisplay-x.c (x_output_display_block): ditto
15007         * redisplay-msw.c (mswindows_output_display_block): ditto
15008
15009 2000-02-02  Mike Alexander  <mta@arbortext.com>
15010
15011         Note: Some of these were committed by accident as part of other
15012         patches.
15013
15014         * regex.c (regex_compile): Avoid compiler warnings.
15015
15016         * ntproc.c (sys_spawnve): Avoid compiler warnings.
15017
15018         * nt.h: Declare term_ntproc correctly.
15019
15020         * nt.c: Remove incorrect declaration of get_home_directory which
15021         is declared correctly in lisp.h.
15022
15023         * keymap.c (get_keyelt): Avoid compiler warnings.
15024         (raw_lookup_key_mapper): Avoid compiler warnings.
15025
15026         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
15027
15028         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
15029
15030         * filemode.c (mode_string): Avoid compiler warnings.
15031
15032         * file-coding.c (Fcoding_system_aliasee): Add return statement to
15033         avoid warning.
15034
15035         * events-mod.h: Undef some things that winuser.h defines differently.
15036
15037         * data.c (Faset): Avoid compiler warnings.
15038
15039         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
15040
15041 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15042
15043         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
15044         Fall through to simple beep on error.
15045         Replace "extern" by real header file.
15046
15047         * linuxplay.c: Use nativesound.h
15048         (play_sound_data): Return error code. Be less verbose on error.
15049
15050         * sunplay.c: Use nativesound.h
15051         (play_sound_data): Return error code. Be less verbose on error.
15052
15053         * ntplay.c: Use nativesound.h
15054         (play_sound_data): Return fake error code
15055
15056         * sgiplay.c: Use nativesound.h
15057         (play_sound_data): Return error code
15058
15059         * hpplay.c: Use nativesound.h, partially implement
15060         new error code. Break compilation until finished.
15061         (play_sound_data): error code.
15062
15063         * nativesound.h (play_sound_file):
15064           (play_sound_data): Prototype in new header.
15065
15066 2000-03-31  Andy Piper  <andy@xemacs.org>
15067
15068         * glyphs-widget.c: (button_query_geometry): new function. Adjust
15069         for toggle and radio buttons.
15070         (image_instantiator_buttons): use it.
15071
15072 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15073
15074         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
15075         (x_update_horizontal_scrollbar_callback): Return if no mirror was
15076         found. Scrollbar event probably belonged to some old config.
15077
15078 2000-03-31  Andy Piper  <andy@xemacs.org>
15079
15080         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
15081         than 1.
15082         (initialize_widget_image_instance): default layout to
15083         LAYOUT_HORIZONTAL rather than 0.
15084         (widget_instantiate): reverse the item list at the end rather than
15085         every iteration.
15086         (layout_layout): re-code for the border text at the front of the
15087         item list rather than at the end.
15088         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
15089         provided by the user.
15090         (widget_query_geometry): comment.
15091
15092 2000-03-30  Andy Piper  <andy@xemacs.org>
15093
15094         * glyphs-widget.c (image_instantiator_layout): allow standard
15095         widget keywords in layouts.
15096
15097         * gutter.c (output_gutter): cope with nil gutter contents.
15098
15099         * frame.c (Fset_frame_properties): add gutter docs.
15100
15101 2000-03-29  Andy Piper  <andy@xemacs.org>
15102
15103         * toolbar-msw.c (TBSTYLE_FLAT): add.
15104         (mswindows_output_toolbar): minor fiddling.
15105
15106 2000-03-29  Andy Piper  <andy@xemacs.org>
15107
15108         * gutter.c (output_gutter): force gutter size recalculation if
15109         what we are trying to display won't fit.
15110         (update_gutter_geometry): new function. A per-gutter version of
15111         update_frame_gutter_geometry.
15112         (update_frame_gutter_geometry): use it.
15113         (redraw_exposed_gutter): add extra debugging output.
15114
15115 2000-03-28  Mike Alexander  <mta@arbortext.com>
15116
15117         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15118         (pdump_file_unmap): Implement it on Windows
15119         (pdump_file_get): Save alocated handles for pdump_file_unmap
15120
15121 2000-03-28  Andy Piper  <andy@xemacs.org>
15122
15123         * gui.c (get_gui_callback): treat Quit specially.
15124
15125 2000-03-27  Andy Piper  <andy@xemacs.org>
15126
15127         * glyphs.c (image_instantiate): be careful to check in the same
15128         way we assigned.
15129
15130 2000-03-27  Didier Verna  <didier@xemacs.org>
15131
15132         * config.h.in: define the proper SMART_INCLUDE macro.
15133         handle renaming of `foo_h_path' to `foo_h_file'.
15134
15135         * database.c: ditto.
15136
15137         * emacs.c: ditto.
15138
15139         * linuxplay.c: ditto.
15140
15141         * terminfo.c: ditto.
15142
15143         * tooltalk.h: ditto.
15144
15145 2000-03-27  Andy Piper  <andy@xemacs.org>
15146
15147         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15148         gets updated whenever the face might have changed.
15149
15150 2000-03-26  Mike Alexander  <mta@arbortext.com>
15151
15152         * dumper.c (pdump_resource_free): Fix the comment.
15153
15154 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15155
15156         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15157
15158 2000-03-22  Mike Alexander  <mta@arbortext.com>
15159
15160         * dumper.c: Include Windows headers on Windows
15161         (pdump_resource_free): Add a body to the function
15162         (pdump_load): exe_name -> exe_path and add some comments.
15163
15164 2000-03-25  Mike Alexander  <mta@arbortext.com>
15165
15166         * gui.c (copy_gui_item_tree): Return a value in all cases
15167
15168 2000-03-21  Didier Verna  <didier@xemacs.org>
15169
15170         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15171         lwlib/config.h.in.
15172         (SMART_INCLUDE): new macro.
15173         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15174         the proper location.
15175
15176         * postgresql.c: use it.
15177
15178         * inline.c: ditto.
15179
15180 2000-03-24  Andy Piper  <andy@xemacs.org>
15181
15182         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15183         do this.
15184
15185 2000-03-24  Andy Piper  <andy@xemacs.org>
15186
15187         * redisplay-output.c (compare_runes): use image_instance_changed
15188         to detect changes. Do not depend on glyphs_changed, only depend on
15189         dirtiness.
15190          (redisplay_output_layout): add debug messages.
15191         (compare_runes): ditto.
15192
15193         * glyphs.h: declare new functions.
15194         (struct Lisp_Image_Instance): remove percent and associated
15195         accessors.
15196
15197         * gui.h: declare new copying functions.
15198
15199         * gui.c (copy_gui_item_tree): new function.
15200         (copy_gui_item): new function.
15201         (gui_item_id_hash): revert to standard hash.
15202         (gui_item_hash): ditto.
15203         (gui_item_hash_internal): deleted.
15204         (mark_gui_item): mark value.
15205         (gui_item_add_keyval_pair): add value.
15206         (gui_item_init): ditto.
15207         (gui_add_item_keywords_to_plist): ditto.
15208         (gui_item_equal): ditto.
15209         (syms_of_gui): add Q_value.
15210
15211         * glyphs-x.c (x_progress_gauge_update): use pending items and
15212         value for setting the state.
15213         (x_update_widget): don't set items from pending here.
15214
15215         * glyphs-widget.c (update_widget): update items here.
15216         (progress_gauge_set_property): use items for storing value. Put
15217         new value in pending items.
15218
15219         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15220         items for new value. Convert percent -> value.
15221         (mswindows_tab_control_update): don't update items here.
15222
15223         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15224         (update_subwindow): ditto.
15225         (image_instance_changed): new function. Compare hash values and
15226         past and present widget items.
15227         (image_instantiate): We more careful about where we instantiate
15228         things.
15229         (image_instantiate): add error checking.
15230
15231         * gutter.c (syms_of_gutter): use -hook.
15232
15233 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15234
15235         * console-tty.c (Fset_console_tty_input_coding_system): Use
15236         Qkeyboard.
15237         (Fset_console_tty_output_coding_system): Use Qterminal.
15238         (tty_init_console): Use Qkeyboard and Qterminal.
15239
15240 2000-03-21  Ben Wing  <ben@xemacs.org>
15241
15242         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15243         From Mike Alexander <mta@arbortext.com>.
15244
15245 2000-03-21  Ben Wing  <ben@xemacs.org>
15246
15247         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15248         process brokenness.  Proper implementation to come.
15249         * callproc.c:
15250         Rename call-process-internal to old-call-process-internal.
15251         New impl. in process.el.
15252
15253 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15254
15255         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15256
15257 2000-03-20  Andy Piper  <andy@xemacs.org>
15258
15259         * glyphs.c (full_list_hash): make hashes of the same elements in
15260         different orders return different values.
15261
15262 2000-03-20  Martin Buchholz <martin@xemacs.org>
15263
15264         * XEmacs 21.2.32 is released.
15265
15266 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15267
15268         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15269         (DFC_MALLOC_USE_CONVERTED_DATA):
15270         Add aliasing-safe casts to allow use with char* or unsigned char*
15271         lvalues.
15272
15273         * eldap.c (Fldap_open):
15274         (Fldap_search_basic):
15275         (Fldap_add):
15276         (Fldap_modify):
15277         Make C++-compilable.
15278         Make sure GCPRO'ed variables are initialized.
15279         Use temp variables to avoid repeated calls to Flength.
15280
15281 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15282
15283         * sysfile.h:
15284         Make sure PATH_MAX is always defined.
15285         Include limits.h for PATH_MAX.
15286         Deprecate use of MAXPATHLEN.
15287
15288 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15289
15290         * emacs.c: Add reinit_vars_of_fileio.
15291         * symsinit.h: Add reinit_vars_of_fileio.
15292         * fileio.c (reinit_vars_of_fileio): New.
15293         * fileio.c (Fmake_temp_name):
15294         Initialize temp_name random number from microseconds to make
15295         collisions even less likely.  Initialize always at process startup
15296         time.  (make-temp-name) used to return the same file name twice in
15297         a row when PDUMP.
15298         Random stylistic fiddling.
15299         Comment fixes.
15300
15301 2000-03-20  Andy Piper  <andy@xemacs.org>
15302
15303         * glyphs.c (image_instantiate): allow text glyphs to be
15304         instantiated in the minibuffer window.
15305
15306 2000-03-19  Andy Piper  <andy@xemacs.org>
15307
15308         * glyphs.c (image_instance_hash): be careful about which items we
15309         hash on.
15310
15311         * glyphs-widget.c (tab_control_set_property): record into pending
15312         items rather than the actual items.
15313
15314         * glyphs-x.c (x_update_widget): use pending items to update with.
15315
15316         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15317         to update with.
15318
15319         * glyphs.c (mark_image_instance): mark pending items.
15320
15321         * window.c (Fset_window_configuration): record the buffer.
15322         (Fselect_window): totally revert previous change which breaks many
15323         things.
15324
15325 2000-03-18  Andy Piper  <andy@xemacs.org>
15326
15327         * glyphs-msw.c (mswindows_tab_control_update): force selected
15328         item.
15329
15330         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15331         window domain cache, otherwise we get inconsistencies at
15332         startup. There is something fishy at startup which can lead to the
15333         minibuffer being the selected window when the gutter content is
15334         instantiated.
15335
15336         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15337         gcpros.
15338         (parse_gui_item_tree_children): ditto.
15339         (parse_gui_item_tree_item): ditto.
15340
15341         * glyphs.c (Fupdate_widget_instances): return something.
15342
15343 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15344
15345         * window.c (Fselect_window): Undo 2000-03-17 change.
15346
15347 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15348
15349         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15350         against v7.0 libraries.  Insta-coredump city until the postgres
15351         folks fix it.
15352
15353 2000-03-17  Andy Piper  <andy@xemacs.org>
15354
15355         * faces.c (complex_vars_of_faces): don't give the widget face an
15356         inherited background pixmap.
15357
15358         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15359         selected item.
15360
15361         * event-stream.c (Fdispatch_non_command_events): return something.
15362
15363         * gutter.c (output_gutter): use widget face.
15364         (clear_gutter): ditto.
15365
15366         * NEWS: adjust again.
15367
15368         * window.c (Fselect_window): make sure this runs to completion to
15369         avoid oddities with Fset_window_configuration.
15370         (Fcurrent_window_configuration): in general do not save the
15371         minibuffer as the selected window.
15372
15373         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15374
15375 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15376
15377         * emacs.c (Frunning_temacs_p): Revert previous patch.
15378         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15379
15380 2000-03-16  Andy Piper  <andy@xemacs.org>
15381
15382         * glyphs-x.c (x_tab_control_update): if no widget values then
15383         return.
15384
15385         * NEWS: update for new features.
15386
15387         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15388         synthetic event to the native system.
15389         (reinit_vars_of_event_Xt): set force_event_pending to
15390         emacs_Xt_force_event_pending.
15391
15392         * events.h (struct event_stream): add force_event_pending.
15393
15394         * specifier.c (recompute_one_cached_specifier_in_window): add
15395         comment.
15396
15397         * redisplay.c (redisplay_frame): don't call
15398         update_frame_subwindows. Reset subwindow cachels when
15399         subwindows_changed, removing this was an optimization too far.
15400
15401         * redisplay-output.c (compare_runes): reorganize so that we catch
15402         glyph changes when we want them. Set optimize_output when this
15403         would help layouts.
15404         (redisplay_output_layout): remove frame_really_changed, use
15405         optimize_output instead.
15406
15407         * redisplay-msw.c (mswindows_output_display_block): reset
15408         optimize_output after outputting a glyph.
15409         * redisplay-x.c (x_output_display_block): ditto.
15410         * redisplay-tty.c (tty_output_display_block): ditto.
15411
15412         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15413         functions.
15414         (gutter_specs_changed): do specific gutter positions.
15415         (top_gutter_specs_changed): new function. Only update the
15416         specified gutter specs.
15417         (bottom_gutter_specs_changed): ditto.
15418         (left_gutter_specs_changed): ditto.
15419         (right_gutter_specs_changed): ditto.
15420
15421         * gui.c (gui_item_hash_internal): new function, does a real hash.
15422         (gui_item_id_hash): use it.
15423         (gui_item_hash): hash the eval'ed gui_item.
15424
15425         * gui-x.c (popup_selection_callback): send an eval event to call
15426         Fupdate_widget_instances.
15427
15428         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15429         to call Fupdate_widget_instances.
15430
15431         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15432         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15433
15434         * glyphs.c: (update_frame_subwindows): deleted.
15435         (Fupdate_widget_instances): new function for updating the dirty
15436         state of widgets that might have changed.
15437         (syms_of_glyphs): add Qupdate_widget_instances.
15438         (full_list_hash): hash a list completely.
15439         (image_instance_hash): use it for items and properties.
15440
15441         * frame-msw.c (mswindows_size_frame_internal): remove unused
15442         variable.
15443
15444         * faces.h (struct face_cachel): fix comment.
15445
15446         * event-stream.c (Fdispatch_non_command_events): new
15447         function. Process non-command events, forcing an event cycle
15448         beforehand.
15449         (syms_of_event_stream): declare.
15450         (event_stream_force_event_pending): new function. Force an event
15451         on the native event queue so that an event cycle will occur next
15452         time we check.
15453
15454         * event-msw.c:
15455         (struct ntpipe_shove_stream):
15456         (mswindows_enqueue_dispatch_event):
15457         (mswindows_dequeue_dispatch_event):
15458         (mswindows_cancel_dispatch_event):
15459         (mswindows_pump_outstanding_events):
15460         (mswindows_drain_windows_queue):
15461         (mswindows_handle_paint):
15462         (mswindows_wnd_proc):
15463         (mswindows_key_to_emacs_keysym):
15464         (get_process_input_waitable):
15465         (emacs_mswindows_delete_stream_pair): re-indent file.
15466         (mswindows_need_event): do not process further fds if the windows
15467         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15468         fixes the 100% cpu problem.
15469         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15470
15471 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15472
15473         * alloc.h: New.
15474         * dumper.h: New.
15475         * dumper.c: New.
15476
15477         * emacs.c: Moved dump file searching to dumper.c.
15478         (Frunning_temacs_p): Fixed.
15479
15480         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15481         last_lrecord_type_index_assigned.
15482
15483 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15484
15485         * symsinit.h: Added reinit parameter to init_console_stream
15486         declaration.
15487
15488         * lisp.h: Added file parameter to pdump_load declaration.
15489
15490         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15491         support.  Added dump file searching.
15492
15493         * config.h.in: Added EMACS_PROGNAME.
15494
15495         * console-stream.c (init_console_stream): Fix reinitialisation
15496         when running from temacs.
15497
15498         * alloc.c (pdump): Add id support.
15499         (pdump_load): Add file parameter and signature/id support.
15500
15501         * Makefile.in.in: Add full pdump support.
15502
15503 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15504
15505         * postgresql.c: Update documentation to reflect latest code
15506         status.
15507         (print_result): Show tuple counts in printed representation when
15508         appropriate.
15509         (Fpq_put_nbytes): MULE-ize.
15510         (Fpq_get_line_async): Ditto.
15511
15512 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15513
15514         * postgresql.c (Fpq_lo_import): Fix return value.
15515         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15516
15517 2000-03-13  Ben Wing  <ben@xemacs.org>
15518
15519         * alloc.c (pdump_load):
15520         Fix compile warning under mswin.
15521
15522 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15523
15524         * postgresql.c: Mule-ization, bug fixes.
15525         Use PG_CODING to encapsulate coding system name changes.
15526         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15527         (pg-coding-system): Create.
15528
15529         (Fpq_conn_defaults): Mule-ize.
15530         (Fpq_connectdb): Mule-ize & bug fix.
15531         (Fpq_connect_start): Mule-ize.
15532         (Fpq_set_client_encoding): Mule-ize.
15533         (Fpq_finish): Document `DEAD' connection status.
15534         (Fpq_clear): Ditto.
15535         (Fpq_pgconn): Mule-ize.
15536         (Fpq_exec): Mule-ize & bug fix.
15537         (Fpq_send_query): Ditto.
15538         (Fpq_get_result): Ditto.
15539         (Fpq_res_status): Mule-ize.
15540         (Fpq_result_error_message): Mule-ize.
15541         (Fpq_ntuples): fix comments.
15542         (Fpq_fname): Mule-ize.
15543         (Fpq_fnumber): Mule-ize.
15544         (Fpq_ftype): fix comments.
15545         (Fpq_get_value): Mule-ize.
15546         (Fpq_cmd_status): Ditto.
15547         (Fpq_cmd_tuples): Ditto.
15548         (Fpq_oid_value): Ditto.
15549         (Fpq_notifies): Ditto.
15550         (Fpq_lo_import): Ditto.
15551         (Fpq_lo_export): Ditto.
15552         (Fpq_get_line): Ditto.
15553         (Fpq_put_line): Mule-ize and bug fix.
15554         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15555
15556 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15557
15558         * postgresql.c (vars_of_postgresql): Mule-ize.
15559         (Fpq_conn_defaults): Ditto.
15560
15561 2000-03-12  Ben Wing  <ben@xemacs.org>
15562
15563         * alloc.c (Fmake_byte_code):
15564         * alloc.c (debug_string_purity_print):
15565         * alloc.c (pdump_backtrace):
15566         * alloc.c (pdump_get_indirect_count):
15567         * alloc.c (pdump_register_sub):
15568         * alloc.c (pdump_register_object):
15569         * alloc.c (pdump_register_struct):
15570         * alloc.c (pdump_dump_data):
15571         * alloc.c (pdump_reloc_one):
15572         Minor cleanups.
15573
15574         * console-msw.c:
15575         * console-msw.c (GetConsoleHwnd):
15576         * console-msw.c (msw_hide_console):
15577         * console-msw.c (msw_show_console):
15578         * console-msw.c (msw_ensure_console_buffered):
15579         * console-msw.c (msw_output_console_string):
15580         * console-msw.c (console_type_create_mswindows):
15581
15582         a) Added functions to manipulate the console window for use with
15583         shell support.
15584
15585         b) Added support for writing text to the console, which is now
15586         used under Windows when xemacs is not being run non-interactively,
15587         to write text that would otherwise be destined for stdout because
15588         under these circumstances, text written to stdout tends to
15589         disappear and not be seen.
15590
15591         * console-msw.h:
15592         * event-Xt.c:
15593         * event-Xt.c (x_event_to_emacs_event):
15594         * event-Xt.c (describe_event_window):
15595         * events-mod.h (XEMACS_MOD_CONTROL):
15596         * events.c:
15597         * events.c (Fmake_event):
15598         * events.c (character_to_event):
15599         * events.c (event_to_character):
15600         * events.c (format_event_object):
15601         * events.c (Fevent_modifiers):
15602         * events.h:
15603         * events.h (struct key_data):
15604         * events.h (struct button_data):
15605         * events.h (struct misc_user_data):
15606         * frame-x.c (Fcde_start_drag_internal):
15607         * frame-x.c (Foffix_start_drag_internal):
15608         * gpmevent.c (Freceive_gpm_event):
15609         * keymap.c:
15610         * keymap.c (bucky_sym_to_bucky_bit):
15611         * keymap.c (control_meta_superify):
15612         * keymap.c (make_key_description):
15613         * keymap.c (keymap_lookup_directly):
15614         * keymap.c (create_bucky_submap):
15615         * keymap.c (keymap_store):
15616         * keymap.c (define_key_check_and_coerce_keysym):
15617         * keymap.c (define_key_parser):
15618         * keymap.c (define_key_alternate_name):
15619         * keymap.c (Fdefine_key):
15620         * keymap.c (raw_lookup_key_mapper):
15621         * keymap.c (struct map_keymap_unsorted_closure):
15622         * keymap.c (map_keymap_unsorted_mapper):
15623         * keymap.c (map_keymap_sort_predicate):
15624         * keymap.c (map_keymap_sorted):
15625         * keymap.c (accessible_keymaps_mapper_1):
15626         * keymap.c (where_is_recursive_mapper):
15627         * keymap.c (describe_map_mapper):
15628         * keymap.c (describe_map_sort_predicate):
15629         * keymap.c (describe_map):
15630         * keymap.c (complex_vars_of_keymap):
15631         And a number of other files, the key modifier preprocessor
15632         constants that xemacs uses have names that conflict with constants
15633         defined under MS Windows for other purposes, so they were renamed
15634         to begin with the prefix XEMACS_. The variables that hold such
15635         modifiers were changed to consistently be of type int to fix
15636         various compile warnings.
15637
15638         * console.c (complex_vars_of_console):
15639         * device.c:
15640         * device-msw.c:
15641         * device-msw.c (mswindows_finish_init_device):
15642         * device-msw.c (msw_get_workspace_coords):
15643         * device-msw.c (mswindows_device_system_metrics):
15644         and various other files, added support for a new
15645         device property called offset-workspace which returns the position
15646         of the upper left corner of the workspace area and goes along with
15647         the existing size-workspace property.
15648
15649         * dialog-msw.c:
15650         * dialog-msw.c (push_bufbyte_string_as_unicode):
15651         * dialog-msw.c (mswindows_popup_dialog_box):
15652         Added support for XEmacs-style accelerator specifications in
15653         button text.  Note: I didn't add support for this under X Windows,
15654         and somebody needs to do this.
15655
15656         * dialog.c:
15657         * dialog.c (Fpopup_dialog_box):
15658         Documented the support for accelerators that was just mentioned.
15659
15660         editfns.c (get_home_directory): Changed behavior under Windows
15661         when HOME not defined; former behavior was irretrievably broken.
15662
15663         * emacs.c:
15664         * emacs.c (main_1):
15665         * emacs.c (main):
15666         * minibuf.c (clear_echo_area_internal):
15667         * minibuf.c (echo_area_append):
15668         * print.c:
15669         * print.c (std_handle_out_external):
15670         * print.c (std_handle_out_va):
15671         * print.c (fatal):
15672         * print.c (write_string_to_stdio_stream):
15673         * print.c (output_string):
15674         * print.c (debug_print):
15675         * print.c (debug_backtrace):
15676         * print.c (debug_short_backtrace):
15677         Cleaned up the code that prints text to stdout so that this can be
15678         changed to output into a console window instead under MS Windows,
15679         as described above.
15680
15681         * eval.c:
15682         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15683         * eval.c (internal_catch):
15684         * eval.c (unwind_to_catch):
15685         * eval.c (throw_or_bomb_out):
15686         * eval.c (condition_case_1):
15687         * eval.c (signal_1):
15688         * eval.c (check_error_state_sanity):
15689         * eval.c (call_with_suspended_errors_1):
15690         * eval.c (call_with_suspended_errors):
15691         * eval.c (reinit_vars_of_eval):
15692         Added code to catch throw loops and check for a pesky bug that may
15693         be gone now.
15694
15695         * event-msw.c:
15696         * event-msw.c (key_needs_default_processing_p):
15697         * event-msw.c (mswindows_wnd_proc):
15698         * event-msw.c (mswindows_modifier_state):
15699         * event-msw.c (emacs_mswindows_quit_p):
15700         * event-msw.c (vars_of_event_mswindows):
15701         a) Added support for using the alt key to select menu items as is
15702         standard under MS Windows.  This is controlled using the variable
15703         menu-accelerator-enabled, just like under X Windows.  There is an
15704         option on the options menu to turn this support on.  I really
15705         think that it should be on by default under Windows, but I'm not
15706         going to make this change yet.
15707
15708         b)  Added support for dynamic display size changes under Windows.
15709
15710         * event-stream.c:
15711         * event-stream.c (maybe_echo_keys):
15712         * event-stream.c (Fnext_event):
15713         * event-stream.c (command_builder_find_leaf):
15714         * event-stream.c (lookup_command_event):
15715         * event-stream.c (execute_command_event):
15716         * event-stream.c (pre_command_hook):
15717         * event-stream.c (post_command_hook):
15718         * event-stream.c (syms_of_event_stream):
15719         * event-stream.c (vars_of_event_stream):
15720         * event-stream.c (complex_vars_of_event_stream):
15721         * events.h (struct command_builder):
15722
15723         a) Tried to clean up a little bit the horribly written x-specific
15724         accelerator code that crept into this file.  I moved this code
15725         into menubar-x.c where it belongs. I also needed to move the
15726         command builder structure into the file events.h because it is
15727         accessed directly by this accelerator code.  What I didn't do, but
15728         which should be done at some point, is to properly abstract this
15729         code using device methods instead of the kludgy way that it
15730         currently hooks into the event code.
15731
15732         b) Added the lisp variables this-command-properties and
15733         last-command- properties, which should be used to synchronize two
15734         adjacent commands in preference to playing games with the variable
15735         this-command, which is typically what happens.
15736
15737         c) Added some slightly nasty code to hook into the lisp support
15738         for shifted- motion-key selection.  This is actually necessary for
15739         somewhat complicated reasons, which are described in
15740         simple.el. (NB: I think the proper thing would be to have the code
15741         that calls the pre and post command hooks also call out to generic
15742         lisp functions in simple.el, where all built-in stuff could be
15743         added.  I will think about this more.)
15744
15745         * event-unixoid.c (poll_fds_for_input):
15746         * lread.c (readchar):
15747         * redisplay-tty.c (tty_clear_frame):
15748         * redisplay-x.c (x_get_gc):
15749         * signal.c (interrupt_signal):
15750         And a whole bunch of other files: fixed up places that printed
15751         directly to stderr to instead call the function stderr_out so that
15752         the changes I made under Windows work correctly.
15753
15754         * filemode.c (mode_string):
15755         Warning fixes.
15756
15757         * frame-msw.c:
15758         * frame-msw.c (mswindows_size_frame_internal):
15759         Fixed the computation of frame size and position to keep the frame
15760         within the workspace area, rather than within the physical
15761         dimensions of the screen, so that the frame doesn't overlap window
15762         manager decorations, such as the start menu and toolbar, typically
15763         at the bottom of the screen.
15764
15765         * frame.c (vars_of_frame):
15766         Changed the default frame title format under MS Windows to consist
15767         of buffername-XEmacs, which is standard under MS Windows.  I think
15768         it might be a good idea to change this everywhere because I think
15769         it is superior to the current frame title format, but this is the
15770         kind of change that is likely to cause some people to get annoyed,
15771         so I'm not making it.
15772
15773         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15774
15775         * gui-msw.c (mswindows_handle_gui_wm_command):
15776         Fixed compile warnings.
15777
15778         * gui-x.c:
15779         * gui-x.c (strdup_and_add_accel):
15780         * gui-x.c (button_item_to_widget_value):
15781         * gui-x.h:
15782         Added code to automatically put an accelerator onto the beginning
15783         of menu items that don't have one as is now the standard, and is
15784         described more later.  Also fixed things so that the menu item
15785         name can be an evaluated expression, again a new standard.
15786
15787         * gui.c:
15788         * gui.c (gui_item_add_keyval_pair):
15789         * gui.c (make_gui_item_from_keywords_internal):
15790         * gui.c (gui_add_item_keywords_to_plist):
15791         * gui.c (gui_item_accelerator):
15792         * gui.c (gui_name_accelerator):
15793         * gui.c (gui_item_included_p):
15794         * gui.c (gui_item_display_flush_left):
15795         * gui.c (gui_item_display_flush_right):
15796         * gui.c (parse_gui_item_tree_item):
15797         * gui.c (parse_gui_item_tree_children):
15798         * gui.c (parse_gui_item_tree_list):
15799         Mule-ized.  Cleanup.  GCPRO addition.
15800
15801         * line-number.c (buffer_line_number):
15802         * lisp.h:
15803         * lisp.h (EMACS_INT_MAX):
15804         Added the manifest constant EMACS_INT_MIN corresponding to the
15805         existing constant EMACS_INT_MAX.  This is partially to fix compile
15806         warnings under Windows, and partly for cleanliness.
15807
15808         * menubar-msw.c:
15809         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15810         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15811         * menubar-msw.c (displayable_menu_item):
15812         * menubar-msw.c (populate_menu_add_item):
15813         * menubar-msw.c (populate_or_checksum_helper):
15814         * menubar-msw.c (populate_menu):
15815         * menubar-msw.c (update_frame_menubar_maybe):
15816         * menubar-msw.c (prune_menubar):
15817         * menubar-msw.c (msw_char_is_accelerator):
15818         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15819         * menubar-msw.c (mswindows_handle_wm_command):
15820         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15821         * menubar-msw.c (mswindows_handle_wm_initmenu):
15822         * menubar-msw.c (mswindows_update_frame_menubars):
15823         * menubar-msw.c (mswindows_free_frame_menubars):
15824         * menubar-msw.c (mswindows_popup_menu):
15825         Fixed a bug in handling accelerators where an extra character
15826         would be displayed in the menu item.  Also generalized the
15827         function displayable_menu_item because it is now used by the
15828         dialog box code as well.  And finally, added code in the functions
15829         that create the menubar to extract a list of accelerators for the
15830         top level menubar, which is used in the event code to determine
15831         whether a particular alt-key combination should be used to invoke
15832         a menu item, or should be passed through to access the standard
15833         XEmacs keymap binding for this key combination.
15834
15835         Much needed GCPROing.
15836
15837         * menubar-x.c:
15838         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15839         * menubar-x.c (menu_item_descriptor_to_widget_value):
15840         * menubar-x.c (restore_in_menu_callback):
15841         * menubar-x.c (x_popup_menu):
15842         * menubar-x.c (menu_move_up):
15843         * menubar-x.c (menu_move_down):
15844         * menubar-x.c (menu_move_left):
15845         * menubar-x.c (menu_move_right):
15846         * menubar-x.c (menu_select_item):
15847         * menubar-x.c (command_builder_operate_menu_accelerator):
15848         * menubar-x.c (menu_accelerator_junk_on_error):
15849         * menubar-x.c (command_builder_find_menu_accelerator):
15850         * menubar-x.c (Faccelerate_menu):
15851         * menubar.h:
15852         Moved a whole bunch of code here that was previously in
15853         event-stream.c as described above.  There is also code connected
15854         to the new standard of adding an accelerator to the beginning of
15855         menu items that don't have one as described above and below.
15856
15857         * menubar.c:
15858         * menubar.c (menu_parse_submenu_keywords):
15859         * menubar.c (Fmenu_find_real_submenu):
15860         * menubar.c (Fnormalize_menu_item_name):
15861         * menubar.c (syms_of_menubar):
15862         * menubar.c (vars_of_menubar):
15863         * menubar.c (complex_vars_of_menubar):
15864
15865         a) Cleaned up a bunch of documentation and improved it.
15866
15867         b) XEmacs now automatically adds an accelerator onto the beginning
15868         of any menu items that don't have one.  I did this because there
15869         will inevitably be some menu items on the main menubar that don't
15870         have accelerators on them because the package that adds that
15871         particular menu item hasn't yet been fixed up to have accelerators
15872         in them and it looked rather strange to have some items with and
15873         some items without accelerators, especially since even in items
15874         without accelerators, you can, at least under windows, still
15875         access the item through an accelerator corresponding to the first
15876         character in the item's name.  If people don't like this behavior,
15877         I can add a variable to turn it off optionally, but I'm not sure
15878         this is a good idea because we really do need to have accelerators
15879         on all of the menu items, and if a package doesn't like the
15880         accelerators being put on the first character, then it should put
15881         the accelerators where they belong.
15882
15883         c) I made a behavior change, which is that the descriptor that
15884         specifies the text of the menu item, which formerly was just a
15885         string, can now also be an evaluated expression.  This makes this
15886         descriptor parallel with all of the others, which could also be
15887         evaluated expressions.  This also obviates the need for the
15888         keyword :label, which was previously listed in the documentation
15889         as unimplemented, and which was for the same purpose.
15890
15891         d) GCPROing.
15892
15893         * ntproc.c:
15894         * ntproc.c (new_child):
15895         * ntproc.c (sys_spawnve):
15896         * ntproc.c (find_child_console):
15897         * ntproc.c (sys_kill):
15898         Fixed compile warnings.  By the way, this file should really go
15899         away entirely, and this will happen as soon as Kirill makes his
15900         final round of process cleanups, which affect the function
15901         call-process.
15902
15903         * process-nt.c:
15904         * process-nt.c (struct nt_process_data):
15905         * process-nt.c (find_process_from_pid):
15906         * process-nt.c (send_signal_the_nt_way):
15907         * process-nt.c (enable_child_signals):
15908         * process-nt.c (find_child_console):
15909         * process-nt.c (send_signal_the_95_way):
15910         * process-nt.c (nt_finalize_process_data):
15911         * process-nt.c (ensure_console_window_exists):
15912         * process-nt.c (nt_create_process):
15913         * process-nt.c (nt_kill_child_process):
15914         * process-nt.c (nt_kill_process_by_pid):
15915         * process-nt.c (nt_open_network_stream):
15916         * process-nt.c (vars_of_process_nt):
15917         Copied over code from Emacs 20.5 to correctly send signals to sub-
15918         processes under Windows 95.  Also added code to automatically
15919         create and hide console window when a sub-process is created under
15920         Windows 95, which obviates the need for the separate runemacs.exe
15921         executable, and finally implemented some variables that were
15922         implemented in Emacs 20.5, but previously not in XEmacs.  These
15923         include mswindows- start-process-share-console and
15924         mswindows-start-process-inherit-error-mode. (Both of these only
15925         apply to Windows 95.)
15926
15927         * regex.c (regex_compile): Fixed a compile warning.
15928
15929         * select-msw.c:
15930         * select-msw.c (mswindows_own_selection):
15931         * select-msw.c (mswindows_get_foreign_selection):
15932         * select-msw.c (mswindows_disown_selection):
15933         * select-msw.c (console_type_create_select_mswindows):
15934         * select-msw.c (syms_of_select_mswindows):
15935         Cleaned up the file and implemented the device method
15936         selection_exists_p, which had accidentally been left out.  Also
15937         removed four lisp functions that were remnants from before the
15938         time when the selection code was properly device abstracted.
15939         These functions are no longer needed because there are generic
15940         equivalents, and because they were added recently and don't exist
15941         in FSF Emacs, I don't think there's any problem with just deleting
15942         them.
15943
15944         * sysdep.c:
15945         * sysdep.c (sys_subshell):
15946         Fixed a compile warning, although in this case there's probably
15947         something wrong with this code, and it ought to be looked into
15948         more thoroughly by somebody who understands it.
15949
15950         * window.c:
15951         * window.c (Fwindow_text_area_height):
15952         * window.c (Fwindow_width):
15953         * window.c (Fwindow_full_width):
15954         * window.c (Fwindow_pixel_width):
15955         * window.c (debug_print_window):
15956         * window.c (syms_of_window):
15957         Added functions window-text-area-height and window-full-width,
15958         which are functions for returning various width and height
15959         characteristics of a window. (One of these functions is necessary
15960         for making the file dialog box work correctly, and the other one
15961         was added for completeness.)  Also added a table to the
15962         documentation for window-height which describes the entire scheme
15963         for accessing width and height characteristics of a window.
15964
15965 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15966
15967         * nt.c (fstat): Added a comment for another problem with
15968         non-encapsulated [f]stat(), reported by Adrian Aichner
15969         <aichner@ecf.teradyne.com>.
15970
15971 2000-03-11  Andy Piper  <andy@xemacs.org>
15972
15973         * window.c (make_dummy_parent): initialize subwindow instance
15974         cache.
15975         (Fset_window_configuration): zero extent_modiff.
15976
15977 2000-03-10  Andy Piper  <andy@xemacs.org>
15978
15979         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15980         more changes can be triggered.
15981         (Fredisplay_frame): ditto.
15982         (Fredraw_device): ditto.
15983         (Fredisplay_device): ditto.
15984         (redisplay_frame): make non-static.
15985         (redisplay_frame): call update_frame_gutter_geometry outside of
15986         display proper.
15987
15988         * gutter.h: declare update_frame_gutter_geometry.
15989
15990         * redisplay.h: declare redisplay_frame.
15991
15992         * gutter.c (update_frame_gutter_geometry): move geometry changes
15993         in update_frame_gutters here. Geometry changes can only occur
15994         outside of redisplay.
15995         (update_frame_gutters): remove geometry change code.
15996         (Fredisplay_gutter_area): make sure that we are in display when we
15997         update and that we have flushed any size changes.
15998
15999 2000-03-11  Andy Piper  <andy@xemacs.org>
16000
16001         * alloc.c (pdump_dump_data): remove i & count shadows.
16002
16003 2000-02-27  Mike Alexander  <mta@arbortext.com>
16004
16005         * sysdep.h: Declare pdump_read_file
16006
16007         * sysdep.c (pdump_read_file): New function
16008
16009         * alloc.c (pdump_load): Call pdump_read_file to get the portable
16010         dump data
16011
16012 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
16013
16014         * lrecord.h: add `lrecord_type_pgsetenv'.
16015
16016 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
16017
16018         * symsinit.h: declare (vars|syms)_of* functions.
16019         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
16020
16021 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
16022
16023         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
16024
16025         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
16026         GCCs.
16027
16028         * emacs.c (main_1): Call postgres initialization code.
16029
16030         * postgresql.h: New file.  PostgreSQL RDBMS support.
16031         * postgresql.c: New file.
16032
16033 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
16034
16035         * redisplay-output.c (redisplay_output_display_block): Disable
16036         redundant code.
16037
16038 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16039
16040         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
16041         (Fcanna_henkan_next): Ditto.
16042         (Fcanna_bunsetu_henkou): Ditto.
16043         (Fcanna_henkan_kakutei): Ditto.
16044         (Fcanna_henkan_end): Ditto.
16045         (Fcanna_henkan_quit): Ditto.
16046         (Fcanna_henkan_next): Set retun value correctly.
16047         (c2mu): Use unsigned char instead of signed char.
16048
16049 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16050
16051         * emacs.c (main_1): Always call syms_of_gui.
16052         * inline.c: include gui.h
16053
16054 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16055
16056         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
16057         converted to Lisp_Object.
16058         (Qtop_bottom): New variable.
16059         (syms_of_redisplay): Initialize it.
16060         * redisplay.h (Vvisible_bell): Ditto.
16061         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
16062         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
16063         only flash top and bottom.
16064
16065 2000-03-08  Andy Piper  <andy@xemacs.org>
16066
16067         * buffer.c (Frename_buffer): record new buffer name the right way.
16068
16069 2000-03-08  Andy Piper  <andy@xemacs.org>
16070
16071         * glyphs.c (update_subwindow): increase hash depth so that widget
16072         items get picked up properly.
16073
16074         * redisplay-output.c (compare_runes): increase hash depth so that
16075         widget items get picked up properly.
16076
16077 2000-03-08  Andy Piper  <andy@xemacs.org>
16078
16079         * gutter.c (output_gutter): add some debug.
16080
16081         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
16082         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
16083         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
16084
16085         * redisplay-output.c (compare_runes): use display_hash to
16086         determine if glyphs really are not the same.
16087
16088         * glyphs.c (update_subwindow): check display_hash to see if
16089         anything really needs to be updated. If not then do
16090         nothing. Record the display_hash after updating.
16091         (image_instance_equal): compare the image_instance face also.
16092
16093 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
16094
16095         * redisplay.h: Fix comment style.
16096
16097 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16098
16099         * consle-msw.h (struct mswindows_frame):
16100         Added new member paint_pending to indicate whether a WM_PAINT
16101         magic event has been queued for this frame.
16102
16103         * event-msw.c (mswindows_drain_windows_queue):
16104         Don't queue a WM_PAINT magic event if one is already queued.
16105         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
16106
16107         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
16108
16109 2000-03-07  Didier Verna  <didier@xemacs.org>
16110
16111         * dired.c: #include `regex.h' after `sysfile.h'.
16112
16113 2000-03-06  Martin Buchholz  <martin@xemacs.org>
16114
16115         * sound.c (init_nas_sound): Fix compiler warning.
16116
16117         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16118         (FREE_STRUCT_P):
16119         (MARK_STRUCT_AS_FREE):
16120         (MARK_STRUCT_AS_NOT_FREE):
16121         Make `gcc -fstrict-aliasing' work properly.
16122
16123 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16124
16125         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16126         (mswindows_delete_device): Call CoUnnitialize().
16127
16128         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16129
16130 2000-02-25    <CraigL@DyCon.com>
16131
16132         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16133         <errno.h>.
16134
16135         * sysdep.c: This extern declaration for environ prevents MinGW
16136         from finding the variable in CRTDLL.DLL.
16137
16138         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16139         windows headers.
16140         (SHGFI_EXETYPE): ..
16141         (WM_MOUSEWHEEL): ..
16142         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16143         definitions.
16144         (MMRESULT): Removed, now defined in cygwin's windows headers.
16145         (TIMECAPS): ..
16146         (uid_t,gid_t,pid_t,ssize_t): ..
16147         (_timeb): Removed, MinGW defines both _timeb and timeb.
16148         (HAVE_H_ERRNO): Added.
16149         (HAVE_TZNAME): Added, configure is not detecting this.
16150
16151 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16152
16153         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16154         * syntax.c (syntax_match): Use it.
16155
16156         * cmds.c: Import auto-fill-chars from FSF Emacs.
16157         (Vauto_fill_chars): New variables.
16158         (internal_self_insert): Check Vauto_fill_chars.
16159         (vars_of_cmds):
16160         Declare auto-fill-chars as a Lisp variable and initialize it.
16161
16162 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16163
16164         * fileio.c (Fmake_symbolic_link):
16165         (Ffile_symlink_p):
16166         Run handlers even if local machine doesn't have symlinks.
16167
16168 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16169
16170         * event-msw.c (mswindows_drain_windows_queue):
16171         Don't generate paint magic events for non-XEmacs frames.
16172
16173 2000-03-05  Andy Piper  <andy@xemacs.org>
16174
16175         * redisplay.c (redisplay_frame): generate_displayable_area and
16176         friends assumes that we are not in GC, we therefore have to make
16177         sure that this doesn't happen.
16178
16179         * gutter.c (calculate_gutter_size): generate_displayable_area
16180         assumes that we are not in GC, we therefore have to make sure that
16181         this doesn't happen.
16182
16183 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16184
16185         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16186
16187 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16188
16189         * redisplay.c (regenerate_window): Make sure we set a sane value
16190         for end_pos even if we jump out of the loop.
16191         (regenerate_window): Answer Ben's question :-).
16192         (start_end_of_last_line): Add may_error argument.
16193         (start_of_last_line):
16194         (end_of_last_line): Pass may_error = 0.
16195         (end_of_last_line_may_error): New function.
16196         (pixel_to_glyph_translation): Use it, so we don't crash in
16197         event_to_glyph.
16198
16199 2000-03-04  Andy Piper  <andy@xemacs.org>
16200
16201         * window.h (struct window): add gutter_extent_modiff.
16202
16203         * window.c (allocate_window): zero out gutter_extent_modiff.
16204
16205         * redisplay.h: declare sync_display_line_structs.
16206
16207         * redisplay.c (add_glyph_rune): add a better comment.
16208
16209         * redisplay-output.c (sync_display_line_structs): made non-static.
16210         (compare_runes): remove unneccesary glyph cachel access.
16211
16212         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16213
16214         * gutter.c (output_gutter): don't output the gutter if extent
16215         changes only involve extents in buffers. use 4 sets of display
16216         lines.
16217         (gutter_extent_signal_changed_region_maybe): new function. Mark
16218         extents in gutters as changed.
16219         (update_frame_gutters): use 4 sets of display lines.
16220         (reset_gutter_display_lines): ditto.
16221         (free_frame_gutters): ditto.
16222         (redraw_exposed_gutter): force output of gutters.
16223
16224         * frame.h (struct frame): add 4 sets of gutter display lines.
16225
16226         * extents.c: (extent_changed_for_redisplay): signal changes to
16227         extents in strings in the gutter as well as extents in buffers.
16228
16229 2000-03-02  Andy Piper  <andy@xemacs.org>
16230
16231         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16232
16233         * frame.c (Fmake_frame): make sure the gutters get initialized
16234         after the frame is visible.
16235         (set_frame_selected_window): re-arrange compilation macros a
16236         little.
16237         (change_frame_size_1): mark gutters changed.
16238
16239         * device.c (Fset_device_class): mark gutters changed.
16240
16241 2000-03-01  Andy Piper  <andy@xemacs.org>
16242
16243         * window.c (window_top_frame_gutter_height): deleted.
16244         (window_bottom_frame_gutter_height): ditto.
16245         (window_left_frame_gutter_height): ditto.
16246         (window_right_frame_gutter_height): ditto.
16247         (window_top_gutter_height): don't use them.
16248         (window_bottom_gutter_height): ditto.
16249         (window_left_gutter_width): ditto.
16250         (window_right_gutter_width): ditto.
16251         (Fsplit_window): ditto.
16252         (Fwindow_pixel_edges): don't use border dimensions here.
16253
16254         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16255         (update_scrollbar_instance): ditto.
16256
16257         * redisplay.c (generate_modeline): don't take gutters into account.
16258         (generate_modeline): ditto.
16259         (redisplay_frame): small gutter display optimization.
16260
16261         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16262
16263         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16264         gutters into account.
16265
16266         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16267         for window position and type.
16268
16269         * gutter.c (get_gutter_coords): fix for frame gutters.
16270         (update_frame_gutters): update frame geometry if the gutters have
16271         changed.
16272         (init_frame_gutters): record current gutter geometries.
16273
16274         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16275         var.
16276         (mswindows_widget_instantiate): ditto.
16277
16278         * frame.h (struct frame): add current_gutter_bounds.
16279
16280         * frame.c (change_frame_size_1): position window and minibuffer
16281         appropriately taking into account the frame gutters.
16282
16283         * frame-x.c: (x_initialize_frame_size): take into account the
16284         frame gutters.
16285
16286 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16287
16288         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16289
16290 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16291
16292         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16293
16294 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16295
16296         * file-coding.c (reset_decoding_stream): Clear previous
16297         detection state when autodetect.
16298
16299 2000-02-29  Didier Verna  <didier@xemacs.org>
16300
16301         * extents.c (set_extent_glyph_1): don't require extents to be
16302         attached.
16303
16304 2000-02-27  Andy Piper  <andy@xemacs.org>
16305
16306         * gutter.c (Fset_default_gutter_position): don't default left and
16307         right gutter visibility to t.
16308         (Fset_default_gutter_position): run
16309         default-gutter-position-changed-hook.
16310         (syms_of_gutter): add default-gutter-position-changed-hook.
16311
16312 2000-02-26  Andy Piper  <andy@xemacs.org>
16313
16314         * specifier.c (Fmake_specifier): add gutter references.
16315
16316         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16317
16318         * lisp.h: declare Fvalid_plist_p.
16319
16320         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16321         as changed.
16322         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16323         well as its visibility so that it gets reconstructed.
16324         (construct_window_gutter_spec): new function. Construct a string
16325         to be displayed in the gutter from a plist of strings. Take care
16326         to only use elements that are declared as visible.
16327         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16328         WINDOW_GUTTER.
16329         (gutter_validate): allow plists of strings in the specifier.
16330         (gutter_specs_changed): construct the real_gutter from the gutter
16331         specs using construct_window_gutter_spec.
16332         (gutter_visible_validate): gutter-visible is a new specifier type.
16333         (Fgutter_visible_specifier_p): new function for the new specifier.
16334         (syms_of_gutter): declare gutter-visible and
16335         Fgutter_visible_specifier_p.
16336         (specifier_type_create_gutter): intitalize new gutter-visible
16337         specifier.
16338         (reinit_specifier_type_create_gutter): ditto.
16339         (specifier_vars_of_gutter): use new specifier type for gutter
16340         visibility.
16341         (init_frame_gutters): construct real_gutter correctly.
16342         (Fgutter_specifier_p): beef up documentation.
16343         (Fgutter_size_specifier_p): ditto.
16344
16345         * winslots.h: add real_gutter slots.
16346
16347 2000-02-25  Andy Piper  <andy@xemacs.org>
16348
16349         * device-msw.c: Be kind to older cygwin versions. From Raymond
16350         Toy <toy@rtp.ericsson.se>.
16351
16352         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16353         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16354
16355 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16356
16357         * elhash.c (MARK_OBJ): Practice macro hygiene.
16358
16359 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16360
16361         * miscplay.c: s/__inline__/inline/g;
16362         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16363         (get_device_compdc): INLINE ==> static inline
16364         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16365         find -name '*.h' | \
16366         xargs global-replace \
16367         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16368
16369 2000-02-25  Andy Piper  <andy@xemacs.org>
16370
16371         * window.c (window_top_frame_gutter_height): new function.
16372         (window_top_window_gutter_height): ditto.
16373         (window_top_gutter_height): use them.
16374         (window_bottom_frame_gutter_height): new function.
16375         (window_bottom_window_gutter_height): ditto.
16376         (window_bottom_gutter_height): use them.
16377         (window_left_window_gutter_width): new function.
16378         (window_left_frame_gutter_width): ditto.
16379         (window_left_gutter_width): use them.
16380         (window_right_window_gutter_width): new function.
16381         (window_right_frame_gutter_width): ditto.
16382         (window_right_gutter_width): use them.
16383         (window_pixel_height): new function. calulate window pixel height
16384         with frame gutter involvement.
16385         (Fsplit_window): calculate new sizes taking frame gutters into
16386         account.
16387         (window_char_height_to_pixel_height): don't include frame gutters.
16388         (window_char_height): use window_pixel_height.
16389         (window_pixheight): rename from window_pixel_height.
16390         (change_window_height): use it.
16391         (window_pixel_height_to_char_height): don't include frame gutters.
16392         (window_char_width_to_pixel_width): ditto.
16393
16394 2000-02-25  Andy Piper  <andy@xemacs.org>
16395
16396         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16397         if it is.
16398
16399 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16400
16401         * alloc.c (staticpro):
16402         (staticpro_nodump):
16403         (dumpstruct):
16404         (dumpopaque):
16405         (pdump_wire):
16406         (pdump_wire_list):
16407         (compact_string_chars):
16408         (pdump_dump_wired):
16409         Convert:  if (foo) abort();  ==>  assert (! foo);
16410
16411         * eldap.c (Fldap_search_basic):
16412         (Fldap_add):
16413         (Fldap_modify):
16414         (Fldap_delete):
16415         Fix compiler warnings, and possible crashes if (random) return
16416         value were to be used.
16417
16418 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16419
16420         * device-msw.c: Workaround ResetDC failure.
16421
16422         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16423         applying a devmode.
16424
16425         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16426         (mswindows_text_width): Do not start printer page.
16427
16428         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16429
16430         * glyphs-msw.c: Added image methods to msprinter console and
16431         msprinter-specific image instantiation.
16432
16433 2000-02-20  Mike Alexander  <mta@arbortext.com>
16434
16435         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16436         to avoid crashes when selection-sets-clipboard is on
16437         (mswindows_own_selection): ditto
16438
16439 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16440
16441         * glyphs-msw.c:
16442         * redisplay-msw.c (get_frame_dc):
16443         (get_frame_compdc):
16444         * console-msw.h:
16445         * device-msw.c (mswindows_init_device):
16446         (mswindows_delete_device):
16447         (msprinter_init_device):
16448         (msprinter_delete_device):
16449         * frame-msw.c (mswindows_init_frame_1):
16450         (mswindows_delete_frame):
16451         (msprinter_init_frame_3):
16452         (msprinter_delete_frame): Move compatible DC to device object from
16453         frame object, for both mswindows and msprinter. Only one at a time
16454         is needed, it is a real waste to have one per frame!
16455
16456 2000-02-23  Andy Piper  <andy@xemacs.org>
16457
16458         * glyphs.c: add dynamic width and height elements.
16459         (image_instance_equal): ditto.
16460
16461         * glyphs-widget.c (widget_query_geometry): calculate width and
16462         height dynamically if required.
16463         (initialize_widget_image_instance): initialize dynamic dimensions.
16464         (widget_instantiate): pick-up dynamic dimensions.
16465
16466         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16467         dynamic determination. Add appropriate macros.
16468
16469         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16470         dimensions safe.
16471         (WINDOW_GUTTER_SIZE): ditto.
16472         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16473
16474         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16475         inline.
16476         (get_frame_dc): ditto.
16477
16478         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16479         here.
16480
16481 2000-02-23  Martin Buchholz <martin@xemacs.org>
16482
16483         * XEmacs 21.2.31 is released.
16484
16485 2000-02-22  Ben Wing <ben@xemacs.org>
16486
16487         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16488
16489 2000-02-22  Andy Piper  <andy@xemacs.org>
16490
16491         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16492
16493 2000-02-21  Mike Sperber <mike@xemacs.org>
16494
16495         * .dbxrc:
16496         * .gdbinit:
16497         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16498         variables.
16499
16500 2000-02-21  Mike Sperber <mike@xemacs.org>
16501
16502         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16503
16504 2000-02-21  Martin Buchholz <martin@xemacs.org>
16505
16506         * XEmacs 21.2.30 is released.
16507
16508 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16509
16510         Performance hacking.
16511         * *.c (syms_of_*):
16512         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16513         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16514         * emacs.c (main_1):
16515         * lisp.h (DEFUN):
16516         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16517         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16518         * symeval.h (DEFVAR_SYMVAL_FWD):
16519         * symbols.c (guts_of_unbound_marker):
16520         Make all c_readonly objects also lisp_readonly and marked for life.
16521         * lrecord.h (struct lrecord_implementation):
16522         Document flags better.
16523         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16524         * lrecord.h (DECLARE_LRECORD):
16525         * lrecord.h (XSETRECORD):
16526         * lrecord.h (RECORDP):
16527         * lrecord.h (RECORD_TYPEP):
16528         * lrecord.h (RECORD_MARKER): New.
16529         * lrecord.h (error_check_*):
16530         * lrecord.h (CONCHECK_NONRECORD):
16531         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16532         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16533         * lrecord.h (set_lheader_implementation):
16534         * lrecord.h (enum lrecord_type): New.
16535         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16536         * alloc.c (disksave_object_finalization_1):
16537         * alloc.c (mark_object):
16538         * alloc.c (lrecord_type_index):
16539         * alloc.c (tick_lcrecord_stats):
16540         * alloc.c (Fgarbage_collect):
16541         * alloc.c (init_alloc_once_early):
16542         * alloc.c (pdump_load):
16543         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16544         * alloc.c (lrecord_type_index): Delete.
16545         Make lisp object type indexes be constant.
16546           Makes (byte-compile) 5% faster.
16547         Put all marker functions into their own array.
16548           Makes (garbage-collect) 5% faster.
16549         Optimize SYMBOL_VALUE_MAGIC_P.
16550           Makes (byte-compile) 2-3% faster.
16551         * config.h.in (gc_checking_assert): New.
16552         * alloc.c: Use gc_checking_assert().
16553         * .dbxrc: Make compatible with new object type implementation.
16554         * .gdbinit: Make compatible with new object type implementation.
16555         * alloc.c: Delete all symbols defined only for debugging, such as
16556         Lisp_Type_Vector and lrecord_charset.
16557
16558 2000-02-21  Andy Piper  <andy@xemacs.org>
16559
16560         * gui-msw.c (Fmswindows_shell_execute): fix file location
16561         problems.
16562
16563         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16564         unshowing so that set_window_buffer doesn't undo
16565         kill_buffer_hook's hard work.
16566
16567         * glyphs-widget.c (tab_control_query_geometry): don't count the
16568         first item when calculating geometry.
16569
16570         * glyphs.c (map_subwindow): remove redundant code.
16571         (update_frame_subwindows): be more circumspect about when to
16572         update subwindows.
16573
16574         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16575         when items haven't changed. Update faces if faces have changed as
16576         well as just the widget face.
16577         (x_tab_control_update): Update faces if faces have changed as well
16578         as just the widget face.
16579
16580 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16581
16582         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16583         registration.
16584         (build_syscolor_string): Use mswindows_color_to_string to try to
16585         get a named color.
16586         (mswindows_device_system_metrics): Reverse the foreground and
16587         background colors so that they match the documentation.
16588
16589         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16590         they match the default Windows palette.
16591         (mswindows_color_to_string): New function.
16592
16593 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16594
16595         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16596
16597 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16598
16599         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16600         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16601
16602         * symbols.c (init_symbols_once_early): Removed obsolete
16603         DATA_SEG_BITS related kludge.
16604         (defvar_magic): Ditto.
16605
16606         * malloc.c: Removed obsolete DATA_SEG_BITS
16607         * ralloc.c: Ditto.
16608         * mem-limits.h: Ditto.
16609
16610         * Makefile.in.in: Removed obsolete HAVE_SHM
16611         * emacs.c: Ditto.
16612
16613 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16614
16615         *  device-msw.c (mswindows_delete_device): Free DDE string
16616         handles.
16617
16618 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16619
16620         * keymap.c (get_keyelt):
16621         * unexnt.c (unexec):
16622         * vm-limit.c (memory_warnings):
16623         * ntheap.c (recreate_heap):
16624         * ntheap.h (UNINIT_PTR):
16625         * select-msw.c (Fmswindows_get_clipboard):
16626         (Fmswindows_set_clipboard):
16627         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16628         * objects-msw.c:
16629         * menubar-msw.c (displayable_menu_item):
16630         * glyphs-msw.c:
16631         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16632         * sysdep.c (sys_subshell):
16633         * process-nt.c (nt_create_process):
16634         * nt.c (normalize_filename):
16635         (dostounix_filename):
16636         (unixtodos_filename):
16637         * ntproc.c (win32_executable_type):
16638         * ntplay.c (play_sound_data_1):
16639         (play_sound_file):
16640         * editfns.c (get_home_directory):
16641         * event-msw.c (struct winsock_stream):
16642         (mswindows_dde_callback):
16643         * device-msw.c (msprinter_init_device):
16644         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16645
16646         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16647         mswindows_clear_toolbar were swapped!
16648
16649         * objects-msw.c:(colormap_t):
16650         (fontmap_t):
16651         * emacs.c (struct standard_args): Fixed const jumble.
16652
16653         * glyphs-widget.c (update_widget): Fixed comparison notation.
16654
16655         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16656
16657         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16658         __declspec(noreturn) syntax.
16659
16660 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16661
16662         * eldap.c (Fldap_open):
16663         (Fldap_search_basic):
16664         (Fldap_add):
16665         (Fldap_modify):
16666         Use new coding system conversion macros.
16667
16668 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16669
16670         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16671
16672 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16673
16674         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16675         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16676
16677         * eldap.c (Qadd, Qreplace): New constant symbols
16678         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16679         interruptions by XEmacs signals
16680         Remove unnecessary calls to slow_down_interrupts and
16681         speed_up_interrupts
16682         (Fldap_search_basic): Renamed from Fldap_search_internal
16683         Added new optional parameter VERBOSE that triggers the
16684         display of progress messages
16685         Remove unnecessary calls to slow_down_interrupts and
16686         speed_up_interrupts
16687         LDAP result code analysis rewritten
16688         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16689         (syms_of_eldap): Define the new symbols and functions
16690
16691
16692 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16693
16694         * realpath.c: Determine PATH_MAX maximally portably.
16695
16696         * insdel.c (bytecount_to_charcount): Optimize.
16697         The function used to be optimized for entirely ASCII sequences.
16698         Now it is optimized for successive characters from the same
16699         charset.  This also wins big for _mostly_ ASCII sequences.
16700
16701         * fileio.c (Ffile_truename): convert return from realpath() using
16702         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16703         - Rewrite GCPROing slightly.
16704
16705         * sysdep.c (sys_open): Do filename conversion, like all other
16706         sys_* functions.  Fixes bug:
16707         (let ((file-name-coding-system 'iso-8859-2))
16708            (write-region x y latin2-name))
16709         ==> writes filename using internal encoding.
16710
16711 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16712
16713         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16714         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16715         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16716         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16717         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16718         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16719         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16720         (CONST_IF_NOT_DEBUG): Delete.
16721         * alloc.c (this_one_is_unmarkable): Delete.
16722         (mark_object): Don't check for this_one_is_unmarkable. Use the
16723         c_readonly flag instead.
16724         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16725
16726 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16727
16728         * event-msw.c (mswindows_drain_windows_queue):
16729         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16730         away redundant repaint events.
16731
16732 2000-02-17  Andy Piper  <andy@xemacs.org>
16733
16734         * redisplay.h: declare mark_redisplay_structs.
16735
16736         * redisplay.c (redisplay_window):
16737         (redisplay_frame): don't check subwindows_state_changed.
16738         (mark_redisplay): mark gutters here.
16739
16740         * glyphs.c: (instantiate_image_instantiator): always layout if we
16741         haven't done so already.
16742         (allocate_image_instance): don't mark as dirty.
16743         (update_subwindow): bind inhibit_quit.
16744
16745         * gutter.c (mark_gutters): new function.
16746
16747         * glyphs-x.c (x_update_widget): Always resize to get round a
16748         widget bug.
16749
16750         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16751         breaking absolutely everything.
16752
16753         * gutter.h: declare mark_gutters.
16754
16755 2000-02-16  Martin Buchholz <martin@xemacs.org>
16756
16757         * XEmacs 21.2.29 is released.
16758
16759 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16760
16761         * fns.c (size_bit_vector): Fix computation of the size.
16762
16763 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16764
16765         * *.[ch]: Change CONST to const globally.
16766         find -name '*.[ch]' | \
16767         xargs global-replace \
16768         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16769         - Remove vestigial references to CONST_IS_LOSING
16770
16771 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16772
16773         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16774         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16775         events instead of dispatching them directly.
16776         (mswindows_handle_paint): New function to do repainting.
16777         (mswindows_wnd_proc):
16778         (emacs_mswindows_handle_magic_event): Call above function.
16779
16780 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16781
16782         * objects-msw.c (mswindows_create_font_variant): Return the new
16783         font handle.
16784         (initialize_font_instance): Get font metrics from the underlined
16785         variant of the font to cope with the case where the underlined
16786         font has a bigger descent.
16787
16788 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16789
16790         * gui.c (gui_item_accelerator): Return the first underlined
16791         character in item name.
16792
16793 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16794
16795         * lisp.h: Added Qprinter.
16796
16797         * general.c (syms_of_general): Initialized it.
16798
16799         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16800         (get_frame_dc):
16801         (get_frame_compdc): Made inline.
16802
16803         * console.h (struct console_methods): Added eject_page method.
16804
16805         * frame.h: Added FRAME_DISPLAY_P and friends.
16806         Aligned backslahes in many macros in more readable fashion.
16807         Added page_number to struct frame, and an accessor macro
16808         for it.
16809
16810         * defice.h: Added DEVICE_DISPLAY_P and friends.
16811
16812         * device.c (Fdevice_printer_p): Used these.
16813
16814         * frame.c (allocate_frame_core): Initialize page number.
16815         (Fprint_job_page_number):
16816         (Fprint_job_eject_page): Implemented.
16817
16818         * frame-msw.c (msprinter_eject_page): Added method.
16819         (msprinter_start_page): Added.
16820
16821         * window.c (Fwindow_truncated_p): Fixed docstring.
16822         (Fwindow_last_line_visible_height): Implemented.
16823
16824 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16825
16826         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16827
16828 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16829
16830         * syntax.c (scan_words): Always advance at least one character.
16831
16832 2000-02-13  Andy Piper  <andy@xemacs.org>
16833
16834         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16835         to make sure the glyph is in the cachels.
16836
16837         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16838         global image instance flag.
16839         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16840         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16841
16842         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16843         (Fset_image_instance_property): mark layout as changed.
16844         (invalidate_glyph_geometry_maybe): mark layout as changed.
16845         (glyph_width): use new NEEDS_LAYOUT macro.
16846         (glyph_ascent): ditto.
16847         (glyph_descent): ditto.
16848         (glyph_height): ditto.
16849         (image_instance_layout): mark layout as clean after laying out.
16850         (update_subwindow): don't mark layout as clean here.
16851
16852         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16853         should no longer be needed.
16854
16855         * glyphs-x.c (x_update_widget): sanitize asserts.
16856         (x_finalize_image_instance): sanitize assignment to widgets.
16857
16858         * glyphs-widget.c (widget_instantiate): don't need to clear the
16859         layout flag here.
16860
16861 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16862
16863         * sysdep.c (getcwd): Use standard prototype.
16864         * sysdep.h (getcwd): Use standard prototype.
16865
16866         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16867         (sequence, start, end).
16868         Remove redundant type checking.
16869         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16870         view of `caller-protects') to avoid a crash where the real fix was
16871         found elsewhere.
16872
16873 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16874
16875         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16876
16877         * s/sol2.h: Remove feature macro initialization.
16878
16879         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16880         (vector_hash): New.  Code from internal_hash.
16881         * lrecord.h:
16882         Fix up allocation subsystem comments.
16883
16884         * config.h.in: Add __EXTENSIONS__ for Solaris.
16885
16886         * systime.h (EMACS_GETTIMEOFDAY): New.
16887         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16888         Remove Solaris-specific code.
16889         Use void* for the (ignored) second arg for gettimeofday().
16890
16891         * elhash.c (hash_table_hash): Implement it, finally.
16892         * elhash.c:  Use hashcode_t.
16893
16894         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16895         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16896
16897         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16898         * fns.c (size_bit_vector):
16899         * alloc.c (size_vector):
16900         (make_vector_internal):
16901         (make_bit_vector_internal):
16902         (sweep_bit_vectors_1):
16903         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16904
16905 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16906
16907         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16908         Include strings.h to avoid warnings for bzero and strcasecmp.
16909
16910 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16911
16912         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16913         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16914
16915         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16916         sequence.
16917
16918 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16919
16920         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16921         use a value field instead.
16922         (symbol_value_forward_forward): Use value field.
16923         (DEFVAR_SYMVAL_FWD): Use value field.
16924         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16925         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16926         (DEFVAR_CONST_INT): Ditto.
16927         (DEFVAR_BOOL): Ditto.
16928         (DEFVAR_CONST_BOOL): Ditto.
16929         (DEFVAR_INT_MAGIC): Ditto.
16930         (DEFVAR_BOOL_MAGIC): Ditto.
16931
16932         * symbols.c (guts_of_unbound_marker): Use value field.
16933         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16934         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16935
16936         * lisp.h: Declare dumpopaque and noninteractive1.
16937
16938         * alloc.c (dumpopaque): Added.
16939         (pdump_dump_opaquevec): Added.
16940         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16941         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16942         noninteractive.
16943
16944 2000-02-10  Andy Piper  <andy@xemacs.org>
16945
16946         * glyphs.c (image_instance_layout): if the size changes, mark it
16947         as such.
16948
16949         * redisplay-output.c (redisplay_output_layout): Update the
16950         subwindow here.
16951         (redisplay_output_subwindow): ditto.
16952
16953         * glyphs.c (update_subwindow): make sure we reset flags for
16954         layouts as well as everything else.
16955
16956         * glyphs-widget.c (layout_layout): don't need to set the instances
16957         dimensions here.
16958
16959 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16960
16961         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16962         not HAVE_DLOPEN, which is a lower-level thing.
16963
16964         * .cvsignore: Ignore gmon.out
16965
16966 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16967
16968         * .cvsignore: Ignore portable dumper xemacs.dmp file
16969
16970 2000-02-09  Andy Piper  <andy@xemacs.org>
16971
16972         * redisplay-output.c (redisplay_output_layout): be more clever
16973         about when we output based on the changed flags.
16974
16975         * glyphs.h (struct image_instantiator_methods): add update_method.
16976         (struct Lisp_Image_Instance): add changed flags. Declare new
16977         macros for manipulating them.
16978
16979         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16980         (image_instance_parent_glyph): find an image_instance's parent
16981         glyph or image_instance.
16982         (image_instance_layout): mark the size as changed.
16983         (set_image_instance_dirty_p): new function. mark an image
16984         instance, plus all of its parents, as dirty.
16985         (Fset_image_instance_property): use it.
16986         (Fglyph_animated_timeout_handler): use it.
16987         (update_subwindow): call update_widget and device methods for
16988         update_subwindow. Mark all changed flags as clean.
16989         (Fresize_subwindow): mark size as changed.
16990
16991         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16992         failures.
16993         (x_update_subwindow): only resize subwindows here.
16994         (x_update_widget): new function. Update all changed properties of
16995         a widget.
16996         (x_resize_subwindow): deleted.
16997         (x_widget_set_property): deleted.
16998         (x_progress_gauge_set_property): deleted.
16999         (x_progress_gauge_update): new function. Implement recorded
17000         changes.
17001         (x_tab_control_update): ditto.
17002         (x_tab_control_set_property): deleted.
17003         (console_type_create_glyphs_x): declare new functions.
17004         (image_instantiator_format_create_glyphs_x): ditto.
17005
17006         * glyphs-widget.c (widget_set_property): mark text changed.
17007         (update_widget): new function. Update properties of a widget.
17008         (widget_instantiate): for layouts make sure we set their
17009         children's parent correctly.
17010         (tab_control_set_property): new function. Record changes that will
17011         take place under redisplay's control.
17012         (progress_gauge_set_property): ditto.
17013         (image_instantiator_progress_guage): declare new functions.
17014         (image_instantiator_tab_control): ditto.
17015
17016         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
17017         now.
17018         (mswindows_update_widget): new function. Update all properties on
17019         a widget that have changed.
17020         (mswindows_button_update): new function. Update a button's set
17021         state.
17022         (mswindows_tab_control_update): new function. Update the items in
17023         a tab.
17024         (mswindows_tab_control_set_property): deleted.
17025         (mswindows_progress_gauge_update): new function. Update the
17026         progress gauge's progress.
17027         (mswindows_widget_set_property): deleted. This is all done
17028         asynchronously now.
17029         (mswindows_progress_gauge_set_property): ditto.
17030         (console_type_create_glyphs_mswindows): declare new methods.
17031         (image_instantiator_format_create_glyphs_mswindows): ditto.
17032
17033         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
17034         (msprinter_set_frame_properties): ditto.
17035
17036         * console.h (struct console_methods): Add update_widget_method.
17037
17038 2000-02-09  Andy Piper  <andy@xemacs.org>
17039
17040         * gui-msw.c (Fmswindows_shell_execute): Make
17041         mswindows-shell-execute industrial strength.
17042
17043 2000-02-08  Martin Buchholz  <martin@xemacs.org>
17044
17045         * lrecord.h: Make macro argument `props' match member function `plist'.
17046         * fns.c (Fget):
17047         * fns.c (Fput):
17048         * fns.c (Fremprop):
17049         * fns.c (Fobject_plist):
17050         * alloc.c:
17051         * symbols.c:
17052         Object property list frobbing cleanup.
17053         - Allow any lisp object (compared with `eq'), not just symbols, as
17054           keys in object plists.
17055         - Move symbol plist frobbing into symbols.c, where it belongs.
17056         - Move string plist frobbing into alloc.c, where it belongs.
17057         - Everything's an lrecord now, so no need to test for symbolp, etc.
17058         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
17059
17060         * extents.c: Reorder code to remove declarations.
17061
17062         * frame.h (store_in_alist): Remove useless declaration.
17063
17064 2000-02-07  Martin Buchholz  <martin@xemacs.org>
17065
17066         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
17067         * config.h.in: Add HAVE_XCONVERTCASE.
17068
17069 2000-02-07  Andy Piper  <andy@xemacs.org>
17070
17071         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
17072         it breaks many things.
17073
17074 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
17075
17076         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
17077         actually can start a common comment type.
17078         * src/syntax.h (SYNTAX_END_P): ditto for end.
17079
17080 2000-02-07  Martin Buchholz <martin@xemacs.org>
17081
17082         * XEmacs 21.2.28 is released.
17083
17084 2000-02-06  Martin Buchholz  <martin@xemacs.org>
17085
17086         * event-Xt.c (x_keysym_to_character): New.
17087         (maybe_define_x_key_as_self_inserting_character): New.
17088         (x_has_keysym): New.
17089         Auto-define all keys on the keyboard as self-insert-key.
17090
17091 2000-02-02  Martin Buchholz  <martin@xemacs.org>
17092
17093         * menubar.c (vars_of_menubar): A small code simplification.
17094
17095         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
17096
17097         * ExternalShell.c:
17098         * ExternalClient.c:
17099         * EmacsShell-sub.c:
17100         * EmacsManager.c:
17101         * EmacsFrame.c:
17102         Use consistent style for specifying X resources.
17103
17104         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
17105         This makes (dontusethis-set-symbol-value-handler) actually usable.
17106
17107         * lrecord.h (lrecord_decription_type):
17108         * alloc.c (pdump_register_sub):
17109         (pdump_dump_data):
17110         (pdump_reloc_one):
17111         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17112         Comply with XEmacs coding style.
17113         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17114         args, and XD_LISP_OBJECT_ARRAY with 3 args.
17115
17116         * keymap.c (Faccessible_keymaps):
17117         Make (accessible-keymaps map "\C-h") do the Right Thing.
17118         Make (accessible-keymaps map []) do the Right Thing.
17119         Make (accessible-keymaps map "") do the Right Thing.
17120         (check_keymap_definition_loop): New function.
17121         (keymap_store_internal): Keep luser from shooting self in foot,
17122           via (define-key ctl-x-4-map "p" global-map).
17123         Remove fullness slot from struct Lisp_Keymap, since hash tables
17124         are now reliable.
17125         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17126
17127 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17128
17129         * redisplay.c (init_redisplay): Fix small memory leak.
17130         * elhash.h:
17131         * elhash.c (pdump_reorganize_hash_table):
17132         Rename from reorganize_hash_table. Change prototype.
17133         Reuse the original memory for hentries.  Save 100k.
17134         * alloc.c (PDUMP_READ): new macro.
17135         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17136         * alloc.c: No need to #ifndef before #undef.
17137
17138         * print.c: Allow debug_print() to print readably by modifying
17139         debug_print_readably.  Use consistent variable names.
17140
17141         * .dbxrc: Try to get things to work even if stopped in a function
17142         without source available by explicitly specifying source files.
17143 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17144
17145         * unexnt.c (_start): Removed bogus code which caused loading heap
17146         from differrent executable file.
17147         Removed bogus assignment to _fmode, which caused inconsistencies.
17148
17149 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17150
17151         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17152         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17153         Do not preliminary `#define signal sigset'.
17154
17155         * systime.h: Do not prototype environ on windows nt and cygwin,
17156         this conflicts with system header.
17157
17158         * syssignal.h: Use correct define for WINDOWSNT
17159
17160         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17161         with system header.
17162
17163         * sysdep.c (near start of file): Fixed commentary and rearranged
17164         ifdefs in readable order.
17165         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17166         (start_of_text):
17167         (end_of_text):
17168         (end_of_data): Do not compile in if using PDUMP.
17169
17170         * symsinit.h: Prototyped vars_of_nt().
17171
17172         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17173         (find_child_console): Use it.
17174         (sys_kill): Use it.
17175
17176         * ntheap.h: Do not extern os_subtype.
17177
17178         * ntheap.c (cache_system_info): Do not cache unneeded:
17179         nt_major_version, nt_minor_version and os_subtype.
17180         (recreate_heap): Do not compile in when PDUMPing.
17181
17182         * nt.c (geteuid and friends): Use the new varibale
17183         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17184         (init_user_info): Removed the above mentioned hackery.
17185         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17186         stat has been fixed in the C runtime.
17187         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17188
17189         * file-coding.c (struct file_coding_dump): Do not define
17190         ucs_to_mule_table in the struct if not MULE.
17191         (struct struct lrecord_description fcd_description_1): Do not dump
17192         the above.
17193
17194         * emacs.c (main_1): Call vars_of_nt().
17195         (right before Fdump_emacs_data): Don't need lastfile if using both
17196         portabe dumper and system malloc.
17197
17198         * alloc.c (Fmemory_limit): Conditionalized out.
17199         (pdump): Use OPEN_BINARY for the portable dump file.
17200         (pdump_load): Ditto.
17201
17202 2000-02-02  Mike Alexander  <mta@arbortext.com>
17203
17204         * nt.c (convert_time): Set tm_isdst before calling mktime and
17205         avoid calling it at all if the compiler supports 64 bit integers.
17206         Also initialize utc_base_ft before using it.
17207
17208 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17209
17210         * frame.c (change_frame_size_1): Take f->internal_border_width
17211         into consideration when calculating the width of the frame.
17212
17213 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17214
17215         * window.c (frame_min_height):
17216         (frame_size_valid_p):
17217         (frame_pixsize_valid_p): Added.
17218         (check_frame_size): Generalized.
17219
17220         * window.h: Prototyped the above.
17221
17222         * lisp.h:
17223         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17224         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17225         Deleted Vwin32_* and Vbinary_process_* unused variables.
17226
17227         * device-msw.c (msprinter_init_device): Do not get printer font
17228         list; Added DEVMODE functions.
17229
17230         * frame-msw.c: Added lots of printer code.
17231
17232         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17233         general.c.
17234
17235         * console-msw.h: Added more msprinter device private slots.
17236
17237 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17238
17239         * event-msw.c (key_needs_default_processing_p): Added.
17240         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17241
17242 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17243
17244         * glyphs.c (image_instance_layout): Mark image instance as clean
17245         after layout.
17246         (glyph_dirty_p): Removed redundant function.
17247         (invalidate_glyph_geometry_maybe): Added.
17248         (update_glyph_cachel_data): Call it.
17249
17250         * glyphs.h: Prototyped it.
17251
17252         * redisplay.c (add_glyph_rune): Call it.
17253         (redisplay_window): Reset glyphs cachels when frame faces have
17254         changed, thus forcing recomputation of built-in border glyphs.
17255
17256 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17257
17258         * Makefile.in.in: Make portable dumper and purify play well together.
17259         Add imperfect, but better than nothing, support for pdump.
17260         Remove xemacs.dmp when temacs is re-generated.
17261         Don't ignore errors when dumping xemacs.
17262
17263         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17264
17265 2000-01-28  Andy Piper  <andy@xemacs.org>
17266
17267         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17268         (setup_normal_frame): ditto.
17269         (setup_frame_without_minibuffer): ditto.
17270         (setup_minibuffer_frame): ditto.
17271         (delete_frame_internal): ditto.
17272         (Fmake_frame_invisible): ditto.
17273         (Ficonify_frame): ditto.
17274
17275         * window.h: change Fset_window_buffer signature.
17276
17277         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17278         (Fset_window_buffer): allow recording of buffer if the window is
17279         the selected window.
17280         (window_loop): Use new Fset_window signature.
17281
17282 2000-01-23  Daniel Pittman  <daniel@danann.net>
17283
17284         * config.h.in: Added template for `HAVE_ATHENA_3D'
17285
17286 2000-01-29  Andy Piper  <andy@xemacs.org>
17287
17288         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17289
17290         * gutter.c (output_gutter): Don't output if the window isn't live.
17291
17292 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17293
17294         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17295         of 01/12/00: Moved SetFocus back here where it belongs.
17296
17297 2000-01-23  Andy Piper  <andy@xemacs.org>
17298
17299         * s/cygwin32.h: declare printer things.
17300
17301 2000-01-26  Andy Piper  <andy@xemacs.org>
17302
17303         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17304         Alexander.
17305
17306 2000-01-24  Andy Piper  <andy@xemacs.org>
17307
17308         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17309         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17310
17311         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17312
17313         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17314
17315         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17316
17317         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17318         (mswindows_output_display_block): Avoid local shadows.
17319
17320         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17321         (mswindows_enqueue_mouse_button_event): ditto.
17322         (mswindows_handle_gui_wm_command): remove declaration.
17323
17324         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17325         warnings.
17326
17327         * console-msw.h: Avoid shadows.
17328         (mswindows_get_toolbar_button_text):
17329         (emacs_mswindows_create_stream_pair):
17330         (emacs_mswindows_delete_stream_pair):
17331         (mswindows_handle_toolbar_wm_command): declare.
17332
17333         * device-msw.c (build_syscolor_string): Avoid shadows.
17334
17335 2000-01-23  Andy Piper  <andy@xemacs.org>
17336
17337         * glyphs-widget.c (widget_instantiate): reverse the items for
17338         layouts so that children are in the expected order.
17339
17340 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17341
17342         * ralloc.c: safe_bcopy ==> memmove
17343         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17344         * s/msdos.h: Remove BCOPY macros.
17345         * insdel.c (gap_right): Remove BCOPY conditional code.
17346         * insdel.c (gap_left): Remove BCOPY conditional code.
17347         XEmacs demands a working ANSI C compiler - hence memmove.
17348
17349         * regex.c (regex_compile): Remove accidental use of trigraphs.
17350
17351 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17352
17353         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17354         event timestamp.
17355
17356 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17357
17358         * event-msw.c (mswindows_drain_windows_queue): Added the
17359         parameter.
17360         (mswindows_need_event): Commented the call to
17361         mswindows_drain_windows_queue().
17362         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17363         only.
17364
17365         * console-msw.h: Moved a few function prototypes here from
17366         event-msw.c.
17367
17368         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17369         parameter from unsigned short to unsigned long.
17370         (Fmswindows_shell_execute): Added return value.
17371
17372 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17373
17374         * sysdep.c (init_system_name):
17375           process-unix.c (unix_canonicalized_host_name):
17376         Don't call freeaddrinfo() if getaddrinfo() fails.
17377
17378         * process-unix.c (unix_open_unix_network_stream):
17379         Moved the code to get a port # into address loop.
17380
17381 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17382
17383         * buffer.c (reinit_vars_of_buffer):
17384         The right place to initialize conversion_in_dynarr and
17385         conversion_out_dynarr.
17386
17387         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17388
17389         * process-unix.c (unix_canonicalize_host_name): Muleize.
17390         (unix_open_network_stream): Muleize.
17391
17392         * buffer.h: Fix up prototypes for ralloc.c functions.
17393
17394 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17395         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17396         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17397                 instead of gethostbyname()
17398         * process-unix.c: In unix_canonicalize_host_name() and
17399                 unix_open_network_stream(), add code to use getaddrinfo()
17400                 instead of gethostbyname().
17401
17402 2000-01-27  Daniel Pittman <daniel@danann.net>
17403
17404         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17405         libs when built with flat Athena.
17406
17407 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17408
17409         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17410         Use coding standards for function prototypes.
17411
17412 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17413
17414         * dialog-msw.c (push_lisp_string_as_unicode):
17415         * doc.c (unparesseuxify_doc_string):
17416         * dired.c (Fuser_name_completion_1):
17417         * dired.c (Fuser_name_all_completions):
17418         * dired.c (free_user_cache):
17419         * dired.c (user_name_completion):
17420         * console-x.c (get_display_arg_connection):
17421         * minibuf.c (clear_echo_area_internal):
17422         * minibuf.c (echo_area_append):
17423         * eldap.c (Fldap_open):
17424         * eldap.c (Fldap_search_internal):
17425         * frame-x.c (x_set_frame_text_value):
17426         * frame-x.c (x_set_frame_properties):
17427         * frame-x.c (x_create_widgets):
17428         * redisplay-tty.c (term_get_fkeys_1):
17429         * objects-x.c (x_parse_nearest_color):
17430         * objects-x.c (x_valid_color_name_p):
17431         * objects-x.c (x_initialize_font_instance):
17432         * objects-x.c (x_list_fonts):
17433         * objects-x.c (x_find_charset_font):
17434         * tooltalk.c (Fadd_tooltalk_message_arg):
17435         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17436         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17437         * process-unix.c (unix_create_process):
17438         * ntproc.c (sys_spawnve):
17439         * sound.c (Fplay_sound_file):
17440         * sound.c (Fplay_sound):
17441         * buffer.c (init_initial_directory):
17442         * buffer.c (init_buffer):
17443         * editfns.c (init_editfns):
17444         * editfns.c (Ftemp_directory):
17445         * editfns.c (Fuser_full_name):
17446         * editfns.c (uncache_home_directory):
17447         * editfns.c (get_home_directory):
17448         * editfns.c (Fuser_home_directory):
17449         * editfns.c (Fformat_time_string):
17450         * editfns.c (Fcurrent_time_string):
17451         * gui-x.c (button_item_to_widget_value):
17452         * database.c (Fopen_database):
17453         * event-Xt.c (x_to_emacs_keysym):
17454         * event-Xt.c (x_event_to_emacs_event):
17455         * event-Xt.c (describe_event_window):
17456         * event-msw.c (mswindows_wnd_proc):
17457         * glyphs-eimage.c (jpeg_instantiate):
17458         * glyphs-eimage.c (gif_instantiate):
17459         * glyphs-eimage.c (png_instantiate):
17460         * glyphs-eimage.c (tiff_instantiate):
17461         * glyphs-x.c (xbm_instantiate_1):
17462         * glyphs-x.c (x_xbm_instantiate):
17463         * glyphs-x.c (x_xface_instantiate):
17464         * glyphs-x.c (autodetect_instantiate):
17465         * glyphs-x.c (cursor_font_instantiate):
17466         * glyphs-x.c (x_widget_instantiate):
17467         * glyphs-x.c (x_widget_set_property):
17468         * glyphs-x.c (x_widget_property):
17469         * glyphs-x.c (BUILD_GLYPH_INST):
17470         * print.c (write_string_to_stdio_stream):
17471         * print.c (output_string):
17472         * print.c (Falternate_debugging_output):
17473         * print.c (Fexternal_debugging_output):
17474         * glyphs-msw.c (extract_xpm_color_names):
17475         * glyphs-msw.c (mswindows_xpm_instantiate):
17476         * glyphs-msw.c (bmp_instantiate):
17477         * glyphs-msw.c (resource_name_to_resource):
17478         * glyphs-msw.c (mswindows_resource_instantiate):
17479         * glyphs-msw.c (xbm_instantiate_1):
17480         * glyphs-msw.c (mswindows_xbm_instantiate):
17481         * glyphs-msw.c (mswindows_xface_instantiate):
17482         * glyphs-msw.c (mswindows_widget_instantiate):
17483         * glyphs-msw.c (add_tree_item):
17484         * glyphs-msw.c (add_tab_item):
17485         * glyphs-msw.c (mswindows_combo_box_instantiate):
17486         * glyphs-msw.c (mswindows_widget_property):
17487         * glyphs-msw.c (mswindows_combo_box_property):
17488         * glyphs-msw.c (mswindows_widget_set_property):
17489         * console.c (stuff_buffered_input):
17490         * objects-msw.c (mswindows_initialize_color_instance):
17491         * objects-msw.c (mswindows_valid_color_name_p):
17492         * objects-msw.c (mswindows_list_fonts):
17493         * objects-msw.c (mswindows_font_instance_truename):
17494         * bytecode.c (optimize_compiled_function):
17495         * select-x.c (symbol_to_x_atom):
17496         * select-x.c (x_atom_to_symbol):
17497         * select-x.c (hack_motif_clipboard_selection):
17498         * select-x.c (selection_data_to_lisp_data):
17499         * select-x.c (lisp_data_to_selection_data):
17500         * select-x.c (Fx_get_cutbuffer_internal):
17501         * select-x.c (Fx_store_cutbuffer_internal):
17502         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17503         * buffer.h (TO_INTERNAL_FORMAT): New function.
17504         * emacs.c (make_arg_list_1):
17505         * emacs.c (make_argc_argv):
17506         * emacs.c (main_1):
17507         * emacs.c (Fdump_emacs):
17508         * emacs.c (split_string_by_emchar_1):
17509         * file-coding.h:
17510         * lisp.h:
17511         * lstream.h:
17512         * symsinit.h:
17513         * device-x.c (x_init_device):
17514         * device-x.c (Fx_valid_keysym_name_p):
17515         * device-x.c (Fx_get_font_path):
17516         * device-x.c (Fx_set_font_path):
17517         * glyphs.c (bitmap_to_lisp_data):
17518         * glyphs.c (pixmap_to_lisp_data):
17519         * alloc.c (make_ext_string): Use coding system arguments.  Update
17520         all callers.
17521         * alloc.c (build_string):
17522         * callproc.c (child_setup):
17523         * callproc.c (init_callproc):
17524         * fileio.c (lisp_strerror):
17525         * fileio.c (directory_file_name):
17526         * fileio.c (Fexpand_file_name):
17527         * fileio.c (Ffile_truename):
17528         * fileio.c (Fsysnetunam):
17529         * fileio.c (Fdo_auto_save):
17530         * sysdep.c (sys_readdir):
17531         * tests.c: New file.  Allow adding C tests.
17532         Replace GET_* macros with a more comprehensible and flexible
17533         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17534         Modify all calls.
17535         Any coding system can be used to do format conversion.
17536         Eliminate enum external_data_format.
17537         Eliminate convert_to_external_format.
17538         Eliminate convert_to_internal_format.
17539         Make sure file-name, keyboard, terminal, and ctext are always
17540         defined as coding systems or aliases.  Make
17541         file-name-coding-system, terminal-coding-system, and
17542         keyboard-coding-system magical variables that are equivalent to
17543         defining the corresponding coding system aliases.
17544
17545         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17546         * file-coding.c (Fcoding_system_alias_p): New function.
17547         * file-coding.c (Fcoding_system_aliasee): New function.
17548         * file-coding.c (append_suffix_to_symbol): New function.
17549         * file-coding.c (dangling_coding_system_alias_p): New function.
17550         * file-coding.c (Ffind_coding_system):
17551         * file-coding.c (Fcopy_coding_system):
17552         * file-coding.c (encode_coding_no_conversion):
17553         * file-coding.c (syms_of_file_coding):
17554         * file-coding.c (vars_of_file_coding):
17555         Rewrite coding system alias code.
17556         Allow nested aliases, like symbolic links.
17557         Allow redefinition of coding system aliases.
17558         Prevent existence of dangling coding system aliases.
17559
17560         * dired.c (Fuser_name_completion_1):
17561         * dired.c (Fuser_name_all_completions):
17562         A crash would happen if user did QUIT in the middle of building
17563         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17564
17565         * lisp.h:
17566         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17567
17568         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17569         an unsigned char *.  Update all callers.
17570
17571 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17572
17573         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17574
17575 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17576
17577         * elhash.c (hentry_description): Use more portable definition.
17578         (resize_hash_table): Initialize new hentries using
17579         xnew_array_and_zero, thereby simplifying the code.
17580
17581         * mule-charset.c (make_charset): Make sure entire object is
17582         initialized, to avoid Purify warnings.
17583
17584         * alloc.c (resize_string): Fix unlikely crash with big strings.
17585
17586 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17587
17588         * realpath.c (xrealpath):
17589         Don't call getwd().
17590
17591 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17592
17593         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17594
17595 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17596
17597         * unexelfsgi.c (unexec): Change the way we decide which segment
17598         should be extended.
17599
17600         Assumption that .bss section should be outside the PT_LOADable
17601         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17602         it's present) is inside the 'data' segment. This would fail the
17603         test which was used to find a segment to grow and cover new
17604         heap. Instead of this assumption, I created another one - on IRIX
17605         the segment to grow should start below .bss and it's address
17606         should extent above the end of .bss. Once this segment is
17607         identified, it's grown to accommodate the new heap and new
17608         zero-length .bss section is added at the end of .data2.
17609
17610 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17611
17612         * eval.c (Feval): Wrong number of arguments should use original
17613         function, not the indirect_function version of it.
17614
17615 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17616
17617         * glyphs-x.c (x_button_instantiate): Don't add image if
17618         it is not a pixmap.
17619         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17620         is relative.
17621
17622 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17623
17624         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17625         declaration.
17626         (DEFVAR_INT_MAGIC): Ditto.
17627         (DEFVAR_BOOL_MAGIC): Ditto.
17628         * glyphs.h: Reindent backslash.
17629
17630 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17631
17632         * glyphs-widget.c (layout_query_geometry):
17633         (layout_layout): Use correct types for gheight, gwidth.
17634
17635 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17636
17637         * EmacsManager.c (QueryGeometry): Purified.
17638
17639 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17640
17641         * alloc.c (make_float): Make sure entire object is initialized, to
17642         avoid Purify warnings.
17643         (pdump_register_sub): Remove useless assignment.
17644         (pdump): Use xmalloc, not malloc.
17645         (pdump_load): Use xmalloc, not malloc.
17646
17647 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17648
17649         * callproc.c:
17650         * dired-msw.c:
17651         * fileio.c:
17652         * process-nt.c:
17653         * redisplay-msw.c:
17654         * sysdep.c: Removed redundant #include <windows.h>
17655
17656 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17657
17658         * frame.c (delete_frame_internal): Do not delete device when its
17659         implementation so declares.
17660         (delete_frame_internal): Set device selected frame to nil when
17661         last frame goes away.
17662
17663         * device-msw.c (msprinter_device_system_metrics): Implemented.
17664         (mswindows_device_system_metrics): Added 'device-dpi property.
17665
17666         * device.c: (Fdevice_printer_p): Added.
17667         Added 'offset-workspace device metric.
17668
17669         * console.h (device_metrics): Declared DM_offset_workspace.
17670
17671 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17672
17673         * fileio.c (Ffile_truename): Remove pointless and confusing
17674         initialization of elen.
17675
17676         * glyphs-widget.c: Compiler warning fixes.
17677
17678 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17679
17680         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17681         instead of a Lisp_Object as argument to make it consistent with
17682         the other LIVE_P macros.
17683         (CHECK_LIVE_PROCESS): New macro.
17684
17685         * process.c: Declare Qprocess_live_p.
17686         (Fprocess_live_p): New function.
17687         (create_process): Use PROCESS_LIVE_P.
17688         (read_process_output): Ditto.
17689         (set_process_filter): Ditto.
17690         (Fdelete_process): Ditto.
17691         (kill_buffer_processes): Ditto
17692         (process_send_signal): Use CHECK_LIVE_PROCESS.
17693         (Fprocess_input_coding_system): Check whether process is still
17694         alive (fix PR#1061).
17695         (Fprocess_output_coding_system): Ditto.
17696         (Fprocess_coding_system): Ditto.
17697         (Fset_process_input_coding_system): Ditto.
17698         (Fset_process_output_coding_system): Ditto.
17699
17700 2000-01-23  Andy Piper  <andy@xemacs.org>
17701
17702         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17703         layout and widget.
17704
17705         * glyphs.c (mark_image_instance): take into account changed
17706         image_instance format.
17707         (image_instance_equal): ditto.
17708         (image_instance_hash): ditto.
17709
17710         * glyphs-widget.c (widget_instantiate): Incorporate layout
17711         instantiation here. Delay layout of the layout until later.
17712         (layout_instantiate): deleted.
17713         (layout_query_geometry): new function. get the geometry of a
17714         layout.
17715         (layout_layout): layout a layout dynamically.
17716         (image_instantiator_widget): New function - splitting up
17717         image_instantiator_format_create_glyphs_widget for netwinder
17718         compilation.
17719         (image_instantiator_buttons):
17720         (image_instantiator_edit_fields):
17721         (image_instantiator_combo_box):
17722         (image_instantiator_scrollbar):
17723         (image_instantiator_progress_guage):
17724         (image_instantiator_tree_view):
17725         (image_instantiator_tab_control):
17726         (image_instantiator_labels):
17727         (image_instantiator_layout): ditto.
17728         (image_instantiator_format_create_glyphs_widget): Call preceding
17729         functions.
17730
17731 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17732
17733         * process.c (Fset_process_coding_system):
17734         * device-x.c (Fx_keysym_hash_table):
17735         Docstring fixes.
17736
17737         * lstream.c (Lstream_write): Return documented value, not 0.
17738
17739         * fileio.c (directory_file_name):
17740         (Fsubstitute_in_file_name):
17741         (Fsubstitute_insert_file_contents_internal):
17742         (Fwrite_region_internal):
17743         * emacs.c:
17744         * sysdep.c:
17745         * getloadavg.c:
17746         * systty.h:
17747         Remove vestigial APOLLO-conditional code.
17748
17749 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17750
17751         * getpagesize.h: Add guard macros.
17752         * libsst.h: Add guard macros.
17753         * libst.h: Add guard macros.
17754         * line-number.h: Add guard macros.
17755         * ndir.h: Add guard macros.
17756         * sysfloat.h: Add guard macros.
17757         * sysfile.h: Add guard macros.
17758         * sysproc.h: Add guard macros.
17759         * syswait.h: Add guard macros.
17760         * xintrinsic.h: Add guard macros.
17761         * xintrinsicp.h: Add guard macros.
17762         * xmmanager.h: Add guard macros.
17763         * xmmanagerp.h: Add guard macros.
17764         * xmprimitive.h: Add guard macros.
17765         * xmu.h: Add guard macros.
17766         * gpmevent.h: Add copyright statement. Add guard macros.
17767         * miscplay.h: Add guard macros.
17768         * *.h: Use consistent C-standards-approved guard macro names.
17769
17770         * opaque.c (make_opaque): Switch parameter order.
17771         * opaque.h (make_opaque): Switch parameter order.
17772         Update all callers.
17773         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17774
17775         * config.h.in (type_checking_assert): Added.
17776         (bufpos_checking_assert): Added.
17777
17778 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17779
17780         * alloc.c: Harmless pdump changes.
17781         - Use countof().
17782         - spell alignment correctly.
17783         * sysdep.c: Use countof()
17784
17785 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17786
17787         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17788         initially_selected_for_input() console method, default to 0.
17789         (semi_canonicalize_console_connection): Try to delegate to
17790         canonicalize_console_connection if no such console method.
17791         (canonicalize_console_connection): Vice versa.
17792         (print_console): Do not print nil connection.
17793
17794         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17795         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17796         (XDEVIMPF_FRAMELESS_OK): Added.
17797         (CONSOLE_INHERITS_METHOD): Added.
17798
17799         * console-msw.c (mswindows_canonicalize_console_connection):
17800         Added.
17801         (mswindows_canonicalize_device_connection): Added.
17802
17803         * console-msw.h (struct msprinter_device): Added this struct and
17804         accessor macros.
17805         (mswindows_device): Made fontlist a lisp object.
17806
17807         * device.c (semi_canonicalize_device_connection):  Try to delegate
17808         to canonicalize_device_connection if no such console method.
17809         (canonicalize_device_connection): Vice versa.
17810         (print_device): Do not print nil connection.
17811
17812         * device-msw.c (mswindows_init_device): Call InitCommonControls
17813         when have widgets.
17814         (mswindows_delete_device): Removed fontlist deallocation.
17815         (mswindows_mark_device): Added.
17816
17817         * events.c (event_equal): Added abort() at unreached code.
17818         (event_hash): Ditto.
17819
17820         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17821         fallback tags of Windows devices.
17822
17823         * general.c (syms_of_general): Initialized Qmsprinter.
17824
17825         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17826         of fallback tags of Windows devices.
17827
17828         * lisp.h: Declared Qmsprinter.
17829
17830         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17831         of strings.
17832         (mswindows_list_fonts): Ditto.
17833         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17834         that it can be used by both mswindows and msprinter devices.
17835         (initialize_font_instance): Added.
17836         (mswindows_initialize_font_instance): Use it.
17837         (msprinter_initialize_font_instance): Added.
17838
17839         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17840         and implementation flags check.
17841         (redisplay_without_hooks): Changed the call to the above.
17842         (Fredraw_device): Ditto.
17843         (Fredisplay_device): Ditto.
17844
17845         * redisplay-msw.c (get_frame_dc): Implemented.
17846         (get_frame_compdc): Implemented.
17847         (many functions): Use the two functions above to get device
17848         contexts, ether for a window or a printer.
17849
17850 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17851
17852         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17853         initialization here.
17854         (init_symbols_once_early): Call it.
17855         * emacs.c (main_1): Call it.
17856         * symsinit.h: Declare it.
17857
17858 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17859
17860         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17861         Lisp_Object.
17862         (pdump_backtrace): Ditto.
17863         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17864         (pdump_get_entry): Abort if trying to register a null pointer.
17865         (pdump_dump_data): Cleanup types when relocating.
17866         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17867         (pdump_dump_rtables): Remove bad casts.
17868         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17869         Lisp_Object instead of a EMACS_INT for the hashtable
17870         reorganization.
17871
17872 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17873
17874         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17875
17876         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17877
17878         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17879
17880         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17881
17882 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17883
17884         * faces.h (FACE_STRIKETHRU_P): Added.
17885
17886         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17887         of font variants.
17888
17889         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17890         (mswindows_set_dc_font): New function, aware of font variants,
17891         separated from mswindows_update_dc.
17892
17893         * objects-msw.h (struct mswindows_font_instance_data): Added
17894         definition.
17895
17896         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17897         cached fonts and the data structure.
17898         (mswindows_initialize_font_instance): Added creation of font data
17899         structure.
17900         (mswindows_print_font_instance): Print at least something.
17901         (mswindows_create_font_variant): Implemented.
17902         (mswindows_get_hfont): Implemented.
17903
17904 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17905
17906         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17907         prototyping problem with msvc.
17908
17909         * emacs.c (main_1): added syms_of_gui_mswindows() call
17910
17911         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17912         syms_of_gui_mswindows() function
17913
17914         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17915
17916 2000-01-18  Martin Buchholz <martin@xemacs.org>
17917
17918         * XEmacs 21.2.27 is released.
17919
17920 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17921
17922         * glyphs-eimage.c (struct tiff_error_struct):
17923         (tiff_error_func):
17924         (tiff_warning_func):
17925         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17926
17927         * unexmips.c:
17928         * unexhp9k3.c:
17929         * unexfreebsd.c:
17930         * unexec.c: Remove vestigial Lucid C code.
17931         * unexalpha.c:
17932         * unexaix.c:
17933         * termcap.c:
17934         * libsst.c: Ansify.
17935         Remove declarations of errno and strerror().
17936
17937         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17938
17939         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17940
17941 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17942
17943         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17944         Optimize.
17945
17946 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17947
17948         * md5.c:
17949         * file-coding.c:
17950         * file-coding.h:
17951         Change enum eol_type to eol_type_t.
17952
17953 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17954
17955         * gui.c (get_gui_callback): Check cons before accessing car.
17956
17957 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17958
17959         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17960         (XSETSPECIFIER_TYPE): Ditto.
17961
17962 2000-01-17  Didier Verna  <didier@xemacs.org>
17963
17964         * redisplay.c (generate_fstring_runes): compute string size in
17965         characters, not bytes.
17966
17967 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17968
17969         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17970
17971 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17972
17973         * print.c (print_error_message): Call print_prepare().
17974
17975 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17976
17977         * .dbxrc: Renamed from dbxrc.
17978
17979         * events.c (event_to_character):
17980         Use `assert (foo)' instead of `if (!foo) abort()'
17981
17982         * .gdbinit (xtype): Add documentation.
17983         * .gdbinit (check-temacs): New function.
17984         * .gdbinit (check-xemacs): New function.
17985         * dbxrc (check-xemacs): New function.
17986         * dbxrc (check-xemacs): New function.
17987
17988 2000-01-14  Andy Piper  <andy@xemacs.org>
17989
17990         * glyphs-widget.c (widget_query_geometry): Make sure that we
17991         calculate default dimensions correctly.
17992
17993 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17994
17995         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17996
17997         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17998         pdump_wire'd variable.
17999
18000         * emacs.c: (main_1): Conditionalized calls to
18001         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
18002
18003 2000-01-13  Martin Buchholz  <martin@xemacs.org>
18004
18005         * window.c (Fset_window_configuration):
18006         * sysdep.c (_start):
18007         * input-method-motif.c (res):
18008         * event-Xt.c (Xt_process_to_emacs_event):
18009         Simple compiler warning fixes.
18010
18011         * bytecode.c (funcall_compiled_function): Use the original
18012         function symbol on the backtrace list in preference to the
18013         compiled_function object in error messages.
18014
18015 2000-01-13  Andy Piper  <andy@xemacs.org>
18016
18017         * glyphs-x.c (update_widget_face): Make sure we update the widget
18018         background as well as foreground.
18019
18020 2000-01-13  Andy Piper  <andy@xemacs.org>
18021
18022         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
18023         fields to subwindow.
18024         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
18025         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
18026         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18027         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
18028
18029         * glyphs-widget.c (check_valid_tab_orientation): new function.
18030         (initialize_widget_image_instance): zero orientation and
18031         justification.
18032         (widget_instantiate): pick up orientation.
18033         (tab_control_query_geometry): return appropriate values for
18034         vertical tabs.
18035
18036         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
18037         appropriate creation flags for left, right and bottom tabs.
18038
18039         * s/cygwin32.h: add tab definitions.
18040
18041 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
18042
18043         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
18044         frame upon hiding a subwindow.
18045         (mswindows_button_instantiate): Changed the push button style to
18046         BS_PUSHBUTTON.
18047         (mswindows_button_instantiate): Removed button BS_NOTIFY
18048         style.
18049         (mswindows_button_instantiate): Removed redundant check for
18050         a disabled gui item.
18051         (mswindows_button_instantiate): Made use of WS_TABSTOP
18052         consistent: "operable" controls (edit, button, tree, scroll) have
18053         this style, "display-only" ones (static, progress gauge) do
18054         not. This style is currently ignored by XEmacs though. Also,
18055         removed the WS_EX_CONTROLPARENT style - it is not for children,
18056         it is for their parents!
18057         (mswindows_edit_field_instantiate): Ditto.
18058         (mswindows_progress_gauge_instantiate): Ditto.
18059         (mswindows_tree_view_instantiate): Ditto.
18060         (mswindows_tab_control_instantiate): Ditto.
18061         (mswindows_scrollbar_instantiate): Ditto.
18062         (mswindows_combo_box_instantiate): Ditto.
18063         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
18064         style to the "clip" window.
18065         (mswindows_button_instantiate): Removed compilation warning by
18066         equally typing terms of the ?: operator.
18067
18068 2000-01-12  Didier Verna  <didier@xemacs.org>
18069
18070         * redisplay.c (generate_fstring_runes): new parameter holding the
18071         last modeline-format extent.
18072         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
18073         extent, fill the glyph block with it.
18074         (generate_fstring_runes): handle these parameters.
18075         (generate_formatted_string_db): ditto.
18076
18077         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
18078         glyphs'extents in the modeline.
18079
18080 1999-01-11  Mike Woolley  <mike@bulsara.com>
18081
18082         * ntheap.c: Reduced the reserved heap space from 1Gb down to
18083         256Mb, as a workaround for the non-starting problem many people
18084         have experienced.
18085
18086 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
18087
18088         * console-tty.c (Fset_console_tty_output_coding_system):
18089         Force redrawing tty frame.
18090
18091 2000-01-10  Didier Verna  <didier@xemacs.org>
18092
18093         * redisplay.c (generate_fstring_runes): fix size computation bug.
18094
18095 2000-01-09  William M. Perry <wmperry@aventail.com>
18096
18097         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
18098
18099 2000-01-09  Andy Piper  <andy@xemacs.org>
18100
18101         * glyphs-msw.c: index -> i to avoid shadows.
18102         (xbm_create_bitmap_from_data): make static.
18103         (check_valid_string_or_int): deleted.
18104         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
18105
18106         * glyphs-x.c (x_update_subwindow): remove unused args.
18107
18108         * glyphs.c (glyph_image_instance): return the thing. Don't set the
18109         back pointer - this is done in allocate_image_instance.
18110         (query_string_font): return Qnil to make the compiler happy.
18111         (unmap_subwindow): set to ~0 to make the compiler happy.
18112         (glyph_query_geometry): comment out until used.
18113         (glyph_layout): ditto.
18114
18115 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18116
18117         * insdel.c (signal_after_change): Remove extraneous unbind_to().